From 3157e8df4f1c104fd8f469865d5bc552da266c07 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 07:15:21 -0700 Subject: [PATCH 01/46] Use idiomatic naming strategy --- Mintfile | 2 +- Scripts/GeneratorConfigBuilder.swift | 7 ++++++- Tests/UsersTests/UsersTests.swift | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Mintfile b/Mintfile index 2f3aaf0b8b..9beb12ae40 100644 --- a/Mintfile +++ b/Mintfile @@ -1,2 +1,2 @@ yonaskolb/Mint@0.17.5 -apple/swift-openapi-generator@1.2.1 +apple/swift-openapi-generator@1.7.2 diff --git a/Scripts/GeneratorConfigBuilder.swift b/Scripts/GeneratorConfigBuilder.swift index b8e0e69360..55e5899003 100644 --- a/Scripts/GeneratorConfigBuilder.swift +++ b/Scripts/GeneratorConfigBuilder.swift @@ -30,6 +30,12 @@ struct GeneratorConfigBuilder { - \#(tagString) accessModifier: public + + namingStrategy: idiomatic + + nameOverrides: + 'reactions-+1': reactionsThumbsUp + 'reactions--1': reactionsThumbsDown """# } @@ -59,4 +65,3 @@ if let argTag = CommandLine.arguments[1] } else { throw ErrorMessage(message: "No tag not found.") } - diff --git a/Tests/UsersTests/UsersTests.swift b/Tests/UsersTests/UsersTests.swift index 37d5c0cc23..086044ac9b 100644 --- a/Tests/UsersTests/UsersTests.swift +++ b/Tests/UsersTests/UsersTests.swift @@ -10,7 +10,7 @@ final class UsersTests: XCTestCase { serverURL: try Servers.server1(), transport: URLSessionTransport() ) - let list = try await client.users_sol_list() + let list = try await client.usersList() XCTAssertGreaterThan(try list.ok.body.json.count, 0) } From a4f3a25a8ac58d5147173cde45e0d908c16904e7 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 08:59:16 -0700 Subject: [PATCH 02/46] Commit via running ake Submodule --- Submodule/github/rest-api-description | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 8af3e59120..7291aebf74 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 8af3e59120fdf6294e2d385bdae74b39fa824da5 +Subproject commit 7291aebf74227b541192db318cb6d5ec7d9388e9 From ced52c88637430b50ef9a63855434aae11fcfbf4 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 08:59:30 -0700 Subject: [PATCH 03/46] Commit via running ake Sources/actions --- Sources/actions/Client.swift | 1526 ++-- Sources/actions/Types.swift | 14591 +++++++++++++++++---------------- 2 files changed, 8271 insertions(+), 7846 deletions(-) diff --git a/Sources/actions/Client.swift b/Sources/actions/Client.swift index 8103c6a86d..a4a792e849 100644 --- a/Sources/actions/Client.swift +++ b/Sources/actions/Client.swift @@ -47,10 +47,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage/get(actions/get-actions-cache-usage-for-org)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output { + public func actionsGetActionsCacheUsageForOrg(_ input: Operations.ActionsGetActionsCacheUsageForOrg.Input) async throws -> Operations.ActionsGetActionsCacheUsageForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetActionsCacheUsageForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/cache/usage", @@ -72,13 +72,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -88,7 +88,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_org_hyphen_enterprise.self, + Components.Schemas.ActionsCacheUsageOrgEnterprise.self, from: responseBody, transforming: { value in .json(value) @@ -122,10 +122,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage-by-repository`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage-by-repository/get(actions/get-actions-cache-usage-by-repo-for-org)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output { + public func actionsGetActionsCacheUsageByRepoForOrg(_ input: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input) async throws -> Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetActionsCacheUsageByRepoForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/cache/usage-by-repository", @@ -143,7 +143,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -161,13 +161,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -177,7 +177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -210,10 +210,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/get(actions/list-hosted-runners-for-org)`. - public func actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output { + public func actionsListHostedRunnersForOrg(_ input: Operations.ActionsListHostedRunnersForOrg.Input) async throws -> Operations.ActionsListHostedRunnersForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListHostedRunnersForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners", @@ -231,7 +231,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -249,13 +249,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -265,7 +265,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -297,10 +297,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/post(actions/create-hosted-runner-for-org)`. - public func actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsCreateHostedRunnerForOrg(_ input: Operations.ActionsCreateHostedRunnerForOrg.Input) async throws -> Operations.ActionsCreateHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsCreateHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners", @@ -332,7 +332,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.ActionsCreateHostedRunnerForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -342,7 +342,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_hosted_hyphen_runner.self, + Components.Schemas.ActionsHostedRunner.self, from: responseBody, transforming: { value in .json(value) @@ -370,10 +370,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/github-owned`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/github-owned/get(actions/get-hosted-runners-github-owned-images-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnersGithubOwnedImagesForOrg(_ input: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/images/github-owned", @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -406,7 +406,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -434,10 +434,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/partner`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/partner/get(actions/get-hosted-runners-partner-images-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnersPartnerImagesForOrg(_ input: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/images/partner", @@ -460,7 +460,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -470,7 +470,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -498,10 +498,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/limits`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/limits/get(actions/get-hosted-runners-limits-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnersLimitsForOrg(_ input: Operations.ActionsGetHostedRunnersLimitsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersLimitsForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnersLimitsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/limits", @@ -524,7 +524,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnersLimitsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -534,7 +534,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_limits.self, + Components.Schemas.ActionsHostedRunnerLimits.self, from: responseBody, transforming: { value in .json(value) @@ -562,10 +562,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/machine-sizes`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/machine-sizes/get(actions/get-hosted-runners-machine-specs-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnersMachineSpecsForOrg(_ input: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/machine-sizes", @@ -588,7 +588,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -598,7 +598,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -626,10 +626,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/platforms`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/platforms/get(actions/get-hosted-runners-platforms-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnersPlatformsForOrg(_ input: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersPlatformsForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnersPlatformsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/platforms", @@ -652,7 +652,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -662,7 +662,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -692,16 +692,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/get(actions/get-hosted-runner-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsGetHostedRunnerForOrg(_ input: Operations.ActionsGetHostedRunnerForOrg.Input) async throws -> Operations.ActionsGetHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/{}", parameters: [ input.path.org, - input.path.hosted_runner_id + input.path.hostedRunnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -718,13 +718,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -734,7 +734,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_hosted_hyphen_runner.self, + Components.Schemas.ActionsHostedRunner.self, from: responseBody, transforming: { value in .json(value) @@ -766,16 +766,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/patch(actions/update-hosted-runner-for-org)`. - public func actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsUpdateHostedRunnerForOrg(_ input: Operations.ActionsUpdateHostedRunnerForOrg.Input) async throws -> Operations.ActionsUpdateHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsUpdateHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/{}", parameters: [ input.path.org, - input.path.hosted_runner_id + input.path.hostedRunnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -802,7 +802,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsUpdateHostedRunnerForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -812,7 +812,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_hosted_hyphen_runner.self, + Components.Schemas.ActionsHostedRunner.self, from: responseBody, transforming: { value in .json(value) @@ -840,16 +840,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/delete(actions/delete-hosted-runner-for-org)`. - public func actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsDeleteHostedRunnerForOrg(_ input: Operations.ActionsDeleteHostedRunnerForOrg.Input) async throws -> Operations.ActionsDeleteHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsDeleteHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/hosted-runners/{}", parameters: [ input.path.org, - input.path.hosted_runner_id + input.path.hostedRunnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -867,7 +867,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Accepted.Body + let body: Operations.ActionsDeleteHostedRunnerForOrg.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -877,7 +877,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_hosted_hyphen_runner.self, + Components.Schemas.ActionsHostedRunner.self, from: responseBody, transforming: { value in .json(value) @@ -907,10 +907,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/get(actions/get-github-actions-permissions-organization)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output { + public func actionsGetGithubActionsPermissionsOrganization(_ input: Operations.ActionsGetGithubActionsPermissionsOrganization.Input) async throws -> Operations.ActionsGetGithubActionsPermissionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.id, + forOperation: Operations.ActionsGetGithubActionsPermissionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions", @@ -933,7 +933,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.Ok.Body + let body: Operations.ActionsGetGithubActionsPermissionsOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -943,7 +943,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_organization_hyphen_permissions.self, + Components.Schemas.ActionsOrganizationPermissions.self, from: responseBody, transforming: { value in .json(value) @@ -973,10 +973,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output { + public func actionsSetGithubActionsPermissionsOrganization(_ input: Operations.ActionsSetGithubActionsPermissionsOrganization.Input) async throws -> Operations.ActionsSetGithubActionsPermissionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.id, + forOperation: Operations.ActionsSetGithubActionsPermissionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions", @@ -1024,10 +1024,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/get(actions/list-selected-repositories-enabled-github-actions-organization)`. - public func actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output { + public func actionsListSelectedRepositoriesEnabledGithubActionsOrganization(_ input: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input) async throws -> Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/repositories", @@ -1045,7 +1045,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1064,7 +1064,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body + let body: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1074,7 +1074,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1105,10 +1105,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)`. - public func actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output { + public func actionsSetSelectedRepositoriesEnabledGithubActionsOrganization(_ input: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input) async throws -> Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/repositories", @@ -1156,16 +1156,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)`. - public func actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output { + public func actionsEnableSelectedRepositoryGithubActionsOrganization(_ input: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input) async throws -> Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/repositories/{}", parameters: [ input.path.org, - input.path.repository_id + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1199,16 +1199,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)`. - public func actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output { + public func actionsDisableSelectedRepositoryGithubActionsOrganization(_ input: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input) async throws -> Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/repositories/{}", parameters: [ input.path.org, - input.path.repository_id + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1242,10 +1242,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/get(actions/get-allowed-actions-organization)`. - public func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output { + public func actionsGetAllowedActionsOrganization(_ input: Operations.ActionsGetAllowedActionsOrganization.Input) async throws -> Operations.ActionsGetAllowedActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsGetAllowedActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/selected-actions", @@ -1268,7 +1268,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output.Ok.Body + let body: Operations.ActionsGetAllowedActionsOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1278,7 +1278,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.selected_hyphen_actions.self, + Components.Schemas.SelectedActions.self, from: responseBody, transforming: { value in .json(value) @@ -1308,10 +1308,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)`. - public func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Output { + public func actionsSetAllowedActionsOrganization(_ input: Operations.ActionsSetAllowedActionsOrganization.Input) async throws -> Operations.ActionsSetAllowedActionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.id, + forOperation: Operations.ActionsSetAllowedActionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/selected-actions", @@ -1363,10 +1363,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-organization)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output { + public func actionsGetGithubActionsDefaultWorkflowPermissionsOrganization(_ input: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.id, + forOperation: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/workflow", @@ -1389,7 +1389,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.Ok.Body + let body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1399,7 +1399,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions.self, + Components.Schemas.ActionsGetDefaultWorkflowPermissions.self, from: responseBody, transforming: { value in .json(value) @@ -1431,10 +1431,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output { + public func actionsSetGithubActionsDefaultWorkflowPermissionsOrganization(_ input: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.id, + forOperation: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/permissions/workflow", @@ -1484,10 +1484,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output { + public func actionsListSelfHostedRunnerGroupsForOrg(_ input: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListSelfHostedRunnerGroupsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups", @@ -1505,7 +1505,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1519,7 +1519,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "visible_to_repository", - value: input.query.visible_to_repository + value: input.query.visibleToRepository ) converter.setAcceptHeader( in: &request.headerFields, @@ -1531,7 +1531,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1541,7 +1541,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1571,10 +1571,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. - public func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsCreateSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups", @@ -1606,7 +1606,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1616,7 +1616,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.runner_hyphen_groups_hyphen_org.self, + Components.Schemas.RunnerGroupsOrg.self, from: responseBody, transforming: { value in .json(value) @@ -1646,16 +1646,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsGetSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetSelfHostedRunnerGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1673,7 +1673,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1683,7 +1683,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.runner_hyphen_groups_hyphen_org.self, + Components.Schemas.RunnerGroupsOrg.self, from: responseBody, transforming: { value in .json(value) @@ -1713,16 +1713,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. - public func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsUpdateSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1749,7 +1749,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1759,7 +1759,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.runner_hyphen_groups_hyphen_org.self, + Components.Schemas.RunnerGroupsOrg.self, from: responseBody, transforming: { value in .json(value) @@ -1789,16 +1789,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output { + public func actionsDeleteSelfHostedRunnerGroupFromOrg(_ input: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.id, + forOperation: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1832,16 +1832,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/get(actions/list-github-hosted-runners-in-group-for-org)`. - public func actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsListGithubHostedRunnersInGroupForOrg(_ input: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListGithubHostedRunnersInGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/hosted-runners", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1854,7 +1854,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1872,13 +1872,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1888,7 +1888,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1921,16 +1921,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + public func actionsListRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + forOperation: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/repositories", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1950,7 +1950,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -1962,7 +1962,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1972,7 +1972,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2002,16 +2002,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + public func actionsSetRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + forOperation: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/repositories", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2054,17 +2054,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + public func actionsAddRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + forOperation: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/repositories/{}", parameters: [ input.path.org, - input.path.runner_group_id, - input.path.repository_id + input.path.runnerGroupId, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2098,17 +2098,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + public func actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + forOperation: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/repositories/{}", parameters: [ input.path.org, - input.path.runner_group_id, - input.path.repository_id + input.path.runnerGroupId, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2142,16 +2142,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsListSelfHostedRunnersInGroupForOrg(_ input: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListSelfHostedRunnersInGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/runners", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2164,7 +2164,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2182,13 +2182,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2198,7 +2198,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2231,16 +2231,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. - public func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsSetSelfHostedRunnersInGroupForOrg(_ input: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/runners", parameters: [ input.path.org, - input.path.runner_group_id + input.path.runnerGroupId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2283,17 +2283,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. - public func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsAddSelfHostedRunnerToGroupForOrg(_ input: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input) async throws -> Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/runners/{}", parameters: [ input.path.org, - input.path.runner_group_id, - input.path.runner_id + input.path.runnerGroupId, + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2327,17 +2327,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. - public func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output { + public func actionsRemoveSelfHostedRunnerFromGroupForOrg(_ input: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input) async throws -> Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runner-groups/{}/runners/{}", parameters: [ input.path.org, - input.path.runner_group_id, - input.path.runner_id + input.path.runnerGroupId, + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2373,10 +2373,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/get(actions/list-self-hosted-runners-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output { + public func actionsListSelfHostedRunnersForOrg(_ input: Operations.ActionsListSelfHostedRunnersForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnersForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListSelfHostedRunnersForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners", @@ -2401,7 +2401,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2419,13 +2419,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2435,7 +2435,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2470,10 +2470,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/downloads/get(actions/list-runner-applications-for-org)`. - public func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output { + public func actionsListRunnerApplicationsForOrg(_ input: Operations.ActionsListRunnerApplicationsForOrg.Input) async throws -> Operations.ActionsListRunnerApplicationsForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListRunnerApplicationsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/downloads", @@ -2496,7 +2496,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsListRunnerApplicationsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2506,7 +2506,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.runner_hyphen_application].self, + [Components.Schemas.RunnerApplication].self, from: responseBody, transforming: { value in .json(value) @@ -2538,10 +2538,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)`. - public func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org(_ input: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Output { + public func actionsGenerateRunnerJitconfigForOrg(_ input: Operations.ActionsGenerateRunnerJitconfigForOrg.Input) async throws -> Operations.ActionsGenerateRunnerJitconfigForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGenerateRunnerJitconfigForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/generate-jitconfig", @@ -2573,7 +2573,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_jitconfig.Body + let body: Components.Responses.ActionsRunnerJitconfig.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2583,7 +2583,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_jitconfig.Body.jsonPayload.self, + Components.Responses.ActionsRunnerJitconfig.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2595,7 +2595,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2605,7 +2605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2617,7 +2617,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2627,7 +2627,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2639,7 +2639,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2649,7 +2649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2687,10 +2687,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/registration-token/post(actions/create-registration-token-for-org)`. - public func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output { + public func actionsCreateRegistrationTokenForOrg(_ input: Operations.ActionsCreateRegistrationTokenForOrg.Input) async throws -> Operations.ActionsCreateRegistrationTokenForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsCreateRegistrationTokenForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/registration-token", @@ -2713,7 +2713,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.ActionsCreateRegistrationTokenForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2723,7 +2723,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authentication_hyphen_token.self, + Components.Schemas.AuthenticationToken.self, from: responseBody, transforming: { value in .json(value) @@ -2761,10 +2761,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/remove-token/post(actions/create-remove-token-for-org)`. - public func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output { + public func actionsCreateRemoveTokenForOrg(_ input: Operations.ActionsCreateRemoveTokenForOrg.Input) async throws -> Operations.ActionsCreateRemoveTokenForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsCreateRemoveTokenForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/remove-token", @@ -2787,7 +2787,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.ActionsCreateRemoveTokenForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2797,7 +2797,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authentication_hyphen_token.self, + Components.Schemas.AuthenticationToken.self, from: responseBody, transforming: { value in .json(value) @@ -2829,16 +2829,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-org)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsGetSelfHostedRunnerForOrg(_ input: Operations.ActionsGetSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsGetSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsGetSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2856,7 +2856,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ActionsGetSelfHostedRunnerForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2866,7 +2866,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.runner.self, + Components.Schemas.Runner.self, from: responseBody, transforming: { value in .json(value) @@ -2898,16 +2898,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Output { + public func actionsDeleteSelfHostedRunnerFromOrg(_ input: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.id, + forOperation: Operations.ActionsDeleteSelfHostedRunnerFromOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2943,16 +2943,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)`. - public func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsListLabelsForSelfHostedRunnerForOrg(_ input: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}/labels", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2970,7 +2970,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2980,7 +2980,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2992,7 +2992,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3002,7 +3002,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3034,16 +3034,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)`. - public func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsAddCustomLabelsToSelfHostedRunnerForOrg(_ input: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}/labels", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3070,7 +3070,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3080,7 +3080,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3092,7 +3092,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3102,7 +3102,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3114,7 +3114,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3124,7 +3124,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3157,16 +3157,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)`. - public func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsSetCustomLabelsForSelfHostedRunnerForOrg(_ input: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}/labels", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3193,7 +3193,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3203,7 +3203,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3215,7 +3215,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3225,7 +3225,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3237,7 +3237,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3247,7 +3247,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3280,16 +3280,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)`. - public func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg(_ input: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}/labels", parameters: [ input.path.org, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3307,7 +3307,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels_readonly.Body + let body: Components.Responses.ActionsRunnerLabelsReadonly.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3317,7 +3317,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels_readonly.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabelsReadonly.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3329,7 +3329,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3339,7 +3339,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3375,16 +3375,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)`. - public func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { + public func actionsRemoveCustomLabelFromSelfHostedRunnerForOrg(_ input: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.id, + forOperation: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/runners/{}/labels/{}", parameters: [ input.path.org, - input.path.runner_id, + input.path.runnerId, input.path.name ] ) @@ -3403,7 +3403,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3413,7 +3413,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3425,7 +3425,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3435,7 +3435,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3447,7 +3447,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3457,7 +3457,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3490,10 +3490,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/get(actions/list-org-secrets)`. - public func actions_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output { + public func actionsListOrgSecrets(_ input: Operations.ActionsListOrgSecrets.Input) async throws -> Operations.ActionsListOrgSecrets.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_org_hyphen_secrets.id, + forOperation: Operations.ActionsListOrgSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets", @@ -3511,7 +3511,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3529,13 +3529,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListOrgSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + let body: Operations.ActionsListOrgSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3545,7 +3545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListOrgSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3581,10 +3581,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/public-key/get(actions/get-org-public-key)`. - public func actions_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { + public func actionsGetOrgPublicKey(_ input: Operations.ActionsGetOrgPublicKey.Input) async throws -> Operations.ActionsGetOrgPublicKey.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.id, + forOperation: Operations.ActionsGetOrgPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/public-key", @@ -3607,7 +3607,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.ActionsGetOrgPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3617,7 +3617,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_public_hyphen_key.self, + Components.Schemas.ActionsPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -3649,16 +3649,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/get(actions/get-org-secret)`. - public func actions_sol_get_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_secret.Output { + public func actionsGetOrgSecret(_ input: Operations.ActionsGetOrgSecret.Input) async throws -> Operations.ActionsGetOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsGetOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3676,7 +3676,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.ActionsGetOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3686,7 +3686,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_actions_hyphen_secret.self, + Components.Schemas.OrganizationActionsSecret.self, from: responseBody, transforming: { value in .json(value) @@ -3719,16 +3719,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { + public func actionsCreateOrUpdateOrgSecret(_ input: Operations.ActionsCreateOrUpdateOrgSecret.Input) async throws -> Operations.ActionsCreateOrUpdateOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsCreateOrUpdateOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3755,7 +3755,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + let body: Operations.ActionsCreateOrUpdateOrgSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3765,7 +3765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -3799,16 +3799,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)`. - public func actions_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_secret.Output { + public func actionsDeleteOrgSecret(_ input: Operations.ActionsDeleteOrgSecret.Input) async throws -> Operations.ActionsDeleteOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsDeleteOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3845,16 +3845,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/get(actions/list-selected-repos-for-org-secret)`. - public func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func actionsListSelectedReposForOrgSecret(_ input: Operations.ActionsListSelectedReposForOrgSecret.Input) async throws -> Operations.ActionsListSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsListSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3874,7 +3874,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -3886,7 +3886,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3896,7 +3896,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3930,16 +3930,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)`. - public func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func actionsSetSelectedReposForOrgSecret(_ input: Operations.ActionsSetSelectedReposForOrgSecret.Input) async throws -> Operations.ActionsSetSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsSetSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3986,17 +3986,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)`. - public func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { + public func actionsAddSelectedRepoToOrgSecret(_ input: Operations.ActionsAddSelectedRepoToOrgSecret.Input) async throws -> Operations.ActionsAddSelectedRepoToOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsAddSelectedRepoToOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4036,17 +4036,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)`. - public func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { + public func actionsRemoveSelectedRepoFromOrgSecret(_ input: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.id, + forOperation: Operations.ActionsRemoveSelectedRepoFromOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4084,10 +4084,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/get(actions/list-org-variables)`. - public func actions_sol_list_hyphen_org_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_variables.Output { + public func actionsListOrgVariables(_ input: Operations.ActionsListOrgVariables.Input) async throws -> Operations.ActionsListOrgVariables.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_org_hyphen_variables.id, + forOperation: Operations.ActionsListOrgVariables.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables", @@ -4105,7 +4105,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4123,13 +4123,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListOrgVariables.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body + let body: Operations.ActionsListOrgVariables.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4139,7 +4139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListOrgVariables.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4174,10 +4174,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/post(actions/create-org-variable)`. - public func actions_sol_create_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_org_hyphen_variable.Output { + public func actionsCreateOrgVariable(_ input: Operations.ActionsCreateOrgVariable.Input) async throws -> Operations.ActionsCreateOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsCreateOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables", @@ -4209,7 +4209,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Output.Created.Body + let body: Operations.ActionsCreateOrgVariable.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4219,7 +4219,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -4251,10 +4251,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/get(actions/get-org-variable)`. - public func actions_sol_get_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_variable.Output { + public func actionsGetOrgVariable(_ input: Operations.ActionsGetOrgVariable.Input) async throws -> Operations.ActionsGetOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsGetOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}", @@ -4278,7 +4278,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_org_hyphen_variable.Output.Ok.Body + let body: Operations.ActionsGetOrgVariable.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4288,7 +4288,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_actions_hyphen_variable.self, + Components.Schemas.OrganizationActionsVariable.self, from: responseBody, transforming: { value in .json(value) @@ -4320,10 +4320,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)`. - public func actions_sol_update_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_org_hyphen_variable.Output { + public func actionsUpdateOrgVariable(_ input: Operations.ActionsUpdateOrgVariable.Input) async throws -> Operations.ActionsUpdateOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_update_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsUpdateOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}", @@ -4374,10 +4374,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)`. - public func actions_sol_delete_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_variable.Output { + public func actionsDeleteOrgVariable(_ input: Operations.ActionsDeleteOrgVariable.Input) async throws -> Operations.ActionsDeleteOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsDeleteOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}", @@ -4420,10 +4420,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)`. - public func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output { + public func actionsListSelectedReposForOrgVariable(_ input: Operations.ActionsListSelectedReposForOrgVariable.Input) async throws -> Operations.ActionsListSelectedReposForOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsListSelectedReposForOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}/repositories", @@ -4449,7 +4449,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -4461,7 +4461,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body + let body: Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4471,7 +4471,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4507,10 +4507,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)`. - public func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output { + public func actionsSetSelectedReposForOrgVariable(_ input: Operations.ActionsSetSelectedReposForOrgVariable.Input) async throws -> Operations.ActionsSetSelectedReposForOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsSetSelectedReposForOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}/repositories", @@ -4564,17 +4564,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)`. - public func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output { + public func actionsAddSelectedRepoToOrgVariable(_ input: Operations.ActionsAddSelectedRepoToOrgVariable.Input) async throws -> Operations.ActionsAddSelectedRepoToOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsAddSelectedRepoToOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}/repositories/{}", parameters: [ input.path.org, input.path.name, - input.path.repository_id + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4614,17 +4614,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)`. - public func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output { + public func actionsRemoveSelectedRepoFromOrgVariable(_ input: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.id, + forOperation: Operations.ActionsRemoveSelectedRepoFromOrgVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/variables/{}/repositories/{}", parameters: [ input.path.org, input.path.name, - input.path.repository_id + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4662,10 +4662,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/get(actions/list-artifacts-for-repo)`. - public func actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output { + public func actionsListArtifactsForRepo(_ input: Operations.ActionsListArtifactsForRepo.Input) async throws -> Operations.ActionsListArtifactsForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsListArtifactsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/artifacts", @@ -4684,7 +4684,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4709,13 +4709,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListArtifactsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsListArtifactsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4725,7 +4725,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListArtifactsForRepo.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4760,17 +4760,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/get(actions/get-artifact)`. - public func actions_sol_get_hyphen_artifact(_ input: Operations.actions_sol_get_hyphen_artifact.Input) async throws -> Operations.actions_sol_get_hyphen_artifact.Output { + public func actionsGetArtifact(_ input: Operations.ActionsGetArtifact.Input) async throws -> Operations.ActionsGetArtifact.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_artifact.id, + forOperation: Operations.ActionsGetArtifact.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/artifacts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.artifact_id + input.path.artifactId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4788,7 +4788,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_artifact.Output.Ok.Body + let body: Operations.ActionsGetArtifact.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4798,7 +4798,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.artifact.self, + Components.Schemas.Artifact.self, from: responseBody, transforming: { value in .json(value) @@ -4827,17 +4827,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)`. - public func actions_sol_delete_hyphen_artifact(_ input: Operations.actions_sol_delete_hyphen_artifact.Input) async throws -> Operations.actions_sol_delete_hyphen_artifact.Output { + public func actionsDeleteArtifact(_ input: Operations.ActionsDeleteArtifact.Input) async throws -> Operations.ActionsDeleteArtifact.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_artifact.id, + forOperation: Operations.ActionsDeleteArtifact.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/artifacts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.artifact_id + input.path.artifactId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4872,18 +4872,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)`. - public func actions_sol_download_hyphen_artifact(_ input: Operations.actions_sol_download_hyphen_artifact.Input) async throws -> Operations.actions_sol_download_hyphen_artifact.Output { + public func actionsDownloadArtifact(_ input: Operations.ActionsDownloadArtifact.Input) async throws -> Operations.ActionsDownloadArtifact.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_download_hyphen_artifact.id, + forOperation: Operations.ActionsDownloadArtifact.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/artifacts/{}/{}", parameters: [ input.path.owner, input.path.repo, - input.path.artifact_id, - input.path.archive_format + input.path.artifactId, + input.path.archiveFormat ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4900,15 +4900,15 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.actions_sol_download_hyphen_artifact.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsDownloadArtifact.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", - as: Components.Headers.location.self + as: Components.Headers.Location.self )) return .found(.init(headers: headers)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4918,7 +4918,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4951,10 +4951,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/cache/usage`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/cache/usage/get(actions/get-actions-cache-usage)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output { + public func actionsGetActionsCacheUsage(_ input: Operations.ActionsGetActionsCacheUsage.Input) async throws -> Operations.ActionsGetActionsCacheUsage.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.id, + forOperation: Operations.ActionsGetActionsCacheUsage.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/cache/usage", @@ -4978,7 +4978,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output.Ok.Body + let body: Operations.ActionsGetActionsCacheUsage.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4988,7 +4988,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository.self, + Components.Schemas.ActionsCacheUsageByRepository.self, from: responseBody, transforming: { value in .json(value) @@ -5018,10 +5018,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/get(actions/get-actions-cache-list)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output { + public func actionsGetActionsCacheList(_ input: Operations.ActionsGetActionsCacheList.Input) async throws -> Operations.ActionsGetActionsCacheList.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.id, + forOperation: Operations.ActionsGetActionsCacheList.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/caches", @@ -5040,7 +5040,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5086,13 +5086,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsGetActionsCacheList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Body + let body: Operations.ActionsGetActionsCacheList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5102,7 +5102,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_cache_hyphen_list.self, + Components.Schemas.ActionsCacheList.self, from: responseBody, transforming: { value in .json(value) @@ -5135,10 +5135,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/delete(actions/delete-actions-cache-by-key)`. - public func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key(_ input: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output { + public func actionsDeleteActionsCacheByKey(_ input: Operations.ActionsDeleteActionsCacheByKey.Input) async throws -> Operations.ActionsDeleteActionsCacheByKey.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.id, + forOperation: Operations.ActionsDeleteActionsCacheByKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/caches", @@ -5176,7 +5176,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output.Ok.Body + let body: Operations.ActionsDeleteActionsCacheByKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5186,7 +5186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_cache_hyphen_list.self, + Components.Schemas.ActionsCacheList.self, from: responseBody, transforming: { value in .json(value) @@ -5216,17 +5216,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)`. - public func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id(_ input: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Output { + public func actionsDeleteActionsCacheById(_ input: Operations.ActionsDeleteActionsCacheById.Input) async throws -> Operations.ActionsDeleteActionsCacheById.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.id, + forOperation: Operations.ActionsDeleteActionsCacheById.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/caches/{}", parameters: [ input.path.owner, input.path.repo, - input.path.cache_id + input.path.cacheId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5262,17 +5262,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/get(actions/get-job-for-workflow-run)`. - public func actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output { + public func actionsGetJobForWorkflowRun(_ input: Operations.ActionsGetJobForWorkflowRun.Input) async throws -> Operations.ActionsGetJobForWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsGetJobForWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/jobs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.job_id + input.path.jobId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5290,7 +5290,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body + let body: Operations.ActionsGetJobForWorkflowRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5300,7 +5300,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.job.self, + Components.Schemas.Job.self, from: responseBody, transforming: { value in .json(value) @@ -5333,17 +5333,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/logs/get(actions/download-job-logs-for-workflow-run)`. - public func actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output { + public func actionsDownloadJobLogsForWorkflowRun(_ input: Operations.ActionsDownloadJobLogsForWorkflowRun.Input) async throws -> Operations.ActionsDownloadJobLogsForWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsDownloadJobLogsForWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/jobs/{}/logs", parameters: [ input.path.owner, input.path.repo, - input.path.job_id + input.path.jobId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5356,7 +5356,7 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsDownloadJobLogsForWorkflowRun.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -5382,17 +5382,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)`. - public func actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output { + public func actionsReRunJobForWorkflowRun(_ input: Operations.ActionsReRunJobForWorkflowRun.Input) async throws -> Operations.ActionsReRunJobForWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsReRunJobForWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/jobs/{}/rerun", parameters: [ input.path.owner, input.path.repo, - input.path.job_id + input.path.jobId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5421,7 +5421,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Created.Body + let body: Operations.ActionsReRunJobForWorkflowRun.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5431,7 +5431,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -5443,7 +5443,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5453,7 +5453,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5483,10 +5483,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)`. - public func actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output { + public func actionsGetCustomOidcSubClaimForRepo(_ input: Operations.ActionsGetCustomOidcSubClaimForRepo.Input) async throws -> Operations.ActionsGetCustomOidcSubClaimForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsGetCustomOidcSubClaimForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/oidc/customization/sub", @@ -5510,7 +5510,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsGetCustomOidcSubClaimForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5520,7 +5520,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.oidc_hyphen_custom_hyphen_sub_hyphen_repo.self, + Components.Schemas.OidcCustomSubRepo.self, from: responseBody, transforming: { value in .json(value) @@ -5532,7 +5532,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5543,7 +5543,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5551,10 +5551,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -5563,7 +5563,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5573,7 +5573,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5603,10 +5603,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)`. - public func actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output { + public func actionsSetCustomOidcSubClaimForRepo(_ input: Operations.ActionsSetCustomOidcSubClaimForRepo.Input) async throws -> Operations.ActionsSetCustomOidcSubClaimForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsSetCustomOidcSubClaimForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/oidc/customization/sub", @@ -5639,7 +5639,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Created.Body + let body: Operations.ActionsSetCustomOidcSubClaimForRepo.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5649,7 +5649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -5661,7 +5661,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5671,7 +5671,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5683,7 +5683,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5694,7 +5694,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5702,10 +5702,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -5714,7 +5714,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5724,7 +5724,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -5757,10 +5757,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-secrets/get(actions/list-repo-organization-secrets)`. - public func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output { + public func actionsListRepoOrganizationSecrets(_ input: Operations.ActionsListRepoOrganizationSecrets.Input) async throws -> Operations.ActionsListRepoOrganizationSecrets.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.id, + forOperation: Operations.ActionsListRepoOrganizationSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/organization-secrets", @@ -5779,7 +5779,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5797,13 +5797,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body + let body: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5813,7 +5813,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -5848,10 +5848,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-variables/get(actions/list-repo-organization-variables)`. - public func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output { + public func actionsListRepoOrganizationVariables(_ input: Operations.ActionsListRepoOrganizationVariables.Input) async throws -> Operations.ActionsListRepoOrganizationVariables.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.id, + forOperation: Operations.ActionsListRepoOrganizationVariables.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/organization-variables", @@ -5870,7 +5870,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5888,13 +5888,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body + let body: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5904,7 +5904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -5937,10 +5937,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/get(actions/get-github-actions-permissions-repository)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output { + public func actionsGetGithubActionsPermissionsRepository(_ input: Operations.ActionsGetGithubActionsPermissionsRepository.Input) async throws -> Operations.ActionsGetGithubActionsPermissionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.id, + forOperation: Operations.ActionsGetGithubActionsPermissionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions", @@ -5964,7 +5964,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.Ok.Body + let body: Operations.ActionsGetGithubActionsPermissionsRepository.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5974,7 +5974,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_repository_hyphen_permissions.self, + Components.Schemas.ActionsRepositoryPermissions.self, from: responseBody, transforming: { value in .json(value) @@ -6004,10 +6004,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output { + public func actionsSetGithubActionsPermissionsRepository(_ input: Operations.ActionsSetGithubActionsPermissionsRepository.Input) async throws -> Operations.ActionsSetGithubActionsPermissionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.id, + forOperation: Operations.ActionsSetGithubActionsPermissionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions", @@ -6058,10 +6058,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/get(actions/get-workflow-access-to-repository)`. - public func actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output { + public func actionsGetWorkflowAccessToRepository(_ input: Operations.ActionsGetWorkflowAccessToRepository.Input) async throws -> Operations.ActionsGetWorkflowAccessToRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.id, + forOperation: Operations.ActionsGetWorkflowAccessToRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/access", @@ -6085,7 +6085,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.Ok.Body + let body: Operations.ActionsGetWorkflowAccessToRepository.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6095,7 +6095,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.self, + Components.Schemas.ActionsWorkflowAccessToRepository.self, from: responseBody, transforming: { value in .json(value) @@ -6127,10 +6127,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)`. - public func actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output { + public func actionsSetWorkflowAccessToRepository(_ input: Operations.ActionsSetWorkflowAccessToRepository.Input) async throws -> Operations.ActionsSetWorkflowAccessToRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.id, + forOperation: Operations.ActionsSetWorkflowAccessToRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/access", @@ -6179,10 +6179,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/get(actions/get-allowed-actions-repository)`. - public func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output { + public func actionsGetAllowedActionsRepository(_ input: Operations.ActionsGetAllowedActionsRepository.Input) async throws -> Operations.ActionsGetAllowedActionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.id, + forOperation: Operations.ActionsGetAllowedActionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/selected-actions", @@ -6206,7 +6206,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output.Ok.Body + let body: Operations.ActionsGetAllowedActionsRepository.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6216,7 +6216,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.selected_hyphen_actions.self, + Components.Schemas.SelectedActions.self, from: responseBody, transforming: { value in .json(value) @@ -6246,10 +6246,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)`. - public func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Output { + public func actionsSetAllowedActionsRepository(_ input: Operations.ActionsSetAllowedActionsRepository.Input) async throws -> Operations.ActionsSetAllowedActionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.id, + forOperation: Operations.ActionsSetAllowedActionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/selected-actions", @@ -6302,10 +6302,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-repository)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output { + public func actionsGetGithubActionsDefaultWorkflowPermissionsRepository(_ input: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.id, + forOperation: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/workflow", @@ -6329,7 +6329,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Ok.Body + let body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6339,7 +6339,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions.self, + Components.Schemas.ActionsGetDefaultWorkflowPermissions.self, from: responseBody, transforming: { value in .json(value) @@ -6371,10 +6371,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output { + public func actionsSetGithubActionsDefaultWorkflowPermissionsRepository(_ input: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.id, + forOperation: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/permissions/workflow", @@ -6427,10 +6427,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/get(actions/list-self-hosted-runners-for-repo)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output { + public func actionsListSelfHostedRunnersForRepo(_ input: Operations.ActionsListSelfHostedRunnersForRepo.Input) async throws -> Operations.ActionsListSelfHostedRunnersForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsListSelfHostedRunnersForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners", @@ -6456,7 +6456,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -6474,13 +6474,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6490,7 +6490,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -6525,10 +6525,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/downloads/get(actions/list-runner-applications-for-repo)`. - public func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output { + public func actionsListRunnerApplicationsForRepo(_ input: Operations.ActionsListRunnerApplicationsForRepo.Input) async throws -> Operations.ActionsListRunnerApplicationsForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsListRunnerApplicationsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/downloads", @@ -6552,7 +6552,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsListRunnerApplicationsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6562,7 +6562,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.runner_hyphen_application].self, + [Components.Schemas.RunnerApplication].self, from: responseBody, transforming: { value in .json(value) @@ -6594,10 +6594,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)`. - public func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Output { + public func actionsGenerateRunnerJitconfigForRepo(_ input: Operations.ActionsGenerateRunnerJitconfigForRepo.Input) async throws -> Operations.ActionsGenerateRunnerJitconfigForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsGenerateRunnerJitconfigForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/generate-jitconfig", @@ -6630,7 +6630,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_jitconfig.Body + let body: Components.Responses.ActionsRunnerJitconfig.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6640,7 +6640,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_jitconfig.Body.jsonPayload.self, + Components.Responses.ActionsRunnerJitconfig.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -6652,7 +6652,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6662,7 +6662,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6674,7 +6674,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6684,7 +6684,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -6696,7 +6696,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6706,7 +6706,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6744,10 +6744,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/registration-token/post(actions/create-registration-token-for-repo)`. - public func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output { + public func actionsCreateRegistrationTokenForRepo(_ input: Operations.ActionsCreateRegistrationTokenForRepo.Input) async throws -> Operations.ActionsCreateRegistrationTokenForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsCreateRegistrationTokenForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/registration-token", @@ -6771,7 +6771,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body + let body: Operations.ActionsCreateRegistrationTokenForRepo.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6781,7 +6781,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authentication_hyphen_token.self, + Components.Schemas.AuthenticationToken.self, from: responseBody, transforming: { value in .json(value) @@ -6819,10 +6819,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/remove-token/post(actions/create-remove-token-for-repo)`. - public func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output { + public func actionsCreateRemoveTokenForRepo(_ input: Operations.ActionsCreateRemoveTokenForRepo.Input) async throws -> Operations.ActionsCreateRemoveTokenForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsCreateRemoveTokenForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/remove-token", @@ -6846,7 +6846,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body + let body: Operations.ActionsCreateRemoveTokenForRepo.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6856,7 +6856,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authentication_hyphen_token.self, + Components.Schemas.AuthenticationToken.self, from: responseBody, transforming: { value in .json(value) @@ -6888,17 +6888,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-repo)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsGetSelfHostedRunnerForRepo(_ input: Operations.ActionsGetSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsGetSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsGetSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6916,7 +6916,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsGetSelfHostedRunnerForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6926,7 +6926,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.runner.self, + Components.Schemas.Runner.self, from: responseBody, transforming: { value in .json(value) @@ -6958,17 +6958,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Output { + public func actionsDeleteSelfHostedRunnerFromRepo(_ input: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.id, + forOperation: Operations.ActionsDeleteSelfHostedRunnerFromRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7004,17 +7004,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)`. - public func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsListLabelsForSelfHostedRunnerForRepo(_ input: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7032,7 +7032,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7042,7 +7042,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7054,7 +7054,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7064,7 +7064,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7096,17 +7096,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)`. - public func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsAddCustomLabelsToSelfHostedRunnerForRepo(_ input: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7133,7 +7133,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7143,7 +7143,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7155,7 +7155,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7165,7 +7165,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7177,7 +7177,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7187,7 +7187,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -7220,17 +7220,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)`. - public func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsSetCustomLabelsForSelfHostedRunnerForRepo(_ input: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7257,7 +7257,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7267,7 +7267,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7279,7 +7279,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7289,7 +7289,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7301,7 +7301,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7311,7 +7311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -7344,17 +7344,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)`. - public func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo(_ input: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id + input.path.runnerId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7372,7 +7372,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels_readonly.Body + let body: Components.Responses.ActionsRunnerLabelsReadonly.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7382,7 +7382,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels_readonly.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabelsReadonly.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7394,7 +7394,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7404,7 +7404,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7440,17 +7440,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)`. - public func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { + public func actionsRemoveCustomLabelFromSelfHostedRunnerForRepo(_ input: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runners/{}/labels/{}", parameters: [ input.path.owner, input.path.repo, - input.path.runner_id, + input.path.runnerId, input.path.name ] ) @@ -7469,7 +7469,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.actions_runner_labels.Body + let body: Components.Responses.ActionsRunnerLabels.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7479,7 +7479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.actions_runner_labels.Body.jsonPayload.self, + Components.Responses.ActionsRunnerLabels.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7491,7 +7491,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7501,7 +7501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7513,7 +7513,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7523,7 +7523,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -7557,10 +7557,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/get(actions/list-workflow-runs-for-repo)`. - public func actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output { + public func actionsListWorkflowRunsForRepo(_ input: Operations.ActionsListWorkflowRunsForRepo.Input) async throws -> Operations.ActionsListWorkflowRunsForRepo.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActionsListWorkflowRunsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs", @@ -7607,7 +7607,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7628,21 +7628,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "exclude_pull_requests", - value: input.query.exclude_pull_requests + value: input.query.excludePullRequests ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "check_suite_id", - value: input.query.check_suite_id + value: input.query.checkSuiteId ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "head_sha", - value: input.query.head_sha + value: input.query.headSha ) converter.setAcceptHeader( in: &request.headerFields, @@ -7653,13 +7653,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7669,7 +7669,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7704,17 +7704,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/get(actions/get-workflow-run)`. - public func actions_sol_get_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output { + public func actionsGetWorkflowRun(_ input: Operations.ActionsGetWorkflowRun.Input) async throws -> Operations.ActionsGetWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsGetWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7727,7 +7727,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "exclude_pull_requests", - value: input.query.exclude_pull_requests + value: input.query.excludePullRequests ) converter.setAcceptHeader( in: &request.headerFields, @@ -7739,7 +7739,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output.Ok.Body + let body: Operations.ActionsGetWorkflowRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7749,7 +7749,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.workflow_hyphen_run.self, + Components.Schemas.WorkflowRun.self, from: responseBody, transforming: { value in .json(value) @@ -7781,17 +7781,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)`. - public func actions_sol_delete_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Output { + public func actionsDeleteWorkflowRun(_ input: Operations.ActionsDeleteWorkflowRun.Input) async throws -> Operations.ActionsDeleteWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsDeleteWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7825,17 +7825,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approvals/get(actions/get-reviews-for-run)`. - public func actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run(_ input: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output { + public func actionsGetReviewsForRun(_ input: Operations.ActionsGetReviewsForRun.Input) async throws -> Operations.ActionsGetReviewsForRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.id, + forOperation: Operations.ActionsGetReviewsForRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/approvals", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7853,7 +7853,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output.Ok.Body + let body: Operations.ActionsGetReviewsForRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7863,7 +7863,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.environment_hyphen_approvals].self, + [Components.Schemas.EnvironmentApprovals].self, from: responseBody, transforming: { value in .json(value) @@ -7893,17 +7893,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)`. - public func actions_sol_approve_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output { + public func actionsApproveWorkflowRun(_ input: Operations.ActionsApproveWorkflowRun.Input) async throws -> Operations.ActionsApproveWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsApproveWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/approve", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7921,7 +7921,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output.Created.Body + let body: Operations.ActionsApproveWorkflowRun.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7931,7 +7931,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -7943,7 +7943,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7953,7 +7953,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7965,7 +7965,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7975,7 +7975,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8007,17 +8007,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/get(actions/list-workflow-run-artifacts)`. - public func actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output { + public func actionsListWorkflowRunArtifacts(_ input: Operations.ActionsListWorkflowRunArtifacts.Input) async throws -> Operations.ActionsListWorkflowRunArtifacts.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.id, + forOperation: Operations.ActionsListWorkflowRunArtifacts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/artifacts", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8030,7 +8030,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8055,13 +8055,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body + let body: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8071,7 +8071,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8106,18 +8106,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/get(actions/get-workflow-run-attempt)`. - public func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output { + public func actionsGetWorkflowRunAttempt(_ input: Operations.ActionsGetWorkflowRunAttempt.Input) async throws -> Operations.ActionsGetWorkflowRunAttempt.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.id, + forOperation: Operations.ActionsGetWorkflowRunAttempt.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/attempts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.run_id, - input.path.attempt_number + input.path.runId, + input.path.attemptNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8130,7 +8130,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "exclude_pull_requests", - value: input.query.exclude_pull_requests + value: input.query.excludePullRequests ) converter.setAcceptHeader( in: &request.headerFields, @@ -8142,7 +8142,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body + let body: Operations.ActionsGetWorkflowRunAttempt.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8152,7 +8152,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.workflow_hyphen_run.self, + Components.Schemas.WorkflowRun.self, from: responseBody, transforming: { value in .json(value) @@ -8185,18 +8185,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)`. - public func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt(_ input: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output { + public func actionsListJobsForWorkflowRunAttempt(_ input: Operations.ActionsListJobsForWorkflowRunAttempt.Input) async throws -> Operations.ActionsListJobsForWorkflowRunAttempt.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.id, + forOperation: Operations.ActionsListJobsForWorkflowRunAttempt.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/attempts/{}/jobs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id, - input.path.attempt_number + input.path.runId, + input.path.attemptNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8209,7 +8209,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8227,13 +8227,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body + let body: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8243,7 +8243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8258,7 +8258,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8268,7 +8268,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8301,18 +8301,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/get(actions/download-workflow-run-attempt-logs)`. - public func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs(_ input: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output { + public func actionsDownloadWorkflowRunAttemptLogs(_ input: Operations.ActionsDownloadWorkflowRunAttemptLogs.Input) async throws -> Operations.ActionsDownloadWorkflowRunAttemptLogs.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.id, + forOperation: Operations.ActionsDownloadWorkflowRunAttemptLogs.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/attempts/{}/logs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id, - input.path.attempt_number + input.path.runId, + input.path.attemptNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8325,7 +8325,7 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsDownloadWorkflowRunAttemptLogs.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -8351,17 +8351,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)`. - public func actions_sol_cancel_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output { + public func actionsCancelWorkflowRun(_ input: Operations.ActionsCancelWorkflowRun.Input) async throws -> Operations.ActionsCancelWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsCancelWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/cancel", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8379,7 +8379,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body + let body: Operations.ActionsCancelWorkflowRun.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8389,7 +8389,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -8401,7 +8401,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8411,7 +8411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8444,17 +8444,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)`. - public func actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run(_ input: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Output { + public func actionsReviewCustomGatesForRun(_ input: Operations.ActionsReviewCustomGatesForRun.Input) async throws -> Operations.ActionsReviewCustomGatesForRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.id, + forOperation: Operations.ActionsReviewCustomGatesForRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/deployment_protection_rule", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8498,17 +8498,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)`. - public func actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output { + public func actionsForceCancelWorkflowRun(_ input: Operations.ActionsForceCancelWorkflowRun.Input) async throws -> Operations.ActionsForceCancelWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsForceCancelWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/force-cancel", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8526,7 +8526,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body + let body: Operations.ActionsForceCancelWorkflowRun.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8536,7 +8536,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -8548,7 +8548,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8558,7 +8558,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8591,17 +8591,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/jobs/get(actions/list-jobs-for-workflow-run)`. - public func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output { + public func actionsListJobsForWorkflowRun(_ input: Operations.ActionsListJobsForWorkflowRun.Input) async throws -> Operations.ActionsListJobsForWorkflowRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.id, + forOperation: Operations.ActionsListJobsForWorkflowRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/jobs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8621,7 +8621,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8639,13 +8639,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body + let body: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8655,7 +8655,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8691,17 +8691,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/get(actions/download-workflow-run-logs)`. - public func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs(_ input: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output { + public func actionsDownloadWorkflowRunLogs(_ input: Operations.ActionsDownloadWorkflowRunLogs.Input) async throws -> Operations.ActionsDownloadWorkflowRunLogs.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.id, + forOperation: Operations.ActionsDownloadWorkflowRunLogs.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/logs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8714,7 +8714,7 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsDownloadWorkflowRunLogs.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -8740,17 +8740,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)`. - public func actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs(_ input: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Output { + public func actionsDeleteWorkflowRunLogs(_ input: Operations.ActionsDeleteWorkflowRunLogs.Input) async throws -> Operations.ActionsDeleteWorkflowRunLogs.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.id, + forOperation: Operations.ActionsDeleteWorkflowRunLogs.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/logs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8770,7 +8770,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8780,7 +8780,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8792,7 +8792,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8802,7 +8802,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8834,17 +8834,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/get(actions/get-pending-deployments-for-run)`. - public func actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(_ input: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output { + public func actionsGetPendingDeploymentsForRun(_ input: Operations.ActionsGetPendingDeploymentsForRun.Input) async throws -> Operations.ActionsGetPendingDeploymentsForRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.id, + forOperation: Operations.ActionsGetPendingDeploymentsForRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/pending_deployments", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8862,7 +8862,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body + let body: Operations.ActionsGetPendingDeploymentsForRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8872,7 +8872,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pending_hyphen_deployment].self, + [Components.Schemas.PendingDeployment].self, from: responseBody, transforming: { value in .json(value) @@ -8904,17 +8904,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/post(actions/review-pending-deployments-for-run)`. - public func actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(_ input: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output { + public func actionsReviewPendingDeploymentsForRun(_ input: Operations.ActionsReviewPendingDeploymentsForRun.Input) async throws -> Operations.ActionsReviewPendingDeploymentsForRun.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.id, + forOperation: Operations.ActionsReviewPendingDeploymentsForRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/pending_deployments", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8941,7 +8941,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body + let body: Operations.ActionsReviewPendingDeploymentsForRun.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8951,7 +8951,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.deployment].self, + [Components.Schemas.Deployment].self, from: responseBody, transforming: { value in .json(value) @@ -8981,17 +8981,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun/post(actions/re-run-workflow)`. - public func actions_sol_re_hyphen_run_hyphen_workflow(_ input: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output { + public func actionsReRunWorkflow(_ input: Operations.ActionsReRunWorkflow.Input) async throws -> Operations.ActionsReRunWorkflow.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_re_hyphen_run_hyphen_workflow.id, + forOperation: Operations.ActionsReRunWorkflow.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/rerun", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9020,7 +9020,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output.Created.Body + let body: Operations.ActionsReRunWorkflow.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9030,7 +9030,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -9060,17 +9060,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/post(actions/re-run-workflow-failed-jobs)`. - public func actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs(_ input: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output { + public func actionsReRunWorkflowFailedJobs(_ input: Operations.ActionsReRunWorkflowFailedJobs.Input) async throws -> Operations.ActionsReRunWorkflowFailedJobs.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.id, + forOperation: Operations.ActionsReRunWorkflowFailedJobs.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/rerun-failed-jobs", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9099,7 +9099,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output.Created.Body + let body: Operations.ActionsReRunWorkflowFailedJobs.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9109,7 +9109,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -9144,17 +9144,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/timing/get(actions/get-workflow-run-usage)`. - public func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output { + public func actionsGetWorkflowRunUsage(_ input: Operations.ActionsGetWorkflowRunUsage.Input) async throws -> Operations.ActionsGetWorkflowRunUsage.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.id, + forOperation: Operations.ActionsGetWorkflowRunUsage.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/runs/{}/timing", parameters: [ input.path.owner, input.path.repo, - input.path.run_id + input.path.runId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9172,7 +9172,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output.Ok.Body + let body: Operations.ActionsGetWorkflowRunUsage.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9182,7 +9182,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.workflow_hyphen_run_hyphen_usage.self, + Components.Schemas.WorkflowRunUsage.self, from: responseBody, transforming: { value in .json(value) @@ -9215,10 +9215,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/get(actions/list-repo-secrets)`. - public func actions_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output { + public func actionsListRepoSecrets(_ input: Operations.ActionsListRepoSecrets.Input) async throws -> Operations.ActionsListRepoSecrets.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.id, + forOperation: Operations.ActionsListRepoSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/secrets", @@ -9237,7 +9237,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -9255,13 +9255,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListRepoSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + let body: Operations.ActionsListRepoSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9271,7 +9271,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -9307,10 +9307,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/public-key/get(actions/get-repo-public-key)`. - public func actions_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { + public func actionsGetRepoPublicKey(_ input: Operations.ActionsGetRepoPublicKey.Input) async throws -> Operations.ActionsGetRepoPublicKey.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.id, + forOperation: Operations.ActionsGetRepoPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/secrets/public-key", @@ -9334,7 +9334,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.ActionsGetRepoPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9344,7 +9344,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_public_hyphen_key.self, + Components.Schemas.ActionsPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -9376,17 +9376,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/get(actions/get-repo-secret)`. - public func actions_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output { + public func actionsGetRepoSecret(_ input: Operations.ActionsGetRepoSecret.Input) async throws -> Operations.ActionsGetRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_repo_hyphen_secret.id, + forOperation: Operations.ActionsGetRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9404,7 +9404,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + let body: Operations.ActionsGetRepoSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9414,7 +9414,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_secret.self, + Components.Schemas.ActionsSecret.self, from: responseBody, transforming: { value in .json(value) @@ -9447,17 +9447,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { + public func actionsCreateOrUpdateRepoSecret(_ input: Operations.ActionsCreateOrUpdateRepoSecret.Input) async throws -> Operations.ActionsCreateOrUpdateRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.id, + forOperation: Operations.ActionsCreateOrUpdateRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9484,7 +9484,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + let body: Operations.ActionsCreateOrUpdateRepoSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9494,7 +9494,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -9528,17 +9528,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)`. - public func actions_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Output { + public func actionsDeleteRepoSecret(_ input: Operations.ActionsDeleteRepoSecret.Input) async throws -> Operations.ActionsDeleteRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.id, + forOperation: Operations.ActionsDeleteRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9574,10 +9574,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/get(actions/list-repo-variables)`. - public func actions_sol_list_hyphen_repo_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output { + public func actionsListRepoVariables(_ input: Operations.ActionsListRepoVariables.Input) async throws -> Operations.ActionsListRepoVariables.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_variables.id, + forOperation: Operations.ActionsListRepoVariables.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/variables", @@ -9596,7 +9596,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -9614,13 +9614,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListRepoVariables.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body + let body: Operations.ActionsListRepoVariables.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9630,7 +9630,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoVariables.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -9665,10 +9665,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/post(actions/create-repo-variable)`. - public func actions_sol_create_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output { + public func actionsCreateRepoVariable(_ input: Operations.ActionsCreateRepoVariable.Input) async throws -> Operations.ActionsCreateRepoVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_repo_hyphen_variable.id, + forOperation: Operations.ActionsCreateRepoVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/variables", @@ -9701,7 +9701,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output.Created.Body + let body: Operations.ActionsCreateRepoVariable.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9711,7 +9711,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -9743,10 +9743,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/get(actions/get-repo-variable)`. - public func actions_sol_get_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output { + public func actionsGetRepoVariable(_ input: Operations.ActionsGetRepoVariable.Input) async throws -> Operations.ActionsGetRepoVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_repo_hyphen_variable.id, + forOperation: Operations.ActionsGetRepoVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/variables/{}", @@ -9771,7 +9771,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output.Ok.Body + let body: Operations.ActionsGetRepoVariable.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9781,7 +9781,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_variable.self, + Components.Schemas.ActionsVariable.self, from: responseBody, transforming: { value in .json(value) @@ -9813,10 +9813,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)`. - public func actions_sol_update_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_repo_hyphen_variable.Output { + public func actionsUpdateRepoVariable(_ input: Operations.ActionsUpdateRepoVariable.Input) async throws -> Operations.ActionsUpdateRepoVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_update_hyphen_repo_hyphen_variable.id, + forOperation: Operations.ActionsUpdateRepoVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/variables/{}", @@ -9868,10 +9868,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)`. - public func actions_sol_delete_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Output { + public func actionsDeleteRepoVariable(_ input: Operations.ActionsDeleteRepoVariable.Input) async throws -> Operations.ActionsDeleteRepoVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.id, + forOperation: Operations.ActionsDeleteRepoVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/variables/{}", @@ -9914,10 +9914,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/get(actions/list-repo-workflows)`. - public func actions_sol_list_hyphen_repo_hyphen_workflows(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output { + public func actionsListRepoWorkflows(_ input: Operations.ActionsListRepoWorkflows.Input) async throws -> Operations.ActionsListRepoWorkflows.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.id, + forOperation: Operations.ActionsListRepoWorkflows.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows", @@ -9936,7 +9936,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -9954,13 +9954,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListRepoWorkflows.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body + let body: Operations.ActionsListRepoWorkflows.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9970,7 +9970,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListRepoWorkflows.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10006,17 +10006,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/get(actions/get-workflow)`. - public func actions_sol_get_hyphen_workflow(_ input: Operations.actions_sol_get_hyphen_workflow.Input) async throws -> Operations.actions_sol_get_hyphen_workflow.Output { + public func actionsGetWorkflow(_ input: Operations.ActionsGetWorkflow.Input) async throws -> Operations.ActionsGetWorkflow.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow.id, + forOperation: Operations.ActionsGetWorkflow.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10034,7 +10034,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow.Output.Ok.Body + let body: Operations.ActionsGetWorkflow.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10044,7 +10044,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.workflow.self, + Components.Schemas.Workflow.self, from: responseBody, transforming: { value in .json(value) @@ -10074,17 +10074,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)`. - public func actions_sol_disable_hyphen_workflow(_ input: Operations.actions_sol_disable_hyphen_workflow.Input) async throws -> Operations.actions_sol_disable_hyphen_workflow.Output { + public func actionsDisableWorkflow(_ input: Operations.ActionsDisableWorkflow.Input) async throws -> Operations.ActionsDisableWorkflow.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_disable_hyphen_workflow.id, + forOperation: Operations.ActionsDisableWorkflow.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}/disable", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10120,17 +10120,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)`. - public func actions_sol_create_hyphen_workflow_hyphen_dispatch(_ input: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input) async throws -> Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Output { + public func actionsCreateWorkflowDispatch(_ input: Operations.ActionsCreateWorkflowDispatch.Input) async throws -> Operations.ActionsCreateWorkflowDispatch.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.id, + forOperation: Operations.ActionsCreateWorkflowDispatch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}/dispatches", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10173,17 +10173,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)`. - public func actions_sol_enable_hyphen_workflow(_ input: Operations.actions_sol_enable_hyphen_workflow.Input) async throws -> Operations.actions_sol_enable_hyphen_workflow.Output { + public func actionsEnableWorkflow(_ input: Operations.ActionsEnableWorkflow.Input) async throws -> Operations.ActionsEnableWorkflow.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_enable_hyphen_workflow.id, + forOperation: Operations.ActionsEnableWorkflow.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}/enable", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10221,17 +10221,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/get(actions/list-workflow-runs)`. - public func actions_sol_list_hyphen_workflow_hyphen_runs(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output { + public func actionsListWorkflowRuns(_ input: Operations.ActionsListWorkflowRuns.Input) async throws -> Operations.ActionsListWorkflowRuns.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.id, + forOperation: Operations.ActionsListWorkflowRuns.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}/runs", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10272,7 +10272,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -10293,21 +10293,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "exclude_pull_requests", - value: input.query.exclude_pull_requests + value: input.query.excludePullRequests ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "check_suite_id", - value: input.query.check_suite_id + value: input.query.checkSuiteId ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "head_sha", - value: input.query.head_sha + value: input.query.headSha ) converter.setAcceptHeader( in: &request.headerFields, @@ -10318,13 +10318,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListWorkflowRuns.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body + let body: Operations.ActionsListWorkflowRuns.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10334,7 +10334,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListWorkflowRuns.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10374,17 +10374,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/get(actions/get-workflow-usage)`. - public func actions_sol_get_hyphen_workflow_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output { + public func actionsGetWorkflowUsage(_ input: Operations.ActionsGetWorkflowUsage.Input) async throws -> Operations.ActionsGetWorkflowUsage.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.id, + forOperation: Operations.ActionsGetWorkflowUsage.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/actions/workflows/{}/timing", parameters: [ input.path.owner, input.path.repo, - input.path.workflow_id + input.path.workflowId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10402,7 +10402,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output.Ok.Body + let body: Operations.ActionsGetWorkflowUsage.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10412,7 +10412,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.workflow_hyphen_usage.self, + Components.Schemas.WorkflowUsage.self, from: responseBody, transforming: { value in .json(value) @@ -10445,17 +10445,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/get(actions/list-environment-secrets)`. - public func actions_sol_list_hyphen_environment_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output { + public func actionsListEnvironmentSecrets(_ input: Operations.ActionsListEnvironmentSecrets.Input) async throws -> Operations.ActionsListEnvironmentSecrets.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.id, + forOperation: Operations.ActionsListEnvironmentSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/secrets", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10468,7 +10468,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -10486,13 +10486,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListEnvironmentSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body + let body: Operations.ActionsListEnvironmentSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10502,7 +10502,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListEnvironmentSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10538,17 +10538,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/get(actions/get-environment-public-key)`. - public func actions_sol_get_hyphen_environment_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output { + public func actionsGetEnvironmentPublicKey(_ input: Operations.ActionsGetEnvironmentPublicKey.Input) async throws -> Operations.ActionsGetEnvironmentPublicKey.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.id, + forOperation: Operations.ActionsGetEnvironmentPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/secrets/public-key", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10566,7 +10566,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.ActionsGetEnvironmentPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10576,7 +10576,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_public_hyphen_key.self, + Components.Schemas.ActionsPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -10608,18 +10608,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/get(actions/get-environment-secret)`. - public func actions_sol_get_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output { + public func actionsGetEnvironmentSecret(_ input: Operations.ActionsGetEnvironmentSecret.Input) async throws -> Operations.ActionsGetEnvironmentSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_environment_hyphen_secret.id, + forOperation: Operations.ActionsGetEnvironmentSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.secret_name + input.path.environmentName, + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10637,7 +10637,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output.Ok.Body + let body: Operations.ActionsGetEnvironmentSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10647,7 +10647,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_secret.self, + Components.Schemas.ActionsSecret.self, from: responseBody, transforming: { value in .json(value) @@ -10680,18 +10680,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output { + public func actionsCreateOrUpdateEnvironmentSecret(_ input: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input) async throws -> Operations.ActionsCreateOrUpdateEnvironmentSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.id, + forOperation: Operations.ActionsCreateOrUpdateEnvironmentSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.secret_name + input.path.environmentName, + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10718,7 +10718,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.Created.Body + let body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10728,7 +10728,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -10762,18 +10762,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)`. - public func actions_sol_delete_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Output { + public func actionsDeleteEnvironmentSecret(_ input: Operations.ActionsDeleteEnvironmentSecret.Input) async throws -> Operations.ActionsDeleteEnvironmentSecret.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.id, + forOperation: Operations.ActionsDeleteEnvironmentSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.secret_name + input.path.environmentName, + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10809,17 +10809,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/get(actions/list-environment-variables)`. - public func actions_sol_list_hyphen_environment_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output { + public func actionsListEnvironmentVariables(_ input: Operations.ActionsListEnvironmentVariables.Input) async throws -> Operations.ActionsListEnvironmentVariables.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_list_hyphen_environment_hyphen_variables.id, + forOperation: Operations.ActionsListEnvironmentVariables.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/variables", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10832,7 +10832,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -10850,13 +10850,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActionsListEnvironmentVariables.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body + let body: Operations.ActionsListEnvironmentVariables.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10866,7 +10866,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body.jsonPayload.self, + Operations.ActionsListEnvironmentVariables.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10901,17 +10901,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/post(actions/create-environment-variable)`. - public func actions_sol_create_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output { + public func actionsCreateEnvironmentVariable(_ input: Operations.ActionsCreateEnvironmentVariable.Input) async throws -> Operations.ActionsCreateEnvironmentVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_create_hyphen_environment_hyphen_variable.id, + forOperation: Operations.ActionsCreateEnvironmentVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/variables", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10938,7 +10938,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output.Created.Body + let body: Operations.ActionsCreateEnvironmentVariable.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10948,7 +10948,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -10980,17 +10980,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/get(actions/get-environment-variable)`. - public func actions_sol_get_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output { + public func actionsGetEnvironmentVariable(_ input: Operations.ActionsGetEnvironmentVariable.Input) async throws -> Operations.ActionsGetEnvironmentVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_get_hyphen_environment_hyphen_variable.id, + forOperation: Operations.ActionsGetEnvironmentVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/variables/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, + input.path.environmentName, input.path.name ] ) @@ -11009,7 +11009,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output.Ok.Body + let body: Operations.ActionsGetEnvironmentVariable.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11019,7 +11019,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_variable.self, + Components.Schemas.ActionsVariable.self, from: responseBody, transforming: { value in .json(value) @@ -11051,17 +11051,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)`. - public func actions_sol_update_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_environment_hyphen_variable.Output { + public func actionsUpdateEnvironmentVariable(_ input: Operations.ActionsUpdateEnvironmentVariable.Input) async throws -> Operations.ActionsUpdateEnvironmentVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_update_hyphen_environment_hyphen_variable.id, + forOperation: Operations.ActionsUpdateEnvironmentVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/variables/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, + input.path.environmentName, input.path.name ] ) @@ -11107,17 +11107,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)`. - public func actions_sol_delete_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Output { + public func actionsDeleteEnvironmentVariable(_ input: Operations.ActionsDeleteEnvironmentVariable.Input) async throws -> Operations.ActionsDeleteEnvironmentVariable.Output { try await client.send( input: input, - forOperation: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.id, + forOperation: Operations.ActionsDeleteEnvironmentVariable.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/variables/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, + input.path.environmentName, input.path.name ] ) diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index e3a45d02a0..19d18b4693 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -20,7 +20,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage/get(actions/get-actions-cache-usage-for-org)`. - func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output + func actionsGetActionsCacheUsageForOrg(_ input: Operations.ActionsGetActionsCacheUsageForOrg.Input) async throws -> Operations.ActionsGetActionsCacheUsageForOrg.Output /// List repositories with GitHub Actions cache usage for an organization /// /// Lists repositories and their GitHub Actions cache usage for an organization. @@ -30,7 +30,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage-by-repository`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage-by-repository/get(actions/get-actions-cache-usage-by-repo-for-org)`. - func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output + func actionsGetActionsCacheUsageByRepoForOrg(_ input: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input) async throws -> Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output /// List GitHub-hosted runners for an organization /// /// Lists all GitHub-hosted runners configured in an organization. @@ -39,7 +39,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/get(actions/list-hosted-runners-for-org)`. - func actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output + func actionsListHostedRunnersForOrg(_ input: Operations.ActionsListHostedRunnersForOrg.Input) async throws -> Operations.ActionsListHostedRunnersForOrg.Output /// Create a GitHub-hosted runner for an organization /// /// Creates a GitHub-hosted runner for an organization. @@ -47,42 +47,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/post(actions/create-hosted-runner-for-org)`. - func actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsCreateHostedRunnerForOrg(_ input: Operations.ActionsCreateHostedRunnerForOrg.Input) async throws -> Operations.ActionsCreateHostedRunnerForOrg.Output /// Get GitHub-owned images for GitHub-hosted runners in an organization /// /// Get the list of GitHub-owned images available for GitHub-hosted runners for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/github-owned`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/github-owned/get(actions/get-hosted-runners-github-owned-images-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnersGithubOwnedImagesForOrg(_ input: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output /// Get partner images for GitHub-hosted runners in an organization /// /// Get the list of partner images available for GitHub-hosted runners for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/partner`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/partner/get(actions/get-hosted-runners-partner-images-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnersPartnerImagesForOrg(_ input: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output /// Get limits on GitHub-hosted runners for an organization /// /// Get the GitHub-hosted runners limits for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/limits`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/limits/get(actions/get-hosted-runners-limits-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnersLimitsForOrg(_ input: Operations.ActionsGetHostedRunnersLimitsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersLimitsForOrg.Output /// Get GitHub-hosted runners machine specs for an organization /// /// Get the list of machine specs available for GitHub-hosted runners for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/machine-sizes`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/machine-sizes/get(actions/get-hosted-runners-machine-specs-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnersMachineSpecsForOrg(_ input: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output /// Get platforms for GitHub-hosted runners in an organization /// /// Get the list of platforms available for GitHub-hosted runners for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/platforms`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/platforms/get(actions/get-hosted-runners-platforms-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnersPlatformsForOrg(_ input: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input) async throws -> Operations.ActionsGetHostedRunnersPlatformsForOrg.Output /// Get a GitHub-hosted runner for an organization /// /// Gets a GitHub-hosted runner configured in an organization. @@ -91,7 +91,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/get(actions/get-hosted-runner-for-org)`. - func actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsGetHostedRunnerForOrg(_ input: Operations.ActionsGetHostedRunnerForOrg.Input) async throws -> Operations.ActionsGetHostedRunnerForOrg.Output /// Update a GitHub-hosted runner for an organization /// /// Updates a GitHub-hosted runner for an organization. @@ -99,14 +99,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/patch(actions/update-hosted-runner-for-org)`. - func actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsUpdateHostedRunnerForOrg(_ input: Operations.ActionsUpdateHostedRunnerForOrg.Input) async throws -> Operations.ActionsUpdateHostedRunnerForOrg.Output /// Delete a GitHub-hosted runner for an organization /// /// Deletes a GitHub-hosted runner for an organization. /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/delete(actions/delete-hosted-runner-for-org)`. - func actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsDeleteHostedRunnerForOrg(_ input: Operations.ActionsDeleteHostedRunnerForOrg.Input) async throws -> Operations.ActionsDeleteHostedRunnerForOrg.Output /// Get GitHub Actions permissions for an organization /// /// Gets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization. @@ -115,7 +115,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/get(actions/get-github-actions-permissions-organization)`. - func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output + func actionsGetGithubActionsPermissionsOrganization(_ input: Operations.ActionsGetGithubActionsPermissionsOrganization.Input) async throws -> Operations.ActionsGetGithubActionsPermissionsOrganization.Output /// Set GitHub Actions permissions for an organization /// /// Sets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization. @@ -124,7 +124,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)`. - func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output + func actionsSetGithubActionsPermissionsOrganization(_ input: Operations.ActionsSetGithubActionsPermissionsOrganization.Input) async throws -> Operations.ActionsSetGithubActionsPermissionsOrganization.Output /// List selected repositories enabled for GitHub Actions in an organization /// /// Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -133,7 +133,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/get(actions/list-selected-repositories-enabled-github-actions-organization)`. - func actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output + func actionsListSelectedRepositoriesEnabledGithubActionsOrganization(_ input: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input) async throws -> Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output /// Set selected repositories enabled for GitHub Actions in an organization /// /// Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -143,7 +143,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)`. - func actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output + func actionsSetSelectedRepositoriesEnabledGithubActionsOrganization(_ input: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input) async throws -> Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Output /// Enable a selected repository for GitHub Actions in an organization /// /// Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -152,7 +152,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)`. - func actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output + func actionsEnableSelectedRepositoryGithubActionsOrganization(_ input: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input) async throws -> Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Output /// Disable a selected repository for GitHub Actions in an organization /// /// Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -161,7 +161,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)`. - func actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output + func actionsDisableSelectedRepositoryGithubActionsOrganization(_ input: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input) async throws -> Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Output /// Get allowed actions and reusable workflows for an organization /// /// Gets the selected actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -170,7 +170,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/get(actions/get-allowed-actions-organization)`. - func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output + func actionsGetAllowedActionsOrganization(_ input: Operations.ActionsGetAllowedActionsOrganization.Input) async throws -> Operations.ActionsGetAllowedActionsOrganization.Output /// Set allowed actions and reusable workflows for an organization /// /// Sets the actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." @@ -179,7 +179,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)`. - func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Output + func actionsSetAllowedActionsOrganization(_ input: Operations.ActionsSetAllowedActionsOrganization.Input) async throws -> Operations.ActionsSetAllowedActionsOrganization.Output /// Get default workflow permissions for an organization /// /// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, @@ -190,7 +190,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-organization)`. - func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output + func actionsGetGithubActionsDefaultWorkflowPermissionsOrganization(_ input: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output /// Set default workflow permissions for an organization /// /// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an organization, and sets if GitHub Actions @@ -201,7 +201,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)`. - func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output + func actionsSetGithubActionsDefaultWorkflowPermissionsOrganization(_ input: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Output /// List self-hosted runner groups for an organization /// /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. @@ -210,7 +210,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. - func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output + func actionsListSelfHostedRunnerGroupsForOrg(_ input: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output /// Create a self-hosted runner group for an organization /// /// Creates a new self-hosted runner group for an organization. @@ -219,7 +219,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. - func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + func actionsCreateSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output /// Get a self-hosted runner group for an organization /// /// Gets a specific self-hosted runner group for an organization. @@ -228,7 +228,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. - func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + func actionsGetSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output /// Update a self-hosted runner group for an organization /// /// Updates the `name` and `visibility` of a self-hosted runner group in an organization. @@ -237,7 +237,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. - func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + func actionsUpdateSelfHostedRunnerGroupForOrg(_ input: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input) async throws -> Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output /// Delete a self-hosted runner group from an organization /// /// Deletes a self-hosted runner group for an organization. @@ -246,7 +246,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. - func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output + func actionsDeleteSelfHostedRunnerGroupFromOrg(_ input: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Output /// List GitHub-hosted runners in a group for an organization /// /// Lists the GitHub-hosted runners in an organization group. @@ -255,7 +255,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/get(actions/list-github-hosted-runners-in-group-for-org)`. - func actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output + func actionsListGithubHostedRunnersInGroupForOrg(_ input: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output /// List repository access to a self-hosted runner group in an organization /// /// Lists the repositories with access to a self-hosted runner group configured in an organization. @@ -264,7 +264,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. - func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + func actionsListRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output /// Set repository access for a self-hosted runner group in an organization /// /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. @@ -273,7 +273,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. - func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + func actionsSetRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Output /// Add repository access to a self-hosted runner group in an organization /// /// Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." @@ -282,7 +282,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. - func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + func actionsAddRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Output /// Remove repository access to a self-hosted runner group in an organization /// /// Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." @@ -291,7 +291,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. - func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + func actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(_ input: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input) async throws -> Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Output /// List self-hosted runners in a group for an organization /// /// Lists self-hosted runners that are in a specific organization group. @@ -300,7 +300,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. - func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output + func actionsListSelfHostedRunnersInGroupForOrg(_ input: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output /// Set self-hosted runners in a group for an organization /// /// Replaces the list of self-hosted runners that are part of an organization runner group. @@ -309,7 +309,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. - func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output + func actionsSetSelfHostedRunnersInGroupForOrg(_ input: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input) async throws -> Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Output /// Add a self-hosted runner to a group for an organization /// /// Adds a self-hosted runner to a runner group configured in an organization. @@ -318,7 +318,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. - func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output + func actionsAddSelfHostedRunnerToGroupForOrg(_ input: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input) async throws -> Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Output /// Remove a self-hosted runner from a group for an organization /// /// Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. @@ -327,7 +327,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. - func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output + func actionsRemoveSelfHostedRunnerFromGroupForOrg(_ input: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input) async throws -> Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Output /// List self-hosted runners for an organization /// /// Lists all self-hosted runners configured in an organization. @@ -338,7 +338,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/get(actions/list-self-hosted-runners-for-org)`. - func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output + func actionsListSelfHostedRunnersForOrg(_ input: Operations.ActionsListSelfHostedRunnersForOrg.Input) async throws -> Operations.ActionsListSelfHostedRunnersForOrg.Output /// List runner applications for an organization /// /// Lists binaries for the runner application that you can download and run. @@ -349,7 +349,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/downloads/get(actions/list-runner-applications-for-org)`. - func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output + func actionsListRunnerApplicationsForOrg(_ input: Operations.ActionsListRunnerApplicationsForOrg.Input) async throws -> Operations.ActionsListRunnerApplicationsForOrg.Output /// Create configuration for a just-in-time runner for an organization /// /// Generates a configuration that can be passed to the runner application at startup. @@ -360,7 +360,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)`. - func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org(_ input: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Output + func actionsGenerateRunnerJitconfigForOrg(_ input: Operations.ActionsGenerateRunnerJitconfigForOrg.Input) async throws -> Operations.ActionsGenerateRunnerJitconfigForOrg.Output /// Create a registration token for an organization /// /// Returns a token that you can pass to the `config` script. The token expires after one hour. @@ -377,7 +377,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/registration-token/post(actions/create-registration-token-for-org)`. - func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output + func actionsCreateRegistrationTokenForOrg(_ input: Operations.ActionsCreateRegistrationTokenForOrg.Input) async throws -> Operations.ActionsCreateRegistrationTokenForOrg.Output /// Create a remove token for an organization /// /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour. @@ -394,7 +394,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/remove-token/post(actions/create-remove-token-for-org)`. - func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output + func actionsCreateRemoveTokenForOrg(_ input: Operations.ActionsCreateRemoveTokenForOrg.Input) async throws -> Operations.ActionsCreateRemoveTokenForOrg.Output /// Get a self-hosted runner for an organization /// /// Gets a specific self-hosted runner configured in an organization. @@ -405,7 +405,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-org)`. - func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsGetSelfHostedRunnerForOrg(_ input: Operations.ActionsGetSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsGetSelfHostedRunnerForOrg.Output /// Delete a self-hosted runner from an organization /// /// Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. @@ -416,7 +416,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`. - func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Output + func actionsDeleteSelfHostedRunnerFromOrg(_ input: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output /// List labels for a self-hosted runner for an organization /// /// Lists all labels for a self-hosted runner configured in an organization. @@ -427,7 +427,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)`. - func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsListLabelsForSelfHostedRunnerForOrg(_ input: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Output /// Add custom labels to a self-hosted runner for an organization /// /// Adds custom labels to a self-hosted runner configured in an organization. @@ -438,7 +438,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)`. - func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsAddCustomLabelsToSelfHostedRunnerForOrg(_ input: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Output /// Set custom labels for a self-hosted runner for an organization /// /// Remove all previous custom labels and set the new custom labels for a specific @@ -450,7 +450,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)`. - func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsSetCustomLabelsForSelfHostedRunnerForOrg(_ input: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Output /// Remove all custom labels from a self-hosted runner for an organization /// /// Remove all custom labels from a self-hosted runner configured in an @@ -462,7 +462,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)`. - func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg(_ input: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Output /// Remove a custom label from a self-hosted runner for an organization /// /// Remove a custom label from a self-hosted runner configured @@ -477,7 +477,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)`. - func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output + func actionsRemoveCustomLabelFromSelfHostedRunnerForOrg(_ input: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Output /// List organization secrets /// /// Lists all secrets available in an organization without revealing their @@ -489,7 +489,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/get(actions/list-org-secrets)`. - func actions_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output + func actionsListOrgSecrets(_ input: Operations.ActionsListOrgSecrets.Input) async throws -> Operations.ActionsListOrgSecrets.Output /// Get an organization public key /// /// Gets your public key, which you need to encrypt secrets. You need to @@ -501,7 +501,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/public-key/get(actions/get-org-public-key)`. - func actions_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output + func actionsGetOrgPublicKey(_ input: Operations.ActionsGetOrgPublicKey.Input) async throws -> Operations.ActionsGetOrgPublicKey.Output /// Get an organization secret /// /// Gets a single organization secret without revealing its encrypted value. @@ -512,7 +512,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/get(actions/get-org-secret)`. - func actions_sol_get_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_secret.Output + func actionsGetOrgSecret(_ input: Operations.ActionsGetOrgSecret.Input) async throws -> Operations.ActionsGetOrgSecret.Output /// Create or update an organization secret /// /// Creates or updates an organization secret with an encrypted value. Encrypt your secret using @@ -524,7 +524,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)`. - func actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output + func actionsCreateOrUpdateOrgSecret(_ input: Operations.ActionsCreateOrUpdateOrgSecret.Input) async throws -> Operations.ActionsCreateOrUpdateOrgSecret.Output /// Delete an organization secret /// /// Deletes a secret in an organization using the secret name. @@ -535,7 +535,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)`. - func actions_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_secret.Output + func actionsDeleteOrgSecret(_ input: Operations.ActionsDeleteOrgSecret.Input) async throws -> Operations.ActionsDeleteOrgSecret.Output /// List selected repositories for an organization secret /// /// Lists all repositories that have been selected when the `visibility` @@ -547,7 +547,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/get(actions/list-selected-repos-for-org-secret)`. - func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func actionsListSelectedReposForOrgSecret(_ input: Operations.ActionsListSelectedReposForOrgSecret.Input) async throws -> Operations.ActionsListSelectedReposForOrgSecret.Output /// Set selected repositories for an organization secret /// /// Replaces all repositories for an organization secret when the `visibility` @@ -560,7 +560,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)`. - func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func actionsSetSelectedReposForOrgSecret(_ input: Operations.ActionsSetSelectedReposForOrgSecret.Input) async throws -> Operations.ActionsSetSelectedReposForOrgSecret.Output /// Add selected repository to an organization secret /// /// Adds a repository to an organization secret when the `visibility` for @@ -573,7 +573,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)`. - func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output + func actionsAddSelectedRepoToOrgSecret(_ input: Operations.ActionsAddSelectedRepoToOrgSecret.Input) async throws -> Operations.ActionsAddSelectedRepoToOrgSecret.Output /// Remove selected repository from an organization secret /// /// Removes a repository from an organization secret when the `visibility` @@ -586,7 +586,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)`. - func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output + func actionsRemoveSelectedRepoFromOrgSecret(_ input: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output /// List organization variables /// /// Lists all organization variables. @@ -597,7 +597,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/get(actions/list-org-variables)`. - func actions_sol_list_hyphen_org_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_variables.Output + func actionsListOrgVariables(_ input: Operations.ActionsListOrgVariables.Input) async throws -> Operations.ActionsListOrgVariables.Output /// Create an organization variable /// /// Creates an organization variable that you can reference in a GitHub Actions workflow. @@ -608,7 +608,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/post(actions/create-org-variable)`. - func actions_sol_create_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_org_hyphen_variable.Output + func actionsCreateOrgVariable(_ input: Operations.ActionsCreateOrgVariable.Input) async throws -> Operations.ActionsCreateOrgVariable.Output /// Get an organization variable /// /// Gets a specific variable in an organization. @@ -619,7 +619,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/get(actions/get-org-variable)`. - func actions_sol_get_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_variable.Output + func actionsGetOrgVariable(_ input: Operations.ActionsGetOrgVariable.Input) async throws -> Operations.ActionsGetOrgVariable.Output /// Update an organization variable /// /// Updates an organization variable that you can reference in a GitHub Actions workflow. @@ -630,7 +630,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)`. - func actions_sol_update_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_org_hyphen_variable.Output + func actionsUpdateOrgVariable(_ input: Operations.ActionsUpdateOrgVariable.Input) async throws -> Operations.ActionsUpdateOrgVariable.Output /// Delete an organization variable /// /// Deletes an organization variable using the variable name. @@ -641,7 +641,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)`. - func actions_sol_delete_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_variable.Output + func actionsDeleteOrgVariable(_ input: Operations.ActionsDeleteOrgVariable.Input) async throws -> Operations.ActionsDeleteOrgVariable.Output /// List selected repositories for an organization variable /// /// Lists all repositories that can access an organization variable @@ -653,7 +653,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)`. - func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output + func actionsListSelectedReposForOrgVariable(_ input: Operations.ActionsListSelectedReposForOrgVariable.Input) async throws -> Operations.ActionsListSelectedReposForOrgVariable.Output /// Set selected repositories for an organization variable /// /// Replaces all repositories for an organization variable that is available @@ -666,7 +666,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)`. - func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output + func actionsSetSelectedReposForOrgVariable(_ input: Operations.ActionsSetSelectedReposForOrgVariable.Input) async throws -> Operations.ActionsSetSelectedReposForOrgVariable.Output /// Add selected repository to an organization variable /// /// Adds a repository to an organization variable that is available to selected repositories. @@ -678,7 +678,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)`. - func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output + func actionsAddSelectedRepoToOrgVariable(_ input: Operations.ActionsAddSelectedRepoToOrgVariable.Input) async throws -> Operations.ActionsAddSelectedRepoToOrgVariable.Output /// Remove selected repository from an organization variable /// /// Removes a repository from an organization variable that is @@ -691,7 +691,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)`. - func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable(_ input: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output + func actionsRemoveSelectedRepoFromOrgVariable(_ input: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output /// List artifacts for a repository /// /// Lists all artifacts for a repository. @@ -702,7 +702,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/get(actions/list-artifacts-for-repo)`. - func actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output + func actionsListArtifactsForRepo(_ input: Operations.ActionsListArtifactsForRepo.Input) async throws -> Operations.ActionsListArtifactsForRepo.Output /// Get an artifact /// /// Gets a specific artifact for a workflow run. @@ -713,7 +713,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/get(actions/get-artifact)`. - func actions_sol_get_hyphen_artifact(_ input: Operations.actions_sol_get_hyphen_artifact.Input) async throws -> Operations.actions_sol_get_hyphen_artifact.Output + func actionsGetArtifact(_ input: Operations.ActionsGetArtifact.Input) async throws -> Operations.ActionsGetArtifact.Output /// Delete an artifact /// /// Deletes an artifact for a workflow run. @@ -721,7 +721,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)`. - func actions_sol_delete_hyphen_artifact(_ input: Operations.actions_sol_delete_hyphen_artifact.Input) async throws -> Operations.actions_sol_delete_hyphen_artifact.Output + func actionsDeleteArtifact(_ input: Operations.ActionsDeleteArtifact.Input) async throws -> Operations.ActionsDeleteArtifact.Output /// Download an artifact /// /// Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in @@ -731,7 +731,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)`. - func actions_sol_download_hyphen_artifact(_ input: Operations.actions_sol_download_hyphen_artifact.Input) async throws -> Operations.actions_sol_download_hyphen_artifact.Output + func actionsDownloadArtifact(_ input: Operations.ActionsDownloadArtifact.Input) async throws -> Operations.ActionsDownloadArtifact.Output /// Get GitHub Actions cache usage for a repository /// /// Gets GitHub Actions cache usage for a repository. @@ -743,7 +743,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/cache/usage`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/cache/usage/get(actions/get-actions-cache-usage)`. - func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output + func actionsGetActionsCacheUsage(_ input: Operations.ActionsGetActionsCacheUsage.Input) async throws -> Operations.ActionsGetActionsCacheUsage.Output /// List GitHub Actions caches for a repository /// /// Lists the GitHub Actions caches for a repository. @@ -752,7 +752,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/get(actions/get-actions-cache-list)`. - func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list(_ input: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output + func actionsGetActionsCacheList(_ input: Operations.ActionsGetActionsCacheList.Input) async throws -> Operations.ActionsGetActionsCacheList.Output /// Delete GitHub Actions caches for a repository (using a cache key) /// /// Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref. @@ -761,7 +761,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/delete(actions/delete-actions-cache-by-key)`. - func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key(_ input: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output + func actionsDeleteActionsCacheByKey(_ input: Operations.ActionsDeleteActionsCacheByKey.Input) async throws -> Operations.ActionsDeleteActionsCacheByKey.Output /// Delete a GitHub Actions cache for a repository (using a cache ID) /// /// Deletes a GitHub Actions cache for a repository, using a cache ID. @@ -770,7 +770,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)`. - func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id(_ input: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Output + func actionsDeleteActionsCacheById(_ input: Operations.ActionsDeleteActionsCacheById.Input) async throws -> Operations.ActionsDeleteActionsCacheById.Output /// Get a job for a workflow run /// /// Gets a specific job in a workflow run. @@ -781,7 +781,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/get(actions/get-job-for-workflow-run)`. - func actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output + func actionsGetJobForWorkflowRun(_ input: Operations.ActionsGetJobForWorkflowRun.Input) async throws -> Operations.ActionsGetJobForWorkflowRun.Output /// Download job logs for a workflow run /// /// Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look @@ -793,7 +793,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/logs/get(actions/download-job-logs-for-workflow-run)`. - func actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output + func actionsDownloadJobLogsForWorkflowRun(_ input: Operations.ActionsDownloadJobLogsForWorkflowRun.Input) async throws -> Operations.ActionsDownloadJobLogsForWorkflowRun.Output /// Re-run a job from a workflow run /// /// Re-run a job and its dependent jobs in a workflow run. @@ -802,7 +802,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)`. - func actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output + func actionsReRunJobForWorkflowRun(_ input: Operations.ActionsReRunJobForWorkflowRun.Input) async throws -> Operations.ActionsReRunJobForWorkflowRun.Output /// Get the customization template for an OIDC subject claim for a repository /// /// Gets the customization template for an OpenID Connect (OIDC) subject claim. @@ -811,7 +811,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)`. - func actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output + func actionsGetCustomOidcSubClaimForRepo(_ input: Operations.ActionsGetCustomOidcSubClaimForRepo.Input) async throws -> Operations.ActionsGetCustomOidcSubClaimForRepo.Output /// Set the customization template for an OIDC subject claim for a repository /// /// Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository. @@ -820,7 +820,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)`. - func actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output + func actionsSetCustomOidcSubClaimForRepo(_ input: Operations.ActionsSetCustomOidcSubClaimForRepo.Input) async throws -> Operations.ActionsSetCustomOidcSubClaimForRepo.Output /// List repository organization secrets /// /// Lists all organization secrets shared with a repository without revealing their encrypted @@ -832,7 +832,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-secrets/get(actions/list-repo-organization-secrets)`. - func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output + func actionsListRepoOrganizationSecrets(_ input: Operations.ActionsListRepoOrganizationSecrets.Input) async throws -> Operations.ActionsListRepoOrganizationSecrets.Output /// List repository organization variables /// /// Lists all organization variables shared with a repository. @@ -843,7 +843,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-variables/get(actions/list-repo-organization-variables)`. - func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output + func actionsListRepoOrganizationVariables(_ input: Operations.ActionsListRepoOrganizationVariables.Input) async throws -> Operations.ActionsListRepoOrganizationVariables.Output /// Get GitHub Actions permissions for a repository /// /// Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository. @@ -852,7 +852,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/get(actions/get-github-actions-permissions-repository)`. - func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output + func actionsGetGithubActionsPermissionsRepository(_ input: Operations.ActionsGetGithubActionsPermissionsRepository.Input) async throws -> Operations.ActionsGetGithubActionsPermissionsRepository.Output /// Set GitHub Actions permissions for a repository /// /// Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository. @@ -861,7 +861,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)`. - func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output + func actionsSetGithubActionsPermissionsRepository(_ input: Operations.ActionsSetGithubActionsPermissionsRepository.Input) async throws -> Operations.ActionsSetGithubActionsPermissionsRepository.Output /// Get the level of access for workflows outside of the repository /// /// Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. @@ -872,7 +872,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/get(actions/get-workflow-access-to-repository)`. - func actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output + func actionsGetWorkflowAccessToRepository(_ input: Operations.ActionsGetWorkflowAccessToRepository.Input) async throws -> Operations.ActionsGetWorkflowAccessToRepository.Output /// Set the level of access for workflows outside of the repository /// /// Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. @@ -883,7 +883,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)`. - func actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output + func actionsSetWorkflowAccessToRepository(_ input: Operations.ActionsSetWorkflowAccessToRepository.Input) async throws -> Operations.ActionsSetWorkflowAccessToRepository.Output /// Get allowed actions and reusable workflows for a repository /// /// Gets the settings for selected actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." @@ -892,7 +892,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/get(actions/get-allowed-actions-repository)`. - func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output + func actionsGetAllowedActionsRepository(_ input: Operations.ActionsGetAllowedActionsRepository.Input) async throws -> Operations.ActionsGetAllowedActionsRepository.Output /// Set allowed actions and reusable workflows for a repository /// /// Sets the actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." @@ -901,7 +901,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)`. - func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Output + func actionsSetAllowedActionsRepository(_ input: Operations.ActionsSetAllowedActionsRepository.Input) async throws -> Operations.ActionsSetAllowedActionsRepository.Output /// Get default workflow permissions for a repository /// /// Gets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, @@ -912,7 +912,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-repository)`. - func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output + func actionsGetGithubActionsDefaultWorkflowPermissionsRepository(_ input: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output /// Set default workflow permissions for a repository /// /// Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, and sets if GitHub Actions @@ -923,7 +923,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)`. - func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output + func actionsSetGithubActionsDefaultWorkflowPermissionsRepository(_ input: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output /// List self-hosted runners for a repository /// /// Lists all self-hosted runners configured in a repository. @@ -934,7 +934,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/get(actions/list-self-hosted-runners-for-repo)`. - func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output + func actionsListSelfHostedRunnersForRepo(_ input: Operations.ActionsListSelfHostedRunnersForRepo.Input) async throws -> Operations.ActionsListSelfHostedRunnersForRepo.Output /// List runner applications for a repository /// /// Lists binaries for the runner application that you can download and run. @@ -945,7 +945,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/downloads/get(actions/list-runner-applications-for-repo)`. - func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output + func actionsListRunnerApplicationsForRepo(_ input: Operations.ActionsListRunnerApplicationsForRepo.Input) async throws -> Operations.ActionsListRunnerApplicationsForRepo.Output /// Create configuration for a just-in-time runner for a repository /// /// Generates a configuration that can be passed to the runner application at startup. @@ -956,7 +956,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)`. - func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Output + func actionsGenerateRunnerJitconfigForRepo(_ input: Operations.ActionsGenerateRunnerJitconfigForRepo.Input) async throws -> Operations.ActionsGenerateRunnerJitconfigForRepo.Output /// Create a registration token for a repository /// /// Returns a token that you can pass to the `config` script. The token expires after one hour. @@ -973,7 +973,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/registration-token/post(actions/create-registration-token-for-repo)`. - func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output + func actionsCreateRegistrationTokenForRepo(_ input: Operations.ActionsCreateRegistrationTokenForRepo.Input) async throws -> Operations.ActionsCreateRegistrationTokenForRepo.Output /// Create a remove token for a repository /// /// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an repository. The token expires after one hour. @@ -990,7 +990,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/remove-token/post(actions/create-remove-token-for-repo)`. - func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output + func actionsCreateRemoveTokenForRepo(_ input: Operations.ActionsCreateRemoveTokenForRepo.Input) async throws -> Operations.ActionsCreateRemoveTokenForRepo.Output /// Get a self-hosted runner for a repository /// /// Gets a specific self-hosted runner configured in a repository. @@ -1001,7 +1001,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-repo)`. - func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsGetSelfHostedRunnerForRepo(_ input: Operations.ActionsGetSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsGetSelfHostedRunnerForRepo.Output /// Delete a self-hosted runner from a repository /// /// Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. @@ -1012,7 +1012,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`. - func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Output + func actionsDeleteSelfHostedRunnerFromRepo(_ input: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output /// List labels for a self-hosted runner for a repository /// /// Lists all labels for a self-hosted runner configured in a repository. @@ -1023,7 +1023,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)`. - func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsListLabelsForSelfHostedRunnerForRepo(_ input: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Output /// Add custom labels to a self-hosted runner for a repository /// /// Adds custom labels to a self-hosted runner configured in a repository. @@ -1034,7 +1034,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)`. - func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsAddCustomLabelsToSelfHostedRunnerForRepo(_ input: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Output /// Set custom labels for a self-hosted runner for a repository /// /// Remove all previous custom labels and set the new custom labels for a specific @@ -1046,7 +1046,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)`. - func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsSetCustomLabelsForSelfHostedRunnerForRepo(_ input: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Output /// Remove all custom labels from a self-hosted runner for a repository /// /// Remove all custom labels from a self-hosted runner configured in a @@ -1058,7 +1058,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)`. - func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo(_ input: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Output /// Remove a custom label from a self-hosted runner for a repository /// /// Remove a custom label from a self-hosted runner configured @@ -1073,7 +1073,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)`. - func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output + func actionsRemoveCustomLabelFromSelfHostedRunnerForRepo(_ input: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Output /// List workflow runs for a repository /// /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters). @@ -1086,7 +1086,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/get(actions/list-workflow-runs-for-repo)`. - func actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output + func actionsListWorkflowRunsForRepo(_ input: Operations.ActionsListWorkflowRunsForRepo.Input) async throws -> Operations.ActionsListWorkflowRunsForRepo.Output /// Get a workflow run /// /// Gets a specific workflow run. @@ -1097,7 +1097,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/get(actions/get-workflow-run)`. - func actions_sol_get_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output + func actionsGetWorkflowRun(_ input: Operations.ActionsGetWorkflowRun.Input) async throws -> Operations.ActionsGetWorkflowRun.Output /// Delete a workflow run /// /// Deletes a specific workflow run. @@ -1108,7 +1108,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)`. - func actions_sol_delete_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Output + func actionsDeleteWorkflowRun(_ input: Operations.ActionsDeleteWorkflowRun.Input) async throws -> Operations.ActionsDeleteWorkflowRun.Output /// Get the review history for a workflow run /// /// Anyone with read access to the repository can use this endpoint. @@ -1117,7 +1117,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approvals/get(actions/get-reviews-for-run)`. - func actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run(_ input: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output + func actionsGetReviewsForRun(_ input: Operations.ActionsGetReviewsForRun.Input) async throws -> Operations.ActionsGetReviewsForRun.Output /// Approve a workflow run for a fork pull request /// /// Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see ["Approving workflow runs from public forks](https://docs.github.com/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)." @@ -1126,7 +1126,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)`. - func actions_sol_approve_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output + func actionsApproveWorkflowRun(_ input: Operations.ActionsApproveWorkflowRun.Input) async throws -> Operations.ActionsApproveWorkflowRun.Output /// List workflow run artifacts /// /// Lists artifacts for a workflow run. @@ -1137,7 +1137,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/get(actions/list-workflow-run-artifacts)`. - func actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output + func actionsListWorkflowRunArtifacts(_ input: Operations.ActionsListWorkflowRunArtifacts.Input) async throws -> Operations.ActionsListWorkflowRunArtifacts.Output /// Get a workflow run attempt /// /// Gets a specific workflow run attempt. @@ -1148,7 +1148,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/get(actions/get-workflow-run-attempt)`. - func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output + func actionsGetWorkflowRunAttempt(_ input: Operations.ActionsGetWorkflowRunAttempt.Input) async throws -> Operations.ActionsGetWorkflowRunAttempt.Output /// List jobs for a workflow run attempt /// /// Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more information @@ -1160,7 +1160,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)`. - func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt(_ input: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output + func actionsListJobsForWorkflowRunAttempt(_ input: Operations.ActionsListJobsForWorkflowRunAttempt.Input) async throws -> Operations.ActionsListJobsForWorkflowRunAttempt.Output /// Download workflow run attempt logs /// /// Gets a redirect URL to download an archive of log files for a specific workflow run attempt. This link expires after @@ -1172,7 +1172,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/get(actions/download-workflow-run-attempt-logs)`. - func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs(_ input: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output + func actionsDownloadWorkflowRunAttemptLogs(_ input: Operations.ActionsDownloadWorkflowRunAttemptLogs.Input) async throws -> Operations.ActionsDownloadWorkflowRunAttemptLogs.Output /// Cancel a workflow run /// /// Cancels a workflow run using its `id`. @@ -1181,7 +1181,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)`. - func actions_sol_cancel_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output + func actionsCancelWorkflowRun(_ input: Operations.ActionsCancelWorkflowRun.Input) async throws -> Operations.ActionsCancelWorkflowRun.Output /// Review custom deployment protection rules for a workflow run /// /// Approve or reject custom deployment protection rules provided by a GitHub App for a workflow run. For more information, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." @@ -1193,7 +1193,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)`. - func actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run(_ input: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Output + func actionsReviewCustomGatesForRun(_ input: Operations.ActionsReviewCustomGatesForRun.Input) async throws -> Operations.ActionsReviewCustomGatesForRun.Output /// Force cancel a workflow run /// /// Cancels a workflow run and bypasses conditions that would otherwise cause a workflow execution to continue, such as an `always()` condition on a job. @@ -1203,7 +1203,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)`. - func actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output + func actionsForceCancelWorkflowRun(_ input: Operations.ActionsForceCancelWorkflowRun.Input) async throws -> Operations.ActionsForceCancelWorkflowRun.Output /// List jobs for a workflow run /// /// Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information @@ -1215,7 +1215,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/jobs/get(actions/list-jobs-for-workflow-run)`. - func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run(_ input: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output + func actionsListJobsForWorkflowRun(_ input: Operations.ActionsListJobsForWorkflowRun.Input) async throws -> Operations.ActionsListJobsForWorkflowRun.Output /// Download workflow run logs /// /// Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for @@ -1227,7 +1227,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/get(actions/download-workflow-run-logs)`. - func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs(_ input: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output + func actionsDownloadWorkflowRunLogs(_ input: Operations.ActionsDownloadWorkflowRunLogs.Input) async throws -> Operations.ActionsDownloadWorkflowRunLogs.Output /// Delete workflow run logs /// /// Deletes all logs for a workflow run. @@ -1236,7 +1236,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)`. - func actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs(_ input: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Output + func actionsDeleteWorkflowRunLogs(_ input: Operations.ActionsDeleteWorkflowRunLogs.Input) async throws -> Operations.ActionsDeleteWorkflowRunLogs.Output /// Get pending deployments for a workflow run /// /// Get all deployment environments for a workflow run that are waiting for protection rules to pass. @@ -1247,7 +1247,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/get(actions/get-pending-deployments-for-run)`. - func actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(_ input: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output + func actionsGetPendingDeploymentsForRun(_ input: Operations.ActionsGetPendingDeploymentsForRun.Input) async throws -> Operations.ActionsGetPendingDeploymentsForRun.Output /// Review pending deployments for a workflow run /// /// Approve or reject pending deployments that are waiting on approval by a required reviewer. @@ -1258,7 +1258,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/post(actions/review-pending-deployments-for-run)`. - func actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(_ input: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input) async throws -> Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output + func actionsReviewPendingDeploymentsForRun(_ input: Operations.ActionsReviewPendingDeploymentsForRun.Input) async throws -> Operations.ActionsReviewPendingDeploymentsForRun.Output /// Re-run a workflow /// /// Re-runs your workflow run using its `id`. @@ -1267,7 +1267,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun/post(actions/re-run-workflow)`. - func actions_sol_re_hyphen_run_hyphen_workflow(_ input: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output + func actionsReRunWorkflow(_ input: Operations.ActionsReRunWorkflow.Input) async throws -> Operations.ActionsReRunWorkflow.Output /// Re-run failed jobs from a workflow run /// /// Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. @@ -1276,7 +1276,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/post(actions/re-run-workflow-failed-jobs)`. - func actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs(_ input: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output + func actionsReRunWorkflowFailedJobs(_ input: Operations.ActionsReRunWorkflowFailedJobs.Input) async throws -> Operations.ActionsReRunWorkflowFailedJobs.Output /// Get workflow run usage /// /// > [!WARNING] @@ -1290,7 +1290,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/timing/get(actions/get-workflow-run-usage)`. - func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output + func actionsGetWorkflowRunUsage(_ input: Operations.ActionsGetWorkflowRunUsage.Input) async throws -> Operations.ActionsGetWorkflowRunUsage.Output /// List repository secrets /// /// Lists all secrets available in a repository without revealing their encrypted @@ -1302,7 +1302,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/get(actions/list-repo-secrets)`. - func actions_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output + func actionsListRepoSecrets(_ input: Operations.ActionsListRepoSecrets.Input) async throws -> Operations.ActionsListRepoSecrets.Output /// Get a repository public key /// /// Gets your public key, which you need to encrypt secrets. You need to @@ -1314,7 +1314,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/public-key/get(actions/get-repo-public-key)`. - func actions_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output + func actionsGetRepoPublicKey(_ input: Operations.ActionsGetRepoPublicKey.Input) async throws -> Operations.ActionsGetRepoPublicKey.Output /// Get a repository secret /// /// Gets a single repository secret without revealing its encrypted value. @@ -1325,7 +1325,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/get(actions/get-repo-secret)`. - func actions_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output + func actionsGetRepoSecret(_ input: Operations.ActionsGetRepoSecret.Input) async throws -> Operations.ActionsGetRepoSecret.Output /// Create or update a repository secret /// /// Creates or updates a repository secret with an encrypted value. Encrypt your secret using @@ -1337,7 +1337,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)`. - func actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output + func actionsCreateOrUpdateRepoSecret(_ input: Operations.ActionsCreateOrUpdateRepoSecret.Input) async throws -> Operations.ActionsCreateOrUpdateRepoSecret.Output /// Delete a repository secret /// /// Deletes a secret in a repository using the secret name. @@ -1348,7 +1348,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)`. - func actions_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Output + func actionsDeleteRepoSecret(_ input: Operations.ActionsDeleteRepoSecret.Input) async throws -> Operations.ActionsDeleteRepoSecret.Output /// List repository variables /// /// Lists all repository variables. @@ -1359,7 +1359,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/get(actions/list-repo-variables)`. - func actions_sol_list_hyphen_repo_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output + func actionsListRepoVariables(_ input: Operations.ActionsListRepoVariables.Input) async throws -> Operations.ActionsListRepoVariables.Output /// Create a repository variable /// /// Creates a repository variable that you can reference in a GitHub Actions workflow. @@ -1370,7 +1370,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/post(actions/create-repo-variable)`. - func actions_sol_create_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output + func actionsCreateRepoVariable(_ input: Operations.ActionsCreateRepoVariable.Input) async throws -> Operations.ActionsCreateRepoVariable.Output /// Get a repository variable /// /// Gets a specific variable in a repository. @@ -1381,7 +1381,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/get(actions/get-repo-variable)`. - func actions_sol_get_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output + func actionsGetRepoVariable(_ input: Operations.ActionsGetRepoVariable.Input) async throws -> Operations.ActionsGetRepoVariable.Output /// Update a repository variable /// /// Updates a repository variable that you can reference in a GitHub Actions workflow. @@ -1392,7 +1392,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)`. - func actions_sol_update_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_repo_hyphen_variable.Output + func actionsUpdateRepoVariable(_ input: Operations.ActionsUpdateRepoVariable.Input) async throws -> Operations.ActionsUpdateRepoVariable.Output /// Delete a repository variable /// /// Deletes a repository variable using the variable name. @@ -1403,7 +1403,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)`. - func actions_sol_delete_hyphen_repo_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Output + func actionsDeleteRepoVariable(_ input: Operations.ActionsDeleteRepoVariable.Input) async throws -> Operations.ActionsDeleteRepoVariable.Output /// List repository workflows /// /// Lists the workflows in a repository. @@ -1414,7 +1414,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/get(actions/list-repo-workflows)`. - func actions_sol_list_hyphen_repo_hyphen_workflows(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output + func actionsListRepoWorkflows(_ input: Operations.ActionsListRepoWorkflows.Input) async throws -> Operations.ActionsListRepoWorkflows.Output /// Get a workflow /// /// Gets a specific workflow. You can replace `workflow_id` with the workflow @@ -1426,7 +1426,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/get(actions/get-workflow)`. - func actions_sol_get_hyphen_workflow(_ input: Operations.actions_sol_get_hyphen_workflow.Input) async throws -> Operations.actions_sol_get_hyphen_workflow.Output + func actionsGetWorkflow(_ input: Operations.ActionsGetWorkflow.Input) async throws -> Operations.ActionsGetWorkflow.Output /// Disable a workflow /// /// Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. @@ -1435,7 +1435,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)`. - func actions_sol_disable_hyphen_workflow(_ input: Operations.actions_sol_disable_hyphen_workflow.Input) async throws -> Operations.actions_sol_disable_hyphen_workflow.Output + func actionsDisableWorkflow(_ input: Operations.ActionsDisableWorkflow.Input) async throws -> Operations.ActionsDisableWorkflow.Output /// Create a workflow dispatch event /// /// You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. @@ -1446,7 +1446,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)`. - func actions_sol_create_hyphen_workflow_hyphen_dispatch(_ input: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input) async throws -> Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Output + func actionsCreateWorkflowDispatch(_ input: Operations.ActionsCreateWorkflowDispatch.Input) async throws -> Operations.ActionsCreateWorkflowDispatch.Output /// Enable a workflow /// /// Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. @@ -1455,7 +1455,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)`. - func actions_sol_enable_hyphen_workflow(_ input: Operations.actions_sol_enable_hyphen_workflow.Input) async throws -> Operations.actions_sol_enable_hyphen_workflow.Output + func actionsEnableWorkflow(_ input: Operations.ActionsEnableWorkflow.Input) async throws -> Operations.ActionsEnableWorkflow.Output /// List workflow runs for a workflow /// /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters). @@ -1468,7 +1468,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/get(actions/list-workflow-runs)`. - func actions_sol_list_hyphen_workflow_hyphen_runs(_ input: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output + func actionsListWorkflowRuns(_ input: Operations.ActionsListWorkflowRuns.Input) async throws -> Operations.ActionsListWorkflowRuns.Output /// Get workflow usage /// /// > [!WARNING] @@ -1484,7 +1484,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/get(actions/get-workflow-usage)`. - func actions_sol_get_hyphen_workflow_hyphen_usage(_ input: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output + func actionsGetWorkflowUsage(_ input: Operations.ActionsGetWorkflowUsage.Input) async throws -> Operations.ActionsGetWorkflowUsage.Output /// List environment secrets /// /// Lists all secrets available in an environment without revealing their @@ -1496,7 +1496,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/get(actions/list-environment-secrets)`. - func actions_sol_list_hyphen_environment_hyphen_secrets(_ input: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output + func actionsListEnvironmentSecrets(_ input: Operations.ActionsListEnvironmentSecrets.Input) async throws -> Operations.ActionsListEnvironmentSecrets.Output /// Get an environment public key /// /// Get the public key for an environment, which you need to encrypt environment @@ -1508,7 +1508,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/get(actions/get-environment-public-key)`. - func actions_sol_get_hyphen_environment_hyphen_public_hyphen_key(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output + func actionsGetEnvironmentPublicKey(_ input: Operations.ActionsGetEnvironmentPublicKey.Input) async throws -> Operations.ActionsGetEnvironmentPublicKey.Output /// Get an environment secret /// /// Gets a single environment secret without revealing its encrypted value. @@ -1519,7 +1519,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/get(actions/get-environment-secret)`. - func actions_sol_get_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output + func actionsGetEnvironmentSecret(_ input: Operations.ActionsGetEnvironmentSecret.Input) async throws -> Operations.ActionsGetEnvironmentSecret.Output /// Create or update an environment secret /// /// Creates or updates an environment secret with an encrypted value. Encrypt your secret using @@ -1531,7 +1531,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)`. - func actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output + func actionsCreateOrUpdateEnvironmentSecret(_ input: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input) async throws -> Operations.ActionsCreateOrUpdateEnvironmentSecret.Output /// Delete an environment secret /// /// Deletes a secret in an environment using the secret name. @@ -1542,7 +1542,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)`. - func actions_sol_delete_hyphen_environment_hyphen_secret(_ input: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Output + func actionsDeleteEnvironmentSecret(_ input: Operations.ActionsDeleteEnvironmentSecret.Input) async throws -> Operations.ActionsDeleteEnvironmentSecret.Output /// List environment variables /// /// Lists all environment variables. @@ -1553,7 +1553,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/get(actions/list-environment-variables)`. - func actions_sol_list_hyphen_environment_hyphen_variables(_ input: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output + func actionsListEnvironmentVariables(_ input: Operations.ActionsListEnvironmentVariables.Input) async throws -> Operations.ActionsListEnvironmentVariables.Output /// Create an environment variable /// /// Create an environment variable that you can reference in a GitHub Actions workflow. @@ -1564,7 +1564,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/post(actions/create-environment-variable)`. - func actions_sol_create_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output + func actionsCreateEnvironmentVariable(_ input: Operations.ActionsCreateEnvironmentVariable.Input) async throws -> Operations.ActionsCreateEnvironmentVariable.Output /// Get an environment variable /// /// Gets a specific variable in an environment. @@ -1575,7 +1575,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/get(actions/get-environment-variable)`. - func actions_sol_get_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output + func actionsGetEnvironmentVariable(_ input: Operations.ActionsGetEnvironmentVariable.Input) async throws -> Operations.ActionsGetEnvironmentVariable.Output /// Update an environment variable /// /// Updates an environment variable that you can reference in a GitHub Actions workflow. @@ -1586,7 +1586,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)`. - func actions_sol_update_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_update_hyphen_environment_hyphen_variable.Output + func actionsUpdateEnvironmentVariable(_ input: Operations.ActionsUpdateEnvironmentVariable.Input) async throws -> Operations.ActionsUpdateEnvironmentVariable.Output /// Delete an environment variable /// /// Deletes an environment variable using the variable name. @@ -1597,7 +1597,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)`. - func actions_sol_delete_hyphen_environment_hyphen_variable(_ input: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Output + func actionsDeleteEnvironmentVariable(_ input: Operations.ActionsDeleteEnvironmentVariable.Input) async throws -> Operations.ActionsDeleteEnvironmentVariable.Output } /// Convenience overloads for operation inputs. @@ -1611,11 +1611,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage/get(actions/get-actions-cache-usage-for-org)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input( + public func actionsGetActionsCacheUsageForOrg( + path: Operations.ActionsGetActionsCacheUsageForOrg.Input.Path, + headers: Operations.ActionsGetActionsCacheUsageForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetActionsCacheUsageForOrg.Output { + try await actionsGetActionsCacheUsageForOrg(Operations.ActionsGetActionsCacheUsageForOrg.Input( path: path, headers: headers )) @@ -1629,12 +1629,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage-by-repository`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage-by-repository/get(actions/get-actions-cache-usage-by-repo-for-org)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input( + public func actionsGetActionsCacheUsageByRepoForOrg( + path: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Path, + query: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Query = .init(), + headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output { + try await actionsGetActionsCacheUsageByRepoForOrg(Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input( path: path, query: query, headers: headers @@ -1648,12 +1648,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/get(actions/list-hosted-runners-for-org)`. - public func actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input( + public func actionsListHostedRunnersForOrg( + path: Operations.ActionsListHostedRunnersForOrg.Input.Path, + query: Operations.ActionsListHostedRunnersForOrg.Input.Query = .init(), + headers: Operations.ActionsListHostedRunnersForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListHostedRunnersForOrg.Output { + try await actionsListHostedRunnersForOrg(Operations.ActionsListHostedRunnersForOrg.Input( path: path, query: query, headers: headers @@ -1666,12 +1666,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/post(actions/create-hosted-runner-for-org)`. - public func actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsCreateHostedRunnerForOrg( + path: Operations.ActionsCreateHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsCreateHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsCreateHostedRunnerForOrg.Input.Body + ) async throws -> Operations.ActionsCreateHostedRunnerForOrg.Output { + try await actionsCreateHostedRunnerForOrg(Operations.ActionsCreateHostedRunnerForOrg.Input( path: path, headers: headers, body: body @@ -1683,11 +1683,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/github-owned`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/github-owned/get(actions/get-hosted-runners-github-owned-images-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnersGithubOwnedImagesForOrg( + path: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output { + try await actionsGetHostedRunnersGithubOwnedImagesForOrg(Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input( path: path, headers: headers )) @@ -1698,11 +1698,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/partner`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/partner/get(actions/get-hosted-runners-partner-images-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnersPartnerImagesForOrg( + path: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output { + try await actionsGetHostedRunnersPartnerImagesForOrg(Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input( path: path, headers: headers )) @@ -1713,11 +1713,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/limits`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/limits/get(actions/get-hosted-runners-limits-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnersLimitsForOrg( + path: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnersLimitsForOrg.Output { + try await actionsGetHostedRunnersLimitsForOrg(Operations.ActionsGetHostedRunnersLimitsForOrg.Input( path: path, headers: headers )) @@ -1728,11 +1728,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/machine-sizes`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/machine-sizes/get(actions/get-hosted-runners-machine-specs-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnersMachineSpecsForOrg( + path: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output { + try await actionsGetHostedRunnersMachineSpecsForOrg(Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input( path: path, headers: headers )) @@ -1743,11 +1743,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/platforms`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/platforms/get(actions/get-hosted-runners-platforms-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnersPlatformsForOrg( + path: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnersPlatformsForOrg.Output { + try await actionsGetHostedRunnersPlatformsForOrg(Operations.ActionsGetHostedRunnersPlatformsForOrg.Input( path: path, headers: headers )) @@ -1760,11 +1760,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/get(actions/get-hosted-runner-for-org)`. - public func actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsGetHostedRunnerForOrg( + path: Operations.ActionsGetHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetHostedRunnerForOrg.Output { + try await actionsGetHostedRunnerForOrg(Operations.ActionsGetHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -1776,12 +1776,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/patch(actions/update-hosted-runner-for-org)`. - public func actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsUpdateHostedRunnerForOrg( + path: Operations.ActionsUpdateHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsUpdateHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsUpdateHostedRunnerForOrg.Input.Body + ) async throws -> Operations.ActionsUpdateHostedRunnerForOrg.Output { + try await actionsUpdateHostedRunnerForOrg(Operations.ActionsUpdateHostedRunnerForOrg.Input( path: path, headers: headers, body: body @@ -1793,11 +1793,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/delete(actions/delete-hosted-runner-for-org)`. - public func actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsDeleteHostedRunnerForOrg( + path: Operations.ActionsDeleteHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsDeleteHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsDeleteHostedRunnerForOrg.Output { + try await actionsDeleteHostedRunnerForOrg(Operations.ActionsDeleteHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -1810,11 +1810,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/get(actions/get-github-actions-permissions-organization)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output { - try await actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input( + public func actionsGetGithubActionsPermissionsOrganization( + path: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Path, + headers: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Headers = .init() + ) async throws -> Operations.ActionsGetGithubActionsPermissionsOrganization.Output { + try await actionsGetGithubActionsPermissionsOrganization(Operations.ActionsGetGithubActionsPermissionsOrganization.Input( path: path, headers: headers )) @@ -1827,11 +1827,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output { - try await actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input( + public func actionsSetGithubActionsPermissionsOrganization( + path: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Path, + body: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Body + ) async throws -> Operations.ActionsSetGithubActionsPermissionsOrganization.Output { + try await actionsSetGithubActionsPermissionsOrganization(Operations.ActionsSetGithubActionsPermissionsOrganization.Input( path: path, body: body )) @@ -1844,12 +1844,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/get(actions/list-selected-repositories-enabled-github-actions-organization)`. - public func actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output { - try await actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input( + public func actionsListSelectedRepositoriesEnabledGithubActionsOrganization( + path: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path, + query: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Query = .init(), + headers: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output { + try await actionsListSelectedRepositoriesEnabledGithubActionsOrganization(Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input( path: path, query: query, headers: headers @@ -1864,11 +1864,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)`. - public func actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output { - try await actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization(Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input( + public func actionsSetSelectedRepositoriesEnabledGithubActionsOrganization( + path: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path, + body: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Body + ) async throws -> Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Output { + try await actionsSetSelectedRepositoriesEnabledGithubActionsOrganization(Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input( path: path, body: body )) @@ -1881,8 +1881,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)`. - public func actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(path: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path) async throws -> Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output { - try await actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input(path: path)) + public func actionsEnableSelectedRepositoryGithubActionsOrganization(path: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input.Path) async throws -> Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Output { + try await actionsEnableSelectedRepositoryGithubActionsOrganization(Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input(path: path)) } /// Disable a selected repository for GitHub Actions in an organization /// @@ -1892,8 +1892,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)`. - public func actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(path: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path) async throws -> Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output { - try await actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization(Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input(path: path)) + public func actionsDisableSelectedRepositoryGithubActionsOrganization(path: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input.Path) async throws -> Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Output { + try await actionsDisableSelectedRepositoryGithubActionsOrganization(Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input(path: path)) } /// Get allowed actions and reusable workflows for an organization /// @@ -1903,11 +1903,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/get(actions/get-allowed-actions-organization)`. - public func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization( - path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output { - try await actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization(Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input( + public func actionsGetAllowedActionsOrganization( + path: Operations.ActionsGetAllowedActionsOrganization.Input.Path, + headers: Operations.ActionsGetAllowedActionsOrganization.Input.Headers = .init() + ) async throws -> Operations.ActionsGetAllowedActionsOrganization.Output { + try await actionsGetAllowedActionsOrganization(Operations.ActionsGetAllowedActionsOrganization.Input( path: path, headers: headers )) @@ -1920,11 +1920,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)`. - public func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization( - path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Body? = nil - ) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Output { - try await actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization(Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input( + public func actionsSetAllowedActionsOrganization( + path: Operations.ActionsSetAllowedActionsOrganization.Input.Path, + body: Operations.ActionsSetAllowedActionsOrganization.Input.Body? = nil + ) async throws -> Operations.ActionsSetAllowedActionsOrganization.Output { + try await actionsSetAllowedActionsOrganization(Operations.ActionsSetAllowedActionsOrganization.Input( path: path, body: body )) @@ -1939,11 +1939,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-organization)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output { - try await actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input( + public func actionsGetGithubActionsDefaultWorkflowPermissionsOrganization( + path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path, + headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Headers = .init() + ) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output { + try await actionsGetGithubActionsDefaultWorkflowPermissionsOrganization(Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input( path: path, headers: headers )) @@ -1958,11 +1958,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Body? = nil - ) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output { - try await actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input( + public func actionsSetGithubActionsDefaultWorkflowPermissionsOrganization( + path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path, + body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Body? = nil + ) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Output { + try await actionsSetGithubActionsDefaultWorkflowPermissionsOrganization(Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input( path: path, body: body )) @@ -1975,12 +1975,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input( + public func actionsListSelfHostedRunnerGroupsForOrg( + path: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output { + try await actionsListSelfHostedRunnerGroupsForOrg(Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input( path: path, query: query, headers: headers @@ -1994,12 +1994,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. - public func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsCreateSelfHostedRunnerGroupForOrg( + path: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Headers = .init(), + body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body + ) async throws -> Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output { + try await actionsCreateSelfHostedRunnerGroupForOrg(Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input( path: path, headers: headers, body: body @@ -2013,11 +2013,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsGetSelfHostedRunnerGroupForOrg( + path: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output { + try await actionsGetSelfHostedRunnerGroupForOrg(Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input( path: path, headers: headers )) @@ -2030,12 +2030,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. - public func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsUpdateSelfHostedRunnerGroupForOrg( + path: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Headers = .init(), + body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body + ) async throws -> Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output { + try await actionsUpdateSelfHostedRunnerGroupForOrg(Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input( path: path, headers: headers, body: body @@ -2049,8 +2049,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output { - try await actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input(path: path)) + public func actionsDeleteSelfHostedRunnerGroupFromOrg(path: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Output { + try await actionsDeleteSelfHostedRunnerGroupFromOrg(Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input(path: path)) } /// List GitHub-hosted runners in a group for an organization /// @@ -2060,12 +2060,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/get(actions/list-github-hosted-runners-in-group-for-org)`. - public func actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsListGithubHostedRunnersInGroupForOrg( + path: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Path, + query: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Query = .init(), + headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output { + try await actionsListGithubHostedRunnersInGroupForOrg(Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input( path: path, query: query, headers: headers @@ -2079,12 +2079,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org( - path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { - try await actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input( + public func actionsListRepoAccessToSelfHostedRunnerGroupInOrg( + path: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path, + query: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Query = .init(), + headers: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output { + try await actionsListRepoAccessToSelfHostedRunnerGroupInOrg(Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input( path: path, query: query, headers: headers @@ -2098,11 +2098,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org( - path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, - body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { - try await actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input( + public func actionsSetRepoAccessToSelfHostedRunnerGroupInOrg( + path: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path, + body: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Body + ) async throws -> Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Output { + try await actionsSetRepoAccessToSelfHostedRunnerGroupInOrg(Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input( path: path, body: body )) @@ -2115,8 +2115,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { - try await actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input(path: path)) + public func actionsAddRepoAccessToSelfHostedRunnerGroupInOrg(path: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path) async throws -> Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Output { + try await actionsAddRepoAccessToSelfHostedRunnerGroupInOrg(Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input(path: path)) } /// Remove repository access to a self-hosted runner group in an organization /// @@ -2126,8 +2126,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. - public func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { - try await actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input(path: path)) + public func actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(path: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path) async throws -> Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Output { + try await actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input(path: path)) } /// List self-hosted runners in a group for an organization /// @@ -2137,12 +2137,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsListSelfHostedRunnersInGroupForOrg( + path: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output { + try await actionsListSelfHostedRunnersInGroupForOrg(Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input( path: path, query: query, headers: headers @@ -2156,11 +2156,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. - public func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org( - path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input( + public func actionsSetSelfHostedRunnersInGroupForOrg( + path: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Path, + body: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Body + ) async throws -> Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Output { + try await actionsSetSelfHostedRunnersInGroupForOrg(Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input( path: path, body: body )) @@ -2173,8 +2173,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. - public func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input(path: path)) + public func actionsAddSelfHostedRunnerToGroupForOrg(path: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input.Path) async throws -> Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Output { + try await actionsAddSelfHostedRunnerToGroupForOrg(Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input(path: path)) } /// Remove a self-hosted runner from a group for an organization /// @@ -2184,8 +2184,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. - public func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output { - try await actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input(path: path)) + public func actionsRemoveSelfHostedRunnerFromGroupForOrg(path: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input.Path) async throws -> Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Output { + try await actionsRemoveSelfHostedRunnerFromGroupForOrg(Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input(path: path)) } /// List self-hosted runners for an organization /// @@ -2197,12 +2197,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/get(actions/list-self-hosted-runners-for-org)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input( + public func actionsListSelfHostedRunnersForOrg( + path: Operations.ActionsListSelfHostedRunnersForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnersForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelfHostedRunnersForOrg.Output { + try await actionsListSelfHostedRunnersForOrg(Operations.ActionsListSelfHostedRunnersForOrg.Input( path: path, query: query, headers: headers @@ -2218,11 +2218,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/downloads/get(actions/list-runner-applications-for-org)`. - public func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input( + public func actionsListRunnerApplicationsForOrg( + path: Operations.ActionsListRunnerApplicationsForOrg.Input.Path, + headers: Operations.ActionsListRunnerApplicationsForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListRunnerApplicationsForOrg.Output { + try await actionsListRunnerApplicationsForOrg(Operations.ActionsListRunnerApplicationsForOrg.Input( path: path, headers: headers )) @@ -2237,12 +2237,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)`. - public func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org( - path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Output { - try await actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org(Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input( + public func actionsGenerateRunnerJitconfigForOrg( + path: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Path, + headers: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Headers = .init(), + body: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Body + ) async throws -> Operations.ActionsGenerateRunnerJitconfigForOrg.Output { + try await actionsGenerateRunnerJitconfigForOrg(Operations.ActionsGenerateRunnerJitconfigForOrg.Input( path: path, headers: headers, body: body @@ -2264,11 +2264,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/registration-token/post(actions/create-registration-token-for-org)`. - public func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org( - path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output { - try await actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org(Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input( + public func actionsCreateRegistrationTokenForOrg( + path: Operations.ActionsCreateRegistrationTokenForOrg.Input.Path, + headers: Operations.ActionsCreateRegistrationTokenForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsCreateRegistrationTokenForOrg.Output { + try await actionsCreateRegistrationTokenForOrg(Operations.ActionsCreateRegistrationTokenForOrg.Input( path: path, headers: headers )) @@ -2289,11 +2289,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/remove-token/post(actions/create-remove-token-for-org)`. - public func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org( - path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output { - try await actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org(Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input( + public func actionsCreateRemoveTokenForOrg( + path: Operations.ActionsCreateRemoveTokenForOrg.Input.Path, + headers: Operations.ActionsCreateRemoveTokenForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsCreateRemoveTokenForOrg.Output { + try await actionsCreateRemoveTokenForOrg(Operations.ActionsCreateRemoveTokenForOrg.Input( path: path, headers: headers )) @@ -2308,11 +2308,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-org)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsGetSelfHostedRunnerForOrg( + path: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsGetSelfHostedRunnerForOrg.Output { + try await actionsGetSelfHostedRunnerForOrg(Operations.ActionsGetSelfHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -2327,8 +2327,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Output { - try await actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input(path: path)) + public func actionsDeleteSelfHostedRunnerFromOrg(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output { + try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(path: path)) } /// List labels for a self-hosted runner for an organization /// @@ -2340,11 +2340,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)`. - public func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsListLabelsForSelfHostedRunnerForOrg( + path: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Output { + try await actionsListLabelsForSelfHostedRunnerForOrg(Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -2359,12 +2359,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)`. - public func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsAddCustomLabelsToSelfHostedRunnerForOrg( + path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Body + ) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Output { + try await actionsAddCustomLabelsToSelfHostedRunnerForOrg(Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input( path: path, headers: headers, body: body @@ -2381,12 +2381,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)`. - public func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsSetCustomLabelsForSelfHostedRunnerForOrg( + path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Body + ) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Output { + try await actionsSetCustomLabelsForSelfHostedRunnerForOrg(Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input( path: path, headers: headers, body: body @@ -2403,11 +2403,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)`. - public func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg( + path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Output { + try await actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg(Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -2426,11 +2426,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)`. - public func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org( - path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output { - try await actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org(Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input( + public func actionsRemoveCustomLabelFromSelfHostedRunnerForOrg( + path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Output { + try await actionsRemoveCustomLabelFromSelfHostedRunnerForOrg(Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input( path: path, headers: headers )) @@ -2446,12 +2446,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/get(actions/list-org-secrets)`. - public func actions_sol_list_hyphen_org_hyphen_secrets( - path: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output { - try await actions_sol_list_hyphen_org_hyphen_secrets(Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input( + public func actionsListOrgSecrets( + path: Operations.ActionsListOrgSecrets.Input.Path, + query: Operations.ActionsListOrgSecrets.Input.Query = .init(), + headers: Operations.ActionsListOrgSecrets.Input.Headers = .init() + ) async throws -> Operations.ActionsListOrgSecrets.Output { + try await actionsListOrgSecrets(Operations.ActionsListOrgSecrets.Input( path: path, query: query, headers: headers @@ -2468,11 +2468,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/public-key/get(actions/get-org-public-key)`. - public func actions_sol_get_hyphen_org_hyphen_public_hyphen_key( - path: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { - try await actions_sol_get_hyphen_org_hyphen_public_hyphen_key(Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input( + public func actionsGetOrgPublicKey( + path: Operations.ActionsGetOrgPublicKey.Input.Path, + headers: Operations.ActionsGetOrgPublicKey.Input.Headers = .init() + ) async throws -> Operations.ActionsGetOrgPublicKey.Output { + try await actionsGetOrgPublicKey(Operations.ActionsGetOrgPublicKey.Input( path: path, headers: headers )) @@ -2487,11 +2487,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/get(actions/get-org-secret)`. - public func actions_sol_get_hyphen_org_hyphen_secret( - path: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_secret.Output { - try await actions_sol_get_hyphen_org_hyphen_secret(Operations.actions_sol_get_hyphen_org_hyphen_secret.Input( + public func actionsGetOrgSecret( + path: Operations.ActionsGetOrgSecret.Input.Path, + headers: Operations.ActionsGetOrgSecret.Input.Headers = .init() + ) async throws -> Operations.ActionsGetOrgSecret.Output { + try await actionsGetOrgSecret(Operations.ActionsGetOrgSecret.Input( path: path, headers: headers )) @@ -2507,12 +2507,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { - try await actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input( + public func actionsCreateOrUpdateOrgSecret( + path: Operations.ActionsCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateOrgSecret.Input.Body + ) async throws -> Operations.ActionsCreateOrUpdateOrgSecret.Output { + try await actionsCreateOrUpdateOrgSecret(Operations.ActionsCreateOrUpdateOrgSecret.Input( path: path, headers: headers, body: body @@ -2528,8 +2528,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)`. - public func actions_sol_delete_hyphen_org_hyphen_secret(path: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_secret.Output { - try await actions_sol_delete_hyphen_org_hyphen_secret(Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input(path: path)) + public func actionsDeleteOrgSecret(path: Operations.ActionsDeleteOrgSecret.Input.Path) async throws -> Operations.ActionsDeleteOrgSecret.Output { + try await actionsDeleteOrgSecret(Operations.ActionsDeleteOrgSecret.Input(path: path)) } /// List selected repositories for an organization secret /// @@ -2542,12 +2542,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/get(actions/list-selected-repos-for-org-secret)`. - public func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func actionsListSelectedReposForOrgSecret( + path: Operations.ActionsListSelectedReposForOrgSecret.Input.Path, + query: Operations.ActionsListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.ActionsListSelectedReposForOrgSecret.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelectedReposForOrgSecret.Output { + try await actionsListSelectedReposForOrgSecret(Operations.ActionsListSelectedReposForOrgSecret.Input( path: path, query: query, headers: headers @@ -2565,11 +2565,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)`. - public func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func actionsSetSelectedReposForOrgSecret( + path: Operations.ActionsSetSelectedReposForOrgSecret.Input.Path, + body: Operations.ActionsSetSelectedReposForOrgSecret.Input.Body + ) async throws -> Operations.ActionsSetSelectedReposForOrgSecret.Output { + try await actionsSetSelectedReposForOrgSecret(Operations.ActionsSetSelectedReposForOrgSecret.Input( path: path, body: body )) @@ -2586,8 +2586,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)`. - public func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { - try await actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input(path: path)) + public func actionsAddSelectedRepoToOrgSecret(path: Operations.ActionsAddSelectedRepoToOrgSecret.Input.Path) async throws -> Operations.ActionsAddSelectedRepoToOrgSecret.Output { + try await actionsAddSelectedRepoToOrgSecret(Operations.ActionsAddSelectedRepoToOrgSecret.Input(path: path)) } /// Remove selected repository from an organization secret /// @@ -2601,8 +2601,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)`. - public func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { - try await actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input(path: path)) + public func actionsRemoveSelectedRepoFromOrgSecret(path: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input.Path) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output { + try await actionsRemoveSelectedRepoFromOrgSecret(Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input(path: path)) } /// List organization variables /// @@ -2614,12 +2614,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/get(actions/list-org-variables)`. - public func actions_sol_list_hyphen_org_hyphen_variables( - path: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_org_hyphen_variables.Output { - try await actions_sol_list_hyphen_org_hyphen_variables(Operations.actions_sol_list_hyphen_org_hyphen_variables.Input( + public func actionsListOrgVariables( + path: Operations.ActionsListOrgVariables.Input.Path, + query: Operations.ActionsListOrgVariables.Input.Query = .init(), + headers: Operations.ActionsListOrgVariables.Input.Headers = .init() + ) async throws -> Operations.ActionsListOrgVariables.Output { + try await actionsListOrgVariables(Operations.ActionsListOrgVariables.Input( path: path, query: query, headers: headers @@ -2635,12 +2635,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/post(actions/create-org-variable)`. - public func actions_sol_create_hyphen_org_hyphen_variable( - path: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_org_hyphen_variable.Output { - try await actions_sol_create_hyphen_org_hyphen_variable(Operations.actions_sol_create_hyphen_org_hyphen_variable.Input( + public func actionsCreateOrgVariable( + path: Operations.ActionsCreateOrgVariable.Input.Path, + headers: Operations.ActionsCreateOrgVariable.Input.Headers = .init(), + body: Operations.ActionsCreateOrgVariable.Input.Body + ) async throws -> Operations.ActionsCreateOrgVariable.Output { + try await actionsCreateOrgVariable(Operations.ActionsCreateOrgVariable.Input( path: path, headers: headers, body: body @@ -2656,11 +2656,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/get(actions/get-org-variable)`. - public func actions_sol_get_hyphen_org_hyphen_variable( - path: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_org_hyphen_variable.Output { - try await actions_sol_get_hyphen_org_hyphen_variable(Operations.actions_sol_get_hyphen_org_hyphen_variable.Input( + public func actionsGetOrgVariable( + path: Operations.ActionsGetOrgVariable.Input.Path, + headers: Operations.ActionsGetOrgVariable.Input.Headers = .init() + ) async throws -> Operations.ActionsGetOrgVariable.Output { + try await actionsGetOrgVariable(Operations.ActionsGetOrgVariable.Input( path: path, headers: headers )) @@ -2675,11 +2675,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)`. - public func actions_sol_update_hyphen_org_hyphen_variable( - path: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_update_hyphen_org_hyphen_variable.Output { - try await actions_sol_update_hyphen_org_hyphen_variable(Operations.actions_sol_update_hyphen_org_hyphen_variable.Input( + public func actionsUpdateOrgVariable( + path: Operations.ActionsUpdateOrgVariable.Input.Path, + body: Operations.ActionsUpdateOrgVariable.Input.Body + ) async throws -> Operations.ActionsUpdateOrgVariable.Output { + try await actionsUpdateOrgVariable(Operations.ActionsUpdateOrgVariable.Input( path: path, body: body )) @@ -2694,8 +2694,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)`. - public func actions_sol_delete_hyphen_org_hyphen_variable(path: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_org_hyphen_variable.Output { - try await actions_sol_delete_hyphen_org_hyphen_variable(Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input(path: path)) + public func actionsDeleteOrgVariable(path: Operations.ActionsDeleteOrgVariable.Input.Path) async throws -> Operations.ActionsDeleteOrgVariable.Output { + try await actionsDeleteOrgVariable(Operations.ActionsDeleteOrgVariable.Input(path: path)) } /// List selected repositories for an organization variable /// @@ -2708,12 +2708,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)`. - public func actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output { - try await actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input( + public func actionsListSelectedReposForOrgVariable( + path: Operations.ActionsListSelectedReposForOrgVariable.Input.Path, + query: Operations.ActionsListSelectedReposForOrgVariable.Input.Query = .init(), + headers: Operations.ActionsListSelectedReposForOrgVariable.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelectedReposForOrgVariable.Output { + try await actionsListSelectedReposForOrgVariable(Operations.ActionsListSelectedReposForOrgVariable.Input( path: path, query: query, headers: headers @@ -2731,11 +2731,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)`. - public func actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output { - try await actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input( + public func actionsSetSelectedReposForOrgVariable( + path: Operations.ActionsSetSelectedReposForOrgVariable.Input.Path, + body: Operations.ActionsSetSelectedReposForOrgVariable.Input.Body + ) async throws -> Operations.ActionsSetSelectedReposForOrgVariable.Output { + try await actionsSetSelectedReposForOrgVariable(Operations.ActionsSetSelectedReposForOrgVariable.Input( path: path, body: body )) @@ -2751,8 +2751,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)`. - public func actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable(path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input.Path) async throws -> Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output { - try await actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input(path: path)) + public func actionsAddSelectedRepoToOrgVariable(path: Operations.ActionsAddSelectedRepoToOrgVariable.Input.Path) async throws -> Operations.ActionsAddSelectedRepoToOrgVariable.Output { + try await actionsAddSelectedRepoToOrgVariable(Operations.ActionsAddSelectedRepoToOrgVariable.Input(path: path)) } /// Remove selected repository from an organization variable /// @@ -2766,8 +2766,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)`. - public func actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable(path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output { - try await actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input(path: path)) + public func actionsRemoveSelectedRepoFromOrgVariable(path: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input.Path) async throws -> Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output { + try await actionsRemoveSelectedRepoFromOrgVariable(Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input(path: path)) } /// List artifacts for a repository /// @@ -2779,12 +2779,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/get(actions/list-artifacts-for-repo)`. - public func actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo( - path: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output { - try await actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo(Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input( + public func actionsListArtifactsForRepo( + path: Operations.ActionsListArtifactsForRepo.Input.Path, + query: Operations.ActionsListArtifactsForRepo.Input.Query = .init(), + headers: Operations.ActionsListArtifactsForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsListArtifactsForRepo.Output { + try await actionsListArtifactsForRepo(Operations.ActionsListArtifactsForRepo.Input( path: path, query: query, headers: headers @@ -2800,11 +2800,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/get(actions/get-artifact)`. - public func actions_sol_get_hyphen_artifact( - path: Operations.actions_sol_get_hyphen_artifact.Input.Path, - headers: Operations.actions_sol_get_hyphen_artifact.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_artifact.Output { - try await actions_sol_get_hyphen_artifact(Operations.actions_sol_get_hyphen_artifact.Input( + public func actionsGetArtifact( + path: Operations.ActionsGetArtifact.Input.Path, + headers: Operations.ActionsGetArtifact.Input.Headers = .init() + ) async throws -> Operations.ActionsGetArtifact.Output { + try await actionsGetArtifact(Operations.ActionsGetArtifact.Input( path: path, headers: headers )) @@ -2816,8 +2816,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)`. - public func actions_sol_delete_hyphen_artifact(path: Operations.actions_sol_delete_hyphen_artifact.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_artifact.Output { - try await actions_sol_delete_hyphen_artifact(Operations.actions_sol_delete_hyphen_artifact.Input(path: path)) + public func actionsDeleteArtifact(path: Operations.ActionsDeleteArtifact.Input.Path) async throws -> Operations.ActionsDeleteArtifact.Output { + try await actionsDeleteArtifact(Operations.ActionsDeleteArtifact.Input(path: path)) } /// Download an artifact /// @@ -2828,11 +2828,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)`. - public func actions_sol_download_hyphen_artifact( - path: Operations.actions_sol_download_hyphen_artifact.Input.Path, - headers: Operations.actions_sol_download_hyphen_artifact.Input.Headers = .init() - ) async throws -> Operations.actions_sol_download_hyphen_artifact.Output { - try await actions_sol_download_hyphen_artifact(Operations.actions_sol_download_hyphen_artifact.Input( + public func actionsDownloadArtifact( + path: Operations.ActionsDownloadArtifact.Input.Path, + headers: Operations.ActionsDownloadArtifact.Input.Headers = .init() + ) async throws -> Operations.ActionsDownloadArtifact.Output { + try await actionsDownloadArtifact(Operations.ActionsDownloadArtifact.Input( path: path, headers: headers )) @@ -2848,11 +2848,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/cache/usage`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/cache/usage/get(actions/get-actions-cache-usage)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output { - try await actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input( + public func actionsGetActionsCacheUsage( + path: Operations.ActionsGetActionsCacheUsage.Input.Path, + headers: Operations.ActionsGetActionsCacheUsage.Input.Headers = .init() + ) async throws -> Operations.ActionsGetActionsCacheUsage.Output { + try await actionsGetActionsCacheUsage(Operations.ActionsGetActionsCacheUsage.Input( path: path, headers: headers )) @@ -2865,12 +2865,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/get(actions/get-actions-cache-list)`. - public func actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Path, - query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output { - try await actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input( + public func actionsGetActionsCacheList( + path: Operations.ActionsGetActionsCacheList.Input.Path, + query: Operations.ActionsGetActionsCacheList.Input.Query = .init(), + headers: Operations.ActionsGetActionsCacheList.Input.Headers = .init() + ) async throws -> Operations.ActionsGetActionsCacheList.Output { + try await actionsGetActionsCacheList(Operations.ActionsGetActionsCacheList.Input( path: path, query: query, headers: headers @@ -2884,12 +2884,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/delete(actions/delete-actions-cache-by-key)`. - public func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key( - path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Path, - query: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Query, - headers: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output { - try await actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key(Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input( + public func actionsDeleteActionsCacheByKey( + path: Operations.ActionsDeleteActionsCacheByKey.Input.Path, + query: Operations.ActionsDeleteActionsCacheByKey.Input.Query, + headers: Operations.ActionsDeleteActionsCacheByKey.Input.Headers = .init() + ) async throws -> Operations.ActionsDeleteActionsCacheByKey.Output { + try await actionsDeleteActionsCacheByKey(Operations.ActionsDeleteActionsCacheByKey.Input( path: path, query: query, headers: headers @@ -2903,8 +2903,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)`. - public func actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id(path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Output { - try await actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id(Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input(path: path)) + public func actionsDeleteActionsCacheById(path: Operations.ActionsDeleteActionsCacheById.Input.Path) async throws -> Operations.ActionsDeleteActionsCacheById.Output { + try await actionsDeleteActionsCacheById(Operations.ActionsDeleteActionsCacheById.Input(path: path)) } /// Get a job for a workflow run /// @@ -2916,11 +2916,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/get(actions/get-job-for-workflow-run)`. - public func actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output { - try await actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input( + public func actionsGetJobForWorkflowRun( + path: Operations.ActionsGetJobForWorkflowRun.Input.Path, + headers: Operations.ActionsGetJobForWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsGetJobForWorkflowRun.Output { + try await actionsGetJobForWorkflowRun(Operations.ActionsGetJobForWorkflowRun.Input( path: path, headers: headers )) @@ -2936,8 +2936,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/logs/get(actions/download-job-logs-for-workflow-run)`. - public func actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run(path: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path) async throws -> Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output { - try await actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run(Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input(path: path)) + public func actionsDownloadJobLogsForWorkflowRun(path: Operations.ActionsDownloadJobLogsForWorkflowRun.Input.Path) async throws -> Operations.ActionsDownloadJobLogsForWorkflowRun.Output { + try await actionsDownloadJobLogsForWorkflowRun(Operations.ActionsDownloadJobLogsForWorkflowRun.Input(path: path)) } /// Re-run a job from a workflow run /// @@ -2947,12 +2947,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)`. - public func actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Body? = nil - ) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output { - try await actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run(Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input( + public func actionsReRunJobForWorkflowRun( + path: Operations.ActionsReRunJobForWorkflowRun.Input.Path, + headers: Operations.ActionsReRunJobForWorkflowRun.Input.Headers = .init(), + body: Operations.ActionsReRunJobForWorkflowRun.Input.Body? = nil + ) async throws -> Operations.ActionsReRunJobForWorkflowRun.Output { + try await actionsReRunJobForWorkflowRun(Operations.ActionsReRunJobForWorkflowRun.Input( path: path, headers: headers, body: body @@ -2966,11 +2966,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)`. - public func actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo( - path: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output { - try await actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input( + public func actionsGetCustomOidcSubClaimForRepo( + path: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Path, + headers: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsGetCustomOidcSubClaimForRepo.Output { + try await actionsGetCustomOidcSubClaimForRepo(Operations.ActionsGetCustomOidcSubClaimForRepo.Input( path: path, headers: headers )) @@ -2983,12 +2983,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)`. - public func actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo( - path: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output { - try await actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo(Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input( + public func actionsSetCustomOidcSubClaimForRepo( + path: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Path, + headers: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Headers = .init(), + body: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Body + ) async throws -> Operations.ActionsSetCustomOidcSubClaimForRepo.Output { + try await actionsSetCustomOidcSubClaimForRepo(Operations.ActionsSetCustomOidcSubClaimForRepo.Input( path: path, headers: headers, body: body @@ -3005,12 +3005,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-secrets/get(actions/list-repo-organization-secrets)`. - public func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets( - path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output { - try await actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input( + public func actionsListRepoOrganizationSecrets( + path: Operations.ActionsListRepoOrganizationSecrets.Input.Path, + query: Operations.ActionsListRepoOrganizationSecrets.Input.Query = .init(), + headers: Operations.ActionsListRepoOrganizationSecrets.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoOrganizationSecrets.Output { + try await actionsListRepoOrganizationSecrets(Operations.ActionsListRepoOrganizationSecrets.Input( path: path, query: query, headers: headers @@ -3026,12 +3026,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-variables/get(actions/list-repo-organization-variables)`. - public func actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables( - path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output { - try await actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input( + public func actionsListRepoOrganizationVariables( + path: Operations.ActionsListRepoOrganizationVariables.Input.Path, + query: Operations.ActionsListRepoOrganizationVariables.Input.Query = .init(), + headers: Operations.ActionsListRepoOrganizationVariables.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoOrganizationVariables.Output { + try await actionsListRepoOrganizationVariables(Operations.ActionsListRepoOrganizationVariables.Input( path: path, query: query, headers: headers @@ -3045,11 +3045,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/get(actions/get-github-actions-permissions-repository)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output { - try await actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input( + public func actionsGetGithubActionsPermissionsRepository( + path: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Path, + headers: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Headers = .init() + ) async throws -> Operations.ActionsGetGithubActionsPermissionsRepository.Output { + try await actionsGetGithubActionsPermissionsRepository(Operations.ActionsGetGithubActionsPermissionsRepository.Input( path: path, headers: headers )) @@ -3062,11 +3062,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output { - try await actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input( + public func actionsSetGithubActionsPermissionsRepository( + path: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Path, + body: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Body + ) async throws -> Operations.ActionsSetGithubActionsPermissionsRepository.Output { + try await actionsSetGithubActionsPermissionsRepository(Operations.ActionsSetGithubActionsPermissionsRepository.Input( path: path, body: body )) @@ -3081,11 +3081,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/get(actions/get-workflow-access-to-repository)`. - public func actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output { - try await actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input( + public func actionsGetWorkflowAccessToRepository( + path: Operations.ActionsGetWorkflowAccessToRepository.Input.Path, + headers: Operations.ActionsGetWorkflowAccessToRepository.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflowAccessToRepository.Output { + try await actionsGetWorkflowAccessToRepository(Operations.ActionsGetWorkflowAccessToRepository.Input( path: path, headers: headers )) @@ -3100,11 +3100,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)`. - public func actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository( - path: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output { - try await actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository(Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input( + public func actionsSetWorkflowAccessToRepository( + path: Operations.ActionsSetWorkflowAccessToRepository.Input.Path, + body: Operations.ActionsSetWorkflowAccessToRepository.Input.Body + ) async throws -> Operations.ActionsSetWorkflowAccessToRepository.Output { + try await actionsSetWorkflowAccessToRepository(Operations.ActionsSetWorkflowAccessToRepository.Input( path: path, body: body )) @@ -3117,11 +3117,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/get(actions/get-allowed-actions-repository)`. - public func actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository( - path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output { - try await actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository(Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input( + public func actionsGetAllowedActionsRepository( + path: Operations.ActionsGetAllowedActionsRepository.Input.Path, + headers: Operations.ActionsGetAllowedActionsRepository.Input.Headers = .init() + ) async throws -> Operations.ActionsGetAllowedActionsRepository.Output { + try await actionsGetAllowedActionsRepository(Operations.ActionsGetAllowedActionsRepository.Input( path: path, headers: headers )) @@ -3134,11 +3134,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)`. - public func actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository( - path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Body? = nil - ) async throws -> Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Output { - try await actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository(Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input( + public func actionsSetAllowedActionsRepository( + path: Operations.ActionsSetAllowedActionsRepository.Input.Path, + body: Operations.ActionsSetAllowedActionsRepository.Input.Body? = nil + ) async throws -> Operations.ActionsSetAllowedActionsRepository.Output { + try await actionsSetAllowedActionsRepository(Operations.ActionsSetAllowedActionsRepository.Input( path: path, body: body )) @@ -3153,11 +3153,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-repository)`. - public func actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output { - try await actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input( + public func actionsGetGithubActionsDefaultWorkflowPermissionsRepository( + path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path, + headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Headers = .init() + ) async throws -> Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output { + try await actionsGetGithubActionsDefaultWorkflowPermissionsRepository(Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input( path: path, headers: headers )) @@ -3172,11 +3172,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)`. - public func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output { - try await actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input( + public func actionsSetGithubActionsDefaultWorkflowPermissionsRepository( + path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path, + body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Body + ) async throws -> Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output { + try await actionsSetGithubActionsDefaultWorkflowPermissionsRepository(Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input( path: path, body: body )) @@ -3191,12 +3191,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/get(actions/list-self-hosted-runners-for-repo)`. - public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output { - try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input( + public func actionsListSelfHostedRunnersForRepo( + path: Operations.ActionsListSelfHostedRunnersForRepo.Input.Path, + query: Operations.ActionsListSelfHostedRunnersForRepo.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsListSelfHostedRunnersForRepo.Output { + try await actionsListSelfHostedRunnersForRepo(Operations.ActionsListSelfHostedRunnersForRepo.Input( path: path, query: query, headers: headers @@ -3212,11 +3212,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/downloads/get(actions/list-runner-applications-for-repo)`. - public func actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo( - path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output { - try await actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo(Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input( + public func actionsListRunnerApplicationsForRepo( + path: Operations.ActionsListRunnerApplicationsForRepo.Input.Path, + headers: Operations.ActionsListRunnerApplicationsForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsListRunnerApplicationsForRepo.Output { + try await actionsListRunnerApplicationsForRepo(Operations.ActionsListRunnerApplicationsForRepo.Input( path: path, headers: headers )) @@ -3231,12 +3231,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)`. - public func actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo( - path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Output { - try await actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo(Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input( + public func actionsGenerateRunnerJitconfigForRepo( + path: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Path, + headers: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Headers = .init(), + body: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Body + ) async throws -> Operations.ActionsGenerateRunnerJitconfigForRepo.Output { + try await actionsGenerateRunnerJitconfigForRepo(Operations.ActionsGenerateRunnerJitconfigForRepo.Input( path: path, headers: headers, body: body @@ -3258,11 +3258,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/registration-token/post(actions/create-registration-token-for-repo)`. - public func actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo( - path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output { - try await actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo(Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input( + public func actionsCreateRegistrationTokenForRepo( + path: Operations.ActionsCreateRegistrationTokenForRepo.Input.Path, + headers: Operations.ActionsCreateRegistrationTokenForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsCreateRegistrationTokenForRepo.Output { + try await actionsCreateRegistrationTokenForRepo(Operations.ActionsCreateRegistrationTokenForRepo.Input( path: path, headers: headers )) @@ -3283,11 +3283,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/remove-token/post(actions/create-remove-token-for-repo)`. - public func actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo( - path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output { - try await actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo(Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input( + public func actionsCreateRemoveTokenForRepo( + path: Operations.ActionsCreateRemoveTokenForRepo.Input.Path, + headers: Operations.ActionsCreateRemoveTokenForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsCreateRemoveTokenForRepo.Output { + try await actionsCreateRemoveTokenForRepo(Operations.ActionsCreateRemoveTokenForRepo.Input( path: path, headers: headers )) @@ -3302,11 +3302,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-repo)`. - public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsGetSelfHostedRunnerForRepo( + path: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsGetSelfHostedRunnerForRepo.Output { + try await actionsGetSelfHostedRunnerForRepo(Operations.ActionsGetSelfHostedRunnerForRepo.Input( path: path, headers: headers )) @@ -3321,8 +3321,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`. - public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Output { - try await actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input(path: path)) + public func actionsDeleteSelfHostedRunnerFromRepo(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output { + try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(path: path)) } /// List labels for a self-hosted runner for a repository /// @@ -3334,11 +3334,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)`. - public func actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsListLabelsForSelfHostedRunnerForRepo( + path: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Output { + try await actionsListLabelsForSelfHostedRunnerForRepo(Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input( path: path, headers: headers )) @@ -3353,12 +3353,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)`. - public func actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsAddCustomLabelsToSelfHostedRunnerForRepo( + path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Headers = .init(), + body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Body + ) async throws -> Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Output { + try await actionsAddCustomLabelsToSelfHostedRunnerForRepo(Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input( path: path, headers: headers, body: body @@ -3375,12 +3375,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)`. - public func actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsSetCustomLabelsForSelfHostedRunnerForRepo( + path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Headers = .init(), + body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Body + ) async throws -> Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Output { + try await actionsSetCustomLabelsForSelfHostedRunnerForRepo(Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input( path: path, headers: headers, body: body @@ -3397,11 +3397,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)`. - public func actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo( + path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Output { + try await actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo(Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input( path: path, headers: headers )) @@ -3420,11 +3420,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)`. - public func actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo( - path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output { - try await actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo(Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input( + public func actionsRemoveCustomLabelFromSelfHostedRunnerForRepo( + path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Output { + try await actionsRemoveCustomLabelFromSelfHostedRunnerForRepo(Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input( path: path, headers: headers )) @@ -3441,12 +3441,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/get(actions/list-workflow-runs-for-repo)`. - public func actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output { - try await actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo(Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input( + public func actionsListWorkflowRunsForRepo( + path: Operations.ActionsListWorkflowRunsForRepo.Input.Path, + query: Operations.ActionsListWorkflowRunsForRepo.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRunsForRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsListWorkflowRunsForRepo.Output { + try await actionsListWorkflowRunsForRepo(Operations.ActionsListWorkflowRunsForRepo.Input( path: path, query: query, headers: headers @@ -3462,12 +3462,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/get(actions/get-workflow-run)`. - public func actions_sol_get_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Path, - query: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output { - try await actions_sol_get_hyphen_workflow_hyphen_run(Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input( + public func actionsGetWorkflowRun( + path: Operations.ActionsGetWorkflowRun.Input.Path, + query: Operations.ActionsGetWorkflowRun.Input.Query = .init(), + headers: Operations.ActionsGetWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflowRun.Output { + try await actionsGetWorkflowRun(Operations.ActionsGetWorkflowRun.Input( path: path, query: query, headers: headers @@ -3483,8 +3483,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)`. - public func actions_sol_delete_hyphen_workflow_hyphen_run(path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Output { - try await actions_sol_delete_hyphen_workflow_hyphen_run(Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input(path: path)) + public func actionsDeleteWorkflowRun(path: Operations.ActionsDeleteWorkflowRun.Input.Path) async throws -> Operations.ActionsDeleteWorkflowRun.Output { + try await actionsDeleteWorkflowRun(Operations.ActionsDeleteWorkflowRun.Input(path: path)) } /// Get the review history for a workflow run /// @@ -3494,11 +3494,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approvals/get(actions/get-reviews-for-run)`. - public func actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run( - path: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output { - try await actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run(Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input( + public func actionsGetReviewsForRun( + path: Operations.ActionsGetReviewsForRun.Input.Path, + headers: Operations.ActionsGetReviewsForRun.Input.Headers = .init() + ) async throws -> Operations.ActionsGetReviewsForRun.Output { + try await actionsGetReviewsForRun(Operations.ActionsGetReviewsForRun.Input( path: path, headers: headers )) @@ -3511,11 +3511,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)`. - public func actions_sol_approve_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output { - try await actions_sol_approve_hyphen_workflow_hyphen_run(Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input( + public func actionsApproveWorkflowRun( + path: Operations.ActionsApproveWorkflowRun.Input.Path, + headers: Operations.ActionsApproveWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsApproveWorkflowRun.Output { + try await actionsApproveWorkflowRun(Operations.ActionsApproveWorkflowRun.Input( path: path, headers: headers )) @@ -3530,12 +3530,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/get(actions/list-workflow-run-artifacts)`. - public func actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output { - try await actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts(Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input( + public func actionsListWorkflowRunArtifacts( + path: Operations.ActionsListWorkflowRunArtifacts.Input.Path, + query: Operations.ActionsListWorkflowRunArtifacts.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRunArtifacts.Input.Headers = .init() + ) async throws -> Operations.ActionsListWorkflowRunArtifacts.Output { + try await actionsListWorkflowRunArtifacts(Operations.ActionsListWorkflowRunArtifacts.Input( path: path, query: query, headers: headers @@ -3551,12 +3551,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/get(actions/get-workflow-run-attempt)`. - public func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path, - query: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output { - try await actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt(Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input( + public func actionsGetWorkflowRunAttempt( + path: Operations.ActionsGetWorkflowRunAttempt.Input.Path, + query: Operations.ActionsGetWorkflowRunAttempt.Input.Query = .init(), + headers: Operations.ActionsGetWorkflowRunAttempt.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflowRunAttempt.Output { + try await actionsGetWorkflowRunAttempt(Operations.ActionsGetWorkflowRunAttempt.Input( path: path, query: query, headers: headers @@ -3573,12 +3573,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)`. - public func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt( - path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path, - query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output { - try await actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input( + public func actionsListJobsForWorkflowRunAttempt( + path: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Path, + query: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Query = .init(), + headers: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Headers = .init() + ) async throws -> Operations.ActionsListJobsForWorkflowRunAttempt.Output { + try await actionsListJobsForWorkflowRunAttempt(Operations.ActionsListJobsForWorkflowRunAttempt.Input( path: path, query: query, headers: headers @@ -3595,8 +3595,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/get(actions/download-workflow-run-attempt-logs)`. - public func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs(path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input.Path) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output { - try await actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs(Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input(path: path)) + public func actionsDownloadWorkflowRunAttemptLogs(path: Operations.ActionsDownloadWorkflowRunAttemptLogs.Input.Path) async throws -> Operations.ActionsDownloadWorkflowRunAttemptLogs.Output { + try await actionsDownloadWorkflowRunAttemptLogs(Operations.ActionsDownloadWorkflowRunAttemptLogs.Input(path: path)) } /// Cancel a workflow run /// @@ -3606,11 +3606,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)`. - public func actions_sol_cancel_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output { - try await actions_sol_cancel_hyphen_workflow_hyphen_run(Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input( + public func actionsCancelWorkflowRun( + path: Operations.ActionsCancelWorkflowRun.Input.Path, + headers: Operations.ActionsCancelWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsCancelWorkflowRun.Output { + try await actionsCancelWorkflowRun(Operations.ActionsCancelWorkflowRun.Input( path: path, headers: headers )) @@ -3626,11 +3626,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)`. - public func actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run( - path: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Path, - body: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Body - ) async throws -> Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Output { - try await actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run(Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input( + public func actionsReviewCustomGatesForRun( + path: Operations.ActionsReviewCustomGatesForRun.Input.Path, + body: Operations.ActionsReviewCustomGatesForRun.Input.Body + ) async throws -> Operations.ActionsReviewCustomGatesForRun.Output { + try await actionsReviewCustomGatesForRun(Operations.ActionsReviewCustomGatesForRun.Input( path: path, body: body )) @@ -3644,11 +3644,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)`. - public func actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output { - try await actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run(Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input( + public func actionsForceCancelWorkflowRun( + path: Operations.ActionsForceCancelWorkflowRun.Input.Path, + headers: Operations.ActionsForceCancelWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsForceCancelWorkflowRun.Output { + try await actionsForceCancelWorkflowRun(Operations.ActionsForceCancelWorkflowRun.Input( path: path, headers: headers )) @@ -3664,12 +3664,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/jobs/get(actions/list-jobs-for-workflow-run)`. - public func actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run( - path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output { - try await actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input( + public func actionsListJobsForWorkflowRun( + path: Operations.ActionsListJobsForWorkflowRun.Input.Path, + query: Operations.ActionsListJobsForWorkflowRun.Input.Query = .init(), + headers: Operations.ActionsListJobsForWorkflowRun.Input.Headers = .init() + ) async throws -> Operations.ActionsListJobsForWorkflowRun.Output { + try await actionsListJobsForWorkflowRun(Operations.ActionsListJobsForWorkflowRun.Input( path: path, query: query, headers: headers @@ -3686,8 +3686,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/get(actions/download-workflow-run-logs)`. - public func actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs(path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path) async throws -> Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output { - try await actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs(Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input(path: path)) + public func actionsDownloadWorkflowRunLogs(path: Operations.ActionsDownloadWorkflowRunLogs.Input.Path) async throws -> Operations.ActionsDownloadWorkflowRunLogs.Output { + try await actionsDownloadWorkflowRunLogs(Operations.ActionsDownloadWorkflowRunLogs.Input(path: path)) } /// Delete workflow run logs /// @@ -3697,11 +3697,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)`. - public func actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs( - path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path, - headers: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Headers = .init() - ) async throws -> Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Output { - try await actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs(Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input( + public func actionsDeleteWorkflowRunLogs( + path: Operations.ActionsDeleteWorkflowRunLogs.Input.Path, + headers: Operations.ActionsDeleteWorkflowRunLogs.Input.Headers = .init() + ) async throws -> Operations.ActionsDeleteWorkflowRunLogs.Output { + try await actionsDeleteWorkflowRunLogs(Operations.ActionsDeleteWorkflowRunLogs.Input( path: path, headers: headers )) @@ -3716,11 +3716,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/get(actions/get-pending-deployments-for-run)`. - public func actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run( - path: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output { - try await actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input( + public func actionsGetPendingDeploymentsForRun( + path: Operations.ActionsGetPendingDeploymentsForRun.Input.Path, + headers: Operations.ActionsGetPendingDeploymentsForRun.Input.Headers = .init() + ) async throws -> Operations.ActionsGetPendingDeploymentsForRun.Output { + try await actionsGetPendingDeploymentsForRun(Operations.ActionsGetPendingDeploymentsForRun.Input( path: path, headers: headers )) @@ -3735,12 +3735,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/post(actions/review-pending-deployments-for-run)`. - public func actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run( - path: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers = .init(), - body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body - ) async throws -> Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output { - try await actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run(Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input( + public func actionsReviewPendingDeploymentsForRun( + path: Operations.ActionsReviewPendingDeploymentsForRun.Input.Path, + headers: Operations.ActionsReviewPendingDeploymentsForRun.Input.Headers = .init(), + body: Operations.ActionsReviewPendingDeploymentsForRun.Input.Body + ) async throws -> Operations.ActionsReviewPendingDeploymentsForRun.Output { + try await actionsReviewPendingDeploymentsForRun(Operations.ActionsReviewPendingDeploymentsForRun.Input( path: path, headers: headers, body: body @@ -3754,12 +3754,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun/post(actions/re-run-workflow)`. - public func actions_sol_re_hyphen_run_hyphen_workflow( - path: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Body? = nil - ) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output { - try await actions_sol_re_hyphen_run_hyphen_workflow(Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input( + public func actionsReRunWorkflow( + path: Operations.ActionsReRunWorkflow.Input.Path, + headers: Operations.ActionsReRunWorkflow.Input.Headers = .init(), + body: Operations.ActionsReRunWorkflow.Input.Body? = nil + ) async throws -> Operations.ActionsReRunWorkflow.Output { + try await actionsReRunWorkflow(Operations.ActionsReRunWorkflow.Input( path: path, headers: headers, body: body @@ -3773,12 +3773,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/post(actions/re-run-workflow-failed-jobs)`. - public func actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs( - path: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Body? = nil - ) async throws -> Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output { - try await actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs(Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input( + public func actionsReRunWorkflowFailedJobs( + path: Operations.ActionsReRunWorkflowFailedJobs.Input.Path, + headers: Operations.ActionsReRunWorkflowFailedJobs.Input.Headers = .init(), + body: Operations.ActionsReRunWorkflowFailedJobs.Input.Body? = nil + ) async throws -> Operations.ActionsReRunWorkflowFailedJobs.Output { + try await actionsReRunWorkflowFailedJobs(Operations.ActionsReRunWorkflowFailedJobs.Input( path: path, headers: headers, body: body @@ -3797,11 +3797,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/timing/get(actions/get-workflow-run-usage)`. - public func actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output { - try await actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage(Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input( + public func actionsGetWorkflowRunUsage( + path: Operations.ActionsGetWorkflowRunUsage.Input.Path, + headers: Operations.ActionsGetWorkflowRunUsage.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflowRunUsage.Output { + try await actionsGetWorkflowRunUsage(Operations.ActionsGetWorkflowRunUsage.Input( path: path, headers: headers )) @@ -3817,12 +3817,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/get(actions/list-repo-secrets)`. - public func actions_sol_list_hyphen_repo_hyphen_secrets( - path: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output { - try await actions_sol_list_hyphen_repo_hyphen_secrets(Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input( + public func actionsListRepoSecrets( + path: Operations.ActionsListRepoSecrets.Input.Path, + query: Operations.ActionsListRepoSecrets.Input.Query = .init(), + headers: Operations.ActionsListRepoSecrets.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoSecrets.Output { + try await actionsListRepoSecrets(Operations.ActionsListRepoSecrets.Input( path: path, query: query, headers: headers @@ -3839,11 +3839,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/public-key/get(actions/get-repo-public-key)`. - public func actions_sol_get_hyphen_repo_hyphen_public_hyphen_key( - path: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { - try await actions_sol_get_hyphen_repo_hyphen_public_hyphen_key(Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input( + public func actionsGetRepoPublicKey( + path: Operations.ActionsGetRepoPublicKey.Input.Path, + headers: Operations.ActionsGetRepoPublicKey.Input.Headers = .init() + ) async throws -> Operations.ActionsGetRepoPublicKey.Output { + try await actionsGetRepoPublicKey(Operations.ActionsGetRepoPublicKey.Input( path: path, headers: headers )) @@ -3858,11 +3858,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/get(actions/get-repo-secret)`. - public func actions_sol_get_hyphen_repo_hyphen_secret( - path: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output { - try await actions_sol_get_hyphen_repo_hyphen_secret(Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input( + public func actionsGetRepoSecret( + path: Operations.ActionsGetRepoSecret.Input.Path, + headers: Operations.ActionsGetRepoSecret.Input.Headers = .init() + ) async throws -> Operations.ActionsGetRepoSecret.Output { + try await actionsGetRepoSecret(Operations.ActionsGetRepoSecret.Input( path: path, headers: headers )) @@ -3878,12 +3878,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { - try await actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input( + public func actionsCreateOrUpdateRepoSecret( + path: Operations.ActionsCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateRepoSecret.Input.Body + ) async throws -> Operations.ActionsCreateOrUpdateRepoSecret.Output { + try await actionsCreateOrUpdateRepoSecret(Operations.ActionsCreateOrUpdateRepoSecret.Input( path: path, headers: headers, body: body @@ -3899,8 +3899,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)`. - public func actions_sol_delete_hyphen_repo_hyphen_secret(path: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Output { - try await actions_sol_delete_hyphen_repo_hyphen_secret(Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input(path: path)) + public func actionsDeleteRepoSecret(path: Operations.ActionsDeleteRepoSecret.Input.Path) async throws -> Operations.ActionsDeleteRepoSecret.Output { + try await actionsDeleteRepoSecret(Operations.ActionsDeleteRepoSecret.Input(path: path)) } /// List repository variables /// @@ -3912,12 +3912,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/get(actions/list-repo-variables)`. - public func actions_sol_list_hyphen_repo_hyphen_variables( - path: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output { - try await actions_sol_list_hyphen_repo_hyphen_variables(Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input( + public func actionsListRepoVariables( + path: Operations.ActionsListRepoVariables.Input.Path, + query: Operations.ActionsListRepoVariables.Input.Query = .init(), + headers: Operations.ActionsListRepoVariables.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoVariables.Output { + try await actionsListRepoVariables(Operations.ActionsListRepoVariables.Input( path: path, query: query, headers: headers @@ -3933,12 +3933,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/post(actions/create-repo-variable)`. - public func actions_sol_create_hyphen_repo_hyphen_variable( - path: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output { - try await actions_sol_create_hyphen_repo_hyphen_variable(Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input( + public func actionsCreateRepoVariable( + path: Operations.ActionsCreateRepoVariable.Input.Path, + headers: Operations.ActionsCreateRepoVariable.Input.Headers = .init(), + body: Operations.ActionsCreateRepoVariable.Input.Body + ) async throws -> Operations.ActionsCreateRepoVariable.Output { + try await actionsCreateRepoVariable(Operations.ActionsCreateRepoVariable.Input( path: path, headers: headers, body: body @@ -3954,11 +3954,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/get(actions/get-repo-variable)`. - public func actions_sol_get_hyphen_repo_hyphen_variable( - path: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output { - try await actions_sol_get_hyphen_repo_hyphen_variable(Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input( + public func actionsGetRepoVariable( + path: Operations.ActionsGetRepoVariable.Input.Path, + headers: Operations.ActionsGetRepoVariable.Input.Headers = .init() + ) async throws -> Operations.ActionsGetRepoVariable.Output { + try await actionsGetRepoVariable(Operations.ActionsGetRepoVariable.Input( path: path, headers: headers )) @@ -3973,11 +3973,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)`. - public func actions_sol_update_hyphen_repo_hyphen_variable( - path: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_update_hyphen_repo_hyphen_variable.Output { - try await actions_sol_update_hyphen_repo_hyphen_variable(Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input( + public func actionsUpdateRepoVariable( + path: Operations.ActionsUpdateRepoVariable.Input.Path, + body: Operations.ActionsUpdateRepoVariable.Input.Body + ) async throws -> Operations.ActionsUpdateRepoVariable.Output { + try await actionsUpdateRepoVariable(Operations.ActionsUpdateRepoVariable.Input( path: path, body: body )) @@ -3992,8 +3992,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)`. - public func actions_sol_delete_hyphen_repo_hyphen_variable(path: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Output { - try await actions_sol_delete_hyphen_repo_hyphen_variable(Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input(path: path)) + public func actionsDeleteRepoVariable(path: Operations.ActionsDeleteRepoVariable.Input.Path) async throws -> Operations.ActionsDeleteRepoVariable.Output { + try await actionsDeleteRepoVariable(Operations.ActionsDeleteRepoVariable.Input(path: path)) } /// List repository workflows /// @@ -4005,12 +4005,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/get(actions/list-repo-workflows)`. - public func actions_sol_list_hyphen_repo_hyphen_workflows( - path: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output { - try await actions_sol_list_hyphen_repo_hyphen_workflows(Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input( + public func actionsListRepoWorkflows( + path: Operations.ActionsListRepoWorkflows.Input.Path, + query: Operations.ActionsListRepoWorkflows.Input.Query = .init(), + headers: Operations.ActionsListRepoWorkflows.Input.Headers = .init() + ) async throws -> Operations.ActionsListRepoWorkflows.Output { + try await actionsListRepoWorkflows(Operations.ActionsListRepoWorkflows.Input( path: path, query: query, headers: headers @@ -4027,11 +4027,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/get(actions/get-workflow)`. - public func actions_sol_get_hyphen_workflow( - path: Operations.actions_sol_get_hyphen_workflow.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow.Output { - try await actions_sol_get_hyphen_workflow(Operations.actions_sol_get_hyphen_workflow.Input( + public func actionsGetWorkflow( + path: Operations.ActionsGetWorkflow.Input.Path, + headers: Operations.ActionsGetWorkflow.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflow.Output { + try await actionsGetWorkflow(Operations.ActionsGetWorkflow.Input( path: path, headers: headers )) @@ -4044,8 +4044,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)`. - public func actions_sol_disable_hyphen_workflow(path: Operations.actions_sol_disable_hyphen_workflow.Input.Path) async throws -> Operations.actions_sol_disable_hyphen_workflow.Output { - try await actions_sol_disable_hyphen_workflow(Operations.actions_sol_disable_hyphen_workflow.Input(path: path)) + public func actionsDisableWorkflow(path: Operations.ActionsDisableWorkflow.Input.Path) async throws -> Operations.ActionsDisableWorkflow.Output { + try await actionsDisableWorkflow(Operations.ActionsDisableWorkflow.Input(path: path)) } /// Create a workflow dispatch event /// @@ -4057,11 +4057,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)`. - public func actions_sol_create_hyphen_workflow_hyphen_dispatch( - path: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Path, - body: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Output { - try await actions_sol_create_hyphen_workflow_hyphen_dispatch(Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input( + public func actionsCreateWorkflowDispatch( + path: Operations.ActionsCreateWorkflowDispatch.Input.Path, + body: Operations.ActionsCreateWorkflowDispatch.Input.Body + ) async throws -> Operations.ActionsCreateWorkflowDispatch.Output { + try await actionsCreateWorkflowDispatch(Operations.ActionsCreateWorkflowDispatch.Input( path: path, body: body )) @@ -4074,8 +4074,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)`. - public func actions_sol_enable_hyphen_workflow(path: Operations.actions_sol_enable_hyphen_workflow.Input.Path) async throws -> Operations.actions_sol_enable_hyphen_workflow.Output { - try await actions_sol_enable_hyphen_workflow(Operations.actions_sol_enable_hyphen_workflow.Input(path: path)) + public func actionsEnableWorkflow(path: Operations.ActionsEnableWorkflow.Input.Path) async throws -> Operations.ActionsEnableWorkflow.Output { + try await actionsEnableWorkflow(Operations.ActionsEnableWorkflow.Input(path: path)) } /// List workflow runs for a workflow /// @@ -4089,12 +4089,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/get(actions/list-workflow-runs)`. - public func actions_sol_list_hyphen_workflow_hyphen_runs( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output { - try await actions_sol_list_hyphen_workflow_hyphen_runs(Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input( + public func actionsListWorkflowRuns( + path: Operations.ActionsListWorkflowRuns.Input.Path, + query: Operations.ActionsListWorkflowRuns.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRuns.Input.Headers = .init() + ) async throws -> Operations.ActionsListWorkflowRuns.Output { + try await actionsListWorkflowRuns(Operations.ActionsListWorkflowRuns.Input( path: path, query: query, headers: headers @@ -4115,11 +4115,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/get(actions/get-workflow-usage)`. - public func actions_sol_get_hyphen_workflow_hyphen_usage( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output { - try await actions_sol_get_hyphen_workflow_hyphen_usage(Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input( + public func actionsGetWorkflowUsage( + path: Operations.ActionsGetWorkflowUsage.Input.Path, + headers: Operations.ActionsGetWorkflowUsage.Input.Headers = .init() + ) async throws -> Operations.ActionsGetWorkflowUsage.Output { + try await actionsGetWorkflowUsage(Operations.ActionsGetWorkflowUsage.Input( path: path, headers: headers )) @@ -4135,12 +4135,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/get(actions/list-environment-secrets)`. - public func actions_sol_list_hyphen_environment_hyphen_secrets( - path: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output { - try await actions_sol_list_hyphen_environment_hyphen_secrets(Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input( + public func actionsListEnvironmentSecrets( + path: Operations.ActionsListEnvironmentSecrets.Input.Path, + query: Operations.ActionsListEnvironmentSecrets.Input.Query = .init(), + headers: Operations.ActionsListEnvironmentSecrets.Input.Headers = .init() + ) async throws -> Operations.ActionsListEnvironmentSecrets.Output { + try await actionsListEnvironmentSecrets(Operations.ActionsListEnvironmentSecrets.Input( path: path, query: query, headers: headers @@ -4157,11 +4157,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/get(actions/get-environment-public-key)`. - public func actions_sol_get_hyphen_environment_hyphen_public_hyphen_key( - path: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output { - try await actions_sol_get_hyphen_environment_hyphen_public_hyphen_key(Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input( + public func actionsGetEnvironmentPublicKey( + path: Operations.ActionsGetEnvironmentPublicKey.Input.Path, + headers: Operations.ActionsGetEnvironmentPublicKey.Input.Headers = .init() + ) async throws -> Operations.ActionsGetEnvironmentPublicKey.Output { + try await actionsGetEnvironmentPublicKey(Operations.ActionsGetEnvironmentPublicKey.Input( path: path, headers: headers )) @@ -4176,11 +4176,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/get(actions/get-environment-secret)`. - public func actions_sol_get_hyphen_environment_hyphen_secret( - path: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output { - try await actions_sol_get_hyphen_environment_hyphen_secret(Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input( + public func actionsGetEnvironmentSecret( + path: Operations.ActionsGetEnvironmentSecret.Input.Path, + headers: Operations.ActionsGetEnvironmentSecret.Input.Headers = .init() + ) async throws -> Operations.ActionsGetEnvironmentSecret.Output { + try await actionsGetEnvironmentSecret(Operations.ActionsGetEnvironmentSecret.Input( path: path, headers: headers )) @@ -4196,12 +4196,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)`. - public func actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output { - try await actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input( + public func actionsCreateOrUpdateEnvironmentSecret( + path: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Body + ) async throws -> Operations.ActionsCreateOrUpdateEnvironmentSecret.Output { + try await actionsCreateOrUpdateEnvironmentSecret(Operations.ActionsCreateOrUpdateEnvironmentSecret.Input( path: path, headers: headers, body: body @@ -4217,8 +4217,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)`. - public func actions_sol_delete_hyphen_environment_hyphen_secret(path: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Output { - try await actions_sol_delete_hyphen_environment_hyphen_secret(Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input(path: path)) + public func actionsDeleteEnvironmentSecret(path: Operations.ActionsDeleteEnvironmentSecret.Input.Path) async throws -> Operations.ActionsDeleteEnvironmentSecret.Output { + try await actionsDeleteEnvironmentSecret(Operations.ActionsDeleteEnvironmentSecret.Input(path: path)) } /// List environment variables /// @@ -4230,12 +4230,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/get(actions/list-environment-variables)`. - public func actions_sol_list_hyphen_environment_hyphen_variables( - path: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Headers = .init() - ) async throws -> Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output { - try await actions_sol_list_hyphen_environment_hyphen_variables(Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input( + public func actionsListEnvironmentVariables( + path: Operations.ActionsListEnvironmentVariables.Input.Path, + query: Operations.ActionsListEnvironmentVariables.Input.Query = .init(), + headers: Operations.ActionsListEnvironmentVariables.Input.Headers = .init() + ) async throws -> Operations.ActionsListEnvironmentVariables.Output { + try await actionsListEnvironmentVariables(Operations.ActionsListEnvironmentVariables.Input( path: path, query: query, headers: headers @@ -4251,12 +4251,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/post(actions/create-environment-variable)`. - public func actions_sol_create_hyphen_environment_hyphen_variable( - path: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output { - try await actions_sol_create_hyphen_environment_hyphen_variable(Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input( + public func actionsCreateEnvironmentVariable( + path: Operations.ActionsCreateEnvironmentVariable.Input.Path, + headers: Operations.ActionsCreateEnvironmentVariable.Input.Headers = .init(), + body: Operations.ActionsCreateEnvironmentVariable.Input.Body + ) async throws -> Operations.ActionsCreateEnvironmentVariable.Output { + try await actionsCreateEnvironmentVariable(Operations.ActionsCreateEnvironmentVariable.Input( path: path, headers: headers, body: body @@ -4272,11 +4272,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/get(actions/get-environment-variable)`. - public func actions_sol_get_hyphen_environment_hyphen_variable( - path: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Headers = .init() - ) async throws -> Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output { - try await actions_sol_get_hyphen_environment_hyphen_variable(Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input( + public func actionsGetEnvironmentVariable( + path: Operations.ActionsGetEnvironmentVariable.Input.Path, + headers: Operations.ActionsGetEnvironmentVariable.Input.Headers = .init() + ) async throws -> Operations.ActionsGetEnvironmentVariable.Output { + try await actionsGetEnvironmentVariable(Operations.ActionsGetEnvironmentVariable.Input( path: path, headers: headers )) @@ -4291,11 +4291,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)`. - public func actions_sol_update_hyphen_environment_hyphen_variable( - path: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Body - ) async throws -> Operations.actions_sol_update_hyphen_environment_hyphen_variable.Output { - try await actions_sol_update_hyphen_environment_hyphen_variable(Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input( + public func actionsUpdateEnvironmentVariable( + path: Operations.ActionsUpdateEnvironmentVariable.Input.Path, + body: Operations.ActionsUpdateEnvironmentVariable.Input.Body + ) async throws -> Operations.ActionsUpdateEnvironmentVariable.Output { + try await actionsUpdateEnvironmentVariable(Operations.ActionsUpdateEnvironmentVariable.Input( path: path, body: body )) @@ -4310,13 +4310,22 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)`. - public func actions_sol_delete_hyphen_environment_hyphen_variable(path: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Output { - try await actions_sol_delete_hyphen_environment_hyphen_variable(Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input(path: path)) + public func actionsDeleteEnvironmentVariable(path: Operations.ActionsDeleteEnvironmentVariable.Input.Path) async throws -> Operations.ActionsDeleteEnvironmentVariable.Output { + try await actionsDeleteEnvironmentVariable(Operations.ActionsDeleteEnvironmentVariable.Input(path: path)) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -4332,7 +4341,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -4342,171 +4351,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -4514,54 +4523,54 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -4571,68 +4580,68 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -4641,25 +4650,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -4667,7 +4676,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -4677,7 +4686,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -4687,142 +4696,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -4830,66 +4839,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -4900,7 +4909,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4930,15 +4939,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -4946,97 +4955,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -5044,38 +5053,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -5089,47 +5098,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -5137,7 +5146,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -5145,10 +5154,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -5157,16 +5166,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -5174,7 +5183,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -5182,10 +5191,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -5194,424 +5203,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -5621,40 +5630,40 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -5664,25 +5673,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -5695,15 +5704,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -5711,17 +5720,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -5734,7 +5743,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -5767,23 +5776,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -5798,23 +5807,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -5823,7 +5832,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -5831,106 +5840,106 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -5938,21 +5947,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -5960,27 +5969,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -5990,21 +5999,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -6012,21 +6021,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -6034,21 +6043,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -6056,21 +6065,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -6078,62 +6087,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -6141,121 +6150,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -6263,13 +6272,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -6280,7 +6289,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -6310,499 +6319,499 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// - Remark: Generated from `#/components/schemas/actions-cache-usage-org-enterprise`. - public struct actions_hyphen_cache_hyphen_usage_hyphen_org_hyphen_enterprise: Codable, Hashable, Sendable { + public struct ActionsCacheUsageOrgEnterprise: Codable, Hashable, Sendable { /// The count of active caches across all repositories of an enterprise or an organization. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-org-enterprise/total_active_caches_count`. - public var total_active_caches_count: Swift.Int + public var totalActiveCachesCount: Swift.Int /// The total size in bytes of all active cache items across all repositories of an enterprise or an organization. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-org-enterprise/total_active_caches_size_in_bytes`. - public var total_active_caches_size_in_bytes: Swift.Int - /// Creates a new `actions_hyphen_cache_hyphen_usage_hyphen_org_hyphen_enterprise`. + public var totalActiveCachesSizeInBytes: Swift.Int + /// Creates a new `ActionsCacheUsageOrgEnterprise`. /// /// - Parameters: - /// - total_active_caches_count: The count of active caches across all repositories of an enterprise or an organization. - /// - total_active_caches_size_in_bytes: The total size in bytes of all active cache items across all repositories of an enterprise or an organization. + /// - totalActiveCachesCount: The count of active caches across all repositories of an enterprise or an organization. + /// - totalActiveCachesSizeInBytes: The total size in bytes of all active cache items across all repositories of an enterprise or an organization. public init( - total_active_caches_count: Swift.Int, - total_active_caches_size_in_bytes: Swift.Int + totalActiveCachesCount: Swift.Int, + totalActiveCachesSizeInBytes: Swift.Int ) { - self.total_active_caches_count = total_active_caches_count - self.total_active_caches_size_in_bytes = total_active_caches_size_in_bytes + self.totalActiveCachesCount = totalActiveCachesCount + self.totalActiveCachesSizeInBytes = totalActiveCachesSizeInBytes } public enum CodingKeys: String, CodingKey { - case total_active_caches_count - case total_active_caches_size_in_bytes + case totalActiveCachesCount = "total_active_caches_count" + case totalActiveCachesSizeInBytes = "total_active_caches_size_in_bytes" } } /// GitHub Actions Cache Usage by repository. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-by-repository`. - public struct actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository: Codable, Hashable, Sendable { + public struct ActionsCacheUsageByRepository: Codable, Hashable, Sendable { /// The repository owner and name for the cache usage being shown. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-by-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// The sum of the size in bytes of all the active cache items in the repository. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-by-repository/active_caches_size_in_bytes`. - public var active_caches_size_in_bytes: Swift.Int + public var activeCachesSizeInBytes: Swift.Int /// The number of active caches in the repository. /// /// - Remark: Generated from `#/components/schemas/actions-cache-usage-by-repository/active_caches_count`. - public var active_caches_count: Swift.Int - /// Creates a new `actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository`. + public var activeCachesCount: Swift.Int + /// Creates a new `ActionsCacheUsageByRepository`. /// /// - Parameters: - /// - full_name: The repository owner and name for the cache usage being shown. - /// - active_caches_size_in_bytes: The sum of the size in bytes of all the active cache items in the repository. - /// - active_caches_count: The number of active caches in the repository. + /// - fullName: The repository owner and name for the cache usage being shown. + /// - activeCachesSizeInBytes: The sum of the size in bytes of all the active cache items in the repository. + /// - activeCachesCount: The number of active caches in the repository. public init( - full_name: Swift.String, - active_caches_size_in_bytes: Swift.Int, - active_caches_count: Swift.Int + fullName: Swift.String, + activeCachesSizeInBytes: Swift.Int, + activeCachesCount: Swift.Int ) { - self.full_name = full_name - self.active_caches_size_in_bytes = active_caches_size_in_bytes - self.active_caches_count = active_caches_count + self.fullName = fullName + self.activeCachesSizeInBytes = activeCachesSizeInBytes + self.activeCachesCount = activeCachesCount } public enum CodingKeys: String, CodingKey { - case full_name - case active_caches_size_in_bytes - case active_caches_count + case fullName = "full_name" + case activeCachesSizeInBytes = "active_caches_size_in_bytes" + case activeCachesCount = "active_caches_count" } } /// Provides details of a hosted runner image /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image`. - public struct nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image: Codable, Hashable, Sendable { + public struct NullableActionsHostedRunnerPoolImage: Codable, Hashable, Sendable { /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image/id`. @@ -6810,15 +6819,15 @@ public enum Components { /// Image size in GB. /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image/size_gb`. - public var size_gb: Swift.Int + public var sizeGb: Swift.Int /// Display name for this image. /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image/display_name`. - public var display_name: Swift.String + public var displayName: Swift.String /// The image provider. /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image/source`. - @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { + @frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable { case github = "github" case partner = "partner" case custom = "custom" @@ -6826,36 +6835,36 @@ public enum Components { /// The image provider. /// /// - Remark: Generated from `#/components/schemas/nullable-actions-hosted-runner-pool-image/source`. - public var source: Components.Schemas.nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image.sourcePayload - /// Creates a new `nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image`. + public var source: Components.Schemas.NullableActionsHostedRunnerPoolImage.SourcePayload + /// Creates a new `NullableActionsHostedRunnerPoolImage`. /// /// - Parameters: /// - id: The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. - /// - size_gb: Image size in GB. - /// - display_name: Display name for this image. + /// - sizeGb: Image size in GB. + /// - displayName: Display name for this image. /// - source: The image provider. public init( id: Swift.String, - size_gb: Swift.Int, - display_name: Swift.String, - source: Components.Schemas.nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image.sourcePayload + sizeGb: Swift.Int, + displayName: Swift.String, + source: Components.Schemas.NullableActionsHostedRunnerPoolImage.SourcePayload ) { self.id = id - self.size_gb = size_gb - self.display_name = display_name + self.sizeGb = sizeGb + self.displayName = displayName self.source = source } public enum CodingKeys: String, CodingKey { case id - case size_gb - case display_name + case sizeGb = "size_gb" + case displayName = "display_name" case source } } /// Provides details of a particular machine spec. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-machine-spec`. - public struct actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec: Codable, Hashable, Sendable { + public struct ActionsHostedRunnerMachineSpec: Codable, Hashable, Sendable { /// The ID used for the `size` parameter when creating a new runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-machine-spec/id`. @@ -6863,44 +6872,44 @@ public enum Components { /// The number of cores. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-machine-spec/cpu_cores`. - public var cpu_cores: Swift.Int + public var cpuCores: Swift.Int /// The available RAM for the machine spec. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-machine-spec/memory_gb`. - public var memory_gb: Swift.Int + public var memoryGb: Swift.Int /// The available SSD storage for the machine spec. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-machine-spec/storage_gb`. - public var storage_gb: Swift.Int - /// Creates a new `actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec`. + public var storageGb: Swift.Int + /// Creates a new `ActionsHostedRunnerMachineSpec`. /// /// - Parameters: /// - id: The ID used for the `size` parameter when creating a new runner. - /// - cpu_cores: The number of cores. - /// - memory_gb: The available RAM for the machine spec. - /// - storage_gb: The available SSD storage for the machine spec. + /// - cpuCores: The number of cores. + /// - memoryGb: The available RAM for the machine spec. + /// - storageGb: The available SSD storage for the machine spec. public init( id: Swift.String, - cpu_cores: Swift.Int, - memory_gb: Swift.Int, - storage_gb: Swift.Int + cpuCores: Swift.Int, + memoryGb: Swift.Int, + storageGb: Swift.Int ) { self.id = id - self.cpu_cores = cpu_cores - self.memory_gb = memory_gb - self.storage_gb = storage_gb + self.cpuCores = cpuCores + self.memoryGb = memoryGb + self.storageGb = storageGb } public enum CodingKeys: String, CodingKey { case id - case cpu_cores - case memory_gb - case storage_gb + case cpuCores = "cpu_cores" + case memoryGb = "memory_gb" + case storageGb = "storage_gb" } } /// Provides details of Public IP for a GitHub-hosted larger runners /// /// - Remark: Generated from `#/components/schemas/public-ip`. - public struct public_hyphen_ip: Codable, Hashable, Sendable { + public struct PublicIp: Codable, Hashable, Sendable { /// Whether public IP is enabled. /// /// - Remark: Generated from `#/components/schemas/public-ip/enabled`. @@ -6913,7 +6922,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/public-ip/length`. public var length: Swift.Int? - /// Creates a new `public_hyphen_ip`. + /// Creates a new `PublicIp`. /// /// - Parameters: /// - enabled: Whether public IP is enabled. @@ -6937,7 +6946,7 @@ public enum Components { /// A Github-hosted hosted runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner`. - public struct actions_hyphen_hosted_hyphen_runner: Codable, Hashable, Sendable { + public struct ActionsHostedRunner: Codable, Hashable, Sendable { /// The unique identifier of the hosted runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/id`. @@ -6949,25 +6958,25 @@ public enum Components { /// The unique identifier of the group that the hosted runner belongs to. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/runner_group_id`. - public var runner_group_id: Swift.Int? + public var runnerGroupId: Swift.Int? /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/image_details`. - public var image_details: Components.Schemas.nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image? + public var imageDetails: Components.Schemas.NullableActionsHostedRunnerPoolImage? /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/machine_size_details`. - public var machine_size_details: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec + public var machineSizeDetails: Components.Schemas.ActionsHostedRunnerMachineSpec /// The status of the runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { - case Ready = "Ready" - case Provisioning = "Provisioning" - case Shutdown = "Shutdown" - case Deleting = "Deleting" - case Stuck = "Stuck" + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case ready = "Ready" + case provisioning = "Provisioning" + case shutdown = "Shutdown" + case deleting = "Deleting" + case stuck = "Stuck" } /// The status of the runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/status`. - public var status: Components.Schemas.actions_hyphen_hosted_hyphen_runner.statusPayload + public var status: Components.Schemas.ActionsHostedRunner.StatusPayload /// The operating system of the image. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/platform`. @@ -6975,76 +6984,76 @@ public enum Components { /// The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/maximum_runners`. - public var maximum_runners: Swift.Int? + public var maximumRunners: Swift.Int? /// Whether public IP is enabled for the hosted runners. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/public_ip_enabled`. - public var public_ip_enabled: Swift.Bool + public var publicIpEnabled: Swift.Bool /// The public IP ranges when public IP is enabled for the hosted runners. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/public_ips`. - public var public_ips: [Components.Schemas.public_hyphen_ip]? + public var publicIps: [Components.Schemas.PublicIp]? /// The time at which the runner was last used, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner/last_active_on`. - public var last_active_on: Foundation.Date? - /// Creates a new `actions_hyphen_hosted_hyphen_runner`. + public var lastActiveOn: Foundation.Date? + /// Creates a new `ActionsHostedRunner`. /// /// - Parameters: /// - id: The unique identifier of the hosted runner. /// - name: The name of the hosted runner. - /// - runner_group_id: The unique identifier of the group that the hosted runner belongs to. - /// - image_details: - /// - machine_size_details: + /// - runnerGroupId: The unique identifier of the group that the hosted runner belongs to. + /// - imageDetails: + /// - machineSizeDetails: /// - status: The status of the runner. /// - platform: The operating system of the image. - /// - maximum_runners: The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost. - /// - public_ip_enabled: Whether public IP is enabled for the hosted runners. - /// - public_ips: The public IP ranges when public IP is enabled for the hosted runners. - /// - last_active_on: The time at which the runner was last used, in ISO 8601 format. + /// - maximumRunners: The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost. + /// - publicIpEnabled: Whether public IP is enabled for the hosted runners. + /// - publicIps: The public IP ranges when public IP is enabled for the hosted runners. + /// - lastActiveOn: The time at which the runner was last used, in ISO 8601 format. public init( id: Swift.Int, name: Swift.String, - runner_group_id: Swift.Int? = nil, - image_details: Components.Schemas.nullable_hyphen_actions_hyphen_hosted_hyphen_runner_hyphen_pool_hyphen_image? = nil, - machine_size_details: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec, - status: Components.Schemas.actions_hyphen_hosted_hyphen_runner.statusPayload, + runnerGroupId: Swift.Int? = nil, + imageDetails: Components.Schemas.NullableActionsHostedRunnerPoolImage? = nil, + machineSizeDetails: Components.Schemas.ActionsHostedRunnerMachineSpec, + status: Components.Schemas.ActionsHostedRunner.StatusPayload, platform: Swift.String, - maximum_runners: Swift.Int? = nil, - public_ip_enabled: Swift.Bool, - public_ips: [Components.Schemas.public_hyphen_ip]? = nil, - last_active_on: Foundation.Date? = nil + maximumRunners: Swift.Int? = nil, + publicIpEnabled: Swift.Bool, + publicIps: [Components.Schemas.PublicIp]? = nil, + lastActiveOn: Foundation.Date? = nil ) { self.id = id self.name = name - self.runner_group_id = runner_group_id - self.image_details = image_details - self.machine_size_details = machine_size_details + self.runnerGroupId = runnerGroupId + self.imageDetails = imageDetails + self.machineSizeDetails = machineSizeDetails self.status = status self.platform = platform - self.maximum_runners = maximum_runners - self.public_ip_enabled = public_ip_enabled - self.public_ips = public_ips - self.last_active_on = last_active_on + self.maximumRunners = maximumRunners + self.publicIpEnabled = publicIpEnabled + self.publicIps = publicIps + self.lastActiveOn = lastActiveOn } public enum CodingKeys: String, CodingKey { case id case name - case runner_group_id - case image_details - case machine_size_details + case runnerGroupId = "runner_group_id" + case imageDetails = "image_details" + case machineSizeDetails = "machine_size_details" case status case platform - case maximum_runners - case public_ip_enabled - case public_ips - case last_active_on + case maximumRunners = "maximum_runners" + case publicIpEnabled = "public_ip_enabled" + case publicIps = "public_ips" + case lastActiveOn = "last_active_on" } } /// Provides details of a hosted runner image /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image`. - public struct actions_hyphen_hosted_hyphen_runner_hyphen_image: Codable, Hashable, Sendable { + public struct ActionsHostedRunnerImage: Codable, Hashable, Sendable { /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/id`. @@ -7056,15 +7065,15 @@ public enum Components { /// Image size in GB. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/size_gb`. - public var size_gb: Swift.Int + public var sizeGb: Swift.Int /// Display name for this image. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/display_name`. - public var display_name: Swift.String + public var displayName: Swift.String /// The image provider. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`. - @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { + @frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable { case github = "github" case partner = "partner" case custom = "custom" @@ -7072,42 +7081,42 @@ public enum Components { /// The image provider. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-image/source`. - public var source: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image.sourcePayload - /// Creates a new `actions_hyphen_hosted_hyphen_runner_hyphen_image`. + public var source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload + /// Creates a new `ActionsHostedRunnerImage`. /// /// - Parameters: /// - id: The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. /// - platform: The operating system of the image. - /// - size_gb: Image size in GB. - /// - display_name: Display name for this image. + /// - sizeGb: Image size in GB. + /// - displayName: Display name for this image. /// - source: The image provider. public init( id: Swift.String, platform: Swift.String, - size_gb: Swift.Int, - display_name: Swift.String, - source: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image.sourcePayload + sizeGb: Swift.Int, + displayName: Swift.String, + source: Components.Schemas.ActionsHostedRunnerImage.SourcePayload ) { self.id = id self.platform = platform - self.size_gb = size_gb - self.display_name = display_name + self.sizeGb = sizeGb + self.displayName = displayName self.source = source } public enum CodingKeys: String, CodingKey { case id case platform - case size_gb - case display_name + case sizeGb = "size_gb" + case displayName = "display_name" case source } } /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-limits`. - public struct actions_hyphen_hosted_hyphen_runner_hyphen_limits: Codable, Hashable, Sendable { + public struct ActionsHostedRunnerLimits: Codable, Hashable, Sendable { /// Provides details of static public IP limits for GitHub-hosted Hosted Runners /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-limits/public_ips`. - public struct public_ipsPayload: Codable, Hashable, Sendable { + public struct PublicIpsPayload: Codable, Hashable, Sendable { /// The maximum number of static public IP addresses that can be used for Hosted Runners. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-limits/public_ips/maximum`. @@ -7115,44 +7124,44 @@ public enum Components { /// The current number of static public IP addresses in use by Hosted Runners. /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-limits/public_ips/current_usage`. - public var current_usage: Swift.Int - /// Creates a new `public_ipsPayload`. + public var currentUsage: Swift.Int + /// Creates a new `PublicIpsPayload`. /// /// - Parameters: /// - maximum: The maximum number of static public IP addresses that can be used for Hosted Runners. - /// - current_usage: The current number of static public IP addresses in use by Hosted Runners. + /// - currentUsage: The current number of static public IP addresses in use by Hosted Runners. public init( maximum: Swift.Int, - current_usage: Swift.Int + currentUsage: Swift.Int ) { self.maximum = maximum - self.current_usage = current_usage + self.currentUsage = currentUsage } public enum CodingKeys: String, CodingKey { case maximum - case current_usage + case currentUsage = "current_usage" } } /// Provides details of static public IP limits for GitHub-hosted Hosted Runners /// /// - Remark: Generated from `#/components/schemas/actions-hosted-runner-limits/public_ips`. - public var public_ips: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_limits.public_ipsPayload - /// Creates a new `actions_hyphen_hosted_hyphen_runner_hyphen_limits`. + public var publicIps: Components.Schemas.ActionsHostedRunnerLimits.PublicIpsPayload + /// Creates a new `ActionsHostedRunnerLimits`. /// /// - Parameters: - /// - public_ips: Provides details of static public IP limits for GitHub-hosted Hosted Runners - public init(public_ips: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_limits.public_ipsPayload) { - self.public_ips = public_ips + /// - publicIps: Provides details of static public IP limits for GitHub-hosted Hosted Runners + public init(publicIps: Components.Schemas.ActionsHostedRunnerLimits.PublicIpsPayload) { + self.publicIps = publicIps } public enum CodingKeys: String, CodingKey { - case public_ips + case publicIps = "public_ips" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -7161,7 +7170,7 @@ public enum Components { /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. /// /// - Remark: Generated from `#/components/schemas/enabled-repositories`. - @frozen public enum enabled_hyphen_repositories: String, Codable, Hashable, Sendable { + @frozen public enum EnabledRepositories: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case none = "none" case selected = "selected" @@ -7169,149 +7178,149 @@ public enum Components { /// The permissions policy that controls the actions and reusable workflows that are allowed to run. /// /// - Remark: Generated from `#/components/schemas/allowed-actions`. - @frozen public enum allowed_hyphen_actions: String, Codable, Hashable, Sendable { + @frozen public enum AllowedActions: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" - case local_only = "local_only" + case localOnly = "local_only" case selected = "selected" } /// The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`. /// /// - Remark: Generated from `#/components/schemas/selected-actions-url`. - public typealias selected_hyphen_actions_hyphen_url = Swift.String + public typealias SelectedActionsUrl = Swift.String /// - Remark: Generated from `#/components/schemas/actions-organization-permissions`. - public struct actions_hyphen_organization_hyphen_permissions: Codable, Hashable, Sendable { + public struct ActionsOrganizationPermissions: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/actions-organization-permissions/enabled_repositories`. - public var enabled_repositories: Components.Schemas.enabled_hyphen_repositories + public var enabledRepositories: Components.Schemas.EnabledRepositories /// The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. /// /// - Remark: Generated from `#/components/schemas/actions-organization-permissions/selected_repositories_url`. - public var selected_repositories_url: Swift.String? + public var selectedRepositoriesUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/actions-organization-permissions/allowed_actions`. - public var allowed_actions: Components.Schemas.allowed_hyphen_actions? + public var allowedActions: Components.Schemas.AllowedActions? /// - Remark: Generated from `#/components/schemas/actions-organization-permissions/selected_actions_url`. - public var selected_actions_url: Components.Schemas.selected_hyphen_actions_hyphen_url? - /// Creates a new `actions_hyphen_organization_hyphen_permissions`. + public var selectedActionsUrl: Components.Schemas.SelectedActionsUrl? + /// Creates a new `ActionsOrganizationPermissions`. /// /// - Parameters: - /// - enabled_repositories: - /// - selected_repositories_url: The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. - /// - allowed_actions: - /// - selected_actions_url: + /// - enabledRepositories: + /// - selectedRepositoriesUrl: The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. + /// - allowedActions: + /// - selectedActionsUrl: public init( - enabled_repositories: Components.Schemas.enabled_hyphen_repositories, - selected_repositories_url: Swift.String? = nil, - allowed_actions: Components.Schemas.allowed_hyphen_actions? = nil, - selected_actions_url: Components.Schemas.selected_hyphen_actions_hyphen_url? = nil + enabledRepositories: Components.Schemas.EnabledRepositories, + selectedRepositoriesUrl: Swift.String? = nil, + allowedActions: Components.Schemas.AllowedActions? = nil, + selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil ) { - self.enabled_repositories = enabled_repositories - self.selected_repositories_url = selected_repositories_url - self.allowed_actions = allowed_actions - self.selected_actions_url = selected_actions_url + self.enabledRepositories = enabledRepositories + self.selectedRepositoriesUrl = selectedRepositoriesUrl + self.allowedActions = allowedActions + self.selectedActionsUrl = selectedActionsUrl } public enum CodingKeys: String, CodingKey { - case enabled_repositories - case selected_repositories_url - case allowed_actions - case selected_actions_url + case enabledRepositories = "enabled_repositories" + case selectedRepositoriesUrl = "selected_repositories_url" + case allowedActions = "allowed_actions" + case selectedActionsUrl = "selected_actions_url" } } /// - Remark: Generated from `#/components/schemas/selected-actions`. - public struct selected_hyphen_actions: Codable, Hashable, Sendable { + public struct SelectedActions: Codable, Hashable, Sendable { /// Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. /// /// - Remark: Generated from `#/components/schemas/selected-actions/github_owned_allowed`. - public var github_owned_allowed: Swift.Bool? + public var githubOwnedAllowed: Swift.Bool? /// Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. /// /// - Remark: Generated from `#/components/schemas/selected-actions/verified_allowed`. - public var verified_allowed: Swift.Bool? + public var verifiedAllowed: Swift.Bool? /// Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. /// /// > [!NOTE] /// > The `patterns_allowed` setting only applies to public repositories. /// /// - Remark: Generated from `#/components/schemas/selected-actions/patterns_allowed`. - public var patterns_allowed: [Swift.String]? - /// Creates a new `selected_hyphen_actions`. + public var patternsAllowed: [Swift.String]? + /// Creates a new `SelectedActions`. /// /// - Parameters: - /// - github_owned_allowed: Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. - /// - verified_allowed: Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. - /// - patterns_allowed: Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /// - githubOwnedAllowed: Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. + /// - verifiedAllowed: Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. + /// - patternsAllowed: Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. public init( - github_owned_allowed: Swift.Bool? = nil, - verified_allowed: Swift.Bool? = nil, - patterns_allowed: [Swift.String]? = nil + githubOwnedAllowed: Swift.Bool? = nil, + verifiedAllowed: Swift.Bool? = nil, + patternsAllowed: [Swift.String]? = nil ) { - self.github_owned_allowed = github_owned_allowed - self.verified_allowed = verified_allowed - self.patterns_allowed = patterns_allowed + self.githubOwnedAllowed = githubOwnedAllowed + self.verifiedAllowed = verifiedAllowed + self.patternsAllowed = patternsAllowed } public enum CodingKeys: String, CodingKey { - case github_owned_allowed - case verified_allowed - case patterns_allowed + case githubOwnedAllowed = "github_owned_allowed" + case verifiedAllowed = "verified_allowed" + case patternsAllowed = "patterns_allowed" } } /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. /// /// - Remark: Generated from `#/components/schemas/actions-default-workflow-permissions`. - @frozen public enum actions_hyphen_default_hyphen_workflow_hyphen_permissions: String, Codable, Hashable, Sendable { + @frozen public enum ActionsDefaultWorkflowPermissions: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. /// /// - Remark: Generated from `#/components/schemas/actions-can-approve-pull-request-reviews`. - public typealias actions_hyphen_can_hyphen_approve_hyphen_pull_hyphen_request_hyphen_reviews = Swift.Bool + public typealias ActionsCanApprovePullRequestReviews = Swift.Bool /// - Remark: Generated from `#/components/schemas/actions-get-default-workflow-permissions`. - public struct actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions: Codable, Hashable, Sendable { + public struct ActionsGetDefaultWorkflowPermissions: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/actions-get-default-workflow-permissions/default_workflow_permissions`. - public var default_workflow_permissions: Components.Schemas.actions_hyphen_default_hyphen_workflow_hyphen_permissions + public var defaultWorkflowPermissions: Components.Schemas.ActionsDefaultWorkflowPermissions /// - Remark: Generated from `#/components/schemas/actions-get-default-workflow-permissions/can_approve_pull_request_reviews`. - public var can_approve_pull_request_reviews: Components.Schemas.actions_hyphen_can_hyphen_approve_hyphen_pull_hyphen_request_hyphen_reviews - /// Creates a new `actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions`. + public var canApprovePullRequestReviews: Components.Schemas.ActionsCanApprovePullRequestReviews + /// Creates a new `ActionsGetDefaultWorkflowPermissions`. /// /// - Parameters: - /// - default_workflow_permissions: - /// - can_approve_pull_request_reviews: + /// - defaultWorkflowPermissions: + /// - canApprovePullRequestReviews: public init( - default_workflow_permissions: Components.Schemas.actions_hyphen_default_hyphen_workflow_hyphen_permissions, - can_approve_pull_request_reviews: Components.Schemas.actions_hyphen_can_hyphen_approve_hyphen_pull_hyphen_request_hyphen_reviews + defaultWorkflowPermissions: Components.Schemas.ActionsDefaultWorkflowPermissions, + canApprovePullRequestReviews: Components.Schemas.ActionsCanApprovePullRequestReviews ) { - self.default_workflow_permissions = default_workflow_permissions - self.can_approve_pull_request_reviews = can_approve_pull_request_reviews + self.defaultWorkflowPermissions = defaultWorkflowPermissions + self.canApprovePullRequestReviews = canApprovePullRequestReviews } public enum CodingKeys: String, CodingKey { - case default_workflow_permissions - case can_approve_pull_request_reviews + case defaultWorkflowPermissions = "default_workflow_permissions" + case canApprovePullRequestReviews = "can_approve_pull_request_reviews" } } /// - Remark: Generated from `#/components/schemas/actions-set-default-workflow-permissions`. - public struct actions_hyphen_set_hyphen_default_hyphen_workflow_hyphen_permissions: Codable, Hashable, Sendable { + public struct ActionsSetDefaultWorkflowPermissions: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/actions-set-default-workflow-permissions/default_workflow_permissions`. - public var default_workflow_permissions: Components.Schemas.actions_hyphen_default_hyphen_workflow_hyphen_permissions? + public var defaultWorkflowPermissions: Components.Schemas.ActionsDefaultWorkflowPermissions? /// - Remark: Generated from `#/components/schemas/actions-set-default-workflow-permissions/can_approve_pull_request_reviews`. - public var can_approve_pull_request_reviews: Components.Schemas.actions_hyphen_can_hyphen_approve_hyphen_pull_hyphen_request_hyphen_reviews? - /// Creates a new `actions_hyphen_set_hyphen_default_hyphen_workflow_hyphen_permissions`. + public var canApprovePullRequestReviews: Components.Schemas.ActionsCanApprovePullRequestReviews? + /// Creates a new `ActionsSetDefaultWorkflowPermissions`. /// /// - Parameters: - /// - default_workflow_permissions: - /// - can_approve_pull_request_reviews: + /// - defaultWorkflowPermissions: + /// - canApprovePullRequestReviews: public init( - default_workflow_permissions: Components.Schemas.actions_hyphen_default_hyphen_workflow_hyphen_permissions? = nil, - can_approve_pull_request_reviews: Components.Schemas.actions_hyphen_can_hyphen_approve_hyphen_pull_hyphen_request_hyphen_reviews? = nil + defaultWorkflowPermissions: Components.Schemas.ActionsDefaultWorkflowPermissions? = nil, + canApprovePullRequestReviews: Components.Schemas.ActionsCanApprovePullRequestReviews? = nil ) { - self.default_workflow_permissions = default_workflow_permissions - self.can_approve_pull_request_reviews = can_approve_pull_request_reviews + self.defaultWorkflowPermissions = defaultWorkflowPermissions + self.canApprovePullRequestReviews = canApprovePullRequestReviews } public enum CodingKeys: String, CodingKey { - case default_workflow_permissions - case can_approve_pull_request_reviews + case defaultWorkflowPermissions = "default_workflow_permissions" + case canApprovePullRequestReviews = "can_approve_pull_request_reviews" } } /// - Remark: Generated from `#/components/schemas/runner-groups-org`. - public struct runner_hyphen_groups_hyphen_org: Codable, Hashable, Sendable { + public struct RunnerGroupsOrg: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/runner-groups-org/id`. public var id: Swift.Double /// - Remark: Generated from `#/components/schemas/runner-groups-org/name`. @@ -7323,102 +7332,102 @@ public enum Components { /// Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` /// /// - Remark: Generated from `#/components/schemas/runner-groups-org/selected_repositories_url`. - public var selected_repositories_url: Swift.String? + public var selectedRepositoriesUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/runner-groups-org/runners_url`. - public var runners_url: Swift.String + public var runnersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/runner-groups-org/hosted_runners_url`. - public var hosted_runners_url: Swift.String? + public var hostedRunnersUrl: Swift.String? /// The identifier of a hosted compute network configuration. /// /// - Remark: Generated from `#/components/schemas/runner-groups-org/network_configuration_id`. - public var network_configuration_id: Swift.String? + public var networkConfigurationId: Swift.String? /// - Remark: Generated from `#/components/schemas/runner-groups-org/inherited`. public var inherited: Swift.Bool /// - Remark: Generated from `#/components/schemas/runner-groups-org/inherited_allows_public_repositories`. - public var inherited_allows_public_repositories: Swift.Bool? + public var inheritedAllowsPublicRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/runner-groups-org/allows_public_repositories`. - public var allows_public_repositories: Swift.Bool + public var allowsPublicRepositories: Swift.Bool /// If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. /// /// - Remark: Generated from `#/components/schemas/runner-groups-org/workflow_restrictions_read_only`. - public var workflow_restrictions_read_only: Swift.Bool? + public var workflowRestrictionsReadOnly: Swift.Bool? /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. /// /// - Remark: Generated from `#/components/schemas/runner-groups-org/restricted_to_workflows`. - public var restricted_to_workflows: Swift.Bool? + public var restrictedToWorkflows: Swift.Bool? /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. /// /// - Remark: Generated from `#/components/schemas/runner-groups-org/selected_workflows`. - public var selected_workflows: [Swift.String]? - /// Creates a new `runner_hyphen_groups_hyphen_org`. + public var selectedWorkflows: [Swift.String]? + /// Creates a new `RunnerGroupsOrg`. /// /// - Parameters: /// - id: /// - name: /// - visibility: /// - _default: - /// - selected_repositories_url: Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` - /// - runners_url: - /// - hosted_runners_url: - /// - network_configuration_id: The identifier of a hosted compute network configuration. + /// - selectedRepositoriesUrl: Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` + /// - runnersUrl: + /// - hostedRunnersUrl: + /// - networkConfigurationId: The identifier of a hosted compute network configuration. /// - inherited: - /// - inherited_allows_public_repositories: - /// - allows_public_repositories: - /// - workflow_restrictions_read_only: If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. - /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. - /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// - inheritedAllowsPublicRepositories: + /// - allowsPublicRepositories: + /// - workflowRestrictionsReadOnly: If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. + /// - restrictedToWorkflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selectedWorkflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. public init( id: Swift.Double, name: Swift.String, visibility: Swift.String, _default: Swift.Bool, - selected_repositories_url: Swift.String? = nil, - runners_url: Swift.String, - hosted_runners_url: Swift.String? = nil, - network_configuration_id: Swift.String? = nil, + selectedRepositoriesUrl: Swift.String? = nil, + runnersUrl: Swift.String, + hostedRunnersUrl: Swift.String? = nil, + networkConfigurationId: Swift.String? = nil, inherited: Swift.Bool, - inherited_allows_public_repositories: Swift.Bool? = nil, - allows_public_repositories: Swift.Bool, - workflow_restrictions_read_only: Swift.Bool? = nil, - restricted_to_workflows: Swift.Bool? = nil, - selected_workflows: [Swift.String]? = nil + inheritedAllowsPublicRepositories: Swift.Bool? = nil, + allowsPublicRepositories: Swift.Bool, + workflowRestrictionsReadOnly: Swift.Bool? = nil, + restrictedToWorkflows: Swift.Bool? = nil, + selectedWorkflows: [Swift.String]? = nil ) { self.id = id self.name = name self.visibility = visibility self._default = _default - self.selected_repositories_url = selected_repositories_url - self.runners_url = runners_url - self.hosted_runners_url = hosted_runners_url - self.network_configuration_id = network_configuration_id + self.selectedRepositoriesUrl = selectedRepositoriesUrl + self.runnersUrl = runnersUrl + self.hostedRunnersUrl = hostedRunnersUrl + self.networkConfigurationId = networkConfigurationId self.inherited = inherited - self.inherited_allows_public_repositories = inherited_allows_public_repositories - self.allows_public_repositories = allows_public_repositories - self.workflow_restrictions_read_only = workflow_restrictions_read_only - self.restricted_to_workflows = restricted_to_workflows - self.selected_workflows = selected_workflows + self.inheritedAllowsPublicRepositories = inheritedAllowsPublicRepositories + self.allowsPublicRepositories = allowsPublicRepositories + self.workflowRestrictionsReadOnly = workflowRestrictionsReadOnly + self.restrictedToWorkflows = restrictedToWorkflows + self.selectedWorkflows = selectedWorkflows } public enum CodingKeys: String, CodingKey { case id case name case visibility case _default = "default" - case selected_repositories_url - case runners_url - case hosted_runners_url - case network_configuration_id + case selectedRepositoriesUrl = "selected_repositories_url" + case runnersUrl = "runners_url" + case hostedRunnersUrl = "hosted_runners_url" + case networkConfigurationId = "network_configuration_id" case inherited - case inherited_allows_public_repositories - case allows_public_repositories - case workflow_restrictions_read_only - case restricted_to_workflows - case selected_workflows + case inheritedAllowsPublicRepositories = "inherited_allows_public_repositories" + case allowsPublicRepositories = "allows_public_repositories" + case workflowRestrictionsReadOnly = "workflow_restrictions_read_only" + case restrictedToWorkflows = "restricted_to_workflows" + case selectedWorkflows = "selected_workflows" } } /// A label for a self hosted runner /// /// - Remark: Generated from `#/components/schemas/runner-label`. - public struct runner_hyphen_label: Codable, Hashable, Sendable { + public struct RunnerLabel: Codable, Hashable, Sendable { /// Unique identifier of the label. /// /// - Remark: Generated from `#/components/schemas/runner-label/id`. @@ -7430,15 +7439,15 @@ public enum Components { /// The type of label. Read-only labels are applied automatically when the runner is configured. /// /// - Remark: Generated from `#/components/schemas/runner-label/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case read_hyphen_only = "read-only" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case readOnly = "read-only" case custom = "custom" } /// The type of label. Read-only labels are applied automatically when the runner is configured. /// /// - Remark: Generated from `#/components/schemas/runner-label/type`. - public var _type: Components.Schemas.runner_hyphen_label._typePayload? - /// Creates a new `runner_hyphen_label`. + public var _type: Components.Schemas.RunnerLabel._TypePayload? + /// Creates a new `RunnerLabel`. /// /// - Parameters: /// - id: Unique identifier of the label. @@ -7447,7 +7456,7 @@ public enum Components { public init( id: Swift.Int? = nil, name: Swift.String, - _type: Components.Schemas.runner_hyphen_label._typePayload? = nil + _type: Components.Schemas.RunnerLabel._TypePayload? = nil ) { self.id = id self.name = name @@ -7462,7 +7471,7 @@ public enum Components { /// A self hosted runner /// /// - Remark: Generated from `#/components/schemas/runner`. - public struct runner: Codable, Hashable, Sendable { + public struct Runner: Codable, Hashable, Sendable { /// The ID of the runner. /// /// - Remark: Generated from `#/components/schemas/runner/id`. @@ -7470,7 +7479,7 @@ public enum Components { /// The ID of the runner group. /// /// - Remark: Generated from `#/components/schemas/runner/runner_group_id`. - public var runner_group_id: Swift.Int? + public var runnerGroupId: Swift.Int? /// The name of the runner. /// /// - Remark: Generated from `#/components/schemas/runner/name`. @@ -7486,14 +7495,14 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/runner/busy`. public var busy: Swift.Bool /// - Remark: Generated from `#/components/schemas/runner/labels`. - public var labels: [Components.Schemas.runner_hyphen_label] + public var labels: [Components.Schemas.RunnerLabel] /// - Remark: Generated from `#/components/schemas/runner/ephemeral`. public var ephemeral: Swift.Bool? - /// Creates a new `runner`. + /// Creates a new `Runner`. /// /// - Parameters: /// - id: The ID of the runner. - /// - runner_group_id: The ID of the runner group. + /// - runnerGroupId: The ID of the runner group. /// - name: The name of the runner. /// - os: The Operating System of the runner. /// - status: The status of the runner. @@ -7502,16 +7511,16 @@ public enum Components { /// - ephemeral: public init( id: Swift.Int, - runner_group_id: Swift.Int? = nil, + runnerGroupId: Swift.Int? = nil, name: Swift.String, os: Swift.String, status: Swift.String, busy: Swift.Bool, - labels: [Components.Schemas.runner_hyphen_label], + labels: [Components.Schemas.RunnerLabel], ephemeral: Swift.Bool? = nil ) { self.id = id - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId self.name = name self.os = os self.status = status @@ -7521,7 +7530,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case runner_group_id + case runnerGroupId = "runner_group_id" case name case os case status @@ -7533,58 +7542,58 @@ public enum Components { /// Runner Application /// /// - Remark: Generated from `#/components/schemas/runner-application`. - public struct runner_hyphen_application: Codable, Hashable, Sendable { + public struct RunnerApplication: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/runner-application/os`. public var os: Swift.String /// - Remark: Generated from `#/components/schemas/runner-application/architecture`. public var architecture: Swift.String /// - Remark: Generated from `#/components/schemas/runner-application/download_url`. - public var download_url: Swift.String + public var downloadUrl: Swift.String /// - Remark: Generated from `#/components/schemas/runner-application/filename`. public var filename: Swift.String /// A short lived bearer token used to download the runner, if needed. /// /// - Remark: Generated from `#/components/schemas/runner-application/temp_download_token`. - public var temp_download_token: Swift.String? + public var tempDownloadToken: Swift.String? /// - Remark: Generated from `#/components/schemas/runner-application/sha256_checksum`. - public var sha256_checksum: Swift.String? - /// Creates a new `runner_hyphen_application`. + public var sha256Checksum: Swift.String? + /// Creates a new `RunnerApplication`. /// /// - Parameters: /// - os: /// - architecture: - /// - download_url: + /// - downloadUrl: /// - filename: - /// - temp_download_token: A short lived bearer token used to download the runner, if needed. - /// - sha256_checksum: + /// - tempDownloadToken: A short lived bearer token used to download the runner, if needed. + /// - sha256Checksum: public init( os: Swift.String, architecture: Swift.String, - download_url: Swift.String, + downloadUrl: Swift.String, filename: Swift.String, - temp_download_token: Swift.String? = nil, - sha256_checksum: Swift.String? = nil + tempDownloadToken: Swift.String? = nil, + sha256Checksum: Swift.String? = nil ) { self.os = os self.architecture = architecture - self.download_url = download_url + self.downloadUrl = downloadUrl self.filename = filename - self.temp_download_token = temp_download_token - self.sha256_checksum = sha256_checksum + self.tempDownloadToken = tempDownloadToken + self.sha256Checksum = sha256Checksum } public enum CodingKeys: String, CodingKey { case os case architecture - case download_url + case downloadUrl = "download_url" case filename - case temp_download_token - case sha256_checksum + case tempDownloadToken = "temp_download_token" + case sha256Checksum = "sha256_checksum" } } /// Authentication Token /// /// - Remark: Generated from `#/components/schemas/authentication-token`. - public struct authentication_hyphen_token: Codable, Hashable, Sendable { + public struct AuthenticationToken: Codable, Hashable, Sendable { /// The token used for authentication /// /// - Remark: Generated from `#/components/schemas/authentication-token/token`. @@ -7592,75 +7601,75 @@ public enum Components { /// The time this token expires /// /// - Remark: Generated from `#/components/schemas/authentication-token/expires_at`. - public var expires_at: Foundation.Date + public var expiresAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/authentication-token/permissions`. public var permissions: OpenAPIRuntime.OpenAPIObjectContainer? /// The repositories this token has access to /// /// - Remark: Generated from `#/components/schemas/authentication-token/repositories`. - public var repositories: [Components.Schemas.repository]? + public var repositories: [Components.Schemas.Repository]? /// - Remark: Generated from `#/components/schemas/authentication-token/single_file`. - public var single_file: Swift.String? + public var singleFile: Swift.String? /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/authentication-token/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case selected = "selected" } /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/authentication-token/repository_selection`. - public var repository_selection: Components.Schemas.authentication_hyphen_token.repository_selectionPayload? - /// Creates a new `authentication_hyphen_token`. + public var repositorySelection: Components.Schemas.AuthenticationToken.RepositorySelectionPayload? + /// Creates a new `AuthenticationToken`. /// /// - Parameters: /// - token: The token used for authentication - /// - expires_at: The time this token expires + /// - expiresAt: The time this token expires /// - permissions: /// - repositories: The repositories this token has access to - /// - single_file: - /// - repository_selection: Describe whether all repositories have been selected or there's a selection involved + /// - singleFile: + /// - repositorySelection: Describe whether all repositories have been selected or there's a selection involved public init( token: Swift.String, - expires_at: Foundation.Date, + expiresAt: Foundation.Date, permissions: OpenAPIRuntime.OpenAPIObjectContainer? = nil, - repositories: [Components.Schemas.repository]? = nil, - single_file: Swift.String? = nil, - repository_selection: Components.Schemas.authentication_hyphen_token.repository_selectionPayload? = nil + repositories: [Components.Schemas.Repository]? = nil, + singleFile: Swift.String? = nil, + repositorySelection: Components.Schemas.AuthenticationToken.RepositorySelectionPayload? = nil ) { self.token = token - self.expires_at = expires_at + self.expiresAt = expiresAt self.permissions = permissions self.repositories = repositories - self.single_file = single_file - self.repository_selection = repository_selection + self.singleFile = singleFile + self.repositorySelection = repositorySelection } public enum CodingKeys: String, CodingKey { case token - case expires_at + case expiresAt = "expires_at" case permissions case repositories - case single_file - case repository_selection + case singleFile = "single_file" + case repositorySelection = "repository_selection" } } /// Secrets for GitHub Actions for an organization. /// /// - Remark: Generated from `#/components/schemas/organization-actions-secret`. - public struct organization_hyphen_actions_hyphen_secret: Codable, Hashable, Sendable { + public struct OrganizationActionsSecret: Codable, Hashable, Sendable { /// The name of the secret. /// /// - Remark: Generated from `#/components/schemas/organization-actions-secret/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/organization-actions-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/organization-actions-secret/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Visibility of a secret /// /// - Remark: Generated from `#/components/schemas/organization-actions-secret/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -7668,46 +7677,46 @@ public enum Components { /// Visibility of a secret /// /// - Remark: Generated from `#/components/schemas/organization-actions-secret/visibility`. - public var visibility: Components.Schemas.organization_hyphen_actions_hyphen_secret.visibilityPayload + public var visibility: Components.Schemas.OrganizationActionsSecret.VisibilityPayload /// - Remark: Generated from `#/components/schemas/organization-actions-secret/selected_repositories_url`. - public var selected_repositories_url: Swift.String? - /// Creates a new `organization_hyphen_actions_hyphen_secret`. + public var selectedRepositoriesUrl: Swift.String? + /// Creates a new `OrganizationActionsSecret`. /// /// - Parameters: /// - name: The name of the secret. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - visibility: Visibility of a secret - /// - selected_repositories_url: + /// - selectedRepositoriesUrl: public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - visibility: Components.Schemas.organization_hyphen_actions_hyphen_secret.visibilityPayload, - selected_repositories_url: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + visibility: Components.Schemas.OrganizationActionsSecret.VisibilityPayload, + selectedRepositoriesUrl: Swift.String? = nil ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.visibility = visibility - self.selected_repositories_url = selected_repositories_url + self.selectedRepositoriesUrl = selectedRepositoriesUrl } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case visibility - case selected_repositories_url + case selectedRepositoriesUrl = "selected_repositories_url" } } /// The public key used for setting Actions Secrets. /// /// - Remark: Generated from `#/components/schemas/actions-public-key`. - public struct actions_hyphen_public_hyphen_key: Codable, Hashable, Sendable { + public struct ActionsPublicKey: Codable, Hashable, Sendable { /// The identifier for the key. /// /// - Remark: Generated from `#/components/schemas/actions-public-key/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// The Base64 encoded public key. /// /// - Remark: Generated from `#/components/schemas/actions-public-key/key`. @@ -7719,44 +7728,44 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/actions-public-key/title`. public var title: Swift.String? /// - Remark: Generated from `#/components/schemas/actions-public-key/created_at`. - public var created_at: Swift.String? - /// Creates a new `actions_hyphen_public_hyphen_key`. + public var createdAt: Swift.String? + /// Creates a new `ActionsPublicKey`. /// /// - Parameters: - /// - key_id: The identifier for the key. + /// - keyId: The identifier for the key. /// - key: The Base64 encoded public key. /// - id: /// - url: /// - title: - /// - created_at: + /// - createdAt: public init( - key_id: Swift.String, + keyId: Swift.String, key: Swift.String, id: Swift.Int? = nil, url: Swift.String? = nil, title: Swift.String? = nil, - created_at: Swift.String? = nil + createdAt: Swift.String? = nil ) { - self.key_id = key_id + self.keyId = keyId self.key = key self.id = id self.url = url self.title = title - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { - case key_id + case keyId = "key_id" case key case id case url case title - case created_at + case createdAt = "created_at" } } /// Organization variable for GitHub Actions. /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable`. - public struct organization_hyphen_actions_hyphen_variable: Codable, Hashable, Sendable { + public struct OrganizationActionsVariable: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable/name`. @@ -7768,15 +7777,15 @@ public enum Components { /// The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Visibility of a variable /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -7784,58 +7793,58 @@ public enum Components { /// Visibility of a variable /// /// - Remark: Generated from `#/components/schemas/organization-actions-variable/visibility`. - public var visibility: Components.Schemas.organization_hyphen_actions_hyphen_variable.visibilityPayload + public var visibility: Components.Schemas.OrganizationActionsVariable.VisibilityPayload /// - Remark: Generated from `#/components/schemas/organization-actions-variable/selected_repositories_url`. - public var selected_repositories_url: Swift.String? - /// Creates a new `organization_hyphen_actions_hyphen_variable`. + public var selectedRepositoriesUrl: Swift.String? + /// Creates a new `OrganizationActionsVariable`. /// /// - Parameters: /// - name: The name of the variable. /// - value: The value of the variable. - /// - created_at: The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// - visibility: Visibility of a variable - /// - selected_repositories_url: + /// - selectedRepositoriesUrl: public init( name: Swift.String, value: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - visibility: Components.Schemas.organization_hyphen_actions_hyphen_variable.visibilityPayload, - selected_repositories_url: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + visibility: Components.Schemas.OrganizationActionsVariable.VisibilityPayload, + selectedRepositoriesUrl: Swift.String? = nil ) { self.name = name self.value = value - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.visibility = visibility - self.selected_repositories_url = selected_repositories_url + self.selectedRepositoriesUrl = selectedRepositoriesUrl } public enum CodingKeys: String, CodingKey { case name case value - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case visibility - case selected_repositories_url + case selectedRepositoriesUrl = "selected_repositories_url" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -7855,86 +7864,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -7944,11 +7953,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -7959,7 +7968,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -7989,90 +7998,90 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// An artifact /// /// - Remark: Generated from `#/components/schemas/artifact`. - public struct artifact: Codable, Hashable, Sendable { + public struct Artifact: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/artifact/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/artifact/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the artifact. /// /// - Remark: Generated from `#/components/schemas/artifact/name`. @@ -8080,215 +8089,215 @@ public enum Components { /// The size in bytes of the artifact. /// /// - Remark: Generated from `#/components/schemas/artifact/size_in_bytes`. - public var size_in_bytes: Swift.Int + public var sizeInBytes: Swift.Int /// - Remark: Generated from `#/components/schemas/artifact/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/artifact/archive_download_url`. - public var archive_download_url: Swift.String + public var archiveDownloadUrl: Swift.String /// Whether or not the artifact has expired. /// /// - Remark: Generated from `#/components/schemas/artifact/expired`. public var expired: Swift.Bool /// - Remark: Generated from `#/components/schemas/artifact/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/artifact/expires_at`. - public var expires_at: Foundation.Date? + public var expiresAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/artifact/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null. /// /// - Remark: Generated from `#/components/schemas/artifact/digest`. public var digest: Swift.String? /// - Remark: Generated from `#/components/schemas/artifact/workflow_run`. - public struct workflow_runPayload: Codable, Hashable, Sendable { + public struct WorkflowRunPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/artifact/workflow_run/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/artifact/workflow_run/repository_id`. - public var repository_id: Swift.Int? + public var repositoryId: Swift.Int? /// - Remark: Generated from `#/components/schemas/artifact/workflow_run/head_repository_id`. - public var head_repository_id: Swift.Int? + public var headRepositoryId: Swift.Int? /// - Remark: Generated from `#/components/schemas/artifact/workflow_run/head_branch`. - public var head_branch: Swift.String? + public var headBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/artifact/workflow_run/head_sha`. - public var head_sha: Swift.String? - /// Creates a new `workflow_runPayload`. + public var headSha: Swift.String? + /// Creates a new `WorkflowRunPayload`. /// /// - Parameters: /// - id: - /// - repository_id: - /// - head_repository_id: - /// - head_branch: - /// - head_sha: + /// - repositoryId: + /// - headRepositoryId: + /// - headBranch: + /// - headSha: public init( id: Swift.Int? = nil, - repository_id: Swift.Int? = nil, - head_repository_id: Swift.Int? = nil, - head_branch: Swift.String? = nil, - head_sha: Swift.String? = nil + repositoryId: Swift.Int? = nil, + headRepositoryId: Swift.Int? = nil, + headBranch: Swift.String? = nil, + headSha: Swift.String? = nil ) { self.id = id - self.repository_id = repository_id - self.head_repository_id = head_repository_id - self.head_branch = head_branch - self.head_sha = head_sha + self.repositoryId = repositoryId + self.headRepositoryId = headRepositoryId + self.headBranch = headBranch + self.headSha = headSha } public enum CodingKeys: String, CodingKey { case id - case repository_id - case head_repository_id - case head_branch - case head_sha + case repositoryId = "repository_id" + case headRepositoryId = "head_repository_id" + case headBranch = "head_branch" + case headSha = "head_sha" } } /// - Remark: Generated from `#/components/schemas/artifact/workflow_run`. - public var workflow_run: Components.Schemas.artifact.workflow_runPayload? - /// Creates a new `artifact`. + public var workflowRun: Components.Schemas.Artifact.WorkflowRunPayload? + /// Creates a new `Artifact`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: The name of the artifact. - /// - size_in_bytes: The size in bytes of the artifact. + /// - sizeInBytes: The size in bytes of the artifact. /// - url: - /// - archive_download_url: + /// - archiveDownloadUrl: /// - expired: Whether or not the artifact has expired. - /// - created_at: - /// - expires_at: - /// - updated_at: + /// - createdAt: + /// - expiresAt: + /// - updatedAt: /// - digest: The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null. - /// - workflow_run: + /// - workflowRun: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - size_in_bytes: Swift.Int, + sizeInBytes: Swift.Int, url: Swift.String, - archive_download_url: Swift.String, + archiveDownloadUrl: Swift.String, expired: Swift.Bool, - created_at: Foundation.Date? = nil, - expires_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + expiresAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, digest: Swift.String? = nil, - workflow_run: Components.Schemas.artifact.workflow_runPayload? = nil + workflowRun: Components.Schemas.Artifact.WorkflowRunPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.size_in_bytes = size_in_bytes + self.sizeInBytes = sizeInBytes self.url = url - self.archive_download_url = archive_download_url + self.archiveDownloadUrl = archiveDownloadUrl self.expired = expired - self.created_at = created_at - self.expires_at = expires_at - self.updated_at = updated_at + self.createdAt = createdAt + self.expiresAt = expiresAt + self.updatedAt = updatedAt self.digest = digest - self.workflow_run = workflow_run + self.workflowRun = workflowRun } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case size_in_bytes + case sizeInBytes = "size_in_bytes" case url - case archive_download_url + case archiveDownloadUrl = "archive_download_url" case expired - case created_at - case expires_at - case updated_at + case createdAt = "created_at" + case expiresAt = "expires_at" + case updatedAt = "updated_at" case digest - case workflow_run + case workflowRun = "workflow_run" } } /// Repository actions caches /// /// - Remark: Generated from `#/components/schemas/actions-cache-list`. - public struct actions_hyphen_cache_hyphen_list: Codable, Hashable, Sendable { + public struct ActionsCacheList: Codable, Hashable, Sendable { /// Total number of caches /// /// - Remark: Generated from `#/components/schemas/actions-cache-list/total_count`. - public var total_count: Swift.Int - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload`. - public struct actions_cachesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/id`. + public var totalCount: Swift.Int + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload`. + public struct ActionsCachesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/ref`. + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/ref`. public var ref: Swift.String? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/key`. + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/key`. public var key: Swift.String? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/version`. + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/version`. public var version: Swift.String? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/last_accessed_at`. - public var last_accessed_at: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/created_at`. - public var created_at: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_cachesPayload/size_in_bytes`. - public var size_in_bytes: Swift.Int? - /// Creates a new `actions_cachesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/last_accessed_at`. + public var lastAccessedAt: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/created_at`. + public var createdAt: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/actions-cache-list/ActionsCachesPayload/size_in_bytes`. + public var sizeInBytes: Swift.Int? + /// Creates a new `ActionsCachesPayloadPayload`. /// /// - Parameters: /// - id: /// - ref: /// - key: /// - version: - /// - last_accessed_at: - /// - created_at: - /// - size_in_bytes: + /// - lastAccessedAt: + /// - createdAt: + /// - sizeInBytes: public init( id: Swift.Int? = nil, ref: Swift.String? = nil, key: Swift.String? = nil, version: Swift.String? = nil, - last_accessed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - size_in_bytes: Swift.Int? = nil + lastAccessedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + sizeInBytes: Swift.Int? = nil ) { self.id = id self.ref = ref self.key = key self.version = version - self.last_accessed_at = last_accessed_at - self.created_at = created_at - self.size_in_bytes = size_in_bytes + self.lastAccessedAt = lastAccessedAt + self.createdAt = createdAt + self.sizeInBytes = sizeInBytes } public enum CodingKeys: String, CodingKey { case id case ref case key case version - case last_accessed_at - case created_at - case size_in_bytes + case lastAccessedAt = "last_accessed_at" + case createdAt = "created_at" + case sizeInBytes = "size_in_bytes" } } /// Array of caches /// /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_caches`. - public typealias actions_cachesPayload = [Components.Schemas.actions_hyphen_cache_hyphen_list.actions_cachesPayloadPayload] + public typealias ActionsCachesPayload = [Components.Schemas.ActionsCacheList.ActionsCachesPayloadPayload] /// Array of caches /// /// - Remark: Generated from `#/components/schemas/actions-cache-list/actions_caches`. - public var actions_caches: Components.Schemas.actions_hyphen_cache_hyphen_list.actions_cachesPayload - /// Creates a new `actions_hyphen_cache_hyphen_list`. + public var actionsCaches: Components.Schemas.ActionsCacheList.ActionsCachesPayload + /// Creates a new `ActionsCacheList`. /// /// - Parameters: - /// - total_count: Total number of caches - /// - actions_caches: Array of caches + /// - totalCount: Total number of caches + /// - actionsCaches: Array of caches public init( - total_count: Swift.Int, - actions_caches: Components.Schemas.actions_hyphen_cache_hyphen_list.actions_cachesPayload + totalCount: Swift.Int, + actionsCaches: Components.Schemas.ActionsCacheList.ActionsCachesPayload ) { - self.total_count = total_count - self.actions_caches = actions_caches + self.totalCount = totalCount + self.actionsCaches = actionsCaches } public enum CodingKeys: String, CodingKey { - case total_count - case actions_caches + case totalCount = "total_count" + case actionsCaches = "actions_caches" } } /// Information of a job execution in a workflow run /// /// - Remark: Generated from `#/components/schemas/job`. - public struct job: Codable, Hashable, Sendable { + public struct Job: Codable, Hashable, Sendable { /// The id of the job. /// /// - Remark: Generated from `#/components/schemas/job/id`. @@ -8296,29 +8305,29 @@ public enum Components { /// The id of the associated workflow run. /// /// - Remark: Generated from `#/components/schemas/job/run_id`. - public var run_id: Swift.Int + public var runId: Swift.Int /// - Remark: Generated from `#/components/schemas/job/run_url`. - public var run_url: Swift.String + public var runUrl: Swift.String /// Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run. /// /// - Remark: Generated from `#/components/schemas/job/run_attempt`. - public var run_attempt: Swift.Int? + public var runAttempt: Swift.Int? /// - Remark: Generated from `#/components/schemas/job/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The SHA of the commit that is being run. /// /// - Remark: Generated from `#/components/schemas/job/head_sha`. - public var head_sha: Swift.String + public var headSha: Swift.String /// - Remark: Generated from `#/components/schemas/job/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/job/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// The phase of the lifecycle that the job is currently in. /// /// - Remark: Generated from `#/components/schemas/job/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" case waiting = "waiting" case requested = "requested" @@ -8327,114 +8336,114 @@ public enum Components { /// The phase of the lifecycle that the job is currently in. /// /// - Remark: Generated from `#/components/schemas/job/status`. - public var status: Components.Schemas.job.statusPayload + public var status: Components.Schemas.Job.StatusPayload /// The outcome of the job. /// /// - Remark: Generated from `#/components/schemas/job/conclusion`. - @frozen public enum conclusionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ConclusionPayload: String, Codable, Hashable, Sendable, CaseIterable { case success = "success" case failure = "failure" case neutral = "neutral" case cancelled = "cancelled" case skipped = "skipped" - case timed_out = "timed_out" - case action_required = "action_required" + case timedOut = "timed_out" + case actionRequired = "action_required" } /// The outcome of the job. /// /// - Remark: Generated from `#/components/schemas/job/conclusion`. - public var conclusion: Components.Schemas.job.conclusionPayload? + public var conclusion: Components.Schemas.Job.ConclusionPayload? /// The time that the job created, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/job/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The time that the job started, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/job/started_at`. - public var started_at: Foundation.Date + public var startedAt: Foundation.Date /// The time that the job finished, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/job/completed_at`. - public var completed_at: Foundation.Date? + public var completedAt: Foundation.Date? /// The name of the job. /// /// - Remark: Generated from `#/components/schemas/job/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/job/stepsPayload`. - public struct stepsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/job/StepsPayload`. + public struct StepsPayloadPayload: Codable, Hashable, Sendable { /// The phase of the lifecycle that the job is currently in. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/status`. + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" } /// The phase of the lifecycle that the job is currently in. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/status`. - public var status: Components.Schemas.job.stepsPayloadPayload.statusPayload + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/status`. + public var status: Components.Schemas.Job.StepsPayloadPayload.StatusPayload /// The outcome of the job. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/conclusion`. + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/conclusion`. public var conclusion: Swift.String? /// The name of the job. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/name`. + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/number`. + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/number`. public var number: Swift.Int /// The time that the step started, in ISO 8601 format. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/started_at`. - public var started_at: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/started_at`. + public var startedAt: Foundation.Date? /// The time that the job finished, in ISO 8601 format. /// - /// - Remark: Generated from `#/components/schemas/job/stepsPayload/completed_at`. - public var completed_at: Foundation.Date? - /// Creates a new `stepsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/job/StepsPayload/completed_at`. + public var completedAt: Foundation.Date? + /// Creates a new `StepsPayloadPayload`. /// /// - Parameters: /// - status: The phase of the lifecycle that the job is currently in. /// - conclusion: The outcome of the job. /// - name: The name of the job. /// - number: - /// - started_at: The time that the step started, in ISO 8601 format. - /// - completed_at: The time that the job finished, in ISO 8601 format. + /// - startedAt: The time that the step started, in ISO 8601 format. + /// - completedAt: The time that the job finished, in ISO 8601 format. public init( - status: Components.Schemas.job.stepsPayloadPayload.statusPayload, + status: Components.Schemas.Job.StepsPayloadPayload.StatusPayload, conclusion: Swift.String? = nil, name: Swift.String, number: Swift.Int, - started_at: Foundation.Date? = nil, - completed_at: Foundation.Date? = nil + startedAt: Foundation.Date? = nil, + completedAt: Foundation.Date? = nil ) { self.status = status self.conclusion = conclusion self.name = name self.number = number - self.started_at = started_at - self.completed_at = completed_at + self.startedAt = startedAt + self.completedAt = completedAt } public enum CodingKeys: String, CodingKey { case status case conclusion case name case number - case started_at - case completed_at + case startedAt = "started_at" + case completedAt = "completed_at" } } /// Steps in this job. /// /// - Remark: Generated from `#/components/schemas/job/steps`. - public typealias stepsPayload = [Components.Schemas.job.stepsPayloadPayload] + public typealias StepsPayload = [Components.Schemas.Job.StepsPayloadPayload] /// Steps in this job. /// /// - Remark: Generated from `#/components/schemas/job/steps`. - public var steps: Components.Schemas.job.stepsPayload? + public var steps: Components.Schemas.Job.StepsPayload? /// - Remark: Generated from `#/components/schemas/job/check_run_url`. - public var check_run_url: Swift.String + public var checkRunUrl: Swift.String /// Labels for the workflow job. Specified by the "runs_on" attribute in the action's workflow file. /// /// - Remark: Generated from `#/components/schemas/job/labels`. @@ -8442,192 +8451,192 @@ public enum Components { /// The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) /// /// - Remark: Generated from `#/components/schemas/job/runner_id`. - public var runner_id: Swift.Int? + public var runnerId: Swift.Int? /// The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) /// /// - Remark: Generated from `#/components/schemas/job/runner_name`. - public var runner_name: Swift.String? + public var runnerName: Swift.String? /// The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) /// /// - Remark: Generated from `#/components/schemas/job/runner_group_id`. - public var runner_group_id: Swift.Int? + public var runnerGroupId: Swift.Int? /// The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) /// /// - Remark: Generated from `#/components/schemas/job/runner_group_name`. - public var runner_group_name: Swift.String? + public var runnerGroupName: Swift.String? /// The name of the workflow. /// /// - Remark: Generated from `#/components/schemas/job/workflow_name`. - public var workflow_name: Swift.String? + public var workflowName: Swift.String? /// The name of the current branch. /// /// - Remark: Generated from `#/components/schemas/job/head_branch`. - public var head_branch: Swift.String? - /// Creates a new `job`. + public var headBranch: Swift.String? + /// Creates a new `Job`. /// /// - Parameters: /// - id: The id of the job. - /// - run_id: The id of the associated workflow run. - /// - run_url: - /// - run_attempt: Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run. - /// - node_id: - /// - head_sha: The SHA of the commit that is being run. + /// - runId: The id of the associated workflow run. + /// - runUrl: + /// - runAttempt: Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run. + /// - nodeId: + /// - headSha: The SHA of the commit that is being run. /// - url: - /// - html_url: + /// - htmlUrl: /// - status: The phase of the lifecycle that the job is currently in. /// - conclusion: The outcome of the job. - /// - created_at: The time that the job created, in ISO 8601 format. - /// - started_at: The time that the job started, in ISO 8601 format. - /// - completed_at: The time that the job finished, in ISO 8601 format. + /// - createdAt: The time that the job created, in ISO 8601 format. + /// - startedAt: The time that the job started, in ISO 8601 format. + /// - completedAt: The time that the job finished, in ISO 8601 format. /// - name: The name of the job. /// - steps: Steps in this job. - /// - check_run_url: + /// - checkRunUrl: /// - labels: Labels for the workflow job. Specified by the "runs_on" attribute in the action's workflow file. - /// - runner_id: The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) - /// - runner_name: The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) - /// - runner_group_id: The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) - /// - runner_group_name: The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) - /// - workflow_name: The name of the workflow. - /// - head_branch: The name of the current branch. + /// - runnerId: The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) + /// - runnerName: The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) + /// - runnerGroupId: The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) + /// - runnerGroupName: The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.) + /// - workflowName: The name of the workflow. + /// - headBranch: The name of the current branch. public init( id: Swift.Int, - run_id: Swift.Int, - run_url: Swift.String, - run_attempt: Swift.Int? = nil, - node_id: Swift.String, - head_sha: Swift.String, + runId: Swift.Int, + runUrl: Swift.String, + runAttempt: Swift.Int? = nil, + nodeId: Swift.String, + headSha: Swift.String, url: Swift.String, - html_url: Swift.String? = nil, - status: Components.Schemas.job.statusPayload, - conclusion: Components.Schemas.job.conclusionPayload? = nil, - created_at: Foundation.Date, - started_at: Foundation.Date, - completed_at: Foundation.Date? = nil, + htmlUrl: Swift.String? = nil, + status: Components.Schemas.Job.StatusPayload, + conclusion: Components.Schemas.Job.ConclusionPayload? = nil, + createdAt: Foundation.Date, + startedAt: Foundation.Date, + completedAt: Foundation.Date? = nil, name: Swift.String, - steps: Components.Schemas.job.stepsPayload? = nil, - check_run_url: Swift.String, + steps: Components.Schemas.Job.StepsPayload? = nil, + checkRunUrl: Swift.String, labels: [Swift.String], - runner_id: Swift.Int? = nil, - runner_name: Swift.String? = nil, - runner_group_id: Swift.Int? = nil, - runner_group_name: Swift.String? = nil, - workflow_name: Swift.String? = nil, - head_branch: Swift.String? = nil + runnerId: Swift.Int? = nil, + runnerName: Swift.String? = nil, + runnerGroupId: Swift.Int? = nil, + runnerGroupName: Swift.String? = nil, + workflowName: Swift.String? = nil, + headBranch: Swift.String? = nil ) { self.id = id - self.run_id = run_id - self.run_url = run_url - self.run_attempt = run_attempt - self.node_id = node_id - self.head_sha = head_sha + self.runId = runId + self.runUrl = runUrl + self.runAttempt = runAttempt + self.nodeId = nodeId + self.headSha = headSha self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.status = status self.conclusion = conclusion - self.created_at = created_at - self.started_at = started_at - self.completed_at = completed_at + self.createdAt = createdAt + self.startedAt = startedAt + self.completedAt = completedAt self.name = name self.steps = steps - self.check_run_url = check_run_url + self.checkRunUrl = checkRunUrl self.labels = labels - self.runner_id = runner_id - self.runner_name = runner_name - self.runner_group_id = runner_group_id - self.runner_group_name = runner_group_name - self.workflow_name = workflow_name - self.head_branch = head_branch + self.runnerId = runnerId + self.runnerName = runnerName + self.runnerGroupId = runnerGroupId + self.runnerGroupName = runnerGroupName + self.workflowName = workflowName + self.headBranch = headBranch } public enum CodingKeys: String, CodingKey { case id - case run_id - case run_url - case run_attempt - case node_id - case head_sha + case runId = "run_id" + case runUrl = "run_url" + case runAttempt = "run_attempt" + case nodeId = "node_id" + case headSha = "head_sha" case url - case html_url + case htmlUrl = "html_url" case status case conclusion - case created_at - case started_at - case completed_at + case createdAt = "created_at" + case startedAt = "started_at" + case completedAt = "completed_at" case name case steps - case check_run_url + case checkRunUrl = "check_run_url" case labels - case runner_id - case runner_name - case runner_group_id - case runner_group_name - case workflow_name - case head_branch + case runnerId = "runner_id" + case runnerName = "runner_name" + case runnerGroupId = "runner_group_id" + case runnerGroupName = "runner_group_name" + case workflowName = "workflow_name" + case headBranch = "head_branch" } } /// Actions OIDC subject customization for a repository /// /// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo`. - public struct oidc_hyphen_custom_hyphen_sub_hyphen_repo: Codable, Hashable, Sendable { + public struct OidcCustomSubRepo: Codable, Hashable, Sendable { /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. /// /// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo/use_default`. - public var use_default: Swift.Bool + public var useDefault: Swift.Bool /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. /// /// - Remark: Generated from `#/components/schemas/oidc-custom-sub-repo/include_claim_keys`. - public var include_claim_keys: [Swift.String]? - /// Creates a new `oidc_hyphen_custom_hyphen_sub_hyphen_repo`. + public var includeClaimKeys: [Swift.String]? + /// Creates a new `OidcCustomSubRepo`. /// /// - Parameters: - /// - use_default: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. - /// - include_claim_keys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. + /// - useDefault: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. + /// - includeClaimKeys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. public init( - use_default: Swift.Bool, - include_claim_keys: [Swift.String]? = nil + useDefault: Swift.Bool, + includeClaimKeys: [Swift.String]? = nil ) { - self.use_default = use_default - self.include_claim_keys = include_claim_keys + self.useDefault = useDefault + self.includeClaimKeys = includeClaimKeys } public enum CodingKeys: String, CodingKey { - case use_default - case include_claim_keys + case useDefault = "use_default" + case includeClaimKeys = "include_claim_keys" } } /// Set secrets for GitHub Actions. /// /// - Remark: Generated from `#/components/schemas/actions-secret`. - public struct actions_hyphen_secret: Codable, Hashable, Sendable { + public struct ActionsSecret: Codable, Hashable, Sendable { /// The name of the secret. /// /// - Remark: Generated from `#/components/schemas/actions-secret/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/actions-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/actions-secret/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `actions_hyphen_secret`. + public var updatedAt: Foundation.Date + /// Creates a new `ActionsSecret`. /// /// - Parameters: /// - name: The name of the secret. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// - Remark: Generated from `#/components/schemas/actions-variable`. - public struct actions_hyphen_variable: Codable, Hashable, Sendable { + public struct ActionsVariable: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/components/schemas/actions-variable/name`. @@ -8639,78 +8648,78 @@ public enum Components { /// The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/actions-variable/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/actions-variable/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `actions_hyphen_variable`. + public var updatedAt: Foundation.Date + /// Creates a new `ActionsVariable`. /// /// - Parameters: /// - name: The name of the variable. /// - value: The value of the variable. - /// - created_at: The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. public init( name: Swift.String, value: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name self.value = value - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name case value - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Whether GitHub Actions is enabled on the repository. /// /// - Remark: Generated from `#/components/schemas/actions-enabled`. - public typealias actions_hyphen_enabled = Swift.Bool + public typealias ActionsEnabled = Swift.Bool /// - Remark: Generated from `#/components/schemas/actions-repository-permissions`. - public struct actions_hyphen_repository_hyphen_permissions: Codable, Hashable, Sendable { + public struct ActionsRepositoryPermissions: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/actions-repository-permissions/enabled`. - public var enabled: Components.Schemas.actions_hyphen_enabled + public var enabled: Components.Schemas.ActionsEnabled /// - Remark: Generated from `#/components/schemas/actions-repository-permissions/allowed_actions`. - public var allowed_actions: Components.Schemas.allowed_hyphen_actions? + public var allowedActions: Components.Schemas.AllowedActions? /// - Remark: Generated from `#/components/schemas/actions-repository-permissions/selected_actions_url`. - public var selected_actions_url: Components.Schemas.selected_hyphen_actions_hyphen_url? - /// Creates a new `actions_hyphen_repository_hyphen_permissions`. + public var selectedActionsUrl: Components.Schemas.SelectedActionsUrl? + /// Creates a new `ActionsRepositoryPermissions`. /// /// - Parameters: /// - enabled: - /// - allowed_actions: - /// - selected_actions_url: + /// - allowedActions: + /// - selectedActionsUrl: public init( - enabled: Components.Schemas.actions_hyphen_enabled, - allowed_actions: Components.Schemas.allowed_hyphen_actions? = nil, - selected_actions_url: Components.Schemas.selected_hyphen_actions_hyphen_url? = nil + enabled: Components.Schemas.ActionsEnabled, + allowedActions: Components.Schemas.AllowedActions? = nil, + selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil ) { self.enabled = enabled - self.allowed_actions = allowed_actions - self.selected_actions_url = selected_actions_url + self.allowedActions = allowedActions + self.selectedActionsUrl = selectedActionsUrl } public enum CodingKeys: String, CodingKey { case enabled - case allowed_actions - case selected_actions_url + case allowedActions = "allowed_actions" + case selectedActionsUrl = "selected_actions_url" } } /// - Remark: Generated from `#/components/schemas/actions-workflow-access-to-repository`. - public struct actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository: Codable, Hashable, Sendable { + public struct ActionsWorkflowAccessToRepository: Codable, Hashable, Sendable { /// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the /// repository. /// /// `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. /// /// - Remark: Generated from `#/components/schemas/actions-workflow-access-to-repository/access_level`. - @frozen public enum access_levelPayload: String, Codable, Hashable, Sendable { + @frozen public enum AccessLevelPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case user = "user" case organization = "organization" @@ -8721,29 +8730,29 @@ public enum Components { /// `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. /// /// - Remark: Generated from `#/components/schemas/actions-workflow-access-to-repository/access_level`. - public var access_level: Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.access_levelPayload - /// Creates a new `actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository`. + public var accessLevel: Components.Schemas.ActionsWorkflowAccessToRepository.AccessLevelPayload + /// Creates a new `ActionsWorkflowAccessToRepository`. /// /// - Parameters: - /// - access_level: Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the - public init(access_level: Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.access_levelPayload) { - self.access_level = access_level + /// - accessLevel: Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the + public init(accessLevel: Components.Schemas.ActionsWorkflowAccessToRepository.AccessLevelPayload) { + self.accessLevel = accessLevel } public enum CodingKeys: String, CodingKey { - case access_level + case accessLevel = "access_level" } } /// A workflow referenced/reused by the initial caller workflow /// /// - Remark: Generated from `#/components/schemas/referenced-workflow`. - public struct referenced_hyphen_workflow: Codable, Hashable, Sendable { + public struct ReferencedWorkflow: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/referenced-workflow/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/referenced-workflow/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/referenced-workflow/ref`. public var ref: Swift.String? - /// Creates a new `referenced_hyphen_workflow`. + /// Creates a new `ReferencedWorkflow`. /// /// - Parameters: /// - path: @@ -8765,7 +8774,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. - public struct pull_hyphen_request_hyphen_minimal: Codable, Hashable, Sendable { + public struct PullRequestMinimal: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. @@ -8773,20 +8782,20 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public struct headPayload: Codable, Hashable, Sendable { + public struct HeadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public struct repoPayload: Codable, Hashable, Sendable { + public struct RepoPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. public var name: Swift.String - /// Creates a new `repoPayload`. + /// Creates a new `RepoPayload`. /// /// - Parameters: /// - id: @@ -8808,8 +8817,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public var repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload.repoPayload - /// Creates a new `headPayload`. + public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + /// Creates a new `HeadPayload`. /// /// - Parameters: /// - ref: @@ -8818,7 +8827,7 @@ public enum Components { public init( ref: Swift.String, sha: Swift.String, - repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload.repoPayload + repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload ) { self.ref = ref self.sha = sha @@ -8831,22 +8840,22 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public var head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload + public var head: Components.Schemas.PullRequestMinimal.HeadPayload /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public struct basePayload: Codable, Hashable, Sendable { + public struct BasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public struct repoPayload: Codable, Hashable, Sendable { + public struct RepoPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. public var name: Swift.String - /// Creates a new `repoPayload`. + /// Creates a new `RepoPayload`. /// /// - Parameters: /// - id: @@ -8868,8 +8877,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public var repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload.repoPayload - /// Creates a new `basePayload`. + public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + /// Creates a new `BasePayload`. /// /// - Parameters: /// - ref: @@ -8878,7 +8887,7 @@ public enum Components { public init( ref: Swift.String, sha: Swift.String, - repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload.repoPayload + repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload ) { self.ref = ref self.sha = sha @@ -8891,8 +8900,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public var base: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload - /// Creates a new `pull_hyphen_request_hyphen_minimal`. + public var base: Components.Schemas.PullRequestMinimal.BasePayload + /// Creates a new `PullRequestMinimal`. /// /// - Parameters: /// - id: @@ -8904,8 +8913,8 @@ public enum Components { id: Swift.Int64, number: Swift.Int, url: Swift.String, - head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload, - base: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload + head: Components.Schemas.PullRequestMinimal.HeadPayload, + base: Components.Schemas.PullRequestMinimal.BasePayload ) { self.id = id self.number = number @@ -8924,7 +8933,7 @@ public enum Components { /// A commit. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit`. - public struct nullable_hyphen_simple_hyphen_commit: Codable, Hashable, Sendable { + public struct NullableSimpleCommit: Codable, Hashable, Sendable { /// SHA for the commit /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/id`. @@ -8932,7 +8941,7 @@ public enum Components { /// SHA for the commit's tree /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/tree_id`. - public var tree_id: Swift.String + public var treeId: Swift.String /// Message describing the purpose of the commit /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/message`. @@ -8944,7 +8953,7 @@ public enum Components { /// Information about the Git author /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// Name of the commit's author /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/author/name`. @@ -8953,7 +8962,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/author/email`. public var email: Swift.String - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: Name of the commit's author @@ -8973,11 +8982,11 @@ public enum Components { /// Information about the Git author /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/author`. - public var author: Components.Schemas.nullable_hyphen_simple_hyphen_commit.authorPayload? + public var author: Components.Schemas.NullableSimpleCommit.AuthorPayload? /// Information about the Git committer /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// Name of the commit's committer /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/committer/name`. @@ -8986,7 +8995,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/committer/email`. public var email: Swift.String - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - name: Name of the commit's committer @@ -9006,26 +9015,26 @@ public enum Components { /// Information about the Git committer /// /// - Remark: Generated from `#/components/schemas/nullable-simple-commit/committer`. - public var committer: Components.Schemas.nullable_hyphen_simple_hyphen_commit.committerPayload? - /// Creates a new `nullable_hyphen_simple_hyphen_commit`. + public var committer: Components.Schemas.NullableSimpleCommit.CommitterPayload? + /// Creates a new `NullableSimpleCommit`. /// /// - Parameters: /// - id: SHA for the commit - /// - tree_id: SHA for the commit's tree + /// - treeId: SHA for the commit's tree /// - message: Message describing the purpose of the commit /// - timestamp: Timestamp of the commit /// - author: Information about the Git author /// - committer: Information about the Git committer public init( id: Swift.String, - tree_id: Swift.String, + treeId: Swift.String, message: Swift.String, timestamp: Foundation.Date, - author: Components.Schemas.nullable_hyphen_simple_hyphen_commit.authorPayload? = nil, - committer: Components.Schemas.nullable_hyphen_simple_hyphen_commit.committerPayload? = nil + author: Components.Schemas.NullableSimpleCommit.AuthorPayload? = nil, + committer: Components.Schemas.NullableSimpleCommit.CommitterPayload? = nil ) { self.id = id - self.tree_id = tree_id + self.treeId = treeId self.message = message self.timestamp = timestamp self.author = author @@ -9033,7 +9042,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case tree_id + case treeId = "tree_id" case message case timestamp case author @@ -9043,7 +9052,7 @@ public enum Components { /// An invocation of a workflow /// /// - Remark: Generated from `#/components/schemas/workflow-run`. - public struct workflow_hyphen_run: Codable, Hashable, Sendable { + public struct WorkflowRun: Codable, Hashable, Sendable { /// The ID of the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/id`. @@ -9053,21 +9062,21 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/workflow-run/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/workflow-run/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The ID of the associated check suite. /// /// - Remark: Generated from `#/components/schemas/workflow-run/check_suite_id`. - public var check_suite_id: Swift.Int? + public var checkSuiteId: Swift.Int? /// The node ID of the associated check suite. /// /// - Remark: Generated from `#/components/schemas/workflow-run/check_suite_node_id`. - public var check_suite_node_id: Swift.String? + public var checkSuiteNodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/workflow-run/head_branch`. - public var head_branch: Swift.String? + public var headBranch: Swift.String? /// The SHA of the head commit that points to the version of the workflow being run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/head_sha`. - public var head_sha: Swift.String + public var headSha: Swift.String /// The full path of the workflow /// /// - Remark: Generated from `#/components/schemas/workflow-run/path`. @@ -9075,13 +9084,13 @@ public enum Components { /// The auto incrementing run number for the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/run_number`. - public var run_number: Swift.Int + public var runNumber: Swift.Int /// Attempt number of the run, 1 for first attempt and higher if the workflow was re-run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/run_attempt`. - public var run_attempt: Swift.Int? + public var runAttempt: Swift.Int? /// - Remark: Generated from `#/components/schemas/workflow-run/referenced_workflows`. - public var referenced_workflows: [Components.Schemas.referenced_hyphen_workflow]? + public var referencedWorkflows: [Components.Schemas.ReferencedWorkflow]? /// - Remark: Generated from `#/components/schemas/workflow-run/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/workflow-run/status`. @@ -9091,303 +9100,303 @@ public enum Components { /// The ID of the parent workflow. /// /// - Remark: Generated from `#/components/schemas/workflow-run/workflow_id`. - public var workflow_id: Swift.Int + public var workflowId: Swift.Int /// The URL to the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/workflow-run/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/pull_requests`. - public var pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal]? + public var pullRequests: [Components.Schemas.PullRequestMinimal]? /// - Remark: Generated from `#/components/schemas/workflow-run/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/workflow-run/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/workflow-run/actor`. - public var actor: Components.Schemas.simple_hyphen_user? + public var actor: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/workflow-run/triggering_actor`. - public var triggering_actor: Components.Schemas.simple_hyphen_user? + public var triggeringActor: Components.Schemas.SimpleUser? /// The start time of the latest run. Resets on re-run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/run_started_at`. - public var run_started_at: Foundation.Date? + public var runStartedAt: Foundation.Date? /// The URL to the jobs for the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/jobs_url`. - public var jobs_url: Swift.String + public var jobsUrl: Swift.String /// The URL to download the logs for the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/logs_url`. - public var logs_url: Swift.String + public var logsUrl: Swift.String /// The URL to the associated check suite. /// /// - Remark: Generated from `#/components/schemas/workflow-run/check_suite_url`. - public var check_suite_url: Swift.String + public var checkSuiteUrl: Swift.String /// The URL to the artifacts for the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/artifacts_url`. - public var artifacts_url: Swift.String + public var artifactsUrl: Swift.String /// The URL to cancel the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/cancel_url`. - public var cancel_url: Swift.String + public var cancelUrl: Swift.String /// The URL to rerun the workflow run. /// /// - Remark: Generated from `#/components/schemas/workflow-run/rerun_url`. - public var rerun_url: Swift.String + public var rerunUrl: Swift.String /// The URL to the previous attempted run of this workflow, if one exists. /// /// - Remark: Generated from `#/components/schemas/workflow-run/previous_attempt_url`. - public var previous_attempt_url: Swift.String? + public var previousAttemptUrl: Swift.String? /// The URL to the workflow. /// /// - Remark: Generated from `#/components/schemas/workflow-run/workflow_url`. - public var workflow_url: Swift.String + public var workflowUrl: Swift.String /// - Remark: Generated from `#/components/schemas/workflow-run/head_commit`. - public var head_commit: Components.Schemas.nullable_hyphen_simple_hyphen_commit? + public var headCommit: Components.Schemas.NullableSimpleCommit? /// - Remark: Generated from `#/components/schemas/workflow-run/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/workflow-run/head_repository`. - public var head_repository: Components.Schemas.minimal_hyphen_repository + public var headRepository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/workflow-run/head_repository_id`. - public var head_repository_id: Swift.Int? + public var headRepositoryId: Swift.Int? /// The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow. /// /// - Remark: Generated from `#/components/schemas/workflow-run/display_title`. - public var display_title: Swift.String - /// Creates a new `workflow_hyphen_run`. + public var displayTitle: Swift.String + /// Creates a new `WorkflowRun`. /// /// - Parameters: /// - id: The ID of the workflow run. /// - name: The name of the workflow run. - /// - node_id: - /// - check_suite_id: The ID of the associated check suite. - /// - check_suite_node_id: The node ID of the associated check suite. - /// - head_branch: - /// - head_sha: The SHA of the head commit that points to the version of the workflow being run. + /// - nodeId: + /// - checkSuiteId: The ID of the associated check suite. + /// - checkSuiteNodeId: The node ID of the associated check suite. + /// - headBranch: + /// - headSha: The SHA of the head commit that points to the version of the workflow being run. /// - path: The full path of the workflow - /// - run_number: The auto incrementing run number for the workflow run. - /// - run_attempt: Attempt number of the run, 1 for first attempt and higher if the workflow was re-run. - /// - referenced_workflows: + /// - runNumber: The auto incrementing run number for the workflow run. + /// - runAttempt: Attempt number of the run, 1 for first attempt and higher if the workflow was re-run. + /// - referencedWorkflows: /// - event: /// - status: /// - conclusion: - /// - workflow_id: The ID of the parent workflow. + /// - workflowId: The ID of the parent workflow. /// - url: The URL to the workflow run. - /// - html_url: - /// - pull_requests: Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. - /// - created_at: - /// - updated_at: + /// - htmlUrl: + /// - pullRequests: Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. + /// - createdAt: + /// - updatedAt: /// - actor: - /// - triggering_actor: - /// - run_started_at: The start time of the latest run. Resets on re-run. - /// - jobs_url: The URL to the jobs for the workflow run. - /// - logs_url: The URL to download the logs for the workflow run. - /// - check_suite_url: The URL to the associated check suite. - /// - artifacts_url: The URL to the artifacts for the workflow run. - /// - cancel_url: The URL to cancel the workflow run. - /// - rerun_url: The URL to rerun the workflow run. - /// - previous_attempt_url: The URL to the previous attempted run of this workflow, if one exists. - /// - workflow_url: The URL to the workflow. - /// - head_commit: + /// - triggeringActor: + /// - runStartedAt: The start time of the latest run. Resets on re-run. + /// - jobsUrl: The URL to the jobs for the workflow run. + /// - logsUrl: The URL to download the logs for the workflow run. + /// - checkSuiteUrl: The URL to the associated check suite. + /// - artifactsUrl: The URL to the artifacts for the workflow run. + /// - cancelUrl: The URL to cancel the workflow run. + /// - rerunUrl: The URL to rerun the workflow run. + /// - previousAttemptUrl: The URL to the previous attempted run of this workflow, if one exists. + /// - workflowUrl: The URL to the workflow. + /// - headCommit: /// - repository: - /// - head_repository: - /// - head_repository_id: - /// - display_title: The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow. + /// - headRepository: + /// - headRepositoryId: + /// - displayTitle: The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow. public init( id: Swift.Int, name: Swift.String? = nil, - node_id: Swift.String, - check_suite_id: Swift.Int? = nil, - check_suite_node_id: Swift.String? = nil, - head_branch: Swift.String? = nil, - head_sha: Swift.String, + nodeId: Swift.String, + checkSuiteId: Swift.Int? = nil, + checkSuiteNodeId: Swift.String? = nil, + headBranch: Swift.String? = nil, + headSha: Swift.String, path: Swift.String, - run_number: Swift.Int, - run_attempt: Swift.Int? = nil, - referenced_workflows: [Components.Schemas.referenced_hyphen_workflow]? = nil, + runNumber: Swift.Int, + runAttempt: Swift.Int? = nil, + referencedWorkflows: [Components.Schemas.ReferencedWorkflow]? = nil, event: Swift.String, status: Swift.String? = nil, conclusion: Swift.String? = nil, - workflow_id: Swift.Int, + workflowId: Swift.Int, url: Swift.String, - html_url: Swift.String, - pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal]? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - actor: Components.Schemas.simple_hyphen_user? = nil, - triggering_actor: Components.Schemas.simple_hyphen_user? = nil, - run_started_at: Foundation.Date? = nil, - jobs_url: Swift.String, - logs_url: Swift.String, - check_suite_url: Swift.String, - artifacts_url: Swift.String, - cancel_url: Swift.String, - rerun_url: Swift.String, - previous_attempt_url: Swift.String? = nil, - workflow_url: Swift.String, - head_commit: Components.Schemas.nullable_hyphen_simple_hyphen_commit? = nil, - repository: Components.Schemas.minimal_hyphen_repository, - head_repository: Components.Schemas.minimal_hyphen_repository, - head_repository_id: Swift.Int? = nil, - display_title: Swift.String + htmlUrl: Swift.String, + pullRequests: [Components.Schemas.PullRequestMinimal]? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + actor: Components.Schemas.SimpleUser? = nil, + triggeringActor: Components.Schemas.SimpleUser? = nil, + runStartedAt: Foundation.Date? = nil, + jobsUrl: Swift.String, + logsUrl: Swift.String, + checkSuiteUrl: Swift.String, + artifactsUrl: Swift.String, + cancelUrl: Swift.String, + rerunUrl: Swift.String, + previousAttemptUrl: Swift.String? = nil, + workflowUrl: Swift.String, + headCommit: Components.Schemas.NullableSimpleCommit? = nil, + repository: Components.Schemas.MinimalRepository, + headRepository: Components.Schemas.MinimalRepository, + headRepositoryId: Swift.Int? = nil, + displayTitle: Swift.String ) { self.id = id self.name = name - self.node_id = node_id - self.check_suite_id = check_suite_id - self.check_suite_node_id = check_suite_node_id - self.head_branch = head_branch - self.head_sha = head_sha + self.nodeId = nodeId + self.checkSuiteId = checkSuiteId + self.checkSuiteNodeId = checkSuiteNodeId + self.headBranch = headBranch + self.headSha = headSha self.path = path - self.run_number = run_number - self.run_attempt = run_attempt - self.referenced_workflows = referenced_workflows + self.runNumber = runNumber + self.runAttempt = runAttempt + self.referencedWorkflows = referencedWorkflows self.event = event self.status = status self.conclusion = conclusion - self.workflow_id = workflow_id + self.workflowId = workflowId self.url = url - self.html_url = html_url - self.pull_requests = pull_requests - self.created_at = created_at - self.updated_at = updated_at + self.htmlUrl = htmlUrl + self.pullRequests = pullRequests + self.createdAt = createdAt + self.updatedAt = updatedAt self.actor = actor - self.triggering_actor = triggering_actor - self.run_started_at = run_started_at - self.jobs_url = jobs_url - self.logs_url = logs_url - self.check_suite_url = check_suite_url - self.artifacts_url = artifacts_url - self.cancel_url = cancel_url - self.rerun_url = rerun_url - self.previous_attempt_url = previous_attempt_url - self.workflow_url = workflow_url - self.head_commit = head_commit + self.triggeringActor = triggeringActor + self.runStartedAt = runStartedAt + self.jobsUrl = jobsUrl + self.logsUrl = logsUrl + self.checkSuiteUrl = checkSuiteUrl + self.artifactsUrl = artifactsUrl + self.cancelUrl = cancelUrl + self.rerunUrl = rerunUrl + self.previousAttemptUrl = previousAttemptUrl + self.workflowUrl = workflowUrl + self.headCommit = headCommit self.repository = repository - self.head_repository = head_repository - self.head_repository_id = head_repository_id - self.display_title = display_title + self.headRepository = headRepository + self.headRepositoryId = headRepositoryId + self.displayTitle = displayTitle } public enum CodingKeys: String, CodingKey { case id case name - case node_id - case check_suite_id - case check_suite_node_id - case head_branch - case head_sha + case nodeId = "node_id" + case checkSuiteId = "check_suite_id" + case checkSuiteNodeId = "check_suite_node_id" + case headBranch = "head_branch" + case headSha = "head_sha" case path - case run_number - case run_attempt - case referenced_workflows + case runNumber = "run_number" + case runAttempt = "run_attempt" + case referencedWorkflows = "referenced_workflows" case event case status case conclusion - case workflow_id + case workflowId = "workflow_id" case url - case html_url - case pull_requests - case created_at - case updated_at + case htmlUrl = "html_url" + case pullRequests = "pull_requests" + case createdAt = "created_at" + case updatedAt = "updated_at" case actor - case triggering_actor - case run_started_at - case jobs_url - case logs_url - case check_suite_url - case artifacts_url - case cancel_url - case rerun_url - case previous_attempt_url - case workflow_url - case head_commit + case triggeringActor = "triggering_actor" + case runStartedAt = "run_started_at" + case jobsUrl = "jobs_url" + case logsUrl = "logs_url" + case checkSuiteUrl = "check_suite_url" + case artifactsUrl = "artifacts_url" + case cancelUrl = "cancel_url" + case rerunUrl = "rerun_url" + case previousAttemptUrl = "previous_attempt_url" + case workflowUrl = "workflow_url" + case headCommit = "head_commit" case repository - case head_repository - case head_repository_id - case display_title + case headRepository = "head_repository" + case headRepositoryId = "head_repository_id" + case displayTitle = "display_title" } } /// An entry in the reviews log for environment deployments /// /// - Remark: Generated from `#/components/schemas/environment-approvals`. - public struct environment_hyphen_approvals: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload`. - public struct environmentsPayloadPayload: Codable, Hashable, Sendable { + public struct EnvironmentApprovals: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload`. + public struct EnvironmentsPayloadPayload: Codable, Hashable, Sendable { /// The id of the environment. /// - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/id`. + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/node_id`. - public var node_id: Swift.String? + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/node_id`. + public var nodeId: Swift.String? /// The name of the environment. /// - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/name`. + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/url`. + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/html_url`. - public var html_url: Swift.String? + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/html_url`. + public var htmlUrl: Swift.String? /// The time that the environment was created, in ISO 8601 format. /// - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/created_at`. - public var created_at: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/created_at`. + public var createdAt: Foundation.Date? /// The time that the environment was last updated, in ISO 8601 format. /// - /// - Remark: Generated from `#/components/schemas/environment-approvals/environmentsPayload/updated_at`. - public var updated_at: Foundation.Date? - /// Creates a new `environmentsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/environment-approvals/EnvironmentsPayload/updated_at`. + public var updatedAt: Foundation.Date? + /// Creates a new `EnvironmentsPayloadPayload`. /// /// - Parameters: /// - id: The id of the environment. - /// - node_id: + /// - nodeId: /// - name: The name of the environment. /// - url: - /// - html_url: - /// - created_at: The time that the environment was created, in ISO 8601 format. - /// - updated_at: The time that the environment was last updated, in ISO 8601 format. + /// - htmlUrl: + /// - createdAt: The time that the environment was created, in ISO 8601 format. + /// - updatedAt: The time that the environment was last updated, in ISO 8601 format. public init( id: Swift.Int? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, name: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil + htmlUrl: Swift.String? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.url = url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case url - case html_url - case created_at - case updated_at + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// The list of environments that were approved or rejected /// /// - Remark: Generated from `#/components/schemas/environment-approvals/environments`. - public typealias environmentsPayload = [Components.Schemas.environment_hyphen_approvals.environmentsPayloadPayload] + public typealias EnvironmentsPayload = [Components.Schemas.EnvironmentApprovals.EnvironmentsPayloadPayload] /// The list of environments that were approved or rejected /// /// - Remark: Generated from `#/components/schemas/environment-approvals/environments`. - public var environments: Components.Schemas.environment_hyphen_approvals.environmentsPayload + public var environments: Components.Schemas.EnvironmentApprovals.EnvironmentsPayload /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) /// /// - Remark: Generated from `#/components/schemas/environment-approvals/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case approved = "approved" case rejected = "rejected" case pending = "pending" @@ -9395,14 +9404,14 @@ public enum Components { /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) /// /// - Remark: Generated from `#/components/schemas/environment-approvals/state`. - public var state: Components.Schemas.environment_hyphen_approvals.statePayload + public var state: Components.Schemas.EnvironmentApprovals.StatePayload /// - Remark: Generated from `#/components/schemas/environment-approvals/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// The comment submitted with the deployment review /// /// - Remark: Generated from `#/components/schemas/environment-approvals/comment`. public var comment: Swift.String - /// Creates a new `environment_hyphen_approvals`. + /// Creates a new `EnvironmentApprovals`. /// /// - Parameters: /// - environments: The list of environments that were approved or rejected @@ -9410,9 +9419,9 @@ public enum Components { /// - user: /// - comment: The comment submitted with the deployment review public init( - environments: Components.Schemas.environment_hyphen_approvals.environmentsPayload, - state: Components.Schemas.environment_hyphen_approvals.statePayload, - user: Components.Schemas.simple_hyphen_user, + environments: Components.Schemas.EnvironmentApprovals.EnvironmentsPayload, + state: Components.Schemas.EnvironmentApprovals.StatePayload, + user: Components.Schemas.SimpleUser, comment: Swift.String ) { self.environments = environments @@ -9428,70 +9437,70 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/review-custom-gates-comment-required`. - public struct review_hyphen_custom_hyphen_gates_hyphen_comment_hyphen_required: Codable, Hashable, Sendable { + public struct ReviewCustomGatesCommentRequired: Codable, Hashable, Sendable { /// The name of the environment to approve or reject. /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-comment-required/environment_name`. - public var environment_name: Swift.String + public var environmentName: Swift.String /// Comment associated with the pending deployment protection rule. **Required when state is not provided.** /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-comment-required/comment`. public var comment: Swift.String - /// Creates a new `review_hyphen_custom_hyphen_gates_hyphen_comment_hyphen_required`. + /// Creates a new `ReviewCustomGatesCommentRequired`. /// /// - Parameters: - /// - environment_name: The name of the environment to approve or reject. + /// - environmentName: The name of the environment to approve or reject. /// - comment: Comment associated with the pending deployment protection rule. **Required when state is not provided.** public init( - environment_name: Swift.String, + environmentName: Swift.String, comment: Swift.String ) { - self.environment_name = environment_name + self.environmentName = environmentName self.comment = comment } public enum CodingKeys: String, CodingKey { - case environment_name + case environmentName = "environment_name" case comment } } /// - Remark: Generated from `#/components/schemas/review-custom-gates-state-required`. - public struct review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required: Codable, Hashable, Sendable { + public struct ReviewCustomGatesStateRequired: Codable, Hashable, Sendable { /// The name of the environment to approve or reject. /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-state-required/environment_name`. - public var environment_name: Swift.String + public var environmentName: Swift.String /// Whether to approve or reject deployment to the specified environments. /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-state-required/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case approved = "approved" case rejected = "rejected" } /// Whether to approve or reject deployment to the specified environments. /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-state-required/state`. - public var state: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required.statePayload + public var state: Components.Schemas.ReviewCustomGatesStateRequired.StatePayload /// Optional comment to include with the review. /// /// - Remark: Generated from `#/components/schemas/review-custom-gates-state-required/comment`. public var comment: Swift.String? - /// Creates a new `review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required`. + /// Creates a new `ReviewCustomGatesStateRequired`. /// /// - Parameters: - /// - environment_name: The name of the environment to approve or reject. + /// - environmentName: The name of the environment to approve or reject. /// - state: Whether to approve or reject deployment to the specified environments. /// - comment: Optional comment to include with the review. public init( - environment_name: Swift.String, - state: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required.statePayload, + environmentName: Swift.String, + state: Components.Schemas.ReviewCustomGatesStateRequired.StatePayload, comment: Swift.String? = nil ) { - self.environment_name = environment_name + self.environmentName = environmentName self.state = state self.comment = comment } public enum CodingKeys: String, CodingKey { - case environment_name + case environmentName = "environment_name" case state case comment } @@ -9499,22 +9508,22 @@ public enum Components { /// The type of reviewer. /// /// - Remark: Generated from `#/components/schemas/deployment-reviewer-type`. - @frozen public enum deployment_hyphen_reviewer_hyphen_type: String, Codable, Hashable, Sendable { - case User = "User" - case Team = "Team" + @frozen public enum DeploymentReviewerType: String, Codable, Hashable, Sendable, CaseIterable { + case user = "User" + case team = "Team" } /// Details of a deployment that is waiting for protection rules to pass /// /// - Remark: Generated from `#/components/schemas/pending-deployment`. - public struct pending_hyphen_deployment: Codable, Hashable, Sendable { + public struct PendingDeployment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pending-deployment/environment`. - public struct environmentPayload: Codable, Hashable, Sendable { + public struct EnvironmentPayload: Codable, Hashable, Sendable { /// The id of the environment. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/id`. public var id: Swift.Int64? /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// The name of the environment. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/name`. @@ -9522,68 +9531,68 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/pending-deployment/environment/html_url`. - public var html_url: Swift.String? - /// Creates a new `environmentPayload`. + public var htmlUrl: Swift.String? + /// Creates a new `EnvironmentPayload`. /// /// - Parameters: /// - id: The id of the environment. - /// - node_id: + /// - nodeId: /// - name: The name of the environment. /// - url: - /// - html_url: + /// - htmlUrl: public init( id: Swift.Int64? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, name: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case url - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/pending-deployment/environment`. - public var environment: Components.Schemas.pending_hyphen_deployment.environmentPayload + public var environment: Components.Schemas.PendingDeployment.EnvironmentPayload /// The set duration of the wait timer /// /// - Remark: Generated from `#/components/schemas/pending-deployment/wait_timer`. - public var wait_timer: Swift.Int + public var waitTimer: Swift.Int /// The time that the wait timer began. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/wait_timer_started_at`. - public var wait_timer_started_at: Foundation.Date? + public var waitTimerStartedAt: Foundation.Date? /// Whether the currently authenticated user can approve the deployment /// /// - Remark: Generated from `#/components/schemas/pending-deployment/current_user_can_approve`. - public var current_user_can_approve: Swift.Bool - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload/type`. - public var _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload/reviewer`. - public struct reviewerPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload/reviewer/value1`. - public var value1: Components.Schemas.simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload/reviewer/value2`. - public var value2: Components.Schemas.team? - /// Creates a new `reviewerPayload`. + public var currentUserCanApprove: Swift.Bool + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload/type`. + public var _type: Components.Schemas.DeploymentReviewerType? + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload/reviewer`. + public struct ReviewerPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload/reviewer/value1`. + public var value1: Components.Schemas.SimpleUser? + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload/reviewer/value2`. + public var value2: Components.Schemas.Team? + /// Creates a new `ReviewerPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.simple_hyphen_user? = nil, - value2: Components.Schemas.team? = nil + value1: Components.Schemas.SimpleUser? = nil, + value2: Components.Schemas.Team? = nil ) { self.value1 = value1 self.value2 = value2 @@ -9591,19 +9600,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -9611,20 +9620,20 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } - /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewersPayload/reviewer`. - public var reviewer: Components.Schemas.pending_hyphen_deployment.reviewersPayloadPayload.reviewerPayload? - /// Creates a new `reviewersPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/pending-deployment/ReviewersPayload/reviewer`. + public var reviewer: Components.Schemas.PendingDeployment.ReviewersPayloadPayload.ReviewerPayload? + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - _type: /// - reviewer: public init( - _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? = nil, - reviewer: Components.Schemas.pending_hyphen_deployment.reviewersPayloadPayload.reviewerPayload? = nil + _type: Components.Schemas.DeploymentReviewerType? = nil, + reviewer: Components.Schemas.PendingDeployment.ReviewersPayloadPayload.ReviewerPayload? = nil ) { self._type = _type self.reviewer = reviewer @@ -9637,44 +9646,44 @@ public enum Components { /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewers`. - public typealias reviewersPayload = [Components.Schemas.pending_hyphen_deployment.reviewersPayloadPayload] + public typealias ReviewersPayload = [Components.Schemas.PendingDeployment.ReviewersPayloadPayload] /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// /// - Remark: Generated from `#/components/schemas/pending-deployment/reviewers`. - public var reviewers: Components.Schemas.pending_hyphen_deployment.reviewersPayload - /// Creates a new `pending_hyphen_deployment`. + public var reviewers: Components.Schemas.PendingDeployment.ReviewersPayload + /// Creates a new `PendingDeployment`. /// /// - Parameters: /// - environment: - /// - wait_timer: The set duration of the wait timer - /// - wait_timer_started_at: The time that the wait timer began. - /// - current_user_can_approve: Whether the currently authenticated user can approve the deployment + /// - waitTimer: The set duration of the wait timer + /// - waitTimerStartedAt: The time that the wait timer began. + /// - currentUserCanApprove: Whether the currently authenticated user can approve the deployment /// - reviewers: The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. public init( - environment: Components.Schemas.pending_hyphen_deployment.environmentPayload, - wait_timer: Swift.Int, - wait_timer_started_at: Foundation.Date? = nil, - current_user_can_approve: Swift.Bool, - reviewers: Components.Schemas.pending_hyphen_deployment.reviewersPayload + environment: Components.Schemas.PendingDeployment.EnvironmentPayload, + waitTimer: Swift.Int, + waitTimerStartedAt: Foundation.Date? = nil, + currentUserCanApprove: Swift.Bool, + reviewers: Components.Schemas.PendingDeployment.ReviewersPayload ) { self.environment = environment - self.wait_timer = wait_timer - self.wait_timer_started_at = wait_timer_started_at - self.current_user_can_approve = current_user_can_approve + self.waitTimer = waitTimer + self.waitTimerStartedAt = waitTimerStartedAt + self.currentUserCanApprove = currentUserCanApprove self.reviewers = reviewers } public enum CodingKeys: String, CodingKey { case environment - case wait_timer - case wait_timer_started_at - case current_user_can_approve + case waitTimer = "wait_timer" + case waitTimerStartedAt = "wait_timer_started_at" + case currentUserCanApprove = "current_user_can_approve" case reviewers } } /// A request for a specific ref(branch,sha,tag) to be deployed /// /// - Remark: Generated from `#/components/schemas/deployment`. - public struct deployment: Codable, Hashable, Sendable { + public struct Deployment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment/url`. public var url: Swift.String /// Unique identifier of the deployment @@ -9682,7 +9691,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/sha`. public var sha: Swift.String /// The ref to deploy. This can be a branch, tag, or sha. @@ -9694,7 +9703,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/task`. public var task: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/payload`. - @frozen public enum payloadPayload: Codable, Hashable, Sendable { + @frozen public enum PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment/payload/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// A container of undocumented properties. @@ -9714,7 +9723,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/deployment/payload/case1`. - case case1(Components.Schemas.deployment.payloadPayload.Case1Payload) + case case1(Components.Schemas.Deployment.PayloadPayload.Case1Payload) /// - Remark: Generated from `#/components/schemas/deployment/payload/case2`. case case2(Swift.String) public init(from decoder: any Decoder) throws { @@ -9747,9 +9756,9 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/deployment/payload`. - public var payload: Components.Schemas.deployment.payloadPayload + public var payload: Components.Schemas.Deployment.PayloadPayload /// - Remark: Generated from `#/components/schemas/deployment/original_environment`. - public var original_environment: Swift.String? + public var originalEnvironment: Swift.String? /// Name for the target deployment environment. /// /// - Remark: Generated from `#/components/schemas/deployment/environment`. @@ -9757,494 +9766,494 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/deployment/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/deployment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// Specifies if the given environment is will no longer exist at some point in the future. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment/transient_environment`. - public var transient_environment: Swift.Bool? + public var transientEnvironment: Swift.Bool? /// Specifies if the given environment is one that end-users directly interact with. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment/production_environment`. - public var production_environment: Swift.Bool? + public var productionEnvironment: Swift.Bool? /// - Remark: Generated from `#/components/schemas/deployment/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? - /// Creates a new `deployment`. + public var performedViaGithubApp: Components.Schemas.NullableIntegration? + /// Creates a new `Deployment`. /// /// - Parameters: /// - url: /// - id: Unique identifier of the deployment - /// - node_id: + /// - nodeId: /// - sha: /// - ref: The ref to deploy. This can be a branch, tag, or sha. /// - task: Parameter to specify a task to execute /// - payload: - /// - original_environment: + /// - originalEnvironment: /// - environment: Name for the target deployment environment. /// - description: /// - creator: - /// - created_at: - /// - updated_at: - /// - statuses_url: - /// - repository_url: - /// - transient_environment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. - /// - production_environment: Specifies if the given environment is one that end-users directly interact with. Default: false. - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - statusesUrl: + /// - repositoryUrl: + /// - transientEnvironment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. + /// - productionEnvironment: Specifies if the given environment is one that end-users directly interact with. Default: false. + /// - performedViaGithubApp: public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, sha: Swift.String, ref: Swift.String, task: Swift.String, - payload: Components.Schemas.deployment.payloadPayload, - original_environment: Swift.String? = nil, + payload: Components.Schemas.Deployment.PayloadPayload, + originalEnvironment: Swift.String? = nil, environment: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - statuses_url: Swift.String, - repository_url: Swift.String, - transient_environment: Swift.Bool? = nil, - production_environment: Swift.Bool? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + statusesUrl: Swift.String, + repositoryUrl: Swift.String, + transientEnvironment: Swift.Bool? = nil, + productionEnvironment: Swift.Bool? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil ) { self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.sha = sha self.ref = ref self.task = task self.payload = payload - self.original_environment = original_environment + self.originalEnvironment = originalEnvironment self.environment = environment self.description = description self.creator = creator - self.created_at = created_at - self.updated_at = updated_at - self.statuses_url = statuses_url - self.repository_url = repository_url - self.transient_environment = transient_environment - self.production_environment = production_environment - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.statusesUrl = statusesUrl + self.repositoryUrl = repositoryUrl + self.transientEnvironment = transientEnvironment + self.productionEnvironment = productionEnvironment + self.performedViaGithubApp = performedViaGithubApp } public enum CodingKeys: String, CodingKey { case url case id - case node_id + case nodeId = "node_id" case sha case ref case task case payload - case original_environment + case originalEnvironment = "original_environment" case environment case description case creator - case created_at - case updated_at - case statuses_url - case repository_url - case transient_environment - case production_environment - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case statusesUrl = "statuses_url" + case repositoryUrl = "repository_url" + case transientEnvironment = "transient_environment" + case productionEnvironment = "production_environment" + case performedViaGithubApp = "performed_via_github_app" } } /// Workflow Run Usage /// /// - Remark: Generated from `#/components/schemas/workflow-run-usage`. - public struct workflow_hyphen_run_hyphen_usage: Codable, Hashable, Sendable { + public struct WorkflowRunUsage: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable`. - public struct billablePayload: Codable, Hashable, Sendable { + public struct BillablePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU`. - public struct UBUNTUPayload: Codable, Hashable, Sendable { + public struct UbuntuPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/total_ms`. - public var total_ms: Swift.Int + public var totalMs: Swift.Int /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/jobs`. public var jobs: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/job_runsPayload`. - public struct job_runsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/job_runsPayload/job_id`. - public var job_id: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/job_runsPayload/duration_ms`. - public var duration_ms: Swift.Int - /// Creates a new `job_runsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/JobRunsPayload`. + public struct JobRunsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/JobRunsPayload/job_id`. + public var jobId: Swift.Int + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/JobRunsPayload/duration_ms`. + public var durationMs: Swift.Int + /// Creates a new `JobRunsPayloadPayload`. /// /// - Parameters: - /// - job_id: - /// - duration_ms: + /// - jobId: + /// - durationMs: public init( - job_id: Swift.Int, - duration_ms: Swift.Int + jobId: Swift.Int, + durationMs: Swift.Int ) { - self.job_id = job_id - self.duration_ms = duration_ms + self.jobId = jobId + self.durationMs = durationMs } public enum CodingKeys: String, CodingKey { - case job_id - case duration_ms + case jobId = "job_id" + case durationMs = "duration_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/job_runs`. - public typealias job_runsPayload = [Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.UBUNTUPayload.job_runsPayloadPayload] + public typealias JobRunsPayload = [Components.Schemas.WorkflowRunUsage.BillablePayload.UbuntuPayload.JobRunsPayloadPayload] /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU/job_runs`. - public var job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.UBUNTUPayload.job_runsPayload? - /// Creates a new `UBUNTUPayload`. + public var jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.UbuntuPayload.JobRunsPayload? + /// Creates a new `UbuntuPayload`. /// /// - Parameters: - /// - total_ms: + /// - totalMs: /// - jobs: - /// - job_runs: + /// - jobRuns: public init( - total_ms: Swift.Int, + totalMs: Swift.Int, jobs: Swift.Int, - job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.UBUNTUPayload.job_runsPayload? = nil + jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.UbuntuPayload.JobRunsPayload? = nil ) { - self.total_ms = total_ms + self.totalMs = totalMs self.jobs = jobs - self.job_runs = job_runs + self.jobRuns = jobRuns } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" case jobs - case job_runs + case jobRuns = "job_runs" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/UBUNTU`. - public var UBUNTU: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.UBUNTUPayload? + public var ubuntu: Components.Schemas.WorkflowRunUsage.BillablePayload.UbuntuPayload? /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS`. - public struct MACOSPayload: Codable, Hashable, Sendable { + public struct MacosPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/total_ms`. - public var total_ms: Swift.Int + public var totalMs: Swift.Int /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/jobs`. public var jobs: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/job_runsPayload`. - public struct job_runsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/job_runsPayload/job_id`. - public var job_id: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/job_runsPayload/duration_ms`. - public var duration_ms: Swift.Int - /// Creates a new `job_runsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/JobRunsPayload`. + public struct JobRunsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/JobRunsPayload/job_id`. + public var jobId: Swift.Int + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/JobRunsPayload/duration_ms`. + public var durationMs: Swift.Int + /// Creates a new `JobRunsPayloadPayload`. /// /// - Parameters: - /// - job_id: - /// - duration_ms: + /// - jobId: + /// - durationMs: public init( - job_id: Swift.Int, - duration_ms: Swift.Int + jobId: Swift.Int, + durationMs: Swift.Int ) { - self.job_id = job_id - self.duration_ms = duration_ms + self.jobId = jobId + self.durationMs = durationMs } public enum CodingKeys: String, CodingKey { - case job_id - case duration_ms + case jobId = "job_id" + case durationMs = "duration_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/job_runs`. - public typealias job_runsPayload = [Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.MACOSPayload.job_runsPayloadPayload] + public typealias JobRunsPayload = [Components.Schemas.WorkflowRunUsage.BillablePayload.MacosPayload.JobRunsPayloadPayload] /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS/job_runs`. - public var job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.MACOSPayload.job_runsPayload? - /// Creates a new `MACOSPayload`. + public var jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.MacosPayload.JobRunsPayload? + /// Creates a new `MacosPayload`. /// /// - Parameters: - /// - total_ms: + /// - totalMs: /// - jobs: - /// - job_runs: + /// - jobRuns: public init( - total_ms: Swift.Int, + totalMs: Swift.Int, jobs: Swift.Int, - job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.MACOSPayload.job_runsPayload? = nil + jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.MacosPayload.JobRunsPayload? = nil ) { - self.total_ms = total_ms + self.totalMs = totalMs self.jobs = jobs - self.job_runs = job_runs + self.jobRuns = jobRuns } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" case jobs - case job_runs + case jobRuns = "job_runs" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/MACOS`. - public var MACOS: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.MACOSPayload? + public var macos: Components.Schemas.WorkflowRunUsage.BillablePayload.MacosPayload? /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS`. - public struct WINDOWSPayload: Codable, Hashable, Sendable { + public struct WindowsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/total_ms`. - public var total_ms: Swift.Int + public var totalMs: Swift.Int /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/jobs`. public var jobs: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/job_runsPayload`. - public struct job_runsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/job_runsPayload/job_id`. - public var job_id: Swift.Int - /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/job_runsPayload/duration_ms`. - public var duration_ms: Swift.Int - /// Creates a new `job_runsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/JobRunsPayload`. + public struct JobRunsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/JobRunsPayload/job_id`. + public var jobId: Swift.Int + /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/JobRunsPayload/duration_ms`. + public var durationMs: Swift.Int + /// Creates a new `JobRunsPayloadPayload`. /// /// - Parameters: - /// - job_id: - /// - duration_ms: + /// - jobId: + /// - durationMs: public init( - job_id: Swift.Int, - duration_ms: Swift.Int + jobId: Swift.Int, + durationMs: Swift.Int ) { - self.job_id = job_id - self.duration_ms = duration_ms + self.jobId = jobId + self.durationMs = durationMs } public enum CodingKeys: String, CodingKey { - case job_id - case duration_ms + case jobId = "job_id" + case durationMs = "duration_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/job_runs`. - public typealias job_runsPayload = [Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.WINDOWSPayload.job_runsPayloadPayload] + public typealias JobRunsPayload = [Components.Schemas.WorkflowRunUsage.BillablePayload.WindowsPayload.JobRunsPayloadPayload] /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS/job_runs`. - public var job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.WINDOWSPayload.job_runsPayload? - /// Creates a new `WINDOWSPayload`. + public var jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.WindowsPayload.JobRunsPayload? + /// Creates a new `WindowsPayload`. /// /// - Parameters: - /// - total_ms: + /// - totalMs: /// - jobs: - /// - job_runs: + /// - jobRuns: public init( - total_ms: Swift.Int, + totalMs: Swift.Int, jobs: Swift.Int, - job_runs: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.WINDOWSPayload.job_runsPayload? = nil + jobRuns: Components.Schemas.WorkflowRunUsage.BillablePayload.WindowsPayload.JobRunsPayload? = nil ) { - self.total_ms = total_ms + self.totalMs = totalMs self.jobs = jobs - self.job_runs = job_runs + self.jobRuns = jobRuns } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" case jobs - case job_runs + case jobRuns = "job_runs" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable/WINDOWS`. - public var WINDOWS: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.WINDOWSPayload? - /// Creates a new `billablePayload`. + public var windows: Components.Schemas.WorkflowRunUsage.BillablePayload.WindowsPayload? + /// Creates a new `BillablePayload`. /// /// - Parameters: - /// - UBUNTU: - /// - MACOS: - /// - WINDOWS: + /// - ubuntu: + /// - macos: + /// - windows: public init( - UBUNTU: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.UBUNTUPayload? = nil, - MACOS: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.MACOSPayload? = nil, - WINDOWS: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload.WINDOWSPayload? = nil + ubuntu: Components.Schemas.WorkflowRunUsage.BillablePayload.UbuntuPayload? = nil, + macos: Components.Schemas.WorkflowRunUsage.BillablePayload.MacosPayload? = nil, + windows: Components.Schemas.WorkflowRunUsage.BillablePayload.WindowsPayload? = nil ) { - self.UBUNTU = UBUNTU - self.MACOS = MACOS - self.WINDOWS = WINDOWS + self.ubuntu = ubuntu + self.macos = macos + self.windows = windows } public enum CodingKeys: String, CodingKey { - case UBUNTU - case MACOS - case WINDOWS + case ubuntu = "UBUNTU" + case macos = "MACOS" + case windows = "WINDOWS" } } /// - Remark: Generated from `#/components/schemas/workflow-run-usage/billable`. - public var billable: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload + public var billable: Components.Schemas.WorkflowRunUsage.BillablePayload /// - Remark: Generated from `#/components/schemas/workflow-run-usage/run_duration_ms`. - public var run_duration_ms: Swift.Int? - /// Creates a new `workflow_hyphen_run_hyphen_usage`. + public var runDurationMs: Swift.Int? + /// Creates a new `WorkflowRunUsage`. /// /// - Parameters: /// - billable: - /// - run_duration_ms: + /// - runDurationMs: public init( - billable: Components.Schemas.workflow_hyphen_run_hyphen_usage.billablePayload, - run_duration_ms: Swift.Int? = nil + billable: Components.Schemas.WorkflowRunUsage.BillablePayload, + runDurationMs: Swift.Int? = nil ) { self.billable = billable - self.run_duration_ms = run_duration_ms + self.runDurationMs = runDurationMs } public enum CodingKeys: String, CodingKey { case billable - case run_duration_ms + case runDurationMs = "run_duration_ms" } } /// A GitHub Actions workflow /// /// - Remark: Generated from `#/components/schemas/workflow`. - public struct workflow: Codable, Hashable, Sendable { + public struct Workflow: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/workflow/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case deleted = "deleted" - case disabled_fork = "disabled_fork" - case disabled_inactivity = "disabled_inactivity" - case disabled_manually = "disabled_manually" + case disabledFork = "disabled_fork" + case disabledInactivity = "disabled_inactivity" + case disabledManually = "disabled_manually" } /// - Remark: Generated from `#/components/schemas/workflow/state`. - public var state: Components.Schemas.workflow.statePayload + public var state: Components.Schemas.Workflow.StatePayload /// - Remark: Generated from `#/components/schemas/workflow/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/workflow/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/workflow/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/badge_url`. - public var badge_url: Swift.String + public var badgeUrl: Swift.String /// - Remark: Generated from `#/components/schemas/workflow/deleted_at`. - public var deleted_at: Foundation.Date? - /// Creates a new `workflow`. + public var deletedAt: Foundation.Date? + /// Creates a new `Workflow`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - path: /// - state: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - badge_url: - /// - deleted_at: + /// - htmlUrl: + /// - badgeUrl: + /// - deletedAt: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, path: Swift.String, - state: Components.Schemas.workflow.statePayload, - created_at: Foundation.Date, - updated_at: Foundation.Date, + state: Components.Schemas.Workflow.StatePayload, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, url: Swift.String, - html_url: Swift.String, - badge_url: Swift.String, - deleted_at: Foundation.Date? = nil + htmlUrl: Swift.String, + badgeUrl: Swift.String, + deletedAt: Foundation.Date? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.path = path self.state = state - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.badge_url = badge_url - self.deleted_at = deleted_at + self.htmlUrl = htmlUrl + self.badgeUrl = badgeUrl + self.deletedAt = deletedAt } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case path case state - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case badge_url - case deleted_at + case htmlUrl = "html_url" + case badgeUrl = "badge_url" + case deletedAt = "deleted_at" } } /// Workflow Usage /// /// - Remark: Generated from `#/components/schemas/workflow-usage`. - public struct workflow_hyphen_usage: Codable, Hashable, Sendable { + public struct WorkflowUsage: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-usage/billable`. - public struct billablePayload: Codable, Hashable, Sendable { + public struct BillablePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/UBUNTU`. - public struct UBUNTUPayload: Codable, Hashable, Sendable { + public struct UbuntuPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/UBUNTU/total_ms`. - public var total_ms: Swift.Int? - /// Creates a new `UBUNTUPayload`. + public var totalMs: Swift.Int? + /// Creates a new `UbuntuPayload`. /// /// - Parameters: - /// - total_ms: - public init(total_ms: Swift.Int? = nil) { - self.total_ms = total_ms + /// - totalMs: + public init(totalMs: Swift.Int? = nil) { + self.totalMs = totalMs } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/UBUNTU`. - public var UBUNTU: Components.Schemas.workflow_hyphen_usage.billablePayload.UBUNTUPayload? + public var ubuntu: Components.Schemas.WorkflowUsage.BillablePayload.UbuntuPayload? /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/MACOS`. - public struct MACOSPayload: Codable, Hashable, Sendable { + public struct MacosPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/MACOS/total_ms`. - public var total_ms: Swift.Int? - /// Creates a new `MACOSPayload`. + public var totalMs: Swift.Int? + /// Creates a new `MacosPayload`. /// /// - Parameters: - /// - total_ms: - public init(total_ms: Swift.Int? = nil) { - self.total_ms = total_ms + /// - totalMs: + public init(totalMs: Swift.Int? = nil) { + self.totalMs = totalMs } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/MACOS`. - public var MACOS: Components.Schemas.workflow_hyphen_usage.billablePayload.MACOSPayload? + public var macos: Components.Schemas.WorkflowUsage.BillablePayload.MacosPayload? /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/WINDOWS`. - public struct WINDOWSPayload: Codable, Hashable, Sendable { + public struct WindowsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/WINDOWS/total_ms`. - public var total_ms: Swift.Int? - /// Creates a new `WINDOWSPayload`. + public var totalMs: Swift.Int? + /// Creates a new `WindowsPayload`. /// /// - Parameters: - /// - total_ms: - public init(total_ms: Swift.Int? = nil) { - self.total_ms = total_ms + /// - totalMs: + public init(totalMs: Swift.Int? = nil) { + self.totalMs = totalMs } public enum CodingKeys: String, CodingKey { - case total_ms + case totalMs = "total_ms" } } /// - Remark: Generated from `#/components/schemas/workflow-usage/billable/WINDOWS`. - public var WINDOWS: Components.Schemas.workflow_hyphen_usage.billablePayload.WINDOWSPayload? - /// Creates a new `billablePayload`. + public var windows: Components.Schemas.WorkflowUsage.BillablePayload.WindowsPayload? + /// Creates a new `BillablePayload`. /// /// - Parameters: - /// - UBUNTU: - /// - MACOS: - /// - WINDOWS: + /// - ubuntu: + /// - macos: + /// - windows: public init( - UBUNTU: Components.Schemas.workflow_hyphen_usage.billablePayload.UBUNTUPayload? = nil, - MACOS: Components.Schemas.workflow_hyphen_usage.billablePayload.MACOSPayload? = nil, - WINDOWS: Components.Schemas.workflow_hyphen_usage.billablePayload.WINDOWSPayload? = nil + ubuntu: Components.Schemas.WorkflowUsage.BillablePayload.UbuntuPayload? = nil, + macos: Components.Schemas.WorkflowUsage.BillablePayload.MacosPayload? = nil, + windows: Components.Schemas.WorkflowUsage.BillablePayload.WindowsPayload? = nil ) { - self.UBUNTU = UBUNTU - self.MACOS = MACOS - self.WINDOWS = WINDOWS + self.ubuntu = ubuntu + self.macos = macos + self.windows = windows } public enum CodingKeys: String, CodingKey { - case UBUNTU - case MACOS - case WINDOWS + case ubuntu = "UBUNTU" + case macos = "MACOS" + case windows = "WINDOWS" } } /// - Remark: Generated from `#/components/schemas/workflow-usage/billable`. - public var billable: Components.Schemas.workflow_hyphen_usage.billablePayload - /// Creates a new `workflow_hyphen_usage`. + public var billable: Components.Schemas.WorkflowUsage.BillablePayload + /// Creates a new `WorkflowUsage`. /// /// - Parameters: /// - billable: - public init(billable: Components.Schemas.workflow_hyphen_usage.billablePayload) { + public init(billable: Components.Schemas.WorkflowUsage.BillablePayload) { self.billable = billable } public enum CodingKeys: String, CodingKey { @@ -10257,128 +10266,128 @@ public enum Components { /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// Unique identifier of the GitHub-hosted runner. /// /// - Remark: Generated from `#/components/parameters/hosted-runner-id`. - public typealias hosted_hyphen_runner_hyphen_id = Swift.Int + public typealias HostedRunnerId = Swift.Int /// The unique identifier of the repository. /// /// - Remark: Generated from `#/components/parameters/repository-id`. - public typealias repository_hyphen_id = Swift.Int + public typealias RepositoryId = Swift.Int /// Only return runner groups that are allowed to be used by this repository. /// /// - Remark: Generated from `#/components/parameters/visible-to-repository`. - public typealias visible_hyphen_to_hyphen_repository = Swift.String + public typealias VisibleToRepository = Swift.String /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/components/parameters/runner-group-id`. - public typealias runner_hyphen_group_hyphen_id = Swift.Int + public typealias RunnerGroupId = Swift.Int /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/components/parameters/runner-id`. - public typealias runner_hyphen_id = Swift.Int + public typealias RunnerId = Swift.Int /// The name of a self-hosted runner's custom label. /// /// - Remark: Generated from `#/components/parameters/runner-label-name`. - public typealias runner_hyphen_label_hyphen_name = Swift.String + public typealias RunnerLabelName = Swift.String /// The name of the secret. /// /// - Remark: Generated from `#/components/parameters/secret-name`. - public typealias secret_hyphen_name = Swift.String + public typealias SecretName = Swift.String /// The number of results per page (max 30). 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)." /// /// - Remark: Generated from `#/components/parameters/variables-per-page`. - public typealias variables_hyphen_per_hyphen_page = Swift.Int + public typealias VariablesPerPage = Swift.Int /// The name of the variable. /// /// - Remark: Generated from `#/components/parameters/variable-name`. - public typealias variable_hyphen_name = Swift.String + public typealias VariableName = Swift.String /// The name field of an artifact. When specified, only artifacts with this name will be returned. /// /// - Remark: Generated from `#/components/parameters/artifact-name`. - public typealias artifact_hyphen_name = Swift.String + public typealias ArtifactName = Swift.String /// The unique identifier of the artifact. /// /// - Remark: Generated from `#/components/parameters/artifact-id`. - public typealias artifact_hyphen_id = Swift.Int + public typealias ArtifactId = Swift.Int /// The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/components/parameters/actions-cache-git-ref-full`. - public typealias actions_hyphen_cache_hyphen_git_hyphen_ref_hyphen_full = Swift.String + public typealias ActionsCacheGitRefFull = Swift.String /// An explicit key or prefix for identifying the cache /// /// - Remark: Generated from `#/components/parameters/actions-cache-key`. - public typealias actions_hyphen_cache_hyphen_key = Swift.String + public typealias ActionsCacheKey = Swift.String /// The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes. /// /// - Remark: Generated from `#/components/parameters/actions-cache-list-sort`. - @frozen public enum actions_hyphen_cache_hyphen_list_hyphen_sort: String, Codable, Hashable, Sendable { - case created_at = "created_at" - case last_accessed_at = "last_accessed_at" - case size_in_bytes = "size_in_bytes" + @frozen public enum ActionsCacheListSort: String, Codable, Hashable, Sendable, CaseIterable { + case createdAt = "created_at" + case lastAccessedAt = "last_accessed_at" + case sizeInBytes = "size_in_bytes" } /// A key for identifying the cache. /// /// - Remark: Generated from `#/components/parameters/actions-cache-key-required`. - public typealias actions_hyphen_cache_hyphen_key_hyphen_required = Swift.String + public typealias ActionsCacheKeyRequired = Swift.String /// The unique identifier of the GitHub Actions cache. /// /// - Remark: Generated from `#/components/parameters/cache-id`. - public typealias cache_hyphen_id = Swift.Int + public typealias CacheId = Swift.Int /// The unique identifier of the job. /// /// - Remark: Generated from `#/components/parameters/job-id`. - public typealias job_hyphen_id = Swift.Int + public typealias JobId = Swift.Int /// Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. /// /// - Remark: Generated from `#/components/parameters/actor`. - public typealias actor = Swift.String + public typealias Actor = Swift.String /// Returns workflow runs associated with a branch. Use the name of the branch of the `push`. /// /// - Remark: Generated from `#/components/parameters/workflow-run-branch`. - public typealias workflow_hyphen_run_hyphen_branch = Swift.String + public typealias WorkflowRunBranch = Swift.String /// Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." /// /// - Remark: Generated from `#/components/parameters/event`. - public typealias event = Swift.String + public typealias Event = Swift.String /// Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. /// /// - Remark: Generated from `#/components/parameters/workflow-run-status`. - @frozen public enum workflow_hyphen_run_hyphen_status: String, Codable, Hashable, Sendable { + @frozen public enum WorkflowRunStatus: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" - case action_required = "action_required" + case actionRequired = "action_required" case cancelled = "cancelled" case failure = "failure" case neutral = "neutral" case skipped = "skipped" case stale = "stale" case success = "success" - case timed_out = "timed_out" - case in_progress = "in_progress" + case timedOut = "timed_out" + case inProgress = "in_progress" case queued = "queued" case requested = "requested" case waiting = "waiting" @@ -10387,31 +10396,31 @@ public enum Components { /// Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." /// /// - Remark: Generated from `#/components/parameters/created`. - public typealias created = Foundation.Date + public typealias Created = Foundation.Date /// If `true` pull requests are omitted from the response (empty array). /// /// - Remark: Generated from `#/components/parameters/exclude-pull-requests`. - public typealias exclude_hyphen_pull_hyphen_requests = Swift.Bool + public typealias ExcludePullRequests = Swift.Bool /// Returns workflow runs with the `check_suite_id` that you specify. /// /// - Remark: Generated from `#/components/parameters/workflow-run-check-suite-id`. - public typealias workflow_hyphen_run_hyphen_check_hyphen_suite_hyphen_id = Swift.Int + public typealias WorkflowRunCheckSuiteId = Swift.Int /// Only returns workflow runs that are associated with the specified `head_sha`. /// /// - Remark: Generated from `#/components/parameters/workflow-run-head-sha`. - public typealias workflow_hyphen_run_hyphen_head_hyphen_sha = Swift.String + public typealias WorkflowRunHeadSha = Swift.String /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/components/parameters/run-id`. - public typealias run_hyphen_id = Swift.Int + public typealias RunId = Swift.Int /// The attempt number of the workflow run. /// /// - Remark: Generated from `#/components/parameters/attempt-number`. - public typealias attempt_hyphen_number = Swift.Int + public typealias AttemptNumber = Swift.Int /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -10448,22 +10457,22 @@ public enum Components { /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/components/parameters/environment-name`. - public typealias environment_hyphen_name = Swift.String + public typealias EnvironmentName = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -10473,25 +10482,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10501,25 +10510,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10533,15 +10542,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -10553,25 +10562,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10581,25 +10590,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/conflict/content`. + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10609,25 +10618,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. + public struct Conflict: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10637,50 +10646,50 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } - public struct actions_runner_jitconfig: Sendable, Hashable { + public struct ActionsRunnerJitconfig: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_jitconfig/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_jitconfig/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/actions_runner_jitconfig/content/json/runner`. - public var runner: Components.Schemas.runner + public var runner: Components.Schemas.Runner /// The base64 encoded runner configuration. /// /// - Remark: Generated from `#/components/responses/actions_runner_jitconfig/content/json/encoded_jit_config`. - public var encoded_jit_config: Swift.String - /// Creates a new `jsonPayload`. + public var encodedJitConfig: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - runner: - /// - encoded_jit_config: The base64 encoded runner configuration. + /// - encodedJitConfig: The base64 encoded runner configuration. public init( - runner: Components.Schemas.runner, - encoded_jit_config: Swift.String + runner: Components.Schemas.Runner, + encodedJitConfig: Swift.String ) { self.runner = runner - self.encoded_jit_config = encoded_jit_config + self.encodedJitConfig = encodedJitConfig } public enum CodingKeys: String, CodingKey { case runner - case encoded_jit_config + case encodedJitConfig = "encoded_jit_config" } } /// - Remark: Generated from `#/components/responses/actions_runner_jitconfig/content/application\/json`. - case json(Components.Responses.actions_runner_jitconfig.Body.jsonPayload) + case json(Components.Responses.ActionsRunnerJitconfig.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.actions_runner_jitconfig.Body.jsonPayload { + public var json: Components.Responses.ActionsRunnerJitconfig.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10690,48 +10699,48 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.actions_runner_jitconfig.Body - /// Creates a new `actions_runner_jitconfig`. + public var body: Components.Responses.ActionsRunnerJitconfig.Body + /// Creates a new `ActionsRunnerJitconfig`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.actions_runner_jitconfig.Body) { + public init(body: Components.Responses.ActionsRunnerJitconfig.Body) { self.body = body } } - public struct actions_runner_labels: Sendable, Hashable { + public struct ActionsRunnerLabels: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_labels/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_labels/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/actions_runner_labels/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/responses/actions_runner_labels/content/json/labels`. - public var labels: [Components.Schemas.runner_hyphen_label] - /// Creates a new `jsonPayload`. + public var labels: [Components.Schemas.RunnerLabel] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - labels: public init( - total_count: Swift.Int, - labels: [Components.Schemas.runner_hyphen_label] + totalCount: Swift.Int, + labels: [Components.Schemas.RunnerLabel] ) { - self.total_count = total_count + self.totalCount = totalCount self.labels = labels } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case labels } } /// - Remark: Generated from `#/components/responses/actions_runner_labels/content/application\/json`. - case json(Components.Responses.actions_runner_labels.Body.jsonPayload) + case json(Components.Responses.ActionsRunnerLabels.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.actions_runner_labels.Body.jsonPayload { + public var json: Components.Responses.ActionsRunnerLabels.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10741,48 +10750,48 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.actions_runner_labels.Body - /// Creates a new `actions_runner_labels`. + public var body: Components.Responses.ActionsRunnerLabels.Body + /// Creates a new `ActionsRunnerLabels`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.actions_runner_labels.Body) { + public init(body: Components.Responses.ActionsRunnerLabels.Body) { self.body = body } } - public struct actions_runner_labels_readonly: Sendable, Hashable { + public struct ActionsRunnerLabelsReadonly: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_labels_readonly/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/actions_runner_labels_readonly/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/actions_runner_labels_readonly/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/responses/actions_runner_labels_readonly/content/json/labels`. - public var labels: [Components.Schemas.runner_hyphen_label] - /// Creates a new `jsonPayload`. + public var labels: [Components.Schemas.RunnerLabel] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - labels: public init( - total_count: Swift.Int, - labels: [Components.Schemas.runner_hyphen_label] + totalCount: Swift.Int, + labels: [Components.Schemas.RunnerLabel] ) { - self.total_count = total_count + self.totalCount = totalCount self.labels = labels } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case labels } } /// - Remark: Generated from `#/components/responses/actions_runner_labels_readonly/content/application\/json`. - case json(Components.Responses.actions_runner_labels_readonly.Body.jsonPayload) + case json(Components.Responses.ActionsRunnerLabelsReadonly.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.actions_runner_labels_readonly.Body.jsonPayload { + public var json: Components.Responses.ActionsRunnerLabelsReadonly.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10792,25 +10801,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.actions_runner_labels_readonly.Body - /// Creates a new `actions_runner_labels_readonly`. + public var body: Components.Responses.ActionsRunnerLabelsReadonly.Body + /// Creates a new `ActionsRunnerLabelsReadonly`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.actions_runner_labels_readonly.Body) { + public init(body: Components.Responses.ActionsRunnerLabelsReadonly.Body) { self.body = body } } - public struct gone: Sendable, Hashable { + public struct Gone: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10820,12 +10829,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.gone.Body - /// Creates a new `gone`. + public var body: Components.Responses.Gone.Body + /// Creates a new `Gone`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.gone.Body) { + public init(body: Components.Responses.Gone.Body) { self.body = body } } @@ -10833,9 +10842,9 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String /// - Remark: Generated from `#/components/headers/location`. - public typealias location = Swift.String + public typealias Location = Swift.String } } @@ -10850,7 +10859,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage/get(actions/get-actions-cache-usage-for-org)`. - public enum actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org { + public enum ActionsGetActionsCacheUsageForOrg { public static let id: Swift.String = "actions/get-actions-cache-usage-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/path`. @@ -10858,36 +10867,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetActionsCacheUsageForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetActionsCacheUsageForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetActionsCacheUsageForOrg.Input.Path, + headers: Operations.ActionsGetActionsCacheUsageForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10898,26 +10907,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_org_hyphen_enterprise) + case json(Components.Schemas.ActionsCacheUsageOrgEnterprise) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_org_hyphen_enterprise { + public var json: Components.Schemas.ActionsCacheUsageOrgEnterprise { get throws { switch self { case let .json(body): @@ -10927,15 +10936,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10946,12 +10955,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage/get(actions/get-actions-cache-usage-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetActionsCacheUsageForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -11004,7 +11013,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/cache/usage-by-repository`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage-by-repository/get(actions/get-actions-cache-usage-by-repo-for-org)`. - public enum actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org { + public enum ActionsGetActionsCacheUsageByRepoForOrg { public static let id: Swift.String = "actions/get-actions-cache-usage-by-repo-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/path`. @@ -11012,52 +11021,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11065,9 +11074,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Path, + query: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Query = .init(), + headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -11079,49 +11088,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/content/json/repository_cache_usages`. - public var repository_cache_usages: [Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositoryCacheUsages: [Components.Schemas.ActionsCacheUsageByRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - repository_cache_usages: + /// - totalCount: + /// - repositoryCacheUsages: public init( - total_count: Swift.Int, - repository_cache_usages: [Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository] + totalCount: Swift.Int, + repositoryCacheUsages: [Components.Schemas.ActionsCacheUsageByRepository] ) { - self.total_count = total_count - self.repository_cache_usages = repository_cache_usages + self.totalCount = totalCount + self.repositoryCacheUsages = repositoryCacheUsages } public enum CodingKeys: String, CodingKey { - case total_count - case repository_cache_usages + case totalCount = "total_count" + case repositoryCacheUsages = "repository_cache_usages" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/cache/usage-by-repository/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11131,15 +11140,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11150,12 +11159,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/cache/usage-by-repository/get(actions/get-actions-cache-usage-by-repo-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repo_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetActionsCacheUsageByRepoForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -11207,7 +11216,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/get(actions/list-hosted-runners-for-org)`. - public enum actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org { + public enum ActionsListHostedRunnersForOrg { public static let id: Swift.String = "actions/list-hosted-runners-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/path`. @@ -11215,52 +11224,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListHostedRunnersForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsListHostedRunnersForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListHostedRunnersForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11268,9 +11277,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListHostedRunnersForOrg.Input.Path, + query: Operations.ActionsListHostedRunnersForOrg.Input.Query = .init(), + headers: Operations.ActionsListHostedRunnersForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -11282,49 +11291,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/content/json/runners`. - public var runners: [Components.Schemas.actions_hyphen_hosted_hyphen_runner] - /// Creates a new `jsonPayload`. + public var runners: [Components.Schemas.ActionsHostedRunner] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - runners: public init( - total_count: Swift.Int, - runners: [Components.Schemas.actions_hyphen_hosted_hyphen_runner] + totalCount: Swift.Int, + runners: [Components.Schemas.ActionsHostedRunner] ) { - self.total_count = total_count + self.totalCount = totalCount self.runners = runners } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case runners } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11334,15 +11343,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsListHostedRunnersForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11353,12 +11362,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/get(actions/list-hosted-runners-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListHostedRunnersForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListHostedRunnersForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -11409,7 +11418,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/post(actions/create-hosted-runner-for-org)`. - public enum actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsCreateHostedRunnerForOrg { public static let id: Swift.String = "actions/create-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/path`. @@ -11417,32 +11426,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsCreateHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsCreateHostedRunnerForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/name`. @@ -11450,7 +11459,7 @@ public enum Operations { /// The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/image`. - public struct imagePayload: Codable, Hashable, Sendable { + public struct ImagePayload: Codable, Hashable, Sendable { /// The unique identifier of the runner image. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/image/id`. @@ -11458,7 +11467,7 @@ public enum Operations { /// The source of the runner image. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/image/source`. - @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { + @frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable { case github = "github" case partner = "partner" case custom = "custom" @@ -11466,15 +11475,15 @@ public enum Operations { /// The source of the runner image. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/image/source`. - public var source: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload.imagePayload.sourcePayload? - /// Creates a new `imagePayload`. + public var source: Operations.ActionsCreateHostedRunnerForOrg.Input.Body.JsonPayload.ImagePayload.SourcePayload? + /// Creates a new `ImagePayload`. /// /// - Parameters: /// - id: The unique identifier of the runner image. /// - source: The source of the runner image. public init( id: Swift.String? = nil, - source: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload.imagePayload.sourcePayload? = nil + source: Operations.ActionsCreateHostedRunnerForOrg.Input.Body.JsonPayload.ImagePayload.SourcePayload? = nil ) { self.id = id self.source = source @@ -11487,7 +11496,7 @@ public enum Operations { /// The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/image`. - public var image: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload.imagePayload + public var image: Operations.ActionsCreateHostedRunnerForOrg.Input.Body.JsonPayload.ImagePayload /// The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes` /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/size`. @@ -11495,52 +11504,52 @@ public enum Operations { /// The existing runner group to add this runner to. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/runner_group_id`. - public var runner_group_id: Swift.Int + public var runnerGroupId: Swift.Int /// The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/maximum_runners`. - public var maximum_runners: Swift.Int? + public var maximumRunners: Swift.Int? /// Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/json/enable_static_ip`. - public var enable_static_ip: Swift.Bool? - /// Creates a new `jsonPayload`. + public var enableStaticIp: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. /// - image: The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. /// - size: The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes` - /// - runner_group_id: The existing runner group to add this runner to. - /// - maximum_runners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. - /// - enable_static_ip: Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` + /// - runnerGroupId: The existing runner group to add this runner to. + /// - maximumRunners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. + /// - enableStaticIp: Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` public init( name: Swift.String, - image: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload.imagePayload, + image: Operations.ActionsCreateHostedRunnerForOrg.Input.Body.JsonPayload.ImagePayload, size: Swift.String, - runner_group_id: Swift.Int, - maximum_runners: Swift.Int? = nil, - enable_static_ip: Swift.Bool? = nil + runnerGroupId: Swift.Int, + maximumRunners: Swift.Int? = nil, + enableStaticIp: Swift.Bool? = nil ) { self.name = name self.image = image self.size = size - self.runner_group_id = runner_group_id - self.maximum_runners = maximum_runners - self.enable_static_ip = enable_static_ip + self.runnerGroupId = runnerGroupId + self.maximumRunners = maximumRunners + self.enableStaticIp = enableStaticIp } public enum CodingKeys: String, CodingKey { case name case image case size - case runner_group_id - case maximum_runners - case enable_static_ip + case runnerGroupId = "runner_group_id" + case maximumRunners = "maximum_runners" + case enableStaticIp = "enable_static_ip" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsCreateHostedRunnerForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsCreateHostedRunnerForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11548,9 +11557,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsCreateHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsCreateHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsCreateHostedRunnerForOrg.Input.Body ) { self.path = path self.headers = headers @@ -11562,12 +11571,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/POST/responses/201/content/application\/json`. - case json(Components.Schemas.actions_hyphen_hosted_hyphen_runner) + case json(Components.Schemas.ActionsHostedRunner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_hosted_hyphen_runner { + public var json: Components.Schemas.ActionsHostedRunner { get throws { switch self { case let .json(body): @@ -11577,12 +11586,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.ActionsCreateHostedRunnerForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.ActionsCreateHostedRunnerForOrg.Output.Created.Body) { self.body = body } } @@ -11591,12 +11600,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/post(actions/create-hosted-runner-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Created) + case created(Operations.ActionsCreateHostedRunnerForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.ActionsCreateHostedRunnerForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -11646,7 +11655,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/github-owned`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/github-owned/get(actions/get-hosted-runners-github-owned-images-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnersGithubOwnedImagesForOrg { public static let id: Swift.String = "actions/get-hosted-runners-github-owned-images-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/path`. @@ -11654,36 +11663,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11694,35 +11703,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/json/images`. - public var images: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image] - /// Creates a new `jsonPayload`. + public var images: [Components.Schemas.ActionsHostedRunnerImage] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - images: public init( - total_count: Swift.Int, - images: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image] + totalCount: Swift.Int, + images: [Components.Schemas.ActionsHostedRunnerImage] ) { - self.total_count = total_count + self.totalCount = totalCount self.images = images } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case images } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/github-owned/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11732,12 +11741,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok.Body) { self.body = body } } @@ -11746,12 +11755,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/github-owned/get(actions/get-hosted-runners-github-owned-images-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_github_hyphen_owned_hyphen_images_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnersGithubOwnedImagesForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -11801,7 +11810,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/images/partner`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/partner/get(actions/get-hosted-runners-partner-images-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnersPartnerImagesForOrg { public static let id: Swift.String = "actions/get-hosted-runners-partner-images-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/path`. @@ -11809,36 +11818,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11849,35 +11858,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/json/images`. - public var images: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image] - /// Creates a new `jsonPayload`. + public var images: [Components.Schemas.ActionsHostedRunnerImage] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - images: public init( - total_count: Swift.Int, - images: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_image] + totalCount: Swift.Int, + images: [Components.Schemas.ActionsHostedRunnerImage] ) { - self.total_count = total_count + self.totalCount = totalCount self.images = images } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case images } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/images/partner/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11887,12 +11896,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok.Body) { self.body = body } } @@ -11901,12 +11910,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/images/partner/get(actions/get-hosted-runners-partner-images-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_partner_hyphen_images_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnersPartnerImagesForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -11956,7 +11965,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/limits`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/limits/get(actions/get-hosted-runners-limits-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnersLimitsForOrg { public static let id: Swift.String = "actions/get-hosted-runners-limits-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/limits/GET/path`. @@ -11964,36 +11973,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/limits/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/limits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersLimitsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12004,12 +12013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/limits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/limits/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_limits) + case json(Components.Schemas.ActionsHostedRunnerLimits) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_limits { + public var json: Components.Schemas.ActionsHostedRunnerLimits { get throws { switch self { case let .json(body): @@ -12019,12 +12028,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnersLimitsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetHostedRunnersLimitsForOrg.Output.Ok.Body) { self.body = body } } @@ -12033,12 +12042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/limits/get(actions/get-hosted-runners-limits-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnersLimitsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_limits_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnersLimitsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12088,7 +12097,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/machine-sizes`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/machine-sizes/get(actions/get-hosted-runners-machine-specs-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnersMachineSpecsForOrg { public static let id: Swift.String = "actions/get-hosted-runners-machine-specs-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/path`. @@ -12096,36 +12105,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12136,35 +12145,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/responses/200/content/json/machine_specs`. - public var machine_specs: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec] - /// Creates a new `jsonPayload`. + public var machineSpecs: [Components.Schemas.ActionsHostedRunnerMachineSpec] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - machine_specs: + /// - totalCount: + /// - machineSpecs: public init( - total_count: Swift.Int, - machine_specs: [Components.Schemas.actions_hyphen_hosted_hyphen_runner_hyphen_machine_hyphen_spec] + totalCount: Swift.Int, + machineSpecs: [Components.Schemas.ActionsHostedRunnerMachineSpec] ) { - self.total_count = total_count - self.machine_specs = machine_specs + self.totalCount = totalCount + self.machineSpecs = machineSpecs } public enum CodingKeys: String, CodingKey { - case total_count - case machine_specs + case totalCount = "total_count" + case machineSpecs = "machine_specs" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/machine-sizes/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -12174,12 +12183,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok.Body) { self.body = body } } @@ -12188,12 +12197,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/machine-sizes/get(actions/get-hosted-runners-machine-specs-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_machine_hyphen_specs_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnersMachineSpecsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12243,7 +12252,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/platforms`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/platforms/get(actions/get-hosted-runners-platforms-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnersPlatformsForOrg { public static let id: Swift.String = "actions/get-hosted-runners-platforms-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/path`. @@ -12251,36 +12260,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnersPlatformsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12291,35 +12300,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/responses/200/content/json/platforms`. public var platforms: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - platforms: public init( - total_count: Swift.Int, + totalCount: Swift.Int, platforms: [Swift.String] ) { - self.total_count = total_count + self.totalCount = totalCount self.platforms = platforms } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case platforms } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/platforms/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -12329,12 +12338,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok.Body) { self.body = body } } @@ -12343,12 +12352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/platforms/get(actions/get-hosted-runners-platforms-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runners_hyphen_platforms_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnersPlatformsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12400,7 +12409,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/get(actions/get-hosted-runner-for-org)`. - public enum actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsGetHostedRunnerForOrg { public static let id: Swift.String = "actions/get-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/path`. @@ -12408,45 +12417,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the GitHub-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/path/hosted_runner_id`. - public var hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + public var hostedRunnerId: Components.Parameters.HostedRunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hosted_runner_id: Unique identifier of the GitHub-hosted runner. + /// - hostedRunnerId: Unique identifier of the GitHub-hosted runner. public init( - org: Components.Parameters.org, - hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + org: Components.Parameters.Org, + hostedRunnerId: Components.Parameters.HostedRunnerId ) { self.org = org - self.hosted_runner_id = hosted_runner_id + self.hostedRunnerId = hostedRunnerId } } - public var path: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsGetHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12457,26 +12466,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_hosted_hyphen_runner) + case json(Components.Schemas.ActionsHostedRunner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_hosted_hyphen_runner { + public var json: Components.Schemas.ActionsHostedRunner { get throws { switch self { case let .json(body): @@ -12486,15 +12495,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsGetHostedRunnerForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12505,12 +12514,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/get(actions/get-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetHostedRunnerForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetHostedRunnerForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12561,7 +12570,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/patch(actions/update-hosted-runner-for-org)`. - public enum actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsUpdateHostedRunnerForOrg { public static let id: Swift.String = "actions/update-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/path`. @@ -12569,41 +12578,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the GitHub-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/path/hosted_runner_id`. - public var hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + public var hostedRunnerId: Components.Parameters.HostedRunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hosted_runner_id: Unique identifier of the GitHub-hosted runner. + /// - hostedRunnerId: Unique identifier of the GitHub-hosted runner. public init( - org: Components.Parameters.org, - hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + org: Components.Parameters.Org, + hostedRunnerId: Components.Parameters.HostedRunnerId ) { self.org = org - self.hosted_runner_id = hosted_runner_id + self.hostedRunnerId = hostedRunnerId } } - public var path: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsUpdateHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsUpdateHostedRunnerForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/name`. @@ -12611,44 +12620,44 @@ public enum Operations { /// The existing runner group to add this runner to. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/runner_group_id`. - public var runner_group_id: Swift.Int? + public var runnerGroupId: Swift.Int? /// The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/maximum_runners`. - public var maximum_runners: Swift.Int? + public var maximumRunners: Swift.Int? /// Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/json/enable_static_ip`. - public var enable_static_ip: Swift.Bool? - /// Creates a new `jsonPayload`. + public var enableStaticIp: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. - /// - runner_group_id: The existing runner group to add this runner to. - /// - maximum_runners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. - /// - enable_static_ip: Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` + /// - runnerGroupId: The existing runner group to add this runner to. + /// - maximumRunners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. + /// - enableStaticIp: Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` public init( name: Swift.String? = nil, - runner_group_id: Swift.Int? = nil, - maximum_runners: Swift.Int? = nil, - enable_static_ip: Swift.Bool? = nil + runnerGroupId: Swift.Int? = nil, + maximumRunners: Swift.Int? = nil, + enableStaticIp: Swift.Bool? = nil ) { self.name = name - self.runner_group_id = runner_group_id - self.maximum_runners = maximum_runners - self.enable_static_ip = enable_static_ip + self.runnerGroupId = runnerGroupId + self.maximumRunners = maximumRunners + self.enableStaticIp = enableStaticIp } public enum CodingKeys: String, CodingKey { case name - case runner_group_id - case maximum_runners - case enable_static_ip + case runnerGroupId = "runner_group_id" + case maximumRunners = "maximum_runners" + case enableStaticIp = "enable_static_ip" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsUpdateHostedRunnerForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsUpdateHostedRunnerForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -12656,9 +12665,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsUpdateHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsUpdateHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsUpdateHostedRunnerForOrg.Input.Body ) { self.path = path self.headers = headers @@ -12670,12 +12679,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_hosted_hyphen_runner) + case json(Components.Schemas.ActionsHostedRunner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_hosted_hyphen_runner { + public var json: Components.Schemas.ActionsHostedRunner { get throws { switch self { case let .json(body): @@ -12685,12 +12694,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsUpdateHostedRunnerForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsUpdateHostedRunnerForOrg.Output.Ok.Body) { self.body = body } } @@ -12699,12 +12708,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/patch(actions/update-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsUpdateHostedRunnerForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_update_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsUpdateHostedRunnerForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12754,7 +12763,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/delete(actions/delete-hosted-runner-for-org)`. - public enum actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsDeleteHostedRunnerForOrg { public static let id: Swift.String = "actions/delete-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/path`. @@ -12762,45 +12771,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the GitHub-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/path/hosted_runner_id`. - public var hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + public var hostedRunnerId: Components.Parameters.HostedRunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hosted_runner_id: Unique identifier of the GitHub-hosted runner. + /// - hostedRunnerId: Unique identifier of the GitHub-hosted runner. public init( - org: Components.Parameters.org, - hosted_runner_id: Components.Parameters.hosted_hyphen_runner_hyphen_id + org: Components.Parameters.Org, + hostedRunnerId: Components.Parameters.HostedRunnerId ) { self.org = org - self.hosted_runner_id = hosted_runner_id + self.hostedRunnerId = hostedRunnerId } } - public var path: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsDeleteHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsDeleteHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsDeleteHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsDeleteHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12811,12 +12820,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/hosted-runners/{hosted_runner_id}/DELETE/responses/202/content/application\/json`. - case json(Components.Schemas.actions_hyphen_hosted_hyphen_runner) + case json(Components.Schemas.ActionsHostedRunner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_hosted_hyphen_runner { + public var json: Components.Schemas.ActionsHostedRunner { get throws { switch self { case let .json(body): @@ -12826,12 +12835,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Accepted.Body + public var body: Operations.ActionsDeleteHostedRunnerForOrg.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Accepted.Body) { + public init(body: Operations.ActionsDeleteHostedRunnerForOrg.Output.Accepted.Body) { self.body = body } } @@ -12840,12 +12849,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/hosted-runners/{hosted_runner_id}/delete(actions/delete-hosted-runner-for-org)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Accepted) + case accepted(Operations.ActionsDeleteHostedRunnerForOrg.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.actions_sol_delete_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Accepted { + public var accepted: Operations.ActionsDeleteHostedRunnerForOrg.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -12897,7 +12906,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/get(actions/get-github-actions-permissions-organization)`. - public enum actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization { + public enum ActionsGetGithubActionsPermissionsOrganization { public static let id: Swift.String = "actions/get-github-actions-permissions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/GET/path`. @@ -12905,36 +12914,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path + public var path: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Headers + public var headers: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Headers = .init() + path: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Path, + headers: Operations.ActionsGetGithubActionsPermissionsOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12945,12 +12954,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_organization_hyphen_permissions) + case json(Components.Schemas.ActionsOrganizationPermissions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_organization_hyphen_permissions { + public var json: Components.Schemas.ActionsOrganizationPermissions { get throws { switch self { case let .json(body): @@ -12960,12 +12969,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.Ok.Body + public var body: Operations.ActionsGetGithubActionsPermissionsOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.ActionsGetGithubActionsPermissionsOrganization.Output.Ok.Body) { self.body = body } } @@ -12974,12 +12983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/get(actions/get-github-actions-permissions-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.Ok) + case ok(Operations.ActionsGetGithubActionsPermissionsOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.Ok { + public var ok: Operations.ActionsGetGithubActionsPermissionsOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -13031,7 +13040,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)`. - public enum actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization { + public enum ActionsSetGithubActionsPermissionsOrganization { public static let id: Swift.String = "actions/set-github-actions-permissions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/path`. @@ -13039,53 +13048,53 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path + public var path: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/json/enabled_repositories`. - public var enabled_repositories: Components.Schemas.enabled_hyphen_repositories + public var enabledRepositories: Components.Schemas.EnabledRepositories /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/json/allowed_actions`. - public var allowed_actions: Components.Schemas.allowed_hyphen_actions? - /// Creates a new `jsonPayload`. + public var allowedActions: Components.Schemas.AllowedActions? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - enabled_repositories: - /// - allowed_actions: + /// - enabledRepositories: + /// - allowedActions: public init( - enabled_repositories: Components.Schemas.enabled_hyphen_repositories, - allowed_actions: Components.Schemas.allowed_hyphen_actions? = nil + enabledRepositories: Components.Schemas.EnabledRepositories, + allowedActions: Components.Schemas.AllowedActions? = nil ) { - self.enabled_repositories = enabled_repositories - self.allowed_actions = allowed_actions + self.enabledRepositories = enabledRepositories + self.allowedActions = allowedActions } public enum CodingKeys: String, CodingKey { - case enabled_repositories - case allowed_actions + case enabledRepositories = "enabled_repositories" + case allowedActions = "allowed_actions" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Body.jsonPayload) + case json(Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Body + public var body: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Input.Body + path: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Path, + body: Operations.ActionsSetGithubActionsPermissionsOrganization.Input.Body ) { self.path = path self.body = body @@ -13101,12 +13110,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsSetGithubActionsPermissionsOrganization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/put(actions/set-github-actions-permissions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsSetGithubActionsPermissionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13133,7 +13150,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/get(actions/list-selected-repositories-enabled-github-actions-organization)`. - public enum actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization { + public enum ActionsListSelectedRepositoriesEnabledGithubActionsOrganization { public static let id: Swift.String = "actions/list-selected-repositories-enabled-github-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/path`. @@ -13141,52 +13158,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Query + public var query: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Headers + public var headers: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13194,9 +13211,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Headers = .init() + path: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path, + query: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Query = .init(), + headers: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Input.Headers = .init() ) { self.path = path self.query = query @@ -13208,35 +13225,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Double + public var totalCount: Swift.Double /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.Repository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Double, - repositories: [Components.Schemas.repository] + totalCount: Swift.Double, + repositories: [Components.Schemas.Repository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -13246,12 +13263,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body + public var body: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok.Body) { self.body = body } } @@ -13260,12 +13277,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/get(actions/list-selected-repositories-enabled-github-actions-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok) + case ok(Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.Ok { + public var ok: Operations.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -13318,7 +13335,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)`. - public enum actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization { + public enum ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization { public static let id: Swift.String = "actions/set-selected-repositories-enabled-github-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/path`. @@ -13326,47 +13343,47 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// List of repository IDs to enable for GitHub Actions. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: List of repository IDs to enable for GitHub Actions. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: List of repository IDs to enable for GitHub Actions. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Body.jsonPayload) + case json(Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Body + public var body: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Input.Body + path: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Path, + body: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Input.Body ) { self.path = path self.body = body @@ -13382,12 +13399,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/put(actions/set-selected-repositories-enabled-github-actions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_selected_hyphen_repositories_hyphen_enabled_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13414,7 +13439,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)`. - public enum actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization { + public enum ActionsEnableSelectedRepositoryGithubActionsOrganization { public static let id: Swift.String = "actions/enable-selected-repository-github-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/PUT/path`. @@ -13422,30 +13447,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - repository_id: The unique identifier of the repository. + /// - repositoryId: The unique identifier of the repository. public init( - org: Components.Parameters.org, - repository_id: Components.Parameters.repository_hyphen_id + org: Components.Parameters.Org, + repositoryId: Components.Parameters.RepositoryId ) { self.org = org - self.repository_id = repository_id + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path) { + public init(path: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Input.Path) { self.path = path } } @@ -13459,12 +13484,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/put(actions/enable-selected-repository-github-actions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_enable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsEnableSelectedRepositoryGithubActionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13491,7 +13524,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)`. - public enum actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization { + public enum ActionsDisableSelectedRepositoryGithubActionsOrganization { public static let id: Swift.String = "actions/disable-selected-repository-github-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/DELETE/path`. @@ -13499,30 +13532,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - repository_id: The unique identifier of the repository. + /// - repositoryId: The unique identifier of the repository. public init( - org: Components.Parameters.org, - repository_id: Components.Parameters.repository_hyphen_id + org: Components.Parameters.Org, + repositoryId: Components.Parameters.RepositoryId ) { self.org = org - self.repository_id = repository_id + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Input.Path) { + public init(path: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Input.Path) { self.path = path } } @@ -13536,12 +13569,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/repositories/{repository_id}/delete(actions/disable-selected-repository-github-actions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_disable_hyphen_selected_hyphen_repository_hyphen_github_hyphen_actions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsDisableSelectedRepositoryGithubActionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13568,7 +13609,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/get(actions/get-allowed-actions-organization)`. - public enum actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization { + public enum ActionsGetAllowedActionsOrganization { public static let id: Swift.String = "actions/get-allowed-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/GET/path`. @@ -13576,36 +13617,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsGetAllowedActionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Headers + public var headers: Operations.ActionsGetAllowedActionsOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Headers = .init() + path: Operations.ActionsGetAllowedActionsOrganization.Input.Path, + headers: Operations.ActionsGetAllowedActionsOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -13616,12 +13657,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.selected_hyphen_actions) + case json(Components.Schemas.SelectedActions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.selected_hyphen_actions { + public var json: Components.Schemas.SelectedActions { get throws { switch self { case let .json(body): @@ -13631,12 +13672,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output.Ok.Body + public var body: Operations.ActionsGetAllowedActionsOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.ActionsGetAllowedActionsOrganization.Output.Ok.Body) { self.body = body } } @@ -13645,12 +13686,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/get(actions/get-allowed-actions-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output.Ok) + case ok(Operations.ActionsGetAllowedActionsOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_organization.Output.Ok { + public var ok: Operations.ActionsGetAllowedActionsOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -13702,7 +13743,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)`. - public enum actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization { + public enum ActionsSetAllowedActionsOrganization { public static let id: Swift.String = "actions/set-allowed-actions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/PUT/path`. @@ -13710,30 +13751,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path + public var path: Operations.ActionsSetAllowedActionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/selected-actions/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.selected_hyphen_actions) + case json(Components.Schemas.SelectedActions) } - public var body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Body? + public var body: Operations.ActionsSetAllowedActionsOrganization.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Input.Body? = nil + path: Operations.ActionsSetAllowedActionsOrganization.Input.Path, + body: Operations.ActionsSetAllowedActionsOrganization.Input.Body? = nil ) { self.path = path self.body = body @@ -13749,12 +13790,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsSetAllowedActionsOrganization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/selected-actions/put(actions/set-allowed-actions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsSetAllowedActionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13783,7 +13832,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-organization)`. - public enum actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization { + public enum ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization { public static let id: Swift.String = "actions/get-github-actions-default-workflow-permissions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/GET/path`. @@ -13791,36 +13840,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path + public var path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Headers + public var headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Headers = .init() + path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path, + headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -13831,12 +13880,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions) + case json(Components.Schemas.ActionsGetDefaultWorkflowPermissions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions { + public var json: Components.Schemas.ActionsGetDefaultWorkflowPermissions { get throws { switch self { case let .json(body): @@ -13846,12 +13895,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.Ok.Body + public var body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output.Ok.Body) { self.body = body } } @@ -13860,12 +13909,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.Ok) + case ok(Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.Ok { + public var ok: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -13919,7 +13968,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)`. - public enum actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization { + public enum ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization { public static let id: Swift.String = "actions/set-github-actions-default-workflow-permissions-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/PUT/path`. @@ -13927,30 +13976,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path + public var path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/workflow/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.actions_hyphen_set_hyphen_default_hyphen_workflow_hyphen_permissions) + case json(Components.Schemas.ActionsSetDefaultWorkflowPermissions) } - public var body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Body? + public var body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input.Body? = nil + path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Path, + body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Input.Body? = nil ) { self.path = path self.body = body @@ -13966,12 +14015,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.NoContent) + case noContent(Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Output.NoContent) + /// Success response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output.NoContent { + public var noContent: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13998,7 +14055,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. - public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org { + public enum ActionsListSelfHostedRunnerGroupsForOrg { public static let id: Swift.String = "actions/list-self-hosted-runner-groups-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/path`. @@ -14006,59 +14063,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Only return runner groups that are allowed to be used by this repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/visible_to_repository`. - public var visible_to_repository: Components.Parameters.visible_hyphen_to_hyphen_repository? + public var visibleToRepository: Components.Parameters.VisibleToRepository? /// 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)." + /// - perPage: 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)." - /// - visible_to_repository: Only return runner groups that are allowed to be used by this repository. + /// - visibleToRepository: Only return runner groups that are allowed to be used by this repository. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - visible_to_repository: Components.Parameters.visible_hyphen_to_hyphen_repository? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + visibleToRepository: Components.Parameters.VisibleToRepository? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page - self.visible_to_repository = visible_to_repository + self.visibleToRepository = visibleToRepository } } - public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14066,9 +14123,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -14080,35 +14137,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Double + public var totalCount: Swift.Double /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json/runner_groups`. - public var runner_groups: [Components.Schemas.runner_hyphen_groups_hyphen_org] - /// Creates a new `jsonPayload`. + public var runnerGroups: [Components.Schemas.RunnerGroupsOrg] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - runner_groups: + /// - totalCount: + /// - runnerGroups: public init( - total_count: Swift.Double, - runner_groups: [Components.Schemas.runner_hyphen_groups_hyphen_org] + totalCount: Swift.Double, + runnerGroups: [Components.Schemas.RunnerGroupsOrg] ) { - self.total_count = total_count - self.runner_groups = runner_groups + self.totalCount = totalCount + self.runnerGroups = runnerGroups } public enum CodingKeys: String, CodingKey { - case total_count - case runner_groups + case totalCount = "total_count" + case runnerGroups = "runner_groups" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -14118,12 +14175,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok.Body) { self.body = body } } @@ -14132,12 +14189,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListSelfHostedRunnerGroupsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -14189,7 +14246,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. - public enum actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsCreateSelfHostedRunnerGroupForOrg { public static let id: Swift.String = "actions/create-self-hosted-runner-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/path`. @@ -14197,32 +14254,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/name`. @@ -14230,7 +14287,7 @@ public enum Operations { /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case selected = "selected" case all = "all" case _private = "private" @@ -14238,11 +14295,11 @@ public enum Operations { /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/visibility`. - public var visibility: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload.VisibilityPayload? /// List of repository IDs that can access the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? + public var selectedRepositoryIds: [Swift.Int]? /// List of runner IDs to add to the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/runners`. @@ -14250,64 +14307,64 @@ public enum Operations { /// Whether the runner group can be used by `public` repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/allows_public_repositories`. - public var allows_public_repositories: Swift.Bool? + public var allowsPublicRepositories: Swift.Bool? /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/restricted_to_workflows`. - public var restricted_to_workflows: Swift.Bool? + public var restrictedToWorkflows: Swift.Bool? /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/selected_workflows`. - public var selected_workflows: [Swift.String]? + public var selectedWorkflows: [Swift.String]? /// The identifier of a hosted compute network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/network_configuration_id`. - public var network_configuration_id: Swift.String? - /// Creates a new `jsonPayload`. + public var networkConfigurationId: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the runner group. /// - visibility: Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. - /// - selected_repository_ids: List of repository IDs that can access the runner group. + /// - selectedRepositoryIds: List of repository IDs that can access the runner group. /// - runners: List of runner IDs to add to the runner group. - /// - allows_public_repositories: Whether the runner group can be used by `public` repositories. - /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. - /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. - /// - network_configuration_id: The identifier of a hosted compute network configuration. + /// - allowsPublicRepositories: Whether the runner group can be used by `public` repositories. + /// - restrictedToWorkflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selectedWorkflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// - networkConfigurationId: The identifier of a hosted compute network configuration. public init( name: Swift.String, - visibility: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? = nil, - selected_repository_ids: [Swift.Int]? = nil, + visibility: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload.VisibilityPayload? = nil, + selectedRepositoryIds: [Swift.Int]? = nil, runners: [Swift.Int]? = nil, - allows_public_repositories: Swift.Bool? = nil, - restricted_to_workflows: Swift.Bool? = nil, - selected_workflows: [Swift.String]? = nil, - network_configuration_id: Swift.String? = nil + allowsPublicRepositories: Swift.Bool? = nil, + restrictedToWorkflows: Swift.Bool? = nil, + selectedWorkflows: [Swift.String]? = nil, + networkConfigurationId: Swift.String? = nil ) { self.name = name self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds self.runners = runners - self.allows_public_repositories = allows_public_repositories - self.restricted_to_workflows = restricted_to_workflows - self.selected_workflows = selected_workflows - self.network_configuration_id = network_configuration_id + self.allowsPublicRepositories = allowsPublicRepositories + self.restrictedToWorkflows = restrictedToWorkflows + self.selectedWorkflows = selectedWorkflows + self.networkConfigurationId = networkConfigurationId } public enum CodingKeys: String, CodingKey { case name case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" case runners - case allows_public_repositories - case restricted_to_workflows - case selected_workflows - case network_configuration_id + case allowsPublicRepositories = "allows_public_repositories" + case restrictedToWorkflows = "restricted_to_workflows" + case selectedWorkflows = "selected_workflows" + case networkConfigurationId = "network_configuration_id" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -14315,9 +14372,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Headers = .init(), + body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Input.Body ) { self.path = path self.headers = headers @@ -14329,12 +14386,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/responses/201/content/application\/json`. - case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + case json(Components.Schemas.RunnerGroupsOrg) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.runner_hyphen_groups_hyphen_org { + public var json: Components.Schemas.RunnerGroupsOrg { get throws { switch self { case let .json(body): @@ -14344,12 +14401,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output.Created.Body) { self.body = body } } @@ -14358,12 +14415,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created) + case created(Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.ActionsCreateSelfHostedRunnerGroupForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -14415,7 +14472,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. - public enum actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsGetSelfHostedRunnerGroupForOrg { public static let id: Swift.String = "actions/get-self-hosted-runner-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path`. @@ -14423,45 +14480,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -14472,12 +14529,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + case json(Components.Schemas.RunnerGroupsOrg) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.runner_hyphen_groups_hyphen_org { + public var json: Components.Schemas.RunnerGroupsOrg { get throws { switch self { case let .json(body): @@ -14487,12 +14544,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output.Ok.Body) { self.body = body } } @@ -14501,12 +14558,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetSelfHostedRunnerGroupForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -14558,7 +14615,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. - public enum actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsUpdateSelfHostedRunnerGroupForOrg { public static let id: Swift.String = "actions/update-self-hosted-runner-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path`. @@ -14566,41 +14623,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/name`. @@ -14608,7 +14665,7 @@ public enum Operations { /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case selected = "selected" case all = "all" case _private = "private" @@ -14616,60 +14673,60 @@ public enum Operations { /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/visibility`. - public var visibility: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload.VisibilityPayload? /// Whether the runner group can be used by `public` repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/allows_public_repositories`. - public var allows_public_repositories: Swift.Bool? + public var allowsPublicRepositories: Swift.Bool? /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/restricted_to_workflows`. - public var restricted_to_workflows: Swift.Bool? + public var restrictedToWorkflows: Swift.Bool? /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/selected_workflows`. - public var selected_workflows: [Swift.String]? + public var selectedWorkflows: [Swift.String]? /// The identifier of a hosted compute network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/network_configuration_id`. - public var network_configuration_id: Swift.String? - /// Creates a new `jsonPayload`. + public var networkConfigurationId: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the runner group. /// - visibility: Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. - /// - allows_public_repositories: Whether the runner group can be used by `public` repositories. - /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. - /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. - /// - network_configuration_id: The identifier of a hosted compute network configuration. + /// - allowsPublicRepositories: Whether the runner group can be used by `public` repositories. + /// - restrictedToWorkflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selectedWorkflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// - networkConfigurationId: The identifier of a hosted compute network configuration. public init( name: Swift.String, - visibility: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? = nil, - allows_public_repositories: Swift.Bool? = nil, - restricted_to_workflows: Swift.Bool? = nil, - selected_workflows: [Swift.String]? = nil, - network_configuration_id: Swift.String? = nil + visibility: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload.VisibilityPayload? = nil, + allowsPublicRepositories: Swift.Bool? = nil, + restrictedToWorkflows: Swift.Bool? = nil, + selectedWorkflows: [Swift.String]? = nil, + networkConfigurationId: Swift.String? = nil ) { self.name = name self.visibility = visibility - self.allows_public_repositories = allows_public_repositories - self.restricted_to_workflows = restricted_to_workflows - self.selected_workflows = selected_workflows - self.network_configuration_id = network_configuration_id + self.allowsPublicRepositories = allowsPublicRepositories + self.restrictedToWorkflows = restrictedToWorkflows + self.selectedWorkflows = selectedWorkflows + self.networkConfigurationId = networkConfigurationId } public enum CodingKeys: String, CodingKey { case name case visibility - case allows_public_repositories - case restricted_to_workflows - case selected_workflows - case network_configuration_id + case allowsPublicRepositories = "allows_public_repositories" + case restrictedToWorkflows = "restricted_to_workflows" + case selectedWorkflows = "selected_workflows" + case networkConfigurationId = "network_configuration_id" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -14677,9 +14734,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Path, + headers: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Headers = .init(), + body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Input.Body ) { self.path = path self.headers = headers @@ -14691,12 +14748,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + case json(Components.Schemas.RunnerGroupsOrg) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.runner_hyphen_groups_hyphen_org { + public var json: Components.Schemas.RunnerGroupsOrg { get throws { switch self { case let .json(body): @@ -14706,12 +14763,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output.Ok.Body) { self.body = body } } @@ -14720,12 +14777,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsUpdateSelfHostedRunnerGroupForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -14777,7 +14834,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. - public enum actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org { + public enum ActionsDeleteSelfHostedRunnerGroupFromOrg { public static let id: Swift.String = "actions/delete-self-hosted-runner-group-from-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path`. @@ -14785,30 +14842,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path + public var path: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path) { + public init(path: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Input.Path) { self.path = path } } @@ -14822,12 +14879,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsDeleteSelfHostedRunnerGroupFromOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -14854,7 +14919,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/get(actions/list-github-hosted-runners-in-group-for-org)`. - public enum actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsListGithubHostedRunnersInGroupForOrg { public static let id: Swift.String = "actions/list-github-hosted-runners-in-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/path`. @@ -14862,61 +14927,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14924,9 +14989,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Path, + query: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Query = .init(), + headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -14938,49 +15003,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Double + public var totalCount: Swift.Double /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/content/json/runners`. - public var runners: [Components.Schemas.actions_hyphen_hosted_hyphen_runner] - /// Creates a new `jsonPayload`. + public var runners: [Components.Schemas.ActionsHostedRunner] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - runners: public init( - total_count: Swift.Double, - runners: [Components.Schemas.actions_hyphen_hosted_hyphen_runner] + totalCount: Swift.Double, + runners: [Components.Schemas.ActionsHostedRunner] ) { - self.total_count = total_count + self.totalCount = totalCount self.runners = runners } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case runners } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -14990,15 +15055,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15009,12 +15074,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners/get(actions/list-github-hosted-runners-in-group-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_github_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListGithubHostedRunnersInGroupForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -15066,7 +15131,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. - public enum actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public enum ActionsListRepoAccessToSelfHostedRunnerGroupInOrg { public static let id: Swift.String = "actions/list-repo-access-to-self-hosted-runner-group-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path`. @@ -15074,61 +15139,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query + public var query: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15136,9 +15201,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path, + query: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Query = .init(), + headers: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -15150,35 +15215,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Double + public var totalCount: Swift.Double /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Double, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Double, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -15188,12 +15253,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok.Body) { self.body = body } } @@ -15202,12 +15267,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListRepoAccessToSelfHostedRunnerGroupInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -15259,7 +15324,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. - public enum actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public enum ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg { public static let id: Swift.String = "actions/set-repo-access-to-self-hosted-runner-group-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path`. @@ -15267,56 +15332,56 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// List of repository IDs that can access the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: List of repository IDs that can access the runner group. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: List of repository IDs that can access the runner group. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body + public var body: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, - body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body + path: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path, + body: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Input.Body ) { self.path = path self.body = body @@ -15332,12 +15397,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15364,7 +15437,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. - public enum actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public enum ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg { public static let id: Swift.String = "actions/add-repo-access-to-self-hosted-runner-group-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path`. @@ -15372,37 +15445,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. - /// - repository_id: The unique identifier of the repository. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. + /// - repositoryId: The unique identifier of the repository. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, - repository_id: Components.Parameters.repository_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId, + repositoryId: Components.Parameters.RepositoryId ) { self.org = org - self.runner_group_id = runner_group_id - self.repository_id = repository_id + self.runnerGroupId = runnerGroupId + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path) { self.path = path } } @@ -15416,12 +15489,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15448,7 +15529,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. - public enum actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public enum ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg { public static let id: Swift.String = "actions/remove-repo-access-to-self-hosted-runner-group-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path`. @@ -15456,37 +15537,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. - /// - repository_id: The unique identifier of the repository. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. + /// - repositoryId: The unique identifier of the repository. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, - repository_id: Components.Parameters.repository_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId, + repositoryId: Components.Parameters.RepositoryId ) { self.org = org - self.runner_group_id = runner_group_id - self.repository_id = repository_id + self.runnerGroupId = runnerGroupId + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Input.Path) { self.path = path } } @@ -15500,12 +15581,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15532,7 +15621,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. - public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsListSelfHostedRunnersInGroupForOrg { public static let id: Swift.String = "actions/list-self-hosted-runners-in-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path`. @@ -15540,61 +15629,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15602,9 +15691,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -15616,49 +15705,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Double + public var totalCount: Swift.Double /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json/runners`. - public var runners: [Components.Schemas.runner] - /// Creates a new `jsonPayload`. + public var runners: [Components.Schemas.Runner] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - runners: public init( - total_count: Swift.Double, - runners: [Components.Schemas.runner] + totalCount: Swift.Double, + runners: [Components.Schemas.Runner] ) { - self.total_count = total_count + self.totalCount = totalCount self.runners = runners } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case runners } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -15668,15 +15757,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15687,12 +15776,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListSelfHostedRunnersInGroupForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -15744,7 +15833,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. - public enum actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsSetSelfHostedRunnersInGroupForOrg { public static let id: Swift.String = "actions/set-self-hosted-runners-in-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path`. @@ -15752,34 +15841,34 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId ) { self.org = org - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId } } - public var path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// List of runner IDs to add to the runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/json/runners`. public var runners: [Swift.Int] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - runners: List of runner IDs to add to the runner group. @@ -15791,17 +15880,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, - body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Path, + body: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Input.Body ) { self.path = path self.body = body @@ -15817,12 +15906,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsSetSelfHostedRunnersInGroupForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15849,7 +15946,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. - public enum actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsAddSelfHostedRunnerToGroupForOrg { public static let id: Swift.String = "actions/add-self-hosted-runner-to-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path`. @@ -15857,37 +15954,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_group_id = runner_group_id - self.runner_id = runner_id + self.runnerGroupId = runnerGroupId + self.runnerId = runnerId } } - public var path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path) { + public init(path: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Input.Path) { self.path = path } } @@ -15901,12 +15998,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsAddSelfHostedRunnerToGroupForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15933,7 +16038,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. - public enum actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org { + public enum ActionsRemoveSelfHostedRunnerFromGroupForOrg { public static let id: Swift.String = "actions/remove-self-hosted-runner-from-group-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path`. @@ -15941,37 +16046,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner group. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/runner_group_id`. - public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + public var runnerGroupId: Components.Parameters.RunnerGroupId /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_group_id: Unique identifier of the self-hosted runner group. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerGroupId: Unique identifier of the self-hosted runner group. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerGroupId: Components.Parameters.RunnerGroupId, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_group_id = runner_group_id - self.runner_id = runner_id + self.runnerGroupId = runnerGroupId + self.runnerId = runnerId } } - public var path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path) { + public init(path: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Input.Path) { self.path = path } } @@ -15985,12 +16090,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsRemoveSelfHostedRunnerFromGroupForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -16019,7 +16132,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/get(actions/list-self-hosted-runners-for-org)`. - public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org { + public enum ActionsListSelfHostedRunnersForOrg { public static let id: Swift.String = "actions/list-self-hosted-runners-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/path`. @@ -16027,16 +16140,16 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListSelfHostedRunnersForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/query`. public struct Query: Sendable, Hashable { /// The name of a self-hosted runner. @@ -16046,40 +16159,40 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - name: The name of a self-hosted runner. - /// - 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)." + /// - perPage: 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)." public init( name: Swift.String? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.name = name - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ActionsListSelfHostedRunnersForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListSelfHostedRunnersForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -16087,9 +16200,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListSelfHostedRunnersForOrg.Input.Path, + query: Operations.ActionsListSelfHostedRunnersForOrg.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -16101,49 +16214,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/content/json/runners`. - public var runners: [Components.Schemas.runner] - /// Creates a new `jsonPayload`. + public var runners: [Components.Schemas.Runner] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - runners: public init( - total_count: Swift.Int, - runners: [Components.Schemas.runner] + totalCount: Swift.Int, + runners: [Components.Schemas.Runner] ) { - self.total_count = total_count + self.totalCount = totalCount self.runners = runners } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case runners } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -16153,15 +16266,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Headers = .init(), + body: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -16172,12 +16285,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/get(actions/list-self-hosted-runners-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListSelfHostedRunnersForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -16231,7 +16344,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/downloads/get(actions/list-runner-applications-for-org)`. - public enum actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org { + public enum ActionsListRunnerApplicationsForOrg { public static let id: Swift.String = "actions/list-runner-applications-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/downloads/GET/path`. @@ -16239,36 +16352,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/downloads/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListRunnerApplicationsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/downloads/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListRunnerApplicationsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListRunnerApplicationsForOrg.Input.Path, + headers: Operations.ActionsListRunnerApplicationsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16279,12 +16392,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/downloads/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/downloads/GET/responses/200/content/application\/json`. - case json([Components.Schemas.runner_hyphen_application]) + case json([Components.Schemas.RunnerApplication]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.runner_hyphen_application] { + public var json: [Components.Schemas.RunnerApplication] { get throws { switch self { case let .json(body): @@ -16294,12 +16407,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsListRunnerApplicationsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsListRunnerApplicationsForOrg.Output.Ok.Body) { self.body = body } } @@ -16308,12 +16421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/downloads/get(actions/list-runner-applications-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsListRunnerApplicationsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsListRunnerApplicationsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -16367,7 +16480,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)`. - public enum actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org { + public enum ActionsGenerateRunnerJitconfigForOrg { public static let id: Swift.String = "actions/generate-runner-jitconfig-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/path`. @@ -16375,32 +16488,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the new runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/json/name`. @@ -16408,7 +16521,7 @@ public enum Operations { /// The ID of the runner group to register the runner to. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/json/runner_group_id`. - public var runner_group_id: Swift.Int + public var runnerGroupId: Swift.Int /// The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/json/labels`. @@ -16416,36 +16529,36 @@ public enum Operations { /// The working directory to be used for job execution, relative to the runner install directory. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/json/work_folder`. - public var work_folder: Swift.String? - /// Creates a new `jsonPayload`. + public var workFolder: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the new runner. - /// - runner_group_id: The ID of the runner group to register the runner to. + /// - runnerGroupId: The ID of the runner group to register the runner to. /// - labels: The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100. - /// - work_folder: The working directory to be used for job execution, relative to the runner install directory. + /// - workFolder: The working directory to be used for job execution, relative to the runner install directory. public init( name: Swift.String, - runner_group_id: Swift.Int, + runnerGroupId: Swift.Int, labels: [Swift.String], - work_folder: Swift.String? = nil + workFolder: Swift.String? = nil ) { self.name = name - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId self.labels = labels - self.work_folder = work_folder + self.workFolder = workFolder } public enum CodingKeys: String, CodingKey { case name - case runner_group_id + case runnerGroupId = "runner_group_id" case labels - case work_folder + case workFolder = "work_folder" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/generate-jitconfig/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -16453,9 +16566,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Path, + headers: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Headers = .init(), + body: Operations.ActionsGenerateRunnerJitconfigForOrg.Input.Body ) { self.path = path self.headers = headers @@ -16468,12 +16581,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Components.Responses.actions_runner_jitconfig) + case created(Components.Responses.ActionsRunnerJitconfig) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Components.Responses.actions_runner_jitconfig { + public var created: Components.Responses.ActionsRunnerJitconfig { get throws { switch self { case let .created(response): @@ -16491,12 +16604,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16514,12 +16627,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -16537,12 +16650,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-org)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -16602,7 +16715,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/registration-token/post(actions/create-registration-token-for-org)`. - public enum actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org { + public enum ActionsCreateRegistrationTokenForOrg { public static let id: Swift.String = "actions/create-registration-token-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/registration-token/POST/path`. @@ -16610,36 +16723,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/registration-token/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsCreateRegistrationTokenForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/registration-token/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsCreateRegistrationTokenForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsCreateRegistrationTokenForOrg.Input.Path, + headers: Operations.ActionsCreateRegistrationTokenForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16650,12 +16763,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/registration-token/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/registration-token/POST/responses/201/content/application\/json`. - case json(Components.Schemas.authentication_hyphen_token) + case json(Components.Schemas.AuthenticationToken) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authentication_hyphen_token { + public var json: Components.Schemas.AuthenticationToken { get throws { switch self { case let .json(body): @@ -16665,12 +16778,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.ActionsCreateRegistrationTokenForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.ActionsCreateRegistrationTokenForOrg.Output.Created.Body) { self.body = body } } @@ -16679,12 +16792,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/registration-token/post(actions/create-registration-token-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output.Created) + case created(Operations.ActionsCreateRegistrationTokenForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.ActionsCreateRegistrationTokenForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -16744,7 +16857,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/remove-token/post(actions/create-remove-token-for-org)`. - public enum actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org { + public enum ActionsCreateRemoveTokenForOrg { public static let id: Swift.String = "actions/create-remove-token-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/remove-token/POST/path`. @@ -16752,36 +16865,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/remove-token/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsCreateRemoveTokenForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/remove-token/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsCreateRemoveTokenForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsCreateRemoveTokenForOrg.Input.Path, + headers: Operations.ActionsCreateRemoveTokenForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16792,12 +16905,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/remove-token/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/remove-token/POST/responses/201/content/application\/json`. - case json(Components.Schemas.authentication_hyphen_token) + case json(Components.Schemas.AuthenticationToken) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authentication_hyphen_token { + public var json: Components.Schemas.AuthenticationToken { get throws { switch self { case let .json(body): @@ -16807,12 +16920,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.ActionsCreateRemoveTokenForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.ActionsCreateRemoveTokenForOrg.Output.Created.Body) { self.body = body } } @@ -16821,12 +16934,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/remove-token/post(actions/create-remove-token-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output.Created) + case created(Operations.ActionsCreateRemoveTokenForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.ActionsCreateRemoveTokenForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -16880,7 +16993,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-org)`. - public enum actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsGetSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/get-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/path`. @@ -16888,45 +17001,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16937,12 +17050,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.runner) + case json(Components.Schemas.Runner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.runner { + public var json: Components.Schemas.Runner { get throws { switch self { case let .json(body): @@ -16952,12 +17065,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ActionsGetSelfHostedRunnerForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ActionsGetSelfHostedRunnerForOrg.Output.Ok.Body) { self.body = body } } @@ -16966,12 +17079,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ActionsGetSelfHostedRunnerForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ActionsGetSelfHostedRunnerForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -17025,7 +17138,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`. - public enum actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org { + public enum ActionsDeleteSelfHostedRunnerFromOrg { public static let id: Swift.String = "actions/delete-self-hosted-runner-from-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/path`. @@ -17033,30 +17146,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input.Path + public var path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Input.Path) { + public init(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) { self.path = path } } @@ -17070,12 +17183,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Output.NoContent) + case noContent(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_org.Output.NoContent { + public var noContent: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -17104,7 +17225,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)`. - public enum actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsListLabelsForSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/list-labels-for-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/GET/path`. @@ -17112,45 +17233,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/GET/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsListLabelsForSelfHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17162,12 +17283,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -17185,12 +17306,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17244,7 +17365,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)`. - public enum actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsAddCustomLabelsToSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/add-custom-labels-to-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/path`. @@ -17252,46 +17373,46 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of the custom labels to add to the runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/requestBody/json/labels`. public var labels: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - labels: The names of the custom labels to add to the runner. @@ -17303,9 +17424,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -17313,9 +17434,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForOrg.Input.Body ) { self.path = path self.headers = headers @@ -17328,12 +17449,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -17351,12 +17472,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17374,12 +17495,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -17434,7 +17555,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)`. - public enum actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsSetCustomLabelsForSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/set-custom-labels-for-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/path`. @@ -17442,46 +17563,46 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/requestBody/json/labels`. public var labels: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - labels: The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels. @@ -17493,9 +17614,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -17503,9 +17624,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Body + path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Headers = .init(), + body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForOrg.Input.Body ) { self.path = path self.headers = headers @@ -17518,12 +17639,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -17541,12 +17662,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17564,12 +17685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -17624,7 +17745,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)`. - public enum actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/remove-all-custom-labels-from-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/DELETE/path`. @@ -17632,45 +17753,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17682,12 +17803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels_readonly) + case ok(Components.Responses.ActionsRunnerLabelsReadonly) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels_readonly { + public var ok: Components.Responses.ActionsRunnerLabelsReadonly { get throws { switch self { case let .ok(response): @@ -17705,12 +17826,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17768,7 +17889,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)`. - public enum actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org { + public enum ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg { public static let id: Swift.String = "actions/remove-custom-label-from-self-hosted-runner-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/{name}/DELETE/path`. @@ -17776,52 +17897,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/{name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/{name}/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// The name of a self-hosted runner's custom label. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/{name}/DELETE/path/name`. - public var name: Components.Parameters.runner_hyphen_label_hyphen_name + public var name: Components.Parameters.RunnerLabelName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. /// - name: The name of a self-hosted runner's custom label. public init( - org: Components.Parameters.org, - runner_id: Components.Parameters.runner_hyphen_id, - name: Components.Parameters.runner_hyphen_label_hyphen_name + org: Components.Parameters.Org, + runnerId: Components.Parameters.RunnerId, + name: Components.Parameters.RunnerLabelName ) { self.org = org - self.runner_id = runner_id + self.runnerId = runnerId self.name = name } } - public var path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/labels/{name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Path, - headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Path, + headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17833,12 +17954,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -17856,12 +17977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17879,12 +18000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -17939,7 +18060,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/get(actions/list-org-secrets)`. - public enum actions_sol_list_hyphen_org_hyphen_secrets { + public enum ActionsListOrgSecrets { public static let id: Swift.String = "actions/list-org-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/path`. @@ -17947,52 +18068,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Path + public var path: Operations.ActionsListOrgSecrets.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Query + public var query: Operations.ActionsListOrgSecrets.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Headers + public var headers: Operations.ActionsListOrgSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -18000,9 +18121,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() + path: Operations.ActionsListOrgSecrets.Input.Path, + query: Operations.ActionsListOrgSecrets.Input.Query = .init(), + headers: Operations.ActionsListOrgSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -18014,49 +18135,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.ActionsListOrgSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.organization_hyphen_actions_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.OrganizationActionsSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.organization_hyphen_actions_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.OrganizationActionsSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListOrgSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListOrgSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -18066,15 +18187,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + public var body: Operations.ActionsListOrgSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + headers: Operations.ActionsListOrgSecrets.Output.Ok.Headers = .init(), + body: Operations.ActionsListOrgSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -18085,12 +18206,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/get(actions/list-org-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok) + case ok(Operations.ActionsListOrgSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_org_hyphen_secrets.Output.Ok { + public var ok: Operations.ActionsListOrgSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -18145,7 +18266,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/public-key/get(actions/get-org-public-key)`. - public enum actions_sol_get_hyphen_org_hyphen_public_hyphen_key { + public enum ActionsGetOrgPublicKey { public static let id: Swift.String = "actions/get-org-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/public-key/GET/path`. @@ -18153,36 +18274,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/public-key/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path + public var path: Operations.ActionsGetOrgPublicKey.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.ActionsGetOrgPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.ActionsGetOrgPublicKey.Input.Path, + headers: Operations.ActionsGetOrgPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -18193,12 +18314,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_public_hyphen_key) + case json(Components.Schemas.ActionsPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_public_hyphen_key { + public var json: Components.Schemas.ActionsPublicKey { get throws { switch self { case let .json(body): @@ -18208,12 +18329,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.ActionsGetOrgPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.ActionsGetOrgPublicKey.Output.Ok.Body) { self.body = body } } @@ -18222,12 +18343,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/public-key/get(actions/get-org-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.ActionsGetOrgPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.ActionsGetOrgPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -18281,7 +18402,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/get(actions/get-org-secret)`. - public enum actions_sol_get_hyphen_org_hyphen_secret { + public enum ActionsGetOrgSecret { public static let id: Swift.String = "actions/get-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/path`. @@ -18289,45 +18410,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsGetOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.ActionsGetOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.ActionsGetOrgSecret.Input.Path, + headers: Operations.ActionsGetOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -18338,12 +18459,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_actions_hyphen_secret) + case json(Components.Schemas.OrganizationActionsSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_actions_hyphen_secret { + public var json: Components.Schemas.OrganizationActionsSecret { get throws { switch self { case let .json(body): @@ -18353,12 +18474,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.ActionsGetOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.ActionsGetOrgSecret.Output.Ok.Body) { self.body = body } } @@ -18367,12 +18488,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/get(actions/get-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.ActionsGetOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.ActionsGetOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -18427,7 +18548,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)`. - public enum actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret { + public enum ActionsCreateOrUpdateOrgSecret { public static let id: Swift.String = "actions/create-or-update-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/path`. @@ -18435,53 +18556,53 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsCreateOrUpdateOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.ActionsCreateOrUpdateOrgSecret.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String + public var encryptedValue: Swift.String /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -18489,40 +18610,40 @@ public enum Operations { /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json/visibility`. - public var visibility: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.ActionsCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload /// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. /// - visibility: Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - /// - selected_repository_ids: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. + /// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. public init( - encrypted_value: Swift.String, - key_id: Swift.String, - visibility: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload, - selected_repository_ids: [Swift.Int]? = nil + encryptedValue: Swift.String, + keyId: Swift.String, + visibility: Operations.ActionsCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload, + selectedRepositoryIds: [Swift.Int]? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.ActionsCreateOrUpdateOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.ActionsCreateOrUpdateOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -18530,9 +18651,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + path: Operations.ActionsCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateOrgSecret.Input.Body ) { self.path = path self.headers = headers @@ -18544,12 +18665,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -18559,12 +18680,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + public var body: Operations.ActionsCreateOrUpdateOrgSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body) { + public init(body: Operations.ActionsCreateOrUpdateOrgSecret.Output.Created.Body) { self.body = body } } @@ -18573,12 +18694,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created) + case created(Operations.ActionsCreateOrUpdateOrgSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created { + public var created: Operations.ActionsCreateOrUpdateOrgSecret.Output.Created { get throws { switch self { case let .created(response): @@ -18600,12 +18721,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsCreateOrUpdateOrgSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/put(actions/create-or-update-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsCreateOrUpdateOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18659,7 +18788,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)`. - public enum actions_sol_delete_hyphen_org_hyphen_secret { + public enum ActionsDeleteOrgSecret { public static let id: Swift.String = "actions/delete-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/DELETE/path`. @@ -18667,30 +18796,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsDeleteOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.ActionsDeleteOrgSecret.Input.Path) { self.path = path } } @@ -18704,12 +18833,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsDeleteOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/delete(actions/delete-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsDeleteOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18739,7 +18876,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/get(actions/list-selected-repos-for-org-secret)`. - public enum actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum ActionsListSelectedReposForOrgSecret { public static let id: Swift.String = "actions/list-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/path`. @@ -18747,61 +18884,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsListSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query + public var query: Operations.ActionsListSelectedReposForOrgSecret.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.ActionsListSelectedReposForOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -18809,9 +18946,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.ActionsListSelectedReposForOrgSecret.Input.Path, + query: Operations.ActionsListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.ActionsListSelectedReposForOrgSecret.Input.Headers = .init() ) { self.path = path self.query = query @@ -18823,35 +18960,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Int, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -18861,12 +18998,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.ActionsListSelectedReposForOrgSecret.Output.Ok.Body) { self.body = body } } @@ -18875,12 +19012,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/get(actions/list-selected-repos-for-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.ActionsListSelectedReposForOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.ActionsListSelectedReposForOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -18936,7 +19073,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)`. - public enum actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum ActionsSetSelectedReposForOrgSecret { public static let id: Swift.String = "actions/set-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/path`. @@ -18944,56 +19081,56 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsSetSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.ActionsSetSelectedReposForOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.ActionsSetSelectedReposForOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + path: Operations.ActionsSetSelectedReposForOrgSecret.Input.Path, + body: Operations.ActionsSetSelectedReposForOrgSecret.Input.Body ) { self.path = path self.body = body @@ -19009,12 +19146,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsSetSelectedReposForOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/put(actions/set-selected-repos-for-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsSetSelectedReposForOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19045,7 +19190,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)`. - public enum actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret { + public enum ActionsAddSelectedRepoToOrgSecret { public static let id: Swift.String = "actions/add-selected-repo-to-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/PUT/path`. @@ -19053,35 +19198,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsAddSelectedRepoToOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.ActionsAddSelectedRepoToOrgSecret.Input.Path) { self.path = path } } @@ -19095,12 +19240,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsAddSelectedRepoToOrgSecret.Output.NoContent) + /// No Content when repository was added to the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsAddSelectedRepoToOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19122,12 +19275,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.ActionsAddSelectedRepoToOrgSecret.Output.Conflict) + /// Conflict when visibility type is not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.ActionsAddSelectedRepoToOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -19158,7 +19319,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)`. - public enum actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret { + public enum ActionsRemoveSelectedRepoFromOrgSecret { public static let id: Swift.String = "actions/remove-selected-repo-from-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/DELETE/path`. @@ -19166,35 +19327,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Input.Path) { self.path = path } } @@ -19208,12 +19369,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output.NoContent) + /// Response when repository was removed from the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19235,12 +19404,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output.Conflict) + /// Conflict when visibility type not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.ActionsRemoveSelectedRepoFromOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -19269,7 +19446,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/get(actions/list-org-variables)`. - public enum actions_sol_list_hyphen_org_hyphen_variables { + public enum ActionsListOrgVariables { public static let id: Swift.String = "actions/list-org-variables" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/path`. @@ -19277,52 +19454,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Path + public var path: Operations.ActionsListOrgVariables.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/query`. public struct Query: Sendable, Hashable { /// The number of results per page (max 30). 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/query/per_page`. - public var per_page: Components.Parameters.variables_hyphen_per_hyphen_page? + public var perPage: Components.Parameters.VariablesPerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - per_page: The number of results per page (max 30). 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)." + /// - perPage: The number of results per page (max 30). 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)." public init( - per_page: Components.Parameters.variables_hyphen_per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.VariablesPerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Query + public var query: Operations.ActionsListOrgVariables.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Headers + public var headers: Operations.ActionsListOrgVariables.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -19330,9 +19507,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Input.Headers = .init() + path: Operations.ActionsListOrgVariables.Input.Path, + query: Operations.ActionsListOrgVariables.Input.Query = .init(), + headers: Operations.ActionsListOrgVariables.Input.Headers = .init() ) { self.path = path self.query = query @@ -19344,49 +19521,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Headers + public var headers: Operations.ActionsListOrgVariables.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/content/json/variables`. - public var variables: [Components.Schemas.organization_hyphen_actions_hyphen_variable] - /// Creates a new `jsonPayload`. + public var variables: [Components.Schemas.OrganizationActionsVariable] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - variables: public init( - total_count: Swift.Int, - variables: [Components.Schemas.organization_hyphen_actions_hyphen_variable] + totalCount: Swift.Int, + variables: [Components.Schemas.OrganizationActionsVariable] ) { - self.total_count = total_count + self.totalCount = totalCount self.variables = variables } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case variables } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListOrgVariables.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListOrgVariables.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -19396,15 +19573,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body + public var body: Operations.ActionsListOrgVariables.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok.Body + headers: Operations.ActionsListOrgVariables.Output.Ok.Headers = .init(), + body: Operations.ActionsListOrgVariables.Output.Ok.Body ) { self.headers = headers self.body = body @@ -19415,12 +19592,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/get(actions/list-org-variables)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok) + case ok(Operations.ActionsListOrgVariables.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_org_hyphen_variables.Output.Ok { + public var ok: Operations.ActionsListOrgVariables.Output.Ok { get throws { switch self { case let .ok(response): @@ -19474,7 +19651,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/actions/variables`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/post(actions/create-org-variable)`. - public enum actions_sol_create_hyphen_org_hyphen_variable { + public enum ActionsCreateOrgVariable { public static let id: Swift.String = "actions/create-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/path`. @@ -19482,32 +19659,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsCreateOrgVariable.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Headers + public var headers: Operations.ActionsCreateOrgVariable.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/json/name`. @@ -19519,7 +19696,7 @@ public enum Operations { /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -19527,40 +19704,40 @@ public enum Operations { /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/json/visibility`. - public var visibility: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.ActionsCreateOrgVariable.Input.Body.JsonPayload.VisibilityPayload /// An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. /// - value: The value of the variable. /// - visibility: The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. - /// - selected_repository_ids: An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. + /// - selectedRepositoryIds: An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. public init( name: Swift.String, value: Swift.String, - visibility: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body.jsonPayload.visibilityPayload, - selected_repository_ids: [Swift.Int]? = nil + visibility: Operations.ActionsCreateOrgVariable.Input.Body.JsonPayload.VisibilityPayload, + selectedRepositoryIds: [Swift.Int]? = nil ) { self.name = name self.value = value self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { case name case value case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsCreateOrgVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body + public var body: Operations.ActionsCreateOrgVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -19568,9 +19745,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Input.Body + path: Operations.ActionsCreateOrgVariable.Input.Path, + headers: Operations.ActionsCreateOrgVariable.Input.Headers = .init(), + body: Operations.ActionsCreateOrgVariable.Input.Body ) { self.path = path self.headers = headers @@ -19582,12 +19759,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -19597,12 +19774,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Output.Created.Body + public var body: Operations.ActionsCreateOrgVariable.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_org_hyphen_variable.Output.Created.Body) { + public init(body: Operations.ActionsCreateOrgVariable.Output.Created.Body) { self.body = body } } @@ -19611,12 +19788,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/post(actions/create-org-variable)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_org_hyphen_variable.Output.Created) + case created(Operations.ActionsCreateOrgVariable.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_org_hyphen_variable.Output.Created { + public var created: Operations.ActionsCreateOrgVariable.Output.Created { get throws { switch self { case let .created(response): @@ -19670,7 +19847,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/get(actions/get-org-variable)`. - public enum actions_sol_get_hyphen_org_hyphen_variable { + public enum ActionsGetOrgVariable { public static let id: Swift.String = "actions/get-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/path`. @@ -19678,45 +19855,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name + org: Components.Parameters.Org, + name: Components.Parameters.VariableName ) { self.org = org self.name = name } } - public var path: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsGetOrgVariable.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Headers + public var headers: Operations.ActionsGetOrgVariable.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_org_hyphen_variable.Input.Headers = .init() + path: Operations.ActionsGetOrgVariable.Input.Path, + headers: Operations.ActionsGetOrgVariable.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -19727,12 +19904,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_actions_hyphen_variable) + case json(Components.Schemas.OrganizationActionsVariable) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_actions_hyphen_variable { + public var json: Components.Schemas.OrganizationActionsVariable { get throws { switch self { case let .json(body): @@ -19742,12 +19919,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_org_hyphen_variable.Output.Ok.Body + public var body: Operations.ActionsGetOrgVariable.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_org_hyphen_variable.Output.Ok.Body) { + public init(body: Operations.ActionsGetOrgVariable.Output.Ok.Body) { self.body = body } } @@ -19756,12 +19933,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/get(actions/get-org-variable)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_org_hyphen_variable.Output.Ok) + case ok(Operations.ActionsGetOrgVariable.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_org_hyphen_variable.Output.Ok { + public var ok: Operations.ActionsGetOrgVariable.Output.Ok { get throws { switch self { case let .ok(response): @@ -19815,7 +19992,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)`. - public enum actions_sol_update_hyphen_org_hyphen_variable { + public enum ActionsUpdateOrgVariable { public static let id: Swift.String = "actions/update-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/path`. @@ -19823,29 +20000,29 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name + org: Components.Parameters.Org, + name: Components.Parameters.VariableName ) { self.org = org self.name = name } } - public var path: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsUpdateOrgVariable.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/json/name`. @@ -19857,7 +20034,7 @@ public enum Operations { /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -19865,48 +20042,48 @@ public enum Operations { /// The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/json/visibility`. - public var visibility: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.ActionsUpdateOrgVariable.Input.Body.JsonPayload.VisibilityPayload? /// An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. /// - value: The value of the variable. /// - visibility: The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable. - /// - selected_repository_ids: An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. + /// - selectedRepositoryIds: An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`. public init( name: Swift.String? = nil, value: Swift.String? = nil, - visibility: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body.jsonPayload.visibilityPayload? = nil, - selected_repository_ids: [Swift.Int]? = nil + visibility: Operations.ActionsUpdateOrgVariable.Input.Body.JsonPayload.VisibilityPayload? = nil, + selectedRepositoryIds: [Swift.Int]? = nil ) { self.name = name self.value = value self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { case name case value case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/PATCH/requestBody/content/application\/json`. - case json(Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsUpdateOrgVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body + public var body: Operations.ActionsUpdateOrgVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_org_hyphen_variable.Input.Body + path: Operations.ActionsUpdateOrgVariable.Input.Path, + body: Operations.ActionsUpdateOrgVariable.Input.Body ) { self.path = path self.body = body @@ -19922,12 +20099,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_update_hyphen_org_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsUpdateOrgVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/patch(actions/update-org-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_update_hyphen_org_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsUpdateOrgVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19956,7 +20141,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)`. - public enum actions_sol_delete_hyphen_org_hyphen_variable { + public enum ActionsDeleteOrgVariable { public static let id: Swift.String = "actions/delete-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/DELETE/path`. @@ -19964,30 +20149,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/DELETE/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name + org: Components.Parameters.Org, + name: Components.Parameters.VariableName ) { self.org = org self.name = name } } - public var path: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsDeleteOrgVariable.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Input.Path) { + public init(path: Operations.ActionsDeleteOrgVariable.Input.Path) { self.path = path } } @@ -20001,12 +20186,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_org_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsDeleteOrgVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/delete(actions/delete-org-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_org_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsDeleteOrgVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -20036,7 +20229,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)`. - public enum actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable { + public enum ActionsListSelectedReposForOrgVariable { public static let id: Swift.String = "actions/list-selected-repos-for-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/path`. @@ -20044,61 +20237,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name + org: Components.Parameters.Org, + name: Components.Parameters.VariableName ) { self.org = org self.name = name } } - public var path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsListSelectedReposForOrgVariable.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Query + public var query: Operations.ActionsListSelectedReposForOrgVariable.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Headers + public var headers: Operations.ActionsListSelectedReposForOrgVariable.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -20106,9 +20299,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path, - query: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Headers = .init() + path: Operations.ActionsListSelectedReposForOrgVariable.Input.Path, + query: Operations.ActionsListSelectedReposForOrgVariable.Input.Query = .init(), + headers: Operations.ActionsListSelectedReposForOrgVariable.Input.Headers = .init() ) { self.path = path self.query = query @@ -20120,35 +20313,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Int, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -20158,12 +20351,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body + public var body: Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok.Body) { + public init(body: Operations.ActionsListSelectedReposForOrgVariable.Output.Ok.Body) { self.body = body } } @@ -20172,12 +20365,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok) + case ok(Operations.ActionsListSelectedReposForOrgVariable.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Ok { + public var ok: Operations.ActionsListSelectedReposForOrgVariable.Output.Ok { get throws { switch self { case let .ok(response): @@ -20199,12 +20392,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Conflict) + case conflict(Operations.ActionsListSelectedReposForOrgVariable.Output.Conflict) + /// Response when the visibility of the variable is not set to `selected` + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/get(actions/list-selected-repos-for-org-variable)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Conflict { + public var conflict: Operations.ActionsListSelectedReposForOrgVariable.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -20260,7 +20461,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)`. - public enum actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable { + public enum ActionsSetSelectedReposForOrgVariable { public static let id: Swift.String = "actions/set-selected-repos-for-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/path`. @@ -20268,56 +20469,56 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name + org: Components.Parameters.Org, + name: Components.Parameters.VariableName ) { self.org = org self.name = name } } - public var path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsSetSelectedReposForOrgVariable.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The IDs of the repositories that can access the organization variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: The IDs of the repositories that can access the organization variable. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: The IDs of the repositories that can access the organization variable. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsSetSelectedReposForOrgVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Body + public var body: Operations.ActionsSetSelectedReposForOrgVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Path, - body: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Input.Body + path: Operations.ActionsSetSelectedReposForOrgVariable.Input.Path, + body: Operations.ActionsSetSelectedReposForOrgVariable.Input.Body ) { self.path = path self.body = body @@ -20333,12 +20534,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsSetSelectedReposForOrgVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsSetSelectedReposForOrgVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -20360,12 +20569,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Conflict) + case conflict(Operations.ActionsSetSelectedReposForOrgVariable.Output.Conflict) + /// Response when the visibility of the variable is not set to `selected` + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/put(actions/set-selected-repos-for-org-variable)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_variable.Output.Conflict { + public var conflict: Operations.ActionsSetSelectedReposForOrgVariable.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -20395,7 +20612,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)`. - public enum actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable { + public enum ActionsAddSelectedRepoToOrgVariable { public static let id: Swift.String = "actions/add-selected-repo-to-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/PUT/path`. @@ -20403,35 +20620,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/PUT/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. - /// - repository_id: + /// - repositoryId: public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + name: Components.Parameters.VariableName, + repositoryId: Swift.Int ) { self.org = org self.name = name - self.repository_id = repository_id + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsAddSelectedRepoToOrgVariable.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Input.Path) { + public init(path: Operations.ActionsAddSelectedRepoToOrgVariable.Input.Path) { self.path = path } } @@ -20445,12 +20662,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsAddSelectedRepoToOrgVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsAddSelectedRepoToOrgVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -20472,12 +20697,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output.Conflict) + case conflict(Operations.ActionsAddSelectedRepoToOrgVariable.Output.Conflict) + /// Response when the visibility of the variable is not set to `selected` + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/put(actions/add-selected-repo-to-org-variable)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_variable.Output.Conflict { + public var conflict: Operations.ActionsAddSelectedRepoToOrgVariable.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -20508,7 +20741,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)`. - public enum actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable { + public enum ActionsRemoveSelectedRepoFromOrgVariable { public static let id: Swift.String = "actions/remove-selected-repo-from-org-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/DELETE/path`. @@ -20516,35 +20749,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the variable. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/DELETE/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// - Remark: Generated from `#/paths/orgs/{org}/actions/variables/{name}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - name: The name of the variable. - /// - repository_id: + /// - repositoryId: public init( - org: Components.Parameters.org, - name: Components.Parameters.variable_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + name: Components.Parameters.VariableName, + repositoryId: Swift.Int ) { self.org = org self.name = name - self.repository_id = repository_id + self.repositoryId = repositoryId } } - public var path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input.Path + public var path: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Input.Path) { + public init(path: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Input.Path) { self.path = path } } @@ -20558,12 +20791,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -20585,12 +20826,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output.Conflict) + case conflict(Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output.Conflict) + /// Response when the visibility of the variable is not set to `selected` + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/variables/{name}/repositories/{repository_id}/delete(actions/remove-selected-repo-from-org-variable)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_variable.Output.Conflict { + public var conflict: Operations.ActionsRemoveSelectedRepoFromOrgVariable.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -20619,7 +20868,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/get(actions/list-artifacts-for-repo)`. - public enum actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo { + public enum ActionsListArtifactsForRepo { public static let id: Swift.String = "actions/list-artifacts-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/path`. @@ -20627,68 +20876,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsListArtifactsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The name field of an artifact. When specified, only artifacts with this name will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/query/name`. - public var name: Components.Parameters.artifact_hyphen_name? + public var name: Components.Parameters.ArtifactName? /// 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)." + /// - perPage: 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)." /// - name: The name field of an artifact. When specified, only artifacts with this name will be returned. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - name: Components.Parameters.artifact_hyphen_name? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + name: Components.Parameters.ArtifactName? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.name = name } } - public var query: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ActionsListArtifactsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsListArtifactsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -20696,9 +20945,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsListArtifactsForRepo.Input.Path, + query: Operations.ActionsListArtifactsForRepo.Input.Query = .init(), + headers: Operations.ActionsListArtifactsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -20710,49 +20959,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ActionsListArtifactsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/content/json/artifacts`. - public var artifacts: [Components.Schemas.artifact] - /// Creates a new `jsonPayload`. + public var artifacts: [Components.Schemas.Artifact] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - artifacts: public init( - total_count: Swift.Int, - artifacts: [Components.Schemas.artifact] + totalCount: Swift.Int, + artifacts: [Components.Schemas.Artifact] ) { - self.total_count = total_count + self.totalCount = totalCount self.artifacts = artifacts } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case artifacts } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListArtifactsForRepo.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListArtifactsForRepo.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -20762,15 +21011,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsListArtifactsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ActionsListArtifactsForRepo.Output.Ok.Headers = .init(), + body: Operations.ActionsListArtifactsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -20781,12 +21030,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/get(actions/list-artifacts-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsListArtifactsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_artifacts_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsListArtifactsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -20840,7 +21089,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/get(actions/get-artifact)`. - public enum actions_sol_get_hyphen_artifact { + public enum ActionsGetArtifact { public static let id: Swift.String = "actions/get-artifact" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/path`. @@ -20848,52 +21097,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the artifact. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/path/artifact_id`. - public var artifact_id: Components.Parameters.artifact_hyphen_id + public var artifactId: Components.Parameters.ArtifactId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - artifact_id: The unique identifier of the artifact. + /// - artifactId: The unique identifier of the artifact. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - artifact_id: Components.Parameters.artifact_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + artifactId: Components.Parameters.ArtifactId ) { self.owner = owner self.repo = repo - self.artifact_id = artifact_id + self.artifactId = artifactId } } - public var path: Operations.actions_sol_get_hyphen_artifact.Input.Path + public var path: Operations.ActionsGetArtifact.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_artifact.Input.Headers + public var headers: Operations.ActionsGetArtifact.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_artifact.Input.Path, - headers: Operations.actions_sol_get_hyphen_artifact.Input.Headers = .init() + path: Operations.ActionsGetArtifact.Input.Path, + headers: Operations.ActionsGetArtifact.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -20904,12 +21153,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.artifact) + case json(Components.Schemas.Artifact) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.artifact { + public var json: Components.Schemas.Artifact { get throws { switch self { case let .json(body): @@ -20919,12 +21168,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_artifact.Output.Ok.Body + public var body: Operations.ActionsGetArtifact.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_artifact.Output.Ok.Body) { + public init(body: Operations.ActionsGetArtifact.Output.Ok.Body) { self.body = body } } @@ -20933,12 +21182,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/get(actions/get-artifact)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_artifact.Output.Ok) + case ok(Operations.ActionsGetArtifact.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_artifact.Output.Ok { + public var ok: Operations.ActionsGetArtifact.Output.Ok { get throws { switch self { case let .ok(response): @@ -20989,7 +21238,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)`. - public enum actions_sol_delete_hyphen_artifact { + public enum ActionsDeleteArtifact { public static let id: Swift.String = "actions/delete-artifact" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/DELETE/path`. @@ -20997,37 +21246,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the artifact. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/DELETE/path/artifact_id`. - public var artifact_id: Components.Parameters.artifact_hyphen_id + public var artifactId: Components.Parameters.ArtifactId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - artifact_id: The unique identifier of the artifact. + /// - artifactId: The unique identifier of the artifact. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - artifact_id: Components.Parameters.artifact_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + artifactId: Components.Parameters.ArtifactId ) { self.owner = owner self.repo = repo - self.artifact_id = artifact_id + self.artifactId = artifactId } } - public var path: Operations.actions_sol_delete_hyphen_artifact.Input.Path + public var path: Operations.ActionsDeleteArtifact.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_artifact.Input.Path) { + public init(path: Operations.ActionsDeleteArtifact.Input.Path) { self.path = path } } @@ -21041,12 +21290,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_artifact.Output.NoContent) + case noContent(Operations.ActionsDeleteArtifact.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/delete(actions/delete-artifact)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_artifact.Output.NoContent { + public var noContent: Operations.ActionsDeleteArtifact.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -21074,7 +21331,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)`. - public enum actions_sol_download_hyphen_artifact { + public enum ActionsDownloadArtifact { public static let id: Swift.String = "actions/download-artifact" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/path`. @@ -21082,57 +21339,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the artifact. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/path/artifact_id`. - public var artifact_id: Components.Parameters.artifact_hyphen_id + public var artifactId: Components.Parameters.ArtifactId /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/path/archive_format`. - public var archive_format: Swift.String + public var archiveFormat: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - artifact_id: The unique identifier of the artifact. - /// - archive_format: + /// - artifactId: The unique identifier of the artifact. + /// - archiveFormat: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - artifact_id: Components.Parameters.artifact_hyphen_id, - archive_format: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + artifactId: Components.Parameters.ArtifactId, + archiveFormat: Swift.String ) { self.owner = owner self.repo = repo - self.artifact_id = artifact_id - self.archive_format = archive_format + self.artifactId = artifactId + self.archiveFormat = archiveFormat } } - public var path: Operations.actions_sol_download_hyphen_artifact.Input.Path + public var path: Operations.ActionsDownloadArtifact.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_download_hyphen_artifact.Input.Headers + public var headers: Operations.ActionsDownloadArtifact.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_download_hyphen_artifact.Input.Path, - headers: Operations.actions_sol_download_hyphen_artifact.Input.Headers = .init() + path: Operations.ActionsDownloadArtifact.Input.Path, + headers: Operations.ActionsDownloadArtifact.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -21143,22 +21400,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/GET/responses/302/headers/Location`. - public var Location: Components.Headers.location? + public var location: Components.Headers.Location? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Components.Headers.location? = nil) { - self.Location = Location + /// - location: + public init(location: Components.Headers.Location? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.actions_sol_download_hyphen_artifact.Output.Found.Headers + public var headers: Operations.ActionsDownloadArtifact.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.actions_sol_download_hyphen_artifact.Output.Found.Headers = .init()) { + public init(headers: Operations.ActionsDownloadArtifact.Output.Found.Headers = .init()) { self.headers = headers } } @@ -21167,12 +21424,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.actions_sol_download_hyphen_artifact.Output.Found) + case found(Operations.ActionsDownloadArtifact.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.actions_sol_download_hyphen_artifact.Output.Found { + public var found: Operations.ActionsDownloadArtifact.Output.Found { get throws { switch self { case let .found(response): @@ -21190,12 +21447,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}/get(actions/download-artifact)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -21250,7 +21507,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/cache/usage`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/cache/usage/get(actions/get-actions-cache-usage)`. - public enum actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage { + public enum ActionsGetActionsCacheUsage { public static let id: Swift.String = "actions/get-actions-cache-usage" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/path`. @@ -21258,45 +21515,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Path + public var path: Operations.ActionsGetActionsCacheUsage.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Headers + public var headers: Operations.ActionsGetActionsCacheUsage.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Input.Headers = .init() + path: Operations.ActionsGetActionsCacheUsage.Input.Path, + headers: Operations.ActionsGetActionsCacheUsage.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -21307,12 +21564,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/cache/usage/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository) + case json(Components.Schemas.ActionsCacheUsageByRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_cache_hyphen_usage_hyphen_by_hyphen_repository { + public var json: Components.Schemas.ActionsCacheUsageByRepository { get throws { switch self { case let .json(body): @@ -21322,12 +21579,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output.Ok.Body + public var body: Operations.ActionsGetActionsCacheUsage.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output.Ok.Body) { + public init(body: Operations.ActionsGetActionsCacheUsage.Output.Ok.Body) { self.body = body } } @@ -21336,12 +21593,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/cache/usage/get(actions/get-actions-cache-usage)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output.Ok) + case ok(Operations.ActionsGetActionsCacheUsage.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_usage.Output.Ok { + public var ok: Operations.ActionsGetActionsCacheUsage.Output.Ok { get throws { switch self { case let .ok(response): @@ -21393,7 +21650,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/get(actions/get-actions-cache-list)`. - public enum actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list { + public enum ActionsGetActionsCacheList { public static let id: Swift.String = "actions/get-actions-cache-list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/path`. @@ -21401,80 +21658,80 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Path + public var path: Operations.ActionsGetActionsCacheList.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/ref`. - public var ref: Components.Parameters.actions_hyphen_cache_hyphen_git_hyphen_ref_hyphen_full? + public var ref: Components.Parameters.ActionsCacheGitRefFull? /// An explicit key or prefix for identifying the cache /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/key`. - public var key: Components.Parameters.actions_hyphen_cache_hyphen_key? + public var key: Components.Parameters.ActionsCacheKey? /// - Remark: Generated from `#/components/parameters/actions-cache-list-sort`. - @frozen public enum actions_hyphen_cache_hyphen_list_hyphen_sort: String, Codable, Hashable, Sendable { - case created_at = "created_at" - case last_accessed_at = "last_accessed_at" - case size_in_bytes = "size_in_bytes" + @frozen public enum ActionsCacheListSort: String, Codable, Hashable, Sendable, CaseIterable { + case createdAt = "created_at" + case lastAccessedAt = "last_accessed_at" + case sizeInBytes = "size_in_bytes" } /// The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/sort`. - public var sort: Components.Parameters.actions_hyphen_cache_hyphen_list_hyphen_sort? + public var sort: Components.Parameters.ActionsCacheListSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." + /// - perPage: 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)." /// - ref: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. /// - key: An explicit key or prefix for identifying the cache /// - sort: The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes. /// - direction: The direction to sort the results by. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - ref: Components.Parameters.actions_hyphen_cache_hyphen_git_hyphen_ref_hyphen_full? = nil, - key: Components.Parameters.actions_hyphen_cache_hyphen_key? = nil, - sort: Components.Parameters.actions_hyphen_cache_hyphen_list_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + ref: Components.Parameters.ActionsCacheGitRefFull? = nil, + key: Components.Parameters.ActionsCacheKey? = nil, + sort: Components.Parameters.ActionsCacheListSort? = nil, + direction: Components.Parameters.Direction? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.ref = ref self.key = key @@ -21482,19 +21739,19 @@ public enum Operations { self.direction = direction } } - public var query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Query + public var query: Operations.ActionsGetActionsCacheList.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Headers + public var headers: Operations.ActionsGetActionsCacheList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -21502,9 +21759,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Path, - query: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Input.Headers = .init() + path: Operations.ActionsGetActionsCacheList.Input.Path, + query: Operations.ActionsGetActionsCacheList.Input.Query = .init(), + headers: Operations.ActionsGetActionsCacheList.Input.Headers = .init() ) { self.path = path self.query = query @@ -21516,26 +21773,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Headers + public var headers: Operations.ActionsGetActionsCacheList.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_cache_hyphen_list) + case json(Components.Schemas.ActionsCacheList) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_cache_hyphen_list { + public var json: Components.Schemas.ActionsCacheList { get throws { switch self { case let .json(body): @@ -21545,15 +21802,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Body + public var body: Operations.ActionsGetActionsCacheList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Headers = .init(), - body: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok.Body + headers: Operations.ActionsGetActionsCacheList.Output.Ok.Headers = .init(), + body: Operations.ActionsGetActionsCacheList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -21564,12 +21821,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/get(actions/get-actions-cache-list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok) + case ok(Operations.ActionsGetActionsCacheList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_actions_hyphen_cache_hyphen_list.Output.Ok { + public var ok: Operations.ActionsGetActionsCacheList.Output.Ok { get throws { switch self { case let .ok(response): @@ -21621,7 +21878,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/delete(actions/delete-actions-cache-by-key)`. - public enum actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key { + public enum ActionsDeleteActionsCacheByKey { public static let id: Swift.String = "actions/delete-actions-cache-by-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/path`. @@ -21629,61 +21886,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Path + public var path: Operations.ActionsDeleteActionsCacheByKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/query`. public struct Query: Sendable, Hashable { /// A key for identifying the cache. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/query/key`. - public var key: Components.Parameters.actions_hyphen_cache_hyphen_key_hyphen_required + public var key: Components.Parameters.ActionsCacheKeyRequired /// The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/query/ref`. - public var ref: Components.Parameters.actions_hyphen_cache_hyphen_git_hyphen_ref_hyphen_full? + public var ref: Components.Parameters.ActionsCacheGitRefFull? /// Creates a new `Query`. /// /// - Parameters: /// - key: A key for identifying the cache. /// - ref: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. public init( - key: Components.Parameters.actions_hyphen_cache_hyphen_key_hyphen_required, - ref: Components.Parameters.actions_hyphen_cache_hyphen_git_hyphen_ref_hyphen_full? = nil + key: Components.Parameters.ActionsCacheKeyRequired, + ref: Components.Parameters.ActionsCacheGitRefFull? = nil ) { self.key = key self.ref = ref } } - public var query: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Query + public var query: Operations.ActionsDeleteActionsCacheByKey.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Headers + public var headers: Operations.ActionsDeleteActionsCacheByKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -21691,9 +21948,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Path, - query: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Query, - headers: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Input.Headers = .init() + path: Operations.ActionsDeleteActionsCacheByKey.Input.Path, + query: Operations.ActionsDeleteActionsCacheByKey.Input.Query, + headers: Operations.ActionsDeleteActionsCacheByKey.Input.Headers = .init() ) { self.path = path self.query = query @@ -21705,12 +21962,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_cache_hyphen_list) + case json(Components.Schemas.ActionsCacheList) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_cache_hyphen_list { + public var json: Components.Schemas.ActionsCacheList { get throws { switch self { case let .json(body): @@ -21720,12 +21977,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output.Ok.Body + public var body: Operations.ActionsDeleteActionsCacheByKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output.Ok.Body) { + public init(body: Operations.ActionsDeleteActionsCacheByKey.Output.Ok.Body) { self.body = body } } @@ -21734,12 +21991,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/delete(actions/delete-actions-cache-by-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output.Ok) + case ok(Operations.ActionsDeleteActionsCacheByKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_key.Output.Ok { + public var ok: Operations.ActionsDeleteActionsCacheByKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -21791,7 +22048,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)`. - public enum actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id { + public enum ActionsDeleteActionsCacheById { public static let id: Swift.String = "actions/delete-actions-cache-by-id" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/{cache_id}/DELETE/path`. @@ -21799,37 +22056,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/{cache_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/{cache_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the GitHub Actions cache. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/caches/{cache_id}/DELETE/path/cache_id`. - public var cache_id: Components.Parameters.cache_hyphen_id + public var cacheId: Components.Parameters.CacheId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - cache_id: The unique identifier of the GitHub Actions cache. + /// - cacheId: The unique identifier of the GitHub Actions cache. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - cache_id: Components.Parameters.cache_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + cacheId: Components.Parameters.CacheId ) { self.owner = owner self.repo = repo - self.cache_id = cache_id + self.cacheId = cacheId } } - public var path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input.Path + public var path: Operations.ActionsDeleteActionsCacheById.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Input.Path) { + public init(path: Operations.ActionsDeleteActionsCacheById.Input.Path) { self.path = path } } @@ -21843,12 +22100,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Output.NoContent) + case noContent(Operations.ActionsDeleteActionsCacheById.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/caches/{cache_id}/delete(actions/delete-actions-cache-by-id)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_actions_hyphen_cache_hyphen_by_hyphen_id.Output.NoContent { + public var noContent: Operations.ActionsDeleteActionsCacheById.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -21877,7 +22142,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/get(actions/get-job-for-workflow-run)`. - public enum actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run { + public enum ActionsGetJobForWorkflowRun { public static let id: Swift.String = "actions/get-job-for-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/path`. @@ -21885,52 +22150,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the job. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/path/job_id`. - public var job_id: Components.Parameters.job_hyphen_id + public var jobId: Components.Parameters.JobId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - job_id: The unique identifier of the job. + /// - jobId: The unique identifier of the job. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - job_id: Components.Parameters.job_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + jobId: Components.Parameters.JobId ) { self.owner = owner self.repo = repo - self.job_id = job_id + self.jobId = jobId } } - public var path: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsGetJobForWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsGetJobForWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsGetJobForWorkflowRun.Input.Path, + headers: Operations.ActionsGetJobForWorkflowRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -21941,12 +22206,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.job) + case json(Components.Schemas.Job) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.job { + public var json: Components.Schemas.Job { get throws { switch self { case let .json(body): @@ -21956,12 +22221,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsGetJobForWorkflowRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body) { + public init(body: Operations.ActionsGetJobForWorkflowRun.Output.Ok.Body) { self.body = body } } @@ -21970,12 +22235,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/get(actions/get-job-for-workflow-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok) + case ok(Operations.ActionsGetJobForWorkflowRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok { + public var ok: Operations.ActionsGetJobForWorkflowRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -22030,7 +22295,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/logs/get(actions/download-job-logs-for-workflow-run)`. - public enum actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run { + public enum ActionsDownloadJobLogsForWorkflowRun { public static let id: Swift.String = "actions/download-job-logs-for-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/path`. @@ -22038,37 +22303,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the job. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/path/job_id`. - public var job_id: Components.Parameters.job_hyphen_id + public var jobId: Components.Parameters.JobId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - job_id: The unique identifier of the job. + /// - jobId: The unique identifier of the job. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - job_id: Components.Parameters.job_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + jobId: Components.Parameters.JobId ) { self.owner = owner self.repo = repo - self.job_id = job_id + self.jobId = jobId } } - public var path: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsDownloadJobLogsForWorkflowRun.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path) { + public init(path: Operations.ActionsDownloadJobLogsForWorkflowRun.Input.Path) { self.path = path } } @@ -22077,22 +22342,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/logs/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output.Found.Headers + public var headers: Operations.ActionsDownloadJobLogsForWorkflowRun.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output.Found.Headers = .init()) { + public init(headers: Operations.ActionsDownloadJobLogsForWorkflowRun.Output.Found.Headers = .init()) { self.headers = headers } } @@ -22101,12 +22366,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/logs/get(actions/download-job-logs-for-workflow-run)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output.Found) + case found(Operations.ActionsDownloadJobLogsForWorkflowRun.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.actions_sol_download_hyphen_job_hyphen_logs_hyphen_for_hyphen_workflow_hyphen_run.Output.Found { + public var found: Operations.ActionsDownloadJobLogsForWorkflowRun.Output.Found { get throws { switch self { case let .found(response): @@ -22133,7 +22398,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)`. - public enum actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run { + public enum ActionsReRunJobForWorkflowRun { public static let id: Swift.String = "actions/re-run-job-for-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/path`. @@ -22141,67 +22406,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the job. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/path/job_id`. - public var job_id: Components.Parameters.job_hyphen_id + public var jobId: Components.Parameters.JobId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - job_id: The unique identifier of the job. + /// - jobId: The unique identifier of the job. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - job_id: Components.Parameters.job_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + jobId: Components.Parameters.JobId ) { self.owner = owner self.repo = repo - self.job_id = job_id + self.jobId = jobId } } - public var path: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsReRunJobForWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsReRunJobForWorkflowRun.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to enable debug logging for the re-run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/requestBody/json/enable_debug_logging`. - public var enable_debug_logging: Swift.Bool? - /// Creates a new `jsonPayload`. + public var enableDebugLogging: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - enable_debug_logging: Whether to enable debug logging for the re-run. - public init(enable_debug_logging: Swift.Bool? = nil) { - self.enable_debug_logging = enable_debug_logging + /// - enableDebugLogging: Whether to enable debug logging for the re-run. + public init(enableDebugLogging: Swift.Bool? = nil) { + self.enableDebugLogging = enableDebugLogging } public enum CodingKeys: String, CodingKey { - case enable_debug_logging + case enableDebugLogging = "enable_debug_logging" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Body.jsonPayload) + case json(Operations.ActionsReRunJobForWorkflowRun.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Body? + public var body: Operations.ActionsReRunJobForWorkflowRun.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -22209,9 +22474,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Input.Body? = nil + path: Operations.ActionsReRunJobForWorkflowRun.Input.Path, + headers: Operations.ActionsReRunJobForWorkflowRun.Input.Headers = .init(), + body: Operations.ActionsReRunJobForWorkflowRun.Input.Body? = nil ) { self.path = path self.headers = headers @@ -22223,12 +22488,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -22238,12 +22503,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Created.Body + public var body: Operations.ActionsReRunJobForWorkflowRun.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Created.Body) { + public init(body: Operations.ActionsReRunJobForWorkflowRun.Output.Created.Body) { self.body = body } } @@ -22252,12 +22517,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Created) + case created(Operations.ActionsReRunJobForWorkflowRun.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_re_hyphen_run_hyphen_job_hyphen_for_hyphen_workflow_hyphen_run.Output.Created { + public var created: Operations.ActionsReRunJobForWorkflowRun.Output.Created { get throws { switch self { case let .created(response): @@ -22275,12 +22540,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/jobs/{job_id}/rerun/post(actions/re-run-job-for-workflow-run)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22332,7 +22597,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)`. - public enum actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo { + public enum ActionsGetCustomOidcSubClaimForRepo { public static let id: Swift.String = "actions/get-custom-oidc-sub-claim-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/path`. @@ -22340,45 +22605,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Path, + headers: Operations.ActionsGetCustomOidcSubClaimForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -22389,12 +22654,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/GET/responses/200/content/application\/json`. - case json(Components.Schemas.oidc_hyphen_custom_hyphen_sub_hyphen_repo) + case json(Components.Schemas.OidcCustomSubRepo) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.oidc_hyphen_custom_hyphen_sub_hyphen_repo { + public var json: Components.Schemas.OidcCustomSubRepo { get throws { switch self { case let .json(body): @@ -22404,12 +22669,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsGetCustomOidcSubClaimForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.ActionsGetCustomOidcSubClaimForRepo.Output.Ok.Body) { self.body = body } } @@ -22418,12 +22683,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsGetCustomOidcSubClaimForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsGetCustomOidcSubClaimForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -22441,12 +22706,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -22464,12 +22729,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/get(actions/get-custom-oidc-sub-claim-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22489,14 +22754,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -22507,14 +22772,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -22527,7 +22792,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)`. - public enum actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo { + public enum ActionsSetCustomOidcSubClaimForRepo { public static let id: Swift.String = "actions/set-custom-oidc-sub-claim-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/path`. @@ -22535,72 +22800,72 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// Actions OIDC subject customization for a repository /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/json/use_default`. - public var use_default: Swift.Bool + public var useDefault: Swift.Bool /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/json/include_claim_keys`. - public var include_claim_keys: [Swift.String]? - /// Creates a new `jsonPayload`. + public var includeClaimKeys: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - use_default: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. - /// - include_claim_keys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. + /// - useDefault: Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. + /// - includeClaimKeys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. public init( - use_default: Swift.Bool, - include_claim_keys: [Swift.String]? = nil + useDefault: Swift.Bool, + includeClaimKeys: [Swift.String]? = nil ) { - self.use_default = use_default - self.include_claim_keys = include_claim_keys + self.useDefault = useDefault + self.includeClaimKeys = includeClaimKeys } public enum CodingKeys: String, CodingKey { - case use_default - case include_claim_keys + case useDefault = "use_default" + case includeClaimKeys = "include_claim_keys" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -22608,9 +22873,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Input.Body + path: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Path, + headers: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Headers = .init(), + body: Operations.ActionsSetCustomOidcSubClaimForRepo.Input.Body ) { self.path = path self.headers = headers @@ -22622,12 +22887,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/oidc/customization/sub/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -22637,12 +22902,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Created.Body + public var body: Operations.ActionsSetCustomOidcSubClaimForRepo.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Created.Body) { + public init(body: Operations.ActionsSetCustomOidcSubClaimForRepo.Output.Created.Body) { self.body = body } } @@ -22651,12 +22916,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Created) + case created(Operations.ActionsSetCustomOidcSubClaimForRepo.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_set_hyphen_custom_hyphen_oidc_hyphen_sub_hyphen_claim_hyphen_for_hyphen_repo.Output.Created { + public var created: Operations.ActionsSetCustomOidcSubClaimForRepo.Output.Created { get throws { switch self { case let .created(response): @@ -22674,12 +22939,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22697,12 +22962,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -22720,12 +22985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/oidc/customization/sub/put(actions/set-custom-oidc-sub-claim-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -22745,14 +23010,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -22763,14 +23028,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -22786,7 +23051,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-secrets/get(actions/list-repo-organization-secrets)`. - public enum actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets { + public enum ActionsListRepoOrganizationSecrets { public static let id: Swift.String = "actions/list-repo-organization-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/path`. @@ -22794,61 +23059,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Path + public var path: Operations.ActionsListRepoOrganizationSecrets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Query + public var query: Operations.ActionsListRepoOrganizationSecrets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Headers + public var headers: Operations.ActionsListRepoOrganizationSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -22856,9 +23121,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Input.Headers = .init() + path: Operations.ActionsListRepoOrganizationSecrets.Input.Path, + query: Operations.ActionsListRepoOrganizationSecrets.Input.Query = .init(), + headers: Operations.ActionsListRepoOrganizationSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -22870,49 +23135,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.actions_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.ActionsSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.actions_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.ActionsSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-secrets/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -22922,15 +23187,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body + public var body: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok.Body + headers: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Headers = .init(), + body: Operations.ActionsListRepoOrganizationSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -22941,12 +23206,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-secrets/get(actions/list-repo-organization-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok) + case ok(Operations.ActionsListRepoOrganizationSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_secrets.Output.Ok { + public var ok: Operations.ActionsListRepoOrganizationSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -23000,7 +23265,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/organization-variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-variables/get(actions/list-repo-organization-variables)`. - public enum actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables { + public enum ActionsListRepoOrganizationVariables { public static let id: Swift.String = "actions/list-repo-organization-variables" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/path`. @@ -23008,61 +23273,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Path + public var path: Operations.ActionsListRepoOrganizationVariables.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/query`. public struct Query: Sendable, Hashable { /// The number of results per page (max 30). 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/query/per_page`. - public var per_page: Components.Parameters.variables_hyphen_per_hyphen_page? + public var perPage: Components.Parameters.VariablesPerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - per_page: The number of results per page (max 30). 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)." + /// - perPage: The number of results per page (max 30). 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)." public init( - per_page: Components.Parameters.variables_hyphen_per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.VariablesPerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Query + public var query: Operations.ActionsListRepoOrganizationVariables.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Headers + public var headers: Operations.ActionsListRepoOrganizationVariables.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -23070,9 +23335,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Input.Headers = .init() + path: Operations.ActionsListRepoOrganizationVariables.Input.Path, + query: Operations.ActionsListRepoOrganizationVariables.Input.Query = .init(), + headers: Operations.ActionsListRepoOrganizationVariables.Input.Headers = .init() ) { self.path = path self.query = query @@ -23084,49 +23349,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Headers + public var headers: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/content/json/variables`. - public var variables: [Components.Schemas.actions_hyphen_variable] - /// Creates a new `jsonPayload`. + public var variables: [Components.Schemas.ActionsVariable] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - variables: public init( - total_count: Swift.Int, - variables: [Components.Schemas.actions_hyphen_variable] + totalCount: Swift.Int, + variables: [Components.Schemas.ActionsVariable] ) { - self.total_count = total_count + self.totalCount = totalCount self.variables = variables } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case variables } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/organization-variables/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -23136,15 +23401,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body + public var body: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok.Body + headers: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Headers = .init(), + body: Operations.ActionsListRepoOrganizationVariables.Output.Ok.Body ) { self.headers = headers self.body = body @@ -23155,12 +23420,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/organization-variables/get(actions/list-repo-organization-variables)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok) + case ok(Operations.ActionsListRepoOrganizationVariables.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_organization_hyphen_variables.Output.Ok { + public var ok: Operations.ActionsListRepoOrganizationVariables.Output.Ok { get throws { switch self { case let .ok(response): @@ -23212,7 +23477,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/get(actions/get-github-actions-permissions-repository)`. - public enum actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository { + public enum ActionsGetGithubActionsPermissionsRepository { public static let id: Swift.String = "actions/get-github-actions-permissions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/path`. @@ -23220,45 +23485,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path + public var path: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Headers + public var headers: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Headers = .init() + path: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Path, + headers: Operations.ActionsGetGithubActionsPermissionsRepository.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -23269,12 +23534,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_repository_hyphen_permissions) + case json(Components.Schemas.ActionsRepositoryPermissions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_repository_hyphen_permissions { + public var json: Components.Schemas.ActionsRepositoryPermissions { get throws { switch self { case let .json(body): @@ -23284,12 +23549,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.Ok.Body + public var body: Operations.ActionsGetGithubActionsPermissionsRepository.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.Ok.Body) { + public init(body: Operations.ActionsGetGithubActionsPermissionsRepository.Output.Ok.Body) { self.body = body } } @@ -23298,12 +23563,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/get(actions/get-github-actions-permissions-repository)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.Ok) + case ok(Operations.ActionsGetGithubActionsPermissionsRepository.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.Ok { + public var ok: Operations.ActionsGetGithubActionsPermissionsRepository.Output.Ok { get throws { switch self { case let .ok(response): @@ -23355,7 +23620,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)`. - public enum actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository { + public enum ActionsSetGithubActionsPermissionsRepository { public static let id: Swift.String = "actions/set-github-actions-permissions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/path`. @@ -23363,62 +23628,62 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path + public var path: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/json/enabled`. - public var enabled: Components.Schemas.actions_hyphen_enabled + public var enabled: Components.Schemas.ActionsEnabled /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/json/allowed_actions`. - public var allowed_actions: Components.Schemas.allowed_hyphen_actions? - /// Creates a new `jsonPayload`. + public var allowedActions: Components.Schemas.AllowedActions? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - enabled: - /// - allowed_actions: + /// - allowedActions: public init( - enabled: Components.Schemas.actions_hyphen_enabled, - allowed_actions: Components.Schemas.allowed_hyphen_actions? = nil + enabled: Components.Schemas.ActionsEnabled, + allowedActions: Components.Schemas.AllowedActions? = nil ) { self.enabled = enabled - self.allowed_actions = allowed_actions + self.allowedActions = allowedActions } public enum CodingKeys: String, CodingKey { case enabled - case allowed_actions + case allowedActions = "allowed_actions" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Body.jsonPayload) + case json(Operations.ActionsSetGithubActionsPermissionsRepository.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Body + public var body: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Input.Body + path: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Path, + body: Operations.ActionsSetGithubActionsPermissionsRepository.Input.Body ) { self.path = path self.body = body @@ -23434,12 +23699,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.NoContent) + case noContent(Operations.ActionsSetGithubActionsPermissionsRepository.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/put(actions/set-github-actions-permissions-repository)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_permissions_hyphen_repository.Output.NoContent { + public var noContent: Operations.ActionsSetGithubActionsPermissionsRepository.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23468,7 +23741,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/get(actions/get-workflow-access-to-repository)`. - public enum actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository { + public enum ActionsGetWorkflowAccessToRepository { public static let id: Swift.String = "actions/get-workflow-access-to-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/path`. @@ -23476,45 +23749,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path + public var path: Operations.ActionsGetWorkflowAccessToRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Headers + public var headers: Operations.ActionsGetWorkflowAccessToRepository.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Headers = .init() + path: Operations.ActionsGetWorkflowAccessToRepository.Input.Path, + headers: Operations.ActionsGetWorkflowAccessToRepository.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -23525,12 +23798,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository) + case json(Components.Schemas.ActionsWorkflowAccessToRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository { + public var json: Components.Schemas.ActionsWorkflowAccessToRepository { get throws { switch self { case let .json(body): @@ -23540,12 +23813,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.Ok.Body + public var body: Operations.ActionsGetWorkflowAccessToRepository.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflowAccessToRepository.Output.Ok.Body) { self.body = body } } @@ -23554,12 +23827,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/get(actions/get-workflow-access-to-repository)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.Ok) + case ok(Operations.ActionsGetWorkflowAccessToRepository.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.Ok { + public var ok: Operations.ActionsGetWorkflowAccessToRepository.Output.Ok { get throws { switch self { case let .ok(response): @@ -23613,7 +23886,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/access`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)`. - public enum actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository { + public enum ActionsSetWorkflowAccessToRepository { public static let id: Swift.String = "actions/set-workflow-access-to-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/PUT/path`. @@ -23621,39 +23894,39 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path + public var path: Operations.ActionsSetWorkflowAccessToRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/access/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.actions_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository) + case json(Components.Schemas.ActionsWorkflowAccessToRepository) } - public var body: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Body + public var body: Operations.ActionsSetWorkflowAccessToRepository.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Input.Body + path: Operations.ActionsSetWorkflowAccessToRepository.Input.Path, + body: Operations.ActionsSetWorkflowAccessToRepository.Input.Body ) { self.path = path self.body = body @@ -23669,12 +23942,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.NoContent) + case noContent(Operations.ActionsSetWorkflowAccessToRepository.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/access/put(actions/set-workflow-access-to-repository)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_workflow_hyphen_access_hyphen_to_hyphen_repository.Output.NoContent { + public var noContent: Operations.ActionsSetWorkflowAccessToRepository.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23701,7 +23982,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/get(actions/get-allowed-actions-repository)`. - public enum actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository { + public enum ActionsGetAllowedActionsRepository { public static let id: Swift.String = "actions/get-allowed-actions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/path`. @@ -23709,45 +23990,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path + public var path: Operations.ActionsGetAllowedActionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Headers + public var headers: Operations.ActionsGetAllowedActionsRepository.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Headers = .init() + path: Operations.ActionsGetAllowedActionsRepository.Input.Path, + headers: Operations.ActionsGetAllowedActionsRepository.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -23758,12 +24039,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.selected_hyphen_actions) + case json(Components.Schemas.SelectedActions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.selected_hyphen_actions { + public var json: Components.Schemas.SelectedActions { get throws { switch self { case let .json(body): @@ -23773,12 +24054,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output.Ok.Body + public var body: Operations.ActionsGetAllowedActionsRepository.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output.Ok.Body) { + public init(body: Operations.ActionsGetAllowedActionsRepository.Output.Ok.Body) { self.body = body } } @@ -23787,12 +24068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/get(actions/get-allowed-actions-repository)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output.Ok) + case ok(Operations.ActionsGetAllowedActionsRepository.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_allowed_hyphen_actions_hyphen_repository.Output.Ok { + public var ok: Operations.ActionsGetAllowedActionsRepository.Output.Ok { get throws { switch self { case let .ok(response): @@ -23844,7 +24125,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)`. - public enum actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository { + public enum ActionsSetAllowedActionsRepository { public static let id: Swift.String = "actions/set-allowed-actions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/PUT/path`. @@ -23852,39 +24133,39 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path + public var path: Operations.ActionsSetAllowedActionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/selected-actions/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.selected_hyphen_actions) + case json(Components.Schemas.SelectedActions) } - public var body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Body? + public var body: Operations.ActionsSetAllowedActionsRepository.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Input.Body? = nil + path: Operations.ActionsSetAllowedActionsRepository.Input.Path, + body: Operations.ActionsSetAllowedActionsRepository.Input.Body? = nil ) { self.path = path self.body = body @@ -23900,12 +24181,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Output.NoContent) + case noContent(Operations.ActionsSetAllowedActionsRepository.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/selected-actions/put(actions/set-allowed-actions-repository)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_allowed_hyphen_actions_hyphen_repository.Output.NoContent { + public var noContent: Operations.ActionsSetAllowedActionsRepository.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23934,7 +24223,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-repository)`. - public enum actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository { + public enum ActionsGetGithubActionsDefaultWorkflowPermissionsRepository { public static let id: Swift.String = "actions/get-github-actions-default-workflow-permissions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/path`. @@ -23942,45 +24231,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path + public var path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Headers + public var headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path, - headers: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Headers = .init() + path: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path, + headers: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -23991,12 +24280,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions) + case json(Components.Schemas.ActionsGetDefaultWorkflowPermissions) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_get_hyphen_default_hyphen_workflow_hyphen_permissions { + public var json: Components.Schemas.ActionsGetDefaultWorkflowPermissions { get throws { switch self { case let .json(body): @@ -24006,12 +24295,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Ok.Body + public var body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Ok.Body) { + public init(body: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output.Ok.Body) { self.body = body } } @@ -24020,12 +24309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/get(actions/get-github-actions-default-workflow-permissions-repository)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Ok) + case ok(Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Ok { + public var ok: Operations.ActionsGetGithubActionsDefaultWorkflowPermissionsRepository.Output.Ok { get throws { switch self { case let .ok(response): @@ -24079,7 +24368,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)`. - public enum actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository { + public enum ActionsSetGithubActionsDefaultWorkflowPermissionsRepository { public static let id: Swift.String = "actions/set-github-actions-default-workflow-permissions-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/PUT/path`. @@ -24087,39 +24376,39 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path + public var path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/workflow/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.actions_hyphen_set_hyphen_default_hyphen_workflow_hyphen_permissions) + case json(Components.Schemas.ActionsSetDefaultWorkflowPermissions) } - public var body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Body + public var body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Path, - body: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Input.Body + path: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Path, + body: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Input.Body ) { self.path = path self.body = body @@ -24135,12 +24424,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.NoContent) + case noContent(Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output.NoContent) + /// Success response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.NoContent { + public var noContent: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -24162,12 +24459,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Conflict) + case conflict(Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output.Conflict) + /// Conflict response when changing a setting is prevented by the owning organization + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-repository)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_repository.Output.Conflict { + public var conflict: Operations.ActionsSetGithubActionsDefaultWorkflowPermissionsRepository.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -24196,7 +24501,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/get(actions/list-self-hosted-runners-for-repo)`. - public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo { + public enum ActionsListSelfHostedRunnersForRepo { public static let id: Swift.String = "actions/list-self-hosted-runners-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/path`. @@ -24204,25 +24509,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsListSelfHostedRunnersForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/query`. public struct Query: Sendable, Hashable { /// The name of a self-hosted runner. @@ -24232,40 +24537,40 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - name: The name of a self-hosted runner. - /// - 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)." + /// - perPage: 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)." public init( name: Swift.String? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.name = name - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ActionsListSelfHostedRunnersForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsListSelfHostedRunnersForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -24273,9 +24578,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsListSelfHostedRunnersForRepo.Input.Path, + query: Operations.ActionsListSelfHostedRunnersForRepo.Input.Query = .init(), + headers: Operations.ActionsListSelfHostedRunnersForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -24287,49 +24592,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/content/json/runners`. - public var runners: [Components.Schemas.runner] - /// Creates a new `jsonPayload`. + public var runners: [Components.Schemas.Runner] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - runners: public init( - total_count: Swift.Int, - runners: [Components.Schemas.runner] + totalCount: Swift.Int, + runners: [Components.Schemas.Runner] ) { - self.total_count = total_count + self.totalCount = totalCount self.runners = runners } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case runners } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -24339,15 +24644,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Headers = .init(), + body: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -24358,12 +24663,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/get(actions/list-self-hosted-runners-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsListSelfHostedRunnersForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -24417,7 +24722,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/downloads`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/downloads/get(actions/list-runner-applications-for-repo)`. - public enum actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo { + public enum ActionsListRunnerApplicationsForRepo { public static let id: Swift.String = "actions/list-runner-applications-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/path`. @@ -24425,45 +24730,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsListRunnerApplicationsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsListRunnerApplicationsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsListRunnerApplicationsForRepo.Input.Path, + headers: Operations.ActionsListRunnerApplicationsForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24474,12 +24779,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/downloads/GET/responses/200/content/application\/json`. - case json([Components.Schemas.runner_hyphen_application]) + case json([Components.Schemas.RunnerApplication]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.runner_hyphen_application] { + public var json: [Components.Schemas.RunnerApplication] { get throws { switch self { case let .json(body): @@ -24489,12 +24794,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsListRunnerApplicationsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.ActionsListRunnerApplicationsForRepo.Output.Ok.Body) { self.body = body } } @@ -24503,12 +24808,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/downloads/get(actions/list-runner-applications-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsListRunnerApplicationsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_runner_hyphen_applications_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsListRunnerApplicationsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -24562,7 +24867,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)`. - public enum actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo { + public enum ActionsGenerateRunnerJitconfigForRepo { public static let id: Swift.String = "actions/generate-runner-jitconfig-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/path`. @@ -24570,41 +24875,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the new runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/json/name`. @@ -24612,7 +24917,7 @@ public enum Operations { /// The ID of the runner group to register the runner to. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/json/runner_group_id`. - public var runner_group_id: Swift.Int + public var runnerGroupId: Swift.Int /// The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/json/labels`. @@ -24620,36 +24925,36 @@ public enum Operations { /// The working directory to be used for job execution, relative to the runner install directory. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/json/work_folder`. - public var work_folder: Swift.String? - /// Creates a new `jsonPayload`. + public var workFolder: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the new runner. - /// - runner_group_id: The ID of the runner group to register the runner to. + /// - runnerGroupId: The ID of the runner group to register the runner to. /// - labels: The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100. - /// - work_folder: The working directory to be used for job execution, relative to the runner install directory. + /// - workFolder: The working directory to be used for job execution, relative to the runner install directory. public init( name: Swift.String, - runner_group_id: Swift.Int, + runnerGroupId: Swift.Int, labels: [Swift.String], - work_folder: Swift.String? = nil + workFolder: Swift.String? = nil ) { self.name = name - self.runner_group_id = runner_group_id + self.runnerGroupId = runnerGroupId self.labels = labels - self.work_folder = work_folder + self.workFolder = workFolder } public enum CodingKeys: String, CodingKey { case name - case runner_group_id + case runnerGroupId = "runner_group_id" case labels - case work_folder + case workFolder = "work_folder" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/generate-jitconfig/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -24657,9 +24962,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_generate_hyphen_runner_hyphen_jitconfig_hyphen_for_hyphen_repo.Input.Body + path: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Path, + headers: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Headers = .init(), + body: Operations.ActionsGenerateRunnerJitconfigForRepo.Input.Body ) { self.path = path self.headers = headers @@ -24672,12 +24977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Components.Responses.actions_runner_jitconfig) + case created(Components.Responses.ActionsRunnerJitconfig) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Components.Responses.actions_runner_jitconfig { + public var created: Components.Responses.ActionsRunnerJitconfig { get throws { switch self { case let .created(response): @@ -24695,12 +25000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24718,12 +25023,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -24741,12 +25046,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/generate-jitconfig/post(actions/generate-runner-jitconfig-for-repo)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -24806,7 +25111,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/registration-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/registration-token/post(actions/create-registration-token-for-repo)`. - public enum actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo { + public enum ActionsCreateRegistrationTokenForRepo { public static let id: Swift.String = "actions/create-registration-token-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/path`. @@ -24814,45 +25119,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsCreateRegistrationTokenForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsCreateRegistrationTokenForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsCreateRegistrationTokenForRepo.Input.Path, + headers: Operations.ActionsCreateRegistrationTokenForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24863,12 +25168,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/registration-token/POST/responses/201/content/application\/json`. - case json(Components.Schemas.authentication_hyphen_token) + case json(Components.Schemas.AuthenticationToken) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authentication_hyphen_token { + public var json: Components.Schemas.AuthenticationToken { get throws { switch self { case let .json(body): @@ -24878,12 +25183,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body + public var body: Operations.ActionsCreateRegistrationTokenForRepo.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body) { + public init(body: Operations.ActionsCreateRegistrationTokenForRepo.Output.Created.Body) { self.body = body } } @@ -24892,12 +25197,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/registration-token/post(actions/create-registration-token-for-repo)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output.Created) + case created(Operations.ActionsCreateRegistrationTokenForRepo.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_registration_hyphen_token_hyphen_for_hyphen_repo.Output.Created { + public var created: Operations.ActionsCreateRegistrationTokenForRepo.Output.Created { get throws { switch self { case let .created(response): @@ -24957,7 +25262,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/remove-token`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/remove-token/post(actions/create-remove-token-for-repo)`. - public enum actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo { + public enum ActionsCreateRemoveTokenForRepo { public static let id: Swift.String = "actions/create-remove-token-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/path`. @@ -24965,45 +25270,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsCreateRemoveTokenForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsCreateRemoveTokenForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsCreateRemoveTokenForRepo.Input.Path, + headers: Operations.ActionsCreateRemoveTokenForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25014,12 +25319,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/remove-token/POST/responses/201/content/application\/json`. - case json(Components.Schemas.authentication_hyphen_token) + case json(Components.Schemas.AuthenticationToken) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authentication_hyphen_token { + public var json: Components.Schemas.AuthenticationToken { get throws { switch self { case let .json(body): @@ -25029,12 +25334,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body + public var body: Operations.ActionsCreateRemoveTokenForRepo.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output.Created.Body) { + public init(body: Operations.ActionsCreateRemoveTokenForRepo.Output.Created.Body) { self.body = body } } @@ -25043,12 +25348,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/remove-token/post(actions/create-remove-token-for-repo)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output.Created) + case created(Operations.ActionsCreateRemoveTokenForRepo.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_remove_hyphen_token_hyphen_for_hyphen_repo.Output.Created { + public var created: Operations.ActionsCreateRemoveTokenForRepo.Output.Created { get throws { switch self { case let .created(response): @@ -25102,7 +25407,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-repo)`. - public enum actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsGetSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/get-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/path`. @@ -25110,52 +25415,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsGetSelfHostedRunnerForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25166,12 +25471,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.runner) + case json(Components.Schemas.Runner) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.runner { + public var json: Components.Schemas.Runner { get throws { switch self { case let .json(body): @@ -25181,12 +25486,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsGetSelfHostedRunnerForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.ActionsGetSelfHostedRunnerForRepo.Output.Ok.Body) { self.body = body } } @@ -25195,12 +25500,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/get(actions/get-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsGetSelfHostedRunnerForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsGetSelfHostedRunnerForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -25254,7 +25559,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`. - public enum actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo { + public enum ActionsDeleteSelfHostedRunnerFromRepo { public static let id: Swift.String = "actions/delete-self-hosted-runner-from-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/path`. @@ -25262,37 +25567,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input.Path + public var path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Input.Path) { + public init(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) { self.path = path } } @@ -25306,12 +25611,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Output.NoContent) + case noContent(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_repo.Output.NoContent { + public var noContent: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -25340,7 +25653,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)`. - public enum actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsListLabelsForSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/list-labels-for-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/GET/path`. @@ -25348,52 +25661,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/GET/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_list_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsListLabelsForSelfHostedRunnerForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25405,12 +25718,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -25428,12 +25741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/get(actions/list-labels-for-self-hosted-runner-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25487,7 +25800,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)`. - public enum actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsAddCustomLabelsToSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/add-custom-labels-to-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/path`. @@ -25495,53 +25808,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of the custom labels to add to the runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/requestBody/json/labels`. public var labels: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - labels: The names of the custom labels to add to the runner. @@ -25553,9 +25866,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -25563,9 +25876,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_add_hyphen_custom_hyphen_labels_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body + path: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Headers = .init(), + body: Operations.ActionsAddCustomLabelsToSelfHostedRunnerForRepo.Input.Body ) { self.path = path self.headers = headers @@ -25578,12 +25891,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -25601,12 +25914,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25624,12 +25937,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/post(actions/add-custom-labels-to-self-hosted-runner-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -25684,7 +25997,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)`. - public enum actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsSetCustomLabelsForSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/set-custom-labels-for-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/path`. @@ -25692,53 +26005,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/requestBody/json/labels`. public var labels: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - labels: The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels. @@ -25750,9 +26063,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -25760,9 +26073,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.actions_sol_set_hyphen_custom_hyphen_labels_hyphen_for_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Body + path: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Headers = .init(), + body: Operations.ActionsSetCustomLabelsForSelfHostedRunnerForRepo.Input.Body ) { self.path = path self.headers = headers @@ -25775,12 +26088,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -25798,12 +26111,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25821,12 +26134,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/put(actions/set-custom-labels-for-self-hosted-runner-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -25881,7 +26194,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)`. - public enum actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/remove-all-custom-labels-from-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/DELETE/path`. @@ -25889,52 +26202,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId } } - public var path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_remove_hyphen_all_hyphen_custom_hyphen_labels_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25946,12 +26259,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels_readonly) + case ok(Components.Responses.ActionsRunnerLabelsReadonly) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels_readonly { + public var ok: Components.Responses.ActionsRunnerLabelsReadonly { get throws { switch self { case let .ok(response): @@ -25969,12 +26282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/delete(actions/remove-all-custom-labels-from-self-hosted-runner-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -26032,7 +26345,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)`. - public enum actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo { + public enum ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo { public static let id: Swift.String = "actions/remove-custom-label-from-self-hosted-runner-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/path`. @@ -26040,59 +26353,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/path/runner_id`. - public var runner_id: Components.Parameters.runner_hyphen_id + public var runnerId: Components.Parameters.RunnerId /// The name of a self-hosted runner's custom label. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/path/name`. - public var name: Components.Parameters.runner_hyphen_label_hyphen_name + public var name: Components.Parameters.RunnerLabelName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - runner_id: Unique identifier of the self-hosted runner. + /// - runnerId: Unique identifier of the self-hosted runner. /// - name: The name of a self-hosted runner's custom label. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - runner_id: Components.Parameters.runner_hyphen_id, - name: Components.Parameters.runner_hyphen_label_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runnerId: Components.Parameters.RunnerId, + name: Components.Parameters.RunnerLabelName ) { self.owner = owner self.repo = repo - self.runner_id = runner_id + self.runnerId = runnerId self.name = name } } - public var path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.actions_sol_remove_hyphen_custom_hyphen_label_hyphen_from_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Path, + headers: Operations.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -26104,12 +26417,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.actions_runner_labels) + case ok(Components.Responses.ActionsRunnerLabels) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.actions_runner_labels { + public var ok: Components.Responses.ActionsRunnerLabels { get throws { switch self { case let .ok(response): @@ -26127,12 +26440,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -26150,12 +26463,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}/delete(actions/remove-custom-label-from-self-hosted-runner-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -26211,7 +26524,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/get(actions/list-workflow-runs-for-repo)`. - public enum actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo { + public enum ActionsListWorkflowRunsForRepo { public static let id: Swift.String = "actions/list-workflow-runs-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/path`. @@ -26219,51 +26532,51 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActionsListWorkflowRunsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query`. public struct Query: Sendable, Hashable { /// Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/actor`. - public var actor: Components.Parameters.actor? + public var actor: Components.Parameters.Actor? /// Returns workflow runs associated with a branch. Use the name of the branch of the `push`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/branch`. - public var branch: Components.Parameters.workflow_hyphen_run_hyphen_branch? + public var branch: Components.Parameters.WorkflowRunBranch? /// Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/event`. - public var event: Components.Parameters.event? + public var event: Components.Parameters.Event? /// - Remark: Generated from `#/components/parameters/workflow-run-status`. - @frozen public enum workflow_hyphen_run_hyphen_status: String, Codable, Hashable, Sendable { + @frozen public enum WorkflowRunStatus: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" - case action_required = "action_required" + case actionRequired = "action_required" case cancelled = "cancelled" case failure = "failure" case neutral = "neutral" case skipped = "skipped" case stale = "stale" case success = "success" - case timed_out = "timed_out" - case in_progress = "in_progress" + case timedOut = "timed_out" + case inProgress = "in_progress" case queued = "queued" case requested = "requested" case waiting = "waiting" @@ -26272,31 +26585,31 @@ public enum Operations { /// Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/status`. - public var status: Components.Parameters.workflow_hyphen_run_hyphen_status? + public var status: Components.Parameters.WorkflowRunStatus? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/created`. - public var created: Components.Parameters.created? + public var created: Components.Parameters.Created? /// If `true` pull requests are omitted from the response (empty array). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/exclude_pull_requests`. - public var exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? + public var excludePullRequests: Components.Parameters.ExcludePullRequests? /// Returns workflow runs with the `check_suite_id` that you specify. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/check_suite_id`. - public var check_suite_id: Components.Parameters.workflow_hyphen_run_hyphen_check_hyphen_suite_hyphen_id? + public var checkSuiteId: Components.Parameters.WorkflowRunCheckSuiteId? /// Only returns workflow runs that are associated with the specified `head_sha`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/query/head_sha`. - public var head_sha: Components.Parameters.workflow_hyphen_run_hyphen_head_hyphen_sha? + public var headSha: Components.Parameters.WorkflowRunHeadSha? /// Creates a new `Query`. /// /// - Parameters: @@ -26304,49 +26617,49 @@ public enum Operations { /// - branch: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. /// - event: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." /// - status: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. - /// - 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)." + /// - perPage: 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)." /// - created: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." - /// - exclude_pull_requests: If `true` pull requests are omitted from the response (empty array). - /// - check_suite_id: Returns workflow runs with the `check_suite_id` that you specify. - /// - head_sha: Only returns workflow runs that are associated with the specified `head_sha`. + /// - excludePullRequests: If `true` pull requests are omitted from the response (empty array). + /// - checkSuiteId: Returns workflow runs with the `check_suite_id` that you specify. + /// - headSha: Only returns workflow runs that are associated with the specified `head_sha`. public init( - actor: Components.Parameters.actor? = nil, - branch: Components.Parameters.workflow_hyphen_run_hyphen_branch? = nil, - event: Components.Parameters.event? = nil, - status: Components.Parameters.workflow_hyphen_run_hyphen_status? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - created: Components.Parameters.created? = nil, - exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? = nil, - check_suite_id: Components.Parameters.workflow_hyphen_run_hyphen_check_hyphen_suite_hyphen_id? = nil, - head_sha: Components.Parameters.workflow_hyphen_run_hyphen_head_hyphen_sha? = nil + actor: Components.Parameters.Actor? = nil, + branch: Components.Parameters.WorkflowRunBranch? = nil, + event: Components.Parameters.Event? = nil, + status: Components.Parameters.WorkflowRunStatus? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + created: Components.Parameters.Created? = nil, + excludePullRequests: Components.Parameters.ExcludePullRequests? = nil, + checkSuiteId: Components.Parameters.WorkflowRunCheckSuiteId? = nil, + headSha: Components.Parameters.WorkflowRunHeadSha? = nil ) { self.actor = actor self.branch = branch self.event = event self.status = status - self.per_page = per_page + self.perPage = perPage self.page = page self.created = created - self.exclude_pull_requests = exclude_pull_requests - self.check_suite_id = check_suite_id - self.head_sha = head_sha + self.excludePullRequests = excludePullRequests + self.checkSuiteId = checkSuiteId + self.headSha = headSha } } - public var query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ActionsListWorkflowRunsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActionsListWorkflowRunsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -26354,9 +26667,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActionsListWorkflowRunsForRepo.Input.Path, + query: Operations.ActionsListWorkflowRunsForRepo.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRunsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -26368,49 +26681,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/content/json/workflow_runs`. - public var workflow_runs: [Components.Schemas.workflow_hyphen_run] - /// Creates a new `jsonPayload`. + public var workflowRuns: [Components.Schemas.WorkflowRun] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - workflow_runs: + /// - totalCount: + /// - workflowRuns: public init( - total_count: Swift.Int, - workflow_runs: [Components.Schemas.workflow_hyphen_run] + totalCount: Swift.Int, + workflowRuns: [Components.Schemas.WorkflowRun] ) { - self.total_count = total_count - self.workflow_runs = workflow_runs + self.totalCount = totalCount + self.workflowRuns = workflowRuns } public enum CodingKeys: String, CodingKey { - case total_count - case workflow_runs + case totalCount = "total_count" + case workflowRuns = "workflow_runs" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -26420,15 +26733,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Headers = .init(), + body: Operations.ActionsListWorkflowRunsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -26439,12 +26752,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/get(actions/list-workflow-runs-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActionsListWorkflowRunsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_workflow_hyphen_runs_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActionsListWorkflowRunsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -26498,7 +26811,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/get(actions/get-workflow-run)`. - public enum actions_sol_get_hyphen_workflow_hyphen_run { + public enum ActionsGetWorkflowRun { public static let id: Swift.String = "actions/get-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/path`. @@ -26506,59 +26819,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsGetWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/query`. public struct Query: Sendable, Hashable { /// If `true` pull requests are omitted from the response (empty array). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/query/exclude_pull_requests`. - public var exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? + public var excludePullRequests: Components.Parameters.ExcludePullRequests? /// Creates a new `Query`. /// /// - Parameters: - /// - exclude_pull_requests: If `true` pull requests are omitted from the response (empty array). - public init(exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? = nil) { - self.exclude_pull_requests = exclude_pull_requests + /// - excludePullRequests: If `true` pull requests are omitted from the response (empty array). + public init(excludePullRequests: Components.Parameters.ExcludePullRequests? = nil) { + self.excludePullRequests = excludePullRequests } } - public var query: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Query + public var query: Operations.ActionsGetWorkflowRun.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsGetWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -26566,9 +26879,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Path, - query: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsGetWorkflowRun.Input.Path, + query: Operations.ActionsGetWorkflowRun.Input.Query = .init(), + headers: Operations.ActionsGetWorkflowRun.Input.Headers = .init() ) { self.path = path self.query = query @@ -26580,12 +26893,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.workflow_hyphen_run) + case json(Components.Schemas.WorkflowRun) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.workflow_hyphen_run { + public var json: Components.Schemas.WorkflowRun { get throws { switch self { case let .json(body): @@ -26595,12 +26908,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsGetWorkflowRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflowRun.Output.Ok.Body) { self.body = body } } @@ -26609,12 +26922,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/get(actions/get-workflow-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output.Ok) + case ok(Operations.ActionsGetWorkflowRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow_hyphen_run.Output.Ok { + public var ok: Operations.ActionsGetWorkflowRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -26668,7 +26981,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)`. - public enum actions_sol_delete_hyphen_workflow_hyphen_run { + public enum ActionsDeleteWorkflowRun { public static let id: Swift.String = "actions/delete-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/DELETE/path`. @@ -26676,37 +26989,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/DELETE/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsDeleteWorkflowRun.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Input.Path) { + public init(path: Operations.ActionsDeleteWorkflowRun.Input.Path) { self.path = path } } @@ -26720,12 +27033,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Output.NoContent) + case noContent(Operations.ActionsDeleteWorkflowRun.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/delete(actions/delete-workflow-run)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_workflow_hyphen_run.Output.NoContent { + public var noContent: Operations.ActionsDeleteWorkflowRun.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -26752,7 +27073,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approvals/get(actions/get-reviews-for-run)`. - public enum actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run { + public enum ActionsGetReviewsForRun { public static let id: Swift.String = "actions/get-reviews-for-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/path`. @@ -26760,52 +27081,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Path + public var path: Operations.ActionsGetReviewsForRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Headers + public var headers: Operations.ActionsGetReviewsForRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Input.Headers = .init() + path: Operations.ActionsGetReviewsForRun.Input.Path, + headers: Operations.ActionsGetReviewsForRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -26816,12 +27137,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approvals/GET/responses/200/content/application\/json`. - case json([Components.Schemas.environment_hyphen_approvals]) + case json([Components.Schemas.EnvironmentApprovals]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.environment_hyphen_approvals] { + public var json: [Components.Schemas.EnvironmentApprovals] { get throws { switch self { case let .json(body): @@ -26831,12 +27152,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsGetReviewsForRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output.Ok.Body) { + public init(body: Operations.ActionsGetReviewsForRun.Output.Ok.Body) { self.body = body } } @@ -26845,12 +27166,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approvals/get(actions/get-reviews-for-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output.Ok) + case ok(Operations.ActionsGetReviewsForRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_reviews_hyphen_for_hyphen_run.Output.Ok { + public var ok: Operations.ActionsGetReviewsForRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -26902,7 +27223,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)`. - public enum actions_sol_approve_hyphen_workflow_hyphen_run { + public enum ActionsApproveWorkflowRun { public static let id: Swift.String = "actions/approve-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/path`. @@ -26910,52 +27231,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsApproveWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsApproveWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsApproveWorkflowRun.Input.Path, + headers: Operations.ActionsApproveWorkflowRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -26966,12 +27287,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/approve/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -26981,12 +27302,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output.Created.Body + public var body: Operations.ActionsApproveWorkflowRun.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output.Created.Body) { + public init(body: Operations.ActionsApproveWorkflowRun.Output.Created.Body) { self.body = body } } @@ -26995,12 +27316,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output.Created) + case created(Operations.ActionsApproveWorkflowRun.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_approve_hyphen_workflow_hyphen_run.Output.Created { + public var created: Operations.ActionsApproveWorkflowRun.Output.Created { get throws { switch self { case let .created(response): @@ -27018,12 +27339,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -27041,12 +27362,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/approve/post(actions/approve-workflow-run)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -27100,7 +27421,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/get(actions/list-workflow-run-artifacts)`. - public enum actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts { + public enum ActionsListWorkflowRunArtifacts { public static let id: Swift.String = "actions/list-workflow-run-artifacts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/path`. @@ -27108,75 +27429,75 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Path + public var path: Operations.ActionsListWorkflowRunArtifacts.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The name field of an artifact. When specified, only artifacts with this name will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/query/name`. - public var name: Components.Parameters.artifact_hyphen_name? + public var name: Components.Parameters.ArtifactName? /// 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)." + /// - perPage: 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)." /// - name: The name field of an artifact. When specified, only artifacts with this name will be returned. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - name: Components.Parameters.artifact_hyphen_name? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + name: Components.Parameters.ArtifactName? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.name = name } } - public var query: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Query + public var query: Operations.ActionsListWorkflowRunArtifacts.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Headers + public var headers: Operations.ActionsListWorkflowRunArtifacts.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -27184,9 +27505,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Input.Headers = .init() + path: Operations.ActionsListWorkflowRunArtifacts.Input.Path, + query: Operations.ActionsListWorkflowRunArtifacts.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRunArtifacts.Input.Headers = .init() ) { self.path = path self.query = query @@ -27198,49 +27519,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Headers + public var headers: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/content/json/artifacts`. - public var artifacts: [Components.Schemas.artifact] - /// Creates a new `jsonPayload`. + public var artifacts: [Components.Schemas.Artifact] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - artifacts: public init( - total_count: Swift.Int, - artifacts: [Components.Schemas.artifact] + totalCount: Swift.Int, + artifacts: [Components.Schemas.Artifact] ) { - self.total_count = total_count + self.totalCount = totalCount self.artifacts = artifacts } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case artifacts } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -27250,15 +27571,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body + public var body: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok.Body + headers: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Headers = .init(), + body: Operations.ActionsListWorkflowRunArtifacts.Output.Ok.Body ) { self.headers = headers self.body = body @@ -27269,12 +27590,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/artifacts/get(actions/list-workflow-run-artifacts)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok) + case ok(Operations.ActionsListWorkflowRunArtifacts.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_workflow_hyphen_run_hyphen_artifacts.Output.Ok { + public var ok: Operations.ActionsListWorkflowRunArtifacts.Output.Ok { get throws { switch self { case let .ok(response): @@ -27328,7 +27649,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/get(actions/get-workflow-run-attempt)`. - public enum actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt { + public enum ActionsGetWorkflowRunAttempt { public static let id: Swift.String = "actions/get-workflow-run-attempt" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/path`. @@ -27336,66 +27657,66 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// The attempt number of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/path/attempt_number`. - public var attempt_number: Components.Parameters.attempt_hyphen_number + public var attemptNumber: Components.Parameters.AttemptNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. - /// - attempt_number: The attempt number of the workflow run. + /// - runId: The unique identifier of the workflow run. + /// - attemptNumber: The attempt number of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id, - attempt_number: Components.Parameters.attempt_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId, + attemptNumber: Components.Parameters.AttemptNumber ) { self.owner = owner self.repo = repo - self.run_id = run_id - self.attempt_number = attempt_number + self.runId = runId + self.attemptNumber = attemptNumber } } - public var path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path + public var path: Operations.ActionsGetWorkflowRunAttempt.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/query`. public struct Query: Sendable, Hashable { /// If `true` pull requests are omitted from the response (empty array). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/query/exclude_pull_requests`. - public var exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? + public var excludePullRequests: Components.Parameters.ExcludePullRequests? /// Creates a new `Query`. /// /// - Parameters: - /// - exclude_pull_requests: If `true` pull requests are omitted from the response (empty array). - public init(exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? = nil) { - self.exclude_pull_requests = exclude_pull_requests + /// - excludePullRequests: If `true` pull requests are omitted from the response (empty array). + public init(excludePullRequests: Components.Parameters.ExcludePullRequests? = nil) { + self.excludePullRequests = excludePullRequests } } - public var query: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query + public var query: Operations.ActionsGetWorkflowRunAttempt.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers + public var headers: Operations.ActionsGetWorkflowRunAttempt.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -27403,9 +27724,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path, - query: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query = .init(), - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers = .init() + path: Operations.ActionsGetWorkflowRunAttempt.Input.Path, + query: Operations.ActionsGetWorkflowRunAttempt.Input.Query = .init(), + headers: Operations.ActionsGetWorkflowRunAttempt.Input.Headers = .init() ) { self.path = path self.query = query @@ -27417,12 +27738,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.workflow_hyphen_run) + case json(Components.Schemas.WorkflowRun) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.workflow_hyphen_run { + public var json: Components.Schemas.WorkflowRun { get throws { switch self { case let .json(body): @@ -27432,12 +27753,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body + public var body: Operations.ActionsGetWorkflowRunAttempt.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflowRunAttempt.Output.Ok.Body) { self.body = body } } @@ -27446,12 +27767,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/get(actions/get-workflow-run-attempt)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok) + case ok(Operations.ActionsGetWorkflowRunAttempt.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok { + public var ok: Operations.ActionsGetWorkflowRunAttempt.Output.Ok { get throws { switch self { case let .ok(response): @@ -27506,7 +27827,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)`. - public enum actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt { + public enum ActionsListJobsForWorkflowRunAttempt { public static let id: Swift.String = "actions/list-jobs-for-workflow-run-attempt" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/path`. @@ -27514,75 +27835,75 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// The attempt number of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/path/attempt_number`. - public var attempt_number: Components.Parameters.attempt_hyphen_number + public var attemptNumber: Components.Parameters.AttemptNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. - /// - attempt_number: The attempt number of the workflow run. + /// - runId: The unique identifier of the workflow run. + /// - attemptNumber: The attempt number of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id, - attempt_number: Components.Parameters.attempt_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId, + attemptNumber: Components.Parameters.AttemptNumber ) { self.owner = owner self.repo = repo - self.run_id = run_id - self.attempt_number = attempt_number + self.runId = runId + self.attemptNumber = attemptNumber } } - public var path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path + public var path: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query + public var query: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers + public var headers: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -27590,9 +27911,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Path, - query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Input.Headers = .init() + path: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Path, + query: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Query = .init(), + headers: Operations.ActionsListJobsForWorkflowRunAttempt.Input.Headers = .init() ) { self.path = path self.query = query @@ -27604,49 +27925,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Headers + public var headers: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/content/json/jobs`. - public var jobs: [Components.Schemas.job] - /// Creates a new `jsonPayload`. + public var jobs: [Components.Schemas.Job] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - jobs: public init( - total_count: Swift.Int, - jobs: [Components.Schemas.job] + totalCount: Swift.Int, + jobs: [Components.Schemas.Job] ) { - self.total_count = total_count + self.totalCount = totalCount self.jobs = jobs } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case jobs } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -27656,15 +27977,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body + public var body: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok.Body + headers: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Headers = .init(), + body: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok.Body ) { self.headers = headers self.body = body @@ -27675,12 +27996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok) + case ok(Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run_hyphen_attempt.Output.Ok { + public var ok: Operations.ActionsListJobsForWorkflowRunAttempt.Output.Ok { get throws { switch self { case let .ok(response): @@ -27698,12 +28019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs/get(actions/list-jobs-for-workflow-run-attempt)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -27758,7 +28079,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/get(actions/download-workflow-run-attempt-logs)`. - public enum actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs { + public enum ActionsDownloadWorkflowRunAttemptLogs { public static let id: Swift.String = "actions/download-workflow-run-attempt-logs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/path`. @@ -27766,44 +28087,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// The attempt number of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/path/attempt_number`. - public var attempt_number: Components.Parameters.attempt_hyphen_number + public var attemptNumber: Components.Parameters.AttemptNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. - /// - attempt_number: The attempt number of the workflow run. + /// - runId: The unique identifier of the workflow run. + /// - attemptNumber: The attempt number of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id, - attempt_number: Components.Parameters.attempt_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId, + attemptNumber: Components.Parameters.AttemptNumber ) { self.owner = owner self.repo = repo - self.run_id = run_id - self.attempt_number = attempt_number + self.runId = runId + self.attemptNumber = attemptNumber } } - public var path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input.Path + public var path: Operations.ActionsDownloadWorkflowRunAttemptLogs.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Input.Path) { + public init(path: Operations.ActionsDownloadWorkflowRunAttemptLogs.Input.Path) { self.path = path } } @@ -27812,22 +28133,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output.Found.Headers + public var headers: Operations.ActionsDownloadWorkflowRunAttemptLogs.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output.Found.Headers = .init()) { + public init(headers: Operations.ActionsDownloadWorkflowRunAttemptLogs.Output.Found.Headers = .init()) { self.headers = headers } } @@ -27836,12 +28157,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs/get(actions/download-workflow-run-attempt-logs)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output.Found) + case found(Operations.ActionsDownloadWorkflowRunAttemptLogs.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_attempt_hyphen_logs.Output.Found { + public var found: Operations.ActionsDownloadWorkflowRunAttemptLogs.Output.Found { get throws { switch self { case let .found(response): @@ -27868,7 +28189,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)`. - public enum actions_sol_cancel_hyphen_workflow_hyphen_run { + public enum ActionsCancelWorkflowRun { public static let id: Swift.String = "actions/cancel-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/path`. @@ -27876,52 +28197,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsCancelWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsCancelWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsCancelWorkflowRun.Input.Path, + headers: Operations.ActionsCancelWorkflowRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -27932,12 +28253,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/cancel/POST/responses/202/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -27947,12 +28268,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body + public var body: Operations.ActionsCancelWorkflowRun.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body) { + public init(body: Operations.ActionsCancelWorkflowRun.Output.Accepted.Body) { self.body = body } } @@ -27961,12 +28282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output.Accepted) + case accepted(Operations.ActionsCancelWorkflowRun.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.actions_sol_cancel_hyphen_workflow_hyphen_run.Output.Accepted { + public var accepted: Operations.ActionsCancelWorkflowRun.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -27984,12 +28305,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/cancel/post(actions/cancel-workflow-run)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -28044,7 +28365,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)`. - public enum actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run { + public enum ActionsReviewCustomGatesForRun { public static let id: Swift.String = "actions/review-custom-gates-for-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/path`. @@ -28052,48 +28373,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Path + public var path: Operations.ActionsReviewCustomGatesForRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/requestBody/json/value1`. - public var value1: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_comment_hyphen_required? + public var value1: Components.Schemas.ReviewCustomGatesCommentRequired? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/requestBody/json/value2`. - public var value2: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required? - /// Creates a new `jsonPayload`. + public var value2: Components.Schemas.ReviewCustomGatesStateRequired? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_comment_hyphen_required? = nil, - value2: Components.Schemas.review_hyphen_custom_hyphen_gates_hyphen_state_hyphen_required? = nil + value1: Components.Schemas.ReviewCustomGatesCommentRequired? = nil, + value2: Components.Schemas.ReviewCustomGatesStateRequired? = nil ) { self.value1 = value1 self.value2 = value2 @@ -28101,19 +28422,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -28121,22 +28442,22 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Body.jsonPayload) + case json(Operations.ActionsReviewCustomGatesForRun.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Body + public var body: Operations.ActionsReviewCustomGatesForRun.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Path, - body: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Input.Body + path: Operations.ActionsReviewCustomGatesForRun.Input.Path, + body: Operations.ActionsReviewCustomGatesForRun.Input.Body ) { self.path = path self.body = body @@ -28152,12 +28473,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Output.NoContent) + case noContent(Operations.ActionsReviewCustomGatesForRun.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule/post(actions/review-custom-gates-for-run)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_review_hyphen_custom_hyphen_gates_hyphen_for_hyphen_run.Output.NoContent { + public var noContent: Operations.ActionsReviewCustomGatesForRun.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -28185,7 +28514,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)`. - public enum actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run { + public enum ActionsForceCancelWorkflowRun { public static let id: Swift.String = "actions/force-cancel-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/path`. @@ -28193,52 +28522,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsForceCancelWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsForceCancelWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Path, - headers: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsForceCancelWorkflowRun.Input.Path, + headers: Operations.ActionsForceCancelWorkflowRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28249,12 +28578,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/POST/responses/202/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -28264,12 +28593,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body + public var body: Operations.ActionsForceCancelWorkflowRun.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output.Accepted.Body) { + public init(body: Operations.ActionsForceCancelWorkflowRun.Output.Accepted.Body) { self.body = body } } @@ -28278,12 +28607,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output.Accepted) + case accepted(Operations.ActionsForceCancelWorkflowRun.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.actions_sol_force_hyphen_cancel_hyphen_workflow_hyphen_run.Output.Accepted { + public var accepted: Operations.ActionsForceCancelWorkflowRun.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -28301,12 +28630,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel/post(actions/force-cancel-workflow-run)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -28361,7 +28690,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/jobs/get(actions/list-jobs-for-workflow-run)`. - public enum actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run { + public enum ActionsListJobsForWorkflowRun { public static let id: Swift.String = "actions/list-jobs-for-workflow-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/path`. @@ -28369,80 +28698,80 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path + public var path: Operations.ActionsListJobsForWorkflowRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case latest = "latest" case all = "all" } /// Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/query/filter`. - public var filter: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Query.filterPayload? + public var filter: Operations.ActionsListJobsForWorkflowRun.Input.Query.FilterPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - filter: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run. - /// - 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)." + /// - perPage: 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)." public init( - filter: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Query.filterPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + filter: Operations.ActionsListJobsForWorkflowRun.Input.Query.FilterPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Query + public var query: Operations.ActionsListJobsForWorkflowRun.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers + public var headers: Operations.ActionsListJobsForWorkflowRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -28450,9 +28779,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Path, - query: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Input.Headers = .init() + path: Operations.ActionsListJobsForWorkflowRun.Input.Path, + query: Operations.ActionsListJobsForWorkflowRun.Input.Query = .init(), + headers: Operations.ActionsListJobsForWorkflowRun.Input.Headers = .init() ) { self.path = path self.query = query @@ -28464,49 +28793,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Headers + public var headers: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/content/json/jobs`. - public var jobs: [Components.Schemas.job] - /// Creates a new `jsonPayload`. + public var jobs: [Components.Schemas.Job] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - jobs: public init( - total_count: Swift.Int, - jobs: [Components.Schemas.job] + totalCount: Swift.Int, + jobs: [Components.Schemas.Job] ) { - self.total_count = total_count + self.totalCount = totalCount self.jobs = jobs } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case jobs } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/jobs/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -28516,15 +28845,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok.Body + headers: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Headers = .init(), + body: Operations.ActionsListJobsForWorkflowRun.Output.Ok.Body ) { self.headers = headers self.body = body @@ -28535,12 +28864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/jobs/get(actions/list-jobs-for-workflow-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok) + case ok(Operations.ActionsListJobsForWorkflowRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_jobs_hyphen_for_hyphen_workflow_hyphen_run.Output.Ok { + public var ok: Operations.ActionsListJobsForWorkflowRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -28595,7 +28924,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/get(actions/download-workflow-run-logs)`. - public enum actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs { + public enum ActionsDownloadWorkflowRunLogs { public static let id: Swift.String = "actions/download-workflow-run-logs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/path`. @@ -28603,37 +28932,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path + public var path: Operations.ActionsDownloadWorkflowRunLogs.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path) { + public init(path: Operations.ActionsDownloadWorkflowRunLogs.Input.Path) { self.path = path } } @@ -28642,22 +28971,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output.Found.Headers + public var headers: Operations.ActionsDownloadWorkflowRunLogs.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output.Found.Headers = .init()) { + public init(headers: Operations.ActionsDownloadWorkflowRunLogs.Output.Found.Headers = .init()) { self.headers = headers } } @@ -28666,12 +28995,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/get(actions/download-workflow-run-logs)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output.Found) + case found(Operations.ActionsDownloadWorkflowRunLogs.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.actions_sol_download_hyphen_workflow_hyphen_run_hyphen_logs.Output.Found { + public var found: Operations.ActionsDownloadWorkflowRunLogs.Output.Found { get throws { switch self { case let .found(response): @@ -28698,7 +29027,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)`. - public enum actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs { + public enum ActionsDeleteWorkflowRunLogs { public static let id: Swift.String = "actions/delete-workflow-run-logs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/DELETE/path`. @@ -28706,52 +29035,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/DELETE/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path + public var path: Operations.ActionsDeleteWorkflowRunLogs.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/logs/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Headers + public var headers: Operations.ActionsDeleteWorkflowRunLogs.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Path, - headers: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Input.Headers = .init() + path: Operations.ActionsDeleteWorkflowRunLogs.Input.Path, + headers: Operations.ActionsDeleteWorkflowRunLogs.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28767,12 +29096,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Output.NoContent) + case noContent(Operations.ActionsDeleteWorkflowRunLogs.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_workflow_hyphen_run_hyphen_logs.Output.NoContent { + public var noContent: Operations.ActionsDeleteWorkflowRunLogs.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -28790,12 +29127,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -28813,12 +29150,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/logs/delete(actions/delete-workflow-run-logs)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -28872,7 +29209,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/get(actions/get-pending-deployments-for-run)`. - public enum actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run { + public enum ActionsGetPendingDeploymentsForRun { public static let id: Swift.String = "actions/get-pending-deployments-for-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/path`. @@ -28880,52 +29217,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path + public var path: Operations.ActionsGetPendingDeploymentsForRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers + public var headers: Operations.ActionsGetPendingDeploymentsForRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers = .init() + path: Operations.ActionsGetPendingDeploymentsForRun.Input.Path, + headers: Operations.ActionsGetPendingDeploymentsForRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28936,12 +29273,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pending_hyphen_deployment]) + case json([Components.Schemas.PendingDeployment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pending_hyphen_deployment] { + public var json: [Components.Schemas.PendingDeployment] { get throws { switch self { case let .json(body): @@ -28951,12 +29288,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsGetPendingDeploymentsForRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body) { + public init(body: Operations.ActionsGetPendingDeploymentsForRun.Output.Ok.Body) { self.body = body } } @@ -28965,12 +29302,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/get(actions/get-pending-deployments-for-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok) + case ok(Operations.ActionsGetPendingDeploymentsForRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok { + public var ok: Operations.ActionsGetPendingDeploymentsForRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -29024,7 +29361,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/post(actions/review-pending-deployments-for-run)`. - public enum actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run { + public enum ActionsReviewPendingDeploymentsForRun { public static let id: Swift.String = "actions/review-pending-deployments-for-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/path`. @@ -29032,92 +29369,92 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path + public var path: Operations.ActionsReviewPendingDeploymentsForRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers + public var headers: Operations.ActionsReviewPendingDeploymentsForRun.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The list of environment ids to approve or reject /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/json/environment_ids`. - public var environment_ids: [Swift.Int] + public var environmentIds: [Swift.Int] /// Whether to approve or reject deployment to the specified environments. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case approved = "approved" case rejected = "rejected" } /// Whether to approve or reject deployment to the specified environments. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/json/state`. - public var state: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body.jsonPayload.statePayload + public var state: Operations.ActionsReviewPendingDeploymentsForRun.Input.Body.JsonPayload.StatePayload /// A comment to accompany the deployment review /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/json/comment`. public var comment: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - environment_ids: The list of environment ids to approve or reject + /// - environmentIds: The list of environment ids to approve or reject /// - state: Whether to approve or reject deployment to the specified environments. /// - comment: A comment to accompany the deployment review public init( - environment_ids: [Swift.Int], - state: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body.jsonPayload.statePayload, + environmentIds: [Swift.Int], + state: Operations.ActionsReviewPendingDeploymentsForRun.Input.Body.JsonPayload.StatePayload, comment: Swift.String ) { - self.environment_ids = environment_ids + self.environmentIds = environmentIds self.state = state self.comment = comment } public enum CodingKeys: String, CodingKey { - case environment_ids + case environmentIds = "environment_ids" case state case comment } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body.jsonPayload) + case json(Operations.ActionsReviewPendingDeploymentsForRun.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body + public var body: Operations.ActionsReviewPendingDeploymentsForRun.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -29125,9 +29462,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Path, - headers: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Headers = .init(), - body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Input.Body + path: Operations.ActionsReviewPendingDeploymentsForRun.Input.Path, + headers: Operations.ActionsReviewPendingDeploymentsForRun.Input.Headers = .init(), + body: Operations.ActionsReviewPendingDeploymentsForRun.Input.Body ) { self.path = path self.headers = headers @@ -29139,12 +29476,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/POST/responses/200/content/application\/json`. - case json([Components.Schemas.deployment]) + case json([Components.Schemas.Deployment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.deployment] { + public var json: [Components.Schemas.Deployment] { get throws { switch self { case let .json(body): @@ -29154,12 +29491,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body + public var body: Operations.ActionsReviewPendingDeploymentsForRun.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok.Body) { + public init(body: Operations.ActionsReviewPendingDeploymentsForRun.Output.Ok.Body) { self.body = body } } @@ -29168,12 +29505,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments/post(actions/review-pending-deployments-for-run)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok) + case ok(Operations.ActionsReviewPendingDeploymentsForRun.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_review_hyphen_pending_hyphen_deployments_hyphen_for_hyphen_run.Output.Ok { + public var ok: Operations.ActionsReviewPendingDeploymentsForRun.Output.Ok { get throws { switch self { case let .ok(response): @@ -29225,7 +29562,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun/post(actions/re-run-workflow)`. - public enum actions_sol_re_hyphen_run_hyphen_workflow { + public enum ActionsReRunWorkflow { public static let id: Swift.String = "actions/re-run-workflow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/path`. @@ -29233,67 +29570,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Path + public var path: Operations.ActionsReRunWorkflow.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Headers + public var headers: Operations.ActionsReRunWorkflow.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to enable debug logging for the re-run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/requestBody/json/enable_debug_logging`. - public var enable_debug_logging: Swift.Bool? - /// Creates a new `jsonPayload`. + public var enableDebugLogging: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - enable_debug_logging: Whether to enable debug logging for the re-run. - public init(enable_debug_logging: Swift.Bool? = nil) { - self.enable_debug_logging = enable_debug_logging + /// - enableDebugLogging: Whether to enable debug logging for the re-run. + public init(enableDebugLogging: Swift.Bool? = nil) { + self.enableDebugLogging = enableDebugLogging } public enum CodingKeys: String, CodingKey { - case enable_debug_logging + case enableDebugLogging = "enable_debug_logging" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Body.jsonPayload) + case json(Operations.ActionsReRunWorkflow.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Body? + public var body: Operations.ActionsReRunWorkflow.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -29301,9 +29638,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Input.Body? = nil + path: Operations.ActionsReRunWorkflow.Input.Path, + headers: Operations.ActionsReRunWorkflow.Input.Headers = .init(), + body: Operations.ActionsReRunWorkflow.Input.Body? = nil ) { self.path = path self.headers = headers @@ -29315,12 +29652,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -29330,12 +29667,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output.Created.Body + public var body: Operations.ActionsReRunWorkflow.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output.Created.Body) { + public init(body: Operations.ActionsReRunWorkflow.Output.Created.Body) { self.body = body } } @@ -29344,12 +29681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun/post(actions/re-run-workflow)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output.Created) + case created(Operations.ActionsReRunWorkflow.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_re_hyphen_run_hyphen_workflow.Output.Created { + public var created: Operations.ActionsReRunWorkflow.Output.Created { get throws { switch self { case let .created(response): @@ -29401,7 +29738,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/post(actions/re-run-workflow-failed-jobs)`. - public enum actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs { + public enum ActionsReRunWorkflowFailedJobs { public static let id: Swift.String = "actions/re-run-workflow-failed-jobs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/path`. @@ -29409,67 +29746,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Path + public var path: Operations.ActionsReRunWorkflowFailedJobs.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Headers + public var headers: Operations.ActionsReRunWorkflowFailedJobs.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to enable debug logging for the re-run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/requestBody/json/enable_debug_logging`. - public var enable_debug_logging: Swift.Bool? - /// Creates a new `jsonPayload`. + public var enableDebugLogging: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - enable_debug_logging: Whether to enable debug logging for the re-run. - public init(enable_debug_logging: Swift.Bool? = nil) { - self.enable_debug_logging = enable_debug_logging + /// - enableDebugLogging: Whether to enable debug logging for the re-run. + public init(enableDebugLogging: Swift.Bool? = nil) { + self.enableDebugLogging = enableDebugLogging } public enum CodingKeys: String, CodingKey { - case enable_debug_logging + case enableDebugLogging = "enable_debug_logging" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Body.jsonPayload) + case json(Operations.ActionsReRunWorkflowFailedJobs.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Body? + public var body: Operations.ActionsReRunWorkflowFailedJobs.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -29477,9 +29814,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Path, - headers: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Headers = .init(), - body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Input.Body? = nil + path: Operations.ActionsReRunWorkflowFailedJobs.Input.Path, + headers: Operations.ActionsReRunWorkflowFailedJobs.Input.Headers = .init(), + body: Operations.ActionsReRunWorkflowFailedJobs.Input.Body? = nil ) { self.path = path self.headers = headers @@ -29491,12 +29828,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -29506,12 +29843,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output.Created.Body + public var body: Operations.ActionsReRunWorkflowFailedJobs.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output.Created.Body) { + public init(body: Operations.ActionsReRunWorkflowFailedJobs.Output.Created.Body) { self.body = body } } @@ -29520,12 +29857,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs/post(actions/re-run-workflow-failed-jobs)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output.Created) + case created(Operations.ActionsReRunWorkflowFailedJobs.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_re_hyphen_run_hyphen_workflow_hyphen_failed_hyphen_jobs.Output.Created { + public var created: Operations.ActionsReRunWorkflowFailedJobs.Output.Created { get throws { switch self { case let .created(response): @@ -29582,7 +29919,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/timing/get(actions/get-workflow-run-usage)`. - public enum actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage { + public enum ActionsGetWorkflowRunUsage { public static let id: Swift.String = "actions/get-workflow-run-usage" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/path`. @@ -29590,52 +29927,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/path/run_id`. - public var run_id: Components.Parameters.run_hyphen_id + public var runId: Components.Parameters.RunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - run_id: The unique identifier of the workflow run. + /// - runId: The unique identifier of the workflow run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - run_id: Components.Parameters.run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + runId: Components.Parameters.RunId ) { self.owner = owner self.repo = repo - self.run_id = run_id + self.runId = runId } } - public var path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Path + public var path: Operations.ActionsGetWorkflowRunUsage.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Headers + public var headers: Operations.ActionsGetWorkflowRunUsage.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Input.Headers = .init() + path: Operations.ActionsGetWorkflowRunUsage.Input.Path, + headers: Operations.ActionsGetWorkflowRunUsage.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -29646,12 +29983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runs/{run_id}/timing/GET/responses/200/content/application\/json`. - case json(Components.Schemas.workflow_hyphen_run_hyphen_usage) + case json(Components.Schemas.WorkflowRunUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.workflow_hyphen_run_hyphen_usage { + public var json: Components.Schemas.WorkflowRunUsage { get throws { switch self { case let .json(body): @@ -29661,12 +29998,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output.Ok.Body + public var body: Operations.ActionsGetWorkflowRunUsage.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflowRunUsage.Output.Ok.Body) { self.body = body } } @@ -29675,12 +30012,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runs/{run_id}/timing/get(actions/get-workflow-run-usage)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output.Ok) + case ok(Operations.ActionsGetWorkflowRunUsage.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow_hyphen_run_hyphen_usage.Output.Ok { + public var ok: Operations.ActionsGetWorkflowRunUsage.Output.Ok { get throws { switch self { case let .ok(response): @@ -29735,7 +30072,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/get(actions/list-repo-secrets)`. - public enum actions_sol_list_hyphen_repo_hyphen_secrets { + public enum ActionsListRepoSecrets { public static let id: Swift.String = "actions/list-repo-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/path`. @@ -29743,61 +30080,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Path + public var path: Operations.ActionsListRepoSecrets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Query + public var query: Operations.ActionsListRepoSecrets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Headers + public var headers: Operations.ActionsListRepoSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -29805,9 +30142,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() + path: Operations.ActionsListRepoSecrets.Input.Path, + query: Operations.ActionsListRepoSecrets.Input.Query = .init(), + headers: Operations.ActionsListRepoSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -29819,49 +30156,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.ActionsListRepoSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.actions_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.ActionsSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.actions_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.ActionsSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -29871,15 +30208,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + public var body: Operations.ActionsListRepoSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + headers: Operations.ActionsListRepoSecrets.Output.Ok.Headers = .init(), + body: Operations.ActionsListRepoSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -29890,12 +30227,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/get(actions/list-repo-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok) + case ok(Operations.ActionsListRepoSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_secrets.Output.Ok { + public var ok: Operations.ActionsListRepoSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -29950,7 +30287,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/public-key/get(actions/get-repo-public-key)`. - public enum actions_sol_get_hyphen_repo_hyphen_public_hyphen_key { + public enum ActionsGetRepoPublicKey { public static let id: Swift.String = "actions/get-repo-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/path`. @@ -29958,45 +30295,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path + public var path: Operations.ActionsGetRepoPublicKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.ActionsGetRepoPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.ActionsGetRepoPublicKey.Input.Path, + headers: Operations.ActionsGetRepoPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30007,12 +30344,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_public_hyphen_key) + case json(Components.Schemas.ActionsPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_public_hyphen_key { + public var json: Components.Schemas.ActionsPublicKey { get throws { switch self { case let .json(body): @@ -30022,12 +30359,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.ActionsGetRepoPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.ActionsGetRepoPublicKey.Output.Ok.Body) { self.body = body } } @@ -30036,12 +30373,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/public-key/get(actions/get-repo-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.ActionsGetRepoPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.ActionsGetRepoPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -30095,7 +30432,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/get(actions/get-repo-secret)`. - public enum actions_sol_get_hyphen_repo_hyphen_secret { + public enum ActionsGetRepoSecret { public static let id: Swift.String = "actions/get-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/path`. @@ -30103,52 +30440,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.ActionsGetRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.ActionsGetRepoSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() + path: Operations.ActionsGetRepoSecret.Input.Path, + headers: Operations.ActionsGetRepoSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30159,12 +30496,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_secret) + case json(Components.Schemas.ActionsSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_secret { + public var json: Components.Schemas.ActionsSecret { get throws { switch self { case let .json(body): @@ -30174,12 +30511,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + public var body: Operations.ActionsGetRepoSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.ActionsGetRepoSecret.Output.Ok.Body) { self.body = body } } @@ -30188,12 +30525,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/get(actions/get-repo-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output.Ok) + case ok(Operations.ActionsGetRepoSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_repo_hyphen_secret.Output.Ok { + public var ok: Operations.ActionsGetRepoSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -30248,7 +30585,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)`. - public enum actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret { + public enum ActionsCreateOrUpdateRepoSecret { public static let id: Swift.String = "actions/create-or-update-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/path`. @@ -30256,77 +30593,77 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.ActionsCreateOrUpdateRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.ActionsCreateOrUpdateRepoSecret.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String + public var encryptedValue: Swift.String /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String - /// Creates a new `jsonPayload`. + public var keyId: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. public init( - encrypted_value: Swift.String, - key_id: Swift.String + encryptedValue: Swift.String, + keyId: Swift.String ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.ActionsCreateOrUpdateRepoSecret.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + public var body: Operations.ActionsCreateOrUpdateRepoSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -30334,9 +30671,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + path: Operations.ActionsCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateRepoSecret.Input.Body ) { self.path = path self.headers = headers @@ -30348,12 +30685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -30363,12 +30700,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + public var body: Operations.ActionsCreateOrUpdateRepoSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body) { + public init(body: Operations.ActionsCreateOrUpdateRepoSecret.Output.Created.Body) { self.body = body } } @@ -30377,12 +30714,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created) + case created(Operations.ActionsCreateOrUpdateRepoSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created { + public var created: Operations.ActionsCreateOrUpdateRepoSecret.Output.Created { get throws { switch self { case let .created(response): @@ -30404,12 +30741,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsCreateOrUpdateRepoSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/put(actions/create-or-update-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsCreateOrUpdateRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -30463,7 +30808,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)`. - public enum actions_sol_delete_hyphen_repo_hyphen_secret { + public enum ActionsDeleteRepoSecret { public static let id: Swift.String = "actions/delete-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/DELETE/path`. @@ -30471,37 +30816,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.ActionsDeleteRepoSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Input.Path) { + public init(path: Operations.ActionsDeleteRepoSecret.Input.Path) { self.path = path } } @@ -30515,12 +30860,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsDeleteRepoSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/secrets/{secret_name}/delete(actions/delete-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsDeleteRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -30549,7 +30902,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/get(actions/list-repo-variables)`. - public enum actions_sol_list_hyphen_repo_hyphen_variables { + public enum ActionsListRepoVariables { public static let id: Swift.String = "actions/list-repo-variables" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/path`. @@ -30557,61 +30910,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Path + public var path: Operations.ActionsListRepoVariables.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/query`. public struct Query: Sendable, Hashable { /// The number of results per page (max 30). 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/query/per_page`. - public var per_page: Components.Parameters.variables_hyphen_per_hyphen_page? + public var perPage: Components.Parameters.VariablesPerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - per_page: The number of results per page (max 30). 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)." + /// - perPage: The number of results per page (max 30). 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)." public init( - per_page: Components.Parameters.variables_hyphen_per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.VariablesPerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Query + public var query: Operations.ActionsListRepoVariables.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Headers + public var headers: Operations.ActionsListRepoVariables.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -30619,9 +30972,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Input.Headers = .init() + path: Operations.ActionsListRepoVariables.Input.Path, + query: Operations.ActionsListRepoVariables.Input.Query = .init(), + headers: Operations.ActionsListRepoVariables.Input.Headers = .init() ) { self.path = path self.query = query @@ -30633,49 +30986,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Headers + public var headers: Operations.ActionsListRepoVariables.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/content/json/variables`. - public var variables: [Components.Schemas.actions_hyphen_variable] - /// Creates a new `jsonPayload`. + public var variables: [Components.Schemas.ActionsVariable] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - variables: public init( - total_count: Swift.Int, - variables: [Components.Schemas.actions_hyphen_variable] + totalCount: Swift.Int, + variables: [Components.Schemas.ActionsVariable] ) { - self.total_count = total_count + self.totalCount = totalCount self.variables = variables } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case variables } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoVariables.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoVariables.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -30685,15 +31038,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body + public var body: Operations.ActionsListRepoVariables.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok.Body + headers: Operations.ActionsListRepoVariables.Output.Ok.Headers = .init(), + body: Operations.ActionsListRepoVariables.Output.Ok.Body ) { self.headers = headers self.body = body @@ -30704,12 +31057,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/get(actions/list-repo-variables)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok) + case ok(Operations.ActionsListRepoVariables.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_variables.Output.Ok { + public var ok: Operations.ActionsListRepoVariables.Output.Ok { get throws { switch self { case let .ok(response): @@ -30763,7 +31116,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/post(actions/create-repo-variable)`. - public enum actions_sol_create_hyphen_repo_hyphen_variable { + public enum ActionsCreateRepoVariable { public static let id: Swift.String = "actions/create-repo-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/path`. @@ -30771,41 +31124,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Path + public var path: Operations.ActionsCreateRepoVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Headers + public var headers: Operations.ActionsCreateRepoVariable.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/requestBody/json/name`. @@ -30814,7 +31167,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/requestBody/json/value`. public var value: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. @@ -30832,9 +31185,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsCreateRepoVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Body + public var body: Operations.ActionsCreateRepoVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -30842,9 +31195,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Input.Body + path: Operations.ActionsCreateRepoVariable.Input.Path, + headers: Operations.ActionsCreateRepoVariable.Input.Headers = .init(), + body: Operations.ActionsCreateRepoVariable.Input.Body ) { self.path = path self.headers = headers @@ -30856,12 +31209,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -30871,12 +31224,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output.Created.Body + public var body: Operations.ActionsCreateRepoVariable.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output.Created.Body) { + public init(body: Operations.ActionsCreateRepoVariable.Output.Created.Body) { self.body = body } } @@ -30885,12 +31238,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/post(actions/create-repo-variable)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output.Created) + case created(Operations.ActionsCreateRepoVariable.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_repo_hyphen_variable.Output.Created { + public var created: Operations.ActionsCreateRepoVariable.Output.Created { get throws { switch self { case let .created(response): @@ -30944,7 +31297,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/get(actions/get-repo-variable)`. - public enum actions_sol_get_hyphen_repo_hyphen_variable { + public enum ActionsGetRepoVariable { public static let id: Swift.String = "actions/get-repo-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/path`. @@ -30952,15 +31305,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: @@ -30968,36 +31321,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: The name of the variable. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - name: Components.Parameters.variable_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + name: Components.Parameters.VariableName ) { self.owner = owner self.repo = repo self.name = name } } - public var path: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Path + public var path: Operations.ActionsGetRepoVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Headers + public var headers: Operations.ActionsGetRepoVariable.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Input.Headers = .init() + path: Operations.ActionsGetRepoVariable.Input.Path, + headers: Operations.ActionsGetRepoVariable.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31008,12 +31361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_variable) + case json(Components.Schemas.ActionsVariable) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_variable { + public var json: Components.Schemas.ActionsVariable { get throws { switch self { case let .json(body): @@ -31023,12 +31376,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output.Ok.Body + public var body: Operations.ActionsGetRepoVariable.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output.Ok.Body) { + public init(body: Operations.ActionsGetRepoVariable.Output.Ok.Body) { self.body = body } } @@ -31037,12 +31390,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/get(actions/get-repo-variable)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output.Ok) + case ok(Operations.ActionsGetRepoVariable.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_repo_hyphen_variable.Output.Ok { + public var ok: Operations.ActionsGetRepoVariable.Output.Ok { get throws { switch self { case let .ok(response): @@ -31096,7 +31449,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)`. - public enum actions_sol_update_hyphen_repo_hyphen_variable { + public enum ActionsUpdateRepoVariable { public static let id: Swift.String = "actions/update-repo-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/path`. @@ -31104,15 +31457,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: @@ -31120,20 +31473,20 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: The name of the variable. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - name: Components.Parameters.variable_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + name: Components.Parameters.VariableName ) { self.owner = owner self.repo = repo self.name = name } } - public var path: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Path + public var path: Operations.ActionsUpdateRepoVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/requestBody/json/name`. @@ -31142,7 +31495,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/requestBody/json/value`. public var value: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. @@ -31160,17 +31513,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/PATCH/requestBody/content/application\/json`. - case json(Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsUpdateRepoVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Body + public var body: Operations.ActionsUpdateRepoVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Input.Body + path: Operations.ActionsUpdateRepoVariable.Input.Path, + body: Operations.ActionsUpdateRepoVariable.Input.Body ) { self.path = path self.body = body @@ -31186,12 +31539,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_update_hyphen_repo_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsUpdateRepoVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/patch(actions/update-repo-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_update_hyphen_repo_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsUpdateRepoVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -31220,7 +31581,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)`. - public enum actions_sol_delete_hyphen_repo_hyphen_variable { + public enum ActionsDeleteRepoVariable { public static let id: Swift.String = "actions/delete-repo-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/DELETE/path`. @@ -31228,15 +31589,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/variables/{name}/DELETE/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: @@ -31244,21 +31605,21 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: The name of the variable. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - name: Components.Parameters.variable_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + name: Components.Parameters.VariableName ) { self.owner = owner self.repo = repo self.name = name } } - public var path: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input.Path + public var path: Operations.ActionsDeleteRepoVariable.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Input.Path) { + public init(path: Operations.ActionsDeleteRepoVariable.Input.Path) { self.path = path } } @@ -31272,12 +31633,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsDeleteRepoVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/variables/{name}/delete(actions/delete-repo-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_repo_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsDeleteRepoVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -31306,7 +31675,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/get(actions/list-repo-workflows)`. - public enum actions_sol_list_hyphen_repo_hyphen_workflows { + public enum ActionsListRepoWorkflows { public static let id: Swift.String = "actions/list-repo-workflows" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/path`. @@ -31314,61 +31683,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Path + public var path: Operations.ActionsListRepoWorkflows.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Query + public var query: Operations.ActionsListRepoWorkflows.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Headers + public var headers: Operations.ActionsListRepoWorkflows.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -31376,9 +31745,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Path, - query: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Input.Headers = .init() + path: Operations.ActionsListRepoWorkflows.Input.Path, + query: Operations.ActionsListRepoWorkflows.Input.Query = .init(), + headers: Operations.ActionsListRepoWorkflows.Input.Headers = .init() ) { self.path = path self.query = query @@ -31390,49 +31759,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Headers + public var headers: Operations.ActionsListRepoWorkflows.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/content/json/workflows`. - public var workflows: [Components.Schemas.workflow] - /// Creates a new `jsonPayload`. + public var workflows: [Components.Schemas.Workflow] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - workflows: public init( - total_count: Swift.Int, - workflows: [Components.Schemas.workflow] + totalCount: Swift.Int, + workflows: [Components.Schemas.Workflow] ) { - self.total_count = total_count + self.totalCount = totalCount self.workflows = workflows } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case workflows } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListRepoWorkflows.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListRepoWorkflows.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -31442,15 +31811,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body + public var body: Operations.ActionsListRepoWorkflows.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok.Body + headers: Operations.ActionsListRepoWorkflows.Output.Ok.Headers = .init(), + body: Operations.ActionsListRepoWorkflows.Output.Ok.Body ) { self.headers = headers self.body = body @@ -31461,12 +31830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/get(actions/list-repo-workflows)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok) + case ok(Operations.ActionsListRepoWorkflows.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_repo_hyphen_workflows.Output.Ok { + public var ok: Operations.ActionsListRepoWorkflows.Output.Ok { get throws { switch self { case let .ok(response): @@ -31521,7 +31890,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/get(actions/get-workflow)`. - public enum actions_sol_get_hyphen_workflow { + public enum ActionsGetWorkflow { public static let id: Swift.String = "actions/get-workflow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/path`. @@ -31529,13 +31898,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -31572,44 +31941,44 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_get_hyphen_workflow.Input.Path + public var path: Operations.ActionsGetWorkflow.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow.Input.Headers + public var headers: Operations.ActionsGetWorkflow.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow.Input.Headers = .init() + path: Operations.ActionsGetWorkflow.Input.Path, + headers: Operations.ActionsGetWorkflow.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31620,12 +31989,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.workflow) + case json(Components.Schemas.Workflow) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.workflow { + public var json: Components.Schemas.Workflow { get throws { switch self { case let .json(body): @@ -31635,12 +32004,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow.Output.Ok.Body + public var body: Operations.ActionsGetWorkflow.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflow.Output.Ok.Body) { self.body = body } } @@ -31649,12 +32018,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/get(actions/get-workflow)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow.Output.Ok) + case ok(Operations.ActionsGetWorkflow.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow.Output.Ok { + public var ok: Operations.ActionsGetWorkflow.Output.Ok { get throws { switch self { case let .ok(response): @@ -31706,7 +32075,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)`. - public enum actions_sol_disable_hyphen_workflow { + public enum ActionsDisableWorkflow { public static let id: Swift.String = "actions/disable-workflow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/PUT/path`. @@ -31714,13 +32083,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -31757,29 +32126,29 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/PUT/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_disable_hyphen_workflow.Input.Path + public var path: Operations.ActionsDisableWorkflow.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_disable_hyphen_workflow.Input.Path) { + public init(path: Operations.ActionsDisableWorkflow.Input.Path) { self.path = path } } @@ -31793,12 +32162,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_disable_hyphen_workflow.Output.NoContent) + case noContent(Operations.ActionsDisableWorkflow.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable/put(actions/disable-workflow)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_disable_hyphen_workflow.Output.NoContent { + public var noContent: Operations.ActionsDisableWorkflow.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -31827,7 +32204,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)`. - public enum actions_sol_create_hyphen_workflow_hyphen_dispatch { + public enum ActionsCreateWorkflowDispatch { public static let id: Swift.String = "actions/create-workflow-dispatch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/path`. @@ -31835,13 +32212,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -31878,28 +32255,28 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Path + public var path: Operations.ActionsCreateWorkflowDispatch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The git reference for the workflow. The reference can be a branch or tag name. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody/json/ref`. @@ -31907,10 +32284,10 @@ public enum Operations { /// Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody/json/inputs`. - public struct inputsPayload: Codable, Hashable, Sendable { + public struct InputsPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `inputsPayload`. + /// Creates a new `InputsPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -31927,15 +32304,15 @@ public enum Operations { /// Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody/json/inputs`. - public var inputs: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body.jsonPayload.inputsPayload? - /// Creates a new `jsonPayload`. + public var inputs: Operations.ActionsCreateWorkflowDispatch.Input.Body.JsonPayload.InputsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - ref: The git reference for the workflow. The reference can be a branch or tag name. /// - inputs: Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. public init( ref: Swift.String, - inputs: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body.jsonPayload.inputsPayload? = nil + inputs: Operations.ActionsCreateWorkflowDispatch.Input.Body.JsonPayload.InputsPayload? = nil ) { self.ref = ref self.inputs = inputs @@ -31946,17 +32323,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body.jsonPayload) + case json(Operations.ActionsCreateWorkflowDispatch.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body + public var body: Operations.ActionsCreateWorkflowDispatch.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Path, - body: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Input.Body + path: Operations.ActionsCreateWorkflowDispatch.Input.Path, + body: Operations.ActionsCreateWorkflowDispatch.Input.Body ) { self.path = path self.body = body @@ -31972,12 +32349,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Output.NoContent) + case noContent(Operations.ActionsCreateWorkflowDispatch.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches/post(actions/create-workflow-dispatch)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_create_hyphen_workflow_hyphen_dispatch.Output.NoContent { + public var noContent: Operations.ActionsCreateWorkflowDispatch.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -32004,7 +32389,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)`. - public enum actions_sol_enable_hyphen_workflow { + public enum ActionsEnableWorkflow { public static let id: Swift.String = "actions/enable-workflow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/PUT/path`. @@ -32012,13 +32397,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -32055,29 +32440,29 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/PUT/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_enable_hyphen_workflow.Input.Path + public var path: Operations.ActionsEnableWorkflow.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_enable_hyphen_workflow.Input.Path) { + public init(path: Operations.ActionsEnableWorkflow.Input.Path) { self.path = path } } @@ -32091,12 +32476,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_enable_hyphen_workflow.Output.NoContent) + case noContent(Operations.ActionsEnableWorkflow.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable/put(actions/enable-workflow)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_enable_hyphen_workflow.Output.NoContent { + public var noContent: Operations.ActionsEnableWorkflow.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -32127,7 +32520,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/get(actions/list-workflow-runs)`. - public enum actions_sol_list_hyphen_workflow_hyphen_runs { + public enum ActionsListWorkflowRuns { public static let id: Swift.String = "actions/list-workflow-runs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/path`. @@ -32135,13 +32528,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -32178,50 +32571,50 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Path + public var path: Operations.ActionsListWorkflowRuns.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query`. public struct Query: Sendable, Hashable { /// Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/actor`. - public var actor: Components.Parameters.actor? + public var actor: Components.Parameters.Actor? /// Returns workflow runs associated with a branch. Use the name of the branch of the `push`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/branch`. - public var branch: Components.Parameters.workflow_hyphen_run_hyphen_branch? + public var branch: Components.Parameters.WorkflowRunBranch? /// Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/event`. - public var event: Components.Parameters.event? + public var event: Components.Parameters.Event? /// - Remark: Generated from `#/components/parameters/workflow-run-status`. - @frozen public enum workflow_hyphen_run_hyphen_status: String, Codable, Hashable, Sendable { + @frozen public enum WorkflowRunStatus: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" - case action_required = "action_required" + case actionRequired = "action_required" case cancelled = "cancelled" case failure = "failure" case neutral = "neutral" case skipped = "skipped" case stale = "stale" case success = "success" - case timed_out = "timed_out" - case in_progress = "in_progress" + case timedOut = "timed_out" + case inProgress = "in_progress" case queued = "queued" case requested = "requested" case waiting = "waiting" @@ -32230,31 +32623,31 @@ public enum Operations { /// Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/status`. - public var status: Components.Parameters.workflow_hyphen_run_hyphen_status? + public var status: Components.Parameters.WorkflowRunStatus? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/created`. - public var created: Components.Parameters.created? + public var created: Components.Parameters.Created? /// If `true` pull requests are omitted from the response (empty array). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/exclude_pull_requests`. - public var exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? + public var excludePullRequests: Components.Parameters.ExcludePullRequests? /// Returns workflow runs with the `check_suite_id` that you specify. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/check_suite_id`. - public var check_suite_id: Components.Parameters.workflow_hyphen_run_hyphen_check_hyphen_suite_hyphen_id? + public var checkSuiteId: Components.Parameters.WorkflowRunCheckSuiteId? /// Only returns workflow runs that are associated with the specified `head_sha`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/query/head_sha`. - public var head_sha: Components.Parameters.workflow_hyphen_run_hyphen_head_hyphen_sha? + public var headSha: Components.Parameters.WorkflowRunHeadSha? /// Creates a new `Query`. /// /// - Parameters: @@ -32262,49 +32655,49 @@ public enum Operations { /// - branch: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. /// - event: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." /// - status: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`. - /// - 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)." + /// - perPage: 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)." /// - created: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." - /// - exclude_pull_requests: If `true` pull requests are omitted from the response (empty array). - /// - check_suite_id: Returns workflow runs with the `check_suite_id` that you specify. - /// - head_sha: Only returns workflow runs that are associated with the specified `head_sha`. + /// - excludePullRequests: If `true` pull requests are omitted from the response (empty array). + /// - checkSuiteId: Returns workflow runs with the `check_suite_id` that you specify. + /// - headSha: Only returns workflow runs that are associated with the specified `head_sha`. public init( - actor: Components.Parameters.actor? = nil, - branch: Components.Parameters.workflow_hyphen_run_hyphen_branch? = nil, - event: Components.Parameters.event? = nil, - status: Components.Parameters.workflow_hyphen_run_hyphen_status? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - created: Components.Parameters.created? = nil, - exclude_pull_requests: Components.Parameters.exclude_hyphen_pull_hyphen_requests? = nil, - check_suite_id: Components.Parameters.workflow_hyphen_run_hyphen_check_hyphen_suite_hyphen_id? = nil, - head_sha: Components.Parameters.workflow_hyphen_run_hyphen_head_hyphen_sha? = nil + actor: Components.Parameters.Actor? = nil, + branch: Components.Parameters.WorkflowRunBranch? = nil, + event: Components.Parameters.Event? = nil, + status: Components.Parameters.WorkflowRunStatus? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + created: Components.Parameters.Created? = nil, + excludePullRequests: Components.Parameters.ExcludePullRequests? = nil, + checkSuiteId: Components.Parameters.WorkflowRunCheckSuiteId? = nil, + headSha: Components.Parameters.WorkflowRunHeadSha? = nil ) { self.actor = actor self.branch = branch self.event = event self.status = status - self.per_page = per_page + self.perPage = perPage self.page = page self.created = created - self.exclude_pull_requests = exclude_pull_requests - self.check_suite_id = check_suite_id - self.head_sha = head_sha + self.excludePullRequests = excludePullRequests + self.checkSuiteId = checkSuiteId + self.headSha = headSha } } - public var query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Query + public var query: Operations.ActionsListWorkflowRuns.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Headers + public var headers: Operations.ActionsListWorkflowRuns.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -32312,9 +32705,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Path, - query: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Input.Headers = .init() + path: Operations.ActionsListWorkflowRuns.Input.Path, + query: Operations.ActionsListWorkflowRuns.Input.Query = .init(), + headers: Operations.ActionsListWorkflowRuns.Input.Headers = .init() ) { self.path = path self.query = query @@ -32326,49 +32719,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Headers + public var headers: Operations.ActionsListWorkflowRuns.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/content/json/workflow_runs`. - public var workflow_runs: [Components.Schemas.workflow_hyphen_run] - /// Creates a new `jsonPayload`. + public var workflowRuns: [Components.Schemas.WorkflowRun] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - workflow_runs: + /// - totalCount: + /// - workflowRuns: public init( - total_count: Swift.Int, - workflow_runs: [Components.Schemas.workflow_hyphen_run] + totalCount: Swift.Int, + workflowRuns: [Components.Schemas.WorkflowRun] ) { - self.total_count = total_count - self.workflow_runs = workflow_runs + self.totalCount = totalCount + self.workflowRuns = workflowRuns } public enum CodingKeys: String, CodingKey { - case total_count - case workflow_runs + case totalCount = "total_count" + case workflowRuns = "workflow_runs" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListWorkflowRuns.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListWorkflowRuns.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -32378,15 +32771,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body + public var body: Operations.ActionsListWorkflowRuns.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok.Body + headers: Operations.ActionsListWorkflowRuns.Output.Ok.Headers = .init(), + body: Operations.ActionsListWorkflowRuns.Output.Ok.Body ) { self.headers = headers self.body = body @@ -32397,12 +32790,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs/get(actions/list-workflow-runs)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok) + case ok(Operations.ActionsListWorkflowRuns.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_workflow_hyphen_runs.Output.Ok { + public var ok: Operations.ActionsListWorkflowRuns.Output.Ok { get throws { switch self { case let .ok(response): @@ -32461,7 +32854,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/get(actions/get-workflow-usage)`. - public enum actions_sol_get_hyphen_workflow_hyphen_usage { + public enum ActionsGetWorkflowUsage { public static let id: Swift.String = "actions/get-workflow-usage" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/path`. @@ -32469,13 +32862,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/workflow-id`. - @frozen public enum workflow_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum WorkflowId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/workflow-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/workflow-id/case2`. @@ -32512,44 +32905,44 @@ public enum Operations { /// The ID of the workflow. You can also pass the workflow file name as a string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/path/workflow_id`. - public var workflow_id: Components.Parameters.workflow_hyphen_id + public var workflowId: Components.Parameters.WorkflowId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - workflow_id: The ID of the workflow. You can also pass the workflow file name as a string. + /// - workflowId: The ID of the workflow. You can also pass the workflow file name as a string. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - workflow_id: Components.Parameters.workflow_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + workflowId: Components.Parameters.WorkflowId ) { self.owner = owner self.repo = repo - self.workflow_id = workflow_id + self.workflowId = workflowId } } - public var path: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Path + public var path: Operations.ActionsGetWorkflowUsage.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Headers + public var headers: Operations.ActionsGetWorkflowUsage.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Path, - headers: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Input.Headers = .init() + path: Operations.ActionsGetWorkflowUsage.Input.Path, + headers: Operations.ActionsGetWorkflowUsage.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -32560,12 +32953,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/GET/responses/200/content/application\/json`. - case json(Components.Schemas.workflow_hyphen_usage) + case json(Components.Schemas.WorkflowUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.workflow_hyphen_usage { + public var json: Components.Schemas.WorkflowUsage { get throws { switch self { case let .json(body): @@ -32575,12 +32968,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output.Ok.Body + public var body: Operations.ActionsGetWorkflowUsage.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output.Ok.Body) { + public init(body: Operations.ActionsGetWorkflowUsage.Output.Ok.Body) { self.body = body } } @@ -32589,12 +32982,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing/get(actions/get-workflow-usage)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output.Ok) + case ok(Operations.ActionsGetWorkflowUsage.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_workflow_hyphen_usage.Output.Ok { + public var ok: Operations.ActionsGetWorkflowUsage.Output.Ok { get throws { switch self { case let .ok(response): @@ -32649,7 +33042,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/get(actions/list-environment-secrets)`. - public enum actions_sol_list_hyphen_environment_hyphen_secrets { + public enum ActionsListEnvironmentSecrets { public static let id: Swift.String = "actions/list-environment-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/path`. @@ -32657,68 +33050,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Path + public var path: Operations.ActionsListEnvironmentSecrets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Query + public var query: Operations.ActionsListEnvironmentSecrets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Headers + public var headers: Operations.ActionsListEnvironmentSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -32726,9 +33119,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Path, - query: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Input.Headers = .init() + path: Operations.ActionsListEnvironmentSecrets.Input.Path, + query: Operations.ActionsListEnvironmentSecrets.Input.Query = .init(), + headers: Operations.ActionsListEnvironmentSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -32740,49 +33133,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.ActionsListEnvironmentSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.actions_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.ActionsSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.actions_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.ActionsSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListEnvironmentSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListEnvironmentSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -32792,15 +33185,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body + public var body: Operations.ActionsListEnvironmentSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok.Body + headers: Operations.ActionsListEnvironmentSecrets.Output.Ok.Headers = .init(), + body: Operations.ActionsListEnvironmentSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -32811,12 +33204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/get(actions/list-environment-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok) + case ok(Operations.ActionsListEnvironmentSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_environment_hyphen_secrets.Output.Ok { + public var ok: Operations.ActionsListEnvironmentSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -32871,7 +33264,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/get(actions/get-environment-public-key)`. - public enum actions_sol_get_hyphen_environment_hyphen_public_hyphen_key { + public enum ActionsGetEnvironmentPublicKey { public static let id: Swift.String = "actions/get-environment-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/path`. @@ -32879,52 +33272,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Path + public var path: Operations.ActionsGetEnvironmentPublicKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.ActionsGetEnvironmentPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.ActionsGetEnvironmentPublicKey.Input.Path, + headers: Operations.ActionsGetEnvironmentPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -32935,12 +33328,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_public_hyphen_key) + case json(Components.Schemas.ActionsPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_public_hyphen_key { + public var json: Components.Schemas.ActionsPublicKey { get throws { switch self { case let .json(body): @@ -32950,12 +33343,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.ActionsGetEnvironmentPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.ActionsGetEnvironmentPublicKey.Output.Ok.Body) { self.body = body } } @@ -32964,12 +33357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key/get(actions/get-environment-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.ActionsGetEnvironmentPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_environment_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.ActionsGetEnvironmentPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -33023,7 +33416,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/get(actions/get-environment-secret)`. - public enum actions_sol_get_hyphen_environment_hyphen_secret { + public enum ActionsGetEnvironmentSecret { public static let id: Swift.String = "actions/get-environment-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/path`. @@ -33031,59 +33424,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - secret_name: The name of the secret. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.secret_name = secret_name + self.environmentName = environmentName + self.secretName = secretName } } - public var path: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Path + public var path: Operations.ActionsGetEnvironmentSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Headers + public var headers: Operations.ActionsGetEnvironmentSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Input.Headers = .init() + path: Operations.ActionsGetEnvironmentSecret.Input.Path, + headers: Operations.ActionsGetEnvironmentSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -33094,12 +33487,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_secret) + case json(Components.Schemas.ActionsSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_secret { + public var json: Components.Schemas.ActionsSecret { get throws { switch self { case let .json(body): @@ -33109,12 +33502,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output.Ok.Body + public var body: Operations.ActionsGetEnvironmentSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.ActionsGetEnvironmentSecret.Output.Ok.Body) { self.body = body } } @@ -33123,12 +33516,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/get(actions/get-environment-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output.Ok) + case ok(Operations.ActionsGetEnvironmentSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_environment_hyphen_secret.Output.Ok { + public var ok: Operations.ActionsGetEnvironmentSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -33183,7 +33576,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)`. - public enum actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret { + public enum ActionsCreateOrUpdateEnvironmentSecret { public static let id: Swift.String = "actions/create-or-update-environment-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/path`. @@ -33191,84 +33584,84 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - secret_name: The name of the secret. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.secret_name = secret_name + self.environmentName = environmentName + self.secretName = secretName } } - public var path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Path + public var path: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Headers + public var headers: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String + public var encryptedValue: Swift.String /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String - /// Creates a new `jsonPayload`. + public var keyId: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. public init( - encrypted_value: Swift.String, - key_id: Swift.String + encryptedValue: Swift.String, + keyId: Swift.String ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Body + public var body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -33276,9 +33669,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Path, - headers: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Input.Body + path: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Path, + headers: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Headers = .init(), + body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Input.Body ) { self.path = path self.headers = headers @@ -33290,12 +33683,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -33305,12 +33698,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.Created.Body + public var body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.Created.Body) { + public init(body: Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.Created.Body) { self.body = body } } @@ -33319,12 +33712,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.Created) + case created(Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.Created { + public var created: Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.Created { get throws { switch self { case let .created(response): @@ -33346,12 +33739,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/put(actions/create-or-update-environment-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_create_hyphen_or_hyphen_update_hyphen_environment_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsCreateOrUpdateEnvironmentSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -33405,7 +33806,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)`. - public enum actions_sol_delete_hyphen_environment_hyphen_secret { + public enum ActionsDeleteEnvironmentSecret { public static let id: Swift.String = "actions/delete-environment-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/DELETE/path`. @@ -33413,44 +33814,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/DELETE/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - secret_name: The name of the secret. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.secret_name = secret_name + self.environmentName = environmentName + self.secretName = secretName } } - public var path: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input.Path + public var path: Operations.ActionsDeleteEnvironmentSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Input.Path) { + public init(path: Operations.ActionsDeleteEnvironmentSecret.Input.Path) { self.path = path } } @@ -33464,12 +33865,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Output.NoContent) + case noContent(Operations.ActionsDeleteEnvironmentSecret.Output.NoContent) + /// Default response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}/delete(actions/delete-environment-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_environment_hyphen_secret.Output.NoContent { + public var noContent: Operations.ActionsDeleteEnvironmentSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -33498,7 +33907,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/get(actions/list-environment-variables)`. - public enum actions_sol_list_hyphen_environment_hyphen_variables { + public enum ActionsListEnvironmentVariables { public static let id: Swift.String = "actions/list-environment-variables" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/path`. @@ -33506,68 +33915,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Path + public var path: Operations.ActionsListEnvironmentVariables.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/query`. public struct Query: Sendable, Hashable { /// The number of results per page (max 30). 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/query/per_page`. - public var per_page: Components.Parameters.variables_hyphen_per_hyphen_page? + public var perPage: Components.Parameters.VariablesPerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - per_page: The number of results per page (max 30). 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)." + /// - perPage: The number of results per page (max 30). 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)." public init( - per_page: Components.Parameters.variables_hyphen_per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.VariablesPerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Query + public var query: Operations.ActionsListEnvironmentVariables.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Headers + public var headers: Operations.ActionsListEnvironmentVariables.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -33575,9 +33984,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Path, - query: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Query = .init(), - headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Input.Headers = .init() + path: Operations.ActionsListEnvironmentVariables.Input.Path, + query: Operations.ActionsListEnvironmentVariables.Input.Query = .init(), + headers: Operations.ActionsListEnvironmentVariables.Input.Headers = .init() ) { self.path = path self.query = query @@ -33589,49 +33998,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Headers + public var headers: Operations.ActionsListEnvironmentVariables.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/content/json/variables`. - public var variables: [Components.Schemas.actions_hyphen_variable] - /// Creates a new `jsonPayload`. + public var variables: [Components.Schemas.ActionsVariable] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - variables: public init( - total_count: Swift.Int, - variables: [Components.Schemas.actions_hyphen_variable] + totalCount: Swift.Int, + variables: [Components.Schemas.ActionsVariable] ) { - self.total_count = total_count + self.totalCount = totalCount self.variables = variables } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case variables } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/GET/responses/200/content/application\/json`. - case json(Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body.jsonPayload) + case json(Operations.ActionsListEnvironmentVariables.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body.jsonPayload { + public var json: Operations.ActionsListEnvironmentVariables.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -33641,15 +34050,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body + public var body: Operations.ActionsListEnvironmentVariables.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Headers = .init(), - body: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok.Body + headers: Operations.ActionsListEnvironmentVariables.Output.Ok.Headers = .init(), + body: Operations.ActionsListEnvironmentVariables.Output.Ok.Body ) { self.headers = headers self.body = body @@ -33660,12 +34069,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/get(actions/list-environment-variables)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok) + case ok(Operations.ActionsListEnvironmentVariables.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_list_hyphen_environment_hyphen_variables.Output.Ok { + public var ok: Operations.ActionsListEnvironmentVariables.Output.Ok { get throws { switch self { case let .ok(response): @@ -33719,7 +34128,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/variables`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/post(actions/create-environment-variable)`. - public enum actions_sol_create_hyphen_environment_hyphen_variable { + public enum ActionsCreateEnvironmentVariable { public static let id: Swift.String = "actions/create-environment-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/path`. @@ -33727,48 +34136,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Path + public var path: Operations.ActionsCreateEnvironmentVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Headers + public var headers: Operations.ActionsCreateEnvironmentVariable.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/requestBody/json/name`. @@ -33777,7 +34186,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/requestBody/json/value`. public var value: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. @@ -33795,9 +34204,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/requestBody/content/application\/json`. - case json(Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsCreateEnvironmentVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Body + public var body: Operations.ActionsCreateEnvironmentVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -33805,9 +34214,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Path, - headers: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Headers = .init(), - body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Input.Body + path: Operations.ActionsCreateEnvironmentVariable.Input.Path, + headers: Operations.ActionsCreateEnvironmentVariable.Input.Headers = .init(), + body: Operations.ActionsCreateEnvironmentVariable.Input.Body ) { self.path = path self.headers = headers @@ -33819,12 +34228,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -33834,12 +34243,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output.Created.Body + public var body: Operations.ActionsCreateEnvironmentVariable.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output.Created.Body) { + public init(body: Operations.ActionsCreateEnvironmentVariable.Output.Created.Body) { self.body = body } } @@ -33848,12 +34257,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/post(actions/create-environment-variable)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output.Created) + case created(Operations.ActionsCreateEnvironmentVariable.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.actions_sol_create_hyphen_environment_hyphen_variable.Output.Created { + public var created: Operations.ActionsCreateEnvironmentVariable.Output.Created { get throws { switch self { case let .created(response): @@ -33907,7 +34316,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/get(actions/get-environment-variable)`. - public enum actions_sol_get_hyphen_environment_hyphen_variable { + public enum ActionsGetEnvironmentVariable { public static let id: Swift.String = "actions/get-environment-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/path`. @@ -33915,59 +34324,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// - name: The name of the variable. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - name: Components.Parameters.variable_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + name: Components.Parameters.VariableName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName self.name = name } } - public var path: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Path + public var path: Operations.ActionsGetEnvironmentVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Headers + public var headers: Operations.ActionsGetEnvironmentVariable.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Path, - headers: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Input.Headers = .init() + path: Operations.ActionsGetEnvironmentVariable.Input.Path, + headers: Operations.ActionsGetEnvironmentVariable.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -33978,12 +34387,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_variable) + case json(Components.Schemas.ActionsVariable) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_variable { + public var json: Components.Schemas.ActionsVariable { get throws { switch self { case let .json(body): @@ -33993,12 +34402,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output.Ok.Body + public var body: Operations.ActionsGetEnvironmentVariable.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output.Ok.Body) { + public init(body: Operations.ActionsGetEnvironmentVariable.Output.Ok.Body) { self.body = body } } @@ -34007,12 +34416,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/get(actions/get-environment-variable)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output.Ok) + case ok(Operations.ActionsGetEnvironmentVariable.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.actions_sol_get_hyphen_environment_hyphen_variable.Output.Ok { + public var ok: Operations.ActionsGetEnvironmentVariable.Output.Ok { get throws { switch self { case let .ok(response): @@ -34066,7 +34475,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)`. - public enum actions_sol_update_hyphen_environment_hyphen_variable { + public enum ActionsUpdateEnvironmentVariable { public static let id: Swift.String = "actions/update-environment-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/path`. @@ -34074,43 +34483,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: The name of the variable. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - name: Components.Parameters.variable_hyphen_name, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + name: Components.Parameters.VariableName, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo self.name = name - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Path + public var path: Operations.ActionsUpdateEnvironmentVariable.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/requestBody/json/name`. @@ -34119,7 +34528,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/requestBody/json/value`. public var value: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the variable. @@ -34137,17 +34546,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/PATCH/requestBody/content/application\/json`. - case json(Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Body.jsonPayload) + case json(Operations.ActionsUpdateEnvironmentVariable.Input.Body.JsonPayload) } - public var body: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Body + public var body: Operations.ActionsUpdateEnvironmentVariable.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Path, - body: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Input.Body + path: Operations.ActionsUpdateEnvironmentVariable.Input.Path, + body: Operations.ActionsUpdateEnvironmentVariable.Input.Body ) { self.path = path self.body = body @@ -34163,12 +34572,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_update_hyphen_environment_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsUpdateEnvironmentVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/patch(actions/update-environment-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_update_hyphen_environment_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsUpdateEnvironmentVariable.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -34197,7 +34614,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)`. - public enum actions_sol_delete_hyphen_environment_hyphen_variable { + public enum ActionsDeleteEnvironmentVariable { public static let id: Swift.String = "actions/delete-environment-variable" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/DELETE/path`. @@ -34205,44 +34622,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the variable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/DELETE/path/name`. - public var name: Components.Parameters.variable_hyphen_name + public var name: Components.Parameters.VariableName /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/DELETE/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: The name of the variable. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - name: Components.Parameters.variable_hyphen_name, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + name: Components.Parameters.VariableName, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo self.name = name - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input.Path + public var path: Operations.ActionsDeleteEnvironmentVariable.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Input.Path) { + public init(path: Operations.ActionsDeleteEnvironmentVariable.Input.Path) { self.path = path } } @@ -34256,12 +34673,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Output.NoContent) + case noContent(Operations.ActionsDeleteEnvironmentVariable.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/variables/{name}/delete(actions/delete-environment-variable)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.actions_sol_delete_hyphen_environment_hyphen_variable.Output.NoContent { + public var noContent: Operations.ActionsDeleteEnvironmentVariable.Output.NoContent { get throws { switch self { case let .noContent(response): From abc3239f03c4029fddb992b4d8c0ffc0131bee0f Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 08:59:43 -0700 Subject: [PATCH 04/46] Commit via running ake Sources/activity --- Sources/activity/Client.swift | 446 +-- Sources/activity/Types.swift | 5839 +++++++++++++++++---------------- 2 files changed, 3243 insertions(+), 3042 deletions(-) diff --git a/Sources/activity/Client.swift b/Sources/activity/Client.swift index 7cbcb22f69..4ed0949d9b 100644 --- a/Sources/activity/Client.swift +++ b/Sources/activity/Client.swift @@ -45,10 +45,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /events`. /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)`. - public func activity_sol_list_hyphen_public_hyphen_events(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events.Output { + public func activityListPublicEvents(_ input: Operations.ActivityListPublicEvents.Input) async throws -> Operations.ActivityListPublicEvents.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_public_hyphen_events.id, + forOperation: Operations.ActivityListPublicEvents.id, serializer: { input in let path = try converter.renderedPath( template: "/events", @@ -64,7 +64,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -83,7 +83,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_public_hyphen_events.Output.Ok.Body + let body: Operations.ActivityListPublicEvents.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -93,7 +93,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -107,7 +107,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -117,7 +117,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -129,7 +129,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -139,7 +139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -180,10 +180,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /feeds`. /// - Remark: Generated from `#/paths//feeds/get(activity/get-feeds)`. - public func activity_sol_get_hyphen_feeds(_ input: Operations.activity_sol_get_hyphen_feeds.Input) async throws -> Operations.activity_sol_get_hyphen_feeds.Output { + public func activityGetFeeds(_ input: Operations.ActivityGetFeeds.Input) async throws -> Operations.ActivityGetFeeds.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_get_hyphen_feeds.id, + forOperation: Operations.ActivityGetFeeds.id, serializer: { input in let path = try converter.renderedPath( template: "/feeds", @@ -204,7 +204,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_get_hyphen_feeds.Output.Ok.Body + let body: Operations.ActivityGetFeeds.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -214,7 +214,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.feed.self, + Components.Schemas.Feed.self, from: responseBody, transforming: { value in .json(value) @@ -243,10 +243,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /networks/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)`. - public func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output { + public func activityListPublicEventsForRepoNetwork(_ input: Operations.ActivityListPublicEventsForRepoNetwork.Input) async throws -> Operations.ActivityListPublicEventsForRepoNetwork.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.id, + forOperation: Operations.ActivityListPublicEventsForRepoNetwork.id, serializer: { input in let path = try converter.renderedPath( template: "/networks/{}/{}/events", @@ -265,7 +265,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -284,7 +284,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output.Ok.Body + let body: Operations.ActivityListPublicEventsForRepoNetwork.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -294,7 +294,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -306,7 +306,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -316,7 +316,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -328,7 +328,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -338,7 +338,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -352,7 +352,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -362,7 +362,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -390,10 +390,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /notifications`. /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)`. - public func activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityListNotificationsForAuthenticatedUser(_ input: Operations.ActivityListNotificationsForAuthenticatedUser.Input) async throws -> Operations.ActivityListNotificationsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListNotificationsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications", @@ -444,7 +444,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -455,13 +455,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -471,7 +471,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.thread].self, + [Components.Schemas.Thread].self, from: responseBody, transforming: { value in .json(value) @@ -488,7 +488,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -498,7 +498,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -510,7 +510,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -520,7 +520,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -532,7 +532,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -542,7 +542,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -570,10 +570,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /notifications`. /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)`. - public func activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output { + public func activityMarkNotificationsAsRead(_ input: Operations.ActivityMarkNotificationsAsRead.Input) async throws -> Operations.ActivityMarkNotificationsAsRead.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.id, + forOperation: Operations.ActivityMarkNotificationsAsRead.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications", @@ -605,7 +605,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body + let body: Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -615,7 +615,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload.self, + Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -631,7 +631,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -641,7 +641,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -653,7 +653,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -663,7 +663,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -691,15 +691,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)`. - public func activity_sol_get_hyphen_thread(_ input: Operations.activity_sol_get_hyphen_thread.Input) async throws -> Operations.activity_sol_get_hyphen_thread.Output { + public func activityGetThread(_ input: Operations.ActivityGetThread.Input) async throws -> Operations.ActivityGetThread.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_get_hyphen_thread.id, + forOperation: Operations.ActivityGetThread.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -717,7 +717,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_get_hyphen_thread.Output.Ok.Body + let body: Operations.ActivityGetThread.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -727,7 +727,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.thread.self, + Components.Schemas.Thread.self, from: responseBody, transforming: { value in .json(value) @@ -741,7 +741,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -751,7 +751,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -763,7 +763,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -773,7 +773,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -801,15 +801,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)`. - public func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Output { + public func activityMarkThreadAsRead(_ input: Operations.ActivityMarkThreadAsRead.Input) async throws -> Operations.ActivityMarkThreadAsRead.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.id, + forOperation: Operations.ActivityMarkThreadAsRead.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -831,7 +831,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -841,7 +841,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -869,15 +869,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)`. - public func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done(_ input: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Output { + public func activityMarkThreadAsDone(_ input: Operations.ActivityMarkThreadAsDone.Input) async throws -> Operations.ActivityMarkThreadAsDone.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.id, + forOperation: Operations.ActivityMarkThreadAsDone.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -911,15 +911,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)`. - public func activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityGetThreadSubscriptionForAuthenticatedUser(_ input: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input) async throws -> Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}/subscription", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -937,7 +937,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -947,7 +947,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.thread_hyphen_subscription.self, + Components.Schemas.ThreadSubscription.self, from: responseBody, transforming: { value in .json(value) @@ -961,7 +961,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -971,7 +971,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -983,7 +983,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -993,7 +993,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1025,15 +1025,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)`. - public func activity_sol_set_hyphen_thread_hyphen_subscription(_ input: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input) async throws -> Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output { + public func activitySetThreadSubscription(_ input: Operations.ActivitySetThreadSubscription.Input) async throws -> Operations.ActivitySetThreadSubscription.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.id, + forOperation: Operations.ActivitySetThreadSubscription.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}/subscription", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1062,7 +1062,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output.Ok.Body + let body: Operations.ActivitySetThreadSubscription.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1072,7 +1072,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.thread_hyphen_subscription.self, + Components.Schemas.ThreadSubscription.self, from: responseBody, transforming: { value in .json(value) @@ -1086,7 +1086,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1096,7 +1096,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1108,7 +1108,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1118,7 +1118,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1146,15 +1146,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)`. - public func activity_sol_delete_hyphen_thread_hyphen_subscription(_ input: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input) async throws -> Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Output { + public func activityDeleteThreadSubscription(_ input: Operations.ActivityDeleteThreadSubscription.Input) async throws -> Operations.ActivityDeleteThreadSubscription.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.id, + forOperation: Operations.ActivityDeleteThreadSubscription.id, serializer: { input in let path = try converter.renderedPath( template: "/notifications/threads/{}/subscription", parameters: [ - input.path.thread_id + input.path.threadId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1176,7 +1176,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1186,7 +1186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1198,7 +1198,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1208,7 +1208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1237,10 +1237,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/events`. /// - Remark: Generated from `#/paths//orgs/{org}/events/get(activity/list-public-org-events)`. - public func activity_sol_list_hyphen_public_hyphen_org_hyphen_events(_ input: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output { + public func activityListPublicOrgEvents(_ input: Operations.ActivityListPublicOrgEvents.Input) async throws -> Operations.ActivityListPublicOrgEvents.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.id, + forOperation: Operations.ActivityListPublicOrgEvents.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/events", @@ -1258,7 +1258,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1277,7 +1277,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output.Ok.Body + let body: Operations.ActivityListPublicOrgEvents.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1287,7 +1287,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -1316,10 +1316,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/events/get(activity/list-repo-events)`. - public func activity_sol_list_hyphen_repo_hyphen_events(_ input: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_events.Output { + public func activityListRepoEvents(_ input: Operations.ActivityListRepoEvents.Input) async throws -> Operations.ActivityListRepoEvents.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_repo_hyphen_events.id, + forOperation: Operations.ActivityListRepoEvents.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/events", @@ -1338,7 +1338,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1357,7 +1357,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_repo_hyphen_events.Output.Ok.Body + let body: Operations.ActivityListRepoEvents.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1367,7 +1367,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -1395,10 +1395,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/get(activity/list-repo-notifications-for-authenticated-user)`. - public func activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityListRepoNotificationsForAuthenticatedUser(_ input: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input) async throws -> Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListRepoNotificationsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/notifications", @@ -1445,7 +1445,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1463,13 +1463,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1479,7 +1479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.thread].self, + [Components.Schemas.Thread].self, from: responseBody, transforming: { value in .json(value) @@ -1510,10 +1510,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)`. - public func activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output { + public func activityMarkRepoNotificationsAsRead(_ input: Operations.ActivityMarkRepoNotificationsAsRead.Input) async throws -> Operations.ActivityMarkRepoNotificationsAsRead.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.id, + forOperation: Operations.ActivityMarkRepoNotificationsAsRead.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/notifications", @@ -1548,7 +1548,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body + let body: Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1558,7 +1558,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload.self, + Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1592,10 +1592,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stargazers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)`. - public func activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo(_ input: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input) async throws -> Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output { + public func activityListStargazersForRepo(_ input: Operations.ActivityListStargazersForRepo.Input) async throws -> Operations.ActivityListStargazersForRepo.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActivityListStargazersForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stargazers", @@ -1614,7 +1614,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1632,13 +1632,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListStargazersForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActivityListStargazersForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1648,7 +1648,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self, + Operations.ActivityListStargazersForRepo.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1663,7 +1663,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1673,7 +1673,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1701,10 +1701,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscribers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscribers/get(activity/list-watchers-for-repo)`. - public func activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo(_ input: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input) async throws -> Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output { + public func activityListWatchersForRepo(_ input: Operations.ActivityListWatchersForRepo.Input) async throws -> Operations.ActivityListWatchersForRepo.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.id, + forOperation: Operations.ActivityListWatchersForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/subscribers", @@ -1723,7 +1723,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1741,13 +1741,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListWatchersForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ActivityListWatchersForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1757,7 +1757,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -1788,10 +1788,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)`. - public func activity_sol_get_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output { + public func activityGetRepoSubscription(_ input: Operations.ActivityGetRepoSubscription.Input) async throws -> Operations.ActivityGetRepoSubscription.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.id, + forOperation: Operations.ActivityGetRepoSubscription.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/subscription", @@ -1815,7 +1815,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.Ok.Body + let body: Operations.ActivityGetRepoSubscription.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1825,7 +1825,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_subscription.self, + Components.Schemas.RepositorySubscription.self, from: responseBody, transforming: { value in .json(value) @@ -1839,7 +1839,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1849,7 +1849,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1877,10 +1877,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/put(activity/set-repo-subscription)`. - public func activity_sol_set_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output { + public func activitySetRepoSubscription(_ input: Operations.ActivitySetRepoSubscription.Input) async throws -> Operations.ActivitySetRepoSubscription.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.id, + forOperation: Operations.ActivitySetRepoSubscription.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/subscription", @@ -1915,7 +1915,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output.Ok.Body + let body: Operations.ActivitySetRepoSubscription.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1925,7 +1925,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_subscription.self, + Components.Schemas.RepositorySubscription.self, from: responseBody, transforming: { value in .json(value) @@ -1953,10 +1953,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)`. - public func activity_sol_delete_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Output { + public func activityDeleteRepoSubscription(_ input: Operations.ActivityDeleteRepoSubscription.Input) async throws -> Operations.ActivityDeleteRepoSubscription.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.id, + forOperation: Operations.ActivityDeleteRepoSubscription.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/subscription", @@ -1998,10 +1998,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/starred`. /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)`. - public func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output { + public func activityListReposStarredByAuthenticatedUser(_ input: Operations.ActivityListReposStarredByAuthenticatedUser.Input) async throws -> Operations.ActivityListReposStarredByAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListReposStarredByAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/starred", @@ -2031,7 +2031,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2049,13 +2049,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2066,7 +2066,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository].self, + [Components.Schemas.Repository].self, from: responseBody, transforming: { value in .json(value) @@ -2074,10 +2074,10 @@ public struct Client: APIProtocol { ) case "application/vnd.github.v3.star+json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.starred_hyphen_repository].self, + [Components.Schemas.StarredRepository].self, from: responseBody, transforming: { value in - .application_vnd_period_github_period_v3_period_star_plus_json(value) + .applicationVnd_github_v3_starJson(value) } ) default: @@ -2091,7 +2091,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2101,7 +2101,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2113,7 +2113,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2123,7 +2123,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2151,10 +2151,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)`. - public func activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output { + public func activityCheckRepoIsStarredByAuthenticatedUser(_ input: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input) async throws -> Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/starred/{}/{}", @@ -2180,7 +2180,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NotFound.Body + let body: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2190,7 +2190,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2202,7 +2202,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2212,7 +2212,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2226,7 +2226,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2236,7 +2236,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2264,10 +2264,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)`. - public func activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityStarRepoForAuthenticatedUser(_ input: Operations.ActivityStarRepoForAuthenticatedUser.Input) async throws -> Operations.ActivityStarRepoForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityStarRepoForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/starred/{}/{}", @@ -2293,7 +2293,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2303,7 +2303,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2315,7 +2315,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2325,7 +2325,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2337,7 +2337,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2347,7 +2347,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2377,10 +2377,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)`. - public func activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityUnstarRepoForAuthenticatedUser(_ input: Operations.ActivityUnstarRepoForAuthenticatedUser.Input) async throws -> Operations.ActivityUnstarRepoForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityUnstarRepoForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/starred/{}/{}", @@ -2406,7 +2406,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2416,7 +2416,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2428,7 +2428,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2438,7 +2438,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2452,7 +2452,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2462,7 +2462,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2490,10 +2490,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/subscriptions`. /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)`. - public func activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityListWatchedReposForAuthenticatedUser(_ input: Operations.ActivityListWatchedReposForAuthenticatedUser.Input) async throws -> Operations.ActivityListWatchedReposForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListWatchedReposForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/subscriptions", @@ -2509,7 +2509,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2527,13 +2527,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2543,7 +2543,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -2560,7 +2560,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2570,7 +2570,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2582,7 +2582,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2592,7 +2592,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2623,10 +2623,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events`. /// - Remark: Generated from `#/paths//users/{username}/events/get(activity/list-events-for-authenticated-user)`. - public func activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityListEventsForAuthenticatedUser(_ input: Operations.ActivityListEventsForAuthenticatedUser.Input) async throws -> Operations.ActivityListEventsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListEventsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/events", @@ -2644,7 +2644,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2663,7 +2663,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListEventsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2673,7 +2673,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -2704,10 +2704,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events/orgs/{org}`. /// - Remark: Generated from `#/paths//users/{username}/events/orgs/{org}/get(activity/list-org-events-for-authenticated-user)`. - public func activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func activityListOrgEventsForAuthenticatedUser(_ input: Operations.ActivityListOrgEventsForAuthenticatedUser.Input) async throws -> Operations.ActivityListOrgEventsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ActivityListOrgEventsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/events/orgs/{}", @@ -2726,7 +2726,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2745,7 +2745,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListOrgEventsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2755,7 +2755,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -2784,10 +2784,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events/public`. /// - Remark: Generated from `#/paths//users/{username}/events/public/get(activity/list-public-events-for-user)`. - public func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output { + public func activityListPublicEventsForUser(_ input: Operations.ActivityListPublicEventsForUser.Input) async throws -> Operations.ActivityListPublicEventsForUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.id, + forOperation: Operations.ActivityListPublicEventsForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/events/public", @@ -2805,7 +2805,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2824,7 +2824,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListPublicEventsForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2834,7 +2834,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -2866,10 +2866,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/received_events`. /// - Remark: Generated from `#/paths//users/{username}/received_events/get(activity/list-received-events-for-user)`. - public func activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output { + public func activityListReceivedEventsForUser(_ input: Operations.ActivityListReceivedEventsForUser.Input) async throws -> Operations.ActivityListReceivedEventsForUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.id, + forOperation: Operations.ActivityListReceivedEventsForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/received_events", @@ -2887,7 +2887,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2906,7 +2906,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListReceivedEventsForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2916,7 +2916,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -2945,10 +2945,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/received_events/public`. /// - Remark: Generated from `#/paths//users/{username}/received_events/public/get(activity/list-received-public-events-for-user)`. - public func activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output { + public func activityListReceivedPublicEventsForUser(_ input: Operations.ActivityListReceivedPublicEventsForUser.Input) async throws -> Operations.ActivityListReceivedPublicEventsForUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.id, + forOperation: Operations.ActivityListReceivedPublicEventsForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/received_events/public", @@ -2966,7 +2966,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2985,7 +2985,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListReceivedPublicEventsForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2995,7 +2995,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.event].self, + [Components.Schemas.Event].self, from: responseBody, transforming: { value in .json(value) @@ -3027,10 +3027,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/starred`. /// - Remark: Generated from `#/paths//users/{username}/starred/get(activity/list-repos-starred-by-user)`. - public func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output { + public func activityListReposStarredByUser(_ input: Operations.ActivityListReposStarredByUser.Input) async throws -> Operations.ActivityListReposStarredByUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.id, + forOperation: Operations.ActivityListReposStarredByUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/starred", @@ -3062,7 +3062,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3080,13 +3080,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListReposStarredByUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListReposStarredByUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3096,7 +3096,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.ActivityListReposStarredByUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3127,10 +3127,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/subscriptions`. /// - Remark: Generated from `#/paths//users/{username}/subscriptions/get(activity/list-repos-watched-by-user)`. - public func activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output { + public func activityListReposWatchedByUser(_ input: Operations.ActivityListReposWatchedByUser.Input) async throws -> Operations.ActivityListReposWatchedByUser.Output { try await client.send( input: input, - forOperation: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.id, + forOperation: Operations.ActivityListReposWatchedByUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/subscriptions", @@ -3148,7 +3148,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3166,13 +3166,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ActivityListReposWatchedByUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Body + let body: Operations.ActivityListReposWatchedByUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3182,7 +3182,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index 6f47ce2a5d..5a72d1db2a 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -18,7 +18,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /events`. /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)`. - func activity_sol_list_hyphen_public_hyphen_events(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events.Output + func activityListPublicEvents(_ input: Operations.ActivityListPublicEvents.Input) async throws -> Operations.ActivityListPublicEvents.Output /// Get feeds /// /// Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs. @@ -38,7 +38,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /feeds`. /// - Remark: Generated from `#/paths//feeds/get(activity/get-feeds)`. - func activity_sol_get_hyphen_feeds(_ input: Operations.activity_sol_get_hyphen_feeds.Input) async throws -> Operations.activity_sol_get_hyphen_feeds.Output + func activityGetFeeds(_ input: Operations.ActivityGetFeeds.Input) async throws -> Operations.ActivityGetFeeds.Output /// List public events for a network of repositories /// /// > [!NOTE] @@ -46,42 +46,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /networks/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)`. - func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output + func activityListPublicEventsForRepoNetwork(_ input: Operations.ActivityListPublicEventsForRepoNetwork.Input) async throws -> Operations.ActivityListPublicEventsForRepoNetwork.Output /// List notifications for the authenticated user /// /// List all notifications for the current user, sorted by most recently updated. /// /// - Remark: HTTP `GET /notifications`. /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)`. - func activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityListNotificationsForAuthenticatedUser(_ input: Operations.ActivityListNotificationsForAuthenticatedUser.Input) async throws -> Operations.ActivityListNotificationsForAuthenticatedUser.Output /// Mark notifications as read /// /// Marks all notifications as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. /// /// - Remark: HTTP `PUT /notifications`. /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)`. - func activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output + func activityMarkNotificationsAsRead(_ input: Operations.ActivityMarkNotificationsAsRead.Input) async throws -> Operations.ActivityMarkNotificationsAsRead.Output /// Get a thread /// /// Gets information about a notification thread. /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)`. - func activity_sol_get_hyphen_thread(_ input: Operations.activity_sol_get_hyphen_thread.Input) async throws -> Operations.activity_sol_get_hyphen_thread.Output + func activityGetThread(_ input: Operations.ActivityGetThread.Input) async throws -> Operations.ActivityGetThread.Output /// Mark a thread as read /// /// Marks a thread as "read." Marking a thread as "read" is equivalent to clicking a notification in your notification inbox on GitHub: https://github.com/notifications. /// /// - Remark: HTTP `PATCH /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)`. - func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Output + func activityMarkThreadAsRead(_ input: Operations.ActivityMarkThreadAsRead.Input) async throws -> Operations.ActivityMarkThreadAsRead.Output /// Mark a thread as done /// /// Marks a thread as "done." Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications. /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)`. - func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done(_ input: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Output + func activityMarkThreadAsDone(_ input: Operations.ActivityMarkThreadAsDone.Input) async throws -> Operations.ActivityMarkThreadAsDone.Output /// Get a thread subscription for the authenticated user /// /// This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/activity/watching#get-a-repository-subscription). @@ -90,7 +90,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)`. - func activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityGetThreadSubscriptionForAuthenticatedUser(_ input: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input) async throws -> Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output /// Set a thread subscription /// /// If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**. @@ -101,14 +101,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)`. - func activity_sol_set_hyphen_thread_hyphen_subscription(_ input: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input) async throws -> Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output + func activitySetThreadSubscription(_ input: Operations.ActivitySetThreadSubscription.Input) async throws -> Operations.ActivitySetThreadSubscription.Output /// Delete a thread subscription /// /// Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/rest/activity/notifications#set-a-thread-subscription) endpoint and set `ignore` to `true`. /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)`. - func activity_sol_delete_hyphen_thread_hyphen_subscription(_ input: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input) async throws -> Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Output + func activityDeleteThreadSubscription(_ input: Operations.ActivityDeleteThreadSubscription.Input) async throws -> Operations.ActivityDeleteThreadSubscription.Output /// List public organization events /// /// > [!NOTE] @@ -116,7 +116,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/events`. /// - Remark: Generated from `#/paths//orgs/{org}/events/get(activity/list-public-org-events)`. - func activity_sol_list_hyphen_public_hyphen_org_hyphen_events(_ input: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output + func activityListPublicOrgEvents(_ input: Operations.ActivityListPublicOrgEvents.Input) async throws -> Operations.ActivityListPublicOrgEvents.Output /// List repository events /// /// > [!NOTE] @@ -124,21 +124,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/events/get(activity/list-repo-events)`. - func activity_sol_list_hyphen_repo_hyphen_events(_ input: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_events.Output + func activityListRepoEvents(_ input: Operations.ActivityListRepoEvents.Input) async throws -> Operations.ActivityListRepoEvents.Output /// List repository notifications for the authenticated user /// /// Lists all notifications for the current user in the specified repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/get(activity/list-repo-notifications-for-authenticated-user)`. - func activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityListRepoNotificationsForAuthenticatedUser(_ input: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input) async throws -> Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output /// Mark repository notifications as read /// /// Marks all notifications in a repository as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)`. - func activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read(_ input: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input) async throws -> Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output + func activityMarkRepoNotificationsAsRead(_ input: Operations.ActivityMarkRepoNotificationsAsRead.Input) async throws -> Operations.ActivityMarkRepoNotificationsAsRead.Output /// List stargazers /// /// Lists the people that have starred the repository. @@ -149,35 +149,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stargazers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)`. - func activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo(_ input: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input) async throws -> Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output + func activityListStargazersForRepo(_ input: Operations.ActivityListStargazersForRepo.Input) async throws -> Operations.ActivityListStargazersForRepo.Output /// List watchers /// /// Lists the people watching the specified repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscribers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscribers/get(activity/list-watchers-for-repo)`. - func activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo(_ input: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input) async throws -> Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output + func activityListWatchersForRepo(_ input: Operations.ActivityListWatchersForRepo.Input) async throws -> Operations.ActivityListWatchersForRepo.Output /// Get a repository subscription /// /// Gets information about whether the authenticated user is subscribed to the repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)`. - func activity_sol_get_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output + func activityGetRepoSubscription(_ input: Operations.ActivityGetRepoSubscription.Input) async throws -> Operations.ActivityGetRepoSubscription.Output /// Set a repository subscription /// /// If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/activity/watching#delete-a-repository-subscription) completely. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/put(activity/set-repo-subscription)`. - func activity_sol_set_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output + func activitySetRepoSubscription(_ input: Operations.ActivitySetRepoSubscription.Input) async throws -> Operations.ActivitySetRepoSubscription.Output /// Delete a repository subscription /// /// This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/activity/watching#set-a-repository-subscription). /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)`. - func activity_sol_delete_hyphen_repo_hyphen_subscription(_ input: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input) async throws -> Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Output + func activityDeleteRepoSubscription(_ input: Operations.ActivityDeleteRepoSubscription.Input) async throws -> Operations.ActivityDeleteRepoSubscription.Output /// List repositories starred by the authenticated user /// /// Lists repositories the authenticated user has starred. @@ -188,35 +188,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/starred`. /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)`. - func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output + func activityListReposStarredByAuthenticatedUser(_ input: Operations.ActivityListReposStarredByAuthenticatedUser.Input) async throws -> Operations.ActivityListReposStarredByAuthenticatedUser.Output /// Check if a repository is starred by the authenticated user /// /// Whether the authenticated user has starred the repository. /// /// - Remark: HTTP `GET /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)`. - func activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output + func activityCheckRepoIsStarredByAuthenticatedUser(_ input: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input) async throws -> Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output /// Star a repository for the authenticated user /// /// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: HTTP `PUT /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)`. - func activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityStarRepoForAuthenticatedUser(_ input: Operations.ActivityStarRepoForAuthenticatedUser.Input) async throws -> Operations.ActivityStarRepoForAuthenticatedUser.Output /// Unstar a repository for the authenticated user /// /// Unstar a repository that the authenticated user has previously starred. /// /// - Remark: HTTP `DELETE /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)`. - func activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityUnstarRepoForAuthenticatedUser(_ input: Operations.ActivityUnstarRepoForAuthenticatedUser.Input) async throws -> Operations.ActivityUnstarRepoForAuthenticatedUser.Output /// List repositories watched by the authenticated user /// /// Lists repositories the authenticated user is watching. /// /// - Remark: HTTP `GET /user/subscriptions`. /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)`. - func activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityListWatchedReposForAuthenticatedUser(_ input: Operations.ActivityListWatchedReposForAuthenticatedUser.Input) async throws -> Operations.ActivityListWatchedReposForAuthenticatedUser.Output /// List events for the authenticated user /// /// If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. _Optional_: use the fine-grained token with following permission set to view private events: "Events" user permissions (read). @@ -226,7 +226,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/events`. /// - Remark: Generated from `#/paths//users/{username}/events/get(activity/list-events-for-authenticated-user)`. - func activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityListEventsForAuthenticatedUser(_ input: Operations.ActivityListEventsForAuthenticatedUser.Input) async throws -> Operations.ActivityListEventsForAuthenticatedUser.Output /// List organization events for the authenticated user /// /// This is the user's organization dashboard. You must be authenticated as the user to view this. @@ -236,7 +236,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/events/orgs/{org}`. /// - Remark: Generated from `#/paths//users/{username}/events/orgs/{org}/get(activity/list-org-events-for-authenticated-user)`. - func activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output + func activityListOrgEventsForAuthenticatedUser(_ input: Operations.ActivityListOrgEventsForAuthenticatedUser.Input) async throws -> Operations.ActivityListOrgEventsForAuthenticatedUser.Output /// List public events for a user /// /// > [!NOTE] @@ -244,7 +244,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/events/public`. /// - Remark: Generated from `#/paths//users/{username}/events/public/get(activity/list-public-events-for-user)`. - func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output + func activityListPublicEventsForUser(_ input: Operations.ActivityListPublicEventsForUser.Input) async throws -> Operations.ActivityListPublicEventsForUser.Output /// List events received by the authenticated user /// /// These are events that you've received by watching repositories and following users. If you are authenticated as the @@ -255,7 +255,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/received_events`. /// - Remark: Generated from `#/paths//users/{username}/received_events/get(activity/list-received-events-for-user)`. - func activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output + func activityListReceivedEventsForUser(_ input: Operations.ActivityListReceivedEventsForUser.Input) async throws -> Operations.ActivityListReceivedEventsForUser.Output /// List public events received by a user /// /// > [!NOTE] @@ -263,7 +263,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/received_events/public`. /// - Remark: Generated from `#/paths//users/{username}/received_events/public/get(activity/list-received-public-events-for-user)`. - func activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user(_ input: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output + func activityListReceivedPublicEventsForUser(_ input: Operations.ActivityListReceivedPublicEventsForUser.Input) async throws -> Operations.ActivityListReceivedPublicEventsForUser.Output /// List repositories starred by a user /// /// Lists repositories a user has starred. @@ -274,14 +274,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/starred`. /// - Remark: Generated from `#/paths//users/{username}/starred/get(activity/list-repos-starred-by-user)`. - func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output + func activityListReposStarredByUser(_ input: Operations.ActivityListReposStarredByUser.Input) async throws -> Operations.ActivityListReposStarredByUser.Output /// List repositories watched by a user /// /// Lists repositories a user is watching. /// /// - Remark: HTTP `GET /users/{username}/subscriptions`. /// - Remark: Generated from `#/paths//users/{username}/subscriptions/get(activity/list-repos-watched-by-user)`. - func activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user(_ input: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output + func activityListReposWatchedByUser(_ input: Operations.ActivityListReposWatchedByUser.Input) async throws -> Operations.ActivityListReposWatchedByUser.Output } /// Convenience overloads for operation inputs. @@ -293,11 +293,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /events`. /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)`. - public func activity_sol_list_hyphen_public_hyphen_events( - query: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events.Output { - try await activity_sol_list_hyphen_public_hyphen_events(Operations.activity_sol_list_hyphen_public_hyphen_events.Input( + public func activityListPublicEvents( + query: Operations.ActivityListPublicEvents.Input.Query = .init(), + headers: Operations.ActivityListPublicEvents.Input.Headers = .init() + ) async throws -> Operations.ActivityListPublicEvents.Output { + try await activityListPublicEvents(Operations.ActivityListPublicEvents.Input( query: query, headers: headers )) @@ -321,8 +321,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /feeds`. /// - Remark: Generated from `#/paths//feeds/get(activity/get-feeds)`. - public func activity_sol_get_hyphen_feeds(headers: Operations.activity_sol_get_hyphen_feeds.Input.Headers = .init()) async throws -> Operations.activity_sol_get_hyphen_feeds.Output { - try await activity_sol_get_hyphen_feeds(Operations.activity_sol_get_hyphen_feeds.Input(headers: headers)) + public func activityGetFeeds(headers: Operations.ActivityGetFeeds.Input.Headers = .init()) async throws -> Operations.ActivityGetFeeds.Output { + try await activityGetFeeds(Operations.ActivityGetFeeds.Input(headers: headers)) } /// List public events for a network of repositories /// @@ -331,12 +331,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /networks/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)`. - public func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network( - path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output { - try await activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network(Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input( + public func activityListPublicEventsForRepoNetwork( + path: Operations.ActivityListPublicEventsForRepoNetwork.Input.Path, + query: Operations.ActivityListPublicEventsForRepoNetwork.Input.Query = .init(), + headers: Operations.ActivityListPublicEventsForRepoNetwork.Input.Headers = .init() + ) async throws -> Operations.ActivityListPublicEventsForRepoNetwork.Output { + try await activityListPublicEventsForRepoNetwork(Operations.ActivityListPublicEventsForRepoNetwork.Input( path: path, query: query, headers: headers @@ -348,11 +348,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /notifications`. /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)`. - public func activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityListNotificationsForAuthenticatedUser( + query: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListNotificationsForAuthenticatedUser.Output { + try await activityListNotificationsForAuthenticatedUser(Operations.ActivityListNotificationsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -363,11 +363,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /notifications`. /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)`. - public func activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read( - headers: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers = .init(), - body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? = nil - ) async throws -> Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output { - try await activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read(Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input( + public func activityMarkNotificationsAsRead( + headers: Operations.ActivityMarkNotificationsAsRead.Input.Headers = .init(), + body: Operations.ActivityMarkNotificationsAsRead.Input.Body? = nil + ) async throws -> Operations.ActivityMarkNotificationsAsRead.Output { + try await activityMarkNotificationsAsRead(Operations.ActivityMarkNotificationsAsRead.Input( headers: headers, body: body )) @@ -378,11 +378,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)`. - public func activity_sol_get_hyphen_thread( - path: Operations.activity_sol_get_hyphen_thread.Input.Path, - headers: Operations.activity_sol_get_hyphen_thread.Input.Headers = .init() - ) async throws -> Operations.activity_sol_get_hyphen_thread.Output { - try await activity_sol_get_hyphen_thread(Operations.activity_sol_get_hyphen_thread.Input( + public func activityGetThread( + path: Operations.ActivityGetThread.Input.Path, + headers: Operations.ActivityGetThread.Input.Headers = .init() + ) async throws -> Operations.ActivityGetThread.Output { + try await activityGetThread(Operations.ActivityGetThread.Input( path: path, headers: headers )) @@ -393,11 +393,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)`. - public func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read( - path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Path, - headers: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Headers = .init() - ) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Output { - try await activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read(Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input( + public func activityMarkThreadAsRead( + path: Operations.ActivityMarkThreadAsRead.Input.Path, + headers: Operations.ActivityMarkThreadAsRead.Input.Headers = .init() + ) async throws -> Operations.ActivityMarkThreadAsRead.Output { + try await activityMarkThreadAsRead(Operations.ActivityMarkThreadAsRead.Input( path: path, headers: headers )) @@ -408,8 +408,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)`. - public func activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done(path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input.Path) async throws -> Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Output { - try await activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done(Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input(path: path)) + public func activityMarkThreadAsDone(path: Operations.ActivityMarkThreadAsDone.Input.Path) async throws -> Operations.ActivityMarkThreadAsDone.Output { + try await activityMarkThreadAsDone(Operations.ActivityMarkThreadAsDone.Input(path: path)) } /// Get a thread subscription for the authenticated user /// @@ -419,11 +419,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)`. - public func activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityGetThreadSubscriptionForAuthenticatedUser( + path: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Path, + headers: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output { + try await activityGetThreadSubscriptionForAuthenticatedUser(Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input( path: path, headers: headers )) @@ -438,12 +438,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)`. - public func activity_sol_set_hyphen_thread_hyphen_subscription( - path: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Headers = .init(), - body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Body? = nil - ) async throws -> Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output { - try await activity_sol_set_hyphen_thread_hyphen_subscription(Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input( + public func activitySetThreadSubscription( + path: Operations.ActivitySetThreadSubscription.Input.Path, + headers: Operations.ActivitySetThreadSubscription.Input.Headers = .init(), + body: Operations.ActivitySetThreadSubscription.Input.Body? = nil + ) async throws -> Operations.ActivitySetThreadSubscription.Output { + try await activitySetThreadSubscription(Operations.ActivitySetThreadSubscription.Input( path: path, headers: headers, body: body @@ -455,11 +455,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)`. - public func activity_sol_delete_hyphen_thread_hyphen_subscription( - path: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Headers = .init() - ) async throws -> Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Output { - try await activity_sol_delete_hyphen_thread_hyphen_subscription(Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input( + public func activityDeleteThreadSubscription( + path: Operations.ActivityDeleteThreadSubscription.Input.Path, + headers: Operations.ActivityDeleteThreadSubscription.Input.Headers = .init() + ) async throws -> Operations.ActivityDeleteThreadSubscription.Output { + try await activityDeleteThreadSubscription(Operations.ActivityDeleteThreadSubscription.Input( path: path, headers: headers )) @@ -471,12 +471,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/events`. /// - Remark: Generated from `#/paths//orgs/{org}/events/get(activity/list-public-org-events)`. - public func activity_sol_list_hyphen_public_hyphen_org_hyphen_events( - path: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output { - try await activity_sol_list_hyphen_public_hyphen_org_hyphen_events(Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input( + public func activityListPublicOrgEvents( + path: Operations.ActivityListPublicOrgEvents.Input.Path, + query: Operations.ActivityListPublicOrgEvents.Input.Query = .init(), + headers: Operations.ActivityListPublicOrgEvents.Input.Headers = .init() + ) async throws -> Operations.ActivityListPublicOrgEvents.Output { + try await activityListPublicOrgEvents(Operations.ActivityListPublicOrgEvents.Input( path: path, query: query, headers: headers @@ -489,12 +489,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/events/get(activity/list-repo-events)`. - public func activity_sol_list_hyphen_repo_hyphen_events( - path: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Path, - query: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_events.Output { - try await activity_sol_list_hyphen_repo_hyphen_events(Operations.activity_sol_list_hyphen_repo_hyphen_events.Input( + public func activityListRepoEvents( + path: Operations.ActivityListRepoEvents.Input.Path, + query: Operations.ActivityListRepoEvents.Input.Query = .init(), + headers: Operations.ActivityListRepoEvents.Input.Headers = .init() + ) async throws -> Operations.ActivityListRepoEvents.Output { + try await activityListRepoEvents(Operations.ActivityListRepoEvents.Input( path: path, query: query, headers: headers @@ -506,12 +506,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/get(activity/list-repo-notifications-for-authenticated-user)`. - public func activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityListRepoNotificationsForAuthenticatedUser( + path: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output { + try await activityListRepoNotificationsForAuthenticatedUser(Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -523,12 +523,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)`. - public func activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read( - path: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Path, - headers: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers = .init(), - body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? = nil - ) async throws -> Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output { - try await activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read(Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input( + public func activityMarkRepoNotificationsAsRead( + path: Operations.ActivityMarkRepoNotificationsAsRead.Input.Path, + headers: Operations.ActivityMarkRepoNotificationsAsRead.Input.Headers = .init(), + body: Operations.ActivityMarkRepoNotificationsAsRead.Input.Body? = nil + ) async throws -> Operations.ActivityMarkRepoNotificationsAsRead.Output { + try await activityMarkRepoNotificationsAsRead(Operations.ActivityMarkRepoNotificationsAsRead.Input( path: path, headers: headers, body: body @@ -544,12 +544,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stargazers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)`. - public func activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo( - path: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Path, - query: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output { - try await activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo(Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input( + public func activityListStargazersForRepo( + path: Operations.ActivityListStargazersForRepo.Input.Path, + query: Operations.ActivityListStargazersForRepo.Input.Query = .init(), + headers: Operations.ActivityListStargazersForRepo.Input.Headers = .init() + ) async throws -> Operations.ActivityListStargazersForRepo.Output { + try await activityListStargazersForRepo(Operations.ActivityListStargazersForRepo.Input( path: path, query: query, headers: headers @@ -561,12 +561,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscribers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscribers/get(activity/list-watchers-for-repo)`. - public func activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo( - path: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Path, - query: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output { - try await activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo(Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input( + public func activityListWatchersForRepo( + path: Operations.ActivityListWatchersForRepo.Input.Path, + query: Operations.ActivityListWatchersForRepo.Input.Query = .init(), + headers: Operations.ActivityListWatchersForRepo.Input.Headers = .init() + ) async throws -> Operations.ActivityListWatchersForRepo.Output { + try await activityListWatchersForRepo(Operations.ActivityListWatchersForRepo.Input( path: path, query: query, headers: headers @@ -578,11 +578,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)`. - public func activity_sol_get_hyphen_repo_hyphen_subscription( - path: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Headers = .init() - ) async throws -> Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output { - try await activity_sol_get_hyphen_repo_hyphen_subscription(Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input( + public func activityGetRepoSubscription( + path: Operations.ActivityGetRepoSubscription.Input.Path, + headers: Operations.ActivityGetRepoSubscription.Input.Headers = .init() + ) async throws -> Operations.ActivityGetRepoSubscription.Output { + try await activityGetRepoSubscription(Operations.ActivityGetRepoSubscription.Input( path: path, headers: headers )) @@ -593,12 +593,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/put(activity/set-repo-subscription)`. - public func activity_sol_set_hyphen_repo_hyphen_subscription( - path: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Headers = .init(), - body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Body? = nil - ) async throws -> Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output { - try await activity_sol_set_hyphen_repo_hyphen_subscription(Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input( + public func activitySetRepoSubscription( + path: Operations.ActivitySetRepoSubscription.Input.Path, + headers: Operations.ActivitySetRepoSubscription.Input.Headers = .init(), + body: Operations.ActivitySetRepoSubscription.Input.Body? = nil + ) async throws -> Operations.ActivitySetRepoSubscription.Output { + try await activitySetRepoSubscription(Operations.ActivitySetRepoSubscription.Input( path: path, headers: headers, body: body @@ -610,8 +610,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)`. - public func activity_sol_delete_hyphen_repo_hyphen_subscription(path: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input.Path) async throws -> Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Output { - try await activity_sol_delete_hyphen_repo_hyphen_subscription(Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input(path: path)) + public func activityDeleteRepoSubscription(path: Operations.ActivityDeleteRepoSubscription.Input.Path) async throws -> Operations.ActivityDeleteRepoSubscription.Output { + try await activityDeleteRepoSubscription(Operations.ActivityDeleteRepoSubscription.Input(path: path)) } /// List repositories starred by the authenticated user /// @@ -623,11 +623,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/starred`. /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)`. - public func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user( - query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input( + public func activityListReposStarredByAuthenticatedUser( + query: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListReposStarredByAuthenticatedUser.Output { + try await activityListReposStarredByAuthenticatedUser(Operations.ActivityListReposStarredByAuthenticatedUser.Input( query: query, headers: headers )) @@ -638,11 +638,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)`. - public func activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user(Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input( + public func activityCheckRepoIsStarredByAuthenticatedUser( + path: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Path, + headers: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output { + try await activityCheckRepoIsStarredByAuthenticatedUser(Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input( path: path, headers: headers )) @@ -653,11 +653,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)`. - public func activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityStarRepoForAuthenticatedUser( + path: Operations.ActivityStarRepoForAuthenticatedUser.Input.Path, + headers: Operations.ActivityStarRepoForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityStarRepoForAuthenticatedUser.Output { + try await activityStarRepoForAuthenticatedUser(Operations.ActivityStarRepoForAuthenticatedUser.Input( path: path, headers: headers )) @@ -668,11 +668,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)`. - public func activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityUnstarRepoForAuthenticatedUser( + path: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Path, + headers: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityUnstarRepoForAuthenticatedUser.Output { + try await activityUnstarRepoForAuthenticatedUser(Operations.ActivityUnstarRepoForAuthenticatedUser.Input( path: path, headers: headers )) @@ -683,11 +683,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/subscriptions`. /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)`. - public func activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityListWatchedReposForAuthenticatedUser( + query: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListWatchedReposForAuthenticatedUser.Output { + try await activityListWatchedReposForAuthenticatedUser(Operations.ActivityListWatchedReposForAuthenticatedUser.Input( query: query, headers: headers )) @@ -701,12 +701,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events`. /// - Remark: Generated from `#/paths//users/{username}/events/get(activity/list-events-for-authenticated-user)`. - public func activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityListEventsForAuthenticatedUser( + path: Operations.ActivityListEventsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListEventsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListEventsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListEventsForAuthenticatedUser.Output { + try await activityListEventsForAuthenticatedUser(Operations.ActivityListEventsForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -721,12 +721,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events/orgs/{org}`. /// - Remark: Generated from `#/paths//users/{username}/events/orgs/{org}/get(activity/list-org-events-for-authenticated-user)`. - public func activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user(Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func activityListOrgEventsForAuthenticatedUser( + path: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListOrgEventsForAuthenticatedUser.Output { + try await activityListOrgEventsForAuthenticatedUser(Operations.ActivityListOrgEventsForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -739,12 +739,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/events/public`. /// - Remark: Generated from `#/paths//users/{username}/events/public/get(activity/list-public-events-for-user)`. - public func activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user( - path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output { - try await activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user(Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input( + public func activityListPublicEventsForUser( + path: Operations.ActivityListPublicEventsForUser.Input.Path, + query: Operations.ActivityListPublicEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListPublicEventsForUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListPublicEventsForUser.Output { + try await activityListPublicEventsForUser(Operations.ActivityListPublicEventsForUser.Input( path: path, query: query, headers: headers @@ -760,12 +760,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/received_events`. /// - Remark: Generated from `#/paths//users/{username}/received_events/get(activity/list-received-events-for-user)`. - public func activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user( - path: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output { - try await activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user(Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input( + public func activityListReceivedEventsForUser( + path: Operations.ActivityListReceivedEventsForUser.Input.Path, + query: Operations.ActivityListReceivedEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListReceivedEventsForUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListReceivedEventsForUser.Output { + try await activityListReceivedEventsForUser(Operations.ActivityListReceivedEventsForUser.Input( path: path, query: query, headers: headers @@ -778,12 +778,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/received_events/public`. /// - Remark: Generated from `#/paths//users/{username}/received_events/public/get(activity/list-received-public-events-for-user)`. - public func activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user( - path: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output { - try await activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user(Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input( + public func activityListReceivedPublicEventsForUser( + path: Operations.ActivityListReceivedPublicEventsForUser.Input.Path, + query: Operations.ActivityListReceivedPublicEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListReceivedPublicEventsForUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListReceivedPublicEventsForUser.Output { + try await activityListReceivedPublicEventsForUser(Operations.ActivityListReceivedPublicEventsForUser.Input( path: path, query: query, headers: headers @@ -799,12 +799,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/starred`. /// - Remark: Generated from `#/paths//users/{username}/starred/get(activity/list-repos-starred-by-user)`. - public func activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user( - path: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output { - try await activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user(Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input( + public func activityListReposStarredByUser( + path: Operations.ActivityListReposStarredByUser.Input.Path, + query: Operations.ActivityListReposStarredByUser.Input.Query = .init(), + headers: Operations.ActivityListReposStarredByUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListReposStarredByUser.Output { + try await activityListReposStarredByUser(Operations.ActivityListReposStarredByUser.Input( path: path, query: query, headers: headers @@ -816,12 +816,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/subscriptions`. /// - Remark: Generated from `#/paths//users/{username}/subscriptions/get(activity/list-repos-watched-by-user)`. - public func activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user( - path: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output { - try await activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user(Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input( + public func activityListReposWatchedByUser( + path: Operations.ActivityListReposWatchedByUser.Input.Path, + query: Operations.ActivityListReposWatchedByUser.Input.Query = .init(), + headers: Operations.ActivityListReposWatchedByUser.Input.Headers = .init() + ) async throws -> Operations.ActivityListReposWatchedByUser.Output { + try await activityListReposWatchedByUser(Operations.ActivityListReposWatchedByUser.Input( path: path, query: query, headers: headers @@ -831,6 +831,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -846,7 +855,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -856,171 +865,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1028,23 +1037,23 @@ public enum Components { /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -1054,87 +1063,87 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1173,9 +1182,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1190,7 +1199,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1209,34 +1218,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1246,142 +1255,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -1389,66 +1398,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -1459,7 +1468,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1489,15 +1498,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -1505,97 +1514,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -1603,38 +1612,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -1648,47 +1657,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -1696,7 +1705,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -1704,10 +1713,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -1716,16 +1725,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -1733,7 +1742,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -1741,10 +1750,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -1753,424 +1762,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -2180,99 +2189,99 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// Actor /// /// - Remark: Generated from `#/components/schemas/actor`. - public struct actor: Codable, Hashable, Sendable { + public struct Actor: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/actor/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/actor/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/actor/display_login`. - public var display_login: Swift.String? + public var displayLogin: Swift.String? /// - Remark: Generated from `#/components/schemas/actor/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/actor/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/actor/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `actor`. + public var avatarUrl: Swift.String + /// Creates a new `Actor`. /// /// - Parameters: /// - id: /// - login: - /// - display_login: - /// - gravatar_id: + /// - displayLogin: + /// - gravatarId: /// - url: - /// - avatar_url: + /// - avatarUrl: public init( id: Swift.Int, login: Swift.String, - display_login: Swift.String? = nil, - gravatar_id: Swift.String? = nil, + displayLogin: Swift.String? = nil, + gravatarId: Swift.String? = nil, url: Swift.String, - avatar_url: Swift.String + avatarUrl: Swift.String ) { self.id = id self.login = login - self.display_login = display_login - self.gravatar_id = gravatar_id + self.displayLogin = displayLogin + self.gravatarId = gravatarId self.url = url - self.avatar_url = avatar_url + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case id case login - case display_login - case gravatar_id + case displayLogin = "display_login" + case gravatarId = "gravatar_id" case url - case avatar_url + case avatarUrl = "avatar_url" } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct nullable_hyphen_milestone: Codable, Hashable, Sendable { + public struct NullableMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. @@ -2280,14 +2289,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.nullable_hyphen_milestone.statePayload + public var state: Components.Schemas.NullableMilestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. @@ -2295,96 +2304,96 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `nullable_hyphen_milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `NullableMilestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.nullable_hyphen_milestone.statePayload, + state: Components.Schemas.NullableMilestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } /// The type of issue. /// /// - Remark: Generated from `#/components/schemas/issue-type`. - public struct issue_hyphen_type: Codable, Hashable, Sendable { + public struct IssueType: Codable, Hashable, Sendable { /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/id`. @@ -2392,7 +2401,7 @@ public enum Components { /// The node identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/name`. @@ -2404,7 +2413,7 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -2417,64 +2426,64 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - public var color: Components.Schemas.issue_hyphen_type.colorPayload? + public var color: Components.Schemas.IssueType.ColorPayload? /// The time the issue type created. /// /// - Remark: Generated from `#/components/schemas/issue-type/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The time the issue type last updated. /// /// - Remark: Generated from `#/components/schemas/issue-type/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The enabled state of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/is_enabled`. - public var is_enabled: Swift.Bool? - /// Creates a new `issue_hyphen_type`. + public var isEnabled: Swift.Bool? + /// Creates a new `IssueType`. /// /// - Parameters: /// - id: The unique identifier of the issue type. - /// - node_id: The node identifier of the issue type. + /// - nodeId: The node identifier of the issue type. /// - name: The name of the issue type. /// - description: The description of the issue type. /// - color: The color of the issue type. - /// - created_at: The time the issue type created. - /// - updated_at: The time the issue type last updated. - /// - is_enabled: The enabled state of the issue type. + /// - createdAt: The time the issue type created. + /// - updatedAt: The time the issue type last updated. + /// - isEnabled: The enabled state of the issue type. public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, description: Swift.String? = nil, - color: Components.Schemas.issue_hyphen_type.colorPayload? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - is_enabled: Swift.Bool? = nil + color: Components.Schemas.IssueType.ColorPayload? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + isEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.description = description self.color = color - self.created_at = created_at - self.updated_at = updated_at - self.is_enabled = is_enabled + self.createdAt = createdAt + self.updatedAt = updatedAt + self.isEnabled = isEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case description case color - case created_at - case updated_at - case is_enabled + case createdAt = "created_at" + case updatedAt = "updated_at" + case isEnabled = "is_enabled" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -2484,25 +2493,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -2515,15 +2524,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -2531,17 +2540,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -2554,7 +2563,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -2587,23 +2596,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -2618,23 +2627,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -2643,7 +2652,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -2651,109 +2660,109 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -2770,11 +2779,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -2785,7 +2794,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -2796,7 +2805,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -2808,7 +2817,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -2820,56 +2829,56 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/sub-issues-summary`. - public struct sub_hyphen_issues_hyphen_summary: Codable, Hashable, Sendable { + public struct SubIssuesSummary: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/sub-issues-summary/total`. public var total: Swift.Int /// - Remark: Generated from `#/components/schemas/sub-issues-summary/completed`. public var completed: Swift.Int /// - Remark: Generated from `#/components/schemas/sub-issues-summary/percent_completed`. - public var percent_completed: Swift.Int - /// Creates a new `sub_hyphen_issues_hyphen_summary`. + public var percentCompleted: Swift.Int + /// Creates a new `SubIssuesSummary`. /// /// - Parameters: /// - total: /// - completed: - /// - percent_completed: + /// - percentCompleted: public init( total: Swift.Int, completed: Swift.Int, - percent_completed: Swift.Int + percentCompleted: Swift.Int ) { self.total = total self.completed = completed - self.percent_completed = percent_completed + self.percentCompleted = percentCompleted } public enum CodingKeys: String, CodingKey { case total case completed - case percent_completed + case percentCompleted = "percent_completed" } } /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// /// - Remark: Generated from `#/components/schemas/issue`. - public struct issue: Codable, Hashable, Sendable { + public struct Issue: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue /// /// - Remark: Generated from `#/components/schemas/issue/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/issue/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// Number uniquely identifying the issue within its repository /// /// - Remark: Generated from `#/components/schemas/issue/number`. @@ -2881,15 +2890,15 @@ public enum Components { /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - @frozen public enum state_reasonPayload: String, Codable, Hashable, Sendable { + @frozen public enum StateReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" case reopened = "reopened" - case not_planned = "not_planned" + case notPlanned = "not_planned" } /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - public var state_reason: Components.Schemas.issue.state_reasonPayload? + public var stateReason: Components.Schemas.Issue.StateReasonPayload? /// Title of the issue /// /// - Remark: Generated from `#/components/schemas/issue/title`. @@ -2899,32 +2908,32 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload`. - @frozen public enum labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case1`. + public var user: Components.Schemas.NullableSimpleUser? + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload`. + @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case1`. case case1(Swift.String) - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/id`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/url`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/name`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/description`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/color`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/color`. public var color: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/default`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/default`. public var _default: Swift.Bool? /// Creates a new `Case2Payload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -2932,7 +2941,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, name: Swift.String? = nil, description: Swift.String? = nil, @@ -2940,7 +2949,7 @@ public enum Components { _default: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -2949,7 +2958,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -2957,8 +2966,8 @@ public enum Components { case _default = "default" } } - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2`. - case case2(Components.Schemas.issue.labelsPayloadPayload.Case2Payload) + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. + case case2(Components.Schemas.Issue.LabelsPayloadPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -2991,108 +3000,108 @@ public enum Components { /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/issue/labels`. - public typealias labelsPayload = [Components.Schemas.issue.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.Issue.LabelsPayloadPayload] /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/issue/labels`. - public var labels: Components.Schemas.issue.labelsPayload + public var labels: Components.Schemas.Issue.LabelsPayload /// - Remark: Generated from `#/components/schemas/issue/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/issue/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/issue/locked`. public var locked: Swift.Bool /// - Remark: Generated from `#/components/schemas/issue/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue/pull_request/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue/pull_request/diff_url`. - public var diff_url: Swift.String? + public var diffUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/patch_url`. - public var patch_url: Swift.String? + public var patchUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/url`. public var url: Swift.String? - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: - /// - merged_at: - /// - diff_url: - /// - html_url: - /// - patch_url: + /// - mergedAt: + /// - diffUrl: + /// - htmlUrl: + /// - patchUrl: /// - url: public init( - merged_at: Foundation.Date? = nil, - diff_url: Swift.String? = nil, - html_url: Swift.String? = nil, - patch_url: Swift.String? = nil, + mergedAt: Foundation.Date? = nil, + diffUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + patchUrl: Swift.String? = nil, url: Swift.String? = nil ) { - self.merged_at = merged_at - self.diff_url = diff_url - self.html_url = html_url - self.patch_url = patch_url + self.mergedAt = mergedAt + self.diffUrl = diffUrl + self.htmlUrl = htmlUrl + self.patchUrl = patchUrl self.url = url } public enum CodingKeys: String, CodingKey { - case merged_at - case diff_url - case html_url - case patch_url + case mergedAt = "merged_at" + case diffUrl = "diff_url" + case htmlUrl = "html_url" + case patchUrl = "patch_url" case url } } /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public var pull_request: Components.Schemas.issue.pull_requestPayload? + public var pullRequest: Components.Schemas.Issue.PullRequestPayload? /// - Remark: Generated from `#/components/schemas/issue/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue/draft`. public var draft: Swift.Bool? /// - Remark: Generated from `#/components/schemas/issue/closed_by`. - public var closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var closedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/timeline_url`. - public var timeline_url: Swift.String? + public var timelineUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/type`. - public var _type: Components.Schemas.issue_hyphen_type? + public var _type: Components.Schemas.IssueType? /// - Remark: Generated from `#/components/schemas/issue/repository`. - public var repository: Components.Schemas.repository? + public var repository: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/issue/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/issue/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// - Remark: Generated from `#/components/schemas/issue/sub_issues_summary`. - public var sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? - /// Creates a new `issue`. + public var subIssuesSummary: Components.Schemas.SubIssuesSummary? + /// Creates a new `Issue`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: URL for the issue - /// - repository_url: - /// - labels_url: - /// - comments_url: - /// - events_url: - /// - html_url: + /// - repositoryUrl: + /// - labelsUrl: + /// - commentsUrl: + /// - eventsUrl: + /// - htmlUrl: /// - number: Number uniquely identifying the issue within its repository /// - state: State of the issue; either 'open' or 'closed' - /// - state_reason: The reason for the current state + /// - stateReason: The reason for the current state /// - title: Title of the issue /// - body: Contents of the issue /// - user: @@ -3101,72 +3110,72 @@ public enum Components { /// - assignees: /// - milestone: /// - locked: - /// - active_lock_reason: + /// - activeLockReason: /// - comments: - /// - pull_request: - /// - closed_at: - /// - created_at: - /// - updated_at: + /// - pullRequest: + /// - closedAt: + /// - createdAt: + /// - updatedAt: /// - draft: - /// - closed_by: - /// - body_html: - /// - body_text: - /// - timeline_url: + /// - closedBy: + /// - bodyHtml: + /// - bodyText: + /// - timelineUrl: /// - _type: /// - repository: - /// - performed_via_github_app: - /// - author_association: + /// - performedViaGithubApp: + /// - authorAssociation: /// - reactions: - /// - sub_issues_summary: + /// - subIssuesSummary: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repository_url: Swift.String, - labels_url: Swift.String, - comments_url: Swift.String, - events_url: Swift.String, - html_url: Swift.String, + repositoryUrl: Swift.String, + labelsUrl: Swift.String, + commentsUrl: Swift.String, + eventsUrl: Swift.String, + htmlUrl: Swift.String, number: Swift.Int, state: Swift.String, - state_reason: Components.Schemas.issue.state_reasonPayload? = nil, + stateReason: Components.Schemas.Issue.StateReasonPayload? = nil, title: Swift.String, body: Swift.String? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - labels: Components.Schemas.issue.labelsPayload, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + labels: Components.Schemas.Issue.LabelsPayload, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + milestone: Components.Schemas.NullableMilestone? = nil, locked: Swift.Bool, - active_lock_reason: Swift.String? = nil, + activeLockReason: Swift.String? = nil, comments: Swift.Int, - pull_request: Components.Schemas.issue.pull_requestPayload? = nil, - closed_at: Foundation.Date? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, + pullRequest: Components.Schemas.Issue.PullRequestPayload? = nil, + closedAt: Foundation.Date? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, draft: Swift.Bool? = nil, - closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - timeline_url: Swift.String? = nil, - _type: Components.Schemas.issue_hyphen_type? = nil, - repository: Components.Schemas.repository? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - author_association: Components.Schemas.author_hyphen_association, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? = nil + closedBy: Components.Schemas.NullableSimpleUser? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + timelineUrl: Swift.String? = nil, + _type: Components.Schemas.IssueType? = nil, + repository: Components.Schemas.Repository? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + authorAssociation: Components.Schemas.AuthorAssociation, + reactions: Components.Schemas.ReactionRollup? = nil, + subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repository_url = repository_url - self.labels_url = labels_url - self.comments_url = comments_url - self.events_url = events_url - self.html_url = html_url + self.repositoryUrl = repositoryUrl + self.labelsUrl = labelsUrl + self.commentsUrl = commentsUrl + self.eventsUrl = eventsUrl + self.htmlUrl = htmlUrl self.number = number self.state = state - self.state_reason = state_reason + self.stateReason = stateReason self.title = title self.body = body self.user = user @@ -3175,36 +3184,36 @@ public enum Components { self.assignees = assignees self.milestone = milestone self.locked = locked - self.active_lock_reason = active_lock_reason + self.activeLockReason = activeLockReason self.comments = comments - self.pull_request = pull_request - self.closed_at = closed_at - self.created_at = created_at - self.updated_at = updated_at + self.pullRequest = pullRequest + self.closedAt = closedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.draft = draft - self.closed_by = closed_by - self.body_html = body_html - self.body_text = body_text - self.timeline_url = timeline_url + self.closedBy = closedBy + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.timelineUrl = timelineUrl self._type = _type self.repository = repository - self.performed_via_github_app = performed_via_github_app - self.author_association = author_association + self.performedViaGithubApp = performedViaGithubApp + self.authorAssociation = authorAssociation self.reactions = reactions - self.sub_issues_summary = sub_issues_summary + self.subIssuesSummary = subIssuesSummary } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case repository_url - case labels_url - case comments_url - case events_url - case html_url + case repositoryUrl = "repository_url" + case labelsUrl = "labels_url" + case commentsUrl = "comments_url" + case eventsUrl = "events_url" + case htmlUrl = "html_url" case number case state - case state_reason + case stateReason = "state_reason" case title case body case user @@ -3213,35 +3222,35 @@ public enum Components { case assignees case milestone case locked - case active_lock_reason + case activeLockReason = "active_lock_reason" case comments - case pull_request - case closed_at - case created_at - case updated_at + case pullRequest = "pull_request" + case closedAt = "closed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case draft - case closed_by - case body_html - case body_text - case timeline_url + case closedBy = "closed_by" + case bodyHtml = "body_html" + case bodyText = "body_text" + case timelineUrl = "timeline_url" case _type = "type" case repository - case performed_via_github_app - case author_association + case performedViaGithubApp = "performed_via_github_app" + case authorAssociation = "author_association" case reactions - case sub_issues_summary + case subIssuesSummary = "sub_issues_summary" } } /// Comments provide a way for people to collaborate on an issue. /// /// - Remark: Generated from `#/components/schemas/issue-comment`. - public struct issue_hyphen_comment: Codable, Hashable, Sendable { + public struct IssueComment: Codable, Hashable, Sendable { /// Unique identifier of the issue comment /// /// - Remark: Generated from `#/components/schemas/issue-comment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue comment /// /// - Remark: Generated from `#/components/schemas/issue-comment/url`. @@ -3251,109 +3260,109 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue-comment/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-comment/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/issue-comment/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `issue_hyphen_comment`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `IssueComment`. /// /// - Parameters: /// - id: Unique identifier of the issue comment - /// - node_id: + /// - nodeId: /// - url: URL for the issue comment /// - body: Contents of the issue comment - /// - body_text: - /// - body_html: - /// - html_url: + /// - bodyText: + /// - bodyHtml: + /// - htmlUrl: /// - user: - /// - created_at: - /// - updated_at: - /// - issue_url: - /// - author_association: - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - issueUrl: + /// - authorAssociation: + /// - performedViaGithubApp: /// - reactions: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, body: Swift.String? = nil, - body_text: Swift.String? = nil, - body_html: Swift.String? = nil, - html_url: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - issue_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + bodyText: Swift.String? = nil, + bodyHtml: Swift.String? = nil, + htmlUrl: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + issueUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reactions: Components.Schemas.ReactionRollup? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.body = body - self.body_text = body_text - self.body_html = body_html - self.html_url = html_url + self.bodyText = bodyText + self.bodyHtml = bodyHtml + self.htmlUrl = htmlUrl self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.issue_url = issue_url - self.author_association = author_association - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.issueUrl = issueUrl + self.authorAssociation = authorAssociation + self.performedViaGithubApp = performedViaGithubApp self.reactions = reactions } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case body - case body_text - case body_html - case html_url + case bodyText = "body_text" + case bodyHtml = "body_html" + case htmlUrl = "html_url" case user - case created_at - case updated_at - case issue_url - case author_association - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case issueUrl = "issue_url" + case authorAssociation = "author_association" + case performedViaGithubApp = "performed_via_github_app" case reactions } } /// Event /// /// - Remark: Generated from `#/components/schemas/event`. - public struct event: Codable, Hashable, Sendable { + public struct Event: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/event/id`. public var id: Swift.String /// - Remark: Generated from `#/components/schemas/event/type`. public var _type: Swift.String? /// - Remark: Generated from `#/components/schemas/event/actor`. - public var actor: Components.Schemas.actor + public var actor: Components.Schemas.Actor /// - Remark: Generated from `#/components/schemas/event/repo`. - public struct repoPayload: Codable, Hashable, Sendable { + public struct RepoPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/event/repo/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/event/repo/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/event/repo/url`. public var url: Swift.String - /// Creates a new `repoPayload`. + /// Creates a new `RepoPayload`. /// /// - Parameters: /// - id: @@ -3375,69 +3384,69 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/event/repo`. - public var repo: Components.Schemas.event.repoPayload + public var repo: Components.Schemas.Event.RepoPayload /// - Remark: Generated from `#/components/schemas/event/org`. - public var org: Components.Schemas.actor? + public var org: Components.Schemas.Actor? /// - Remark: Generated from `#/components/schemas/event/payload`. - public struct payloadPayload: Codable, Hashable, Sendable { + public struct PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/event/payload/action`. public var action: Swift.String? /// - Remark: Generated from `#/components/schemas/event/payload/issue`. - public var issue: Components.Schemas.issue? + public var issue: Components.Schemas.Issue? /// - Remark: Generated from `#/components/schemas/event/payload/comment`. - public var comment: Components.Schemas.issue_hyphen_comment? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload`. - public struct pagesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/page_name`. - public var page_name: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/title`. + public var comment: Components.Schemas.IssueComment? + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload`. + public struct PagesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/page_name`. + public var pageName: Swift.String? + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/title`. public var title: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/summary`. + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/summary`. public var summary: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/action`. + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/action`. public var action: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/sha`. + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/sha`. public var sha: Swift.String? - /// - Remark: Generated from `#/components/schemas/event/payload/pagesPayload/html_url`. - public var html_url: Swift.String? - /// Creates a new `pagesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/event/payload/PagesPayload/html_url`. + public var htmlUrl: Swift.String? + /// Creates a new `PagesPayloadPayload`. /// /// - Parameters: - /// - page_name: + /// - pageName: /// - title: /// - summary: /// - action: /// - sha: - /// - html_url: + /// - htmlUrl: public init( - page_name: Swift.String? = nil, + pageName: Swift.String? = nil, title: Swift.String? = nil, summary: Swift.String? = nil, action: Swift.String? = nil, sha: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { - self.page_name = page_name + self.pageName = pageName self.title = title self.summary = summary self.action = action self.sha = sha - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { - case page_name + case pageName = "page_name" case title case summary case action case sha - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/event/payload/pages`. - public typealias pagesPayload = [Components.Schemas.event.payloadPayload.pagesPayloadPayload] + public typealias PagesPayload = [Components.Schemas.Event.PayloadPayload.PagesPayloadPayload] /// - Remark: Generated from `#/components/schemas/event/payload/pages`. - public var pages: Components.Schemas.event.payloadPayload.pagesPayload? - /// Creates a new `payloadPayload`. + public var pages: Components.Schemas.Event.PayloadPayload.PagesPayload? + /// Creates a new `PayloadPayload`. /// /// - Parameters: /// - action: @@ -3446,9 +3455,9 @@ public enum Components { /// - pages: public init( action: Swift.String? = nil, - issue: Components.Schemas.issue? = nil, - comment: Components.Schemas.issue_hyphen_comment? = nil, - pages: Components.Schemas.event.payloadPayload.pagesPayload? = nil + issue: Components.Schemas.Issue? = nil, + comment: Components.Schemas.IssueComment? = nil, + pages: Components.Schemas.Event.PayloadPayload.PagesPayload? = nil ) { self.action = action self.issue = issue @@ -3463,12 +3472,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/event/payload`. - public var payload: Components.Schemas.event.payloadPayload + public var payload: Components.Schemas.Event.PayloadPayload /// - Remark: Generated from `#/components/schemas/event/public`. public var _public: Swift.Bool /// - Remark: Generated from `#/components/schemas/event/created_at`. - public var created_at: Foundation.Date? - /// Creates a new `event`. + public var createdAt: Foundation.Date? + /// Creates a new `Event`. /// /// - Parameters: /// - id: @@ -3478,16 +3487,16 @@ public enum Components { /// - org: /// - payload: /// - _public: - /// - created_at: + /// - createdAt: public init( id: Swift.String, _type: Swift.String? = nil, - actor: Components.Schemas.actor, - repo: Components.Schemas.event.repoPayload, - org: Components.Schemas.actor? = nil, - payload: Components.Schemas.event.payloadPayload, + actor: Components.Schemas.Actor, + repo: Components.Schemas.Event.RepoPayload, + org: Components.Schemas.Actor? = nil, + payload: Components.Schemas.Event.PayloadPayload, _public: Swift.Bool, - created_at: Foundation.Date? = nil + createdAt: Foundation.Date? = nil ) { self.id = id self._type = _type @@ -3496,7 +3505,7 @@ public enum Components { self.org = org self.payload = payload self._public = _public - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { case id @@ -3506,18 +3515,18 @@ public enum Components { case org case payload case _public = "public" - case created_at + case createdAt = "created_at" } } /// Hypermedia Link with Type /// /// - Remark: Generated from `#/components/schemas/link-with-type`. - public struct link_hyphen_with_hyphen_type: Codable, Hashable, Sendable { + public struct LinkWithType: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/link-with-type/href`. public var href: Swift.String /// - Remark: Generated from `#/components/schemas/link-with-type/type`. public var _type: Swift.String - /// Creates a new `link_hyphen_with_hyphen_type`. + /// Creates a new `LinkWithType`. /// /// - Parameters: /// - href: @@ -3537,173 +3546,173 @@ public enum Components { /// Feed /// /// - Remark: Generated from `#/components/schemas/feed`. - public struct feed: Codable, Hashable, Sendable { + public struct Feed: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/feed/timeline_url`. - public var timeline_url: Swift.String + public var timelineUrl: Swift.String /// - Remark: Generated from `#/components/schemas/feed/user_url`. - public var user_url: Swift.String + public var userUrl: Swift.String /// - Remark: Generated from `#/components/schemas/feed/current_user_public_url`. - public var current_user_public_url: Swift.String? + public var currentUserPublicUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/feed/current_user_url`. - public var current_user_url: Swift.String? + public var currentUserUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/feed/current_user_actor_url`. - public var current_user_actor_url: Swift.String? + public var currentUserActorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/feed/current_user_organization_url`. - public var current_user_organization_url: Swift.String? + public var currentUserOrganizationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/feed/current_user_organization_urls`. - public var current_user_organization_urls: [Swift.String]? + public var currentUserOrganizationUrls: [Swift.String]? /// - Remark: Generated from `#/components/schemas/feed/security_advisories_url`. - public var security_advisories_url: Swift.String? + public var securityAdvisoriesUrl: Swift.String? /// A feed of discussions for a given repository. /// /// - Remark: Generated from `#/components/schemas/feed/repository_discussions_url`. - public var repository_discussions_url: Swift.String? + public var repositoryDiscussionsUrl: Swift.String? /// A feed of discussions for a given repository and category. /// /// - Remark: Generated from `#/components/schemas/feed/repository_discussions_category_url`. - public var repository_discussions_category_url: Swift.String? + public var repositoryDiscussionsCategoryUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/feed/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/feed/_links/timeline`. - public var timeline: Components.Schemas.link_hyphen_with_hyphen_type + public var timeline: Components.Schemas.LinkWithType /// - Remark: Generated from `#/components/schemas/feed/_links/user`. - public var user: Components.Schemas.link_hyphen_with_hyphen_type + public var user: Components.Schemas.LinkWithType /// - Remark: Generated from `#/components/schemas/feed/_links/security_advisories`. - public var security_advisories: Components.Schemas.link_hyphen_with_hyphen_type? + public var securityAdvisories: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/current_user`. - public var current_user: Components.Schemas.link_hyphen_with_hyphen_type? + public var currentUser: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/current_user_public`. - public var current_user_public: Components.Schemas.link_hyphen_with_hyphen_type? + public var currentUserPublic: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/current_user_actor`. - public var current_user_actor: Components.Schemas.link_hyphen_with_hyphen_type? + public var currentUserActor: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/current_user_organization`. - public var current_user_organization: Components.Schemas.link_hyphen_with_hyphen_type? + public var currentUserOrganization: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/current_user_organizations`. - public var current_user_organizations: [Components.Schemas.link_hyphen_with_hyphen_type]? + public var currentUserOrganizations: [Components.Schemas.LinkWithType]? /// - Remark: Generated from `#/components/schemas/feed/_links/repository_discussions`. - public var repository_discussions: Components.Schemas.link_hyphen_with_hyphen_type? + public var repositoryDiscussions: Components.Schemas.LinkWithType? /// - Remark: Generated from `#/components/schemas/feed/_links/repository_discussions_category`. - public var repository_discussions_category: Components.Schemas.link_hyphen_with_hyphen_type? - /// Creates a new `_linksPayload`. + public var repositoryDiscussionsCategory: Components.Schemas.LinkWithType? + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - timeline: /// - user: - /// - security_advisories: - /// - current_user: - /// - current_user_public: - /// - current_user_actor: - /// - current_user_organization: - /// - current_user_organizations: - /// - repository_discussions: - /// - repository_discussions_category: + /// - securityAdvisories: + /// - currentUser: + /// - currentUserPublic: + /// - currentUserActor: + /// - currentUserOrganization: + /// - currentUserOrganizations: + /// - repositoryDiscussions: + /// - repositoryDiscussionsCategory: public init( - timeline: Components.Schemas.link_hyphen_with_hyphen_type, - user: Components.Schemas.link_hyphen_with_hyphen_type, - security_advisories: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - current_user: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - current_user_public: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - current_user_actor: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - current_user_organization: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - current_user_organizations: [Components.Schemas.link_hyphen_with_hyphen_type]? = nil, - repository_discussions: Components.Schemas.link_hyphen_with_hyphen_type? = nil, - repository_discussions_category: Components.Schemas.link_hyphen_with_hyphen_type? = nil + timeline: Components.Schemas.LinkWithType, + user: Components.Schemas.LinkWithType, + securityAdvisories: Components.Schemas.LinkWithType? = nil, + currentUser: Components.Schemas.LinkWithType? = nil, + currentUserPublic: Components.Schemas.LinkWithType? = nil, + currentUserActor: Components.Schemas.LinkWithType? = nil, + currentUserOrganization: Components.Schemas.LinkWithType? = nil, + currentUserOrganizations: [Components.Schemas.LinkWithType]? = nil, + repositoryDiscussions: Components.Schemas.LinkWithType? = nil, + repositoryDiscussionsCategory: Components.Schemas.LinkWithType? = nil ) { self.timeline = timeline self.user = user - self.security_advisories = security_advisories - self.current_user = current_user - self.current_user_public = current_user_public - self.current_user_actor = current_user_actor - self.current_user_organization = current_user_organization - self.current_user_organizations = current_user_organizations - self.repository_discussions = repository_discussions - self.repository_discussions_category = repository_discussions_category + self.securityAdvisories = securityAdvisories + self.currentUser = currentUser + self.currentUserPublic = currentUserPublic + self.currentUserActor = currentUserActor + self.currentUserOrganization = currentUserOrganization + self.currentUserOrganizations = currentUserOrganizations + self.repositoryDiscussions = repositoryDiscussions + self.repositoryDiscussionsCategory = repositoryDiscussionsCategory } public enum CodingKeys: String, CodingKey { case timeline case user - case security_advisories - case current_user - case current_user_public - case current_user_actor - case current_user_organization - case current_user_organizations - case repository_discussions - case repository_discussions_category + case securityAdvisories = "security_advisories" + case currentUser = "current_user" + case currentUserPublic = "current_user_public" + case currentUserActor = "current_user_actor" + case currentUserOrganization = "current_user_organization" + case currentUserOrganizations = "current_user_organizations" + case repositoryDiscussions = "repository_discussions" + case repositoryDiscussionsCategory = "repository_discussions_category" } } /// - Remark: Generated from `#/components/schemas/feed/_links`. - public var _links: Components.Schemas.feed._linksPayload - /// Creates a new `feed`. + public var _links: Components.Schemas.Feed._LinksPayload + /// Creates a new `Feed`. /// /// - Parameters: - /// - timeline_url: - /// - user_url: - /// - current_user_public_url: - /// - current_user_url: - /// - current_user_actor_url: - /// - current_user_organization_url: - /// - current_user_organization_urls: - /// - security_advisories_url: - /// - repository_discussions_url: A feed of discussions for a given repository. - /// - repository_discussions_category_url: A feed of discussions for a given repository and category. + /// - timelineUrl: + /// - userUrl: + /// - currentUserPublicUrl: + /// - currentUserUrl: + /// - currentUserActorUrl: + /// - currentUserOrganizationUrl: + /// - currentUserOrganizationUrls: + /// - securityAdvisoriesUrl: + /// - repositoryDiscussionsUrl: A feed of discussions for a given repository. + /// - repositoryDiscussionsCategoryUrl: A feed of discussions for a given repository and category. /// - _links: public init( - timeline_url: Swift.String, - user_url: Swift.String, - current_user_public_url: Swift.String? = nil, - current_user_url: Swift.String? = nil, - current_user_actor_url: Swift.String? = nil, - current_user_organization_url: Swift.String? = nil, - current_user_organization_urls: [Swift.String]? = nil, - security_advisories_url: Swift.String? = nil, - repository_discussions_url: Swift.String? = nil, - repository_discussions_category_url: Swift.String? = nil, - _links: Components.Schemas.feed._linksPayload + timelineUrl: Swift.String, + userUrl: Swift.String, + currentUserPublicUrl: Swift.String? = nil, + currentUserUrl: Swift.String? = nil, + currentUserActorUrl: Swift.String? = nil, + currentUserOrganizationUrl: Swift.String? = nil, + currentUserOrganizationUrls: [Swift.String]? = nil, + securityAdvisoriesUrl: Swift.String? = nil, + repositoryDiscussionsUrl: Swift.String? = nil, + repositoryDiscussionsCategoryUrl: Swift.String? = nil, + _links: Components.Schemas.Feed._LinksPayload ) { - self.timeline_url = timeline_url - self.user_url = user_url - self.current_user_public_url = current_user_public_url - self.current_user_url = current_user_url - self.current_user_actor_url = current_user_actor_url - self.current_user_organization_url = current_user_organization_url - self.current_user_organization_urls = current_user_organization_urls - self.security_advisories_url = security_advisories_url - self.repository_discussions_url = repository_discussions_url - self.repository_discussions_category_url = repository_discussions_category_url + self.timelineUrl = timelineUrl + self.userUrl = userUrl + self.currentUserPublicUrl = currentUserPublicUrl + self.currentUserUrl = currentUserUrl + self.currentUserActorUrl = currentUserActorUrl + self.currentUserOrganizationUrl = currentUserOrganizationUrl + self.currentUserOrganizationUrls = currentUserOrganizationUrls + self.securityAdvisoriesUrl = securityAdvisoriesUrl + self.repositoryDiscussionsUrl = repositoryDiscussionsUrl + self.repositoryDiscussionsCategoryUrl = repositoryDiscussionsCategoryUrl self._links = _links } public enum CodingKeys: String, CodingKey { - case timeline_url - case user_url - case current_user_public_url - case current_user_url - case current_user_actor_url - case current_user_organization_url - case current_user_organization_urls - case security_advisories_url - case repository_discussions_url - case repository_discussions_category_url + case timelineUrl = "timeline_url" + case userUrl = "user_url" + case currentUserPublicUrl = "current_user_public_url" + case currentUserUrl = "current_user_url" + case currentUserActorUrl = "current_user_actor_url" + case currentUserOrganizationUrl = "current_user_organization_url" + case currentUserOrganizationUrls = "current_user_organization_urls" + case securityAdvisoriesUrl = "security_advisories_url" + case repositoryDiscussionsUrl = "repository_discussions_url" + case repositoryDiscussionsCategoryUrl = "repository_discussions_category_url" case _links } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3711,21 +3720,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3733,27 +3742,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3763,21 +3772,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3785,21 +3794,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3807,21 +3816,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3829,21 +3838,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -3851,62 +3860,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -3914,121 +3923,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -4036,13 +4045,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -4053,7 +4062,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4083,489 +4092,489 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// Thread /// /// - Remark: Generated from `#/components/schemas/thread`. - public struct thread: Codable, Hashable, Sendable { + public struct Thread: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/thread/id`. public var id: Swift.String /// - Remark: Generated from `#/components/schemas/thread/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/thread/subject`. - public struct subjectPayload: Codable, Hashable, Sendable { + public struct SubjectPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/thread/subject/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/thread/subject/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/thread/subject/latest_comment_url`. - public var latest_comment_url: Swift.String + public var latestCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/thread/subject/type`. public var _type: Swift.String - /// Creates a new `subjectPayload`. + /// Creates a new `SubjectPayload`. /// /// - Parameters: /// - title: /// - url: - /// - latest_comment_url: + /// - latestCommentUrl: /// - _type: public init( title: Swift.String, url: Swift.String, - latest_comment_url: Swift.String, + latestCommentUrl: Swift.String, _type: Swift.String ) { self.title = title self.url = url - self.latest_comment_url = latest_comment_url + self.latestCommentUrl = latestCommentUrl self._type = _type } public enum CodingKeys: String, CodingKey { case title case url - case latest_comment_url + case latestCommentUrl = "latest_comment_url" case _type = "type" } } /// - Remark: Generated from `#/components/schemas/thread/subject`. - public var subject: Components.Schemas.thread.subjectPayload + public var subject: Components.Schemas.Thread.SubjectPayload /// - Remark: Generated from `#/components/schemas/thread/reason`. public var reason: Swift.String /// - Remark: Generated from `#/components/schemas/thread/unread`. public var unread: Swift.Bool /// - Remark: Generated from `#/components/schemas/thread/updated_at`. - public var updated_at: Swift.String + public var updatedAt: Swift.String /// - Remark: Generated from `#/components/schemas/thread/last_read_at`. - public var last_read_at: Swift.String? + public var lastReadAt: Swift.String? /// - Remark: Generated from `#/components/schemas/thread/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/thread/subscription_url`. - public var subscription_url: Swift.String - /// Creates a new `thread`. + public var subscriptionUrl: Swift.String + /// Creates a new `Thread`. /// /// - Parameters: /// - id: @@ -4573,30 +4582,30 @@ public enum Components { /// - subject: /// - reason: /// - unread: - /// - updated_at: - /// - last_read_at: + /// - updatedAt: + /// - lastReadAt: /// - url: - /// - subscription_url: + /// - subscriptionUrl: public init( id: Swift.String, - repository: Components.Schemas.minimal_hyphen_repository, - subject: Components.Schemas.thread.subjectPayload, + repository: Components.Schemas.MinimalRepository, + subject: Components.Schemas.Thread.SubjectPayload, reason: Swift.String, unread: Swift.Bool, - updated_at: Swift.String, - last_read_at: Swift.String? = nil, + updatedAt: Swift.String, + lastReadAt: Swift.String? = nil, url: Swift.String, - subscription_url: Swift.String + subscriptionUrl: Swift.String ) { self.id = id self.repository = repository self.subject = subject self.reason = reason self.unread = unread - self.updated_at = updated_at - self.last_read_at = last_read_at + self.updatedAt = updatedAt + self.lastReadAt = lastReadAt self.url = url - self.subscription_url = subscription_url + self.subscriptionUrl = subscriptionUrl } public enum CodingKeys: String, CodingKey { case id @@ -4604,16 +4613,16 @@ public enum Components { case subject case reason case unread - case updated_at - case last_read_at + case updatedAt = "updated_at" + case lastReadAt = "last_read_at" case url - case subscription_url + case subscriptionUrl = "subscription_url" } } /// Thread Subscription /// /// - Remark: Generated from `#/components/schemas/thread-subscription`. - public struct thread_hyphen_subscription: Codable, Hashable, Sendable { + public struct ThreadSubscription: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/thread-subscription/subscribed`. public var subscribed: Swift.Bool /// - Remark: Generated from `#/components/schemas/thread-subscription/ignored`. @@ -4621,79 +4630,79 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/thread-subscription/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/schemas/thread-subscription/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/thread-subscription/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/thread-subscription/thread_url`. - public var thread_url: Swift.String? + public var threadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/thread-subscription/repository_url`. - public var repository_url: Swift.String? - /// Creates a new `thread_hyphen_subscription`. + public var repositoryUrl: Swift.String? + /// Creates a new `ThreadSubscription`. /// /// - Parameters: /// - subscribed: /// - ignored: /// - reason: - /// - created_at: + /// - createdAt: /// - url: - /// - thread_url: - /// - repository_url: + /// - threadUrl: + /// - repositoryUrl: public init( subscribed: Swift.Bool, ignored: Swift.Bool, reason: Swift.String? = nil, - created_at: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, url: Swift.String, - thread_url: Swift.String? = nil, - repository_url: Swift.String? = nil + threadUrl: Swift.String? = nil, + repositoryUrl: Swift.String? = nil ) { self.subscribed = subscribed self.ignored = ignored self.reason = reason - self.created_at = created_at + self.createdAt = createdAt self.url = url - self.thread_url = thread_url - self.repository_url = repository_url + self.threadUrl = threadUrl + self.repositoryUrl = repositoryUrl } public enum CodingKeys: String, CodingKey { case subscribed case ignored case reason - case created_at + case createdAt = "created_at" case url - case thread_url - case repository_url + case threadUrl = "thread_url" + case repositoryUrl = "repository_url" } } /// Stargazer /// /// - Remark: Generated from `#/components/schemas/stargazer`. - public struct stargazer: Codable, Hashable, Sendable { + public struct Stargazer: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/stargazer/starred_at`. - public var starred_at: Foundation.Date + public var starredAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/stargazer/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `stargazer`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `Stargazer`. /// /// - Parameters: - /// - starred_at: + /// - starredAt: /// - user: public init( - starred_at: Foundation.Date, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + starredAt: Foundation.Date, + user: Components.Schemas.NullableSimpleUser? = nil ) { - self.starred_at = starred_at + self.starredAt = starredAt self.user = user } public enum CodingKeys: String, CodingKey { - case starred_at + case starredAt = "starred_at" case user } } /// Repository invitations let you manage who you collaborate with. /// /// - Remark: Generated from `#/components/schemas/repository-subscription`. - public struct repository_hyphen_subscription: Codable, Hashable, Sendable { + public struct RepositorySubscription: Codable, Hashable, Sendable { /// Determines if notifications should be received from this repository. /// /// - Remark: Generated from `#/components/schemas/repository-subscription/subscribed`. @@ -4705,66 +4714,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository-subscription/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-subscription/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/repository-subscription/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository-subscription/repository_url`. - public var repository_url: Swift.String - /// Creates a new `repository_hyphen_subscription`. + public var repositoryUrl: Swift.String + /// Creates a new `RepositorySubscription`. /// /// - Parameters: /// - subscribed: Determines if notifications should be received from this repository. /// - ignored: Determines if all notifications should be blocked from this repository. /// - reason: - /// - created_at: + /// - createdAt: /// - url: - /// - repository_url: + /// - repositoryUrl: public init( subscribed: Swift.Bool, ignored: Swift.Bool, reason: Swift.String? = nil, - created_at: Foundation.Date, + createdAt: Foundation.Date, url: Swift.String, - repository_url: Swift.String + repositoryUrl: Swift.String ) { self.subscribed = subscribed self.ignored = ignored self.reason = reason - self.created_at = created_at + self.createdAt = createdAt self.url = url - self.repository_url = repository_url + self.repositoryUrl = repositoryUrl } public enum CodingKeys: String, CodingKey { case subscribed case ignored case reason - case created_at + case createdAt = "created_at" case url - case repository_url + case repositoryUrl = "repository_url" } } /// Starred Repository /// /// - Remark: Generated from `#/components/schemas/starred-repository`. - public struct starred_hyphen_repository: Codable, Hashable, Sendable { + public struct StarredRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/starred-repository/starred_at`. - public var starred_at: Foundation.Date + public var starredAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/starred-repository/repo`. - public var repo: Components.Schemas.repository - /// Creates a new `starred_hyphen_repository`. + public var repo: Components.Schemas.Repository + /// Creates a new `StarredRepository`. /// /// - Parameters: - /// - starred_at: + /// - starredAt: /// - repo: public init( - starred_at: Foundation.Date, - repo: Components.Schemas.repository + starredAt: Foundation.Date, + repo: Components.Schemas.Repository ) { - self.starred_at = starred_at + self.starredAt = starredAt self.repo = repo } public enum CodingKeys: String, CodingKey { - case starred_at + case starredAt = "starred_at" case repo } } @@ -4774,58 +4783,58 @@ public enum Components { /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since`. - public typealias since = Foundation.Date + public typealias Since = Foundation.Date /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// If `true`, show notifications marked as read. /// /// - Remark: Generated from `#/components/parameters/all`. - public typealias all = Swift.Bool + public typealias All = Swift.Bool /// If `true`, only shows notifications in which the user is directly participating or mentioned. /// /// - Remark: Generated from `#/components/parameters/participating`. - public typealias participating = Swift.Bool + public typealias Participating = Swift.Bool /// Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/before`. - public typealias before = Foundation.Date + public typealias Before = Foundation.Date /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/components/parameters/thread-id`. - public typealias thread_hyphen_id = Swift.Int + public typealias ThreadId = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to. /// /// - Remark: Generated from `#/components/parameters/sort-starred`. - @frozen public enum sort_hyphen_starred: String, Codable, Hashable, Sendable { + @frozen public enum SortStarred: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } @@ -4834,16 +4843,16 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4853,25 +4862,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -4881,29 +4890,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4913,25 +4922,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4941,54 +4950,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4998,25 +5007,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct moved_permanently: Sendable, Hashable { + public struct MovedPermanently: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5026,12 +5035,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.moved_permanently.Body - /// Creates a new `moved_permanently`. + public var body: Components.Responses.MovedPermanently.Body + /// Creates a new `MovedPermanently`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.moved_permanently.Body) { + public init(body: Components.Responses.MovedPermanently.Body) { self.body = body } } @@ -5039,7 +5048,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -5052,7 +5061,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /events`. /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)`. - public enum activity_sol_list_hyphen_public_hyphen_events { + public enum ActivityListPublicEvents { public static let id: Swift.String = "activity/list-public-events" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/events/GET/query`. @@ -5060,45 +5069,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Query + public var query: Operations.ActivityListPublicEvents.Input.Query /// - Remark: Generated from `#/paths/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Headers + public var headers: Operations.ActivityListPublicEvents.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events.Input.Headers = .init() + query: Operations.ActivityListPublicEvents.Input.Query = .init(), + headers: Operations.ActivityListPublicEvents.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5109,12 +5118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -5124,12 +5133,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_public_hyphen_events.Output.Ok.Body + public var body: Operations.ActivityListPublicEvents.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_public_hyphen_events.Output.Ok.Body) { + public init(body: Operations.ActivityListPublicEvents.Output.Ok.Body) { self.body = body } } @@ -5138,12 +5147,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_public_hyphen_events.Output.Ok) + case ok(Operations.ActivityListPublicEvents.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_public_hyphen_events.Output.Ok { + public var ok: Operations.ActivityListPublicEvents.Output.Ok { get throws { switch self { case let .ok(response): @@ -5161,12 +5170,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5184,12 +5201,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5207,12 +5224,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//events/get(activity/list-public-events)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5275,26 +5292,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /feeds`. /// - Remark: Generated from `#/paths//feeds/get(activity/get-feeds)`. - public enum activity_sol_get_hyphen_feeds { + public enum ActivityGetFeeds { public static let id: Swift.String = "activity/get-feeds" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/feeds/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_get_hyphen_feeds.Input.Headers + public var headers: Operations.ActivityGetFeeds.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.activity_sol_get_hyphen_feeds.Input.Headers = .init()) { + public init(headers: Operations.ActivityGetFeeds.Input.Headers = .init()) { self.headers = headers } } @@ -5303,12 +5320,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/feeds/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/feeds/GET/responses/200/content/application\/json`. - case json(Components.Schemas.feed) + case json(Components.Schemas.Feed) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.feed { + public var json: Components.Schemas.Feed { get throws { switch self { case let .json(body): @@ -5318,12 +5335,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_get_hyphen_feeds.Output.Ok.Body + public var body: Operations.ActivityGetFeeds.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_get_hyphen_feeds.Output.Ok.Body) { + public init(body: Operations.ActivityGetFeeds.Output.Ok.Body) { self.body = body } } @@ -5332,12 +5349,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//feeds/get(activity/get-feeds)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_get_hyphen_feeds.Output.Ok) + case ok(Operations.ActivityGetFeeds.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_get_hyphen_feeds.Output.Ok { + public var ok: Operations.ActivityGetFeeds.Output.Ok { get throws { switch self { case let .ok(response): @@ -5388,7 +5405,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /networks/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)`. - public enum activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network { + public enum ActivityListPublicEventsForRepoNetwork { public static let id: Swift.String = "activity/list-public-events-for-repo-network" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/path`. @@ -5396,61 +5413,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Path + public var path: Operations.ActivityListPublicEventsForRepoNetwork.Input.Path /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Query + public var query: Operations.ActivityListPublicEventsForRepoNetwork.Input.Query /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Headers + public var headers: Operations.ActivityListPublicEventsForRepoNetwork.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5458,9 +5475,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Input.Headers = .init() + path: Operations.ActivityListPublicEventsForRepoNetwork.Input.Path, + query: Operations.ActivityListPublicEventsForRepoNetwork.Input.Query = .init(), + headers: Operations.ActivityListPublicEventsForRepoNetwork.Input.Headers = .init() ) { self.path = path self.query = query @@ -5472,12 +5489,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/networks/{owner}/{repo}/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -5487,12 +5504,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output.Ok.Body + public var body: Operations.ActivityListPublicEventsForRepoNetwork.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output.Ok.Body) { + public init(body: Operations.ActivityListPublicEventsForRepoNetwork.Output.Ok.Body) { self.body = body } } @@ -5501,12 +5518,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output.Ok) + case ok(Operations.ActivityListPublicEventsForRepoNetwork.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_repo_hyphen_network.Output.Ok { + public var ok: Operations.ActivityListPublicEventsForRepoNetwork.Output.Ok { get throws { switch self { case let .ok(response): @@ -5524,12 +5541,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5547,12 +5564,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5570,12 +5587,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5593,12 +5618,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//networks/{owner}/{repo}/events/get(activity/list-public-events-for-repo-network)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -5648,7 +5673,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /notifications`. /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)`. - public enum activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityListNotificationsForAuthenticatedUser { public static let id: Swift.String = "activity/list-notifications-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/GET/query`. @@ -5656,27 +5681,27 @@ public enum Operations { /// If `true`, show notifications marked as read. /// /// - Remark: Generated from `#/paths/notifications/GET/query/all`. - public var all: Components.Parameters.all? + public var all: Components.Parameters.All? /// If `true`, only shows notifications in which the user is directly participating or mentioned. /// /// - Remark: Generated from `#/paths/notifications/GET/query/participating`. - public var participating: Components.Parameters.participating? + public var participating: Components.Parameters.Participating? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/notifications/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/notifications/GET/query/before`. - public var before: Components.Parameters.before? + public var before: Components.Parameters.Before? /// 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)." /// /// - Remark: Generated from `#/paths/notifications/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The number of results per page (max 50). 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)." /// /// - Remark: Generated from `#/paths/notifications/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: @@ -5685,44 +5710,44 @@ public enum Operations { /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - before: Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - 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)." - /// - per_page: The number of results per page (max 50). 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)." + /// - perPage: The number of results per page (max 50). 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)." public init( - all: Components.Parameters.all? = nil, - participating: Components.Parameters.participating? = nil, - since: Components.Parameters.since? = nil, - before: Components.Parameters.before? = nil, - page: Components.Parameters.page? = nil, - per_page: Swift.Int? = nil + all: Components.Parameters.All? = nil, + participating: Components.Parameters.Participating? = nil, + since: Components.Parameters.Since? = nil, + before: Components.Parameters.Before? = nil, + page: Components.Parameters.Page? = nil, + perPage: Swift.Int? = nil ) { self.all = all self.participating = participating self.since = since self.before = before self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/notifications/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListNotificationsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5733,26 +5758,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/notifications/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/notifications/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/GET/responses/200/content/application\/json`. - case json([Components.Schemas.thread]) + case json([Components.Schemas.Thread]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.thread] { + public var json: [Components.Schemas.Thread] { get throws { switch self { case let .json(body): @@ -5762,15 +5787,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5781,12 +5806,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListNotificationsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -5804,12 +5829,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5827,12 +5860,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5850,12 +5883,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5873,12 +5906,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/get(activity/list-notifications-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5928,62 +5961,62 @@ public enum Operations { /// /// - Remark: HTTP `PUT /notifications`. /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)`. - public enum activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read { + public enum ActivityMarkNotificationsAsRead { public static let id: Swift.String = "activity/mark-notifications-as-read" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers + public var headers: Operations.ActivityMarkNotificationsAsRead.Input.Headers /// - Remark: Generated from `#/paths/notifications/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. /// /// - Remark: Generated from `#/paths/notifications/PUT/requestBody/json/last_read_at`. - public var last_read_at: Foundation.Date? + public var lastReadAt: Foundation.Date? /// Whether the notification has been read. /// /// - Remark: Generated from `#/paths/notifications/PUT/requestBody/json/read`. public var read: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - last_read_at: Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. + /// - lastReadAt: Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. /// - read: Whether the notification has been read. public init( - last_read_at: Foundation.Date? = nil, + lastReadAt: Foundation.Date? = nil, read: Swift.Bool? = nil ) { - self.last_read_at = last_read_at + self.lastReadAt = lastReadAt self.read = read } public enum CodingKeys: String, CodingKey { - case last_read_at + case lastReadAt = "last_read_at" case read } } /// - Remark: Generated from `#/paths/notifications/PUT/requestBody/content/application\/json`. - case json(Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Body.jsonPayload) + case json(Operations.ActivityMarkNotificationsAsRead.Input.Body.JsonPayload) } - public var body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? + public var body: Operations.ActivityMarkNotificationsAsRead.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers = .init(), - body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? = nil + headers: Operations.ActivityMarkNotificationsAsRead.Input.Headers = .init(), + body: Operations.ActivityMarkNotificationsAsRead.Input.Body? = nil ) { self.headers = headers self.body = body @@ -5994,10 +6027,10 @@ public enum Operations { /// - Remark: Generated from `#/paths/notifications/PUT/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/PUT/responses/202/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/notifications/PUT/responses/202/content/json/message`. public var message: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: @@ -6009,12 +6042,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/notifications/PUT/responses/202/content/application\/json`. - case json(Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload) + case json(Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload { + public var json: Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6024,12 +6057,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body + public var body: Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body) { + public init(body: Operations.ActivityMarkNotificationsAsRead.Output.Accepted.Body) { self.body = body } } @@ -6038,12 +6071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted) + case accepted(Operations.ActivityMarkNotificationsAsRead.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted { + public var accepted: Operations.ActivityMarkNotificationsAsRead.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -6065,12 +6098,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/205`. /// /// HTTP response code: `205 resetContent`. - case resetContent(Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.ResetContent) + case resetContent(Operations.ActivityMarkNotificationsAsRead.Output.ResetContent) + /// Reset Content + /// + /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/205`. + /// + /// HTTP response code: `205 resetContent`. + public static var resetContent: Self { + .resetContent(.init()) + } /// The associated value of the enum case if `self` is `.resetContent`. /// /// - Throws: An error if `self` is not `.resetContent`. /// - SeeAlso: `.resetContent`. - public var resetContent: Operations.activity_sol_mark_hyphen_notifications_hyphen_as_hyphen_read.Output.ResetContent { + public var resetContent: Operations.ActivityMarkNotificationsAsRead.Output.ResetContent { get throws { switch self { case let .resetContent(response): @@ -6088,12 +6129,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6111,12 +6160,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6134,12 +6183,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/put(activity/mark-notifications-as-read)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6189,7 +6238,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)`. - public enum activity_sol_get_hyphen_thread { + public enum ActivityGetThread { public static let id: Swift.String = "activity/get-thread" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/GET/path`. @@ -6197,36 +6246,36 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/GET/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_get_hyphen_thread.Input.Path + public var path: Operations.ActivityGetThread.Input.Path /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_get_hyphen_thread.Input.Headers + public var headers: Operations.ActivityGetThread.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_get_hyphen_thread.Input.Path, - headers: Operations.activity_sol_get_hyphen_thread.Input.Headers = .init() + path: Operations.ActivityGetThread.Input.Path, + headers: Operations.ActivityGetThread.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6237,12 +6286,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.thread) + case json(Components.Schemas.Thread) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.thread { + public var json: Components.Schemas.Thread { get throws { switch self { case let .json(body): @@ -6252,12 +6301,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_get_hyphen_thread.Output.Ok.Body + public var body: Operations.ActivityGetThread.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_get_hyphen_thread.Output.Ok.Body) { + public init(body: Operations.ActivityGetThread.Output.Ok.Body) { self.body = body } } @@ -6266,12 +6315,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_get_hyphen_thread.Output.Ok) + case ok(Operations.ActivityGetThread.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_get_hyphen_thread.Output.Ok { + public var ok: Operations.ActivityGetThread.Output.Ok { get throws { switch self { case let .ok(response): @@ -6289,12 +6338,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6312,12 +6369,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6335,12 +6392,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/get(activity/get-thread)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6390,7 +6447,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)`. - public enum activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read { + public enum ActivityMarkThreadAsRead { public static let id: Swift.String = "activity/mark-thread-as-read" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/PATCH/path`. @@ -6398,36 +6455,36 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/PATCH/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Path + public var path: Operations.ActivityMarkThreadAsRead.Input.Path /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Headers + public var headers: Operations.ActivityMarkThreadAsRead.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Path, - headers: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Input.Headers = .init() + path: Operations.ActivityMarkThreadAsRead.Input.Path, + headers: Operations.ActivityMarkThreadAsRead.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6443,12 +6500,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)/responses/205`. /// /// HTTP response code: `205 resetContent`. - case resetContent(Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Output.ResetContent) + case resetContent(Operations.ActivityMarkThreadAsRead.Output.ResetContent) + /// Reset Content + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)/responses/205`. + /// + /// HTTP response code: `205 resetContent`. + public static var resetContent: Self { + .resetContent(.init()) + } /// The associated value of the enum case if `self` is `.resetContent`. /// /// - Throws: An error if `self` is not `.resetContent`. /// - SeeAlso: `.resetContent`. - public var resetContent: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_read.Output.ResetContent { + public var resetContent: Operations.ActivityMarkThreadAsRead.Output.ResetContent { get throws { switch self { case let .resetContent(response): @@ -6466,12 +6531,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6489,12 +6562,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/patch(activity/mark-thread-as-read)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6544,7 +6617,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)`. - public enum activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done { + public enum ActivityMarkThreadAsDone { public static let id: Swift.String = "activity/mark-thread-as-done" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/DELETE/path`. @@ -6552,21 +6625,21 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/DELETE/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input.Path + public var path: Operations.ActivityMarkThreadAsDone.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Input.Path) { + public init(path: Operations.ActivityMarkThreadAsDone.Input.Path) { self.path = path } } @@ -6580,12 +6653,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Output.NoContent) + case noContent(Operations.ActivityMarkThreadAsDone.Output.NoContent) + /// No content + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/delete(activity/mark-thread-as-done)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_mark_hyphen_thread_hyphen_as_hyphen_done.Output.NoContent { + public var noContent: Operations.ActivityMarkThreadAsDone.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6612,7 +6693,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)`. - public enum activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityGetThreadSubscriptionForAuthenticatedUser { public static let id: Swift.String = "activity/get-thread-subscription-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/GET/path`. @@ -6620,36 +6701,36 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/GET/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Path, + headers: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6660,12 +6741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/GET/responses/200/content/application\/json`. - case json(Components.Schemas.thread_hyphen_subscription) + case json(Components.Schemas.ThreadSubscription) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.thread_hyphen_subscription { + public var json: Components.Schemas.ThreadSubscription { get throws { switch self { case let .json(body): @@ -6675,12 +6756,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -6689,12 +6770,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_get_hyphen_thread_hyphen_subscription_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityGetThreadSubscriptionForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6712,12 +6793,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6735,12 +6824,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6758,12 +6847,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/get(activity/get-thread-subscription-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6817,7 +6906,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)`. - public enum activity_sol_set_hyphen_thread_hyphen_subscription { + public enum ActivitySetThreadSubscription { public static let id: Swift.String = "activity/set-thread-subscription" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/path`. @@ -6825,37 +6914,37 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Path + public var path: Operations.ActivitySetThreadSubscription.Input.Path /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Headers + public var headers: Operations.ActivitySetThreadSubscription.Input.Headers /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to block all notifications from a thread. /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/requestBody/json/ignored`. public var ignored: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - ignored: Whether to block all notifications from a thread. @@ -6867,9 +6956,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/requestBody/content/application\/json`. - case json(Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Body.jsonPayload) + case json(Operations.ActivitySetThreadSubscription.Input.Body.JsonPayload) } - public var body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Body? + public var body: Operations.ActivitySetThreadSubscription.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -6877,9 +6966,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Headers = .init(), - body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Input.Body? = nil + path: Operations.ActivitySetThreadSubscription.Input.Path, + headers: Operations.ActivitySetThreadSubscription.Input.Headers = .init(), + body: Operations.ActivitySetThreadSubscription.Input.Body? = nil ) { self.path = path self.headers = headers @@ -6891,12 +6980,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.thread_hyphen_subscription) + case json(Components.Schemas.ThreadSubscription) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.thread_hyphen_subscription { + public var json: Components.Schemas.ThreadSubscription { get throws { switch self { case let .json(body): @@ -6906,12 +6995,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output.Ok.Body + public var body: Operations.ActivitySetThreadSubscription.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output.Ok.Body) { + public init(body: Operations.ActivitySetThreadSubscription.Output.Ok.Body) { self.body = body } } @@ -6920,12 +7009,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output.Ok) + case ok(Operations.ActivitySetThreadSubscription.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_set_hyphen_thread_hyphen_subscription.Output.Ok { + public var ok: Operations.ActivitySetThreadSubscription.Output.Ok { get throws { switch self { case let .ok(response): @@ -6943,12 +7032,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6966,12 +7063,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6989,12 +7086,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/put(activity/set-thread-subscription)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7044,7 +7141,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /notifications/threads/{thread_id}/subscription`. /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)`. - public enum activity_sol_delete_hyphen_thread_hyphen_subscription { + public enum ActivityDeleteThreadSubscription { public static let id: Swift.String = "activity/delete-thread-subscription" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/DELETE/path`. @@ -7052,36 +7149,36 @@ public enum Operations { /// The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). /// /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/DELETE/path/thread_id`. - public var thread_id: Components.Parameters.thread_hyphen_id + public var threadId: Components.Parameters.ThreadId /// Creates a new `Path`. /// /// - Parameters: - /// - thread_id: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). - public init(thread_id: Components.Parameters.thread_hyphen_id) { - self.thread_id = thread_id + /// - threadId: The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). + public init(threadId: Components.Parameters.ThreadId) { + self.threadId = threadId } } - public var path: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Path + public var path: Operations.ActivityDeleteThreadSubscription.Input.Path /// - Remark: Generated from `#/paths/notifications/threads/{thread_id}/subscription/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Headers + public var headers: Operations.ActivityDeleteThreadSubscription.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Input.Headers = .init() + path: Operations.ActivityDeleteThreadSubscription.Input.Path, + headers: Operations.ActivityDeleteThreadSubscription.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7097,12 +7194,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Output.NoContent) + case noContent(Operations.ActivityDeleteThreadSubscription.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_delete_hyphen_thread_hyphen_subscription.Output.NoContent { + public var noContent: Operations.ActivityDeleteThreadSubscription.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7120,12 +7225,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7143,12 +7256,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7166,12 +7279,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//notifications/threads/{thread_id}/subscription/delete(activity/delete-thread-subscription)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7222,7 +7335,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/events`. /// - Remark: Generated from `#/paths//orgs/{org}/events/get(activity/list-public-org-events)`. - public enum activity_sol_list_hyphen_public_hyphen_org_hyphen_events { + public enum ActivityListPublicOrgEvents { public static let id: Swift.String = "activity/list-public-org-events" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/path`. @@ -7230,52 +7343,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Path + public var path: Operations.ActivityListPublicOrgEvents.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Query + public var query: Operations.ActivityListPublicOrgEvents.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Headers + public var headers: Operations.ActivityListPublicOrgEvents.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7283,9 +7396,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Input.Headers = .init() + path: Operations.ActivityListPublicOrgEvents.Input.Path, + query: Operations.ActivityListPublicOrgEvents.Input.Query = .init(), + headers: Operations.ActivityListPublicOrgEvents.Input.Headers = .init() ) { self.path = path self.query = query @@ -7297,12 +7410,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -7312,12 +7425,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output.Ok.Body + public var body: Operations.ActivityListPublicOrgEvents.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output.Ok.Body) { + public init(body: Operations.ActivityListPublicOrgEvents.Output.Ok.Body) { self.body = body } } @@ -7326,12 +7439,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/events/get(activity/list-public-org-events)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output.Ok) + case ok(Operations.ActivityListPublicOrgEvents.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_public_hyphen_org_hyphen_events.Output.Ok { + public var ok: Operations.ActivityListPublicOrgEvents.Output.Ok { get throws { switch self { case let .ok(response): @@ -7382,7 +7495,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/events/get(activity/list-repo-events)`. - public enum activity_sol_list_hyphen_repo_hyphen_events { + public enum ActivityListRepoEvents { public static let id: Swift.String = "activity/list-repo-events" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/path`. @@ -7390,61 +7503,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Path + public var path: Operations.ActivityListRepoEvents.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Query + public var query: Operations.ActivityListRepoEvents.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Headers + public var headers: Operations.ActivityListRepoEvents.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7452,9 +7565,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Path, - query: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repo_hyphen_events.Input.Headers = .init() + path: Operations.ActivityListRepoEvents.Input.Path, + query: Operations.ActivityListRepoEvents.Input.Query = .init(), + headers: Operations.ActivityListRepoEvents.Input.Headers = .init() ) { self.path = path self.query = query @@ -7466,12 +7579,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -7481,12 +7594,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_repo_hyphen_events.Output.Ok.Body + public var body: Operations.ActivityListRepoEvents.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_repo_hyphen_events.Output.Ok.Body) { + public init(body: Operations.ActivityListRepoEvents.Output.Ok.Body) { self.body = body } } @@ -7495,12 +7608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/events/get(activity/list-repo-events)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_repo_hyphen_events.Output.Ok) + case ok(Operations.ActivityListRepoEvents.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_repo_hyphen_events.Output.Ok { + public var ok: Operations.ActivityListRepoEvents.Output.Ok { get throws { switch self { case let .ok(response): @@ -7550,7 +7663,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/get(activity/list-repo-notifications-for-authenticated-user)`. - public enum activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityListRepoNotificationsForAuthenticatedUser { public static let id: Swift.String = "activity/list-repo-notifications-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/path`. @@ -7558,51 +7671,51 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query`. public struct Query: Sendable, Hashable { /// If `true`, show notifications marked as read. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/all`. - public var all: Components.Parameters.all? + public var all: Components.Parameters.All? /// If `true`, only shows notifications in which the user is directly participating or mentioned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/participating`. - public var participating: Components.Parameters.participating? + public var participating: Components.Parameters.Participating? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/before`. - public var before: Components.Parameters.before? + public var before: Components.Parameters.Before? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -7610,37 +7723,37 @@ public enum Operations { /// - participating: If `true`, only shows notifications in which the user is directly participating or mentioned. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - before: Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - all: Components.Parameters.all? = nil, - participating: Components.Parameters.participating? = nil, - since: Components.Parameters.since? = nil, - before: Components.Parameters.before? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + all: Components.Parameters.All? = nil, + participating: Components.Parameters.Participating? = nil, + since: Components.Parameters.Since? = nil, + before: Components.Parameters.Before? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.all = all self.participating = participating self.since = since self.before = before - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7648,9 +7761,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -7662,26 +7775,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/GET/responses/200/content/application\/json`. - case json([Components.Schemas.thread]) + case json([Components.Schemas.Thread]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.thread] { + public var json: [Components.Schemas.Thread] { get throws { switch self { case let .json(body): @@ -7691,15 +7804,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7710,12 +7823,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/get(activity/list-repo-notifications-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_repo_hyphen_notifications_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListRepoNotificationsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7765,7 +7878,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/notifications`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)`. - public enum activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read { + public enum ActivityMarkRepoNotificationsAsRead { public static let id: Swift.String = "activity/mark-repo-notifications-as-read" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/path`. @@ -7773,60 +7886,60 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Path + public var path: Operations.ActivityMarkRepoNotificationsAsRead.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers + public var headers: Operations.ActivityMarkRepoNotificationsAsRead.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/requestBody/json/last_read_at`. - public var last_read_at: Foundation.Date? - /// Creates a new `jsonPayload`. + public var lastReadAt: Foundation.Date? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - last_read_at: Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. - public init(last_read_at: Foundation.Date? = nil) { - self.last_read_at = last_read_at + /// - lastReadAt: Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. + public init(lastReadAt: Foundation.Date? = nil) { + self.lastReadAt = lastReadAt } public enum CodingKeys: String, CodingKey { - case last_read_at + case lastReadAt = "last_read_at" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/requestBody/content/application\/json`. - case json(Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Body.jsonPayload) + case json(Operations.ActivityMarkRepoNotificationsAsRead.Input.Body.JsonPayload) } - public var body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? + public var body: Operations.ActivityMarkRepoNotificationsAsRead.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -7834,9 +7947,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Path, - headers: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Headers = .init(), - body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Input.Body? = nil + path: Operations.ActivityMarkRepoNotificationsAsRead.Input.Path, + headers: Operations.ActivityMarkRepoNotificationsAsRead.Input.Headers = .init(), + body: Operations.ActivityMarkRepoNotificationsAsRead.Input.Body? = nil ) { self.path = path self.headers = headers @@ -7848,12 +7961,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/responses/202/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/responses/202/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/responses/202/content/json/url`. public var url: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: @@ -7871,12 +7984,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/notifications/PUT/responses/202/content/application\/json`. - case json(Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload) + case json(Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body.jsonPayload { + public var json: Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -7886,12 +7999,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body + public var body: Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted.Body) { + public init(body: Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted.Body) { self.body = body } } @@ -7900,12 +8013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted) + case accepted(Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.Accepted { + public var accepted: Operations.ActivityMarkRepoNotificationsAsRead.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -7927,12 +8040,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)/responses/205`. /// /// HTTP response code: `205 resetContent`. - case resetContent(Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.ResetContent) + case resetContent(Operations.ActivityMarkRepoNotificationsAsRead.Output.ResetContent) + /// Reset Content + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/notifications/put(activity/mark-repo-notifications-as-read)/responses/205`. + /// + /// HTTP response code: `205 resetContent`. + public static var resetContent: Self { + .resetContent(.init()) + } /// The associated value of the enum case if `self` is `.resetContent`. /// /// - Throws: An error if `self` is not `.resetContent`. /// - SeeAlso: `.resetContent`. - public var resetContent: Operations.activity_sol_mark_hyphen_repo_hyphen_notifications_hyphen_as_hyphen_read.Output.ResetContent { + public var resetContent: Operations.ActivityMarkRepoNotificationsAsRead.Output.ResetContent { get throws { switch self { case let .resetContent(response): @@ -7986,7 +8107,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stargazers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)`. - public enum activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo { + public enum ActivityListStargazersForRepo { public static let id: Swift.String = "activity/list-stargazers-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/path`. @@ -7994,61 +8115,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActivityListStargazersForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ActivityListStargazersForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActivityListStargazersForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8056,9 +8177,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Path, - query: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActivityListStargazersForRepo.Input.Path, + query: Operations.ActivityListStargazersForRepo.Input.Query = .init(), + headers: Operations.ActivityListStargazersForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -8070,33 +8191,33 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ActivityListStargazersForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/content/json/value1`. - public var value1: [Components.Schemas.simple_hyphen_user]? + public var value1: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/content/json/value2`. - public var value2: [Components.Schemas.stargazer]? - /// Creates a new `jsonPayload`. + public var value2: [Components.Schemas.Stargazer]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: [Components.Schemas.simple_hyphen_user]? = nil, - value2: [Components.Schemas.stargazer]? = nil + value1: [Components.Schemas.SimpleUser]? = nil, + value2: [Components.Schemas.Stargazer]? = nil ) { self.value1 = value1 self.value2 = value2 @@ -8104,19 +8225,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try decoder.decodeFromSingleValueContainer() + self.value1 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } do { - value2 = try decoder.decodeFromSingleValueContainer() + self.value2 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -8125,18 +8246,18 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { try encoder.encodeFirstNonNilValueToSingleValueContainer([ - value1, - value2 + self.value1, + self.value2 ]) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stargazers/GET/responses/200/content/application\/json`. - case json(Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload) + case json(Operations.ActivityListStargazersForRepo.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload { + public var json: Operations.ActivityListStargazersForRepo.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8146,15 +8267,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActivityListStargazersForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ActivityListStargazersForRepo.Output.Ok.Headers = .init(), + body: Operations.ActivityListStargazersForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8165,12 +8286,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActivityListStargazersForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_stargazers_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActivityListStargazersForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -8188,12 +8309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stargazers/get(activity/list-stargazers-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8243,7 +8364,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscribers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscribers/get(activity/list-watchers-for-repo)`. - public enum activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo { + public enum ActivityListWatchersForRepo { public static let id: Swift.String = "activity/list-watchers-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/path`. @@ -8251,61 +8372,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ActivityListWatchersForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ActivityListWatchersForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ActivityListWatchersForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8313,9 +8434,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Path, - query: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ActivityListWatchersForRepo.Input.Path, + query: Operations.ActivityListWatchersForRepo.Input.Query = .init(), + headers: Operations.ActivityListWatchersForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -8327,26 +8448,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ActivityListWatchersForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscribers/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -8356,15 +8477,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ActivityListWatchersForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ActivityListWatchersForRepo.Output.Ok.Headers = .init(), + body: Operations.ActivityListWatchersForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8375,12 +8496,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscribers/get(activity/list-watchers-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ActivityListWatchersForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_watchers_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ActivityListWatchersForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -8430,7 +8551,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)`. - public enum activity_sol_get_hyphen_repo_hyphen_subscription { + public enum ActivityGetRepoSubscription { public static let id: Swift.String = "activity/get-repo-subscription" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/path`. @@ -8438,45 +8559,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Path + public var path: Operations.ActivityGetRepoSubscription.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Headers + public var headers: Operations.ActivityGetRepoSubscription.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Input.Headers = .init() + path: Operations.ActivityGetRepoSubscription.Input.Path, + headers: Operations.ActivityGetRepoSubscription.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8487,12 +8608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_subscription) + case json(Components.Schemas.RepositorySubscription) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_subscription { + public var json: Components.Schemas.RepositorySubscription { get throws { switch self { case let .json(body): @@ -8502,12 +8623,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.Ok.Body + public var body: Operations.ActivityGetRepoSubscription.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.Ok.Body) { + public init(body: Operations.ActivityGetRepoSubscription.Output.Ok.Body) { self.body = body } } @@ -8516,12 +8637,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.Ok) + case ok(Operations.ActivityGetRepoSubscription.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.Ok { + public var ok: Operations.ActivityGetRepoSubscription.Output.Ok { get throws { switch self { case let .ok(response): @@ -8543,12 +8664,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.NotFound) + case notFound(Operations.ActivityGetRepoSubscription.Output.NotFound) + /// Not Found if you don't subscribe to the repository + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.activity_sol_get_hyphen_repo_hyphen_subscription.Output.NotFound { + public var notFound: Operations.ActivityGetRepoSubscription.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -8566,12 +8695,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/get(activity/get-repo-subscription)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8621,7 +8750,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/put(activity/set-repo-subscription)`. - public enum activity_sol_set_hyphen_repo_hyphen_subscription { + public enum ActivitySetRepoSubscription { public static let id: Swift.String = "activity/set-repo-subscription" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/path`. @@ -8629,41 +8758,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Path + public var path: Operations.ActivitySetRepoSubscription.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Headers + public var headers: Operations.ActivitySetRepoSubscription.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Determines if notifications should be received from this repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/requestBody/json/subscribed`. @@ -8672,7 +8801,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/requestBody/json/ignored`. public var ignored: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - subscribed: Determines if notifications should be received from this repository. @@ -8690,9 +8819,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/requestBody/content/application\/json`. - case json(Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Body.jsonPayload) + case json(Operations.ActivitySetRepoSubscription.Input.Body.JsonPayload) } - public var body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Body? + public var body: Operations.ActivitySetRepoSubscription.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -8700,9 +8829,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Path, - headers: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Headers = .init(), - body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Input.Body? = nil + path: Operations.ActivitySetRepoSubscription.Input.Path, + headers: Operations.ActivitySetRepoSubscription.Input.Headers = .init(), + body: Operations.ActivitySetRepoSubscription.Input.Body? = nil ) { self.path = path self.headers = headers @@ -8714,12 +8843,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_subscription) + case json(Components.Schemas.RepositorySubscription) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_subscription { + public var json: Components.Schemas.RepositorySubscription { get throws { switch self { case let .json(body): @@ -8729,12 +8858,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output.Ok.Body + public var body: Operations.ActivitySetRepoSubscription.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output.Ok.Body) { + public init(body: Operations.ActivitySetRepoSubscription.Output.Ok.Body) { self.body = body } } @@ -8743,12 +8872,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/put(activity/set-repo-subscription)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output.Ok) + case ok(Operations.ActivitySetRepoSubscription.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_set_hyphen_repo_hyphen_subscription.Output.Ok { + public var ok: Operations.ActivitySetRepoSubscription.Output.Ok { get throws { switch self { case let .ok(response): @@ -8798,7 +8927,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/subscription`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)`. - public enum activity_sol_delete_hyphen_repo_hyphen_subscription { + public enum ActivityDeleteRepoSubscription { public static let id: Swift.String = "activity/delete-repo-subscription" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/DELETE/path`. @@ -8806,30 +8935,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/subscription/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input.Path + public var path: Operations.ActivityDeleteRepoSubscription.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Input.Path) { + public init(path: Operations.ActivityDeleteRepoSubscription.Input.Path) { self.path = path } } @@ -8843,12 +8972,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Output.NoContent) + case noContent(Operations.ActivityDeleteRepoSubscription.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/subscription/delete(activity/delete-repo-subscription)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_delete_hyphen_repo_hyphen_subscription.Output.NoContent { + public var noContent: Operations.ActivityDeleteRepoSubscription.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8877,77 +9014,77 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/starred`. /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)`. - public enum activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user { + public enum ActivityListReposStarredByAuthenticatedUser { public static let id: Swift.String = "activity/list-repos-starred-by-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort-starred`. - @frozen public enum sort_hyphen_starred: String, Codable, Hashable, Sendable { + @frozen public enum SortStarred: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to. /// /// - Remark: Generated from `#/paths/user/starred/GET/query/sort`. - public var sort: Components.Parameters.sort_hyphen_starred? + public var sort: Components.Parameters.SortStarred? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/user/starred/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/user/starred/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/starred/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to. /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort_hyphen_starred? = nil, - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.SortStarred? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/starred/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListReposStarredByAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8958,26 +9095,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/starred/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/starred/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository]) + case json([Components.Schemas.Repository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository] { + public var json: [Components.Schemas.Repository] { get throws { switch self { case let .json(body): @@ -8991,15 +9128,15 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/starred/GET/responses/200/content/application\/vnd.github.v3.star+json`. - case application_vnd_period_github_period_v3_period_star_plus_json([Components.Schemas.starred_hyphen_repository]) - /// The associated value of the enum case if `self` is `.application_vnd_period_github_period_v3_period_star_plus_json`. + case applicationVnd_github_v3_starJson([Components.Schemas.StarredRepository]) + /// The associated value of the enum case if `self` is `.applicationVnd_github_v3_starJson`. /// - /// - Throws: An error if `self` is not `.application_vnd_period_github_period_v3_period_star_plus_json`. - /// - SeeAlso: `.application_vnd_period_github_period_v3_period_star_plus_json`. - public var application_vnd_period_github_period_v3_period_star_plus_json: [Components.Schemas.starred_hyphen_repository] { + /// - Throws: An error if `self` is not `.applicationVnd_github_v3_starJson`. + /// - SeeAlso: `.applicationVnd_github_v3_starJson`. + public var applicationVnd_github_v3_starJson: [Components.Schemas.StarredRepository] { get throws { switch self { - case let .application_vnd_period_github_period_v3_period_star_plus_json(body): + case let .applicationVnd_github_v3_starJson(body): return body default: try throwUnexpectedResponseBody( @@ -9011,15 +9148,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9030,12 +9167,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListReposStarredByAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -9053,12 +9190,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9076,12 +9221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9099,12 +9244,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/get(activity/list-repos-starred-by-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9124,14 +9269,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_vnd_period_github_period_v3_period_star_plus_json + case applicationVnd_github_v3_starJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/vnd.github.v3.star+json": - self = .application_vnd_period_github_period_v3_period_star_plus_json + self = .applicationVnd_github_v3_starJson default: self = .other(rawValue) } @@ -9142,14 +9287,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_vnd_period_github_period_v3_period_star_plus_json: + case .applicationVnd_github_v3_starJson: return "application/vnd.github.v3.star+json" } } public static var allCases: [Self] { [ .json, - .application_vnd_period_github_period_v3_period_star_plus_json + .applicationVnd_github_v3_starJson ] } } @@ -9160,7 +9305,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)`. - public enum activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user { + public enum ActivityCheckRepoIsStarredByAuthenticatedUser { public static let id: Swift.String = "activity/check-repo-is-starred-by-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/path`. @@ -9168,45 +9313,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Path, + headers: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9222,12 +9367,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NoContent) + /// Response if this repository is starred by you + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9244,12 +9397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -9259,12 +9412,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NotFound.Body + public var body: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NotFound.Body) { + public init(body: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NotFound.Body) { self.body = body } } @@ -9273,12 +9426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NotFound) + case notFound(Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.activity_sol_check_hyphen_repo_hyphen_is_hyphen_starred_hyphen_by_hyphen_authenticated_hyphen_user.Output.NotFound { + public var notFound: Operations.ActivityCheckRepoIsStarredByAuthenticatedUser.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9296,12 +9449,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9319,12 +9472,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9342,12 +9503,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/get(activity/check-repo-is-starred-by-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9397,7 +9558,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)`. - public enum activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityStarRepoForAuthenticatedUser { public static let id: Swift.String = "activity/star-repo-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/PUT/path`. @@ -9405,45 +9566,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityStarRepoForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityStarRepoForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityStarRepoForAuthenticatedUser.Input.Path, + headers: Operations.ActivityStarRepoForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9459,12 +9620,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.ActivityStarRepoForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_star_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.ActivityStarRepoForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9482,12 +9651,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9505,12 +9674,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9528,12 +9697,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9551,12 +9720,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/put(activity/star-repo-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9606,7 +9783,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/starred/{owner}/{repo}`. /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)`. - public enum activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityUnstarRepoForAuthenticatedUser { public static let id: Swift.String = "activity/unstar-repo-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/DELETE/path`. @@ -9614,45 +9791,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/starred/{owner}/{repo}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Path, + headers: Operations.ActivityUnstarRepoForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9668,12 +9845,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.ActivityUnstarRepoForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.activity_sol_unstar_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.ActivityUnstarRepoForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9691,12 +9876,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9714,12 +9899,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9737,12 +9922,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9760,12 +9953,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/starred/{owner}/{repo}/delete(activity/unstar-repo-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9815,7 +10008,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/subscriptions`. /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)`. - public enum activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityListWatchedReposForAuthenticatedUser { public static let id: Swift.String = "activity/list-watched-repos-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/subscriptions/GET/query`. @@ -9823,45 +10016,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/subscriptions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/subscriptions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/subscriptions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -9872,26 +10065,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/subscriptions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/subscriptions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/subscriptions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/subscriptions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -9901,15 +10094,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9920,12 +10113,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_watched_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListWatchedReposForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -9943,12 +10136,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9966,12 +10167,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9989,12 +10190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/subscriptions/get(activity/list-watched-repos-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10047,7 +10248,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/events`. /// - Remark: Generated from `#/paths//users/{username}/events/get(activity/list-events-for-authenticated-user)`. - public enum activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityListEventsForAuthenticatedUser { public static let id: Swift.String = "activity/list-events-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/GET/path`. @@ -10055,52 +10256,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/events/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityListEventsForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListEventsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListEventsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10108,9 +10309,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListEventsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListEventsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListEventsForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10122,12 +10323,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -10137,12 +10338,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListEventsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityListEventsForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -10151,12 +10352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/events/get(activity/list-events-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListEventsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListEventsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10209,7 +10410,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/events/orgs/{org}`. /// - Remark: Generated from `#/paths//users/{username}/events/orgs/{org}/get(activity/list-org-events-for-authenticated-user)`. - public enum activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ActivityListOrgEventsForAuthenticatedUser { public static let id: Swift.String = "activity/list-org-events-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/path`. @@ -10217,61 +10418,61 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. /// - org: The organization name. The name is not case sensitive. public init( - username: Components.Parameters.username, - org: Components.Parameters.org + username: Components.Parameters.Username, + org: Components.Parameters.Org ) { self.username = username self.org = org } } - public var path: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10279,9 +10480,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Path, + query: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ActivityListOrgEventsForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10293,12 +10494,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/orgs/{org}/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -10308,12 +10509,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListOrgEventsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityListOrgEventsForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -10322,12 +10523,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/events/orgs/{org}/get(activity/list-org-events-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ActivityListOrgEventsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_org_hyphen_events_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListOrgEventsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10378,7 +10579,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/events/public`. /// - Remark: Generated from `#/paths//users/{username}/events/public/get(activity/list-public-events-for-user)`. - public enum activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user { + public enum ActivityListPublicEventsForUser { public static let id: Swift.String = "activity/list-public-events-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/path`. @@ -10386,52 +10587,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ActivityListPublicEventsForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query + public var query: Operations.ActivityListPublicEventsForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ActivityListPublicEventsForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10439,9 +10640,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListPublicEventsForUser.Input.Path, + query: Operations.ActivityListPublicEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListPublicEventsForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10453,12 +10654,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/events/public/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -10468,12 +10669,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListPublicEventsForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityListPublicEventsForUser.Output.Ok.Body) { self.body = body } } @@ -10482,12 +10683,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/events/public/get(activity/list-public-events-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ActivityListPublicEventsForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListPublicEventsForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10541,7 +10742,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/received_events`. /// - Remark: Generated from `#/paths//users/{username}/received_events/get(activity/list-received-events-for-user)`. - public enum activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user { + public enum ActivityListReceivedEventsForUser { public static let id: Swift.String = "activity/list-received-events-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/path`. @@ -10549,52 +10750,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ActivityListReceivedEventsForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Query + public var query: Operations.ActivityListReceivedEventsForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ActivityListReceivedEventsForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10602,9 +10803,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListReceivedEventsForUser.Input.Path, + query: Operations.ActivityListReceivedEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListReceivedEventsForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10616,12 +10817,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/received_events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -10631,12 +10832,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListReceivedEventsForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityListReceivedEventsForUser.Output.Ok.Body) { self.body = body } } @@ -10645,12 +10846,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/received_events/get(activity/list-received-events-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ActivityListReceivedEventsForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_received_hyphen_events_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListReceivedEventsForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10701,7 +10902,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/received_events/public`. /// - Remark: Generated from `#/paths//users/{username}/received_events/public/get(activity/list-received-public-events-for-user)`. - public enum activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user { + public enum ActivityListReceivedPublicEventsForUser { public static let id: Swift.String = "activity/list-received-public-events-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/path`. @@ -10709,52 +10910,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ActivityListReceivedPublicEventsForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query + public var query: Operations.ActivityListReceivedPublicEventsForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ActivityListReceivedPublicEventsForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10762,9 +10963,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListReceivedPublicEventsForUser.Input.Path, + query: Operations.ActivityListReceivedPublicEventsForUser.Input.Query = .init(), + headers: Operations.ActivityListReceivedPublicEventsForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10776,12 +10977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/received_events/public/GET/responses/200/content/application\/json`. - case json([Components.Schemas.event]) + case json([Components.Schemas.Event]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.event] { + public var json: [Components.Schemas.Event] { get throws { switch self { case let .json(body): @@ -10791,12 +10992,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListReceivedPublicEventsForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ActivityListReceivedPublicEventsForUser.Output.Ok.Body) { self.body = body } } @@ -10805,12 +11006,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/received_events/public/get(activity/list-received-public-events-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ActivityListReceivedPublicEventsForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_received_hyphen_public_hyphen_events_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListReceivedPublicEventsForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10864,7 +11065,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/starred`. /// - Remark: Generated from `#/paths//users/{username}/starred/get(activity/list-repos-starred-by-user)`. - public enum activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user { + public enum ActivityListReposStarredByUser { public static let id: Swift.String = "activity/list-repos-starred-by-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/starred/GET/path`. @@ -10872,76 +11073,76 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/starred/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Path + public var path: Operations.ActivityListReposStarredByUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/starred/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort-starred`. - @frozen public enum sort_hyphen_starred: String, Codable, Hashable, Sendable { + @frozen public enum SortStarred: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to. /// /// - Remark: Generated from `#/paths/users/{username}/starred/GET/query/sort`. - public var sort: Components.Parameters.sort_hyphen_starred? + public var sort: Components.Parameters.SortStarred? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/users/{username}/starred/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/starred/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/starred/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to. /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort_hyphen_starred? = nil, - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.SortStarred? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Query + public var query: Operations.ActivityListReposStarredByUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/starred/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Headers + public var headers: Operations.ActivityListReposStarredByUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10949,9 +11150,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListReposStarredByUser.Input.Path, + query: Operations.ActivityListReposStarredByUser.Input.Query = .init(), + headers: Operations.ActivityListReposStarredByUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10963,33 +11164,33 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListReposStarredByUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/content/json/value1`. - public var value1: [Components.Schemas.starred_hyphen_repository]? + public var value1: [Components.Schemas.StarredRepository]? /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/content/json/value2`. - public var value2: [Components.Schemas.repository]? - /// Creates a new `jsonPayload`. + public var value2: [Components.Schemas.Repository]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: [Components.Schemas.starred_hyphen_repository]? = nil, - value2: [Components.Schemas.repository]? = nil + value1: [Components.Schemas.StarredRepository]? = nil, + value2: [Components.Schemas.Repository]? = nil ) { self.value1 = value1 self.value2 = value2 @@ -10997,19 +11198,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try decoder.decodeFromSingleValueContainer() + self.value1 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } do { - value2 = try decoder.decodeFromSingleValueContainer() + self.value2 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -11018,18 +11219,18 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { try encoder.encodeFirstNonNilValueToSingleValueContainer([ - value1, - value2 + self.value1, + self.value2 ]) } } /// - Remark: Generated from `#/paths/users/{username}/starred/GET/responses/200/content/application\/json`. - case json(Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.ActivityListReposStarredByUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.ActivityListReposStarredByUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11039,15 +11240,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListReposStarredByUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListReposStarredByUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListReposStarredByUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11058,12 +11259,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/starred/get(activity/list-repos-starred-by-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok) + case ok(Operations.ActivityListReposStarredByUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_repos_hyphen_starred_hyphen_by_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListReposStarredByUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11113,7 +11314,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/subscriptions`. /// - Remark: Generated from `#/paths//users/{username}/subscriptions/get(activity/list-repos-watched-by-user)`. - public enum activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user { + public enum ActivityListReposWatchedByUser { public static let id: Swift.String = "activity/list-repos-watched-by-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/path`. @@ -11121,52 +11322,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Path + public var path: Operations.ActivityListReposWatchedByUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Query + public var query: Operations.ActivityListReposWatchedByUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Headers + public var headers: Operations.ActivityListReposWatchedByUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11174,9 +11375,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Path, - query: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Query = .init(), - headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Input.Headers = .init() + path: Operations.ActivityListReposWatchedByUser.Input.Path, + query: Operations.ActivityListReposWatchedByUser.Input.Query = .init(), + headers: Operations.ActivityListReposWatchedByUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11188,26 +11389,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Headers + public var headers: Operations.ActivityListReposWatchedByUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/subscriptions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -11217,15 +11418,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Body + public var body: Operations.ActivityListReposWatchedByUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok.Body + headers: Operations.ActivityListReposWatchedByUser.Output.Ok.Headers = .init(), + body: Operations.ActivityListReposWatchedByUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11236,12 +11437,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/subscriptions/get(activity/list-repos-watched-by-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok) + case ok(Operations.ActivityListReposWatchedByUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.activity_sol_list_hyphen_repos_hyphen_watched_hyphen_by_hyphen_user.Output.Ok { + public var ok: Operations.ActivityListReposWatchedByUser.Output.Ok { get throws { switch self { case let .ok(response): From b499fb2e3f8a201cb07f8b7eda620ec07e162e63 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 08:59:56 -0700 Subject: [PATCH 05/46] Commit via running ake Sources/apps --- Sources/apps/Client.swift | 594 ++-- Sources/apps/Types.swift | 5651 +++++++++++++++++++------------------ 2 files changed, 3199 insertions(+), 3046 deletions(-) diff --git a/Sources/apps/Client.swift b/Sources/apps/Client.swift index e464bebe45..5b84b15447 100644 --- a/Sources/apps/Client.swift +++ b/Sources/apps/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app`. /// - Remark: Generated from `#/paths//app/get(apps/get-authenticated)`. - public func apps_sol_get_hyphen_authenticated(_ input: Operations.apps_sol_get_hyphen_authenticated.Input) async throws -> Operations.apps_sol_get_hyphen_authenticated.Output { + public func appsGetAuthenticated(_ input: Operations.AppsGetAuthenticated.Input) async throws -> Operations.AppsGetAuthenticated.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_authenticated.id, + forOperation: Operations.AppsGetAuthenticated.id, serializer: { input in let path = try converter.renderedPath( template: "/app", @@ -70,7 +70,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_authenticated.Output.Ok.Body + let body: Operations.AppsGetAuthenticated.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -80,7 +80,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.integration.self, + Components.Schemas.Integration.self, from: responseBody, transforming: { value in .json(value) @@ -108,10 +108,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /app-manifests/{code}/conversions`. /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)`. - public func apps_sol_create_hyphen_from_hyphen_manifest(_ input: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input) async throws -> Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output { + public func appsCreateFromManifest(_ input: Operations.AppsCreateFromManifest.Input) async throws -> Operations.AppsCreateFromManifest.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_create_hyphen_from_hyphen_manifest.id, + forOperation: Operations.AppsCreateFromManifest.id, serializer: { input in let path = try converter.renderedPath( template: "/app-manifests/{}/conversions", @@ -134,7 +134,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body + let body: Operations.AppsCreateFromManifest.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -144,7 +144,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body.jsonPayload.self, + Operations.AppsCreateFromManifest.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -156,7 +156,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -166,7 +166,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -178,7 +178,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -188,7 +188,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -218,10 +218,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/get(apps/get-webhook-config-for-app)`. - public func apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(_ input: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output { + public func appsGetWebhookConfigForApp(_ input: Operations.AppsGetWebhookConfigForApp.Input) async throws -> Operations.AppsGetWebhookConfigForApp.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.id, + forOperation: Operations.AppsGetWebhookConfigForApp.id, serializer: { input in let path = try converter.renderedPath( template: "/app/hook/config", @@ -242,7 +242,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body + let body: Operations.AppsGetWebhookConfigForApp.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -252,7 +252,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -282,10 +282,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/patch(apps/update-webhook-config-for-app)`. - public func apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(_ input: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input) async throws -> Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output { + public func appsUpdateWebhookConfigForApp(_ input: Operations.AppsUpdateWebhookConfigForApp.Input) async throws -> Operations.AppsUpdateWebhookConfigForApp.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.id, + forOperation: Operations.AppsUpdateWebhookConfigForApp.id, serializer: { input in let path = try converter.renderedPath( template: "/app/hook/config", @@ -315,7 +315,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body + let body: Operations.AppsUpdateWebhookConfigForApp.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -325,7 +325,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -355,10 +355,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/hook/deliveries`. /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)`. - public func apps_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output { + public func appsListWebhookDeliveries(_ input: Operations.AppsListWebhookDeliveries.Input) async throws -> Operations.AppsListWebhookDeliveries.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.id, + forOperation: Operations.AppsListWebhookDeliveries.id, serializer: { input in let path = try converter.renderedPath( template: "/app/hook/deliveries", @@ -374,7 +374,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -393,7 +393,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + let body: Operations.AppsListWebhookDeliveries.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -403,7 +403,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.hook_hyphen_delivery_hyphen_item].self, + [Components.Schemas.HookDeliveryItem].self, from: responseBody, transforming: { value in .json(value) @@ -415,7 +415,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -426,7 +426,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -434,10 +434,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -446,7 +446,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -456,7 +456,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -486,15 +486,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/hook/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)`. - public func apps_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output { + public func appsGetWebhookDelivery(_ input: Operations.AppsGetWebhookDelivery.Input) async throws -> Operations.AppsGetWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.AppsGetWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/app/hook/deliveries/{}", parameters: [ - input.path.delivery_id + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -512,7 +512,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + let body: Operations.AppsGetWebhookDelivery.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -522,7 +522,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook_hyphen_delivery.self, + Components.Schemas.HookDelivery.self, from: responseBody, transforming: { value in .json(value) @@ -534,7 +534,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -545,7 +545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -553,10 +553,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -565,7 +565,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -575,7 +575,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -605,15 +605,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /app/hook/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)`. - public func apps_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { + public func appsRedeliverWebhookDelivery(_ input: Operations.AppsRedeliverWebhookDelivery.Input) async throws -> Operations.AppsRedeliverWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.AppsRedeliverWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/app/hook/deliveries/{}/attempts", parameters: [ - input.path.delivery_id + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -631,7 +631,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -653,7 +653,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -664,7 +664,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -672,10 +672,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -684,7 +684,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -694,7 +694,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -722,10 +722,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/installation-requests`. /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)`. - public func apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app(_ input: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output { + public func appsListInstallationRequestsForAuthenticatedApp(_ input: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input) async throws -> Operations.AppsListInstallationRequestsForAuthenticatedApp.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.id, + forOperation: Operations.AppsListInstallationRequestsForAuthenticatedApp.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installation-requests", @@ -741,7 +741,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -760,7 +760,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output.Ok.Body + let body: Operations.AppsListInstallationRequestsForAuthenticatedApp.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -770,7 +770,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.integration_hyphen_installation_hyphen_request].self, + [Components.Schemas.IntegrationInstallationRequest].self, from: responseBody, transforming: { value in .json(value) @@ -784,7 +784,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -794,7 +794,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -824,10 +824,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/installations`. /// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)`. - public func apps_sol_list_hyphen_installations(_ input: Operations.apps_sol_list_hyphen_installations.Input) async throws -> Operations.apps_sol_list_hyphen_installations.Output { + public func appsListInstallations(_ input: Operations.AppsListInstallations.Input) async throws -> Operations.AppsListInstallations.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_installations.id, + forOperation: Operations.AppsListInstallations.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations", @@ -843,7 +843,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -875,13 +875,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_installations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListInstallations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_installations.Output.Ok.Body + let body: Operations.AppsListInstallations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -891,7 +891,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.installation].self, + [Components.Schemas.Installation].self, from: responseBody, transforming: { value in .json(value) @@ -924,15 +924,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)`. - public func apps_sol_get_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_installation.Output { + public func appsGetInstallation(_ input: Operations.AppsGetInstallation.Input) async throws -> Operations.AppsGetInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_installation.id, + forOperation: Operations.AppsGetInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations/{}", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -950,7 +950,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_installation.Output.Ok.Body + let body: Operations.AppsGetInstallation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -960,7 +960,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.installation.self, + Components.Schemas.Installation.self, from: responseBody, transforming: { value in .json(value) @@ -972,7 +972,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -982,7 +982,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1012,15 +1012,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)`. - public func apps_sol_delete_hyphen_installation(_ input: Operations.apps_sol_delete_hyphen_installation.Input) async throws -> Operations.apps_sol_delete_hyphen_installation.Output { + public func appsDeleteInstallation(_ input: Operations.AppsDeleteInstallation.Input) async throws -> Operations.AppsDeleteInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_delete_hyphen_installation.id, + forOperation: Operations.AppsDeleteInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations/{}", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1040,7 +1040,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1050,7 +1050,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1084,15 +1084,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /app/installations/{installation_id}/access_tokens`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)`. - public func apps_sol_create_hyphen_installation_hyphen_access_hyphen_token(_ input: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input) async throws -> Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output { + public func appsCreateInstallationAccessToken(_ input: Operations.AppsCreateInstallationAccessToken.Input) async throws -> Operations.AppsCreateInstallationAccessToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.id, + forOperation: Operations.AppsCreateInstallationAccessToken.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations/{}/access_tokens", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1121,7 +1121,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output.Created.Body + let body: Operations.AppsCreateInstallationAccessToken.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1131,7 +1131,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.installation_hyphen_token.self, + Components.Schemas.InstallationToken.self, from: responseBody, transforming: { value in .json(value) @@ -1143,7 +1143,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1153,7 +1153,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1165,7 +1165,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1175,7 +1175,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1187,7 +1187,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1197,7 +1197,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1209,7 +1209,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1219,7 +1219,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1249,15 +1249,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)`. - public func apps_sol_suspend_hyphen_installation(_ input: Operations.apps_sol_suspend_hyphen_installation.Input) async throws -> Operations.apps_sol_suspend_hyphen_installation.Output { + public func appsSuspendInstallation(_ input: Operations.AppsSuspendInstallation.Input) async throws -> Operations.AppsSuspendInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_suspend_hyphen_installation.id, + forOperation: Operations.AppsSuspendInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations/{}/suspended", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1277,7 +1277,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1287,7 +1287,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1317,15 +1317,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)`. - public func apps_sol_unsuspend_hyphen_installation(_ input: Operations.apps_sol_unsuspend_hyphen_installation.Input) async throws -> Operations.apps_sol_unsuspend_hyphen_installation.Output { + public func appsUnsuspendInstallation(_ input: Operations.AppsUnsuspendInstallation.Input) async throws -> Operations.AppsUnsuspendInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_unsuspend_hyphen_installation.id, + forOperation: Operations.AppsUnsuspendInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/app/installations/{}/suspended", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1355,7 +1355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1384,15 +1384,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /applications/{client_id}/grant`. /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)`. - public func apps_sol_delete_hyphen_authorization(_ input: Operations.apps_sol_delete_hyphen_authorization.Input) async throws -> Operations.apps_sol_delete_hyphen_authorization.Output { + public func appsDeleteAuthorization(_ input: Operations.AppsDeleteAuthorization.Input) async throws -> Operations.AppsDeleteAuthorization.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_delete_hyphen_authorization.id, + forOperation: Operations.AppsDeleteAuthorization.id, serializer: { input in let path = try converter.renderedPath( template: "/applications/{}/grant", parameters: [ - input.path.client_id + input.path.clientId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1421,7 +1421,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1431,7 +1431,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1459,15 +1459,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)`. - public func apps_sol_check_hyphen_token(_ input: Operations.apps_sol_check_hyphen_token.Input) async throws -> Operations.apps_sol_check_hyphen_token.Output { + public func appsCheckToken(_ input: Operations.AppsCheckToken.Input) async throws -> Operations.AppsCheckToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_check_hyphen_token.id, + forOperation: Operations.AppsCheckToken.id, serializer: { input in let path = try converter.renderedPath( template: "/applications/{}/token", parameters: [ - input.path.client_id + input.path.clientId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1494,7 +1494,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_check_hyphen_token.Output.Ok.Body + let body: Operations.AppsCheckToken.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1504,7 +1504,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authorization.self, + Components.Schemas.Authorization.self, from: responseBody, transforming: { value in .json(value) @@ -1516,7 +1516,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1526,7 +1526,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1538,7 +1538,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1548,7 +1548,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1576,15 +1576,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)`. - public func apps_sol_reset_hyphen_token(_ input: Operations.apps_sol_reset_hyphen_token.Input) async throws -> Operations.apps_sol_reset_hyphen_token.Output { + public func appsResetToken(_ input: Operations.AppsResetToken.Input) async throws -> Operations.AppsResetToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_reset_hyphen_token.id, + forOperation: Operations.AppsResetToken.id, serializer: { input in let path = try converter.renderedPath( template: "/applications/{}/token", parameters: [ - input.path.client_id + input.path.clientId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1611,7 +1611,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_reset_hyphen_token.Output.Ok.Body + let body: Operations.AppsResetToken.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1621,7 +1621,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authorization.self, + Components.Schemas.Authorization.self, from: responseBody, transforming: { value in .json(value) @@ -1633,7 +1633,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1643,7 +1643,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1671,15 +1671,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)`. - public func apps_sol_delete_hyphen_token(_ input: Operations.apps_sol_delete_hyphen_token.Input) async throws -> Operations.apps_sol_delete_hyphen_token.Output { + public func appsDeleteToken(_ input: Operations.AppsDeleteToken.Input) async throws -> Operations.AppsDeleteToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_delete_hyphen_token.id, + forOperation: Operations.AppsDeleteToken.id, serializer: { input in let path = try converter.renderedPath( template: "/applications/{}/token", parameters: [ - input.path.client_id + input.path.clientId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1708,7 +1708,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1718,7 +1718,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1750,15 +1750,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /applications/{client_id}/token/scoped`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)`. - public func apps_sol_scope_hyphen_token(_ input: Operations.apps_sol_scope_hyphen_token.Input) async throws -> Operations.apps_sol_scope_hyphen_token.Output { + public func appsScopeToken(_ input: Operations.AppsScopeToken.Input) async throws -> Operations.AppsScopeToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_scope_hyphen_token.id, + forOperation: Operations.AppsScopeToken.id, serializer: { input in let path = try converter.renderedPath( template: "/applications/{}/token/scoped", parameters: [ - input.path.client_id + input.path.clientId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1785,7 +1785,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_scope_hyphen_token.Output.Ok.Body + let body: Operations.AppsScopeToken.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1795,7 +1795,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.authorization.self, + Components.Schemas.Authorization.self, from: responseBody, transforming: { value in .json(value) @@ -1807,7 +1807,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1817,7 +1817,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1829,7 +1829,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1839,7 +1839,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1851,7 +1851,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1861,7 +1861,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1873,7 +1873,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1883,7 +1883,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1912,15 +1912,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /apps/{app_slug}`. /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)`. - public func apps_sol_get_hyphen_by_hyphen_slug(_ input: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input) async throws -> Operations.apps_sol_get_hyphen_by_hyphen_slug.Output { + public func appsGetBySlug(_ input: Operations.AppsGetBySlug.Input) async throws -> Operations.AppsGetBySlug.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_by_hyphen_slug.id, + forOperation: Operations.AppsGetBySlug.id, serializer: { input in let path = try converter.renderedPath( template: "/apps/{}", parameters: [ - input.path.app_slug + input.path.appSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1938,7 +1938,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_by_hyphen_slug.Output.Ok.Body + let body: Operations.AppsGetBySlug.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1948,7 +1948,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.integration.self, + Components.Schemas.Integration.self, from: responseBody, transforming: { value in .json(value) @@ -1960,7 +1960,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1970,7 +1970,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1982,7 +1982,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1992,7 +1992,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2020,10 +2020,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /installation/repositories`. /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)`. - public func apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation(_ input: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input) async throws -> Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output { + public func appsListReposAccessibleToInstallation(_ input: Operations.AppsListReposAccessibleToInstallation.Input) async throws -> Operations.AppsListReposAccessibleToInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.id, + forOperation: Operations.AppsListReposAccessibleToInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/installation/repositories", @@ -2039,7 +2039,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2057,13 +2057,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body + let body: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2073,7 +2073,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body.jsonPayload.self, + Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2088,7 +2088,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2098,7 +2098,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2112,7 +2112,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2122,7 +2122,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2152,10 +2152,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /installation/token`. /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)`. - public func apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token(_ input: Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Input) async throws -> Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output { + public func appsRevokeInstallationAccessToken(_ input: Operations.AppsRevokeInstallationAccessToken.Input) async throws -> Operations.AppsRevokeInstallationAccessToken.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.id, + forOperation: Operations.AppsRevokeInstallationAccessToken.id, serializer: { input in let path = try converter.renderedPath( template: "/installation/token", @@ -2192,15 +2192,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)`. - public func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account(_ input: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output { + public func appsGetSubscriptionPlanForAccount(_ input: Operations.AppsGetSubscriptionPlanForAccount.Input) async throws -> Operations.AppsGetSubscriptionPlanForAccount.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.id, + forOperation: Operations.AppsGetSubscriptionPlanForAccount.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/accounts/{}", parameters: [ - input.path.account_id + input.path.accountId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2218,7 +2218,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.Ok.Body + let body: Operations.AppsGetSubscriptionPlanForAccount.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2228,7 +2228,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.marketplace_hyphen_purchase.self, + Components.Schemas.MarketplacePurchase.self, from: responseBody, transforming: { value in .json(value) @@ -2240,7 +2240,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.NotFound.Body + let body: Operations.AppsGetSubscriptionPlanForAccount.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2250,7 +2250,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2262,7 +2262,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2272,7 +2272,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2302,10 +2302,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)`. - public func apps_sol_list_hyphen_plans(_ input: Operations.apps_sol_list_hyphen_plans.Input) async throws -> Operations.apps_sol_list_hyphen_plans.Output { + public func appsListPlans(_ input: Operations.AppsListPlans.Input) async throws -> Operations.AppsListPlans.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_plans.id, + forOperation: Operations.AppsListPlans.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/plans", @@ -2321,7 +2321,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2339,13 +2339,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_plans.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListPlans.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_plans.Output.Ok.Body + let body: Operations.AppsListPlans.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2355,7 +2355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.marketplace_hyphen_listing_hyphen_plan].self, + [Components.Schemas.MarketplaceListingPlan].self, from: responseBody, transforming: { value in .json(value) @@ -2370,7 +2370,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2380,7 +2380,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2392,7 +2392,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2402,7 +2402,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2432,15 +2432,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)`. - public func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan(_ input: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output { + public func appsListAccountsForPlan(_ input: Operations.AppsListAccountsForPlan.Input) async throws -> Operations.AppsListAccountsForPlan.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.id, + forOperation: Operations.AppsListAccountsForPlan.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/plans/{}/accounts", parameters: [ - input.path.plan_id + input.path.planId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2467,7 +2467,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2485,13 +2485,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListAccountsForPlan.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Body + let body: Operations.AppsListAccountsForPlan.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2501,7 +2501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.marketplace_hyphen_purchase].self, + [Components.Schemas.MarketplacePurchase].self, from: responseBody, transforming: { value in .json(value) @@ -2516,7 +2516,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2526,7 +2526,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2538,7 +2538,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2548,7 +2548,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2560,7 +2560,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2570,7 +2570,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2600,15 +2600,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)`. - public func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed(_ input: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output { + public func appsGetSubscriptionPlanForAccountStubbed(_ input: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input) async throws -> Operations.AppsGetSubscriptionPlanForAccountStubbed.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.id, + forOperation: Operations.AppsGetSubscriptionPlanForAccountStubbed.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/stubbed/accounts/{}", parameters: [ - input.path.account_id + input.path.accountId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2626,7 +2626,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.Ok.Body + let body: Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2636,7 +2636,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.marketplace_hyphen_purchase.self, + Components.Schemas.MarketplacePurchase.self, from: responseBody, transforming: { value in .json(value) @@ -2650,7 +2650,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2660,7 +2660,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2690,10 +2690,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)`. - public func apps_sol_list_hyphen_plans_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output { + public func appsListPlansStubbed(_ input: Operations.AppsListPlansStubbed.Input) async throws -> Operations.AppsListPlansStubbed.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.id, + forOperation: Operations.AppsListPlansStubbed.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/stubbed/plans", @@ -2709,7 +2709,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2727,13 +2727,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListPlansStubbed.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Body + let body: Operations.AppsListPlansStubbed.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2743,7 +2743,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.marketplace_hyphen_listing_hyphen_plan].self, + [Components.Schemas.MarketplaceListingPlan].self, from: responseBody, transforming: { value in .json(value) @@ -2758,7 +2758,7 @@ public struct Client: APIProtocol { )) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2768,7 +2768,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2798,15 +2798,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)`. - public func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output { + public func appsListAccountsForPlanStubbed(_ input: Operations.AppsListAccountsForPlanStubbed.Input) async throws -> Operations.AppsListAccountsForPlanStubbed.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.id, + forOperation: Operations.AppsListAccountsForPlanStubbed.id, serializer: { input in let path = try converter.renderedPath( template: "/marketplace_listing/stubbed/plans/{}/accounts", parameters: [ - input.path.plan_id + input.path.planId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2833,7 +2833,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2851,13 +2851,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Body + let body: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2867,7 +2867,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.marketplace_hyphen_purchase].self, + [Components.Schemas.MarketplacePurchase].self, from: responseBody, transforming: { value in .json(value) @@ -2882,7 +2882,7 @@ public struct Client: APIProtocol { )) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2892,7 +2892,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2922,10 +2922,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/installation`. /// - Remark: Generated from `#/paths//orgs/{org}/installation/get(apps/get-org-installation)`. - public func apps_sol_get_hyphen_org_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_org_hyphen_installation.Output { + public func appsGetOrgInstallation(_ input: Operations.AppsGetOrgInstallation.Input) async throws -> Operations.AppsGetOrgInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_org_hyphen_installation.id, + forOperation: Operations.AppsGetOrgInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/installation", @@ -2948,7 +2948,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_org_hyphen_installation.Output.Ok.Body + let body: Operations.AppsGetOrgInstallation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2958,7 +2958,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.installation.self, + Components.Schemas.Installation.self, from: responseBody, transforming: { value in .json(value) @@ -2988,10 +2988,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/installation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)`. - public func apps_sol_get_hyphen_repo_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output { + public func appsGetRepoInstallation(_ input: Operations.AppsGetRepoInstallation.Input) async throws -> Operations.AppsGetRepoInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_repo_hyphen_installation.id, + forOperation: Operations.AppsGetRepoInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/installation", @@ -3015,7 +3015,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output.Ok.Body + let body: Operations.AppsGetRepoInstallation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3025,7 +3025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.installation.self, + Components.Schemas.Installation.self, from: responseBody, transforming: { value in .json(value) @@ -3037,7 +3037,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3047,7 +3047,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3059,7 +3059,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3069,7 +3069,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3101,10 +3101,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/installations`. /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)`. - public func apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func appsListInstallationsForAuthenticatedUser(_ input: Operations.AppsListInstallationsForAuthenticatedUser.Input) async throws -> Operations.AppsListInstallationsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.AppsListInstallationsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/installations", @@ -3120,7 +3120,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3138,13 +3138,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3154,7 +3154,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3171,7 +3171,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3181,7 +3181,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3193,7 +3193,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3203,7 +3203,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3235,15 +3235,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/installations/{installation_id}/repositories`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)`. - public func apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func appsListInstallationReposForAuthenticatedUser(_ input: Operations.AppsListInstallationReposForAuthenticatedUser.Input) async throws -> Operations.AppsListInstallationReposForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.AppsListInstallationReposForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/installations/{}/repositories", parameters: [ - input.path.installation_id + input.path.installationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3256,7 +3256,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3274,13 +3274,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3290,7 +3290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3305,7 +3305,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3315,7 +3315,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3327,7 +3327,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3337,7 +3337,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3369,16 +3369,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)`. - public func apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func appsAddRepoToInstallationForAuthenticatedUser(_ input: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input) async throws -> Operations.AppsAddRepoToInstallationForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.AppsAddRepoToInstallationForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/installations/{}/repositories/{}", parameters: [ - input.path.installation_id, - input.path.repository_id + input.path.installationId, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3398,7 +3398,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3408,7 +3408,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3422,7 +3422,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3432,7 +3432,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3462,16 +3462,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)`. - public func apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func appsRemoveRepoFromInstallationForAuthenticatedUser(_ input: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input) async throws -> Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/installations/{}/repositories/{}", parameters: [ - input.path.installation_id, - input.path.repository_id + input.path.installationId, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3491,7 +3491,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3501,7 +3501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3515,7 +3515,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3525,7 +3525,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3555,10 +3555,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/marketplace_purchases`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)`. - public func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func appsListSubscriptionsForAuthenticatedUser(_ input: Operations.AppsListSubscriptionsForAuthenticatedUser.Input) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.AppsListSubscriptionsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/marketplace_purchases", @@ -3574,7 +3574,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3592,13 +3592,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3608,7 +3608,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.user_hyphen_marketplace_hyphen_purchase].self, + [Components.Schemas.UserMarketplacePurchase].self, from: responseBody, transforming: { value in .json(value) @@ -3625,7 +3625,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3635,7 +3635,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3647,7 +3647,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3657,7 +3657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3685,10 +3685,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/marketplace_purchases/stubbed`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)`. - public func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output { + public func appsListSubscriptionsForAuthenticatedUserStubbed(_ input: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.id, + forOperation: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.id, serializer: { input in let path = try converter.renderedPath( template: "/user/marketplace_purchases/stubbed", @@ -3704,7 +3704,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3722,13 +3722,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Body + let body: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3738,7 +3738,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.user_hyphen_marketplace_hyphen_purchase].self, + [Components.Schemas.UserMarketplacePurchase].self, from: responseBody, transforming: { value in .json(value) @@ -3755,7 +3755,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3765,7 +3765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3795,10 +3795,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/installation`. /// - Remark: Generated from `#/paths//users/{username}/installation/get(apps/get-user-installation)`. - public func apps_sol_get_hyphen_user_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_user_hyphen_installation.Output { + public func appsGetUserInstallation(_ input: Operations.AppsGetUserInstallation.Input) async throws -> Operations.AppsGetUserInstallation.Output { try await client.send( input: input, - forOperation: Operations.apps_sol_get_hyphen_user_hyphen_installation.id, + forOperation: Operations.AppsGetUserInstallation.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/installation", @@ -3821,7 +3821,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.apps_sol_get_hyphen_user_hyphen_installation.Output.Ok.Body + let body: Operations.AppsGetUserInstallation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3831,7 +3831,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.installation.self, + Components.Schemas.Installation.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/apps/Types.swift b/Sources/apps/Types.swift index 11643af50b..1e35c9d7d9 100644 --- a/Sources/apps/Types.swift +++ b/Sources/apps/Types.swift @@ -19,14 +19,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app`. /// - Remark: Generated from `#/paths//app/get(apps/get-authenticated)`. - func apps_sol_get_hyphen_authenticated(_ input: Operations.apps_sol_get_hyphen_authenticated.Input) async throws -> Operations.apps_sol_get_hyphen_authenticated.Output + func appsGetAuthenticated(_ input: Operations.AppsGetAuthenticated.Input) async throws -> Operations.AppsGetAuthenticated.Output /// Create a GitHub App from a manifest /// /// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. /// /// - Remark: HTTP `POST /app-manifests/{code}/conversions`. /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)`. - func apps_sol_create_hyphen_from_hyphen_manifest(_ input: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input) async throws -> Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output + func appsCreateFromManifest(_ input: Operations.AppsCreateFromManifest.Input) async throws -> Operations.AppsCreateFromManifest.Output /// Get a webhook configuration for an app /// /// Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." @@ -35,7 +35,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/get(apps/get-webhook-config-for-app)`. - func apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(_ input: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output + func appsGetWebhookConfigForApp(_ input: Operations.AppsGetWebhookConfigForApp.Input) async throws -> Operations.AppsGetWebhookConfigForApp.Output /// Update a webhook configuration for an app /// /// Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." @@ -44,7 +44,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/patch(apps/update-webhook-config-for-app)`. - func apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(_ input: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input) async throws -> Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output + func appsUpdateWebhookConfigForApp(_ input: Operations.AppsUpdateWebhookConfigForApp.Input) async throws -> Operations.AppsUpdateWebhookConfigForApp.Output /// List deliveries for an app webhook /// /// Returns a list of webhook deliveries for the webhook configured for a GitHub App. @@ -53,7 +53,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app/hook/deliveries`. /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)`. - func apps_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output + func appsListWebhookDeliveries(_ input: Operations.AppsListWebhookDeliveries.Input) async throws -> Operations.AppsListWebhookDeliveries.Output /// Get a delivery for an app webhook /// /// Returns a delivery for the webhook configured for a GitHub App. @@ -62,7 +62,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app/hook/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)`. - func apps_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output + func appsGetWebhookDelivery(_ input: Operations.AppsGetWebhookDelivery.Input) async throws -> Operations.AppsGetWebhookDelivery.Output /// Redeliver a delivery for an app webhook /// /// Redeliver a delivery for the webhook configured for a GitHub App. @@ -71,14 +71,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /app/hook/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)`. - func apps_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Output + func appsRedeliverWebhookDelivery(_ input: Operations.AppsRedeliverWebhookDelivery.Input) async throws -> Operations.AppsRedeliverWebhookDelivery.Output /// List installation requests for the authenticated app /// /// Lists all the pending installation requests for the authenticated GitHub App. /// /// - Remark: HTTP `GET /app/installation-requests`. /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)`. - func apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app(_ input: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output + func appsListInstallationRequestsForAuthenticatedApp(_ input: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input) async throws -> Operations.AppsListInstallationRequestsForAuthenticatedApp.Output /// List installations for the authenticated app /// /// The permissions the installation has are included under the `permissions` key. @@ -87,7 +87,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app/installations`. /// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)`. - func apps_sol_list_hyphen_installations(_ input: Operations.apps_sol_list_hyphen_installations.Input) async throws -> Operations.apps_sol_list_hyphen_installations.Output + func appsListInstallations(_ input: Operations.AppsListInstallations.Input) async throws -> Operations.AppsListInstallations.Output /// Get an installation for the authenticated app /// /// Enables an authenticated GitHub App to find an installation's information using the installation id. @@ -96,7 +96,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)`. - func apps_sol_get_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_installation.Output + func appsGetInstallation(_ input: Operations.AppsGetInstallation.Input) async throws -> Operations.AppsGetInstallation.Output /// Delete an installation for the authenticated app /// /// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint. @@ -105,7 +105,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)`. - func apps_sol_delete_hyphen_installation(_ input: Operations.apps_sol_delete_hyphen_installation.Input) async throws -> Operations.apps_sol_delete_hyphen_installation.Output + func appsDeleteInstallation(_ input: Operations.AppsDeleteInstallation.Input) async throws -> Operations.AppsDeleteInstallation.Output /// Create an installation access token for an app /// /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. @@ -118,7 +118,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /app/installations/{installation_id}/access_tokens`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)`. - func apps_sol_create_hyphen_installation_hyphen_access_hyphen_token(_ input: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input) async throws -> Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output + func appsCreateInstallationAccessToken(_ input: Operations.AppsCreateInstallationAccessToken.Input) async throws -> Operations.AppsCreateInstallationAccessToken.Output /// Suspend an app installation /// /// Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. @@ -127,7 +127,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)`. - func apps_sol_suspend_hyphen_installation(_ input: Operations.apps_sol_suspend_hyphen_installation.Input) async throws -> Operations.apps_sol_suspend_hyphen_installation.Output + func appsSuspendInstallation(_ input: Operations.AppsSuspendInstallation.Input) async throws -> Operations.AppsSuspendInstallation.Output /// Unsuspend an app installation /// /// Removes a GitHub App installation suspension. @@ -136,7 +136,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)`. - func apps_sol_unsuspend_hyphen_installation(_ input: Operations.apps_sol_unsuspend_hyphen_installation.Input) async throws -> Operations.apps_sol_unsuspend_hyphen_installation.Output + func appsUnsuspendInstallation(_ input: Operations.AppsUnsuspendInstallation.Input) async throws -> Operations.AppsUnsuspendInstallation.Output /// Delete an app authorization /// /// OAuth and GitHub application owners can revoke a grant for their application and a specific user. You must provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. @@ -144,28 +144,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /applications/{client_id}/grant`. /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)`. - func apps_sol_delete_hyphen_authorization(_ input: Operations.apps_sol_delete_hyphen_authorization.Input) async throws -> Operations.apps_sol_delete_hyphen_authorization.Output + func appsDeleteAuthorization(_ input: Operations.AppsDeleteAuthorization.Input) async throws -> Operations.AppsDeleteAuthorization.Output /// Check a token /// /// OAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`. /// /// - Remark: HTTP `POST /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)`. - func apps_sol_check_hyphen_token(_ input: Operations.apps_sol_check_hyphen_token.Input) async throws -> Operations.apps_sol_check_hyphen_token.Output + func appsCheckToken(_ input: Operations.AppsCheckToken.Input) async throws -> Operations.AppsCheckToken.Output /// Reset a token /// /// OAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return `404 NOT FOUND`. /// /// - Remark: HTTP `PATCH /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)`. - func apps_sol_reset_hyphen_token(_ input: Operations.apps_sol_reset_hyphen_token.Input) async throws -> Operations.apps_sol_reset_hyphen_token.Output + func appsResetToken(_ input: Operations.AppsResetToken.Input) async throws -> Operations.AppsResetToken.Output /// Delete an app token /// /// OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization. /// /// - Remark: HTTP `DELETE /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)`. - func apps_sol_delete_hyphen_token(_ input: Operations.apps_sol_delete_hyphen_token.Input) async throws -> Operations.apps_sol_delete_hyphen_token.Output + func appsDeleteToken(_ input: Operations.AppsDeleteToken.Input) async throws -> Operations.AppsDeleteToken.Output /// Create a scoped access token /// /// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specify @@ -176,7 +176,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /applications/{client_id}/token/scoped`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)`. - func apps_sol_scope_hyphen_token(_ input: Operations.apps_sol_scope_hyphen_token.Input) async throws -> Operations.apps_sol_scope_hyphen_token.Output + func appsScopeToken(_ input: Operations.AppsScopeToken.Input) async throws -> Operations.AppsScopeToken.Output /// Get an app /// /// > [!NOTE] @@ -184,14 +184,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /apps/{app_slug}`. /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)`. - func apps_sol_get_hyphen_by_hyphen_slug(_ input: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input) async throws -> Operations.apps_sol_get_hyphen_by_hyphen_slug.Output + func appsGetBySlug(_ input: Operations.AppsGetBySlug.Input) async throws -> Operations.AppsGetBySlug.Output /// List repositories accessible to the app installation /// /// List repositories that an app installation can access. /// /// - Remark: HTTP `GET /installation/repositories`. /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)`. - func apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation(_ input: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input) async throws -> Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output + func appsListReposAccessibleToInstallation(_ input: Operations.AppsListReposAccessibleToInstallation.Input) async throws -> Operations.AppsListReposAccessibleToInstallation.Output /// Revoke an installation access token /// /// Revokes the installation token you're using to authenticate as an installation and access this endpoint. @@ -200,7 +200,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /installation/token`. /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)`. - func apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token(_ input: Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Input) async throws -> Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output + func appsRevokeInstallationAccessToken(_ input: Operations.AppsRevokeInstallationAccessToken.Input) async throws -> Operations.AppsRevokeInstallationAccessToken.Output /// Get a subscription plan for an account /// /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. @@ -209,7 +209,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)`. - func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account(_ input: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output + func appsGetSubscriptionPlanForAccount(_ input: Operations.AppsGetSubscriptionPlanForAccount.Input) async throws -> Operations.AppsGetSubscriptionPlanForAccount.Output /// List plans /// /// Lists all plans that are part of your GitHub Marketplace listing. @@ -218,7 +218,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)`. - func apps_sol_list_hyphen_plans(_ input: Operations.apps_sol_list_hyphen_plans.Input) async throws -> Operations.apps_sol_list_hyphen_plans.Output + func appsListPlans(_ input: Operations.AppsListPlans.Input) async throws -> Operations.AppsListPlans.Output /// List accounts for a plan /// /// Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. @@ -227,7 +227,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)`. - func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan(_ input: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output + func appsListAccountsForPlan(_ input: Operations.AppsListAccountsForPlan.Input) async throws -> Operations.AppsListAccountsForPlan.Output /// Get a subscription plan for an account (stubbed) /// /// Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. @@ -236,7 +236,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)`. - func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed(_ input: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output + func appsGetSubscriptionPlanForAccountStubbed(_ input: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input) async throws -> Operations.AppsGetSubscriptionPlanForAccountStubbed.Output /// List plans (stubbed) /// /// Lists all plans that are part of your GitHub Marketplace listing. @@ -245,7 +245,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)`. - func apps_sol_list_hyphen_plans_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output + func appsListPlansStubbed(_ input: Operations.AppsListPlansStubbed.Input) async throws -> Operations.AppsListPlansStubbed.Output /// List accounts for a plan (stubbed) /// /// Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. @@ -254,7 +254,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)`. - func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output + func appsListAccountsForPlanStubbed(_ input: Operations.AppsListAccountsForPlanStubbed.Input) async throws -> Operations.AppsListAccountsForPlanStubbed.Output /// Get an organization installation for the authenticated app /// /// Enables an authenticated GitHub App to find the organization's installation information. @@ -263,7 +263,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/installation`. /// - Remark: Generated from `#/paths//orgs/{org}/installation/get(apps/get-org-installation)`. - func apps_sol_get_hyphen_org_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_org_hyphen_installation.Output + func appsGetOrgInstallation(_ input: Operations.AppsGetOrgInstallation.Input) async throws -> Operations.AppsGetOrgInstallation.Output /// Get a repository installation for the authenticated app /// /// Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. @@ -272,7 +272,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/installation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)`. - func apps_sol_get_hyphen_repo_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output + func appsGetRepoInstallation(_ input: Operations.AppsGetRepoInstallation.Input) async throws -> Operations.AppsGetRepoInstallation.Output /// List app installations accessible to the user access token /// /// Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. @@ -283,7 +283,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/installations`. /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)`. - func apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output + func appsListInstallationsForAuthenticatedUser(_ input: Operations.AppsListInstallationsForAuthenticatedUser.Input) async throws -> Operations.AppsListInstallationsForAuthenticatedUser.Output /// List repositories accessible to the user access token /// /// List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. @@ -294,7 +294,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/installations/{installation_id}/repositories`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)`. - func apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output + func appsListInstallationReposForAuthenticatedUser(_ input: Operations.AppsListInstallationReposForAuthenticatedUser.Input) async throws -> Operations.AppsListInstallationReposForAuthenticatedUser.Output /// Add a repository to an app installation /// /// Add a single repository to an installation. The authenticated user must have admin access to the repository. @@ -303,7 +303,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)`. - func apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output + func appsAddRepoToInstallationForAuthenticatedUser(_ input: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input) async throws -> Operations.AppsAddRepoToInstallationForAuthenticatedUser.Output /// Remove a repository from an app installation /// /// Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. @@ -312,21 +312,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)`. - func apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output + func appsRemoveRepoFromInstallationForAuthenticatedUser(_ input: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input) async throws -> Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output /// List subscriptions for the authenticated user /// /// Lists the active subscriptions for the authenticated user. /// /// - Remark: HTTP `GET /user/marketplace_purchases`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)`. - func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output + func appsListSubscriptionsForAuthenticatedUser(_ input: Operations.AppsListSubscriptionsForAuthenticatedUser.Input) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUser.Output /// List subscriptions for the authenticated user (stubbed) /// /// Lists the active subscriptions for the authenticated user. /// /// - Remark: HTTP `GET /user/marketplace_purchases/stubbed`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)`. - func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed(_ input: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output + func appsListSubscriptionsForAuthenticatedUserStubbed(_ input: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output /// Get a user installation for the authenticated app /// /// Enables an authenticated GitHub App to find the user’s installation information. @@ -335,7 +335,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/installation`. /// - Remark: Generated from `#/paths//users/{username}/installation/get(apps/get-user-installation)`. - func apps_sol_get_hyphen_user_hyphen_installation(_ input: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input) async throws -> Operations.apps_sol_get_hyphen_user_hyphen_installation.Output + func appsGetUserInstallation(_ input: Operations.AppsGetUserInstallation.Input) async throws -> Operations.AppsGetUserInstallation.Output } /// Convenience overloads for operation inputs. @@ -348,8 +348,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app`. /// - Remark: Generated from `#/paths//app/get(apps/get-authenticated)`. - public func apps_sol_get_hyphen_authenticated(headers: Operations.apps_sol_get_hyphen_authenticated.Input.Headers = .init()) async throws -> Operations.apps_sol_get_hyphen_authenticated.Output { - try await apps_sol_get_hyphen_authenticated(Operations.apps_sol_get_hyphen_authenticated.Input(headers: headers)) + public func appsGetAuthenticated(headers: Operations.AppsGetAuthenticated.Input.Headers = .init()) async throws -> Operations.AppsGetAuthenticated.Output { + try await appsGetAuthenticated(Operations.AppsGetAuthenticated.Input(headers: headers)) } /// Create a GitHub App from a manifest /// @@ -357,11 +357,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /app-manifests/{code}/conversions`. /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)`. - public func apps_sol_create_hyphen_from_hyphen_manifest( - path: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Path, - headers: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Headers = .init() - ) async throws -> Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output { - try await apps_sol_create_hyphen_from_hyphen_manifest(Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input( + public func appsCreateFromManifest( + path: Operations.AppsCreateFromManifest.Input.Path, + headers: Operations.AppsCreateFromManifest.Input.Headers = .init() + ) async throws -> Operations.AppsCreateFromManifest.Output { + try await appsCreateFromManifest(Operations.AppsCreateFromManifest.Input( path: path, headers: headers )) @@ -374,8 +374,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/get(apps/get-webhook-config-for-app)`. - public func apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(headers: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers = .init()) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output { - try await apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input(headers: headers)) + public func appsGetWebhookConfigForApp(headers: Operations.AppsGetWebhookConfigForApp.Input.Headers = .init()) async throws -> Operations.AppsGetWebhookConfigForApp.Output { + try await appsGetWebhookConfigForApp(Operations.AppsGetWebhookConfigForApp.Input(headers: headers)) } /// Update a webhook configuration for an app /// @@ -385,11 +385,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/patch(apps/update-webhook-config-for-app)`. - public func apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app( - headers: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers = .init(), - body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Body - ) async throws -> Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output { - try await apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app(Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input( + public func appsUpdateWebhookConfigForApp( + headers: Operations.AppsUpdateWebhookConfigForApp.Input.Headers = .init(), + body: Operations.AppsUpdateWebhookConfigForApp.Input.Body + ) async throws -> Operations.AppsUpdateWebhookConfigForApp.Output { + try await appsUpdateWebhookConfigForApp(Operations.AppsUpdateWebhookConfigForApp.Input( headers: headers, body: body )) @@ -402,11 +402,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/hook/deliveries`. /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)`. - public func apps_sol_list_hyphen_webhook_hyphen_deliveries( - query: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output { - try await apps_sol_list_hyphen_webhook_hyphen_deliveries(Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input( + public func appsListWebhookDeliveries( + query: Operations.AppsListWebhookDeliveries.Input.Query = .init(), + headers: Operations.AppsListWebhookDeliveries.Input.Headers = .init() + ) async throws -> Operations.AppsListWebhookDeliveries.Output { + try await appsListWebhookDeliveries(Operations.AppsListWebhookDeliveries.Input( query: query, headers: headers )) @@ -419,11 +419,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/hook/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)`. - public func apps_sol_get_hyphen_webhook_hyphen_delivery( - path: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output { - try await apps_sol_get_hyphen_webhook_hyphen_delivery(Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input( + public func appsGetWebhookDelivery( + path: Operations.AppsGetWebhookDelivery.Input.Path, + headers: Operations.AppsGetWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.AppsGetWebhookDelivery.Output { + try await appsGetWebhookDelivery(Operations.AppsGetWebhookDelivery.Input( path: path, headers: headers )) @@ -436,11 +436,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /app/hook/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)`. - public func apps_sol_redeliver_hyphen_webhook_hyphen_delivery( - path: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { - try await apps_sol_redeliver_hyphen_webhook_hyphen_delivery(Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input( + public func appsRedeliverWebhookDelivery( + path: Operations.AppsRedeliverWebhookDelivery.Input.Path, + headers: Operations.AppsRedeliverWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.AppsRedeliverWebhookDelivery.Output { + try await appsRedeliverWebhookDelivery(Operations.AppsRedeliverWebhookDelivery.Input( path: path, headers: headers )) @@ -451,11 +451,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/installation-requests`. /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)`. - public func apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app( - query: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output { - try await apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app(Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input( + public func appsListInstallationRequestsForAuthenticatedApp( + query: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Query = .init(), + headers: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Headers = .init() + ) async throws -> Operations.AppsListInstallationRequestsForAuthenticatedApp.Output { + try await appsListInstallationRequestsForAuthenticatedApp(Operations.AppsListInstallationRequestsForAuthenticatedApp.Input( query: query, headers: headers )) @@ -468,11 +468,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/installations`. /// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)`. - public func apps_sol_list_hyphen_installations( - query: Operations.apps_sol_list_hyphen_installations.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installations.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_installations.Output { - try await apps_sol_list_hyphen_installations(Operations.apps_sol_list_hyphen_installations.Input( + public func appsListInstallations( + query: Operations.AppsListInstallations.Input.Query = .init(), + headers: Operations.AppsListInstallations.Input.Headers = .init() + ) async throws -> Operations.AppsListInstallations.Output { + try await appsListInstallations(Operations.AppsListInstallations.Input( query: query, headers: headers )) @@ -485,11 +485,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)`. - public func apps_sol_get_hyphen_installation( - path: Operations.apps_sol_get_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_installation.Output { - try await apps_sol_get_hyphen_installation(Operations.apps_sol_get_hyphen_installation.Input( + public func appsGetInstallation( + path: Operations.AppsGetInstallation.Input.Path, + headers: Operations.AppsGetInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsGetInstallation.Output { + try await appsGetInstallation(Operations.AppsGetInstallation.Input( path: path, headers: headers )) @@ -502,11 +502,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)`. - public func apps_sol_delete_hyphen_installation( - path: Operations.apps_sol_delete_hyphen_installation.Input.Path, - headers: Operations.apps_sol_delete_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_delete_hyphen_installation.Output { - try await apps_sol_delete_hyphen_installation(Operations.apps_sol_delete_hyphen_installation.Input( + public func appsDeleteInstallation( + path: Operations.AppsDeleteInstallation.Input.Path, + headers: Operations.AppsDeleteInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsDeleteInstallation.Output { + try await appsDeleteInstallation(Operations.AppsDeleteInstallation.Input( path: path, headers: headers )) @@ -523,12 +523,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /app/installations/{installation_id}/access_tokens`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)`. - public func apps_sol_create_hyphen_installation_hyphen_access_hyphen_token( - path: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Path, - headers: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Body? = nil - ) async throws -> Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output { - try await apps_sol_create_hyphen_installation_hyphen_access_hyphen_token(Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input( + public func appsCreateInstallationAccessToken( + path: Operations.AppsCreateInstallationAccessToken.Input.Path, + headers: Operations.AppsCreateInstallationAccessToken.Input.Headers = .init(), + body: Operations.AppsCreateInstallationAccessToken.Input.Body? = nil + ) async throws -> Operations.AppsCreateInstallationAccessToken.Output { + try await appsCreateInstallationAccessToken(Operations.AppsCreateInstallationAccessToken.Input( path: path, headers: headers, body: body @@ -542,11 +542,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)`. - public func apps_sol_suspend_hyphen_installation( - path: Operations.apps_sol_suspend_hyphen_installation.Input.Path, - headers: Operations.apps_sol_suspend_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_suspend_hyphen_installation.Output { - try await apps_sol_suspend_hyphen_installation(Operations.apps_sol_suspend_hyphen_installation.Input( + public func appsSuspendInstallation( + path: Operations.AppsSuspendInstallation.Input.Path, + headers: Operations.AppsSuspendInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsSuspendInstallation.Output { + try await appsSuspendInstallation(Operations.AppsSuspendInstallation.Input( path: path, headers: headers )) @@ -559,11 +559,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)`. - public func apps_sol_unsuspend_hyphen_installation( - path: Operations.apps_sol_unsuspend_hyphen_installation.Input.Path, - headers: Operations.apps_sol_unsuspend_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_unsuspend_hyphen_installation.Output { - try await apps_sol_unsuspend_hyphen_installation(Operations.apps_sol_unsuspend_hyphen_installation.Input( + public func appsUnsuspendInstallation( + path: Operations.AppsUnsuspendInstallation.Input.Path, + headers: Operations.AppsUnsuspendInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsUnsuspendInstallation.Output { + try await appsUnsuspendInstallation(Operations.AppsUnsuspendInstallation.Input( path: path, headers: headers )) @@ -575,12 +575,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /applications/{client_id}/grant`. /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)`. - public func apps_sol_delete_hyphen_authorization( - path: Operations.apps_sol_delete_hyphen_authorization.Input.Path, - headers: Operations.apps_sol_delete_hyphen_authorization.Input.Headers = .init(), - body: Operations.apps_sol_delete_hyphen_authorization.Input.Body - ) async throws -> Operations.apps_sol_delete_hyphen_authorization.Output { - try await apps_sol_delete_hyphen_authorization(Operations.apps_sol_delete_hyphen_authorization.Input( + public func appsDeleteAuthorization( + path: Operations.AppsDeleteAuthorization.Input.Path, + headers: Operations.AppsDeleteAuthorization.Input.Headers = .init(), + body: Operations.AppsDeleteAuthorization.Input.Body + ) async throws -> Operations.AppsDeleteAuthorization.Output { + try await appsDeleteAuthorization(Operations.AppsDeleteAuthorization.Input( path: path, headers: headers, body: body @@ -592,12 +592,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)`. - public func apps_sol_check_hyphen_token( - path: Operations.apps_sol_check_hyphen_token.Input.Path, - headers: Operations.apps_sol_check_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_check_hyphen_token.Input.Body - ) async throws -> Operations.apps_sol_check_hyphen_token.Output { - try await apps_sol_check_hyphen_token(Operations.apps_sol_check_hyphen_token.Input( + public func appsCheckToken( + path: Operations.AppsCheckToken.Input.Path, + headers: Operations.AppsCheckToken.Input.Headers = .init(), + body: Operations.AppsCheckToken.Input.Body + ) async throws -> Operations.AppsCheckToken.Output { + try await appsCheckToken(Operations.AppsCheckToken.Input( path: path, headers: headers, body: body @@ -609,12 +609,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)`. - public func apps_sol_reset_hyphen_token( - path: Operations.apps_sol_reset_hyphen_token.Input.Path, - headers: Operations.apps_sol_reset_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_reset_hyphen_token.Input.Body - ) async throws -> Operations.apps_sol_reset_hyphen_token.Output { - try await apps_sol_reset_hyphen_token(Operations.apps_sol_reset_hyphen_token.Input( + public func appsResetToken( + path: Operations.AppsResetToken.Input.Path, + headers: Operations.AppsResetToken.Input.Headers = .init(), + body: Operations.AppsResetToken.Input.Body + ) async throws -> Operations.AppsResetToken.Output { + try await appsResetToken(Operations.AppsResetToken.Input( path: path, headers: headers, body: body @@ -626,12 +626,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)`. - public func apps_sol_delete_hyphen_token( - path: Operations.apps_sol_delete_hyphen_token.Input.Path, - headers: Operations.apps_sol_delete_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_delete_hyphen_token.Input.Body - ) async throws -> Operations.apps_sol_delete_hyphen_token.Output { - try await apps_sol_delete_hyphen_token(Operations.apps_sol_delete_hyphen_token.Input( + public func appsDeleteToken( + path: Operations.AppsDeleteToken.Input.Path, + headers: Operations.AppsDeleteToken.Input.Headers = .init(), + body: Operations.AppsDeleteToken.Input.Body + ) async throws -> Operations.AppsDeleteToken.Output { + try await appsDeleteToken(Operations.AppsDeleteToken.Input( path: path, headers: headers, body: body @@ -647,12 +647,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /applications/{client_id}/token/scoped`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)`. - public func apps_sol_scope_hyphen_token( - path: Operations.apps_sol_scope_hyphen_token.Input.Path, - headers: Operations.apps_sol_scope_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_scope_hyphen_token.Input.Body - ) async throws -> Operations.apps_sol_scope_hyphen_token.Output { - try await apps_sol_scope_hyphen_token(Operations.apps_sol_scope_hyphen_token.Input( + public func appsScopeToken( + path: Operations.AppsScopeToken.Input.Path, + headers: Operations.AppsScopeToken.Input.Headers = .init(), + body: Operations.AppsScopeToken.Input.Body + ) async throws -> Operations.AppsScopeToken.Output { + try await appsScopeToken(Operations.AppsScopeToken.Input( path: path, headers: headers, body: body @@ -665,11 +665,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /apps/{app_slug}`. /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)`. - public func apps_sol_get_hyphen_by_hyphen_slug( - path: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Path, - headers: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_by_hyphen_slug.Output { - try await apps_sol_get_hyphen_by_hyphen_slug(Operations.apps_sol_get_hyphen_by_hyphen_slug.Input( + public func appsGetBySlug( + path: Operations.AppsGetBySlug.Input.Path, + headers: Operations.AppsGetBySlug.Input.Headers = .init() + ) async throws -> Operations.AppsGetBySlug.Output { + try await appsGetBySlug(Operations.AppsGetBySlug.Input( path: path, headers: headers )) @@ -680,11 +680,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /installation/repositories`. /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)`. - public func apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation( - query: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output { - try await apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation(Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input( + public func appsListReposAccessibleToInstallation( + query: Operations.AppsListReposAccessibleToInstallation.Input.Query = .init(), + headers: Operations.AppsListReposAccessibleToInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsListReposAccessibleToInstallation.Output { + try await appsListReposAccessibleToInstallation(Operations.AppsListReposAccessibleToInstallation.Input( query: query, headers: headers )) @@ -697,8 +697,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /installation/token`. /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)`. - public func apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token() async throws -> Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output { - try await apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token(Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Input()) + public func appsRevokeInstallationAccessToken() async throws -> Operations.AppsRevokeInstallationAccessToken.Output { + try await appsRevokeInstallationAccessToken(Operations.AppsRevokeInstallationAccessToken.Input()) } /// Get a subscription plan for an account /// @@ -708,11 +708,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)`. - public func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account( - path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Path, - headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output { - try await apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input( + public func appsGetSubscriptionPlanForAccount( + path: Operations.AppsGetSubscriptionPlanForAccount.Input.Path, + headers: Operations.AppsGetSubscriptionPlanForAccount.Input.Headers = .init() + ) async throws -> Operations.AppsGetSubscriptionPlanForAccount.Output { + try await appsGetSubscriptionPlanForAccount(Operations.AppsGetSubscriptionPlanForAccount.Input( path: path, headers: headers )) @@ -725,11 +725,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)`. - public func apps_sol_list_hyphen_plans( - query: Operations.apps_sol_list_hyphen_plans.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_plans.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_plans.Output { - try await apps_sol_list_hyphen_plans(Operations.apps_sol_list_hyphen_plans.Input( + public func appsListPlans( + query: Operations.AppsListPlans.Input.Query = .init(), + headers: Operations.AppsListPlans.Input.Headers = .init() + ) async throws -> Operations.AppsListPlans.Output { + try await appsListPlans(Operations.AppsListPlans.Input( query: query, headers: headers )) @@ -742,12 +742,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)`. - public func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan( - path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Path, - query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output { - try await apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan(Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input( + public func appsListAccountsForPlan( + path: Operations.AppsListAccountsForPlan.Input.Path, + query: Operations.AppsListAccountsForPlan.Input.Query = .init(), + headers: Operations.AppsListAccountsForPlan.Input.Headers = .init() + ) async throws -> Operations.AppsListAccountsForPlan.Output { + try await appsListAccountsForPlan(Operations.AppsListAccountsForPlan.Input( path: path, query: query, headers: headers @@ -761,11 +761,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)`. - public func apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed( - path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Path, - headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output { - try await apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input( + public func appsGetSubscriptionPlanForAccountStubbed( + path: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Path, + headers: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Headers = .init() + ) async throws -> Operations.AppsGetSubscriptionPlanForAccountStubbed.Output { + try await appsGetSubscriptionPlanForAccountStubbed(Operations.AppsGetSubscriptionPlanForAccountStubbed.Input( path: path, headers: headers )) @@ -778,11 +778,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)`. - public func apps_sol_list_hyphen_plans_hyphen_stubbed( - query: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output { - try await apps_sol_list_hyphen_plans_hyphen_stubbed(Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input( + public func appsListPlansStubbed( + query: Operations.AppsListPlansStubbed.Input.Query = .init(), + headers: Operations.AppsListPlansStubbed.Input.Headers = .init() + ) async throws -> Operations.AppsListPlansStubbed.Output { + try await appsListPlansStubbed(Operations.AppsListPlansStubbed.Input( query: query, headers: headers )) @@ -795,12 +795,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)`. - public func apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed( - path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Path, - query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output { - try await apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed(Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input( + public func appsListAccountsForPlanStubbed( + path: Operations.AppsListAccountsForPlanStubbed.Input.Path, + query: Operations.AppsListAccountsForPlanStubbed.Input.Query = .init(), + headers: Operations.AppsListAccountsForPlanStubbed.Input.Headers = .init() + ) async throws -> Operations.AppsListAccountsForPlanStubbed.Output { + try await appsListAccountsForPlanStubbed(Operations.AppsListAccountsForPlanStubbed.Input( path: path, query: query, headers: headers @@ -814,11 +814,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/installation`. /// - Remark: Generated from `#/paths//orgs/{org}/installation/get(apps/get-org-installation)`. - public func apps_sol_get_hyphen_org_hyphen_installation( - path: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_org_hyphen_installation.Output { - try await apps_sol_get_hyphen_org_hyphen_installation(Operations.apps_sol_get_hyphen_org_hyphen_installation.Input( + public func appsGetOrgInstallation( + path: Operations.AppsGetOrgInstallation.Input.Path, + headers: Operations.AppsGetOrgInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsGetOrgInstallation.Output { + try await appsGetOrgInstallation(Operations.AppsGetOrgInstallation.Input( path: path, headers: headers )) @@ -831,11 +831,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/installation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)`. - public func apps_sol_get_hyphen_repo_hyphen_installation( - path: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output { - try await apps_sol_get_hyphen_repo_hyphen_installation(Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input( + public func appsGetRepoInstallation( + path: Operations.AppsGetRepoInstallation.Input.Path, + headers: Operations.AppsGetRepoInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsGetRepoInstallation.Output { + try await appsGetRepoInstallation(Operations.AppsGetRepoInstallation.Input( path: path, headers: headers )) @@ -850,11 +850,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/installations`. /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)`. - public func apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user(Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func appsListInstallationsForAuthenticatedUser( + query: Operations.AppsListInstallationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListInstallationsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.AppsListInstallationsForAuthenticatedUser.Output { + try await appsListInstallationsForAuthenticatedUser(Operations.AppsListInstallationsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -869,12 +869,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/installations/{installation_id}/repositories`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)`. - public func apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func appsListInstallationReposForAuthenticatedUser( + path: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Path, + query: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.AppsListInstallationReposForAuthenticatedUser.Output { + try await appsListInstallationReposForAuthenticatedUser(Operations.AppsListInstallationReposForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -888,11 +888,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)`. - public func apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func appsAddRepoToInstallationForAuthenticatedUser( + path: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Path, + headers: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.AppsAddRepoToInstallationForAuthenticatedUser.Output { + try await appsAddRepoToInstallationForAuthenticatedUser(Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input( path: path, headers: headers )) @@ -905,11 +905,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)`. - public func apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func appsRemoveRepoFromInstallationForAuthenticatedUser( + path: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Path, + headers: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output { + try await appsRemoveRepoFromInstallationForAuthenticatedUser(Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input( path: path, headers: headers )) @@ -920,11 +920,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/marketplace_purchases`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)`. - public func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user(Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func appsListSubscriptionsForAuthenticatedUser( + query: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUser.Output { + try await appsListSubscriptionsForAuthenticatedUser(Operations.AppsListSubscriptionsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -935,11 +935,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/marketplace_purchases/stubbed`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)`. - public func apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed( - query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Headers = .init() - ) async throws -> Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output { - try await apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed(Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input( + public func appsListSubscriptionsForAuthenticatedUserStubbed( + query: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Query = .init(), + headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Headers = .init() + ) async throws -> Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output { + try await appsListSubscriptionsForAuthenticatedUserStubbed(Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input( query: query, headers: headers )) @@ -952,11 +952,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/installation`. /// - Remark: Generated from `#/paths//users/{username}/installation/get(apps/get-user-installation)`. - public func apps_sol_get_hyphen_user_hyphen_installation( - path: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Headers = .init() - ) async throws -> Operations.apps_sol_get_hyphen_user_hyphen_installation.Output { - try await apps_sol_get_hyphen_user_hyphen_installation(Operations.apps_sol_get_hyphen_user_hyphen_installation.Input( + public func appsGetUserInstallation( + path: Operations.AppsGetUserInstallation.Input.Path, + headers: Operations.AppsGetUserInstallation.Input.Headers = .init() + ) async throws -> Operations.AppsGetUserInstallation.Output { + try await appsGetUserInstallation(Operations.AppsGetUserInstallation.Input( path: path, headers: headers )) @@ -965,6 +965,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -980,7 +989,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -990,171 +999,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1162,54 +1171,54 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -1219,64 +1228,64 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/integration`. - public struct integration: Codable, Hashable, Sendable { + public struct Integration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/id`. @@ -1286,25 +1295,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -1317,15 +1326,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/integration/owner`. - public var owner: Components.Schemas.integration.ownerPayload + public var owner: Components.Schemas.Integration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/name`. @@ -1333,17 +1342,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/permissions/checks`. @@ -1356,7 +1365,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -1389,23 +1398,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -1420,23 +1429,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -1445,7 +1454,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public var permissions: Components.Schemas.integration.permissionsPayload + public var permissions: Components.Schemas.Integration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/events`. @@ -1453,104 +1462,104 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/pem`. public var pem: Swift.String? - /// Creates a new `integration`. + /// Creates a new `Integration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.Integration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// The URL to which the payloads will be delivered. /// /// - Remark: Generated from `#/components/schemas/webhook-config-url`. - public typealias webhook_hyphen_config_hyphen_url = Swift.String + public typealias WebhookConfigUrl = Swift.String /// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. /// /// - Remark: Generated from `#/components/schemas/webhook-config-content-type`. - public typealias webhook_hyphen_config_hyphen_content_hyphen_type = Swift.String + public typealias WebhookConfigContentType = Swift.String /// If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). /// /// - Remark: Generated from `#/components/schemas/webhook-config-secret`. - public typealias webhook_hyphen_config_hyphen_secret = Swift.String + public typealias WebhookConfigSecret = Swift.String /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl`. - @frozen public enum webhook_hyphen_config_hyphen_insecure_hyphen_ssl: Codable, Hashable, Sendable { + @frozen public enum WebhookConfigInsecureSsl: Codable, Hashable, Sendable { /// Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** /// /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl/case1`. @@ -1589,44 +1598,44 @@ public enum Components { /// Configuration object of the webhook /// /// - Remark: Generated from `#/components/schemas/webhook-config`. - public struct webhook_hyphen_config: Codable, Hashable, Sendable { + public struct WebhookConfig: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/webhook-config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/components/schemas/webhook-config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/components/schemas/webhook-config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/components/schemas/webhook-config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `webhook_hyphen_config`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `WebhookConfig`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// Delivery made by a webhook, without request and response information. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item`. - public struct hook_hyphen_delivery_hyphen_item: Codable, Hashable, Sendable { + public struct HookDeliveryItem: Codable, Hashable, Sendable { /// Unique identifier of the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/id`. @@ -1638,7 +1647,7 @@ public enum Components { /// Time when the webhook delivery occurred. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the webhook delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/redelivery`. @@ -1654,7 +1663,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/event`. @@ -1666,80 +1675,80 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/installation_id`. - public var installation_id: Swift.Int64? + public var installationId: Swift.Int64? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/repository_id`. - public var repository_id: Swift.Int64? + public var repositoryId: Swift.Int64? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/throttled_at`. - public var throttled_at: Foundation.Date? - /// Creates a new `hook_hyphen_delivery_hyphen_item`. + public var throttledAt: Foundation.Date? + /// Creates a new `HookDeliveryItem`. /// /// - Parameters: /// - id: Unique identifier of the webhook delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the webhook delivery occurred. + /// - deliveredAt: Time when the webhook delivery occurred. /// - redelivery: Whether the webhook delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Describes the response returned after attempting the delivery. - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. public init( id: Swift.Int64, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int64? = nil, - repository_id: Swift.Int64? = nil, - throttled_at: Foundation.Date? = nil + installationId: Swift.Int64? = nil, + repositoryId: Swift.Int64? = nil, + throttledAt: Foundation.Date? = nil ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt } public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -1748,25 +1757,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -1774,7 +1783,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -1784,30 +1793,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1846,9 +1855,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1863,7 +1872,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1882,34 +1891,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Delivery made by a webhook. /// /// - Remark: Generated from `#/components/schemas/hook-delivery`. - public struct hook_hyphen_delivery: Codable, Hashable, Sendable { + public struct HookDelivery: Codable, Hashable, Sendable { /// Unique identifier of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/id`. @@ -1921,7 +1930,7 @@ public enum Components { /// Time when the delivery was delivered. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/redelivery`. @@ -1937,7 +1946,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/event`. @@ -1949,28 +1958,28 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/installation_id`. - public var installation_id: Swift.Int? + public var installationId: Swift.Int? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/repository_id`. - public var repository_id: Swift.Int? + public var repositoryId: Swift.Int? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/throttled_at`. - public var throttled_at: Foundation.Date? + public var throttledAt: Foundation.Date? /// The URL target of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public struct requestPayload: Codable, Hashable, Sendable { + public struct RequestPayload: Codable, Hashable, Sendable { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -1987,14 +1996,14 @@ public enum Components { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public struct payloadPayload: Codable, Hashable, Sendable { + public struct PayloadPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `payloadPayload`. + /// Creates a new `PayloadPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -2011,15 +2020,15 @@ public enum Components { /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public var payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? - /// Creates a new `requestPayload`. + public var payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? + /// Creates a new `RequestPayload`. /// /// - Parameters: /// - headers: The request headers sent with the webhook delivery. /// - payload: The webhook payload. public init( - headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? = nil, - payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? = nil + headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? = nil, + payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? = nil ) { self.headers = headers self.payload = payload @@ -2030,16 +2039,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public var request: Components.Schemas.hook_hyphen_delivery.requestPayload + public var request: Components.Schemas.HookDelivery.RequestPayload /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public struct responsePayload: Codable, Hashable, Sendable { + public struct ResponsePayload: Codable, Hashable, Sendable { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -2056,18 +2065,18 @@ public enum Components { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? /// The response payload received. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/payload`. public var payload: Swift.String? - /// Creates a new `responsePayload`. + /// Creates a new `ResponsePayload`. /// /// - Parameters: /// - headers: The response headers received when the delivery was made. /// - payload: The response payload received. public init( - headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? = nil, + headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? = nil, payload: Swift.String? = nil ) { self.headers = headers @@ -2079,54 +2088,54 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public var response: Components.Schemas.hook_hyphen_delivery.responsePayload - /// Creates a new `hook_hyphen_delivery`. + public var response: Components.Schemas.HookDelivery.ResponsePayload + /// Creates a new `HookDelivery`. /// /// - Parameters: /// - id: Unique identifier of the delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the delivery was delivered. + /// - deliveredAt: Time when the delivery was delivered. /// - redelivery: Whether the delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Description of the status of the attempted delivery - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. /// - url: The URL target of the delivery. /// - request: /// - response: public init( id: Swift.Int, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int? = nil, - repository_id: Swift.Int? = nil, - throttled_at: Foundation.Date? = nil, + installationId: Swift.Int? = nil, + repositoryId: Swift.Int? = nil, + throttledAt: Foundation.Date? = nil, url: Swift.String? = nil, - request: Components.Schemas.hook_hyphen_delivery.requestPayload, - response: Components.Schemas.hook_hyphen_delivery.responsePayload + request: Components.Schemas.HookDelivery.RequestPayload, + response: Components.Schemas.HookDelivery.ResponsePayload ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt self.url = url self.request = request self.response = response @@ -2134,16 +2143,16 @@ public enum Components { public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" case url case request case response @@ -2152,27 +2161,27 @@ public enum Components { /// Request to install an integration on a target /// /// - Remark: Generated from `#/components/schemas/integration-installation-request`. - public struct integration_hyphen_installation_hyphen_request: Codable, Hashable, Sendable { + public struct IntegrationInstallationRequest: Codable, Hashable, Sendable { /// Unique identifier of the request installation. /// /// - Remark: Generated from `#/components/schemas/integration-installation-request/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/integration-installation-request/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/integration-installation-request/account`. - public struct accountPayload: Codable, Hashable, Sendable { + public struct AccountPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration-installation-request/account/value1`. - public var value1: Components.Schemas.simple_hyphen_user? + public var value1: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/integration-installation-request/account/value2`. - public var value2: Components.Schemas.enterprise? - /// Creates a new `accountPayload`. + public var value2: Components.Schemas.Enterprise? + /// Creates a new `AccountPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.simple_hyphen_user? = nil, - value2: Components.Schemas.enterprise? = nil + value1: Components.Schemas.SimpleUser? = nil, + value2: Components.Schemas.Enterprise? = nil ) { self.value1 = value1 self.value2 = value2 @@ -2180,19 +2189,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -2200,218 +2209,218 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/integration-installation-request/account`. - public var account: Components.Schemas.integration_hyphen_installation_hyphen_request.accountPayload + public var account: Components.Schemas.IntegrationInstallationRequest.AccountPayload /// - Remark: Generated from `#/components/schemas/integration-installation-request/requester`. - public var requester: Components.Schemas.simple_hyphen_user + public var requester: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/integration-installation-request/created_at`. - public var created_at: Foundation.Date - /// Creates a new `integration_hyphen_installation_hyphen_request`. + public var createdAt: Foundation.Date + /// Creates a new `IntegrationInstallationRequest`. /// /// - Parameters: /// - id: Unique identifier of the request installation. - /// - node_id: + /// - nodeId: /// - account: /// - requester: - /// - created_at: + /// - createdAt: public init( id: Swift.Int, - node_id: Swift.String? = nil, - account: Components.Schemas.integration_hyphen_installation_hyphen_request.accountPayload, - requester: Components.Schemas.simple_hyphen_user, - created_at: Foundation.Date + nodeId: Swift.String? = nil, + account: Components.Schemas.IntegrationInstallationRequest.AccountPayload, + requester: Components.Schemas.SimpleUser, + createdAt: Foundation.Date ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.account = account self.requester = requester - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case account case requester - case created_at + case createdAt = "created_at" } } /// The permissions granted to the user access token. /// /// - Remark: Generated from `#/components/schemas/app-permissions`. - public struct app_hyphen_permissions: Codable, Hashable, Sendable { + public struct AppPermissions: Codable, Hashable, Sendable { /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/actions`. - @frozen public enum actionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/actions`. - public var actions: Components.Schemas.app_hyphen_permissions.actionsPayload? + public var actions: Components.Schemas.AppPermissions.ActionsPayload? /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// /// - Remark: Generated from `#/components/schemas/app-permissions/administration`. - @frozen public enum administrationPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdministrationPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// /// - Remark: Generated from `#/components/schemas/app-permissions/administration`. - public var administration: Components.Schemas.app_hyphen_permissions.administrationPayload? + public var administration: Components.Schemas.AppPermissions.AdministrationPayload? /// The level of permission to grant the access token for checks on code. /// /// - Remark: Generated from `#/components/schemas/app-permissions/checks`. - @frozen public enum checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum ChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for checks on code. /// /// - Remark: Generated from `#/components/schemas/app-permissions/checks`. - public var checks: Components.Schemas.app_hyphen_permissions.checksPayload? + public var checks: Components.Schemas.AppPermissions.ChecksPayload? /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// /// - Remark: Generated from `#/components/schemas/app-permissions/codespaces`. - @frozen public enum codespacesPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodespacesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// /// - Remark: Generated from `#/components/schemas/app-permissions/codespaces`. - public var codespaces: Components.Schemas.app_hyphen_permissions.codespacesPayload? + public var codespaces: Components.Schemas.AppPermissions.CodespacesPayload? /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/contents`. - @frozen public enum contentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/contents`. - public var contents: Components.Schemas.app_hyphen_permissions.contentsPayload? + public var contents: Components.Schemas.AppPermissions.ContentsPayload? /// The level of permission to grant the access token to manage Dependabot secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/dependabot_secrets`. - @frozen public enum dependabot_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage Dependabot secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/dependabot_secrets`. - public var dependabot_secrets: Components.Schemas.app_hyphen_permissions.dependabot_secretsPayload? + public var dependabotSecrets: Components.Schemas.AppPermissions.DependabotSecretsPayload? /// The level of permission to grant the access token for deployments and deployment statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/deployments`. - @frozen public enum deploymentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DeploymentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for deployments and deployment statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/deployments`. - public var deployments: Components.Schemas.app_hyphen_permissions.deploymentsPayload? + public var deployments: Components.Schemas.AppPermissions.DeploymentsPayload? /// The level of permission to grant the access token for managing repository environments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/environments`. - @frozen public enum environmentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnvironmentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for managing repository environments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/environments`. - public var environments: Components.Schemas.app_hyphen_permissions.environmentsPayload? + public var environments: Components.Schemas.AppPermissions.EnvironmentsPayload? /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// /// - Remark: Generated from `#/components/schemas/app-permissions/issues`. - @frozen public enum issuesPayload: String, Codable, Hashable, Sendable { + @frozen public enum IssuesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// /// - Remark: Generated from `#/components/schemas/app-permissions/issues`. - public var issues: Components.Schemas.app_hyphen_permissions.issuesPayload? + public var issues: Components.Schemas.AppPermissions.IssuesPayload? /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// /// - Remark: Generated from `#/components/schemas/app-permissions/metadata`. - @frozen public enum metadataPayload: String, Codable, Hashable, Sendable { + @frozen public enum MetadataPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// /// - Remark: Generated from `#/components/schemas/app-permissions/metadata`. - public var metadata: Components.Schemas.app_hyphen_permissions.metadataPayload? + public var metadata: Components.Schemas.AppPermissions.MetadataPayload? /// The level of permission to grant the access token for packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/packages`. - @frozen public enum packagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum PackagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/packages`. - public var packages: Components.Schemas.app_hyphen_permissions.packagesPayload? + public var packages: Components.Schemas.AppPermissions.PackagesPayload? /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pages`. - @frozen public enum pagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum PagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pages`. - public var pages: Components.Schemas.app_hyphen_permissions.pagesPayload? + public var pages: Components.Schemas.AppPermissions.PagesPayload? /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pull_requests`. - @frozen public enum pull_requestsPayload: String, Codable, Hashable, Sendable { + @frozen public enum PullRequestsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pull_requests`. - public var pull_requests: Components.Schemas.app_hyphen_permissions.pull_requestsPayload? + public var pullRequests: Components.Schemas.AppPermissions.PullRequestsPayload? /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_custom_properties`. - @frozen public enum repository_custom_propertiesPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryCustomPropertiesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_custom_properties`. - public var repository_custom_properties: Components.Schemas.app_hyphen_permissions.repository_custom_propertiesPayload? + public var repositoryCustomProperties: Components.Schemas.AppPermissions.RepositoryCustomPropertiesPayload? /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_hooks`. - @frozen public enum repository_hooksPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryHooksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_hooks`. - public var repository_hooks: Components.Schemas.app_hyphen_permissions.repository_hooksPayload? + public var repositoryHooks: Components.Schemas.AppPermissions.RepositoryHooksPayload? /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_projects`. - @frozen public enum repository_projectsPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryProjectsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -2419,131 +2428,131 @@ public enum Components { /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_projects`. - public var repository_projects: Components.Schemas.app_hyphen_permissions.repository_projectsPayload? + public var repositoryProjects: Components.Schemas.AppPermissions.RepositoryProjectsPayload? /// The level of permission to grant the access token to view and manage secret scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secret_scanning_alerts`. - @frozen public enum secret_scanning_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage secret scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secret_scanning_alerts`. - public var secret_scanning_alerts: Components.Schemas.app_hyphen_permissions.secret_scanning_alertsPayload? + public var secretScanningAlerts: Components.Schemas.AppPermissions.SecretScanningAlertsPayload? /// The level of permission to grant the access token to manage repository secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secrets`. - @frozen public enum secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage repository secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secrets`. - public var secrets: Components.Schemas.app_hyphen_permissions.secretsPayload? + public var secrets: Components.Schemas.AppPermissions.SecretsPayload? /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/security_events`. - @frozen public enum security_eventsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecurityEventsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/security_events`. - public var security_events: Components.Schemas.app_hyphen_permissions.security_eventsPayload? + public var securityEvents: Components.Schemas.AppPermissions.SecurityEventsPayload? /// The level of permission to grant the access token to manage just a single file. /// /// - Remark: Generated from `#/components/schemas/app-permissions/single_file`. - @frozen public enum single_filePayload: String, Codable, Hashable, Sendable { + @frozen public enum SingleFilePayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage just a single file. /// /// - Remark: Generated from `#/components/schemas/app-permissions/single_file`. - public var single_file: Components.Schemas.app_hyphen_permissions.single_filePayload? + public var singleFile: Components.Schemas.AppPermissions.SingleFilePayload? /// The level of permission to grant the access token for commit statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/statuses`. - @frozen public enum statusesPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for commit statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/statuses`. - public var statuses: Components.Schemas.app_hyphen_permissions.statusesPayload? + public var statuses: Components.Schemas.AppPermissions.StatusesPayload? /// The level of permission to grant the access token to manage Dependabot alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/vulnerability_alerts`. - @frozen public enum vulnerability_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum VulnerabilityAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage Dependabot alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/vulnerability_alerts`. - public var vulnerability_alerts: Components.Schemas.app_hyphen_permissions.vulnerability_alertsPayload? + public var vulnerabilityAlerts: Components.Schemas.AppPermissions.VulnerabilityAlertsPayload? /// The level of permission to grant the access token to update GitHub Actions workflow files. /// /// - Remark: Generated from `#/components/schemas/app-permissions/workflows`. - @frozen public enum workflowsPayload: String, Codable, Hashable, Sendable { + @frozen public enum WorkflowsPayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token to update GitHub Actions workflow files. /// /// - Remark: Generated from `#/components/schemas/app-permissions/workflows`. - public var workflows: Components.Schemas.app_hyphen_permissions.workflowsPayload? + public var workflows: Components.Schemas.AppPermissions.WorkflowsPayload? /// The level of permission to grant the access token for organization teams and members. /// /// - Remark: Generated from `#/components/schemas/app-permissions/members`. - @frozen public enum membersPayload: String, Codable, Hashable, Sendable { + @frozen public enum MembersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for organization teams and members. /// /// - Remark: Generated from `#/components/schemas/app-permissions/members`. - public var members: Components.Schemas.app_hyphen_permissions.membersPayload? + public var members: Components.Schemas.AppPermissions.MembersPayload? /// The level of permission to grant the access token to manage access to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_administration`. - @frozen public enum organization_administrationPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationAdministrationPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage access to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_administration`. - public var organization_administration: Components.Schemas.app_hyphen_permissions.organization_administrationPayload? + public var organizationAdministration: Components.Schemas.AppPermissions.OrganizationAdministrationPayload? /// The level of permission to grant the access token for custom repository roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_roles`. - @frozen public enum organization_custom_rolesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomRolesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for custom repository roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_roles`. - public var organization_custom_roles: Components.Schemas.app_hyphen_permissions.organization_custom_rolesPayload? + public var organizationCustomRoles: Components.Schemas.AppPermissions.OrganizationCustomRolesPayload? /// The level of permission to grant the access token for custom organization roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_org_roles`. - @frozen public enum organization_custom_org_rolesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomOrgRolesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for custom organization roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_org_roles`. - public var organization_custom_org_roles: Components.Schemas.app_hyphen_permissions.organization_custom_org_rolesPayload? + public var organizationCustomOrgRoles: Components.Schemas.AppPermissions.OrganizationCustomOrgRolesPayload? /// The level of permission to grant the access token for custom property management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. - @frozen public enum organization_custom_propertiesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomPropertiesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -2551,85 +2560,85 @@ public enum Components { /// The level of permission to grant the access token for custom property management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. - public var organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? + public var organizationCustomProperties: Components.Schemas.AppPermissions.OrganizationCustomPropertiesPayload? /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. - @frozen public enum organization_copilot_seat_managementPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCopilotSeatManagementPayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. - public var organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? + public var organizationCopilotSeatManagement: Components.Schemas.AppPermissions.OrganizationCopilotSeatManagementPayload? /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_announcement_banners`. - @frozen public enum organization_announcement_bannersPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationAnnouncementBannersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_announcement_banners`. - public var organization_announcement_banners: Components.Schemas.app_hyphen_permissions.organization_announcement_bannersPayload? + public var organizationAnnouncementBanners: Components.Schemas.AppPermissions.OrganizationAnnouncementBannersPayload? /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_events`. - @frozen public enum organization_eventsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationEventsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" } /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_events`. - public var organization_events: Components.Schemas.app_hyphen_permissions.organization_eventsPayload? + public var organizationEvents: Components.Schemas.AppPermissions.OrganizationEventsPayload? /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_hooks`. - @frozen public enum organization_hooksPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationHooksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_hooks`. - public var organization_hooks: Components.Schemas.app_hyphen_permissions.organization_hooksPayload? + public var organizationHooks: Components.Schemas.AppPermissions.OrganizationHooksPayload? /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_tokens`. - @frozen public enum organization_personal_access_tokensPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPersonalAccessTokensPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_tokens`. - public var organization_personal_access_tokens: Components.Schemas.app_hyphen_permissions.organization_personal_access_tokensPayload? + public var organizationPersonalAccessTokens: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokensPayload? /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_token_requests`. - @frozen public enum organization_personal_access_token_requestsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPersonalAccessTokenRequestsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_token_requests`. - public var organization_personal_access_token_requests: Components.Schemas.app_hyphen_permissions.organization_personal_access_token_requestsPayload? + public var organizationPersonalAccessTokenRequests: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokenRequestsPayload? /// The level of permission to grant the access token for viewing an organization's plan. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. - @frozen public enum organization_planPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPlanPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" } /// The level of permission to grant the access token for viewing an organization's plan. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. - public var organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? + public var organizationPlan: Components.Schemas.AppPermissions.OrganizationPlanPayload? /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. - @frozen public enum organization_projectsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationProjectsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -2637,139 +2646,139 @@ public enum Components { /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. - public var organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? + public var organizationProjects: Components.Schemas.AppPermissions.OrganizationProjectsPayload? /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_packages`. - @frozen public enum organization_packagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPackagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_packages`. - public var organization_packages: Components.Schemas.app_hyphen_permissions.organization_packagesPayload? + public var organizationPackages: Components.Schemas.AppPermissions.OrganizationPackagesPayload? /// The level of permission to grant the access token to manage organization secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_secrets`. - @frozen public enum organization_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage organization secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_secrets`. - public var organization_secrets: Components.Schemas.app_hyphen_permissions.organization_secretsPayload? + public var organizationSecrets: Components.Schemas.AppPermissions.OrganizationSecretsPayload? /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_self_hosted_runners`. - @frozen public enum organization_self_hosted_runnersPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationSelfHostedRunnersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_self_hosted_runners`. - public var organization_self_hosted_runners: Components.Schemas.app_hyphen_permissions.organization_self_hosted_runnersPayload? + public var organizationSelfHostedRunners: Components.Schemas.AppPermissions.OrganizationSelfHostedRunnersPayload? /// The level of permission to grant the access token to view and manage users blocked by the organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_user_blocking`. - @frozen public enum organization_user_blockingPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationUserBlockingPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage users blocked by the organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_user_blocking`. - public var organization_user_blocking: Components.Schemas.app_hyphen_permissions.organization_user_blockingPayload? + public var organizationUserBlocking: Components.Schemas.AppPermissions.OrganizationUserBlockingPayload? /// The level of permission to grant the access token to manage team discussions and related comments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/team_discussions`. - @frozen public enum team_discussionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum TeamDiscussionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage team discussions and related comments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/team_discussions`. - public var team_discussions: Components.Schemas.app_hyphen_permissions.team_discussionsPayload? + public var teamDiscussions: Components.Schemas.AppPermissions.TeamDiscussionsPayload? /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/email_addresses`. - @frozen public enum email_addressesPayload: String, Codable, Hashable, Sendable { + @frozen public enum EmailAddressesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/email_addresses`. - public var email_addresses: Components.Schemas.app_hyphen_permissions.email_addressesPayload? + public var emailAddresses: Components.Schemas.AppPermissions.EmailAddressesPayload? /// The level of permission to grant the access token to manage the followers belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/followers`. - @frozen public enum followersPayload: String, Codable, Hashable, Sendable { + @frozen public enum FollowersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the followers belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/followers`. - public var followers: Components.Schemas.app_hyphen_permissions.followersPayload? + public var followers: Components.Schemas.AppPermissions.FollowersPayload? /// The level of permission to grant the access token to manage git SSH keys. /// /// - Remark: Generated from `#/components/schemas/app-permissions/git_ssh_keys`. - @frozen public enum git_ssh_keysPayload: String, Codable, Hashable, Sendable { + @frozen public enum GitSshKeysPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage git SSH keys. /// /// - Remark: Generated from `#/components/schemas/app-permissions/git_ssh_keys`. - public var git_ssh_keys: Components.Schemas.app_hyphen_permissions.git_ssh_keysPayload? + public var gitSshKeys: Components.Schemas.AppPermissions.GitSshKeysPayload? /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/gpg_keys`. - @frozen public enum gpg_keysPayload: String, Codable, Hashable, Sendable { + @frozen public enum GpgKeysPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/gpg_keys`. - public var gpg_keys: Components.Schemas.app_hyphen_permissions.gpg_keysPayload? + public var gpgKeys: Components.Schemas.AppPermissions.GpgKeysPayload? /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/interaction_limits`. - @frozen public enum interaction_limitsPayload: String, Codable, Hashable, Sendable { + @frozen public enum InteractionLimitsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/interaction_limits`. - public var interaction_limits: Components.Schemas.app_hyphen_permissions.interaction_limitsPayload? + public var interactionLimits: Components.Schemas.AppPermissions.InteractionLimitsPayload? /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/profile`. - @frozen public enum profilePayload: String, Codable, Hashable, Sendable { + @frozen public enum ProfilePayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/profile`. - public var profile: Components.Schemas.app_hyphen_permissions.profilePayload? + public var profile: Components.Schemas.AppPermissions.ProfilePayload? /// The level of permission to grant the access token to list and manage repositories a user is starring. /// /// - Remark: Generated from `#/components/schemas/app-permissions/starring`. - @frozen public enum starringPayload: String, Codable, Hashable, Sendable { + @frozen public enum StarringPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to list and manage repositories a user is starring. /// /// - Remark: Generated from `#/components/schemas/app-permissions/starring`. - public var starring: Components.Schemas.app_hyphen_permissions.starringPayload? - /// Creates a new `app_hyphen_permissions`. + public var starring: Components.Schemas.AppPermissions.StarringPayload? + /// Creates a new `AppPermissions`. /// /// - Parameters: /// - actions: The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. @@ -2777,145 +2786,145 @@ public enum Components { /// - checks: The level of permission to grant the access token for checks on code. /// - codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// - contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - /// - dependabot_secrets: The level of permission to grant the access token to manage Dependabot secrets. + /// - dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets. /// - deployments: The level of permission to grant the access token for deployments and deployment statuses. /// - environments: The level of permission to grant the access token for managing repository environments. /// - issues: The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// - metadata: The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// - packages: The level of permission to grant the access token for packages published to GitHub Packages. /// - pages: The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. - /// - pull_requests: The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. - /// - repository_custom_properties: The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. - /// - repository_hooks: The level of permission to grant the access token to manage the post-receive hooks for a repository. - /// - repository_projects: The level of permission to grant the access token to manage repository projects, columns, and cards. - /// - secret_scanning_alerts: The level of permission to grant the access token to view and manage secret scanning alerts. + /// - pullRequests: The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. + /// - repositoryCustomProperties: The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. + /// - repositoryHooks: The level of permission to grant the access token to manage the post-receive hooks for a repository. + /// - repositoryProjects: The level of permission to grant the access token to manage repository projects, columns, and cards. + /// - secretScanningAlerts: The level of permission to grant the access token to view and manage secret scanning alerts. /// - secrets: The level of permission to grant the access token to manage repository secrets. - /// - security_events: The level of permission to grant the access token to view and manage security events like code scanning alerts. - /// - single_file: The level of permission to grant the access token to manage just a single file. + /// - securityEvents: The level of permission to grant the access token to view and manage security events like code scanning alerts. + /// - singleFile: The level of permission to grant the access token to manage just a single file. /// - statuses: The level of permission to grant the access token for commit statuses. - /// - vulnerability_alerts: The level of permission to grant the access token to manage Dependabot alerts. + /// - vulnerabilityAlerts: The level of permission to grant the access token to manage Dependabot alerts. /// - workflows: The level of permission to grant the access token to update GitHub Actions workflow files. /// - members: The level of permission to grant the access token for organization teams and members. - /// - organization_administration: The level of permission to grant the access token to manage access to an organization. - /// - organization_custom_roles: The level of permission to grant the access token for custom repository roles management. - /// - organization_custom_org_roles: The level of permission to grant the access token for custom organization roles management. - /// - organization_custom_properties: The level of permission to grant the access token for custom property management. - /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. - /// - organization_announcement_banners: The level of permission to grant the access token to view and manage announcement banners for an organization. - /// - organization_events: The level of permission to grant the access token to view events triggered by an activity in an organization. - /// - organization_hooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. - /// - organization_personal_access_tokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. - /// - organization_personal_access_token_requests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. - /// - organization_plan: The level of permission to grant the access token for viewing an organization's plan. - /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). - /// - organization_packages: The level of permission to grant the access token for organization packages published to GitHub Packages. - /// - organization_secrets: The level of permission to grant the access token to manage organization secrets. - /// - organization_self_hosted_runners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. - /// - organization_user_blocking: The level of permission to grant the access token to view and manage users blocked by the organization. - /// - team_discussions: The level of permission to grant the access token to manage team discussions and related comments. - /// - email_addresses: The level of permission to grant the access token to manage the email addresses belonging to a user. + /// - organizationAdministration: The level of permission to grant the access token to manage access to an organization. + /// - organizationCustomRoles: The level of permission to grant the access token for custom repository roles management. + /// - organizationCustomOrgRoles: The level of permission to grant the access token for custom organization roles management. + /// - organizationCustomProperties: The level of permission to grant the access token for custom property management. + /// - organizationCopilotSeatManagement: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. + /// - organizationAnnouncementBanners: The level of permission to grant the access token to view and manage announcement banners for an organization. + /// - organizationEvents: The level of permission to grant the access token to view events triggered by an activity in an organization. + /// - organizationHooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. + /// - organizationPersonalAccessTokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. + /// - organizationPersonalAccessTokenRequests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. + /// - organizationPlan: The level of permission to grant the access token for viewing an organization's plan. + /// - organizationProjects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). + /// - organizationPackages: The level of permission to grant the access token for organization packages published to GitHub Packages. + /// - organizationSecrets: The level of permission to grant the access token to manage organization secrets. + /// - organizationSelfHostedRunners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. + /// - organizationUserBlocking: The level of permission to grant the access token to view and manage users blocked by the organization. + /// - teamDiscussions: The level of permission to grant the access token to manage team discussions and related comments. + /// - emailAddresses: The level of permission to grant the access token to manage the email addresses belonging to a user. /// - followers: The level of permission to grant the access token to manage the followers belonging to a user. - /// - git_ssh_keys: The level of permission to grant the access token to manage git SSH keys. - /// - gpg_keys: The level of permission to grant the access token to view and manage GPG keys belonging to a user. - /// - interaction_limits: The level of permission to grant the access token to view and manage interaction limits on a repository. + /// - gitSshKeys: The level of permission to grant the access token to manage git SSH keys. + /// - gpgKeys: The level of permission to grant the access token to view and manage GPG keys belonging to a user. + /// - interactionLimits: The level of permission to grant the access token to view and manage interaction limits on a repository. /// - profile: The level of permission to grant the access token to manage the profile settings belonging to a user. /// - starring: The level of permission to grant the access token to list and manage repositories a user is starring. public init( - actions: Components.Schemas.app_hyphen_permissions.actionsPayload? = nil, - administration: Components.Schemas.app_hyphen_permissions.administrationPayload? = nil, - checks: Components.Schemas.app_hyphen_permissions.checksPayload? = nil, - codespaces: Components.Schemas.app_hyphen_permissions.codespacesPayload? = nil, - contents: Components.Schemas.app_hyphen_permissions.contentsPayload? = nil, - dependabot_secrets: Components.Schemas.app_hyphen_permissions.dependabot_secretsPayload? = nil, - deployments: Components.Schemas.app_hyphen_permissions.deploymentsPayload? = nil, - environments: Components.Schemas.app_hyphen_permissions.environmentsPayload? = nil, - issues: Components.Schemas.app_hyphen_permissions.issuesPayload? = nil, - metadata: Components.Schemas.app_hyphen_permissions.metadataPayload? = nil, - packages: Components.Schemas.app_hyphen_permissions.packagesPayload? = nil, - pages: Components.Schemas.app_hyphen_permissions.pagesPayload? = nil, - pull_requests: Components.Schemas.app_hyphen_permissions.pull_requestsPayload? = nil, - repository_custom_properties: Components.Schemas.app_hyphen_permissions.repository_custom_propertiesPayload? = nil, - repository_hooks: Components.Schemas.app_hyphen_permissions.repository_hooksPayload? = nil, - repository_projects: Components.Schemas.app_hyphen_permissions.repository_projectsPayload? = nil, - secret_scanning_alerts: Components.Schemas.app_hyphen_permissions.secret_scanning_alertsPayload? = nil, - secrets: Components.Schemas.app_hyphen_permissions.secretsPayload? = nil, - security_events: Components.Schemas.app_hyphen_permissions.security_eventsPayload? = nil, - single_file: Components.Schemas.app_hyphen_permissions.single_filePayload? = nil, - statuses: Components.Schemas.app_hyphen_permissions.statusesPayload? = nil, - vulnerability_alerts: Components.Schemas.app_hyphen_permissions.vulnerability_alertsPayload? = nil, - workflows: Components.Schemas.app_hyphen_permissions.workflowsPayload? = nil, - members: Components.Schemas.app_hyphen_permissions.membersPayload? = nil, - organization_administration: Components.Schemas.app_hyphen_permissions.organization_administrationPayload? = nil, - organization_custom_roles: Components.Schemas.app_hyphen_permissions.organization_custom_rolesPayload? = nil, - organization_custom_org_roles: Components.Schemas.app_hyphen_permissions.organization_custom_org_rolesPayload? = nil, - organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? = nil, - organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? = nil, - organization_announcement_banners: Components.Schemas.app_hyphen_permissions.organization_announcement_bannersPayload? = nil, - organization_events: Components.Schemas.app_hyphen_permissions.organization_eventsPayload? = nil, - organization_hooks: Components.Schemas.app_hyphen_permissions.organization_hooksPayload? = nil, - organization_personal_access_tokens: Components.Schemas.app_hyphen_permissions.organization_personal_access_tokensPayload? = nil, - organization_personal_access_token_requests: Components.Schemas.app_hyphen_permissions.organization_personal_access_token_requestsPayload? = nil, - organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? = nil, - organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? = nil, - organization_packages: Components.Schemas.app_hyphen_permissions.organization_packagesPayload? = nil, - organization_secrets: Components.Schemas.app_hyphen_permissions.organization_secretsPayload? = nil, - organization_self_hosted_runners: Components.Schemas.app_hyphen_permissions.organization_self_hosted_runnersPayload? = nil, - organization_user_blocking: Components.Schemas.app_hyphen_permissions.organization_user_blockingPayload? = nil, - team_discussions: Components.Schemas.app_hyphen_permissions.team_discussionsPayload? = nil, - email_addresses: Components.Schemas.app_hyphen_permissions.email_addressesPayload? = nil, - followers: Components.Schemas.app_hyphen_permissions.followersPayload? = nil, - git_ssh_keys: Components.Schemas.app_hyphen_permissions.git_ssh_keysPayload? = nil, - gpg_keys: Components.Schemas.app_hyphen_permissions.gpg_keysPayload? = nil, - interaction_limits: Components.Schemas.app_hyphen_permissions.interaction_limitsPayload? = nil, - profile: Components.Schemas.app_hyphen_permissions.profilePayload? = nil, - starring: Components.Schemas.app_hyphen_permissions.starringPayload? = nil + actions: Components.Schemas.AppPermissions.ActionsPayload? = nil, + administration: Components.Schemas.AppPermissions.AdministrationPayload? = nil, + checks: Components.Schemas.AppPermissions.ChecksPayload? = nil, + codespaces: Components.Schemas.AppPermissions.CodespacesPayload? = nil, + contents: Components.Schemas.AppPermissions.ContentsPayload? = nil, + dependabotSecrets: Components.Schemas.AppPermissions.DependabotSecretsPayload? = nil, + deployments: Components.Schemas.AppPermissions.DeploymentsPayload? = nil, + environments: Components.Schemas.AppPermissions.EnvironmentsPayload? = nil, + issues: Components.Schemas.AppPermissions.IssuesPayload? = nil, + metadata: Components.Schemas.AppPermissions.MetadataPayload? = nil, + packages: Components.Schemas.AppPermissions.PackagesPayload? = nil, + pages: Components.Schemas.AppPermissions.PagesPayload? = nil, + pullRequests: Components.Schemas.AppPermissions.PullRequestsPayload? = nil, + repositoryCustomProperties: Components.Schemas.AppPermissions.RepositoryCustomPropertiesPayload? = nil, + repositoryHooks: Components.Schemas.AppPermissions.RepositoryHooksPayload? = nil, + repositoryProjects: Components.Schemas.AppPermissions.RepositoryProjectsPayload? = nil, + secretScanningAlerts: Components.Schemas.AppPermissions.SecretScanningAlertsPayload? = nil, + secrets: Components.Schemas.AppPermissions.SecretsPayload? = nil, + securityEvents: Components.Schemas.AppPermissions.SecurityEventsPayload? = nil, + singleFile: Components.Schemas.AppPermissions.SingleFilePayload? = nil, + statuses: Components.Schemas.AppPermissions.StatusesPayload? = nil, + vulnerabilityAlerts: Components.Schemas.AppPermissions.VulnerabilityAlertsPayload? = nil, + workflows: Components.Schemas.AppPermissions.WorkflowsPayload? = nil, + members: Components.Schemas.AppPermissions.MembersPayload? = nil, + organizationAdministration: Components.Schemas.AppPermissions.OrganizationAdministrationPayload? = nil, + organizationCustomRoles: Components.Schemas.AppPermissions.OrganizationCustomRolesPayload? = nil, + organizationCustomOrgRoles: Components.Schemas.AppPermissions.OrganizationCustomOrgRolesPayload? = nil, + organizationCustomProperties: Components.Schemas.AppPermissions.OrganizationCustomPropertiesPayload? = nil, + organizationCopilotSeatManagement: Components.Schemas.AppPermissions.OrganizationCopilotSeatManagementPayload? = nil, + organizationAnnouncementBanners: Components.Schemas.AppPermissions.OrganizationAnnouncementBannersPayload? = nil, + organizationEvents: Components.Schemas.AppPermissions.OrganizationEventsPayload? = nil, + organizationHooks: Components.Schemas.AppPermissions.OrganizationHooksPayload? = nil, + organizationPersonalAccessTokens: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokensPayload? = nil, + organizationPersonalAccessTokenRequests: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokenRequestsPayload? = nil, + organizationPlan: Components.Schemas.AppPermissions.OrganizationPlanPayload? = nil, + organizationProjects: Components.Schemas.AppPermissions.OrganizationProjectsPayload? = nil, + organizationPackages: Components.Schemas.AppPermissions.OrganizationPackagesPayload? = nil, + organizationSecrets: Components.Schemas.AppPermissions.OrganizationSecretsPayload? = nil, + organizationSelfHostedRunners: Components.Schemas.AppPermissions.OrganizationSelfHostedRunnersPayload? = nil, + organizationUserBlocking: Components.Schemas.AppPermissions.OrganizationUserBlockingPayload? = nil, + teamDiscussions: Components.Schemas.AppPermissions.TeamDiscussionsPayload? = nil, + emailAddresses: Components.Schemas.AppPermissions.EmailAddressesPayload? = nil, + followers: Components.Schemas.AppPermissions.FollowersPayload? = nil, + gitSshKeys: Components.Schemas.AppPermissions.GitSshKeysPayload? = nil, + gpgKeys: Components.Schemas.AppPermissions.GpgKeysPayload? = nil, + interactionLimits: Components.Schemas.AppPermissions.InteractionLimitsPayload? = nil, + profile: Components.Schemas.AppPermissions.ProfilePayload? = nil, + starring: Components.Schemas.AppPermissions.StarringPayload? = nil ) { self.actions = actions self.administration = administration self.checks = checks self.codespaces = codespaces self.contents = contents - self.dependabot_secrets = dependabot_secrets + self.dependabotSecrets = dependabotSecrets self.deployments = deployments self.environments = environments self.issues = issues self.metadata = metadata self.packages = packages self.pages = pages - self.pull_requests = pull_requests - self.repository_custom_properties = repository_custom_properties - self.repository_hooks = repository_hooks - self.repository_projects = repository_projects - self.secret_scanning_alerts = secret_scanning_alerts + self.pullRequests = pullRequests + self.repositoryCustomProperties = repositoryCustomProperties + self.repositoryHooks = repositoryHooks + self.repositoryProjects = repositoryProjects + self.secretScanningAlerts = secretScanningAlerts self.secrets = secrets - self.security_events = security_events - self.single_file = single_file + self.securityEvents = securityEvents + self.singleFile = singleFile self.statuses = statuses - self.vulnerability_alerts = vulnerability_alerts + self.vulnerabilityAlerts = vulnerabilityAlerts self.workflows = workflows self.members = members - self.organization_administration = organization_administration - self.organization_custom_roles = organization_custom_roles - self.organization_custom_org_roles = organization_custom_org_roles - self.organization_custom_properties = organization_custom_properties - self.organization_copilot_seat_management = organization_copilot_seat_management - self.organization_announcement_banners = organization_announcement_banners - self.organization_events = organization_events - self.organization_hooks = organization_hooks - self.organization_personal_access_tokens = organization_personal_access_tokens - self.organization_personal_access_token_requests = organization_personal_access_token_requests - self.organization_plan = organization_plan - self.organization_projects = organization_projects - self.organization_packages = organization_packages - self.organization_secrets = organization_secrets - self.organization_self_hosted_runners = organization_self_hosted_runners - self.organization_user_blocking = organization_user_blocking - self.team_discussions = team_discussions - self.email_addresses = email_addresses + self.organizationAdministration = organizationAdministration + self.organizationCustomRoles = organizationCustomRoles + self.organizationCustomOrgRoles = organizationCustomOrgRoles + self.organizationCustomProperties = organizationCustomProperties + self.organizationCopilotSeatManagement = organizationCopilotSeatManagement + self.organizationAnnouncementBanners = organizationAnnouncementBanners + self.organizationEvents = organizationEvents + self.organizationHooks = organizationHooks + self.organizationPersonalAccessTokens = organizationPersonalAccessTokens + self.organizationPersonalAccessTokenRequests = organizationPersonalAccessTokenRequests + self.organizationPlan = organizationPlan + self.organizationProjects = organizationProjects + self.organizationPackages = organizationPackages + self.organizationSecrets = organizationSecrets + self.organizationSelfHostedRunners = organizationSelfHostedRunners + self.organizationUserBlocking = organizationUserBlocking + self.teamDiscussions = teamDiscussions + self.emailAddresses = emailAddresses self.followers = followers - self.git_ssh_keys = git_ssh_keys - self.gpg_keys = gpg_keys - self.interaction_limits = interaction_limits + self.gitSshKeys = gitSshKeys + self.gpgKeys = gpgKeys + self.interactionLimits = interactionLimits self.profile = profile self.starring = starring } @@ -2925,47 +2934,47 @@ public enum Components { case checks case codespaces case contents - case dependabot_secrets + case dependabotSecrets = "dependabot_secrets" case deployments case environments case issues case metadata case packages case pages - case pull_requests - case repository_custom_properties - case repository_hooks - case repository_projects - case secret_scanning_alerts + case pullRequests = "pull_requests" + case repositoryCustomProperties = "repository_custom_properties" + case repositoryHooks = "repository_hooks" + case repositoryProjects = "repository_projects" + case secretScanningAlerts = "secret_scanning_alerts" case secrets - case security_events - case single_file + case securityEvents = "security_events" + case singleFile = "single_file" case statuses - case vulnerability_alerts + case vulnerabilityAlerts = "vulnerability_alerts" case workflows case members - case organization_administration - case organization_custom_roles - case organization_custom_org_roles - case organization_custom_properties - case organization_copilot_seat_management - case organization_announcement_banners - case organization_events - case organization_hooks - case organization_personal_access_tokens - case organization_personal_access_token_requests - case organization_plan - case organization_projects - case organization_packages - case organization_secrets - case organization_self_hosted_runners - case organization_user_blocking - case team_discussions - case email_addresses + case organizationAdministration = "organization_administration" + case organizationCustomRoles = "organization_custom_roles" + case organizationCustomOrgRoles = "organization_custom_org_roles" + case organizationCustomProperties = "organization_custom_properties" + case organizationCopilotSeatManagement = "organization_copilot_seat_management" + case organizationAnnouncementBanners = "organization_announcement_banners" + case organizationEvents = "organization_events" + case organizationHooks = "organization_hooks" + case organizationPersonalAccessTokens = "organization_personal_access_tokens" + case organizationPersonalAccessTokenRequests = "organization_personal_access_token_requests" + case organizationPlan = "organization_plan" + case organizationProjects = "organization_projects" + case organizationPackages = "organization_packages" + case organizationSecrets = "organization_secrets" + case organizationSelfHostedRunners = "organization_self_hosted_runners" + case organizationUserBlocking = "organization_user_blocking" + case teamDiscussions = "team_discussions" + case emailAddresses = "email_addresses" case followers - case git_ssh_keys - case gpg_keys - case interaction_limits + case gitSshKeys = "git_ssh_keys" + case gpgKeys = "gpg_keys" + case interactionLimits = "interaction_limits" case profile case starring } @@ -2973,7 +2982,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -2983,160 +2992,160 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Installation /// /// - Remark: Generated from `#/components/schemas/installation`. - public struct installation: Codable, Hashable, Sendable { + public struct Installation: Codable, Hashable, Sendable { /// The ID of the installation. /// /// - Remark: Generated from `#/components/schemas/installation/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/installation/account`. - public struct accountPayload: Codable, Hashable, Sendable { + public struct AccountPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/installation/account/value1`. - public var value1: Components.Schemas.simple_hyphen_user? + public var value1: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/installation/account/value2`. - public var value2: Components.Schemas.enterprise? - /// Creates a new `accountPayload`. + public var value2: Components.Schemas.Enterprise? + /// Creates a new `AccountPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.simple_hyphen_user? = nil, - value2: Components.Schemas.enterprise? = nil + value1: Components.Schemas.SimpleUser? = nil, + value2: Components.Schemas.Enterprise? = nil ) { self.value1 = value1 self.value2 = value2 @@ -3144,19 +3153,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -3164,152 +3173,152 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/installation/account`. - public var account: Components.Schemas.installation.accountPayload? + public var account: Components.Schemas.Installation.AccountPayload? /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/installation/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case selected = "selected" } /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/installation/repository_selection`. - public var repository_selection: Components.Schemas.installation.repository_selectionPayload + public var repositorySelection: Components.Schemas.Installation.RepositorySelectionPayload /// - Remark: Generated from `#/components/schemas/installation/access_tokens_url`. - public var access_tokens_url: Swift.String + public var accessTokensUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/app_id`. - public var app_id: Swift.Int + public var appId: Swift.Int /// The ID of the user or organization this token is being scoped to. /// /// - Remark: Generated from `#/components/schemas/installation/target_id`. - public var target_id: Swift.Int + public var targetId: Swift.Int /// - Remark: Generated from `#/components/schemas/installation/target_type`. - public var target_type: Swift.String + public var targetType: Swift.String /// - Remark: Generated from `#/components/schemas/installation/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions + public var permissions: Components.Schemas.AppPermissions /// - Remark: Generated from `#/components/schemas/installation/events`. public var events: [Swift.String] /// - Remark: Generated from `#/components/schemas/installation/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/installation/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/installation/single_file_name`. - public var single_file_name: Swift.String? + public var singleFileName: Swift.String? /// - Remark: Generated from `#/components/schemas/installation/has_multiple_single_files`. - public var has_multiple_single_files: Swift.Bool? + public var hasMultipleSingleFiles: Swift.Bool? /// - Remark: Generated from `#/components/schemas/installation/single_file_paths`. - public var single_file_paths: [Swift.String]? + public var singleFilePaths: [Swift.String]? /// - Remark: Generated from `#/components/schemas/installation/app_slug`. - public var app_slug: Swift.String + public var appSlug: Swift.String /// - Remark: Generated from `#/components/schemas/installation/suspended_by`. - public var suspended_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var suspendedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/installation/suspended_at`. - public var suspended_at: Foundation.Date? + public var suspendedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/installation/contact_email`. - public var contact_email: Swift.String? - /// Creates a new `installation`. + public var contactEmail: Swift.String? + /// Creates a new `Installation`. /// /// - Parameters: /// - id: The ID of the installation. /// - account: - /// - repository_selection: Describe whether all repositories have been selected or there's a selection involved - /// - access_tokens_url: - /// - repositories_url: - /// - html_url: - /// - app_id: - /// - target_id: The ID of the user or organization this token is being scoped to. - /// - target_type: + /// - repositorySelection: Describe whether all repositories have been selected or there's a selection involved + /// - accessTokensUrl: + /// - repositoriesUrl: + /// - htmlUrl: + /// - appId: + /// - targetId: The ID of the user or organization this token is being scoped to. + /// - targetType: /// - permissions: /// - events: - /// - created_at: - /// - updated_at: - /// - single_file_name: - /// - has_multiple_single_files: - /// - single_file_paths: - /// - app_slug: - /// - suspended_by: - /// - suspended_at: - /// - contact_email: + /// - createdAt: + /// - updatedAt: + /// - singleFileName: + /// - hasMultipleSingleFiles: + /// - singleFilePaths: + /// - appSlug: + /// - suspendedBy: + /// - suspendedAt: + /// - contactEmail: public init( id: Swift.Int, - account: Components.Schemas.installation.accountPayload? = nil, - repository_selection: Components.Schemas.installation.repository_selectionPayload, - access_tokens_url: Swift.String, - repositories_url: Swift.String, - html_url: Swift.String, - app_id: Swift.Int, - target_id: Swift.Int, - target_type: Swift.String, - permissions: Components.Schemas.app_hyphen_permissions, + account: Components.Schemas.Installation.AccountPayload? = nil, + repositorySelection: Components.Schemas.Installation.RepositorySelectionPayload, + accessTokensUrl: Swift.String, + repositoriesUrl: Swift.String, + htmlUrl: Swift.String, + appId: Swift.Int, + targetId: Swift.Int, + targetType: Swift.String, + permissions: Components.Schemas.AppPermissions, events: [Swift.String], - created_at: Foundation.Date, - updated_at: Foundation.Date, - single_file_name: Swift.String? = nil, - has_multiple_single_files: Swift.Bool? = nil, - single_file_paths: [Swift.String]? = nil, - app_slug: Swift.String, - suspended_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - suspended_at: Foundation.Date? = nil, - contact_email: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + singleFileName: Swift.String? = nil, + hasMultipleSingleFiles: Swift.Bool? = nil, + singleFilePaths: [Swift.String]? = nil, + appSlug: Swift.String, + suspendedBy: Components.Schemas.NullableSimpleUser? = nil, + suspendedAt: Foundation.Date? = nil, + contactEmail: Swift.String? = nil ) { self.id = id self.account = account - self.repository_selection = repository_selection - self.access_tokens_url = access_tokens_url - self.repositories_url = repositories_url - self.html_url = html_url - self.app_id = app_id - self.target_id = target_id - self.target_type = target_type + self.repositorySelection = repositorySelection + self.accessTokensUrl = accessTokensUrl + self.repositoriesUrl = repositoriesUrl + self.htmlUrl = htmlUrl + self.appId = appId + self.targetId = targetId + self.targetType = targetType self.permissions = permissions self.events = events - self.created_at = created_at - self.updated_at = updated_at - self.single_file_name = single_file_name - self.has_multiple_single_files = has_multiple_single_files - self.single_file_paths = single_file_paths - self.app_slug = app_slug - self.suspended_by = suspended_by - self.suspended_at = suspended_at - self.contact_email = contact_email + self.createdAt = createdAt + self.updatedAt = updatedAt + self.singleFileName = singleFileName + self.hasMultipleSingleFiles = hasMultipleSingleFiles + self.singleFilePaths = singleFilePaths + self.appSlug = appSlug + self.suspendedBy = suspendedBy + self.suspendedAt = suspendedAt + self.contactEmail = contactEmail } public enum CodingKeys: String, CodingKey { case id case account - case repository_selection - case access_tokens_url - case repositories_url - case html_url - case app_id - case target_id - case target_type + case repositorySelection = "repository_selection" + case accessTokensUrl = "access_tokens_url" + case repositoriesUrl = "repositories_url" + case htmlUrl = "html_url" + case appId = "app_id" + case targetId = "target_id" + case targetType = "target_type" case permissions case events - case created_at - case updated_at - case single_file_name - case has_multiple_single_files - case single_file_paths - case app_slug - case suspended_by - case suspended_at - case contact_email + case createdAt = "created_at" + case updatedAt = "updated_at" + case singleFileName = "single_file_name" + case hasMultipleSingleFiles = "has_multiple_single_files" + case singleFilePaths = "single_file_paths" + case appSlug = "app_slug" + case suspendedBy = "suspended_by" + case suspendedAt = "suspended_at" + case contactEmail = "contact_email" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -3317,66 +3326,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -3387,7 +3396,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -3417,15 +3426,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -3433,97 +3442,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -3531,38 +3540,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -3576,47 +3585,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -3624,7 +3633,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -3632,10 +3641,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -3644,16 +3653,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -3661,7 +3670,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -3669,10 +3678,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -3681,552 +3690,552 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Authentication token for a GitHub App installed on a user or org. /// /// - Remark: Generated from `#/components/schemas/installation-token`. - public struct installation_hyphen_token: Codable, Hashable, Sendable { + public struct InstallationToken: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/installation-token/token`. public var token: Swift.String /// - Remark: Generated from `#/components/schemas/installation-token/expires_at`. - public var expires_at: Swift.String + public var expiresAt: Swift.String /// - Remark: Generated from `#/components/schemas/installation-token/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions? + public var permissions: Components.Schemas.AppPermissions? /// - Remark: Generated from `#/components/schemas/installation-token/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case selected = "selected" } /// - Remark: Generated from `#/components/schemas/installation-token/repository_selection`. - public var repository_selection: Components.Schemas.installation_hyphen_token.repository_selectionPayload? + public var repositorySelection: Components.Schemas.InstallationToken.RepositorySelectionPayload? /// - Remark: Generated from `#/components/schemas/installation-token/repositories`. - public var repositories: [Components.Schemas.repository]? + public var repositories: [Components.Schemas.Repository]? /// - Remark: Generated from `#/components/schemas/installation-token/single_file`. - public var single_file: Swift.String? + public var singleFile: Swift.String? /// - Remark: Generated from `#/components/schemas/installation-token/has_multiple_single_files`. - public var has_multiple_single_files: Swift.Bool? + public var hasMultipleSingleFiles: Swift.Bool? /// - Remark: Generated from `#/components/schemas/installation-token/single_file_paths`. - public var single_file_paths: [Swift.String]? - /// Creates a new `installation_hyphen_token`. + public var singleFilePaths: [Swift.String]? + /// Creates a new `InstallationToken`. /// /// - Parameters: /// - token: - /// - expires_at: + /// - expiresAt: /// - permissions: - /// - repository_selection: + /// - repositorySelection: /// - repositories: - /// - single_file: - /// - has_multiple_single_files: - /// - single_file_paths: + /// - singleFile: + /// - hasMultipleSingleFiles: + /// - singleFilePaths: public init( token: Swift.String, - expires_at: Swift.String, - permissions: Components.Schemas.app_hyphen_permissions? = nil, - repository_selection: Components.Schemas.installation_hyphen_token.repository_selectionPayload? = nil, - repositories: [Components.Schemas.repository]? = nil, - single_file: Swift.String? = nil, - has_multiple_single_files: Swift.Bool? = nil, - single_file_paths: [Swift.String]? = nil + expiresAt: Swift.String, + permissions: Components.Schemas.AppPermissions? = nil, + repositorySelection: Components.Schemas.InstallationToken.RepositorySelectionPayload? = nil, + repositories: [Components.Schemas.Repository]? = nil, + singleFile: Swift.String? = nil, + hasMultipleSingleFiles: Swift.Bool? = nil, + singleFilePaths: [Swift.String]? = nil ) { self.token = token - self.expires_at = expires_at + self.expiresAt = expiresAt self.permissions = permissions - self.repository_selection = repository_selection + self.repositorySelection = repositorySelection self.repositories = repositories - self.single_file = single_file - self.has_multiple_single_files = has_multiple_single_files - self.single_file_paths = single_file_paths + self.singleFile = singleFile + self.hasMultipleSingleFiles = hasMultipleSingleFiles + self.singleFilePaths = singleFilePaths } public enum CodingKeys: String, CodingKey { case token - case expires_at + case expiresAt = "expires_at" case permissions - case repository_selection + case repositorySelection = "repository_selection" case repositories - case single_file - case has_multiple_single_files - case single_file_paths + case singleFile = "single_file" + case hasMultipleSingleFiles = "has_multiple_single_files" + case singleFilePaths = "single_file_paths" } } /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation`. - public struct nullable_hyphen_scoped_hyphen_installation: Codable, Hashable, Sendable { + public struct NullableScopedInstallation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions + public var permissions: Components.Schemas.AppPermissions /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case selected = "selected" } /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/repository_selection`. - public var repository_selection: Components.Schemas.nullable_hyphen_scoped_hyphen_installation.repository_selectionPayload + public var repositorySelection: Components.Schemas.NullableScopedInstallation.RepositorySelectionPayload /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/single_file_name`. - public var single_file_name: Swift.String? + public var singleFileName: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/has_multiple_single_files`. - public var has_multiple_single_files: Swift.Bool? + public var hasMultipleSingleFiles: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/single_file_paths`. - public var single_file_paths: [Swift.String]? + public var singleFilePaths: [Swift.String]? /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-scoped-installation/account`. - public var account: Components.Schemas.simple_hyphen_user - /// Creates a new `nullable_hyphen_scoped_hyphen_installation`. + public var account: Components.Schemas.SimpleUser + /// Creates a new `NullableScopedInstallation`. /// /// - Parameters: /// - permissions: - /// - repository_selection: Describe whether all repositories have been selected or there's a selection involved - /// - single_file_name: - /// - has_multiple_single_files: - /// - single_file_paths: - /// - repositories_url: + /// - repositorySelection: Describe whether all repositories have been selected or there's a selection involved + /// - singleFileName: + /// - hasMultipleSingleFiles: + /// - singleFilePaths: + /// - repositoriesUrl: /// - account: public init( - permissions: Components.Schemas.app_hyphen_permissions, - repository_selection: Components.Schemas.nullable_hyphen_scoped_hyphen_installation.repository_selectionPayload, - single_file_name: Swift.String? = nil, - has_multiple_single_files: Swift.Bool? = nil, - single_file_paths: [Swift.String]? = nil, - repositories_url: Swift.String, - account: Components.Schemas.simple_hyphen_user + permissions: Components.Schemas.AppPermissions, + repositorySelection: Components.Schemas.NullableScopedInstallation.RepositorySelectionPayload, + singleFileName: Swift.String? = nil, + hasMultipleSingleFiles: Swift.Bool? = nil, + singleFilePaths: [Swift.String]? = nil, + repositoriesUrl: Swift.String, + account: Components.Schemas.SimpleUser ) { self.permissions = permissions - self.repository_selection = repository_selection - self.single_file_name = single_file_name - self.has_multiple_single_files = has_multiple_single_files - self.single_file_paths = single_file_paths - self.repositories_url = repositories_url + self.repositorySelection = repositorySelection + self.singleFileName = singleFileName + self.hasMultipleSingleFiles = hasMultipleSingleFiles + self.singleFilePaths = singleFilePaths + self.repositoriesUrl = repositoriesUrl self.account = account } public enum CodingKeys: String, CodingKey { case permissions - case repository_selection - case single_file_name - case has_multiple_single_files - case single_file_paths - case repositories_url + case repositorySelection = "repository_selection" + case singleFileName = "single_file_name" + case hasMultipleSingleFiles = "has_multiple_single_files" + case singleFilePaths = "single_file_paths" + case repositoriesUrl = "repositories_url" case account } } /// The authorization for an OAuth app, GitHub App, or a Personal Access Token. /// /// - Remark: Generated from `#/components/schemas/authorization`. - public struct authorization: Codable, Hashable, Sendable { + public struct Authorization: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/authorization/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/authorization/url`. @@ -4238,133 +4247,133 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/authorization/token`. public var token: Swift.String /// - Remark: Generated from `#/components/schemas/authorization/token_last_eight`. - public var token_last_eight: Swift.String? + public var tokenLastEight: Swift.String? /// - Remark: Generated from `#/components/schemas/authorization/hashed_token`. - public var hashed_token: Swift.String? + public var hashedToken: Swift.String? /// - Remark: Generated from `#/components/schemas/authorization/app`. - public struct appPayload: Codable, Hashable, Sendable { + public struct AppPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/authorization/app/client_id`. - public var client_id: Swift.String + public var clientId: Swift.String /// - Remark: Generated from `#/components/schemas/authorization/app/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/authorization/app/url`. public var url: Swift.String - /// Creates a new `appPayload`. + /// Creates a new `AppPayload`. /// /// - Parameters: - /// - client_id: + /// - clientId: /// - name: /// - url: public init( - client_id: Swift.String, + clientId: Swift.String, name: Swift.String, url: Swift.String ) { - self.client_id = client_id + self.clientId = clientId self.name = name self.url = url } public enum CodingKeys: String, CodingKey { - case client_id + case clientId = "client_id" case name case url } } /// - Remark: Generated from `#/components/schemas/authorization/app`. - public var app: Components.Schemas.authorization.appPayload + public var app: Components.Schemas.Authorization.AppPayload /// - Remark: Generated from `#/components/schemas/authorization/note`. public var note: Swift.String? /// - Remark: Generated from `#/components/schemas/authorization/note_url`. - public var note_url: Swift.String? + public var noteUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/authorization/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/authorization/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/authorization/fingerprint`. public var fingerprint: Swift.String? /// - Remark: Generated from `#/components/schemas/authorization/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/authorization/installation`. - public var installation: Components.Schemas.nullable_hyphen_scoped_hyphen_installation? + public var installation: Components.Schemas.NullableScopedInstallation? /// - Remark: Generated from `#/components/schemas/authorization/expires_at`. - public var expires_at: Foundation.Date? - /// Creates a new `authorization`. + public var expiresAt: Foundation.Date? + /// Creates a new `Authorization`. /// /// - Parameters: /// - id: /// - url: /// - scopes: A list of scopes that this authorization is in. /// - token: - /// - token_last_eight: - /// - hashed_token: + /// - tokenLastEight: + /// - hashedToken: /// - app: /// - note: - /// - note_url: - /// - updated_at: - /// - created_at: + /// - noteUrl: + /// - updatedAt: + /// - createdAt: /// - fingerprint: /// - user: /// - installation: - /// - expires_at: + /// - expiresAt: public init( id: Swift.Int64, url: Swift.String, scopes: [Swift.String]? = nil, token: Swift.String, - token_last_eight: Swift.String? = nil, - hashed_token: Swift.String? = nil, - app: Components.Schemas.authorization.appPayload, + tokenLastEight: Swift.String? = nil, + hashedToken: Swift.String? = nil, + app: Components.Schemas.Authorization.AppPayload, note: Swift.String? = nil, - note_url: Swift.String? = nil, - updated_at: Foundation.Date, - created_at: Foundation.Date, + noteUrl: Swift.String? = nil, + updatedAt: Foundation.Date, + createdAt: Foundation.Date, fingerprint: Swift.String? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - installation: Components.Schemas.nullable_hyphen_scoped_hyphen_installation? = nil, - expires_at: Foundation.Date? = nil + user: Components.Schemas.NullableSimpleUser? = nil, + installation: Components.Schemas.NullableScopedInstallation? = nil, + expiresAt: Foundation.Date? = nil ) { self.id = id self.url = url self.scopes = scopes self.token = token - self.token_last_eight = token_last_eight - self.hashed_token = hashed_token + self.tokenLastEight = tokenLastEight + self.hashedToken = hashedToken self.app = app self.note = note - self.note_url = note_url - self.updated_at = updated_at - self.created_at = created_at + self.noteUrl = noteUrl + self.updatedAt = updatedAt + self.createdAt = createdAt self.fingerprint = fingerprint self.user = user self.installation = installation - self.expires_at = expires_at + self.expiresAt = expiresAt } public enum CodingKeys: String, CodingKey { case id case url case scopes case token - case token_last_eight - case hashed_token + case tokenLastEight = "token_last_eight" + case hashedToken = "hashed_token" case app case note - case note_url - case updated_at - case created_at + case noteUrl = "note_url" + case updatedAt = "updated_at" + case createdAt = "created_at" case fingerprint case user case installation - case expires_at + case expiresAt = "expires_at" } } /// Marketplace Listing Plan /// /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan`. - public struct marketplace_hyphen_listing_hyphen_plan: Codable, Hashable, Sendable { + public struct MarketplaceListingPlan: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/accounts_url`. - public var accounts_url: Swift.String + public var accountsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/number`. @@ -4374,82 +4383,82 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/description`. public var description: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/monthly_price_in_cents`. - public var monthly_price_in_cents: Swift.Int + public var monthlyPriceInCents: Swift.Int /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/yearly_price_in_cents`. - public var yearly_price_in_cents: Swift.Int + public var yearlyPriceInCents: Swift.Int /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/price_model`. - @frozen public enum price_modelPayload: String, Codable, Hashable, Sendable { - case FREE = "FREE" - case FLAT_RATE = "FLAT_RATE" - case PER_UNIT = "PER_UNIT" + @frozen public enum PriceModelPayload: String, Codable, Hashable, Sendable, CaseIterable { + case free = "FREE" + case flatRate = "FLAT_RATE" + case perUnit = "PER_UNIT" } /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/price_model`. - public var price_model: Components.Schemas.marketplace_hyphen_listing_hyphen_plan.price_modelPayload + public var priceModel: Components.Schemas.MarketplaceListingPlan.PriceModelPayload /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/has_free_trial`. - public var has_free_trial: Swift.Bool + public var hasFreeTrial: Swift.Bool /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/unit_name`. - public var unit_name: Swift.String? + public var unitName: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-listing-plan/bullets`. public var bullets: [Swift.String] - /// Creates a new `marketplace_hyphen_listing_hyphen_plan`. + /// Creates a new `MarketplaceListingPlan`. /// /// - Parameters: /// - url: - /// - accounts_url: + /// - accountsUrl: /// - id: /// - number: /// - name: /// - description: - /// - monthly_price_in_cents: - /// - yearly_price_in_cents: - /// - price_model: - /// - has_free_trial: - /// - unit_name: + /// - monthlyPriceInCents: + /// - yearlyPriceInCents: + /// - priceModel: + /// - hasFreeTrial: + /// - unitName: /// - state: /// - bullets: public init( url: Swift.String, - accounts_url: Swift.String, + accountsUrl: Swift.String, id: Swift.Int, number: Swift.Int, name: Swift.String, description: Swift.String, - monthly_price_in_cents: Swift.Int, - yearly_price_in_cents: Swift.Int, - price_model: Components.Schemas.marketplace_hyphen_listing_hyphen_plan.price_modelPayload, - has_free_trial: Swift.Bool, - unit_name: Swift.String? = nil, + monthlyPriceInCents: Swift.Int, + yearlyPriceInCents: Swift.Int, + priceModel: Components.Schemas.MarketplaceListingPlan.PriceModelPayload, + hasFreeTrial: Swift.Bool, + unitName: Swift.String? = nil, state: Swift.String, bullets: [Swift.String] ) { self.url = url - self.accounts_url = accounts_url + self.accountsUrl = accountsUrl self.id = id self.number = number self.name = name self.description = description - self.monthly_price_in_cents = monthly_price_in_cents - self.yearly_price_in_cents = yearly_price_in_cents - self.price_model = price_model - self.has_free_trial = has_free_trial - self.unit_name = unit_name + self.monthlyPriceInCents = monthlyPriceInCents + self.yearlyPriceInCents = yearlyPriceInCents + self.priceModel = priceModel + self.hasFreeTrial = hasFreeTrial + self.unitName = unitName self.state = state self.bullets = bullets } public enum CodingKeys: String, CodingKey { case url - case accounts_url + case accountsUrl = "accounts_url" case id case number case name case description - case monthly_price_in_cents - case yearly_price_in_cents - case price_model - case has_free_trial - case unit_name + case monthlyPriceInCents = "monthly_price_in_cents" + case yearlyPriceInCents = "yearly_price_in_cents" + case priceModel = "price_model" + case hasFreeTrial = "has_free_trial" + case unitName = "unit_name" case state case bullets } @@ -4457,7 +4466,7 @@ public enum Components { /// Marketplace Purchase /// /// - Remark: Generated from `#/components/schemas/marketplace-purchase`. - public struct marketplace_hyphen_purchase: Codable, Hashable, Sendable { + public struct MarketplacePurchase: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/marketplace-purchase/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-purchase/type`. @@ -4467,156 +4476,156 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/marketplace-purchase/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-purchase/organization_billing_email`. - public var organization_billing_email: Swift.String? + public var organizationBillingEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change`. - public struct marketplace_pending_changePayload: Codable, Hashable, Sendable { + public struct MarketplacePendingChangePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change/is_installed`. - public var is_installed: Swift.Bool? + public var isInstalled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change/effective_date`. - public var effective_date: Swift.String? + public var effectiveDate: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change/unit_count`. - public var unit_count: Swift.Int? + public var unitCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change/plan`. - public var plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan? - /// Creates a new `marketplace_pending_changePayload`. + public var plan: Components.Schemas.MarketplaceListingPlan? + /// Creates a new `MarketplacePendingChangePayload`. /// /// - Parameters: - /// - is_installed: - /// - effective_date: - /// - unit_count: + /// - isInstalled: + /// - effectiveDate: + /// - unitCount: /// - id: /// - plan: public init( - is_installed: Swift.Bool? = nil, - effective_date: Swift.String? = nil, - unit_count: Swift.Int? = nil, + isInstalled: Swift.Bool? = nil, + effectiveDate: Swift.String? = nil, + unitCount: Swift.Int? = nil, id: Swift.Int? = nil, - plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan? = nil + plan: Components.Schemas.MarketplaceListingPlan? = nil ) { - self.is_installed = is_installed - self.effective_date = effective_date - self.unit_count = unit_count + self.isInstalled = isInstalled + self.effectiveDate = effectiveDate + self.unitCount = unitCount self.id = id self.plan = plan } public enum CodingKeys: String, CodingKey { - case is_installed - case effective_date - case unit_count + case isInstalled = "is_installed" + case effectiveDate = "effective_date" + case unitCount = "unit_count" case id case plan } } /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_pending_change`. - public var marketplace_pending_change: Components.Schemas.marketplace_hyphen_purchase.marketplace_pending_changePayload? + public var marketplacePendingChange: Components.Schemas.MarketplacePurchase.MarketplacePendingChangePayload? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase`. - public struct marketplace_purchasePayload: Codable, Hashable, Sendable { + public struct MarketplacePurchasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/billing_cycle`. - public var billing_cycle: Swift.String? + public var billingCycle: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/next_billing_date`. - public var next_billing_date: Swift.String? + public var nextBillingDate: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/is_installed`. - public var is_installed: Swift.Bool? + public var isInstalled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/unit_count`. - public var unit_count: Swift.Int? + public var unitCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/on_free_trial`. - public var on_free_trial: Swift.Bool? + public var onFreeTrial: Swift.Bool? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/free_trial_ends_on`. - public var free_trial_ends_on: Swift.String? + public var freeTrialEndsOn: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/updated_at`. - public var updated_at: Swift.String? + public var updatedAt: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase/plan`. - public var plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan? - /// Creates a new `marketplace_purchasePayload`. + public var plan: Components.Schemas.MarketplaceListingPlan? + /// Creates a new `MarketplacePurchasePayload`. /// /// - Parameters: - /// - billing_cycle: - /// - next_billing_date: - /// - is_installed: - /// - unit_count: - /// - on_free_trial: - /// - free_trial_ends_on: - /// - updated_at: + /// - billingCycle: + /// - nextBillingDate: + /// - isInstalled: + /// - unitCount: + /// - onFreeTrial: + /// - freeTrialEndsOn: + /// - updatedAt: /// - plan: public init( - billing_cycle: Swift.String? = nil, - next_billing_date: Swift.String? = nil, - is_installed: Swift.Bool? = nil, - unit_count: Swift.Int? = nil, - on_free_trial: Swift.Bool? = nil, - free_trial_ends_on: Swift.String? = nil, - updated_at: Swift.String? = nil, - plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan? = nil + billingCycle: Swift.String? = nil, + nextBillingDate: Swift.String? = nil, + isInstalled: Swift.Bool? = nil, + unitCount: Swift.Int? = nil, + onFreeTrial: Swift.Bool? = nil, + freeTrialEndsOn: Swift.String? = nil, + updatedAt: Swift.String? = nil, + plan: Components.Schemas.MarketplaceListingPlan? = nil ) { - self.billing_cycle = billing_cycle - self.next_billing_date = next_billing_date - self.is_installed = is_installed - self.unit_count = unit_count - self.on_free_trial = on_free_trial - self.free_trial_ends_on = free_trial_ends_on - self.updated_at = updated_at + self.billingCycle = billingCycle + self.nextBillingDate = nextBillingDate + self.isInstalled = isInstalled + self.unitCount = unitCount + self.onFreeTrial = onFreeTrial + self.freeTrialEndsOn = freeTrialEndsOn + self.updatedAt = updatedAt self.plan = plan } public enum CodingKeys: String, CodingKey { - case billing_cycle - case next_billing_date - case is_installed - case unit_count - case on_free_trial - case free_trial_ends_on - case updated_at + case billingCycle = "billing_cycle" + case nextBillingDate = "next_billing_date" + case isInstalled = "is_installed" + case unitCount = "unit_count" + case onFreeTrial = "on_free_trial" + case freeTrialEndsOn = "free_trial_ends_on" + case updatedAt = "updated_at" case plan } } /// - Remark: Generated from `#/components/schemas/marketplace-purchase/marketplace_purchase`. - public var marketplace_purchase: Components.Schemas.marketplace_hyphen_purchase.marketplace_purchasePayload - /// Creates a new `marketplace_hyphen_purchase`. + public var marketplacePurchase: Components.Schemas.MarketplacePurchase.MarketplacePurchasePayload + /// Creates a new `MarketplacePurchase`. /// /// - Parameters: /// - url: /// - _type: /// - id: /// - login: - /// - organization_billing_email: + /// - organizationBillingEmail: /// - email: - /// - marketplace_pending_change: - /// - marketplace_purchase: + /// - marketplacePendingChange: + /// - marketplacePurchase: public init( url: Swift.String, _type: Swift.String, id: Swift.Int, login: Swift.String, - organization_billing_email: Swift.String? = nil, + organizationBillingEmail: Swift.String? = nil, email: Swift.String? = nil, - marketplace_pending_change: Components.Schemas.marketplace_hyphen_purchase.marketplace_pending_changePayload? = nil, - marketplace_purchase: Components.Schemas.marketplace_hyphen_purchase.marketplace_purchasePayload + marketplacePendingChange: Components.Schemas.MarketplacePurchase.MarketplacePendingChangePayload? = nil, + marketplacePurchase: Components.Schemas.MarketplacePurchase.MarketplacePurchasePayload ) { self.url = url self._type = _type self.id = id self.login = login - self.organization_billing_email = organization_billing_email + self.organizationBillingEmail = organizationBillingEmail self.email = email - self.marketplace_pending_change = marketplace_pending_change - self.marketplace_purchase = marketplace_purchase + self.marketplacePendingChange = marketplacePendingChange + self.marketplacePurchase = marketplacePurchase } public enum CodingKeys: String, CodingKey { case url case _type = "type" case id case login - case organization_billing_email + case organizationBillingEmail = "organization_billing_email" case email - case marketplace_pending_change - case marketplace_purchase + case marketplacePendingChange = "marketplace_pending_change" + case marketplacePurchase = "marketplace_purchase" } } /// - Remark: Generated from `#/components/schemas/marketplace-account`. - public struct marketplace_hyphen_account: Codable, Hashable, Sendable { + public struct MarketplaceAccount: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/marketplace-account/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-account/id`. @@ -4624,107 +4633,107 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/marketplace-account/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-account/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-account/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/marketplace-account/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/marketplace-account/organization_billing_email`. - public var organization_billing_email: Swift.String? - /// Creates a new `marketplace_hyphen_account`. + public var organizationBillingEmail: Swift.String? + /// Creates a new `MarketplaceAccount`. /// /// - Parameters: /// - url: /// - id: /// - _type: - /// - node_id: + /// - nodeId: /// - login: /// - email: - /// - organization_billing_email: + /// - organizationBillingEmail: public init( url: Swift.String, id: Swift.Int, _type: Swift.String, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, login: Swift.String, email: Swift.String? = nil, - organization_billing_email: Swift.String? = nil + organizationBillingEmail: Swift.String? = nil ) { self.url = url self.id = id self._type = _type - self.node_id = node_id + self.nodeId = nodeId self.login = login self.email = email - self.organization_billing_email = organization_billing_email + self.organizationBillingEmail = organizationBillingEmail } public enum CodingKeys: String, CodingKey { case url case id case _type = "type" - case node_id + case nodeId = "node_id" case login case email - case organization_billing_email + case organizationBillingEmail = "organization_billing_email" } } /// User Marketplace Purchase /// /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase`. - public struct user_hyphen_marketplace_hyphen_purchase: Codable, Hashable, Sendable { + public struct UserMarketplacePurchase: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/billing_cycle`. - public var billing_cycle: Swift.String + public var billingCycle: Swift.String /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/next_billing_date`. - public var next_billing_date: Foundation.Date? + public var nextBillingDate: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/unit_count`. - public var unit_count: Swift.Int? + public var unitCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/on_free_trial`. - public var on_free_trial: Swift.Bool + public var onFreeTrial: Swift.Bool /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/free_trial_ends_on`. - public var free_trial_ends_on: Foundation.Date? + public var freeTrialEndsOn: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/account`. - public var account: Components.Schemas.marketplace_hyphen_account + public var account: Components.Schemas.MarketplaceAccount /// - Remark: Generated from `#/components/schemas/user-marketplace-purchase/plan`. - public var plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan - /// Creates a new `user_hyphen_marketplace_hyphen_purchase`. + public var plan: Components.Schemas.MarketplaceListingPlan + /// Creates a new `UserMarketplacePurchase`. /// /// - Parameters: - /// - billing_cycle: - /// - next_billing_date: - /// - unit_count: - /// - on_free_trial: - /// - free_trial_ends_on: - /// - updated_at: + /// - billingCycle: + /// - nextBillingDate: + /// - unitCount: + /// - onFreeTrial: + /// - freeTrialEndsOn: + /// - updatedAt: /// - account: /// - plan: public init( - billing_cycle: Swift.String, - next_billing_date: Foundation.Date? = nil, - unit_count: Swift.Int? = nil, - on_free_trial: Swift.Bool, - free_trial_ends_on: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - account: Components.Schemas.marketplace_hyphen_account, - plan: Components.Schemas.marketplace_hyphen_listing_hyphen_plan + billingCycle: Swift.String, + nextBillingDate: Foundation.Date? = nil, + unitCount: Swift.Int? = nil, + onFreeTrial: Swift.Bool, + freeTrialEndsOn: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + account: Components.Schemas.MarketplaceAccount, + plan: Components.Schemas.MarketplaceListingPlan ) { - self.billing_cycle = billing_cycle - self.next_billing_date = next_billing_date - self.unit_count = unit_count - self.on_free_trial = on_free_trial - self.free_trial_ends_on = free_trial_ends_on - self.updated_at = updated_at + self.billingCycle = billingCycle + self.nextBillingDate = nextBillingDate + self.unitCount = unitCount + self.onFreeTrial = onFreeTrial + self.freeTrialEndsOn = freeTrialEndsOn + self.updatedAt = updatedAt self.account = account self.plan = plan } public enum CodingKeys: String, CodingKey { - case billing_cycle - case next_billing_date - case unit_count - case on_free_trial - case free_trial_ends_on - case updated_at + case billingCycle = "billing_cycle" + case nextBillingDate = "next_billing_date" + case unitCount = "unit_count" + case onFreeTrial = "on_free_trial" + case freeTrialEndsOn = "free_trial_ends_on" + case updatedAt = "updated_at" case account case plan } @@ -4735,81 +4744,81 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/components/parameters/cursor`. - public typealias cursor = Swift.String + public typealias Cursor = Swift.String /// - Remark: Generated from `#/components/parameters/delivery-id`. - public typealias delivery_hyphen_id = Swift.Int + public typealias DeliveryId = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since`. - public typealias since = Foundation.Date + public typealias Since = Foundation.Date /// The unique identifier of the installation. /// /// - Remark: Generated from `#/components/parameters/installation-id`. - public typealias installation_hyphen_id = Swift.Int + public typealias InstallationId = Swift.Int /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/components/parameters/client-id`. - public typealias client_hyphen_id = Swift.String + public typealias ClientId = Swift.String /// - Remark: Generated from `#/components/parameters/app-slug`. - public typealias app_hyphen_slug = Swift.String + public typealias AppSlug = Swift.String /// account_id parameter /// /// - Remark: Generated from `#/components/parameters/account-id`. - public typealias account_hyphen_id = Swift.Int + public typealias AccountId = Swift.Int /// The unique identifier of the plan. /// /// - Remark: Generated from `#/components/parameters/plan-id`. - public typealias plan_hyphen_id = Swift.Int + public typealias PlanId = Swift.Int /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The unique identifier of the repository. /// /// - Remark: Generated from `#/components/parameters/repository-id`. - public typealias repository_hyphen_id = Swift.Int + public typealias RepositoryId = Swift.Int /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -4819,25 +4828,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4847,25 +4856,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4879,15 +4888,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -4899,25 +4908,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -4927,16 +4936,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -4955,29 +4964,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -4987,25 +4996,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5015,25 +5024,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct moved_permanently: Sendable, Hashable { + public struct MovedPermanently: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5043,12 +5052,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.moved_permanently.Body - /// Creates a new `moved_permanently`. + public var body: Components.Responses.MovedPermanently.Body + /// Creates a new `MovedPermanently`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.moved_permanently.Body) { + public init(body: Components.Responses.MovedPermanently.Body) { self.body = body } } @@ -5056,7 +5065,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -5070,26 +5079,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /app`. /// - Remark: Generated from `#/paths//app/get(apps/get-authenticated)`. - public enum apps_sol_get_hyphen_authenticated { + public enum AppsGetAuthenticated { public static let id: Swift.String = "apps/get-authenticated" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_authenticated.Input.Headers + public var headers: Operations.AppsGetAuthenticated.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.apps_sol_get_hyphen_authenticated.Input.Headers = .init()) { + public init(headers: Operations.AppsGetAuthenticated.Input.Headers = .init()) { self.headers = headers } } @@ -5098,12 +5107,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/GET/responses/200/content/application\/json`. - case json(Components.Schemas.integration) + case json(Components.Schemas.Integration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.integration { + public var json: Components.Schemas.Integration { get throws { switch self { case let .json(body): @@ -5113,12 +5122,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_authenticated.Output.Ok.Body + public var body: Operations.AppsGetAuthenticated.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_authenticated.Output.Ok.Body) { + public init(body: Operations.AppsGetAuthenticated.Output.Ok.Body) { self.body = body } } @@ -5127,12 +5136,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/get(apps/get-authenticated)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_authenticated.Output.Ok) + case ok(Operations.AppsGetAuthenticated.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_authenticated.Output.Ok { + public var ok: Operations.AppsGetAuthenticated.Output.Ok { get throws { switch self { case let .ok(response): @@ -5182,7 +5191,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /app-manifests/{code}/conversions`. /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)`. - public enum apps_sol_create_hyphen_from_hyphen_manifest { + public enum AppsCreateFromManifest { public static let id: Swift.String = "apps/create-from-manifest" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/path`. @@ -5197,27 +5206,27 @@ public enum Operations { self.code = code } } - public var path: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Path + public var path: Operations.AppsCreateFromManifest.Input.Path /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Headers + public var headers: Operations.AppsCreateFromManifest.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Path, - headers: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Input.Headers = .init() + path: Operations.AppsCreateFromManifest.Input.Path, + headers: Operations.AppsCreateFromManifest.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5228,17 +5237,17 @@ public enum Operations { /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value1`. - public var value1: Components.Schemas.integration + public var value1: Components.Schemas.Integration /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2/client_id`. - public var client_id: Swift.String + public var clientId: Swift.String /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2/client_secret`. - public var client_secret: Swift.String + public var clientSecret: Swift.String /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2/pem`. public var pem: Swift.String /// A container of undocumented properties. @@ -5246,45 +5255,45 @@ public enum Operations { /// Creates a new `Value2Payload`. /// /// - Parameters: - /// - client_id: - /// - client_secret: - /// - webhook_secret: + /// - clientId: + /// - clientSecret: + /// - webhookSecret: /// - pem: /// - additionalProperties: A container of undocumented properties. public init( - client_id: Swift.String, - client_secret: Swift.String, - webhook_secret: Swift.String? = nil, + clientId: Swift.String, + clientSecret: Swift.String, + webhookSecret: Swift.String? = nil, pem: Swift.String, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.client_id = client_id - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.clientId = clientId + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case client_id - case client_secret - case webhook_secret + case clientId = "client_id" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - client_id = try container.decode( + self.clientId = try container.decode( Swift.String.self, - forKey: .client_id + forKey: .clientId ) - client_secret = try container.decode( + self.clientSecret = try container.decode( Swift.String.self, - forKey: .client_secret + forKey: .clientSecret ) - webhook_secret = try container.decodeIfPresent( + self.webhookSecret = try container.decodeIfPresent( Swift.String.self, - forKey: .webhook_secret + forKey: .webhookSecret ) - pem = try container.decode( + self.pem = try container.decode( Swift.String.self, forKey: .pem ) @@ -5298,54 +5307,54 @@ public enum Operations { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode( - client_id, - forKey: .client_id + self.clientId, + forKey: .clientId ) try container.encode( - client_secret, - forKey: .client_secret + self.clientSecret, + forKey: .clientSecret ) try container.encodeIfPresent( - webhook_secret, - forKey: .webhook_secret + self.webhookSecret, + forKey: .webhookSecret ) try container.encode( - pem, + self.pem, forKey: .pem ) try encoder.encodeAdditionalProperties(additionalProperties) } } /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/json/value2`. - public var value2: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body.jsonPayload.Value2Payload - /// Creates a new `jsonPayload`. + public var value2: Operations.AppsCreateFromManifest.Output.Created.Body.JsonPayload.Value2Payload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.integration, - value2: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body.jsonPayload.Value2Payload + value1: Components.Schemas.Integration, + value2: Operations.AppsCreateFromManifest.Output.Created.Body.JsonPayload.Value2Payload ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/paths/app-manifests/{code}/conversions/POST/responses/201/content/application\/json`. - case json(Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body.jsonPayload) + case json(Operations.AppsCreateFromManifest.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body.jsonPayload { + public var json: Operations.AppsCreateFromManifest.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5355,12 +5364,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body + public var body: Operations.AppsCreateFromManifest.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created.Body) { + public init(body: Operations.AppsCreateFromManifest.Output.Created.Body) { self.body = body } } @@ -5369,12 +5378,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created) + case created(Operations.AppsCreateFromManifest.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.apps_sol_create_hyphen_from_hyphen_manifest.Output.Created { + public var created: Operations.AppsCreateFromManifest.Output.Created { get throws { switch self { case let .created(response): @@ -5392,12 +5401,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5415,12 +5424,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app-manifests/{code}/conversions/post(apps/create-from-manifest)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -5472,26 +5481,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/get(apps/get-webhook-config-for-app)`. - public enum apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app { + public enum AppsGetWebhookConfigForApp { public static let id: Swift.String = "apps/get-webhook-config-for-app" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/config/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers + public var headers: Operations.AppsGetWebhookConfigForApp.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers = .init()) { + public init(headers: Operations.AppsGetWebhookConfigForApp.Input.Headers = .init()) { self.headers = headers } } @@ -5500,12 +5509,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/hook/config/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/config/GET/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -5515,12 +5524,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body + public var body: Operations.AppsGetWebhookConfigForApp.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body) { + public init(body: Operations.AppsGetWebhookConfigForApp.Output.Ok.Body) { self.body = body } } @@ -5529,12 +5538,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/config/get(apps/get-webhook-config-for-app)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok) + case ok(Operations.AppsGetWebhookConfigForApp.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok { + public var ok: Operations.AppsGetWebhookConfigForApp.Output.Ok { get throws { switch self { case let .ok(response): @@ -5586,70 +5595,70 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /app/hook/config`. /// - Remark: Generated from `#/paths//app/hook/config/patch(apps/update-webhook-config-for-app)`. - public enum apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app { + public enum AppsUpdateWebhookConfigForApp { public static let id: Swift.String = "apps/update-webhook-config-for-app" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/config/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers + public var headers: Operations.AppsUpdateWebhookConfigForApp.Input.Headers /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/json/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/json/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/json/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/json/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `jsonPayload`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// - Remark: Generated from `#/paths/app/hook/config/PATCH/requestBody/content/application\/json`. - case json(Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Body.jsonPayload) + case json(Operations.AppsUpdateWebhookConfigForApp.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Body + public var body: Operations.AppsUpdateWebhookConfigForApp.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Headers = .init(), - body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Input.Body + headers: Operations.AppsUpdateWebhookConfigForApp.Input.Headers = .init(), + body: Operations.AppsUpdateWebhookConfigForApp.Input.Body ) { self.headers = headers self.body = body @@ -5660,12 +5669,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/hook/config/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/config/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -5675,12 +5684,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body + public var body: Operations.AppsUpdateWebhookConfigForApp.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok.Body) { + public init(body: Operations.AppsUpdateWebhookConfigForApp.Output.Ok.Body) { self.body = body } } @@ -5689,12 +5698,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/config/patch(apps/update-webhook-config-for-app)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok) + case ok(Operations.AppsUpdateWebhookConfigForApp.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_app.Output.Ok { + public var ok: Operations.AppsUpdateWebhookConfigForApp.Output.Ok { get throws { switch self { case let .ok(response): @@ -5746,7 +5755,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/hook/deliveries`. /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)`. - public enum apps_sol_list_hyphen_webhook_hyphen_deliveries { + public enum AppsListWebhookDeliveries { public static let id: Swift.String = "apps/list-webhook-deliveries" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/query`. @@ -5754,45 +5763,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/query/cursor`. - public var cursor: Components.Parameters.cursor? + public var cursor: Components.Parameters.Cursor? /// 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)." + /// - perPage: 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)." /// - cursor: Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - cursor: Components.Parameters.cursor? = nil + perPage: Components.Parameters.PerPage? = nil, + cursor: Components.Parameters.Cursor? = nil ) { - self.per_page = per_page + self.perPage = perPage self.cursor = cursor } } - public var query: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query + public var query: Operations.AppsListWebhookDeliveries.Input.Query /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers + public var headers: Operations.AppsListWebhookDeliveries.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() + query: Operations.AppsListWebhookDeliveries.Input.Query = .init(), + headers: Operations.AppsListWebhookDeliveries.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5803,12 +5812,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/GET/responses/200/content/application\/json`. - case json([Components.Schemas.hook_hyphen_delivery_hyphen_item]) + case json([Components.Schemas.HookDeliveryItem]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.hook_hyphen_delivery_hyphen_item] { + public var json: [Components.Schemas.HookDeliveryItem] { get throws { switch self { case let .json(body): @@ -5818,12 +5827,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + public var body: Operations.AppsListWebhookDeliveries.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body) { + public init(body: Operations.AppsListWebhookDeliveries.Output.Ok.Body) { self.body = body } } @@ -5832,12 +5841,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok) + case ok(Operations.AppsListWebhookDeliveries.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok { + public var ok: Operations.AppsListWebhookDeliveries.Output.Ok { get throws { switch self { case let .ok(response): @@ -5855,12 +5864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -5878,12 +5887,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/get(apps/list-webhook-deliveries)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5903,14 +5912,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -5921,14 +5930,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -5941,42 +5950,42 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/hook/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)`. - public enum apps_sol_get_hyphen_webhook_hyphen_delivery { + public enum AppsGetWebhookDelivery { public static let id: Swift.String = "apps/get-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/GET/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: - /// - delivery_id: - public init(delivery_id: Components.Parameters.delivery_hyphen_id) { - self.delivery_id = delivery_id + /// - deliveryId: + public init(deliveryId: Components.Parameters.DeliveryId) { + self.deliveryId = deliveryId } } - public var path: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.AppsGetWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.AppsGetWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.AppsGetWebhookDelivery.Input.Path, + headers: Operations.AppsGetWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5987,12 +5996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.hook_hyphen_delivery) + case json(Components.Schemas.HookDelivery) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook_hyphen_delivery { + public var json: Components.Schemas.HookDelivery { get throws { switch self { case let .json(body): @@ -6002,12 +6011,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + public var body: Operations.AppsGetWebhookDelivery.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body) { + public init(body: Operations.AppsGetWebhookDelivery.Output.Ok.Body) { self.body = body } } @@ -6016,12 +6025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok) + case ok(Operations.AppsGetWebhookDelivery.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok { + public var ok: Operations.AppsGetWebhookDelivery.Output.Ok { get throws { switch self { case let .ok(response): @@ -6039,12 +6048,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -6062,12 +6071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/get(apps/get-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6087,14 +6096,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -6105,14 +6114,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -6125,42 +6134,42 @@ public enum Operations { /// /// - Remark: HTTP `POST /app/hook/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)`. - public enum apps_sol_redeliver_hyphen_webhook_hyphen_delivery { + public enum AppsRedeliverWebhookDelivery { public static let id: Swift.String = "apps/redeliver-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/attempts/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/attempts/POST/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: - /// - delivery_id: - public init(delivery_id: Components.Parameters.delivery_hyphen_id) { - self.delivery_id = delivery_id + /// - deliveryId: + public init(deliveryId: Components.Parameters.DeliveryId) { + self.deliveryId = deliveryId } } - public var path: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.AppsRedeliverWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/app/hook/deliveries/{delivery_id}/attempts/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.AppsRedeliverWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.apps_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.AppsRedeliverWebhookDelivery.Input.Path, + headers: Operations.AppsRedeliverWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6172,12 +6181,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -6195,12 +6204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -6218,12 +6227,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/hook/deliveries/{delivery_id}/attempts/post(apps/redeliver-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6243,14 +6252,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -6261,14 +6270,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -6279,7 +6288,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/installation-requests`. /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)`. - public enum apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app { + public enum AppsListInstallationRequestsForAuthenticatedApp { public static let id: Swift.String = "apps/list-installation-requests-for-authenticated-app" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installation-requests/GET/query`. @@ -6287,45 +6296,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/app/installation-requests/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/app/installation-requests/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Query + public var query: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Query /// - Remark: Generated from `#/paths/app/installation-requests/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Headers + public var headers: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Input.Headers = .init() + query: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Query = .init(), + headers: Operations.AppsListInstallationRequestsForAuthenticatedApp.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6336,12 +6345,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/installation-requests/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installation-requests/GET/responses/200/content/application\/json`. - case json([Components.Schemas.integration_hyphen_installation_hyphen_request]) + case json([Components.Schemas.IntegrationInstallationRequest]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.integration_hyphen_installation_hyphen_request] { + public var json: [Components.Schemas.IntegrationInstallationRequest] { get throws { switch self { case let .json(body): @@ -6351,12 +6360,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output.Ok.Body + public var body: Operations.AppsListInstallationRequestsForAuthenticatedApp.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output.Ok.Body) { + public init(body: Operations.AppsListInstallationRequestsForAuthenticatedApp.Output.Ok.Body) { self.body = body } } @@ -6365,12 +6374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output.Ok) + case ok(Operations.AppsListInstallationRequestsForAuthenticatedApp.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_installation_hyphen_requests_hyphen_for_hyphen_authenticated_hyphen_app.Output.Ok { + public var ok: Operations.AppsListInstallationRequestsForAuthenticatedApp.Output.Ok { get throws { switch self { case let .ok(response): @@ -6388,12 +6397,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6411,12 +6428,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installation-requests/get(apps/list-installation-requests-for-authenticated-app)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6468,7 +6485,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/installations`. /// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)`. - public enum apps_sol_list_hyphen_installations { + public enum AppsListInstallations { public static let id: Swift.String = "apps/list-installations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/GET/query`. @@ -6476,57 +6493,57 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/app/installations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/app/installations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/app/installations/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// - Remark: Generated from `#/paths/app/installations/GET/query/outdated`. public var outdated: Swift.String? /// 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)." + /// - perPage: 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)." /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - outdated: public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - since: Components.Parameters.since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + since: Components.Parameters.Since? = nil, outdated: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.since = since self.outdated = outdated } } - public var query: Operations.apps_sol_list_hyphen_installations.Input.Query + public var query: Operations.AppsListInstallations.Input.Query /// - Remark: Generated from `#/paths/app/installations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_installations.Input.Headers + public var headers: Operations.AppsListInstallations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_installations.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installations.Input.Headers = .init() + query: Operations.AppsListInstallations.Input.Query = .init(), + headers: Operations.AppsListInstallations.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6537,26 +6554,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/installations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_installations.Output.Ok.Headers + public var headers: Operations.AppsListInstallations.Output.Ok.Headers /// - Remark: Generated from `#/paths/app/installations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.installation]) + case json([Components.Schemas.Installation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.installation] { + public var json: [Components.Schemas.Installation] { get throws { switch self { case let .json(body): @@ -6566,15 +6583,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_installations.Output.Ok.Body + public var body: Operations.AppsListInstallations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_installations.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_installations.Output.Ok.Body + headers: Operations.AppsListInstallations.Output.Ok.Headers = .init(), + body: Operations.AppsListInstallations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6585,12 +6602,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_installations.Output.Ok) + case ok(Operations.AppsListInstallations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_installations.Output.Ok { + public var ok: Operations.AppsListInstallations.Output.Ok { get throws { switch self { case let .ok(response): @@ -6642,7 +6659,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)`. - public enum apps_sol_get_hyphen_installation { + public enum AppsGetInstallation { public static let id: Swift.String = "apps/get-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/GET/path`. @@ -6650,36 +6667,36 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/GET/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_get_hyphen_installation.Input.Path + public var path: Operations.AppsGetInstallation.Input.Path /// - Remark: Generated from `#/paths/app/installations/{installation_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_installation.Input.Headers + public var headers: Operations.AppsGetInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_installation.Input.Headers = .init() + path: Operations.AppsGetInstallation.Input.Path, + headers: Operations.AppsGetInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6690,12 +6707,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.installation) + case json(Components.Schemas.Installation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.installation { + public var json: Components.Schemas.Installation { get throws { switch self { case let .json(body): @@ -6705,12 +6722,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_installation.Output.Ok.Body + public var body: Operations.AppsGetInstallation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_installation.Output.Ok.Body) { + public init(body: Operations.AppsGetInstallation.Output.Ok.Body) { self.body = body } } @@ -6719,12 +6736,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_installation.Output.Ok) + case ok(Operations.AppsGetInstallation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_installation.Output.Ok { + public var ok: Operations.AppsGetInstallation.Output.Ok { get throws { switch self { case let .ok(response): @@ -6742,12 +6759,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/get(apps/get-installation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6799,7 +6816,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)`. - public enum apps_sol_delete_hyphen_installation { + public enum AppsDeleteInstallation { public static let id: Swift.String = "apps/delete-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/DELETE/path`. @@ -6807,36 +6824,36 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/DELETE/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_delete_hyphen_installation.Input.Path + public var path: Operations.AppsDeleteInstallation.Input.Path /// - Remark: Generated from `#/paths/app/installations/{installation_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_delete_hyphen_installation.Input.Headers + public var headers: Operations.AppsDeleteInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_delete_hyphen_installation.Input.Path, - headers: Operations.apps_sol_delete_hyphen_installation.Input.Headers = .init() + path: Operations.AppsDeleteInstallation.Input.Path, + headers: Operations.AppsDeleteInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6852,12 +6869,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_delete_hyphen_installation.Output.NoContent) + case noContent(Operations.AppsDeleteInstallation.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_delete_hyphen_installation.Output.NoContent { + public var noContent: Operations.AppsDeleteInstallation.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6875,12 +6900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/delete(apps/delete-installation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6936,7 +6961,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /app/installations/{installation_id}/access_tokens`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)`. - public enum apps_sol_create_hyphen_installation_hyphen_access_hyphen_token { + public enum AppsCreateInstallationAccessToken { public static let id: Swift.String = "apps/create-installation-access-token" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/path`. @@ -6944,32 +6969,32 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Path + public var path: Operations.AppsCreateInstallationAccessToken.Input.Path /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Headers + public var headers: Operations.AppsCreateInstallationAccessToken.Input.Headers /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// List of repository names that the token should have access to /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody/json/repositories`. @@ -6977,34 +7002,34 @@ public enum Operations { /// List of repository IDs that the token should have access to /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody/json/repository_ids`. - public var repository_ids: [Swift.Int]? + public var repositoryIds: [Swift.Int]? /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody/json/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions? - /// Creates a new `jsonPayload`. + public var permissions: Components.Schemas.AppPermissions? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - repositories: List of repository names that the token should have access to - /// - repository_ids: List of repository IDs that the token should have access to + /// - repositoryIds: List of repository IDs that the token should have access to /// - permissions: public init( repositories: [Swift.String]? = nil, - repository_ids: [Swift.Int]? = nil, - permissions: Components.Schemas.app_hyphen_permissions? = nil + repositoryIds: [Swift.Int]? = nil, + permissions: Components.Schemas.AppPermissions? = nil ) { self.repositories = repositories - self.repository_ids = repository_ids + self.repositoryIds = repositoryIds self.permissions = permissions } public enum CodingKeys: String, CodingKey { case repositories - case repository_ids + case repositoryIds = "repository_ids" case permissions } } /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/requestBody/content/application\/json`. - case json(Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Body.jsonPayload) + case json(Operations.AppsCreateInstallationAccessToken.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Body? + public var body: Operations.AppsCreateInstallationAccessToken.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -7012,9 +7037,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Path, - headers: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Input.Body? = nil + path: Operations.AppsCreateInstallationAccessToken.Input.Path, + headers: Operations.AppsCreateInstallationAccessToken.Input.Headers = .init(), + body: Operations.AppsCreateInstallationAccessToken.Input.Body? = nil ) { self.path = path self.headers = headers @@ -7026,12 +7051,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/access_tokens/POST/responses/201/content/application\/json`. - case json(Components.Schemas.installation_hyphen_token) + case json(Components.Schemas.InstallationToken) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.installation_hyphen_token { + public var json: Components.Schemas.InstallationToken { get throws { switch self { case let .json(body): @@ -7041,12 +7066,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output.Created.Body + public var body: Operations.AppsCreateInstallationAccessToken.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output.Created.Body) { + public init(body: Operations.AppsCreateInstallationAccessToken.Output.Created.Body) { self.body = body } } @@ -7055,12 +7080,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output.Created) + case created(Operations.AppsCreateInstallationAccessToken.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.apps_sol_create_hyphen_installation_hyphen_access_hyphen_token.Output.Created { + public var created: Operations.AppsCreateInstallationAccessToken.Output.Created { get throws { switch self { case let .created(response): @@ -7078,12 +7103,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7101,12 +7126,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7124,12 +7149,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7147,12 +7172,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/access_tokens/post(apps/create-installation-access-token)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7204,7 +7229,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)`. - public enum apps_sol_suspend_hyphen_installation { + public enum AppsSuspendInstallation { public static let id: Swift.String = "apps/suspend-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/PUT/path`. @@ -7212,36 +7237,36 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/PUT/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_suspend_hyphen_installation.Input.Path + public var path: Operations.AppsSuspendInstallation.Input.Path /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_suspend_hyphen_installation.Input.Headers + public var headers: Operations.AppsSuspendInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_suspend_hyphen_installation.Input.Path, - headers: Operations.apps_sol_suspend_hyphen_installation.Input.Headers = .init() + path: Operations.AppsSuspendInstallation.Input.Path, + headers: Operations.AppsSuspendInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7257,12 +7282,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_suspend_hyphen_installation.Output.NoContent) + case noContent(Operations.AppsSuspendInstallation.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_suspend_hyphen_installation.Output.NoContent { + public var noContent: Operations.AppsSuspendInstallation.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7280,12 +7313,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/put(apps/suspend-installation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7337,7 +7370,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /app/installations/{installation_id}/suspended`. /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)`. - public enum apps_sol_unsuspend_hyphen_installation { + public enum AppsUnsuspendInstallation { public static let id: Swift.String = "apps/unsuspend-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/DELETE/path`. @@ -7345,36 +7378,36 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/DELETE/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_unsuspend_hyphen_installation.Input.Path + public var path: Operations.AppsUnsuspendInstallation.Input.Path /// - Remark: Generated from `#/paths/app/installations/{installation_id}/suspended/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_unsuspend_hyphen_installation.Input.Headers + public var headers: Operations.AppsUnsuspendInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_unsuspend_hyphen_installation.Input.Path, - headers: Operations.apps_sol_unsuspend_hyphen_installation.Input.Headers = .init() + path: Operations.AppsUnsuspendInstallation.Input.Path, + headers: Operations.AppsUnsuspendInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7390,12 +7423,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_unsuspend_hyphen_installation.Output.NoContent) + case noContent(Operations.AppsUnsuspendInstallation.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_unsuspend_hyphen_installation.Output.NoContent { + public var noContent: Operations.AppsUnsuspendInstallation.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7413,12 +7454,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//app/installations/{installation_id}/suspended/delete(apps/unsuspend-installation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7469,7 +7510,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /applications/{client_id}/grant`. /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)`. - public enum apps_sol_delete_hyphen_authorization { + public enum AppsDeleteAuthorization { public static let id: Swift.String = "apps/delete-authorization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/path`. @@ -7477,51 +7518,51 @@ public enum Operations { /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/path/client_id`. - public var client_id: Components.Parameters.client_hyphen_id + public var clientId: Components.Parameters.ClientId /// Creates a new `Path`. /// /// - Parameters: - /// - client_id: The client ID of the GitHub app. - public init(client_id: Components.Parameters.client_hyphen_id) { - self.client_id = client_id + /// - clientId: The client ID of the GitHub app. + public init(clientId: Components.Parameters.ClientId) { + self.clientId = clientId } } - public var path: Operations.apps_sol_delete_hyphen_authorization.Input.Path + public var path: Operations.AppsDeleteAuthorization.Input.Path /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_delete_hyphen_authorization.Input.Headers + public var headers: Operations.AppsDeleteAuthorization.Input.Headers /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The OAuth access token used to authenticate to the GitHub API. /// /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/requestBody/json/access_token`. - public var access_token: Swift.String - /// Creates a new `jsonPayload`. + public var accessToken: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - access_token: The OAuth access token used to authenticate to the GitHub API. - public init(access_token: Swift.String) { - self.access_token = access_token + /// - accessToken: The OAuth access token used to authenticate to the GitHub API. + public init(accessToken: Swift.String) { + self.accessToken = accessToken } public enum CodingKeys: String, CodingKey { - case access_token + case accessToken = "access_token" } } /// - Remark: Generated from `#/paths/applications/{client_id}/grant/DELETE/requestBody/content/application\/json`. - case json(Operations.apps_sol_delete_hyphen_authorization.Input.Body.jsonPayload) + case json(Operations.AppsDeleteAuthorization.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_delete_hyphen_authorization.Input.Body + public var body: Operations.AppsDeleteAuthorization.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7529,9 +7570,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_delete_hyphen_authorization.Input.Path, - headers: Operations.apps_sol_delete_hyphen_authorization.Input.Headers = .init(), - body: Operations.apps_sol_delete_hyphen_authorization.Input.Body + path: Operations.AppsDeleteAuthorization.Input.Path, + headers: Operations.AppsDeleteAuthorization.Input.Headers = .init(), + body: Operations.AppsDeleteAuthorization.Input.Body ) { self.path = path self.headers = headers @@ -7548,12 +7589,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_delete_hyphen_authorization.Output.NoContent) + case noContent(Operations.AppsDeleteAuthorization.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_delete_hyphen_authorization.Output.NoContent { + public var noContent: Operations.AppsDeleteAuthorization.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7571,12 +7620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/grant/delete(apps/delete-authorization)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7626,7 +7675,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)`. - public enum apps_sol_check_hyphen_token { + public enum AppsCheckToken { public static let id: Swift.String = "apps/check-token" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/path`. @@ -7634,51 +7683,51 @@ public enum Operations { /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/path/client_id`. - public var client_id: Components.Parameters.client_hyphen_id + public var clientId: Components.Parameters.ClientId /// Creates a new `Path`. /// /// - Parameters: - /// - client_id: The client ID of the GitHub app. - public init(client_id: Components.Parameters.client_hyphen_id) { - self.client_id = client_id + /// - clientId: The client ID of the GitHub app. + public init(clientId: Components.Parameters.ClientId) { + self.clientId = clientId } } - public var path: Operations.apps_sol_check_hyphen_token.Input.Path + public var path: Operations.AppsCheckToken.Input.Path /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_check_hyphen_token.Input.Headers + public var headers: Operations.AppsCheckToken.Input.Headers /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The access_token of the OAuth or GitHub application. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/requestBody/json/access_token`. - public var access_token: Swift.String - /// Creates a new `jsonPayload`. + public var accessToken: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - access_token: The access_token of the OAuth or GitHub application. - public init(access_token: Swift.String) { - self.access_token = access_token + /// - accessToken: The access_token of the OAuth or GitHub application. + public init(accessToken: Swift.String) { + self.accessToken = accessToken } public enum CodingKeys: String, CodingKey { - case access_token + case accessToken = "access_token" } } /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/requestBody/content/application\/json`. - case json(Operations.apps_sol_check_hyphen_token.Input.Body.jsonPayload) + case json(Operations.AppsCheckToken.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_check_hyphen_token.Input.Body + public var body: Operations.AppsCheckToken.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7686,9 +7735,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_check_hyphen_token.Input.Path, - headers: Operations.apps_sol_check_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_check_hyphen_token.Input.Body + path: Operations.AppsCheckToken.Input.Path, + headers: Operations.AppsCheckToken.Input.Headers = .init(), + body: Operations.AppsCheckToken.Input.Body ) { self.path = path self.headers = headers @@ -7700,12 +7749,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/POST/responses/200/content/application\/json`. - case json(Components.Schemas.authorization) + case json(Components.Schemas.Authorization) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authorization { + public var json: Components.Schemas.Authorization { get throws { switch self { case let .json(body): @@ -7715,12 +7764,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_check_hyphen_token.Output.Ok.Body + public var body: Operations.AppsCheckToken.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_check_hyphen_token.Output.Ok.Body) { + public init(body: Operations.AppsCheckToken.Output.Ok.Body) { self.body = body } } @@ -7729,12 +7778,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_check_hyphen_token.Output.Ok) + case ok(Operations.AppsCheckToken.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_check_hyphen_token.Output.Ok { + public var ok: Operations.AppsCheckToken.Output.Ok { get throws { switch self { case let .ok(response): @@ -7752,12 +7801,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7775,12 +7824,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/post(apps/check-token)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7830,7 +7879,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)`. - public enum apps_sol_reset_hyphen_token { + public enum AppsResetToken { public static let id: Swift.String = "apps/reset-token" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/path`. @@ -7838,51 +7887,51 @@ public enum Operations { /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/path/client_id`. - public var client_id: Components.Parameters.client_hyphen_id + public var clientId: Components.Parameters.ClientId /// Creates a new `Path`. /// /// - Parameters: - /// - client_id: The client ID of the GitHub app. - public init(client_id: Components.Parameters.client_hyphen_id) { - self.client_id = client_id + /// - clientId: The client ID of the GitHub app. + public init(clientId: Components.Parameters.ClientId) { + self.clientId = clientId } } - public var path: Operations.apps_sol_reset_hyphen_token.Input.Path + public var path: Operations.AppsResetToken.Input.Path /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_reset_hyphen_token.Input.Headers + public var headers: Operations.AppsResetToken.Input.Headers /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The access_token of the OAuth or GitHub application. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/requestBody/json/access_token`. - public var access_token: Swift.String - /// Creates a new `jsonPayload`. + public var accessToken: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - access_token: The access_token of the OAuth or GitHub application. - public init(access_token: Swift.String) { - self.access_token = access_token + /// - accessToken: The access_token of the OAuth or GitHub application. + public init(accessToken: Swift.String) { + self.accessToken = accessToken } public enum CodingKeys: String, CodingKey { - case access_token + case accessToken = "access_token" } } /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/requestBody/content/application\/json`. - case json(Operations.apps_sol_reset_hyphen_token.Input.Body.jsonPayload) + case json(Operations.AppsResetToken.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_reset_hyphen_token.Input.Body + public var body: Operations.AppsResetToken.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7890,9 +7939,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_reset_hyphen_token.Input.Path, - headers: Operations.apps_sol_reset_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_reset_hyphen_token.Input.Body + path: Operations.AppsResetToken.Input.Path, + headers: Operations.AppsResetToken.Input.Headers = .init(), + body: Operations.AppsResetToken.Input.Body ) { self.path = path self.headers = headers @@ -7904,12 +7953,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.authorization) + case json(Components.Schemas.Authorization) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authorization { + public var json: Components.Schemas.Authorization { get throws { switch self { case let .json(body): @@ -7919,12 +7968,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_reset_hyphen_token.Output.Ok.Body + public var body: Operations.AppsResetToken.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_reset_hyphen_token.Output.Ok.Body) { + public init(body: Operations.AppsResetToken.Output.Ok.Body) { self.body = body } } @@ -7933,12 +7982,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_reset_hyphen_token.Output.Ok) + case ok(Operations.AppsResetToken.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_reset_hyphen_token.Output.Ok { + public var ok: Operations.AppsResetToken.Output.Ok { get throws { switch self { case let .ok(response): @@ -7956,12 +8005,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/patch(apps/reset-token)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8011,7 +8060,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /applications/{client_id}/token`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)`. - public enum apps_sol_delete_hyphen_token { + public enum AppsDeleteToken { public static let id: Swift.String = "apps/delete-token" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/path`. @@ -8019,51 +8068,51 @@ public enum Operations { /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/path/client_id`. - public var client_id: Components.Parameters.client_hyphen_id + public var clientId: Components.Parameters.ClientId /// Creates a new `Path`. /// /// - Parameters: - /// - client_id: The client ID of the GitHub app. - public init(client_id: Components.Parameters.client_hyphen_id) { - self.client_id = client_id + /// - clientId: The client ID of the GitHub app. + public init(clientId: Components.Parameters.ClientId) { + self.clientId = clientId } } - public var path: Operations.apps_sol_delete_hyphen_token.Input.Path + public var path: Operations.AppsDeleteToken.Input.Path /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_delete_hyphen_token.Input.Headers + public var headers: Operations.AppsDeleteToken.Input.Headers /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The OAuth access token used to authenticate to the GitHub API. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/requestBody/json/access_token`. - public var access_token: Swift.String - /// Creates a new `jsonPayload`. + public var accessToken: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - access_token: The OAuth access token used to authenticate to the GitHub API. - public init(access_token: Swift.String) { - self.access_token = access_token + /// - accessToken: The OAuth access token used to authenticate to the GitHub API. + public init(accessToken: Swift.String) { + self.accessToken = accessToken } public enum CodingKeys: String, CodingKey { - case access_token + case accessToken = "access_token" } } /// - Remark: Generated from `#/paths/applications/{client_id}/token/DELETE/requestBody/content/application\/json`. - case json(Operations.apps_sol_delete_hyphen_token.Input.Body.jsonPayload) + case json(Operations.AppsDeleteToken.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_delete_hyphen_token.Input.Body + public var body: Operations.AppsDeleteToken.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8071,9 +8120,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_delete_hyphen_token.Input.Path, - headers: Operations.apps_sol_delete_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_delete_hyphen_token.Input.Body + path: Operations.AppsDeleteToken.Input.Path, + headers: Operations.AppsDeleteToken.Input.Headers = .init(), + body: Operations.AppsDeleteToken.Input.Body ) { self.path = path self.headers = headers @@ -8090,12 +8139,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_delete_hyphen_token.Output.NoContent) + case noContent(Operations.AppsDeleteToken.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_delete_hyphen_token.Output.NoContent { + public var noContent: Operations.AppsDeleteToken.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8113,12 +8170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/delete(apps/delete-token)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8172,7 +8229,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /applications/{client_id}/token/scoped`. /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)`. - public enum apps_sol_scope_hyphen_token { + public enum AppsScopeToken { public static let id: Swift.String = "apps/scope-token" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/path`. @@ -8180,36 +8237,36 @@ public enum Operations { /// The client ID of the GitHub app. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/path/client_id`. - public var client_id: Components.Parameters.client_hyphen_id + public var clientId: Components.Parameters.ClientId /// Creates a new `Path`. /// /// - Parameters: - /// - client_id: The client ID of the GitHub app. - public init(client_id: Components.Parameters.client_hyphen_id) { - self.client_id = client_id + /// - clientId: The client ID of the GitHub app. + public init(clientId: Components.Parameters.ClientId) { + self.clientId = clientId } } - public var path: Operations.apps_sol_scope_hyphen_token.Input.Path + public var path: Operations.AppsScopeToken.Input.Path /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_scope_hyphen_token.Input.Headers + public var headers: Operations.AppsScopeToken.Input.Headers /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The access token used to authenticate to the GitHub API. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/access_token`. - public var access_token: Swift.String + public var accessToken: Swift.String /// The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/target`. @@ -8217,7 +8274,7 @@ public enum Operations { /// The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/target_id`. - public var target_id: Swift.Int? + public var targetId: Swift.Int? /// The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/repositories`. @@ -8225,46 +8282,46 @@ public enum Operations { /// The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. /// /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/repository_ids`. - public var repository_ids: [Swift.Int]? + public var repositoryIds: [Swift.Int]? /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/json/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions? - /// Creates a new `jsonPayload`. + public var permissions: Components.Schemas.AppPermissions? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - access_token: The access token used to authenticate to the GitHub API. + /// - accessToken: The access token used to authenticate to the GitHub API. /// - target: The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. - /// - target_id: The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. + /// - targetId: The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. /// - repositories: The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. - /// - repository_ids: The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. + /// - repositoryIds: The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. /// - permissions: public init( - access_token: Swift.String, + accessToken: Swift.String, target: Swift.String? = nil, - target_id: Swift.Int? = nil, + targetId: Swift.Int? = nil, repositories: [Swift.String]? = nil, - repository_ids: [Swift.Int]? = nil, - permissions: Components.Schemas.app_hyphen_permissions? = nil + repositoryIds: [Swift.Int]? = nil, + permissions: Components.Schemas.AppPermissions? = nil ) { - self.access_token = access_token + self.accessToken = accessToken self.target = target - self.target_id = target_id + self.targetId = targetId self.repositories = repositories - self.repository_ids = repository_ids + self.repositoryIds = repositoryIds self.permissions = permissions } public enum CodingKeys: String, CodingKey { - case access_token + case accessToken = "access_token" case target - case target_id + case targetId = "target_id" case repositories - case repository_ids + case repositoryIds = "repository_ids" case permissions } } /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/requestBody/content/application\/json`. - case json(Operations.apps_sol_scope_hyphen_token.Input.Body.jsonPayload) + case json(Operations.AppsScopeToken.Input.Body.JsonPayload) } - public var body: Operations.apps_sol_scope_hyphen_token.Input.Body + public var body: Operations.AppsScopeToken.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8272,9 +8329,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.apps_sol_scope_hyphen_token.Input.Path, - headers: Operations.apps_sol_scope_hyphen_token.Input.Headers = .init(), - body: Operations.apps_sol_scope_hyphen_token.Input.Body + path: Operations.AppsScopeToken.Input.Path, + headers: Operations.AppsScopeToken.Input.Headers = .init(), + body: Operations.AppsScopeToken.Input.Body ) { self.path = path self.headers = headers @@ -8286,12 +8343,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/applications/{client_id}/token/scoped/POST/responses/200/content/application\/json`. - case json(Components.Schemas.authorization) + case json(Components.Schemas.Authorization) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.authorization { + public var json: Components.Schemas.Authorization { get throws { switch self { case let .json(body): @@ -8301,12 +8358,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_scope_hyphen_token.Output.Ok.Body + public var body: Operations.AppsScopeToken.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_scope_hyphen_token.Output.Ok.Body) { + public init(body: Operations.AppsScopeToken.Output.Ok.Body) { self.body = body } } @@ -8315,12 +8372,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_scope_hyphen_token.Output.Ok) + case ok(Operations.AppsScopeToken.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_scope_hyphen_token.Output.Ok { + public var ok: Operations.AppsScopeToken.Output.Ok { get throws { switch self { case let .ok(response): @@ -8338,12 +8395,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8361,12 +8418,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8384,12 +8441,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8407,12 +8464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8463,42 +8520,42 @@ public enum Operations { /// /// - Remark: HTTP `GET /apps/{app_slug}`. /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)`. - public enum apps_sol_get_hyphen_by_hyphen_slug { + public enum AppsGetBySlug { public static let id: Swift.String = "apps/get-by-slug" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/apps/{app_slug}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/paths/apps/{app_slug}/GET/path/app_slug`. - public var app_slug: Components.Parameters.app_hyphen_slug + public var appSlug: Components.Parameters.AppSlug /// Creates a new `Path`. /// /// - Parameters: - /// - app_slug: - public init(app_slug: Components.Parameters.app_hyphen_slug) { - self.app_slug = app_slug + /// - appSlug: + public init(appSlug: Components.Parameters.AppSlug) { + self.appSlug = appSlug } } - public var path: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Path + public var path: Operations.AppsGetBySlug.Input.Path /// - Remark: Generated from `#/paths/apps/{app_slug}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Headers + public var headers: Operations.AppsGetBySlug.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Path, - headers: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input.Headers = .init() + path: Operations.AppsGetBySlug.Input.Path, + headers: Operations.AppsGetBySlug.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8509,12 +8566,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/apps/{app_slug}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/apps/{app_slug}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.integration) + case json(Components.Schemas.Integration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.integration { + public var json: Components.Schemas.Integration { get throws { switch self { case let .json(body): @@ -8524,12 +8581,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_by_hyphen_slug.Output.Ok.Body + public var body: Operations.AppsGetBySlug.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_by_hyphen_slug.Output.Ok.Body) { + public init(body: Operations.AppsGetBySlug.Output.Ok.Body) { self.body = body } } @@ -8538,12 +8595,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_by_hyphen_slug.Output.Ok) + case ok(Operations.AppsGetBySlug.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_by_hyphen_slug.Output.Ok { + public var ok: Operations.AppsGetBySlug.Output.Ok { get throws { switch self { case let .ok(response): @@ -8561,12 +8618,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8584,12 +8641,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8639,7 +8696,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /installation/repositories`. /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)`. - public enum apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation { + public enum AppsListReposAccessibleToInstallation { public static let id: Swift.String = "apps/list-repos-accessible-to-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/installation/repositories/GET/query`. @@ -8647,45 +8704,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/installation/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/installation/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Query + public var query: Operations.AppsListReposAccessibleToInstallation.Input.Query /// - Remark: Generated from `#/paths/installation/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Headers + public var headers: Operations.AppsListReposAccessibleToInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input.Headers = .init() + query: Operations.AppsListReposAccessibleToInstallation.Input.Query = .init(), + headers: Operations.AppsListReposAccessibleToInstallation.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8696,55 +8753,55 @@ public enum Operations { /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Headers + public var headers: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Headers /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.repository] + public var repositories: [Components.Schemas.Repository] /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/json/repository_selection`. - public var repository_selection: Swift.String? - /// Creates a new `jsonPayload`. + public var repositorySelection: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: - /// - repository_selection: + /// - repositorySelection: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.repository], - repository_selection: Swift.String? = nil + totalCount: Swift.Int, + repositories: [Components.Schemas.Repository], + repositorySelection: Swift.String? = nil ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories - self.repository_selection = repository_selection + self.repositorySelection = repositorySelection } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories - case repository_selection + case repositorySelection = "repository_selection" } } /// - Remark: Generated from `#/paths/installation/repositories/GET/responses/200/content/application\/json`. - case json(Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body.jsonPayload) + case json(Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body.jsonPayload { + public var json: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8754,15 +8811,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body + public var body: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok.Body + headers: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Headers = .init(), + body: Operations.AppsListReposAccessibleToInstallation.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8773,12 +8830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok) + case ok(Operations.AppsListReposAccessibleToInstallation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output.Ok { + public var ok: Operations.AppsListReposAccessibleToInstallation.Output.Ok { get throws { switch self { case let .ok(response): @@ -8796,12 +8853,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8819,12 +8876,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8842,12 +8907,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8899,7 +8964,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /installation/token`. /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)`. - public enum apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token { + public enum AppsRevokeInstallationAccessToken { public static let id: Swift.String = "apps/revoke-installation-access-token" public struct Input: Sendable, Hashable { /// Creates a new `Input`. @@ -8915,12 +8980,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output.NoContent) + case noContent(Operations.AppsRevokeInstallationAccessToken.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output.NoContent { + public var noContent: Operations.AppsRevokeInstallationAccessToken.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8947,7 +9020,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)`. - public enum apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account { + public enum AppsGetSubscriptionPlanForAccount { public static let id: Swift.String = "apps/get-subscription-plan-for-account" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/path`. @@ -8955,36 +9028,36 @@ public enum Operations { /// account_id parameter /// /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/path/account_id`. - public var account_id: Components.Parameters.account_hyphen_id + public var accountId: Components.Parameters.AccountId /// Creates a new `Path`. /// /// - Parameters: - /// - account_id: account_id parameter - public init(account_id: Components.Parameters.account_hyphen_id) { - self.account_id = account_id + /// - accountId: account_id parameter + public init(accountId: Components.Parameters.AccountId) { + self.accountId = accountId } } - public var path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Path + public var path: Operations.AppsGetSubscriptionPlanForAccount.Input.Path /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Headers + public var headers: Operations.AppsGetSubscriptionPlanForAccount.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Path, - headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Input.Headers = .init() + path: Operations.AppsGetSubscriptionPlanForAccount.Input.Path, + headers: Operations.AppsGetSubscriptionPlanForAccount.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8995,12 +9068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.marketplace_hyphen_purchase) + case json(Components.Schemas.MarketplacePurchase) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.marketplace_hyphen_purchase { + public var json: Components.Schemas.MarketplacePurchase { get throws { switch self { case let .json(body): @@ -9010,12 +9083,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.Ok.Body + public var body: Operations.AppsGetSubscriptionPlanForAccount.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.Ok.Body) { + public init(body: Operations.AppsGetSubscriptionPlanForAccount.Output.Ok.Body) { self.body = body } } @@ -9024,12 +9097,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.Ok) + case ok(Operations.AppsGetSubscriptionPlanForAccount.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.Ok { + public var ok: Operations.AppsGetSubscriptionPlanForAccount.Output.Ok { get throws { switch self { case let .ok(response): @@ -9046,12 +9119,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/accounts/{account_id}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -9061,12 +9134,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.NotFound.Body + public var body: Operations.AppsGetSubscriptionPlanForAccount.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.NotFound.Body) { + public init(body: Operations.AppsGetSubscriptionPlanForAccount.Output.NotFound.Body) { self.body = body } } @@ -9075,12 +9148,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.NotFound) + case notFound(Operations.AppsGetSubscriptionPlanForAccount.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account.Output.NotFound { + public var notFound: Operations.AppsGetSubscriptionPlanForAccount.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9098,12 +9171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/accounts/{account_id}/get(apps/get-subscription-plan-for-account)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9155,7 +9228,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)`. - public enum apps_sol_list_hyphen_plans { + public enum AppsListPlans { public static let id: Swift.String = "apps/list-plans" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/query`. @@ -9163,45 +9236,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_plans.Input.Query + public var query: Operations.AppsListPlans.Input.Query /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_plans.Input.Headers + public var headers: Operations.AppsListPlans.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_plans.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_plans.Input.Headers = .init() + query: Operations.AppsListPlans.Input.Query = .init(), + headers: Operations.AppsListPlans.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -9212,26 +9285,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_plans.Output.Ok.Headers + public var headers: Operations.AppsListPlans.Output.Ok.Headers /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/GET/responses/200/content/application\/json`. - case json([Components.Schemas.marketplace_hyphen_listing_hyphen_plan]) + case json([Components.Schemas.MarketplaceListingPlan]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.marketplace_hyphen_listing_hyphen_plan] { + public var json: [Components.Schemas.MarketplaceListingPlan] { get throws { switch self { case let .json(body): @@ -9241,15 +9314,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_plans.Output.Ok.Body + public var body: Operations.AppsListPlans.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_plans.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_plans.Output.Ok.Body + headers: Operations.AppsListPlans.Output.Ok.Headers = .init(), + body: Operations.AppsListPlans.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9260,12 +9333,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_plans.Output.Ok) + case ok(Operations.AppsListPlans.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_plans.Output.Ok { + public var ok: Operations.AppsListPlans.Output.Ok { get throws { switch self { case let .ok(response): @@ -9283,12 +9356,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9306,12 +9379,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/get(apps/list-plans)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9363,7 +9436,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)`. - public enum apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan { + public enum AppsListAccountsForPlan { public static let id: Swift.String = "apps/list-accounts-for-plan" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/path`. @@ -9371,76 +9444,76 @@ public enum Operations { /// The unique identifier of the plan. /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/path/plan_id`. - public var plan_id: Components.Parameters.plan_hyphen_id + public var planId: Components.Parameters.PlanId /// Creates a new `Path`. /// /// - Parameters: - /// - plan_id: The unique identifier of the plan. - public init(plan_id: Components.Parameters.plan_hyphen_id) { - self.plan_id = plan_id + /// - planId: The unique identifier of the plan. + public init(planId: Components.Parameters.PlanId) { + self.planId = planId } } - public var path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Path + public var path: Operations.AppsListAccountsForPlan.Input.Path /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query/sort`. - public var sort: Components.Parameters.sort? + public var sort: Components.Parameters.Sort? /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query/direction`. - public var direction: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Query.directionPayload? + public var direction: Operations.AppsListAccountsForPlan.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. /// - direction: To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort? = nil, - direction: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.Sort? = nil, + direction: Operations.AppsListAccountsForPlan.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Query + public var query: Operations.AppsListAccountsForPlan.Input.Query /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Headers + public var headers: Operations.AppsListAccountsForPlan.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9448,9 +9521,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Path, - query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Input.Headers = .init() + path: Operations.AppsListAccountsForPlan.Input.Path, + query: Operations.AppsListAccountsForPlan.Input.Query = .init(), + headers: Operations.AppsListAccountsForPlan.Input.Headers = .init() ) { self.path = path self.query = query @@ -9462,26 +9535,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Headers + public var headers: Operations.AppsListAccountsForPlan.Output.Ok.Headers /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/plans/{plan_id}/accounts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.marketplace_hyphen_purchase]) + case json([Components.Schemas.MarketplacePurchase]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.marketplace_hyphen_purchase] { + public var json: [Components.Schemas.MarketplacePurchase] { get throws { switch self { case let .json(body): @@ -9491,15 +9564,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Body + public var body: Operations.AppsListAccountsForPlan.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok.Body + headers: Operations.AppsListAccountsForPlan.Output.Ok.Headers = .init(), + body: Operations.AppsListAccountsForPlan.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9510,12 +9583,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok) + case ok(Operations.AppsListAccountsForPlan.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan.Output.Ok { + public var ok: Operations.AppsListAccountsForPlan.Output.Ok { get throws { switch self { case let .ok(response): @@ -9533,12 +9606,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9556,12 +9629,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9579,12 +9652,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9636,7 +9709,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/accounts/{account_id}`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)`. - public enum apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed { + public enum AppsGetSubscriptionPlanForAccountStubbed { public static let id: Swift.String = "apps/get-subscription-plan-for-account-stubbed" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/accounts/{account_id}/GET/path`. @@ -9644,36 +9717,36 @@ public enum Operations { /// account_id parameter /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/accounts/{account_id}/GET/path/account_id`. - public var account_id: Components.Parameters.account_hyphen_id + public var accountId: Components.Parameters.AccountId /// Creates a new `Path`. /// /// - Parameters: - /// - account_id: account_id parameter - public init(account_id: Components.Parameters.account_hyphen_id) { - self.account_id = account_id + /// - accountId: account_id parameter + public init(accountId: Components.Parameters.AccountId) { + self.accountId = accountId } } - public var path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Path + public var path: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Path /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/accounts/{account_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Headers + public var headers: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Path, - headers: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Input.Headers = .init() + path: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Path, + headers: Operations.AppsGetSubscriptionPlanForAccountStubbed.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9684,12 +9757,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/accounts/{account_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/accounts/{account_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.marketplace_hyphen_purchase) + case json(Components.Schemas.MarketplacePurchase) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.marketplace_hyphen_purchase { + public var json: Components.Schemas.MarketplacePurchase { get throws { switch self { case let .json(body): @@ -9699,12 +9772,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.Ok.Body + public var body: Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.Ok.Body) { + public init(body: Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.Ok.Body) { self.body = body } } @@ -9713,12 +9786,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.Ok) + case ok(Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.Ok { + public var ok: Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.Ok { get throws { switch self { case let .ok(response): @@ -9740,12 +9813,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.NotFound) + case notFound(Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.NotFound) + /// Not Found when the account has not purchased the listing + /// + /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.apps_sol_get_hyphen_subscription_hyphen_plan_hyphen_for_hyphen_account_hyphen_stubbed.Output.NotFound { + public var notFound: Operations.AppsGetSubscriptionPlanForAccountStubbed.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9763,12 +9844,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/accounts/{account_id}/get(apps/get-subscription-plan-for-account-stubbed)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9820,7 +9901,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)`. - public enum apps_sol_list_hyphen_plans_hyphen_stubbed { + public enum AppsListPlansStubbed { public static let id: Swift.String = "apps/list-plans-stubbed" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/query`. @@ -9828,45 +9909,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Query + public var query: Operations.AppsListPlansStubbed.Input.Query /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Headers + public var headers: Operations.AppsListPlansStubbed.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Input.Headers = .init() + query: Operations.AppsListPlansStubbed.Input.Query = .init(), + headers: Operations.AppsListPlansStubbed.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -9877,26 +9958,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Headers + public var headers: Operations.AppsListPlansStubbed.Output.Ok.Headers /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/GET/responses/200/content/application\/json`. - case json([Components.Schemas.marketplace_hyphen_listing_hyphen_plan]) + case json([Components.Schemas.MarketplaceListingPlan]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.marketplace_hyphen_listing_hyphen_plan] { + public var json: [Components.Schemas.MarketplaceListingPlan] { get throws { switch self { case let .json(body): @@ -9906,15 +9987,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Body + public var body: Operations.AppsListPlansStubbed.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok.Body + headers: Operations.AppsListPlansStubbed.Output.Ok.Headers = .init(), + body: Operations.AppsListPlansStubbed.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9925,12 +10006,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok) + case ok(Operations.AppsListPlansStubbed.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_plans_hyphen_stubbed.Output.Ok { + public var ok: Operations.AppsListPlansStubbed.Output.Ok { get throws { switch self { case let .ok(response): @@ -9948,12 +10029,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/get(apps/list-plans-stubbed)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10005,7 +10086,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`. /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)`. - public enum apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed { + public enum AppsListAccountsForPlanStubbed { public static let id: Swift.String = "apps/list-accounts-for-plan-stubbed" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/path`. @@ -10013,76 +10094,76 @@ public enum Operations { /// The unique identifier of the plan. /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/path/plan_id`. - public var plan_id: Components.Parameters.plan_hyphen_id + public var planId: Components.Parameters.PlanId /// Creates a new `Path`. /// /// - Parameters: - /// - plan_id: The unique identifier of the plan. - public init(plan_id: Components.Parameters.plan_hyphen_id) { - self.plan_id = plan_id + /// - planId: The unique identifier of the plan. + public init(planId: Components.Parameters.PlanId) { + self.planId = planId } } - public var path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Path + public var path: Operations.AppsListAccountsForPlanStubbed.Input.Path /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query/sort`. - public var sort: Components.Parameters.sort? + public var sort: Components.Parameters.Sort? /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query/direction`. - public var direction: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Query.directionPayload? + public var direction: Operations.AppsListAccountsForPlanStubbed.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. /// - direction: To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort? = nil, - direction: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.Sort? = nil, + direction: Operations.AppsListAccountsForPlanStubbed.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Query + public var query: Operations.AppsListAccountsForPlanStubbed.Input.Query /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Headers + public var headers: Operations.AppsListAccountsForPlanStubbed.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10090,9 +10171,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Path, - query: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Input.Headers = .init() + path: Operations.AppsListAccountsForPlanStubbed.Input.Path, + query: Operations.AppsListAccountsForPlanStubbed.Input.Query = .init(), + headers: Operations.AppsListAccountsForPlanStubbed.Input.Headers = .init() ) { self.path = path self.query = query @@ -10104,26 +10185,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Headers + public var headers: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Headers /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/marketplace_listing/stubbed/plans/{plan_id}/accounts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.marketplace_hyphen_purchase]) + case json([Components.Schemas.MarketplacePurchase]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.marketplace_hyphen_purchase] { + public var json: [Components.Schemas.MarketplacePurchase] { get throws { switch self { case let .json(body): @@ -10133,15 +10214,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Body + public var body: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok.Body + headers: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Headers = .init(), + body: Operations.AppsListAccountsForPlanStubbed.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10152,12 +10233,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok) + case ok(Operations.AppsListAccountsForPlanStubbed.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_accounts_hyphen_for_hyphen_plan_hyphen_stubbed.Output.Ok { + public var ok: Operations.AppsListAccountsForPlanStubbed.Output.Ok { get throws { switch self { case let .ok(response): @@ -10175,12 +10256,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//marketplace_listing/stubbed/plans/{plan_id}/accounts/get(apps/list-accounts-for-plan-stubbed)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10232,7 +10313,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/installation`. /// - Remark: Generated from `#/paths//orgs/{org}/installation/get(apps/get-org-installation)`. - public enum apps_sol_get_hyphen_org_hyphen_installation { + public enum AppsGetOrgInstallation { public static let id: Swift.String = "apps/get-org-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/installation/GET/path`. @@ -10240,36 +10321,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/installation/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Path + public var path: Operations.AppsGetOrgInstallation.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/installation/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Headers + public var headers: Operations.AppsGetOrgInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_org_hyphen_installation.Input.Headers = .init() + path: Operations.AppsGetOrgInstallation.Input.Path, + headers: Operations.AppsGetOrgInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10280,12 +10361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/installation/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/installation/GET/responses/200/content/application\/json`. - case json(Components.Schemas.installation) + case json(Components.Schemas.Installation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.installation { + public var json: Components.Schemas.Installation { get throws { switch self { case let .json(body): @@ -10295,12 +10376,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_org_hyphen_installation.Output.Ok.Body + public var body: Operations.AppsGetOrgInstallation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_org_hyphen_installation.Output.Ok.Body) { + public init(body: Operations.AppsGetOrgInstallation.Output.Ok.Body) { self.body = body } } @@ -10309,12 +10390,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/installation/get(apps/get-org-installation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_org_hyphen_installation.Output.Ok) + case ok(Operations.AppsGetOrgInstallation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_org_hyphen_installation.Output.Ok { + public var ok: Operations.AppsGetOrgInstallation.Output.Ok { get throws { switch self { case let .ok(response): @@ -10366,7 +10447,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/installation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)`. - public enum apps_sol_get_hyphen_repo_hyphen_installation { + public enum AppsGetRepoInstallation { public static let id: Swift.String = "apps/get-repo-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/path`. @@ -10374,45 +10455,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Path + public var path: Operations.AppsGetRepoInstallation.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Headers + public var headers: Operations.AppsGetRepoInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Input.Headers = .init() + path: Operations.AppsGetRepoInstallation.Input.Path, + headers: Operations.AppsGetRepoInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10423,12 +10504,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/installation/GET/responses/200/content/application\/json`. - case json(Components.Schemas.installation) + case json(Components.Schemas.Installation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.installation { + public var json: Components.Schemas.Installation { get throws { switch self { case let .json(body): @@ -10438,12 +10519,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output.Ok.Body + public var body: Operations.AppsGetRepoInstallation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output.Ok.Body) { + public init(body: Operations.AppsGetRepoInstallation.Output.Ok.Body) { self.body = body } } @@ -10452,12 +10533,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output.Ok) + case ok(Operations.AppsGetRepoInstallation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_repo_hyphen_installation.Output.Ok { + public var ok: Operations.AppsGetRepoInstallation.Output.Ok { get throws { switch self { case let .ok(response): @@ -10475,12 +10556,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -10498,12 +10579,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/installation/get(apps/get-repo-installation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10557,7 +10638,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/installations`. /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)`. - public enum apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user { + public enum AppsListInstallationsForAuthenticatedUser { public static let id: Swift.String = "apps/list-installations-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/GET/query`. @@ -10565,45 +10646,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/installations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/installations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.AppsListInstallationsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/installations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.AppsListInstallationsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.AppsListInstallationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListInstallationsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -10614,49 +10695,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/content/json/installations`. - public var installations: [Components.Schemas.installation] - /// Creates a new `jsonPayload`. + public var installations: [Components.Schemas.Installation] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - installations: public init( - total_count: Swift.Int, - installations: [Components.Schemas.installation] + totalCount: Swift.Int, + installations: [Components.Schemas.Installation] ) { - self.total_count = total_count + self.totalCount = totalCount self.installations = installations } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case installations } } /// - Remark: Generated from `#/paths/user/installations/GET/responses/200/content/application\/json`. - case json(Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10666,15 +10747,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10685,12 +10766,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_installations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.AppsListInstallationsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10708,12 +10789,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -10731,12 +10820,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10754,12 +10843,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/get(apps/list-installations-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10813,7 +10902,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/installations/{installation_id}/repositories`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)`. - public enum apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user { + public enum AppsListInstallationReposForAuthenticatedUser { public static let id: Swift.String = "apps/list-installation-repos-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/path`. @@ -10821,52 +10910,52 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - public init(installation_id: Components.Parameters.installation_hyphen_id) { - self.installation_id = installation_id + /// - installationId: The unique identifier of the installation. + public init(installationId: Components.Parameters.InstallationId) { + self.installationId = installationId } } - public var path: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10874,9 +10963,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Path, + query: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListInstallationReposForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10888,55 +10977,55 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/repository_selection`. - public var repository_selection: Swift.String? + public var repositorySelection: Swift.String? /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.Repository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - repository_selection: + /// - totalCount: + /// - repositorySelection: /// - repositories: public init( - total_count: Swift.Int, - repository_selection: Swift.String? = nil, - repositories: [Components.Schemas.repository] + totalCount: Swift.Int, + repositorySelection: Swift.String? = nil, + repositories: [Components.Schemas.Repository] ) { - self.total_count = total_count - self.repository_selection = repository_selection + self.totalCount = totalCount + self.repositorySelection = repositorySelection self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count - case repository_selection + case totalCount = "total_count" + case repositorySelection = "repository_selection" case repositories } } /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10946,15 +11035,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10965,12 +11054,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_installation_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.AppsListInstallationReposForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10988,12 +11077,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11011,12 +11100,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11034,12 +11123,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/get(apps/list-installation-repos-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11091,7 +11188,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)`. - public enum apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user { + public enum AppsAddRepoToInstallationForAuthenticatedUser { public static let id: Swift.String = "apps/add-repo-to-installation-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/PUT/path`. @@ -11099,45 +11196,45 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/PUT/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - /// - repository_id: The unique identifier of the repository. + /// - installationId: The unique identifier of the installation. + /// - repositoryId: The unique identifier of the repository. public init( - installation_id: Components.Parameters.installation_hyphen_id, - repository_id: Components.Parameters.repository_hyphen_id + installationId: Components.Parameters.InstallationId, + repositoryId: Components.Parameters.RepositoryId ) { - self.installation_id = installation_id - self.repository_id = repository_id + self.installationId = installationId + self.repositoryId = repositoryId } } - public var path: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Path, + headers: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11153,12 +11250,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.AppsAddRepoToInstallationForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.AppsAddRepoToInstallationForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11176,12 +11281,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11199,12 +11304,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11222,12 +11335,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11279,7 +11392,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/installations/{installation_id}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)`. - public enum apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user { + public enum AppsRemoveRepoFromInstallationForAuthenticatedUser { public static let id: Swift.String = "apps/remove-repo-from-installation-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/DELETE/path`. @@ -11287,45 +11400,45 @@ public enum Operations { /// The unique identifier of the installation. /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/DELETE/path/installation_id`. - public var installation_id: Components.Parameters.installation_hyphen_id + public var installationId: Components.Parameters.InstallationId /// The unique identifier of the repository. /// /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id + public var repositoryId: Components.Parameters.RepositoryId /// Creates a new `Path`. /// /// - Parameters: - /// - installation_id: The unique identifier of the installation. - /// - repository_id: The unique identifier of the repository. + /// - installationId: The unique identifier of the installation. + /// - repositoryId: The unique identifier of the repository. public init( - installation_id: Components.Parameters.installation_hyphen_id, - repository_id: Components.Parameters.repository_hyphen_id + installationId: Components.Parameters.InstallationId, + repositoryId: Components.Parameters.RepositoryId ) { - self.installation_id = installation_id - self.repository_id = repository_id + self.installationId = installationId + self.repositoryId = repositoryId } } - public var path: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/installations/{installation_id}/repositories/{repository_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Path, + headers: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11341,12 +11454,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11364,12 +11485,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11387,12 +11508,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11410,12 +11539,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11437,12 +11566,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.UnprocessableContent) + case unprocessableContent(Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output.UnprocessableContent) + /// Returned when the application is installed on `all` repositories in the organization, or if this request would remove the last repository that the application has access to in the organization. + /// + /// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output.UnprocessableContent { + public var unprocessableContent: Operations.AppsRemoveRepoFromInstallationForAuthenticatedUser.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -11492,7 +11629,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/marketplace_purchases`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)`. - public enum apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user { + public enum AppsListSubscriptionsForAuthenticatedUser { public static let id: Swift.String = "apps/list-subscriptions-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/query`. @@ -11500,45 +11637,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -11549,26 +11686,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/GET/responses/200/content/application\/json`. - case json([Components.Schemas.user_hyphen_marketplace_hyphen_purchase]) + case json([Components.Schemas.UserMarketplacePurchase]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.user_hyphen_marketplace_hyphen_purchase] { + public var json: [Components.Schemas.UserMarketplacePurchase] { get throws { switch self { case let .json(body): @@ -11578,15 +11715,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11597,12 +11734,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.AppsListSubscriptionsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11620,12 +11757,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11643,12 +11788,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -11666,12 +11811,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11721,7 +11866,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/marketplace_purchases/stubbed`. /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)`. - public enum apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed { + public enum AppsListSubscriptionsForAuthenticatedUserStubbed { public static let id: Swift.String = "apps/list-subscriptions-for-authenticated-user-stubbed" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/query`. @@ -11729,45 +11874,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Query + public var query: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Query /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Headers + public var headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Query = .init(), - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Input.Headers = .init() + query: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Query = .init(), + headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -11778,26 +11923,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Headers + public var headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/marketplace_purchases/stubbed/GET/responses/200/content/application\/json`. - case json([Components.Schemas.user_hyphen_marketplace_hyphen_purchase]) + case json([Components.Schemas.UserMarketplacePurchase]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.user_hyphen_marketplace_hyphen_purchase] { + public var json: [Components.Schemas.UserMarketplacePurchase] { get throws { switch self { case let .json(body): @@ -11807,15 +11952,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Body + public var body: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Headers = .init(), - body: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok.Body + headers: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Headers = .init(), + body: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11826,12 +11971,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok) + case ok(Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_list_hyphen_subscriptions_hyphen_for_hyphen_authenticated_hyphen_user_hyphen_stubbed.Output.Ok { + public var ok: Operations.AppsListSubscriptionsForAuthenticatedUserStubbed.Output.Ok { get throws { switch self { case let .ok(response): @@ -11849,12 +11994,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11872,12 +12025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -11929,7 +12082,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/installation`. /// - Remark: Generated from `#/paths//users/{username}/installation/get(apps/get-user-installation)`. - public enum apps_sol_get_hyphen_user_hyphen_installation { + public enum AppsGetUserInstallation { public static let id: Swift.String = "apps/get-user-installation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/installation/GET/path`. @@ -11937,36 +12090,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/installation/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Path + public var path: Operations.AppsGetUserInstallation.Input.Path /// - Remark: Generated from `#/paths/users/{username}/installation/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Headers + public var headers: Operations.AppsGetUserInstallation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Path, - headers: Operations.apps_sol_get_hyphen_user_hyphen_installation.Input.Headers = .init() + path: Operations.AppsGetUserInstallation.Input.Path, + headers: Operations.AppsGetUserInstallation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11977,12 +12130,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/installation/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/installation/GET/responses/200/content/application\/json`. - case json(Components.Schemas.installation) + case json(Components.Schemas.Installation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.installation { + public var json: Components.Schemas.Installation { get throws { switch self { case let .json(body): @@ -11992,12 +12145,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.apps_sol_get_hyphen_user_hyphen_installation.Output.Ok.Body + public var body: Operations.AppsGetUserInstallation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.apps_sol_get_hyphen_user_hyphen_installation.Output.Ok.Body) { + public init(body: Operations.AppsGetUserInstallation.Output.Ok.Body) { self.body = body } } @@ -12006,12 +12159,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/installation/get(apps/get-user-installation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.apps_sol_get_hyphen_user_hyphen_installation.Output.Ok) + case ok(Operations.AppsGetUserInstallation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.apps_sol_get_hyphen_user_hyphen_installation.Output.Ok { + public var ok: Operations.AppsGetUserInstallation.Output.Ok { get throws { switch self { case let .ok(response): From 303339829f2306af29116c922d8c5e47a020c1cb Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:00:10 -0700 Subject: [PATCH 06/46] Commit via running ake Sources/billing --- Sources/billing/Client.swift | 76 ++-- Sources/billing/Types.swift | 805 ++++++++++++++++++----------------- 2 files changed, 445 insertions(+), 436 deletions(-) diff --git a/Sources/billing/Client.swift b/Sources/billing/Client.swift index ca1a2b7197..fdabab8fdf 100644 --- a/Sources/billing/Client.swift +++ b/Sources/billing/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /organizations/{org}/settings/billing/usage`. /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)`. - public func billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Output { + public func billingGetGithubBillingUsageReportOrg(_ input: Operations.BillingGetGithubBillingUsageReportOrg.Input) async throws -> Operations.BillingGetGithubBillingUsageReportOrg.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.id, + forOperation: Operations.BillingGetGithubBillingUsageReportOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/organizations/{}/settings/billing/usage", @@ -100,7 +100,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.billing_usage_report_org.Body + let body: Components.Responses.BillingUsageReportOrg.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -110,7 +110,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.billing_hyphen_usage_hyphen_report.self, + Components.Schemas.BillingUsageReport.self, from: responseBody, transforming: { value in .json(value) @@ -122,7 +122,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -133,7 +133,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -141,10 +141,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -153,7 +153,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -163,7 +163,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -175,7 +175,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -185,7 +185,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -197,7 +197,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -207,7 +207,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -239,10 +239,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/actions`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/actions/get(billing/get-github-actions-billing-org)`. - public func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output { + public func billingGetGithubActionsBillingOrg(_ input: Operations.BillingGetGithubActionsBillingOrg.Input) async throws -> Operations.BillingGetGithubActionsBillingOrg.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.id, + forOperation: Operations.BillingGetGithubActionsBillingOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/billing/actions", @@ -265,7 +265,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output.Ok.Body + let body: Operations.BillingGetGithubActionsBillingOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -275,7 +275,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_billing_hyphen_usage.self, + Components.Schemas.ActionsBillingUsage.self, from: responseBody, transforming: { value in .json(value) @@ -307,10 +307,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/packages/get(billing/get-github-packages-billing-org)`. - public func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output { + public func billingGetGithubPackagesBillingOrg(_ input: Operations.BillingGetGithubPackagesBillingOrg.Input) async throws -> Operations.BillingGetGithubPackagesBillingOrg.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.id, + forOperation: Operations.BillingGetGithubPackagesBillingOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/billing/packages", @@ -333,7 +333,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output.Ok.Body + let body: Operations.BillingGetGithubPackagesBillingOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -343,7 +343,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.packages_hyphen_billing_hyphen_usage.self, + Components.Schemas.PackagesBillingUsage.self, from: responseBody, transforming: { value in .json(value) @@ -375,10 +375,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-org)`. - public func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output { + public func billingGetSharedStorageBillingOrg(_ input: Operations.BillingGetSharedStorageBillingOrg.Input) async throws -> Operations.BillingGetSharedStorageBillingOrg.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.id, + forOperation: Operations.BillingGetSharedStorageBillingOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/billing/shared-storage", @@ -401,7 +401,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output.Ok.Body + let body: Operations.BillingGetSharedStorageBillingOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -411,7 +411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.combined_hyphen_billing_hyphen_usage.self, + Components.Schemas.CombinedBillingUsage.self, from: responseBody, transforming: { value in .json(value) @@ -443,10 +443,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/actions`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/actions/get(billing/get-github-actions-billing-user)`. - public func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output { + public func billingGetGithubActionsBillingUser(_ input: Operations.BillingGetGithubActionsBillingUser.Input) async throws -> Operations.BillingGetGithubActionsBillingUser.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.id, + forOperation: Operations.BillingGetGithubActionsBillingUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/settings/billing/actions", @@ -469,7 +469,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output.Ok.Body + let body: Operations.BillingGetGithubActionsBillingUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -479,7 +479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.actions_hyphen_billing_hyphen_usage.self, + Components.Schemas.ActionsBillingUsage.self, from: responseBody, transforming: { value in .json(value) @@ -511,10 +511,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/packages`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/packages/get(billing/get-github-packages-billing-user)`. - public func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output { + public func billingGetGithubPackagesBillingUser(_ input: Operations.BillingGetGithubPackagesBillingUser.Input) async throws -> Operations.BillingGetGithubPackagesBillingUser.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.id, + forOperation: Operations.BillingGetGithubPackagesBillingUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/settings/billing/packages", @@ -537,7 +537,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output.Ok.Body + let body: Operations.BillingGetGithubPackagesBillingUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -547,7 +547,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.packages_hyphen_billing_hyphen_usage.self, + Components.Schemas.PackagesBillingUsage.self, from: responseBody, transforming: { value in .json(value) @@ -579,10 +579,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-user)`. - public func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output { + public func billingGetSharedStorageBillingUser(_ input: Operations.BillingGetSharedStorageBillingUser.Input) async throws -> Operations.BillingGetSharedStorageBillingUser.Output { try await client.send( input: input, - forOperation: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.id, + forOperation: Operations.BillingGetSharedStorageBillingUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/settings/billing/shared-storage", @@ -605,7 +605,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output.Ok.Body + let body: Operations.BillingGetSharedStorageBillingUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -615,7 +615,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.combined_hyphen_billing_hyphen_usage.self, + Components.Schemas.CombinedBillingUsage.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/billing/Types.swift b/Sources/billing/Types.swift index 607928e5ff..549411ba67 100644 --- a/Sources/billing/Types.swift +++ b/Sources/billing/Types.swift @@ -19,7 +19,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /organizations/{org}/settings/billing/usage`. /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)`. - func billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Output + func billingGetGithubBillingUsageReportOrg(_ input: Operations.BillingGetGithubBillingUsageReportOrg.Input) async throws -> Operations.BillingGetGithubBillingUsageReportOrg.Output /// Get GitHub Actions billing for an organization /// /// Gets the summary of the free and paid GitHub Actions minutes used. @@ -30,7 +30,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/actions`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/actions/get(billing/get-github-actions-billing-org)`. - func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output + func billingGetGithubActionsBillingOrg(_ input: Operations.BillingGetGithubActionsBillingOrg.Input) async throws -> Operations.BillingGetGithubActionsBillingOrg.Output /// Get GitHub Packages billing for an organization /// /// Gets the free and paid storage used for GitHub Packages in gigabytes. @@ -41,7 +41,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/packages/get(billing/get-github-packages-billing-org)`. - func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output + func billingGetGithubPackagesBillingOrg(_ input: Operations.BillingGetGithubPackagesBillingOrg.Input) async throws -> Operations.BillingGetGithubPackagesBillingOrg.Output /// Get shared storage billing for an organization /// /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages. @@ -52,7 +52,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-org)`. - func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org(_ input: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output + func billingGetSharedStorageBillingOrg(_ input: Operations.BillingGetSharedStorageBillingOrg.Input) async throws -> Operations.BillingGetSharedStorageBillingOrg.Output /// Get GitHub Actions billing for a user /// /// Gets the summary of the free and paid GitHub Actions minutes used. @@ -63,7 +63,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/actions`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/actions/get(billing/get-github-actions-billing-user)`. - func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output + func billingGetGithubActionsBillingUser(_ input: Operations.BillingGetGithubActionsBillingUser.Input) async throws -> Operations.BillingGetGithubActionsBillingUser.Output /// Get GitHub Packages billing for a user /// /// Gets the free and paid storage used for GitHub Packages in gigabytes. @@ -74,7 +74,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/packages`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/packages/get(billing/get-github-packages-billing-user)`. - func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output + func billingGetGithubPackagesBillingUser(_ input: Operations.BillingGetGithubPackagesBillingUser.Input) async throws -> Operations.BillingGetGithubPackagesBillingUser.Output /// Get shared storage billing for a user /// /// Gets the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages. @@ -85,7 +85,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-user)`. - func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user(_ input: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output + func billingGetSharedStorageBillingUser(_ input: Operations.BillingGetSharedStorageBillingUser.Input) async throws -> Operations.BillingGetSharedStorageBillingUser.Output } /// Convenience overloads for operation inputs. @@ -98,12 +98,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /organizations/{org}/settings/billing/usage`. /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)`. - public func billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org( - path: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Path, - query: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Query = .init(), - headers: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Output { - try await billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org(Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input( + public func billingGetGithubBillingUsageReportOrg( + path: Operations.BillingGetGithubBillingUsageReportOrg.Input.Path, + query: Operations.BillingGetGithubBillingUsageReportOrg.Input.Query = .init(), + headers: Operations.BillingGetGithubBillingUsageReportOrg.Input.Headers = .init() + ) async throws -> Operations.BillingGetGithubBillingUsageReportOrg.Output { + try await billingGetGithubBillingUsageReportOrg(Operations.BillingGetGithubBillingUsageReportOrg.Input( path: path, query: query, headers: headers @@ -119,11 +119,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/actions`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/actions/get(billing/get-github-actions-billing-org)`. - public func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org( - path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output { - try await billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org(Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input( + public func billingGetGithubActionsBillingOrg( + path: Operations.BillingGetGithubActionsBillingOrg.Input.Path, + headers: Operations.BillingGetGithubActionsBillingOrg.Input.Headers = .init() + ) async throws -> Operations.BillingGetGithubActionsBillingOrg.Output { + try await billingGetGithubActionsBillingOrg(Operations.BillingGetGithubActionsBillingOrg.Input( path: path, headers: headers )) @@ -138,11 +138,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/packages/get(billing/get-github-packages-billing-org)`. - public func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org( - path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output { - try await billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org(Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input( + public func billingGetGithubPackagesBillingOrg( + path: Operations.BillingGetGithubPackagesBillingOrg.Input.Path, + headers: Operations.BillingGetGithubPackagesBillingOrg.Input.Headers = .init() + ) async throws -> Operations.BillingGetGithubPackagesBillingOrg.Output { + try await billingGetGithubPackagesBillingOrg(Operations.BillingGetGithubPackagesBillingOrg.Input( path: path, headers: headers )) @@ -157,11 +157,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-org)`. - public func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org( - path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output { - try await billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org(Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input( + public func billingGetSharedStorageBillingOrg( + path: Operations.BillingGetSharedStorageBillingOrg.Input.Path, + headers: Operations.BillingGetSharedStorageBillingOrg.Input.Headers = .init() + ) async throws -> Operations.BillingGetSharedStorageBillingOrg.Output { + try await billingGetSharedStorageBillingOrg(Operations.BillingGetSharedStorageBillingOrg.Input( path: path, headers: headers )) @@ -176,11 +176,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/actions`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/actions/get(billing/get-github-actions-billing-user)`. - public func billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user( - path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output { - try await billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user(Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input( + public func billingGetGithubActionsBillingUser( + path: Operations.BillingGetGithubActionsBillingUser.Input.Path, + headers: Operations.BillingGetGithubActionsBillingUser.Input.Headers = .init() + ) async throws -> Operations.BillingGetGithubActionsBillingUser.Output { + try await billingGetGithubActionsBillingUser(Operations.BillingGetGithubActionsBillingUser.Input( path: path, headers: headers )) @@ -195,11 +195,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/packages`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/packages/get(billing/get-github-packages-billing-user)`. - public func billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user( - path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output { - try await billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user(Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input( + public func billingGetGithubPackagesBillingUser( + path: Operations.BillingGetGithubPackagesBillingUser.Input.Path, + headers: Operations.BillingGetGithubPackagesBillingUser.Input.Headers = .init() + ) async throws -> Operations.BillingGetGithubPackagesBillingUser.Output { + try await billingGetGithubPackagesBillingUser(Operations.BillingGetGithubPackagesBillingUser.Input( path: path, headers: headers )) @@ -214,11 +214,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-user)`. - public func billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user( - path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output { - try await billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user(Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input( + public func billingGetSharedStorageBillingUser( + path: Operations.BillingGetSharedStorageBillingUser.Input.Path, + headers: Operations.BillingGetSharedStorageBillingUser.Input.Headers = .init() + ) async throws -> Operations.BillingGetSharedStorageBillingUser.Output { + try await billingGetSharedStorageBillingUser(Operations.BillingGetSharedStorageBillingUser.Input( path: path, headers: headers )) @@ -227,6 +227,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -242,36 +251,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -279,11 +288,11 @@ public enum Components { /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -292,25 +301,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -318,7 +327,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -326,54 +335,54 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/billing-usage-report`. - public struct billing_hyphen_usage_hyphen_report: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload`. - public struct usageItemsPayloadPayload: Codable, Hashable, Sendable { + public struct BillingUsageReport: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload`. + public struct UsageItemsPayloadPayload: Codable, Hashable, Sendable { /// Date of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/date`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/date`. public var date: Swift.String /// Product name. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/product`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/product`. public var product: Swift.String /// SKU name. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/sku`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/sku`. public var sku: Swift.String /// Quantity of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/quantity`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/quantity`. public var quantity: Swift.Int /// Unit type of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/unitType`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/unitType`. public var unitType: Swift.String /// Price per unit of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/pricePerUnit`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/pricePerUnit`. public var pricePerUnit: Swift.Double /// Gross amount of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/grossAmount`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/grossAmount`. public var grossAmount: Swift.Double /// Discount amount of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/discountAmount`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/discountAmount`. public var discountAmount: Swift.Double /// Net amount of the usage line item. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/netAmount`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/netAmount`. public var netAmount: Swift.Double /// Name of the organization. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/organizationName`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/organizationName`. public var organizationName: Swift.String /// Name of the repository. /// - /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItemsPayload/repositoryName`. + /// - Remark: Generated from `#/components/schemas/billing-usage-report/UsageItemsPayload/repositoryName`. public var repositoryName: Swift.String? - /// Creates a new `usageItemsPayloadPayload`. + /// Creates a new `UsageItemsPayloadPayload`. /// /// - Parameters: /// - date: Date of the usage line item. @@ -427,14 +436,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItems`. - public typealias usageItemsPayload = [Components.Schemas.billing_hyphen_usage_hyphen_report.usageItemsPayloadPayload] + public typealias UsageItemsPayload = [Components.Schemas.BillingUsageReport.UsageItemsPayloadPayload] /// - Remark: Generated from `#/components/schemas/billing-usage-report/usageItems`. - public var usageItems: Components.Schemas.billing_hyphen_usage_hyphen_report.usageItemsPayload? - /// Creates a new `billing_hyphen_usage_hyphen_report`. + public var usageItems: Components.Schemas.BillingUsageReport.UsageItemsPayload? + /// Creates a new `BillingUsageReport`. /// /// - Parameters: /// - usageItems: - public init(usageItems: Components.Schemas.billing_hyphen_usage_hyphen_report.usageItemsPayload? = nil) { + public init(usageItems: Components.Schemas.BillingUsageReport.UsageItemsPayload? = nil) { self.usageItems = usageItems } public enum CodingKeys: String, CodingKey { @@ -442,245 +451,245 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/actions-billing-usage`. - public struct actions_hyphen_billing_hyphen_usage: Codable, Hashable, Sendable { + public struct ActionsBillingUsage: Codable, Hashable, Sendable { /// The sum of the free and paid GitHub Actions minutes used. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/total_minutes_used`. - public var total_minutes_used: Swift.Int + public var totalMinutesUsed: Swift.Int /// The total paid GitHub Actions minutes used. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/total_paid_minutes_used`. - public var total_paid_minutes_used: Swift.Int + public var totalPaidMinutesUsed: Swift.Int /// The amount of free GitHub Actions minutes available. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/included_minutes`. - public var included_minutes: Swift.Int + public var includedMinutes: Swift.Int /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown`. - public struct minutes_used_breakdownPayload: Codable, Hashable, Sendable { + public struct MinutesUsedBreakdownPayload: Codable, Hashable, Sendable { /// Total minutes used on Ubuntu runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/UBUNTU`. - public var UBUNTU: Swift.Int? + public var ubuntu: Swift.Int? /// Total minutes used on macOS runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/MACOS`. - public var MACOS: Swift.Int? + public var macos: Swift.Int? /// Total minutes used on Windows runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/WINDOWS`. - public var WINDOWS: Swift.Int? + public var windows: Swift.Int? /// Total minutes used on Ubuntu 4 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/ubuntu_4_core`. - public var ubuntu_4_core: Swift.Int? + public var ubuntu4Core: Swift.Int? /// Total minutes used on Ubuntu 8 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/ubuntu_8_core`. - public var ubuntu_8_core: Swift.Int? + public var ubuntu8Core: Swift.Int? /// Total minutes used on Ubuntu 16 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/ubuntu_16_core`. - public var ubuntu_16_core: Swift.Int? + public var ubuntu16Core: Swift.Int? /// Total minutes used on Ubuntu 32 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/ubuntu_32_core`. - public var ubuntu_32_core: Swift.Int? + public var ubuntu32Core: Swift.Int? /// Total minutes used on Ubuntu 64 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/ubuntu_64_core`. - public var ubuntu_64_core: Swift.Int? + public var ubuntu64Core: Swift.Int? /// Total minutes used on Windows 4 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/windows_4_core`. - public var windows_4_core: Swift.Int? + public var windows4Core: Swift.Int? /// Total minutes used on Windows 8 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/windows_8_core`. - public var windows_8_core: Swift.Int? + public var windows8Core: Swift.Int? /// Total minutes used on Windows 16 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/windows_16_core`. - public var windows_16_core: Swift.Int? + public var windows16Core: Swift.Int? /// Total minutes used on Windows 32 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/windows_32_core`. - public var windows_32_core: Swift.Int? + public var windows32Core: Swift.Int? /// Total minutes used on Windows 64 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/windows_64_core`. - public var windows_64_core: Swift.Int? + public var windows64Core: Swift.Int? /// Total minutes used on macOS 12 core runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/macos_12_core`. - public var macos_12_core: Swift.Int? + public var macos12Core: Swift.Int? /// Total minutes used on all runner machines. /// /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown/total`. public var total: Swift.Int? - /// Creates a new `minutes_used_breakdownPayload`. + /// Creates a new `MinutesUsedBreakdownPayload`. /// /// - Parameters: - /// - UBUNTU: Total minutes used on Ubuntu runner machines. - /// - MACOS: Total minutes used on macOS runner machines. - /// - WINDOWS: Total minutes used on Windows runner machines. - /// - ubuntu_4_core: Total minutes used on Ubuntu 4 core runner machines. - /// - ubuntu_8_core: Total minutes used on Ubuntu 8 core runner machines. - /// - ubuntu_16_core: Total minutes used on Ubuntu 16 core runner machines. - /// - ubuntu_32_core: Total minutes used on Ubuntu 32 core runner machines. - /// - ubuntu_64_core: Total minutes used on Ubuntu 64 core runner machines. - /// - windows_4_core: Total minutes used on Windows 4 core runner machines. - /// - windows_8_core: Total minutes used on Windows 8 core runner machines. - /// - windows_16_core: Total minutes used on Windows 16 core runner machines. - /// - windows_32_core: Total minutes used on Windows 32 core runner machines. - /// - windows_64_core: Total minutes used on Windows 64 core runner machines. - /// - macos_12_core: Total minutes used on macOS 12 core runner machines. + /// - ubuntu: Total minutes used on Ubuntu runner machines. + /// - macos: Total minutes used on macOS runner machines. + /// - windows: Total minutes used on Windows runner machines. + /// - ubuntu4Core: Total minutes used on Ubuntu 4 core runner machines. + /// - ubuntu8Core: Total minutes used on Ubuntu 8 core runner machines. + /// - ubuntu16Core: Total minutes used on Ubuntu 16 core runner machines. + /// - ubuntu32Core: Total minutes used on Ubuntu 32 core runner machines. + /// - ubuntu64Core: Total minutes used on Ubuntu 64 core runner machines. + /// - windows4Core: Total minutes used on Windows 4 core runner machines. + /// - windows8Core: Total minutes used on Windows 8 core runner machines. + /// - windows16Core: Total minutes used on Windows 16 core runner machines. + /// - windows32Core: Total minutes used on Windows 32 core runner machines. + /// - windows64Core: Total minutes used on Windows 64 core runner machines. + /// - macos12Core: Total minutes used on macOS 12 core runner machines. /// - total: Total minutes used on all runner machines. public init( - UBUNTU: Swift.Int? = nil, - MACOS: Swift.Int? = nil, - WINDOWS: Swift.Int? = nil, - ubuntu_4_core: Swift.Int? = nil, - ubuntu_8_core: Swift.Int? = nil, - ubuntu_16_core: Swift.Int? = nil, - ubuntu_32_core: Swift.Int? = nil, - ubuntu_64_core: Swift.Int? = nil, - windows_4_core: Swift.Int? = nil, - windows_8_core: Swift.Int? = nil, - windows_16_core: Swift.Int? = nil, - windows_32_core: Swift.Int? = nil, - windows_64_core: Swift.Int? = nil, - macos_12_core: Swift.Int? = nil, + ubuntu: Swift.Int? = nil, + macos: Swift.Int? = nil, + windows: Swift.Int? = nil, + ubuntu4Core: Swift.Int? = nil, + ubuntu8Core: Swift.Int? = nil, + ubuntu16Core: Swift.Int? = nil, + ubuntu32Core: Swift.Int? = nil, + ubuntu64Core: Swift.Int? = nil, + windows4Core: Swift.Int? = nil, + windows8Core: Swift.Int? = nil, + windows16Core: Swift.Int? = nil, + windows32Core: Swift.Int? = nil, + windows64Core: Swift.Int? = nil, + macos12Core: Swift.Int? = nil, total: Swift.Int? = nil ) { - self.UBUNTU = UBUNTU - self.MACOS = MACOS - self.WINDOWS = WINDOWS - self.ubuntu_4_core = ubuntu_4_core - self.ubuntu_8_core = ubuntu_8_core - self.ubuntu_16_core = ubuntu_16_core - self.ubuntu_32_core = ubuntu_32_core - self.ubuntu_64_core = ubuntu_64_core - self.windows_4_core = windows_4_core - self.windows_8_core = windows_8_core - self.windows_16_core = windows_16_core - self.windows_32_core = windows_32_core - self.windows_64_core = windows_64_core - self.macos_12_core = macos_12_core + self.ubuntu = ubuntu + self.macos = macos + self.windows = windows + self.ubuntu4Core = ubuntu4Core + self.ubuntu8Core = ubuntu8Core + self.ubuntu16Core = ubuntu16Core + self.ubuntu32Core = ubuntu32Core + self.ubuntu64Core = ubuntu64Core + self.windows4Core = windows4Core + self.windows8Core = windows8Core + self.windows16Core = windows16Core + self.windows32Core = windows32Core + self.windows64Core = windows64Core + self.macos12Core = macos12Core self.total = total } public enum CodingKeys: String, CodingKey { - case UBUNTU - case MACOS - case WINDOWS - case ubuntu_4_core - case ubuntu_8_core - case ubuntu_16_core - case ubuntu_32_core - case ubuntu_64_core - case windows_4_core - case windows_8_core - case windows_16_core - case windows_32_core - case windows_64_core - case macos_12_core + case ubuntu = "UBUNTU" + case macos = "MACOS" + case windows = "WINDOWS" + case ubuntu4Core = "ubuntu_4_core" + case ubuntu8Core = "ubuntu_8_core" + case ubuntu16Core = "ubuntu_16_core" + case ubuntu32Core = "ubuntu_32_core" + case ubuntu64Core = "ubuntu_64_core" + case windows4Core = "windows_4_core" + case windows8Core = "windows_8_core" + case windows16Core = "windows_16_core" + case windows32Core = "windows_32_core" + case windows64Core = "windows_64_core" + case macos12Core = "macos_12_core" case total } } /// - Remark: Generated from `#/components/schemas/actions-billing-usage/minutes_used_breakdown`. - public var minutes_used_breakdown: Components.Schemas.actions_hyphen_billing_hyphen_usage.minutes_used_breakdownPayload - /// Creates a new `actions_hyphen_billing_hyphen_usage`. + public var minutesUsedBreakdown: Components.Schemas.ActionsBillingUsage.MinutesUsedBreakdownPayload + /// Creates a new `ActionsBillingUsage`. /// /// - Parameters: - /// - total_minutes_used: The sum of the free and paid GitHub Actions minutes used. - /// - total_paid_minutes_used: The total paid GitHub Actions minutes used. - /// - included_minutes: The amount of free GitHub Actions minutes available. - /// - minutes_used_breakdown: + /// - totalMinutesUsed: The sum of the free and paid GitHub Actions minutes used. + /// - totalPaidMinutesUsed: The total paid GitHub Actions minutes used. + /// - includedMinutes: The amount of free GitHub Actions minutes available. + /// - minutesUsedBreakdown: public init( - total_minutes_used: Swift.Int, - total_paid_minutes_used: Swift.Int, - included_minutes: Swift.Int, - minutes_used_breakdown: Components.Schemas.actions_hyphen_billing_hyphen_usage.minutes_used_breakdownPayload + totalMinutesUsed: Swift.Int, + totalPaidMinutesUsed: Swift.Int, + includedMinutes: Swift.Int, + minutesUsedBreakdown: Components.Schemas.ActionsBillingUsage.MinutesUsedBreakdownPayload ) { - self.total_minutes_used = total_minutes_used - self.total_paid_minutes_used = total_paid_minutes_used - self.included_minutes = included_minutes - self.minutes_used_breakdown = minutes_used_breakdown + self.totalMinutesUsed = totalMinutesUsed + self.totalPaidMinutesUsed = totalPaidMinutesUsed + self.includedMinutes = includedMinutes + self.minutesUsedBreakdown = minutesUsedBreakdown } public enum CodingKeys: String, CodingKey { - case total_minutes_used - case total_paid_minutes_used - case included_minutes - case minutes_used_breakdown + case totalMinutesUsed = "total_minutes_used" + case totalPaidMinutesUsed = "total_paid_minutes_used" + case includedMinutes = "included_minutes" + case minutesUsedBreakdown = "minutes_used_breakdown" } } /// - Remark: Generated from `#/components/schemas/packages-billing-usage`. - public struct packages_hyphen_billing_hyphen_usage: Codable, Hashable, Sendable { + public struct PackagesBillingUsage: Codable, Hashable, Sendable { /// Sum of the free and paid storage space (GB) for GitHuub Packages. /// /// - Remark: Generated from `#/components/schemas/packages-billing-usage/total_gigabytes_bandwidth_used`. - public var total_gigabytes_bandwidth_used: Swift.Int + public var totalGigabytesBandwidthUsed: Swift.Int /// Total paid storage space (GB) for GitHuub Packages. /// /// - Remark: Generated from `#/components/schemas/packages-billing-usage/total_paid_gigabytes_bandwidth_used`. - public var total_paid_gigabytes_bandwidth_used: Swift.Int + public var totalPaidGigabytesBandwidthUsed: Swift.Int /// Free storage space (GB) for GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/packages-billing-usage/included_gigabytes_bandwidth`. - public var included_gigabytes_bandwidth: Swift.Int - /// Creates a new `packages_hyphen_billing_hyphen_usage`. + public var includedGigabytesBandwidth: Swift.Int + /// Creates a new `PackagesBillingUsage`. /// /// - Parameters: - /// - total_gigabytes_bandwidth_used: Sum of the free and paid storage space (GB) for GitHuub Packages. - /// - total_paid_gigabytes_bandwidth_used: Total paid storage space (GB) for GitHuub Packages. - /// - included_gigabytes_bandwidth: Free storage space (GB) for GitHub Packages. + /// - totalGigabytesBandwidthUsed: Sum of the free and paid storage space (GB) for GitHuub Packages. + /// - totalPaidGigabytesBandwidthUsed: Total paid storage space (GB) for GitHuub Packages. + /// - includedGigabytesBandwidth: Free storage space (GB) for GitHub Packages. public init( - total_gigabytes_bandwidth_used: Swift.Int, - total_paid_gigabytes_bandwidth_used: Swift.Int, - included_gigabytes_bandwidth: Swift.Int + totalGigabytesBandwidthUsed: Swift.Int, + totalPaidGigabytesBandwidthUsed: Swift.Int, + includedGigabytesBandwidth: Swift.Int ) { - self.total_gigabytes_bandwidth_used = total_gigabytes_bandwidth_used - self.total_paid_gigabytes_bandwidth_used = total_paid_gigabytes_bandwidth_used - self.included_gigabytes_bandwidth = included_gigabytes_bandwidth + self.totalGigabytesBandwidthUsed = totalGigabytesBandwidthUsed + self.totalPaidGigabytesBandwidthUsed = totalPaidGigabytesBandwidthUsed + self.includedGigabytesBandwidth = includedGigabytesBandwidth } public enum CodingKeys: String, CodingKey { - case total_gigabytes_bandwidth_used - case total_paid_gigabytes_bandwidth_used - case included_gigabytes_bandwidth + case totalGigabytesBandwidthUsed = "total_gigabytes_bandwidth_used" + case totalPaidGigabytesBandwidthUsed = "total_paid_gigabytes_bandwidth_used" + case includedGigabytesBandwidth = "included_gigabytes_bandwidth" } } /// - Remark: Generated from `#/components/schemas/combined-billing-usage`. - public struct combined_hyphen_billing_hyphen_usage: Codable, Hashable, Sendable { + public struct CombinedBillingUsage: Codable, Hashable, Sendable { /// Numbers of days left in billing cycle. /// /// - Remark: Generated from `#/components/schemas/combined-billing-usage/days_left_in_billing_cycle`. - public var days_left_in_billing_cycle: Swift.Int + public var daysLeftInBillingCycle: Swift.Int /// Estimated storage space (GB) used in billing cycle. /// /// - Remark: Generated from `#/components/schemas/combined-billing-usage/estimated_paid_storage_for_month`. - public var estimated_paid_storage_for_month: Swift.Int + public var estimatedPaidStorageForMonth: Swift.Int /// Estimated sum of free and paid storage space (GB) used in billing cycle. /// /// - Remark: Generated from `#/components/schemas/combined-billing-usage/estimated_storage_for_month`. - public var estimated_storage_for_month: Swift.Int - /// Creates a new `combined_hyphen_billing_hyphen_usage`. + public var estimatedStorageForMonth: Swift.Int + /// Creates a new `CombinedBillingUsage`. /// /// - Parameters: - /// - days_left_in_billing_cycle: Numbers of days left in billing cycle. - /// - estimated_paid_storage_for_month: Estimated storage space (GB) used in billing cycle. - /// - estimated_storage_for_month: Estimated sum of free and paid storage space (GB) used in billing cycle. + /// - daysLeftInBillingCycle: Numbers of days left in billing cycle. + /// - estimatedPaidStorageForMonth: Estimated storage space (GB) used in billing cycle. + /// - estimatedStorageForMonth: Estimated sum of free and paid storage space (GB) used in billing cycle. public init( - days_left_in_billing_cycle: Swift.Int, - estimated_paid_storage_for_month: Swift.Int, - estimated_storage_for_month: Swift.Int + daysLeftInBillingCycle: Swift.Int, + estimatedPaidStorageForMonth: Swift.Int, + estimatedStorageForMonth: Swift.Int ) { - self.days_left_in_billing_cycle = days_left_in_billing_cycle - self.estimated_paid_storage_for_month = estimated_paid_storage_for_month - self.estimated_storage_for_month = estimated_storage_for_month + self.daysLeftInBillingCycle = daysLeftInBillingCycle + self.estimatedPaidStorageForMonth = estimatedPaidStorageForMonth + self.estimatedStorageForMonth = estimatedStorageForMonth } public enum CodingKeys: String, CodingKey { - case days_left_in_billing_cycle - case estimated_paid_storage_for_month - case estimated_storage_for_month + case daysLeftInBillingCycle = "days_left_in_billing_cycle" + case estimatedPaidStorageForMonth = "estimated_paid_storage_for_month" + case estimatedStorageForMonth = "estimated_storage_for_month" } } } @@ -689,42 +698,42 @@ public enum Components { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year. /// /// - Remark: Generated from `#/components/parameters/billing-usage-report-year`. - public typealias billing_hyphen_usage_hyphen_report_hyphen_year = Swift.Int + public typealias BillingUsageReportYear = Swift.Int /// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used. /// /// - Remark: Generated from `#/components/parameters/billing-usage-report-month`. - public typealias billing_hyphen_usage_hyphen_report_hyphen_month = Swift.Int + public typealias BillingUsageReportMonth = Swift.Int /// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used. /// /// - Remark: Generated from `#/components/parameters/billing-usage-report-day`. - public typealias billing_hyphen_usage_hyphen_report_hyphen_day = Swift.Int + public typealias BillingUsageReportDay = Swift.Int /// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used. /// /// - Remark: Generated from `#/components/parameters/billing-usage-report-hour`. - public typealias billing_hyphen_usage_hyphen_report_hyphen_hour = Swift.Int + public typealias BillingUsageReportHour = Swift.Int /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -738,15 +747,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -758,25 +767,53 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BasicError { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Components.Responses.Forbidden.Body) { + self.body = body + } + } + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -786,54 +823,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -843,53 +880,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct billing_usage_report_org: Sendable, Hashable { + public struct BillingUsageReportOrg: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/billing_usage_report_org/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/billing_usage_report_org/content/application\/json`. - case json(Components.Schemas.billing_hyphen_usage_hyphen_report) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.billing_hyphen_usage_hyphen_report { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Components.Responses.billing_usage_report_org.Body - /// Creates a new `billing_usage_report_org`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Components.Responses.billing_usage_report_org.Body) { - self.body = body - } - } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BillingUsageReport) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BillingUsageReport { get throws { switch self { case let .json(body): @@ -899,12 +908,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. + public var body: Components.Responses.BillingUsageReportOrg.Body + /// Creates a new `BillingUsageReportOrg`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.BillingUsageReportOrg.Body) { self.body = body } } @@ -923,7 +932,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /organizations/{org}/settings/billing/usage`. /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)`. - public enum billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org { + public enum BillingGetGithubBillingUsageReportOrg { public static let id: Swift.String = "billing/get-github-billing-usage-report-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/path`. @@ -931,34 +940,34 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Path + public var path: Operations.BillingGetGithubBillingUsageReportOrg.Input.Path /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query`. public struct Query: Sendable, Hashable { /// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year. /// /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/year`. - public var year: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_year? + public var year: Components.Parameters.BillingUsageReportYear? /// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used. /// /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/month`. - public var month: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_month? + public var month: Components.Parameters.BillingUsageReportMonth? /// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used. /// /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/day`. - public var day: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_day? + public var day: Components.Parameters.BillingUsageReportDay? /// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used. /// /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/query/hour`. - public var hour: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_hour? + public var hour: Components.Parameters.BillingUsageReportHour? /// Creates a new `Query`. /// /// - Parameters: @@ -967,10 +976,10 @@ public enum Operations { /// - day: If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used. /// - hour: If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used. public init( - year: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_year? = nil, - month: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_month? = nil, - day: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_day? = nil, - hour: Components.Parameters.billing_hyphen_usage_hyphen_report_hyphen_hour? = nil + year: Components.Parameters.BillingUsageReportYear? = nil, + month: Components.Parameters.BillingUsageReportMonth? = nil, + day: Components.Parameters.BillingUsageReportDay? = nil, + hour: Components.Parameters.BillingUsageReportHour? = nil ) { self.year = year self.month = month @@ -978,19 +987,19 @@ public enum Operations { self.hour = hour } } - public var query: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Query + public var query: Operations.BillingGetGithubBillingUsageReportOrg.Input.Query /// - Remark: Generated from `#/paths/organizations/{org}/settings/billing/usage/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Headers + public var headers: Operations.BillingGetGithubBillingUsageReportOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -998,9 +1007,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Path, - query: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Query = .init(), - headers: Operations.billing_sol_get_hyphen_github_hyphen_billing_hyphen_usage_hyphen_report_hyphen_org.Input.Headers = .init() + path: Operations.BillingGetGithubBillingUsageReportOrg.Input.Path, + query: Operations.BillingGetGithubBillingUsageReportOrg.Input.Query = .init(), + headers: Operations.BillingGetGithubBillingUsageReportOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -1013,12 +1022,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Components.Responses.billing_usage_report_org) + case ok(Components.Responses.BillingUsageReportOrg) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Components.Responses.billing_usage_report_org { + public var ok: Components.Responses.BillingUsageReportOrg { get throws { switch self { case let .ok(response): @@ -1036,12 +1045,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -1059,12 +1068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -1082,12 +1091,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -1105,12 +1114,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/usage/get(billing/get-github-billing-usage-report-org)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -1130,14 +1139,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -1148,14 +1157,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -1170,7 +1179,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/actions`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/actions/get(billing/get-github-actions-billing-org)`. - public enum billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org { + public enum BillingGetGithubActionsBillingOrg { public static let id: Swift.String = "billing/get-github-actions-billing-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/actions/GET/path`. @@ -1178,36 +1187,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/actions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Path + public var path: Operations.BillingGetGithubActionsBillingOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/actions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Headers + public var headers: Operations.BillingGetGithubActionsBillingOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Input.Headers = .init() + path: Operations.BillingGetGithubActionsBillingOrg.Input.Path, + headers: Operations.BillingGetGithubActionsBillingOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1218,12 +1227,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/actions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/actions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_billing_hyphen_usage) + case json(Components.Schemas.ActionsBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.ActionsBillingUsage { get throws { switch self { case let .json(body): @@ -1233,12 +1242,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output.Ok.Body + public var body: Operations.BillingGetGithubActionsBillingOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output.Ok.Body) { + public init(body: Operations.BillingGetGithubActionsBillingOrg.Output.Ok.Body) { self.body = body } } @@ -1247,12 +1256,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/actions/get(billing/get-github-actions-billing-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output.Ok) + case ok(Operations.BillingGetGithubActionsBillingOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_org.Output.Ok { + public var ok: Operations.BillingGetGithubActionsBillingOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1306,7 +1315,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/packages/get(billing/get-github-packages-billing-org)`. - public enum billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org { + public enum BillingGetGithubPackagesBillingOrg { public static let id: Swift.String = "billing/get-github-packages-billing-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/packages/GET/path`. @@ -1314,36 +1323,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/packages/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Path + public var path: Operations.BillingGetGithubPackagesBillingOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/packages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Headers + public var headers: Operations.BillingGetGithubPackagesBillingOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Input.Headers = .init() + path: Operations.BillingGetGithubPackagesBillingOrg.Input.Path, + headers: Operations.BillingGetGithubPackagesBillingOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1354,12 +1363,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/packages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/packages/GET/responses/200/content/application\/json`. - case json(Components.Schemas.packages_hyphen_billing_hyphen_usage) + case json(Components.Schemas.PackagesBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.packages_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.PackagesBillingUsage { get throws { switch self { case let .json(body): @@ -1369,12 +1378,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output.Ok.Body + public var body: Operations.BillingGetGithubPackagesBillingOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output.Ok.Body) { + public init(body: Operations.BillingGetGithubPackagesBillingOrg.Output.Ok.Body) { self.body = body } } @@ -1383,12 +1392,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/packages/get(billing/get-github-packages-billing-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output.Ok) + case ok(Operations.BillingGetGithubPackagesBillingOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_org.Output.Ok { + public var ok: Operations.BillingGetGithubPackagesBillingOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1442,7 +1451,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-org)`. - public enum billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org { + public enum BillingGetSharedStorageBillingOrg { public static let id: Swift.String = "billing/get-shared-storage-billing-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/shared-storage/GET/path`. @@ -1450,36 +1459,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/shared-storage/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Path + public var path: Operations.BillingGetSharedStorageBillingOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/shared-storage/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Headers + public var headers: Operations.BillingGetSharedStorageBillingOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Path, - headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Input.Headers = .init() + path: Operations.BillingGetSharedStorageBillingOrg.Input.Path, + headers: Operations.BillingGetSharedStorageBillingOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1490,12 +1499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/shared-storage/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/billing/shared-storage/GET/responses/200/content/application\/json`. - case json(Components.Schemas.combined_hyphen_billing_hyphen_usage) + case json(Components.Schemas.CombinedBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.combined_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.CombinedBillingUsage { get throws { switch self { case let .json(body): @@ -1505,12 +1514,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output.Ok.Body + public var body: Operations.BillingGetSharedStorageBillingOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output.Ok.Body) { + public init(body: Operations.BillingGetSharedStorageBillingOrg.Output.Ok.Body) { self.body = body } } @@ -1519,12 +1528,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output.Ok) + case ok(Operations.BillingGetSharedStorageBillingOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_org.Output.Ok { + public var ok: Operations.BillingGetSharedStorageBillingOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1578,7 +1587,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/actions`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/actions/get(billing/get-github-actions-billing-user)`. - public enum billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user { + public enum BillingGetGithubActionsBillingUser { public static let id: Swift.String = "billing/get-github-actions-billing-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/actions/GET/path`. @@ -1586,36 +1595,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/settings/billing/actions/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Path + public var path: Operations.BillingGetGithubActionsBillingUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/settings/billing/actions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Headers + public var headers: Operations.BillingGetGithubActionsBillingUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Input.Headers = .init() + path: Operations.BillingGetGithubActionsBillingUser.Input.Path, + headers: Operations.BillingGetGithubActionsBillingUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1626,12 +1635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/actions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/actions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.actions_hyphen_billing_hyphen_usage) + case json(Components.Schemas.ActionsBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.actions_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.ActionsBillingUsage { get throws { switch self { case let .json(body): @@ -1641,12 +1650,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output.Ok.Body + public var body: Operations.BillingGetGithubActionsBillingUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output.Ok.Body) { + public init(body: Operations.BillingGetGithubActionsBillingUser.Output.Ok.Body) { self.body = body } } @@ -1655,12 +1664,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/settings/billing/actions/get(billing/get-github-actions-billing-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output.Ok) + case ok(Operations.BillingGetGithubActionsBillingUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_github_hyphen_actions_hyphen_billing_hyphen_user.Output.Ok { + public var ok: Operations.BillingGetGithubActionsBillingUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -1714,7 +1723,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/packages`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/packages/get(billing/get-github-packages-billing-user)`. - public enum billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user { + public enum BillingGetGithubPackagesBillingUser { public static let id: Swift.String = "billing/get-github-packages-billing-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/packages/GET/path`. @@ -1722,36 +1731,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/settings/billing/packages/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Path + public var path: Operations.BillingGetGithubPackagesBillingUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/settings/billing/packages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Headers + public var headers: Operations.BillingGetGithubPackagesBillingUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Input.Headers = .init() + path: Operations.BillingGetGithubPackagesBillingUser.Input.Path, + headers: Operations.BillingGetGithubPackagesBillingUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1762,12 +1771,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/packages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/packages/GET/responses/200/content/application\/json`. - case json(Components.Schemas.packages_hyphen_billing_hyphen_usage) + case json(Components.Schemas.PackagesBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.packages_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.PackagesBillingUsage { get throws { switch self { case let .json(body): @@ -1777,12 +1786,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output.Ok.Body + public var body: Operations.BillingGetGithubPackagesBillingUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output.Ok.Body) { + public init(body: Operations.BillingGetGithubPackagesBillingUser.Output.Ok.Body) { self.body = body } } @@ -1791,12 +1800,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/settings/billing/packages/get(billing/get-github-packages-billing-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output.Ok) + case ok(Operations.BillingGetGithubPackagesBillingUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_github_hyphen_packages_hyphen_billing_hyphen_user.Output.Ok { + public var ok: Operations.BillingGetGithubPackagesBillingUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -1850,7 +1859,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/settings/billing/shared-storage`. /// - Remark: Generated from `#/paths//users/{username}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-user)`. - public enum billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user { + public enum BillingGetSharedStorageBillingUser { public static let id: Swift.String = "billing/get-shared-storage-billing-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/shared-storage/GET/path`. @@ -1858,36 +1867,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/settings/billing/shared-storage/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Path + public var path: Operations.BillingGetSharedStorageBillingUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/settings/billing/shared-storage/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Headers + public var headers: Operations.BillingGetSharedStorageBillingUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Path, - headers: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Input.Headers = .init() + path: Operations.BillingGetSharedStorageBillingUser.Input.Path, + headers: Operations.BillingGetSharedStorageBillingUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1898,12 +1907,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/shared-storage/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/settings/billing/shared-storage/GET/responses/200/content/application\/json`. - case json(Components.Schemas.combined_hyphen_billing_hyphen_usage) + case json(Components.Schemas.CombinedBillingUsage) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.combined_hyphen_billing_hyphen_usage { + public var json: Components.Schemas.CombinedBillingUsage { get throws { switch self { case let .json(body): @@ -1913,12 +1922,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output.Ok.Body + public var body: Operations.BillingGetSharedStorageBillingUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output.Ok.Body) { + public init(body: Operations.BillingGetSharedStorageBillingUser.Output.Ok.Body) { self.body = body } } @@ -1927,12 +1936,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/settings/billing/shared-storage/get(billing/get-shared-storage-billing-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output.Ok) + case ok(Operations.BillingGetSharedStorageBillingUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.billing_sol_get_hyphen_shared_hyphen_storage_hyphen_billing_hyphen_user.Output.Ok { + public var ok: Operations.BillingGetSharedStorageBillingUser.Output.Ok { get throws { switch self { case let .ok(response): From f5581d3d342b87d90846671e503df035e3b6aa88 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:00:23 -0700 Subject: [PATCH 07/46] Commit via running ake Sources/checks --- Sources/checks/Client.swift | 160 +- Sources/checks/Types.swift | 2921 ++++++++++++++++++----------------- 2 files changed, 1545 insertions(+), 1536 deletions(-) diff --git a/Sources/checks/Client.swift b/Sources/checks/Client.swift index ce23dfcd59..98e36935c0 100644 --- a/Sources/checks/Client.swift +++ b/Sources/checks/Client.swift @@ -51,10 +51,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/post(checks/create)`. - public func checks_sol_create(_ input: Operations.checks_sol_create.Input) async throws -> Operations.checks_sol_create.Output { + public func checksCreate(_ input: Operations.ChecksCreate.Input) async throws -> Operations.ChecksCreate.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_create.id, + forOperation: Operations.ChecksCreate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-runs", @@ -87,7 +87,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_create.Output.Created.Body + let body: Operations.ChecksCreate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -97,7 +97,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_run.self, + Components.Schemas.CheckRun.self, from: responseBody, transforming: { value in .json(value) @@ -130,17 +130,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/get(checks/get)`. - public func checks_sol_get(_ input: Operations.checks_sol_get.Input) async throws -> Operations.checks_sol_get.Output { + public func checksGet(_ input: Operations.ChecksGet.Input) async throws -> Operations.ChecksGet.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_get.id, + forOperation: Operations.ChecksGet.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-runs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.check_run_id + input.path.checkRunId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -158,7 +158,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_get.Output.Ok.Body + let body: Operations.ChecksGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -168,7 +168,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_run.self, + Components.Schemas.CheckRun.self, from: responseBody, transforming: { value in .json(value) @@ -201,17 +201,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/patch(checks/update)`. - public func checks_sol_update(_ input: Operations.checks_sol_update.Input) async throws -> Operations.checks_sol_update.Output { + public func checksUpdate(_ input: Operations.ChecksUpdate.Input) async throws -> Operations.ChecksUpdate.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_update.id, + forOperation: Operations.ChecksUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-runs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.check_run_id + input.path.checkRunId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -238,7 +238,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_update.Output.Ok.Body + let body: Operations.ChecksUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -248,7 +248,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_run.self, + Components.Schemas.CheckRun.self, from: responseBody, transforming: { value in .json(value) @@ -278,17 +278,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/get(checks/list-annotations)`. - public func checks_sol_list_hyphen_annotations(_ input: Operations.checks_sol_list_hyphen_annotations.Input) async throws -> Operations.checks_sol_list_hyphen_annotations.Output { + public func checksListAnnotations(_ input: Operations.ChecksListAnnotations.Input) async throws -> Operations.ChecksListAnnotations.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_list_hyphen_annotations.id, + forOperation: Operations.ChecksListAnnotations.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-runs/{}/annotations", parameters: [ input.path.owner, input.path.repo, - input.path.check_run_id + input.path.checkRunId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -301,7 +301,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -319,13 +319,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ChecksListAnnotations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Body + let body: Operations.ChecksListAnnotations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -335,7 +335,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.check_hyphen_annotation].self, + [Components.Schemas.CheckAnnotation].self, from: responseBody, transforming: { value in .json(value) @@ -368,17 +368,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. - public func checks_sol_rerequest_hyphen_run(_ input: Operations.checks_sol_rerequest_hyphen_run.Input) async throws -> Operations.checks_sol_rerequest_hyphen_run.Output { + public func checksRerequestRun(_ input: Operations.ChecksRerequestRun.Input) async throws -> Operations.ChecksRerequestRun.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_rerequest_hyphen_run.id, + forOperation: Operations.ChecksRerequestRun.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-runs/{}/rerequest", parameters: [ input.path.owner, input.path.repo, - input.path.check_run_id + input.path.checkRunId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_rerequest_hyphen_run.Output.Created.Body + let body: Operations.ChecksRerequestRun.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -406,7 +406,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -418,7 +418,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_rerequest_hyphen_run.Output.Forbidden.Body + let body: Operations.ChecksRerequestRun.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -428,7 +428,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -440,7 +440,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_rerequest_hyphen_run.Output.UnprocessableContent.Body + let body: Operations.ChecksRerequestRun.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -450,7 +450,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -462,7 +462,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -472,7 +472,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -505,10 +505,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)`. - public func checks_sol_create_hyphen_suite(_ input: Operations.checks_sol_create_hyphen_suite.Input) async throws -> Operations.checks_sol_create_hyphen_suite.Output { + public func checksCreateSuite(_ input: Operations.ChecksCreateSuite.Input) async throws -> Operations.ChecksCreateSuite.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_create_hyphen_suite.id, + forOperation: Operations.ChecksCreateSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-suites", @@ -541,7 +541,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_create_hyphen_suite.Output.Ok.Body + let body: Operations.ChecksCreateSuite.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -551,7 +551,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_suite.self, + Components.Schemas.CheckSuite.self, from: responseBody, transforming: { value in .json(value) @@ -563,7 +563,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_create_hyphen_suite.Output.Created.Body + let body: Operations.ChecksCreateSuite.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -573,7 +573,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_suite.self, + Components.Schemas.CheckSuite.self, from: responseBody, transforming: { value in .json(value) @@ -602,10 +602,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-suites/preferences`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/preferences/patch(checks/set-suites-preferences)`. - public func checks_sol_set_hyphen_suites_hyphen_preferences(_ input: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input) async throws -> Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output { + public func checksSetSuitesPreferences(_ input: Operations.ChecksSetSuitesPreferences.Input) async throws -> Operations.ChecksSetSuitesPreferences.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.id, + forOperation: Operations.ChecksSetSuitesPreferences.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-suites/preferences", @@ -638,7 +638,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output.Ok.Body + let body: Operations.ChecksSetSuitesPreferences.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -648,7 +648,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_suite_hyphen_preference.self, + Components.Schemas.CheckSuitePreference.self, from: responseBody, transforming: { value in .json(value) @@ -681,17 +681,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/get(checks/get-suite)`. - public func checks_sol_get_hyphen_suite(_ input: Operations.checks_sol_get_hyphen_suite.Input) async throws -> Operations.checks_sol_get_hyphen_suite.Output { + public func checksGetSuite(_ input: Operations.ChecksGetSuite.Input) async throws -> Operations.ChecksGetSuite.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_get_hyphen_suite.id, + forOperation: Operations.ChecksGetSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-suites/{}", parameters: [ input.path.owner, input.path.repo, - input.path.check_suite_id + input.path.checkSuiteId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -709,7 +709,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_get_hyphen_suite.Output.Ok.Body + let body: Operations.ChecksGetSuite.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -719,7 +719,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_suite.self, + Components.Schemas.CheckSuite.self, from: responseBody, transforming: { value in .json(value) @@ -752,17 +752,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/get(checks/list-for-suite)`. - public func checks_sol_list_hyphen_for_hyphen_suite(_ input: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_suite.Output { + public func checksListForSuite(_ input: Operations.ChecksListForSuite.Input) async throws -> Operations.ChecksListForSuite.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_list_hyphen_for_hyphen_suite.id, + forOperation: Operations.ChecksListForSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-suites/{}/check-runs", parameters: [ input.path.owner, input.path.repo, - input.path.check_suite_id + input.path.checkSuiteId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -775,7 +775,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "check_name", - value: input.query.check_name + value: input.query.checkName ) try converter.setQueryItemAsURI( in: &request, @@ -796,7 +796,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -814,13 +814,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ChecksListForSuite.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body + let body: Operations.ChecksListForSuite.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -830,7 +830,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body.jsonPayload.self, + Operations.ChecksListForSuite.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -861,17 +861,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. - public func checks_sol_rerequest_hyphen_suite(_ input: Operations.checks_sol_rerequest_hyphen_suite.Input) async throws -> Operations.checks_sol_rerequest_hyphen_suite.Output { + public func checksRerequestSuite(_ input: Operations.ChecksRerequestSuite.Input) async throws -> Operations.ChecksRerequestSuite.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_rerequest_hyphen_suite.id, + forOperation: Operations.ChecksRerequestSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/check-suites/{}/rerequest", parameters: [ input.path.owner, input.path.repo, - input.path.check_suite_id + input.path.checkSuiteId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -889,7 +889,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_rerequest_hyphen_suite.Output.Created.Body + let body: Operations.ChecksRerequestSuite.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -899,7 +899,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -934,10 +934,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-runs/get(checks/list-for-ref)`. - public func checks_sol_list_hyphen_for_hyphen_ref(_ input: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_ref.Output { + public func checksListForRef(_ input: Operations.ChecksListForRef.Input) async throws -> Operations.ChecksListForRef.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_list_hyphen_for_hyphen_ref.id, + forOperation: Operations.ChecksListForRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/check-runs", @@ -957,7 +957,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "check_name", - value: input.query.check_name + value: input.query.checkName ) try converter.setQueryItemAsURI( in: &request, @@ -978,7 +978,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -992,7 +992,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "app_id", - value: input.query.app_id + value: input.query.appId ) converter.setAcceptHeader( in: &request.headerFields, @@ -1003,13 +1003,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ChecksListForRef.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body + let body: Operations.ChecksListForRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1019,7 +1019,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload.self, + Operations.ChecksListForRef.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1055,10 +1055,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-suites/get(checks/list-suites-for-ref)`. - public func checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref(_ input: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input) async throws -> Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output { + public func checksListSuitesForRef(_ input: Operations.ChecksListSuitesForRef.Input) async throws -> Operations.ChecksListSuitesForRef.Output { try await client.send( input: input, - forOperation: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.id, + forOperation: Operations.ChecksListSuitesForRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/check-suites", @@ -1078,21 +1078,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "app_id", - value: input.query.app_id + value: input.query.appId ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "check_name", - value: input.query.check_name + value: input.query.checkName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1110,13 +1110,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ChecksListSuitesForRef.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body + let body: Operations.ChecksListSuitesForRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1126,7 +1126,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload.self, + Operations.ChecksListSuitesForRef.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index 1d371c9fcd..c1ed8a03d0 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -24,7 +24,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/post(checks/create)`. - func checks_sol_create(_ input: Operations.checks_sol_create.Input) async throws -> Operations.checks_sol_create.Output + func checksCreate(_ input: Operations.ChecksCreate.Input) async throws -> Operations.ChecksCreate.Output /// Get a check run /// /// Gets a single check run using its `id`. @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/get(checks/get)`. - func checks_sol_get(_ input: Operations.checks_sol_get.Input) async throws -> Operations.checks_sol_get.Output + func checksGet(_ input: Operations.ChecksGet.Input) async throws -> Operations.ChecksGet.Output /// Update a check run /// /// Updates a check run for a specific commit in a repository. @@ -48,7 +48,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/patch(checks/update)`. - func checks_sol_update(_ input: Operations.checks_sol_update.Input) async throws -> Operations.checks_sol_update.Output + func checksUpdate(_ input: Operations.ChecksUpdate.Input) async throws -> Operations.ChecksUpdate.Output /// List check run annotations /// /// Lists annotations for a check run using the annotation `id`. @@ -57,7 +57,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/get(checks/list-annotations)`. - func checks_sol_list_hyphen_annotations(_ input: Operations.checks_sol_list_hyphen_annotations.Input) async throws -> Operations.checks_sol_list_hyphen_annotations.Output + func checksListAnnotations(_ input: Operations.ChecksListAnnotations.Input) async throws -> Operations.ChecksListAnnotations.Output /// Rerequest a check run /// /// Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, the `status` of the check suite it belongs to is reset to `queued` and the `conclusion` is cleared. The check run itself is not updated. GitHub apps recieving the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) with the `rerequested` action should then decide if the check run should be reset or updated and call the [update `check_run` endpoint](https://docs.github.com/rest/checks/runs#update-a-check-run) to update the check_run if desired. @@ -66,7 +66,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. - func checks_sol_rerequest_hyphen_run(_ input: Operations.checks_sol_rerequest_hyphen_run.Input) async throws -> Operations.checks_sol_rerequest_hyphen_run.Output + func checksRerequestRun(_ input: Operations.ChecksRerequestRun.Input) async throws -> Operations.ChecksRerequestRun.Output /// Create a check suite /// /// Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)". @@ -78,7 +78,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)`. - func checks_sol_create_hyphen_suite(_ input: Operations.checks_sol_create_hyphen_suite.Input) async throws -> Operations.checks_sol_create_hyphen_suite.Output + func checksCreateSuite(_ input: Operations.ChecksCreateSuite.Input) async throws -> Operations.ChecksCreateSuite.Output /// Update repository preferences for check suites /// /// Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite). @@ -86,7 +86,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-suites/preferences`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/preferences/patch(checks/set-suites-preferences)`. - func checks_sol_set_hyphen_suites_hyphen_preferences(_ input: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input) async throws -> Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output + func checksSetSuitesPreferences(_ input: Operations.ChecksSetSuitesPreferences.Input) async throws -> Operations.ChecksSetSuitesPreferences.Output /// Get a check suite /// /// Gets a single check suite using its `id`. @@ -98,7 +98,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/get(checks/get-suite)`. - func checks_sol_get_hyphen_suite(_ input: Operations.checks_sol_get_hyphen_suite.Input) async throws -> Operations.checks_sol_get_hyphen_suite.Output + func checksGetSuite(_ input: Operations.ChecksGetSuite.Input) async throws -> Operations.ChecksGetSuite.Output /// List check runs in a check suite /// /// Lists check runs for a check suite using its `id`. @@ -110,14 +110,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/get(checks/list-for-suite)`. - func checks_sol_list_hyphen_for_hyphen_suite(_ input: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_suite.Output + func checksListForSuite(_ input: Operations.ChecksListForSuite.Input) async throws -> Operations.ChecksListForSuite.Output /// Rerequest a check suite /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. - func checks_sol_rerequest_hyphen_suite(_ input: Operations.checks_sol_rerequest_hyphen_suite.Input) async throws -> Operations.checks_sol_rerequest_hyphen_suite.Output + func checksRerequestSuite(_ input: Operations.ChecksRerequestSuite.Input) async throws -> Operations.ChecksRerequestSuite.Output /// List check runs for a Git reference /// /// Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. @@ -131,7 +131,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-runs/get(checks/list-for-ref)`. - func checks_sol_list_hyphen_for_hyphen_ref(_ input: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_ref.Output + func checksListForRef(_ input: Operations.ChecksListForRef.Input) async throws -> Operations.ChecksListForRef.Output /// List check suites for a Git reference /// /// Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. @@ -143,7 +143,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-suites/get(checks/list-suites-for-ref)`. - func checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref(_ input: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input) async throws -> Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output + func checksListSuitesForRef(_ input: Operations.ChecksListSuitesForRef.Input) async throws -> Operations.ChecksListSuitesForRef.Output } /// Convenience overloads for operation inputs. @@ -161,12 +161,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/post(checks/create)`. - public func checks_sol_create( - path: Operations.checks_sol_create.Input.Path, - headers: Operations.checks_sol_create.Input.Headers = .init(), - body: Operations.checks_sol_create.Input.Body - ) async throws -> Operations.checks_sol_create.Output { - try await checks_sol_create(Operations.checks_sol_create.Input( + public func checksCreate( + path: Operations.ChecksCreate.Input.Path, + headers: Operations.ChecksCreate.Input.Headers = .init(), + body: Operations.ChecksCreate.Input.Body + ) async throws -> Operations.ChecksCreate.Output { + try await checksCreate(Operations.ChecksCreate.Input( path: path, headers: headers, body: body @@ -183,11 +183,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/get(checks/get)`. - public func checks_sol_get( - path: Operations.checks_sol_get.Input.Path, - headers: Operations.checks_sol_get.Input.Headers = .init() - ) async throws -> Operations.checks_sol_get.Output { - try await checks_sol_get(Operations.checks_sol_get.Input( + public func checksGet( + path: Operations.ChecksGet.Input.Path, + headers: Operations.ChecksGet.Input.Headers = .init() + ) async throws -> Operations.ChecksGet.Output { + try await checksGet(Operations.ChecksGet.Input( path: path, headers: headers )) @@ -203,12 +203,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/patch(checks/update)`. - public func checks_sol_update( - path: Operations.checks_sol_update.Input.Path, - headers: Operations.checks_sol_update.Input.Headers = .init(), - body: Operations.checks_sol_update.Input.Body - ) async throws -> Operations.checks_sol_update.Output { - try await checks_sol_update(Operations.checks_sol_update.Input( + public func checksUpdate( + path: Operations.ChecksUpdate.Input.Path, + headers: Operations.ChecksUpdate.Input.Headers = .init(), + body: Operations.ChecksUpdate.Input.Body + ) async throws -> Operations.ChecksUpdate.Output { + try await checksUpdate(Operations.ChecksUpdate.Input( path: path, headers: headers, body: body @@ -222,12 +222,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/get(checks/list-annotations)`. - public func checks_sol_list_hyphen_annotations( - path: Operations.checks_sol_list_hyphen_annotations.Input.Path, - query: Operations.checks_sol_list_hyphen_annotations.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_annotations.Input.Headers = .init() - ) async throws -> Operations.checks_sol_list_hyphen_annotations.Output { - try await checks_sol_list_hyphen_annotations(Operations.checks_sol_list_hyphen_annotations.Input( + public func checksListAnnotations( + path: Operations.ChecksListAnnotations.Input.Path, + query: Operations.ChecksListAnnotations.Input.Query = .init(), + headers: Operations.ChecksListAnnotations.Input.Headers = .init() + ) async throws -> Operations.ChecksListAnnotations.Output { + try await checksListAnnotations(Operations.ChecksListAnnotations.Input( path: path, query: query, headers: headers @@ -241,11 +241,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. - public func checks_sol_rerequest_hyphen_run( - path: Operations.checks_sol_rerequest_hyphen_run.Input.Path, - headers: Operations.checks_sol_rerequest_hyphen_run.Input.Headers = .init() - ) async throws -> Operations.checks_sol_rerequest_hyphen_run.Output { - try await checks_sol_rerequest_hyphen_run(Operations.checks_sol_rerequest_hyphen_run.Input( + public func checksRerequestRun( + path: Operations.ChecksRerequestRun.Input.Path, + headers: Operations.ChecksRerequestRun.Input.Headers = .init() + ) async throws -> Operations.ChecksRerequestRun.Output { + try await checksRerequestRun(Operations.ChecksRerequestRun.Input( path: path, headers: headers )) @@ -261,12 +261,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)`. - public func checks_sol_create_hyphen_suite( - path: Operations.checks_sol_create_hyphen_suite.Input.Path, - headers: Operations.checks_sol_create_hyphen_suite.Input.Headers = .init(), - body: Operations.checks_sol_create_hyphen_suite.Input.Body - ) async throws -> Operations.checks_sol_create_hyphen_suite.Output { - try await checks_sol_create_hyphen_suite(Operations.checks_sol_create_hyphen_suite.Input( + public func checksCreateSuite( + path: Operations.ChecksCreateSuite.Input.Path, + headers: Operations.ChecksCreateSuite.Input.Headers = .init(), + body: Operations.ChecksCreateSuite.Input.Body + ) async throws -> Operations.ChecksCreateSuite.Output { + try await checksCreateSuite(Operations.ChecksCreateSuite.Input( path: path, headers: headers, body: body @@ -279,12 +279,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-suites/preferences`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/preferences/patch(checks/set-suites-preferences)`. - public func checks_sol_set_hyphen_suites_hyphen_preferences( - path: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Path, - headers: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Headers = .init(), - body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body - ) async throws -> Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output { - try await checks_sol_set_hyphen_suites_hyphen_preferences(Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input( + public func checksSetSuitesPreferences( + path: Operations.ChecksSetSuitesPreferences.Input.Path, + headers: Operations.ChecksSetSuitesPreferences.Input.Headers = .init(), + body: Operations.ChecksSetSuitesPreferences.Input.Body + ) async throws -> Operations.ChecksSetSuitesPreferences.Output { + try await checksSetSuitesPreferences(Operations.ChecksSetSuitesPreferences.Input( path: path, headers: headers, body: body @@ -301,11 +301,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/get(checks/get-suite)`. - public func checks_sol_get_hyphen_suite( - path: Operations.checks_sol_get_hyphen_suite.Input.Path, - headers: Operations.checks_sol_get_hyphen_suite.Input.Headers = .init() - ) async throws -> Operations.checks_sol_get_hyphen_suite.Output { - try await checks_sol_get_hyphen_suite(Operations.checks_sol_get_hyphen_suite.Input( + public func checksGetSuite( + path: Operations.ChecksGetSuite.Input.Path, + headers: Operations.ChecksGetSuite.Input.Headers = .init() + ) async throws -> Operations.ChecksGetSuite.Output { + try await checksGetSuite(Operations.ChecksGetSuite.Input( path: path, headers: headers )) @@ -321,12 +321,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/get(checks/list-for-suite)`. - public func checks_sol_list_hyphen_for_hyphen_suite( - path: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Path, - query: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Headers = .init() - ) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_suite.Output { - try await checks_sol_list_hyphen_for_hyphen_suite(Operations.checks_sol_list_hyphen_for_hyphen_suite.Input( + public func checksListForSuite( + path: Operations.ChecksListForSuite.Input.Path, + query: Operations.ChecksListForSuite.Input.Query = .init(), + headers: Operations.ChecksListForSuite.Input.Headers = .init() + ) async throws -> Operations.ChecksListForSuite.Output { + try await checksListForSuite(Operations.ChecksListForSuite.Input( path: path, query: query, headers: headers @@ -338,11 +338,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. - public func checks_sol_rerequest_hyphen_suite( - path: Operations.checks_sol_rerequest_hyphen_suite.Input.Path, - headers: Operations.checks_sol_rerequest_hyphen_suite.Input.Headers = .init() - ) async throws -> Operations.checks_sol_rerequest_hyphen_suite.Output { - try await checks_sol_rerequest_hyphen_suite(Operations.checks_sol_rerequest_hyphen_suite.Input( + public func checksRerequestSuite( + path: Operations.ChecksRerequestSuite.Input.Path, + headers: Operations.ChecksRerequestSuite.Input.Headers = .init() + ) async throws -> Operations.ChecksRerequestSuite.Output { + try await checksRerequestSuite(Operations.ChecksRerequestSuite.Input( path: path, headers: headers )) @@ -360,12 +360,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-runs/get(checks/list-for-ref)`. - public func checks_sol_list_hyphen_for_hyphen_ref( - path: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Path, - query: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.checks_sol_list_hyphen_for_hyphen_ref.Output { - try await checks_sol_list_hyphen_for_hyphen_ref(Operations.checks_sol_list_hyphen_for_hyphen_ref.Input( + public func checksListForRef( + path: Operations.ChecksListForRef.Input.Path, + query: Operations.ChecksListForRef.Input.Query = .init(), + headers: Operations.ChecksListForRef.Input.Headers = .init() + ) async throws -> Operations.ChecksListForRef.Output { + try await checksListForRef(Operations.ChecksListForRef.Input( path: path, query: query, headers: headers @@ -382,12 +382,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-suites/get(checks/list-suites-for-ref)`. - public func checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref( - path: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Path, - query: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output { - try await checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref(Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input( + public func checksListSuitesForRef( + path: Operations.ChecksListSuitesForRef.Input.Path, + query: Operations.ChecksListSuitesForRef.Input.Query = .init(), + headers: Operations.ChecksListSuitesForRef.Input.Headers = .init() + ) async throws -> Operations.ChecksListSuitesForRef.Output { + try await checksListSuitesForRef(Operations.ChecksListSuitesForRef.Input( path: path, query: query, headers: headers @@ -397,6 +397,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -412,7 +421,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -422,171 +431,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -594,23 +603,23 @@ public enum Components { /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -620,64 +629,64 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -687,40 +696,40 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -730,25 +739,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -761,15 +770,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -777,17 +786,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -800,7 +809,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -833,23 +842,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -864,23 +873,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -889,7 +898,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -897,106 +906,106 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1004,21 +1013,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1026,27 +1035,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1056,21 +1065,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1078,21 +1087,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1100,21 +1109,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1122,21 +1131,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1144,62 +1153,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -1207,121 +1216,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -1329,13 +1338,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -1346,7 +1355,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1376,443 +1385,443 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal`. - public struct pull_hyphen_request_hyphen_minimal: Codable, Hashable, Sendable { + public struct PullRequestMinimal: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/number`. @@ -1820,20 +1829,20 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public struct headPayload: Codable, Hashable, Sendable { + public struct HeadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public struct repoPayload: Codable, Hashable, Sendable { + public struct RepoPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo/name`. public var name: Swift.String - /// Creates a new `repoPayload`. + /// Creates a new `RepoPayload`. /// /// - Parameters: /// - id: @@ -1855,8 +1864,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head/repo`. - public var repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload.repoPayload - /// Creates a new `headPayload`. + public var repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload + /// Creates a new `HeadPayload`. /// /// - Parameters: /// - ref: @@ -1865,7 +1874,7 @@ public enum Components { public init( ref: Swift.String, sha: Swift.String, - repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload.repoPayload + repo: Components.Schemas.PullRequestMinimal.HeadPayload.RepoPayload ) { self.ref = ref self.sha = sha @@ -1878,22 +1887,22 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/head`. - public var head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload + public var head: Components.Schemas.PullRequestMinimal.HeadPayload /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public struct basePayload: Codable, Hashable, Sendable { + public struct BasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public struct repoPayload: Codable, Hashable, Sendable { + public struct RepoPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo/name`. public var name: Swift.String - /// Creates a new `repoPayload`. + /// Creates a new `RepoPayload`. /// /// - Parameters: /// - id: @@ -1915,8 +1924,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base/repo`. - public var repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload.repoPayload - /// Creates a new `basePayload`. + public var repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload + /// Creates a new `BasePayload`. /// /// - Parameters: /// - ref: @@ -1925,7 +1934,7 @@ public enum Components { public init( ref: Swift.String, sha: Swift.String, - repo: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload.repoPayload + repo: Components.Schemas.PullRequestMinimal.BasePayload.RepoPayload ) { self.ref = ref self.sha = sha @@ -1938,8 +1947,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-minimal/base`. - public var base: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload - /// Creates a new `pull_hyphen_request_hyphen_minimal`. + public var base: Components.Schemas.PullRequestMinimal.BasePayload + /// Creates a new `PullRequestMinimal`. /// /// - Parameters: /// - id: @@ -1951,8 +1960,8 @@ public enum Components { id: Swift.Int64, number: Swift.Int, url: Swift.String, - head: Components.Schemas.pull_hyphen_request_hyphen_minimal.headPayload, - base: Components.Schemas.pull_hyphen_request_hyphen_minimal.basePayload + head: Components.Schemas.PullRequestMinimal.HeadPayload, + base: Components.Schemas.PullRequestMinimal.BasePayload ) { self.id = id self.number = number @@ -1971,7 +1980,7 @@ public enum Components { /// A deployment created as the result of an Actions check run from a workflow that references an environment /// /// - Remark: Generated from `#/components/schemas/deployment-simple`. - public struct deployment_hyphen_simple: Codable, Hashable, Sendable { + public struct DeploymentSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment-simple/url`. public var url: Swift.String /// Unique identifier of the deployment @@ -1979,13 +1988,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/deployment-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Parameter to specify a task to execute /// /// - Remark: Generated from `#/components/schemas/deployment-simple/task`. public var task: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-simple/original_environment`. - public var original_environment: Swift.String? + public var originalEnvironment: Swift.String? /// Name for the target deployment environment. /// /// - Remark: Generated from `#/components/schemas/deployment-simple/environment`. @@ -1993,92 +2002,92 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment-simple/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/deployment-simple/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment-simple/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment-simple/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-simple/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// Specifies if the given environment is will no longer exist at some point in the future. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment-simple/transient_environment`. - public var transient_environment: Swift.Bool? + public var transientEnvironment: Swift.Bool? /// Specifies if the given environment is one that end-users directly interact with. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment-simple/production_environment`. - public var production_environment: Swift.Bool? + public var productionEnvironment: Swift.Bool? /// - Remark: Generated from `#/components/schemas/deployment-simple/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? - /// Creates a new `deployment_hyphen_simple`. + public var performedViaGithubApp: Components.Schemas.NullableIntegration? + /// Creates a new `DeploymentSimple`. /// /// - Parameters: /// - url: /// - id: Unique identifier of the deployment - /// - node_id: + /// - nodeId: /// - task: Parameter to specify a task to execute - /// - original_environment: + /// - originalEnvironment: /// - environment: Name for the target deployment environment. /// - description: - /// - created_at: - /// - updated_at: - /// - statuses_url: - /// - repository_url: - /// - transient_environment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. - /// - production_environment: Specifies if the given environment is one that end-users directly interact with. Default: false. - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - statusesUrl: + /// - repositoryUrl: + /// - transientEnvironment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. + /// - productionEnvironment: Specifies if the given environment is one that end-users directly interact with. Default: false. + /// - performedViaGithubApp: public init( url: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, task: Swift.String, - original_environment: Swift.String? = nil, + originalEnvironment: Swift.String? = nil, environment: Swift.String, description: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - statuses_url: Swift.String, - repository_url: Swift.String, - transient_environment: Swift.Bool? = nil, - production_environment: Swift.Bool? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + statusesUrl: Swift.String, + repositoryUrl: Swift.String, + transientEnvironment: Swift.Bool? = nil, + productionEnvironment: Swift.Bool? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil ) { self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.task = task - self.original_environment = original_environment + self.originalEnvironment = originalEnvironment self.environment = environment self.description = description - self.created_at = created_at - self.updated_at = updated_at - self.statuses_url = statuses_url - self.repository_url = repository_url - self.transient_environment = transient_environment - self.production_environment = production_environment - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.statusesUrl = statusesUrl + self.repositoryUrl = repositoryUrl + self.transientEnvironment = transientEnvironment + self.productionEnvironment = productionEnvironment + self.performedViaGithubApp = performedViaGithubApp } public enum CodingKeys: String, CodingKey { case url case id - case node_id + case nodeId = "node_id" case task - case original_environment + case originalEnvironment = "original_environment" case environment case description - case created_at - case updated_at - case statuses_url - case repository_url - case transient_environment - case production_environment - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case statusesUrl = "statuses_url" + case repositoryUrl = "repository_url" + case transientEnvironment = "transient_environment" + case productionEnvironment = "production_environment" + case performedViaGithubApp = "performed_via_github_app" } } /// A check performed on the code of a given code change /// /// - Remark: Generated from `#/components/schemas/check-run`. - public struct check_hyphen_run: Codable, Hashable, Sendable { + public struct CheckRun: Codable, Hashable, Sendable { /// The id of the check. /// /// - Remark: Generated from `#/components/schemas/check-run/id`. @@ -2086,23 +2095,23 @@ public enum Components { /// The SHA of the commit that is being checked. /// /// - Remark: Generated from `#/components/schemas/check-run/head_sha`. - public var head_sha: Swift.String + public var headSha: Swift.String /// - Remark: Generated from `#/components/schemas/check-run/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/check-run/external_id`. - public var external_id: Swift.String? + public var externalId: Swift.String? /// - Remark: Generated from `#/components/schemas/check-run/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/check-run/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/check-run/details_url`. - public var details_url: Swift.String? + public var detailsUrl: Swift.String? /// The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs. /// /// - Remark: Generated from `#/components/schemas/check-run/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" case waiting = "waiting" case requested = "requested" @@ -2111,25 +2120,25 @@ public enum Components { /// The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs. /// /// - Remark: Generated from `#/components/schemas/check-run/status`. - public var status: Components.Schemas.check_hyphen_run.statusPayload + public var status: Components.Schemas.CheckRun.StatusPayload /// - Remark: Generated from `#/components/schemas/check-run/conclusion`. - @frozen public enum conclusionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ConclusionPayload: String, Codable, Hashable, Sendable, CaseIterable { case success = "success" case failure = "failure" case neutral = "neutral" case cancelled = "cancelled" case skipped = "skipped" - case timed_out = "timed_out" - case action_required = "action_required" + case timedOut = "timed_out" + case actionRequired = "action_required" } /// - Remark: Generated from `#/components/schemas/check-run/conclusion`. - public var conclusion: Components.Schemas.check_hyphen_run.conclusionPayload? + public var conclusion: Components.Schemas.CheckRun.ConclusionPayload? /// - Remark: Generated from `#/components/schemas/check-run/started_at`. - public var started_at: Foundation.Date? + public var startedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/check-run/completed_at`. - public var completed_at: Foundation.Date? + public var completedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/check-run/output`. - public struct outputPayload: Codable, Hashable, Sendable { + public struct OutputPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/check-run/output/title`. public var title: Swift.String? /// - Remark: Generated from `#/components/schemas/check-run/output/summary`. @@ -2137,49 +2146,49 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/check-run/output/text`. public var text: Swift.String? /// - Remark: Generated from `#/components/schemas/check-run/output/annotations_count`. - public var annotations_count: Swift.Int + public var annotationsCount: Swift.Int /// - Remark: Generated from `#/components/schemas/check-run/output/annotations_url`. - public var annotations_url: Swift.String - /// Creates a new `outputPayload`. + public var annotationsUrl: Swift.String + /// Creates a new `OutputPayload`. /// /// - Parameters: /// - title: /// - summary: /// - text: - /// - annotations_count: - /// - annotations_url: + /// - annotationsCount: + /// - annotationsUrl: public init( title: Swift.String? = nil, summary: Swift.String? = nil, text: Swift.String? = nil, - annotations_count: Swift.Int, - annotations_url: Swift.String + annotationsCount: Swift.Int, + annotationsUrl: Swift.String ) { self.title = title self.summary = summary self.text = text - self.annotations_count = annotations_count - self.annotations_url = annotations_url + self.annotationsCount = annotationsCount + self.annotationsUrl = annotationsUrl } public enum CodingKeys: String, CodingKey { case title case summary case text - case annotations_count - case annotations_url + case annotationsCount = "annotations_count" + case annotationsUrl = "annotations_url" } } /// - Remark: Generated from `#/components/schemas/check-run/output`. - public var output: Components.Schemas.check_hyphen_run.outputPayload + public var output: Components.Schemas.CheckRun.OutputPayload /// The name of the check. /// /// - Remark: Generated from `#/components/schemas/check-run/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/check-run/check_suite`. - public struct check_suitePayload: Codable, Hashable, Sendable { + public struct CheckSuitePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/check-run/check_suite/id`. public var id: Swift.Int - /// Creates a new `check_suitePayload`. + /// Creates a new `CheckSuitePayload`. /// /// - Parameters: /// - id: @@ -2191,169 +2200,169 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/check-run/check_suite`. - public var check_suite: Components.Schemas.check_hyphen_run.check_suitePayload? + public var checkSuite: Components.Schemas.CheckRun.CheckSuitePayload? /// - Remark: Generated from `#/components/schemas/check-run/app`. - public var app: Components.Schemas.nullable_hyphen_integration? + public var app: Components.Schemas.NullableIntegration? /// Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. /// /// - Remark: Generated from `#/components/schemas/check-run/pull_requests`. - public var pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal] + public var pullRequests: [Components.Schemas.PullRequestMinimal] /// - Remark: Generated from `#/components/schemas/check-run/deployment`. - public var deployment: Components.Schemas.deployment_hyphen_simple? - /// Creates a new `check_hyphen_run`. + public var deployment: Components.Schemas.DeploymentSimple? + /// Creates a new `CheckRun`. /// /// - Parameters: /// - id: The id of the check. - /// - head_sha: The SHA of the commit that is being checked. - /// - node_id: - /// - external_id: + /// - headSha: The SHA of the commit that is being checked. + /// - nodeId: + /// - externalId: /// - url: - /// - html_url: - /// - details_url: + /// - htmlUrl: + /// - detailsUrl: /// - status: The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs. /// - conclusion: - /// - started_at: - /// - completed_at: + /// - startedAt: + /// - completedAt: /// - output: /// - name: The name of the check. - /// - check_suite: + /// - checkSuite: /// - app: - /// - pull_requests: Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. + /// - pullRequests: Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. /// - deployment: public init( id: Swift.Int64, - head_sha: Swift.String, - node_id: Swift.String, - external_id: Swift.String? = nil, + headSha: Swift.String, + nodeId: Swift.String, + externalId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String? = nil, - details_url: Swift.String? = nil, - status: Components.Schemas.check_hyphen_run.statusPayload, - conclusion: Components.Schemas.check_hyphen_run.conclusionPayload? = nil, - started_at: Foundation.Date? = nil, - completed_at: Foundation.Date? = nil, - output: Components.Schemas.check_hyphen_run.outputPayload, + htmlUrl: Swift.String? = nil, + detailsUrl: Swift.String? = nil, + status: Components.Schemas.CheckRun.StatusPayload, + conclusion: Components.Schemas.CheckRun.ConclusionPayload? = nil, + startedAt: Foundation.Date? = nil, + completedAt: Foundation.Date? = nil, + output: Components.Schemas.CheckRun.OutputPayload, name: Swift.String, - check_suite: Components.Schemas.check_hyphen_run.check_suitePayload? = nil, - app: Components.Schemas.nullable_hyphen_integration? = nil, - pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal], - deployment: Components.Schemas.deployment_hyphen_simple? = nil + checkSuite: Components.Schemas.CheckRun.CheckSuitePayload? = nil, + app: Components.Schemas.NullableIntegration? = nil, + pullRequests: [Components.Schemas.PullRequestMinimal], + deployment: Components.Schemas.DeploymentSimple? = nil ) { self.id = id - self.head_sha = head_sha - self.node_id = node_id - self.external_id = external_id + self.headSha = headSha + self.nodeId = nodeId + self.externalId = externalId self.url = url - self.html_url = html_url - self.details_url = details_url + self.htmlUrl = htmlUrl + self.detailsUrl = detailsUrl self.status = status self.conclusion = conclusion - self.started_at = started_at - self.completed_at = completed_at + self.startedAt = startedAt + self.completedAt = completedAt self.output = output self.name = name - self.check_suite = check_suite + self.checkSuite = checkSuite self.app = app - self.pull_requests = pull_requests + self.pullRequests = pullRequests self.deployment = deployment } public enum CodingKeys: String, CodingKey { case id - case head_sha - case node_id - case external_id + case headSha = "head_sha" + case nodeId = "node_id" + case externalId = "external_id" case url - case html_url - case details_url + case htmlUrl = "html_url" + case detailsUrl = "details_url" case status case conclusion - case started_at - case completed_at + case startedAt = "started_at" + case completedAt = "completed_at" case output case name - case check_suite + case checkSuite = "check_suite" case app - case pull_requests + case pullRequests = "pull_requests" case deployment } } /// Check Annotation /// /// - Remark: Generated from `#/components/schemas/check-annotation`. - public struct check_hyphen_annotation: Codable, Hashable, Sendable { + public struct CheckAnnotation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/check-annotation/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/check-annotation/start_line`. - public var start_line: Swift.Int + public var startLine: Swift.Int /// - Remark: Generated from `#/components/schemas/check-annotation/end_line`. - public var end_line: Swift.Int + public var endLine: Swift.Int /// - Remark: Generated from `#/components/schemas/check-annotation/start_column`. - public var start_column: Swift.Int? + public var startColumn: Swift.Int? /// - Remark: Generated from `#/components/schemas/check-annotation/end_column`. - public var end_column: Swift.Int? + public var endColumn: Swift.Int? /// - Remark: Generated from `#/components/schemas/check-annotation/annotation_level`. - public var annotation_level: Swift.String? + public var annotationLevel: Swift.String? /// - Remark: Generated from `#/components/schemas/check-annotation/title`. public var title: Swift.String? /// - Remark: Generated from `#/components/schemas/check-annotation/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/check-annotation/raw_details`. - public var raw_details: Swift.String? + public var rawDetails: Swift.String? /// - Remark: Generated from `#/components/schemas/check-annotation/blob_href`. - public var blob_href: Swift.String - /// Creates a new `check_hyphen_annotation`. + public var blobHref: Swift.String + /// Creates a new `CheckAnnotation`. /// /// - Parameters: /// - path: - /// - start_line: - /// - end_line: - /// - start_column: - /// - end_column: - /// - annotation_level: + /// - startLine: + /// - endLine: + /// - startColumn: + /// - endColumn: + /// - annotationLevel: /// - title: /// - message: - /// - raw_details: - /// - blob_href: + /// - rawDetails: + /// - blobHref: public init( path: Swift.String, - start_line: Swift.Int, - end_line: Swift.Int, - start_column: Swift.Int? = nil, - end_column: Swift.Int? = nil, - annotation_level: Swift.String? = nil, + startLine: Swift.Int, + endLine: Swift.Int, + startColumn: Swift.Int? = nil, + endColumn: Swift.Int? = nil, + annotationLevel: Swift.String? = nil, title: Swift.String? = nil, message: Swift.String? = nil, - raw_details: Swift.String? = nil, - blob_href: Swift.String + rawDetails: Swift.String? = nil, + blobHref: Swift.String ) { self.path = path - self.start_line = start_line - self.end_line = end_line - self.start_column = start_column - self.end_column = end_column - self.annotation_level = annotation_level + self.startLine = startLine + self.endLine = endLine + self.startColumn = startColumn + self.endColumn = endColumn + self.annotationLevel = annotationLevel self.title = title self.message = message - self.raw_details = raw_details - self.blob_href = blob_href + self.rawDetails = rawDetails + self.blobHref = blobHref } public enum CodingKeys: String, CodingKey { case path - case start_line - case end_line - case start_column - case end_column - case annotation_level + case startLine = "start_line" + case endLine = "end_line" + case startColumn = "start_column" + case endColumn = "end_column" + case annotationLevel = "annotation_level" case title case message - case raw_details - case blob_href + case rawDetails = "raw_details" + case blobHref = "blob_href" } } /// A commit. /// /// - Remark: Generated from `#/components/schemas/simple-commit`. - public struct simple_hyphen_commit: Codable, Hashable, Sendable { + public struct SimpleCommit: Codable, Hashable, Sendable { /// SHA for the commit /// /// - Remark: Generated from `#/components/schemas/simple-commit/id`. @@ -2361,7 +2370,7 @@ public enum Components { /// SHA for the commit's tree /// /// - Remark: Generated from `#/components/schemas/simple-commit/tree_id`. - public var tree_id: Swift.String + public var treeId: Swift.String /// Message describing the purpose of the commit /// /// - Remark: Generated from `#/components/schemas/simple-commit/message`. @@ -2373,7 +2382,7 @@ public enum Components { /// Information about the Git author /// /// - Remark: Generated from `#/components/schemas/simple-commit/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// Name of the commit's author /// /// - Remark: Generated from `#/components/schemas/simple-commit/author/name`. @@ -2382,7 +2391,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/simple-commit/author/email`. public var email: Swift.String - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: Name of the commit's author @@ -2402,11 +2411,11 @@ public enum Components { /// Information about the Git author /// /// - Remark: Generated from `#/components/schemas/simple-commit/author`. - public var author: Components.Schemas.simple_hyphen_commit.authorPayload? + public var author: Components.Schemas.SimpleCommit.AuthorPayload? /// Information about the Git committer /// /// - Remark: Generated from `#/components/schemas/simple-commit/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// Name of the commit's committer /// /// - Remark: Generated from `#/components/schemas/simple-commit/committer/name`. @@ -2415,7 +2424,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/simple-commit/committer/email`. public var email: Swift.String - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - name: Name of the commit's committer @@ -2435,26 +2444,26 @@ public enum Components { /// Information about the Git committer /// /// - Remark: Generated from `#/components/schemas/simple-commit/committer`. - public var committer: Components.Schemas.simple_hyphen_commit.committerPayload? - /// Creates a new `simple_hyphen_commit`. + public var committer: Components.Schemas.SimpleCommit.CommitterPayload? + /// Creates a new `SimpleCommit`. /// /// - Parameters: /// - id: SHA for the commit - /// - tree_id: SHA for the commit's tree + /// - treeId: SHA for the commit's tree /// - message: Message describing the purpose of the commit /// - timestamp: Timestamp of the commit /// - author: Information about the Git author /// - committer: Information about the Git committer public init( id: Swift.String, - tree_id: Swift.String, + treeId: Swift.String, message: Swift.String, timestamp: Foundation.Date, - author: Components.Schemas.simple_hyphen_commit.authorPayload? = nil, - committer: Components.Schemas.simple_hyphen_commit.committerPayload? = nil + author: Components.Schemas.SimpleCommit.AuthorPayload? = nil, + committer: Components.Schemas.SimpleCommit.CommitterPayload? = nil ) { self.id = id - self.tree_id = tree_id + self.treeId = treeId self.message = message self.timestamp = timestamp self.author = author @@ -2462,7 +2471,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case tree_id + case treeId = "tree_id" case message case timestamp case author @@ -2472,23 +2481,23 @@ public enum Components { /// A suite of checks performed on the code of a given code change /// /// - Remark: Generated from `#/components/schemas/check-suite`. - public struct check_hyphen_suite: Codable, Hashable, Sendable { + public struct CheckSuite: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/check-suite/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/check-suite/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/check-suite/head_branch`. - public var head_branch: Swift.String? + public var headBranch: Swift.String? /// The SHA of the head commit that is being checked. /// /// - Remark: Generated from `#/components/schemas/check-suite/head_sha`. - public var head_sha: Swift.String + public var headSha: Swift.String /// The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. /// /// - Remark: Generated from `#/components/schemas/check-suite/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" case waiting = "waiting" case requested = "requested" @@ -2497,22 +2506,22 @@ public enum Components { /// The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. /// /// - Remark: Generated from `#/components/schemas/check-suite/status`. - public var status: Components.Schemas.check_hyphen_suite.statusPayload? + public var status: Components.Schemas.CheckSuite.StatusPayload? /// - Remark: Generated from `#/components/schemas/check-suite/conclusion`. - @frozen public enum conclusionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ConclusionPayload: String, Codable, Hashable, Sendable, CaseIterable { case success = "success" case failure = "failure" case neutral = "neutral" case cancelled = "cancelled" case skipped = "skipped" - case timed_out = "timed_out" - case action_required = "action_required" - case startup_failure = "startup_failure" + case timedOut = "timed_out" + case actionRequired = "action_required" + case startupFailure = "startup_failure" case stale = "stale" - case _empty = "" + case _empty_ = "" } /// - Remark: Generated from `#/components/schemas/check-suite/conclusion`. - public var conclusion: Components.Schemas.check_hyphen_suite.conclusionPayload? + public var conclusion: Components.Schemas.CheckSuite.ConclusionPayload? /// - Remark: Generated from `#/components/schemas/check-suite/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/check-suite/before`. @@ -2520,166 +2529,166 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/check-suite/after`. public var after: Swift.String? /// - Remark: Generated from `#/components/schemas/check-suite/pull_requests`. - public var pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal]? + public var pullRequests: [Components.Schemas.PullRequestMinimal]? /// - Remark: Generated from `#/components/schemas/check-suite/app`. - public var app: Components.Schemas.nullable_hyphen_integration? + public var app: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/check-suite/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/check-suite/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/check-suite/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/check-suite/head_commit`. - public var head_commit: Components.Schemas.simple_hyphen_commit + public var headCommit: Components.Schemas.SimpleCommit /// - Remark: Generated from `#/components/schemas/check-suite/latest_check_runs_count`. - public var latest_check_runs_count: Swift.Int + public var latestCheckRunsCount: Swift.Int /// - Remark: Generated from `#/components/schemas/check-suite/check_runs_url`. - public var check_runs_url: Swift.String + public var checkRunsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/check-suite/rerequestable`. public var rerequestable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/check-suite/runs_rerequestable`. - public var runs_rerequestable: Swift.Bool? - /// Creates a new `check_hyphen_suite`. + public var runsRerequestable: Swift.Bool? + /// Creates a new `CheckSuite`. /// /// - Parameters: /// - id: - /// - node_id: - /// - head_branch: - /// - head_sha: The SHA of the head commit that is being checked. + /// - nodeId: + /// - headBranch: + /// - headSha: The SHA of the head commit that is being checked. /// - status: The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. /// - conclusion: /// - url: /// - before: /// - after: - /// - pull_requests: + /// - pullRequests: /// - app: /// - repository: - /// - created_at: - /// - updated_at: - /// - head_commit: - /// - latest_check_runs_count: - /// - check_runs_url: + /// - createdAt: + /// - updatedAt: + /// - headCommit: + /// - latestCheckRunsCount: + /// - checkRunsUrl: /// - rerequestable: - /// - runs_rerequestable: + /// - runsRerequestable: public init( id: Swift.Int64, - node_id: Swift.String, - head_branch: Swift.String? = nil, - head_sha: Swift.String, - status: Components.Schemas.check_hyphen_suite.statusPayload? = nil, - conclusion: Components.Schemas.check_hyphen_suite.conclusionPayload? = nil, + nodeId: Swift.String, + headBranch: Swift.String? = nil, + headSha: Swift.String, + status: Components.Schemas.CheckSuite.StatusPayload? = nil, + conclusion: Components.Schemas.CheckSuite.ConclusionPayload? = nil, url: Swift.String? = nil, before: Swift.String? = nil, after: Swift.String? = nil, - pull_requests: [Components.Schemas.pull_hyphen_request_hyphen_minimal]? = nil, - app: Components.Schemas.nullable_hyphen_integration? = nil, - repository: Components.Schemas.minimal_hyphen_repository, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - head_commit: Components.Schemas.simple_hyphen_commit, - latest_check_runs_count: Swift.Int, - check_runs_url: Swift.String, + pullRequests: [Components.Schemas.PullRequestMinimal]? = nil, + app: Components.Schemas.NullableIntegration? = nil, + repository: Components.Schemas.MinimalRepository, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + headCommit: Components.Schemas.SimpleCommit, + latestCheckRunsCount: Swift.Int, + checkRunsUrl: Swift.String, rerequestable: Swift.Bool? = nil, - runs_rerequestable: Swift.Bool? = nil + runsRerequestable: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id - self.head_branch = head_branch - self.head_sha = head_sha + self.nodeId = nodeId + self.headBranch = headBranch + self.headSha = headSha self.status = status self.conclusion = conclusion self.url = url self.before = before self.after = after - self.pull_requests = pull_requests + self.pullRequests = pullRequests self.app = app self.repository = repository - self.created_at = created_at - self.updated_at = updated_at - self.head_commit = head_commit - self.latest_check_runs_count = latest_check_runs_count - self.check_runs_url = check_runs_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.headCommit = headCommit + self.latestCheckRunsCount = latestCheckRunsCount + self.checkRunsUrl = checkRunsUrl self.rerequestable = rerequestable - self.runs_rerequestable = runs_rerequestable + self.runsRerequestable = runsRerequestable } public enum CodingKeys: String, CodingKey { case id - case node_id - case head_branch - case head_sha + case nodeId = "node_id" + case headBranch = "head_branch" + case headSha = "head_sha" case status case conclusion case url case before case after - case pull_requests + case pullRequests = "pull_requests" case app case repository - case created_at - case updated_at - case head_commit - case latest_check_runs_count - case check_runs_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case headCommit = "head_commit" + case latestCheckRunsCount = "latest_check_runs_count" + case checkRunsUrl = "check_runs_url" case rerequestable - case runs_rerequestable + case runsRerequestable = "runs_rerequestable" } } /// Check suite configuration preferences for a repository. /// /// - Remark: Generated from `#/components/schemas/check-suite-preference`. - public struct check_hyphen_suite_hyphen_preference: Codable, Hashable, Sendable { + public struct CheckSuitePreference: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences`. - public struct preferencesPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/auto_trigger_checksPayload`. - public struct auto_trigger_checksPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/auto_trigger_checksPayload/app_id`. - public var app_id: Swift.Int - /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/auto_trigger_checksPayload/setting`. + public struct PreferencesPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/AutoTriggerChecksPayload`. + public struct AutoTriggerChecksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/AutoTriggerChecksPayload/app_id`. + public var appId: Swift.Int + /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/AutoTriggerChecksPayload/setting`. public var setting: Swift.Bool - /// Creates a new `auto_trigger_checksPayloadPayload`. + /// Creates a new `AutoTriggerChecksPayloadPayload`. /// /// - Parameters: - /// - app_id: + /// - appId: /// - setting: public init( - app_id: Swift.Int, + appId: Swift.Int, setting: Swift.Bool ) { - self.app_id = app_id + self.appId = appId self.setting = setting } public enum CodingKeys: String, CodingKey { - case app_id + case appId = "app_id" case setting } } /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/auto_trigger_checks`. - public typealias auto_trigger_checksPayload = [Components.Schemas.check_hyphen_suite_hyphen_preference.preferencesPayload.auto_trigger_checksPayloadPayload] + public typealias AutoTriggerChecksPayload = [Components.Schemas.CheckSuitePreference.PreferencesPayload.AutoTriggerChecksPayloadPayload] /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences/auto_trigger_checks`. - public var auto_trigger_checks: Components.Schemas.check_hyphen_suite_hyphen_preference.preferencesPayload.auto_trigger_checksPayload? - /// Creates a new `preferencesPayload`. + public var autoTriggerChecks: Components.Schemas.CheckSuitePreference.PreferencesPayload.AutoTriggerChecksPayload? + /// Creates a new `PreferencesPayload`. /// /// - Parameters: - /// - auto_trigger_checks: - public init(auto_trigger_checks: Components.Schemas.check_hyphen_suite_hyphen_preference.preferencesPayload.auto_trigger_checksPayload? = nil) { - self.auto_trigger_checks = auto_trigger_checks + /// - autoTriggerChecks: + public init(autoTriggerChecks: Components.Schemas.CheckSuitePreference.PreferencesPayload.AutoTriggerChecksPayload? = nil) { + self.autoTriggerChecks = autoTriggerChecks } public enum CodingKeys: String, CodingKey { - case auto_trigger_checks + case autoTriggerChecks = "auto_trigger_checks" } } /// - Remark: Generated from `#/components/schemas/check-suite-preference/preferences`. - public var preferences: Components.Schemas.check_hyphen_suite_hyphen_preference.preferencesPayload + public var preferences: Components.Schemas.CheckSuitePreference.PreferencesPayload /// - Remark: Generated from `#/components/schemas/check-suite-preference/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository - /// Creates a new `check_hyphen_suite_hyphen_preference`. + public var repository: Components.Schemas.MinimalRepository + /// Creates a new `CheckSuitePreference`. /// /// - Parameters: /// - preferences: /// - repository: public init( - preferences: Components.Schemas.check_hyphen_suite_hyphen_preference.preferencesPayload, - repository: Components.Schemas.minimal_hyphen_repository + preferences: Components.Schemas.CheckSuitePreference.PreferencesPayload, + repository: Components.Schemas.MinimalRepository ) { self.preferences = preferences self.repository = repository @@ -2695,58 +2704,58 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The unique identifier of the check run. /// /// - Remark: Generated from `#/components/parameters/check-run-id`. - public typealias check_hyphen_run_hyphen_id = Swift.Int + public typealias CheckRunId = Swift.Int /// The unique identifier of the check suite. /// /// - Remark: Generated from `#/components/parameters/check-suite-id`. - public typealias check_hyphen_suite_hyphen_id = Swift.Int + public typealias CheckSuiteId = Swift.Int /// Returns check runs with the specified `name`. /// /// - Remark: Generated from `#/components/parameters/check-name`. - public typealias check_hyphen_name = Swift.String + public typealias CheckName = Swift.String /// Returns check runs with the specified `status`. /// /// - Remark: Generated from `#/components/parameters/status`. - @frozen public enum status: String, Codable, Hashable, Sendable { + @frozen public enum Status: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" } /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/components/parameters/commit-ref`. - public typealias commit_hyphen_ref = Swift.String + public typealias CommitRef = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2756,12 +2765,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } @@ -2769,7 +2778,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -2788,7 +2797,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/post(checks/create)`. - public enum checks_sol_create { + public enum ChecksCreate { public static let id: Swift.String = "checks/create" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/path`. @@ -2796,41 +2805,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.checks_sol_create.Input.Path + public var path: Operations.ChecksCreate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_create.Input.Headers + public var headers: Operations.ChecksCreate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { public enum CodingKeys: String, CodingKey { case status } @@ -2855,9 +2864,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/requestBody/content/application\/json`. - case json(Operations.checks_sol_create.Input.Body.jsonPayload) + case json(Operations.ChecksCreate.Input.Body.JsonPayload) } - public var body: Operations.checks_sol_create.Input.Body + public var body: Operations.ChecksCreate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2865,9 +2874,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.checks_sol_create.Input.Path, - headers: Operations.checks_sol_create.Input.Headers = .init(), - body: Operations.checks_sol_create.Input.Body + path: Operations.ChecksCreate.Input.Path, + headers: Operations.ChecksCreate.Input.Headers = .init(), + body: Operations.ChecksCreate.Input.Body ) { self.path = path self.headers = headers @@ -2879,12 +2888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/POST/responses/201/content/application\/json`. - case json(Components.Schemas.check_hyphen_run) + case json(Components.Schemas.CheckRun) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_run { + public var json: Components.Schemas.CheckRun { get throws { switch self { case let .json(body): @@ -2894,12 +2903,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_create.Output.Created.Body + public var body: Operations.ChecksCreate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_create.Output.Created.Body) { + public init(body: Operations.ChecksCreate.Output.Created.Body) { self.body = body } } @@ -2908,12 +2917,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/post(checks/create)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.checks_sol_create.Output.Created) + case created(Operations.ChecksCreate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.checks_sol_create.Output.Created { + public var created: Operations.ChecksCreate.Output.Created { get throws { switch self { case let .created(response): @@ -2968,7 +2977,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/get(checks/get)`. - public enum checks_sol_get { + public enum ChecksGet { public static let id: Swift.String = "checks/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/path`. @@ -2976,52 +2985,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/path/check_run_id`. - public var check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + public var checkRunId: Components.Parameters.CheckRunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_run_id: The unique identifier of the check run. + /// - checkRunId: The unique identifier of the check run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkRunId: Components.Parameters.CheckRunId ) { self.owner = owner self.repo = repo - self.check_run_id = check_run_id + self.checkRunId = checkRunId } } - public var path: Operations.checks_sol_get.Input.Path + public var path: Operations.ChecksGet.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_get.Input.Headers + public var headers: Operations.ChecksGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.checks_sol_get.Input.Path, - headers: Operations.checks_sol_get.Input.Headers = .init() + path: Operations.ChecksGet.Input.Path, + headers: Operations.ChecksGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3032,12 +3041,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_run) + case json(Components.Schemas.CheckRun) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_run { + public var json: Components.Schemas.CheckRun { get throws { switch self { case let .json(body): @@ -3047,12 +3056,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_get.Output.Ok.Body + public var body: Operations.ChecksGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_get.Output.Ok.Body) { + public init(body: Operations.ChecksGet.Output.Ok.Body) { self.body = body } } @@ -3061,12 +3070,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/get(checks/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_get.Output.Ok) + case ok(Operations.ChecksGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_get.Output.Ok { + public var ok: Operations.ChecksGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -3121,7 +3130,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/patch(checks/update)`. - public enum checks_sol_update { + public enum ChecksUpdate { public static let id: Swift.String = "checks/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/path`. @@ -3129,48 +3138,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/path/check_run_id`. - public var check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + public var checkRunId: Components.Parameters.CheckRunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_run_id: The unique identifier of the check run. + /// - checkRunId: The unique identifier of the check run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkRunId: Components.Parameters.CheckRunId ) { self.owner = owner self.repo = repo - self.check_run_id = check_run_id + self.checkRunId = checkRunId } } - public var path: Operations.checks_sol_update.Input.Path + public var path: Operations.ChecksUpdate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_update.Input.Headers + public var headers: Operations.ChecksUpdate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value1`. public struct Value1Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value1/status`. @@ -3194,7 +3203,7 @@ public enum Operations { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - status = try container.decodeIfPresent( + self.status = try container.decodeIfPresent( OpenAPIRuntime.OpenAPIValueContainer.self, forKey: .status ) @@ -3205,14 +3214,14 @@ public enum Operations { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - status, + self.status, forKey: .status ) try encoder.encodeAdditionalProperties(additionalProperties) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value1`. - public var value1: Operations.checks_sol_update.Input.Body.jsonPayload.Value1Payload? + public var value1: Operations.ChecksUpdate.Input.Body.JsonPayload.Value1Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value2/status`. @@ -3236,7 +3245,7 @@ public enum Operations { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - status = try container.decodeIfPresent( + self.status = try container.decodeIfPresent( OpenAPIRuntime.OpenAPIValueContainer.self, forKey: .status ) @@ -3247,22 +3256,22 @@ public enum Operations { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - status, + self.status, forKey: .status ) try encoder.encodeAdditionalProperties(additionalProperties) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/json/value2`. - public var value2: Operations.checks_sol_update.Input.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.ChecksUpdate.Input.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Operations.checks_sol_update.Input.Body.jsonPayload.Value1Payload? = nil, - value2: Operations.checks_sol_update.Input.Body.jsonPayload.Value2Payload? = nil + value1: Operations.ChecksUpdate.Input.Body.JsonPayload.Value1Payload? = nil, + value2: Operations.ChecksUpdate.Input.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -3270,19 +3279,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -3290,14 +3299,14 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.checks_sol_update.Input.Body.jsonPayload) + case json(Operations.ChecksUpdate.Input.Body.JsonPayload) } - public var body: Operations.checks_sol_update.Input.Body + public var body: Operations.ChecksUpdate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3305,9 +3314,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.checks_sol_update.Input.Path, - headers: Operations.checks_sol_update.Input.Headers = .init(), - body: Operations.checks_sol_update.Input.Body + path: Operations.ChecksUpdate.Input.Path, + headers: Operations.ChecksUpdate.Input.Headers = .init(), + body: Operations.ChecksUpdate.Input.Body ) { self.path = path self.headers = headers @@ -3319,12 +3328,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_run) + case json(Components.Schemas.CheckRun) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_run { + public var json: Components.Schemas.CheckRun { get throws { switch self { case let .json(body): @@ -3334,12 +3343,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_update.Output.Ok.Body + public var body: Operations.ChecksUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_update.Output.Ok.Body) { + public init(body: Operations.ChecksUpdate.Output.Ok.Body) { self.body = body } } @@ -3348,12 +3357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/patch(checks/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_update.Output.Ok) + case ok(Operations.ChecksUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_update.Output.Ok { + public var ok: Operations.ChecksUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -3405,7 +3414,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/get(checks/list-annotations)`. - public enum checks_sol_list_hyphen_annotations { + public enum ChecksListAnnotations { public static let id: Swift.String = "checks/list-annotations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/path`. @@ -3413,68 +3422,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/path/check_run_id`. - public var check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + public var checkRunId: Components.Parameters.CheckRunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_run_id: The unique identifier of the check run. + /// - checkRunId: The unique identifier of the check run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkRunId: Components.Parameters.CheckRunId ) { self.owner = owner self.repo = repo - self.check_run_id = check_run_id + self.checkRunId = checkRunId } } - public var path: Operations.checks_sol_list_hyphen_annotations.Input.Path + public var path: Operations.ChecksListAnnotations.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.checks_sol_list_hyphen_annotations.Input.Query + public var query: Operations.ChecksListAnnotations.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_list_hyphen_annotations.Input.Headers + public var headers: Operations.ChecksListAnnotations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3482,9 +3491,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.checks_sol_list_hyphen_annotations.Input.Path, - query: Operations.checks_sol_list_hyphen_annotations.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_annotations.Input.Headers = .init() + path: Operations.ChecksListAnnotations.Input.Path, + query: Operations.ChecksListAnnotations.Input.Query = .init(), + headers: Operations.ChecksListAnnotations.Input.Headers = .init() ) { self.path = path self.query = query @@ -3496,26 +3505,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Headers + public var headers: Operations.ChecksListAnnotations.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.check_hyphen_annotation]) + case json([Components.Schemas.CheckAnnotation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.check_hyphen_annotation] { + public var json: [Components.Schemas.CheckAnnotation] { get throws { switch self { case let .json(body): @@ -3525,15 +3534,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Body + public var body: Operations.ChecksListAnnotations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Headers = .init(), - body: Operations.checks_sol_list_hyphen_annotations.Output.Ok.Body + headers: Operations.ChecksListAnnotations.Output.Ok.Headers = .init(), + body: Operations.ChecksListAnnotations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3544,12 +3553,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/annotations/get(checks/list-annotations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_list_hyphen_annotations.Output.Ok) + case ok(Operations.ChecksListAnnotations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_list_hyphen_annotations.Output.Ok { + public var ok: Operations.ChecksListAnnotations.Output.Ok { get throws { switch self { case let .ok(response): @@ -3601,7 +3610,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. - public enum checks_sol_rerequest_hyphen_run { + public enum ChecksRerequestRun { public static let id: Swift.String = "checks/rerequest-run" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/path`. @@ -3609,52 +3618,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check run. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/path/check_run_id`. - public var check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + public var checkRunId: Components.Parameters.CheckRunId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_run_id: The unique identifier of the check run. + /// - checkRunId: The unique identifier of the check run. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_run_id: Components.Parameters.check_hyphen_run_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkRunId: Components.Parameters.CheckRunId ) { self.owner = owner self.repo = repo - self.check_run_id = check_run_id + self.checkRunId = checkRunId } } - public var path: Operations.checks_sol_rerequest_hyphen_run.Input.Path + public var path: Operations.ChecksRerequestRun.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_rerequest_hyphen_run.Input.Headers + public var headers: Operations.ChecksRerequestRun.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.checks_sol_rerequest_hyphen_run.Input.Path, - headers: Operations.checks_sol_rerequest_hyphen_run.Input.Headers = .init() + path: Operations.ChecksRerequestRun.Input.Path, + headers: Operations.ChecksRerequestRun.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3665,12 +3674,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -3680,12 +3689,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_rerequest_hyphen_run.Output.Created.Body + public var body: Operations.ChecksRerequestRun.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_rerequest_hyphen_run.Output.Created.Body) { + public init(body: Operations.ChecksRerequestRun.Output.Created.Body) { self.body = body } } @@ -3694,12 +3703,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.checks_sol_rerequest_hyphen_run.Output.Created) + case created(Operations.ChecksRerequestRun.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.checks_sol_rerequest_hyphen_run.Output.Created { + public var created: Operations.ChecksRerequestRun.Output.Created { get throws { switch self { case let .created(response): @@ -3716,12 +3725,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/403/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3731,12 +3740,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_rerequest_hyphen_run.Output.Forbidden.Body + public var body: Operations.ChecksRerequestRun.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_rerequest_hyphen_run.Output.Forbidden.Body) { + public init(body: Operations.ChecksRerequestRun.Output.Forbidden.Body) { self.body = body } } @@ -3745,12 +3754,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.checks_sol_rerequest_hyphen_run.Output.Forbidden) + case forbidden(Operations.ChecksRerequestRun.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.checks_sol_rerequest_hyphen_run.Output.Forbidden { + public var forbidden: Operations.ChecksRerequestRun.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3767,12 +3776,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/POST/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3782,12 +3791,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_rerequest_hyphen_run.Output.UnprocessableContent.Body + public var body: Operations.ChecksRerequestRun.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_rerequest_hyphen_run.Output.UnprocessableContent.Body) { + public init(body: Operations.ChecksRerequestRun.Output.UnprocessableContent.Body) { self.body = body } } @@ -3796,12 +3805,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.checks_sol_rerequest_hyphen_run.Output.UnprocessableContent) + case unprocessableContent(Operations.ChecksRerequestRun.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.checks_sol_rerequest_hyphen_run.Output.UnprocessableContent { + public var unprocessableContent: Operations.ChecksRerequestRun.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -3819,12 +3828,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3879,7 +3888,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)`. - public enum checks_sol_create_hyphen_suite { + public enum ChecksCreateSuite { public static let id: Swift.String = "checks/create-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/path`. @@ -3887,60 +3896,60 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.checks_sol_create_hyphen_suite.Input.Path + public var path: Operations.ChecksCreateSuite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_create_hyphen_suite.Input.Headers + public var headers: Operations.ChecksCreateSuite.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The sha of the head commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/requestBody/json/head_sha`. - public var head_sha: Swift.String - /// Creates a new `jsonPayload`. + public var headSha: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - head_sha: The sha of the head commit. - public init(head_sha: Swift.String) { - self.head_sha = head_sha + /// - headSha: The sha of the head commit. + public init(headSha: Swift.String) { + self.headSha = headSha } public enum CodingKeys: String, CodingKey { - case head_sha + case headSha = "head_sha" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/requestBody/content/application\/json`. - case json(Operations.checks_sol_create_hyphen_suite.Input.Body.jsonPayload) + case json(Operations.ChecksCreateSuite.Input.Body.JsonPayload) } - public var body: Operations.checks_sol_create_hyphen_suite.Input.Body + public var body: Operations.ChecksCreateSuite.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3948,9 +3957,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.checks_sol_create_hyphen_suite.Input.Path, - headers: Operations.checks_sol_create_hyphen_suite.Input.Headers = .init(), - body: Operations.checks_sol_create_hyphen_suite.Input.Body + path: Operations.ChecksCreateSuite.Input.Path, + headers: Operations.ChecksCreateSuite.Input.Headers = .init(), + body: Operations.ChecksCreateSuite.Input.Body ) { self.path = path self.headers = headers @@ -3962,12 +3971,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_suite) + case json(Components.Schemas.CheckSuite) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_suite { + public var json: Components.Schemas.CheckSuite { get throws { switch self { case let .json(body): @@ -3977,12 +3986,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_create_hyphen_suite.Output.Ok.Body + public var body: Operations.ChecksCreateSuite.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_create_hyphen_suite.Output.Ok.Body) { + public init(body: Operations.ChecksCreateSuite.Output.Ok.Body) { self.body = body } } @@ -3991,12 +4000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_create_hyphen_suite.Output.Ok) + case ok(Operations.ChecksCreateSuite.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_create_hyphen_suite.Output.Ok { + public var ok: Operations.ChecksCreateSuite.Output.Ok { get throws { switch self { case let .ok(response): @@ -4013,12 +4022,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/POST/responses/201/content/application\/json`. - case json(Components.Schemas.check_hyphen_suite) + case json(Components.Schemas.CheckSuite) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_suite { + public var json: Components.Schemas.CheckSuite { get throws { switch self { case let .json(body): @@ -4028,12 +4037,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_create_hyphen_suite.Output.Created.Body + public var body: Operations.ChecksCreateSuite.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_create_hyphen_suite.Output.Created.Body) { + public init(body: Operations.ChecksCreateSuite.Output.Created.Body) { self.body = body } } @@ -4042,12 +4051,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/post(checks/create-suite)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.checks_sol_create_hyphen_suite.Output.Created) + case created(Operations.ChecksCreateSuite.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.checks_sol_create_hyphen_suite.Output.Created { + public var created: Operations.ChecksCreateSuite.Output.Created { get throws { switch self { case let .created(response): @@ -4098,7 +4107,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/check-suites/preferences`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/preferences/patch(checks/set-suites-preferences)`. - public enum checks_sol_set_hyphen_suites_hyphen_preferences { + public enum ChecksSetSuitesPreferences { public static let id: Swift.String = "checks/set-suites-preferences" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/path`. @@ -4106,91 +4115,91 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Path + public var path: Operations.ChecksSetSuitesPreferences.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Headers + public var headers: Operations.ChecksSetSuitesPreferences.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/auto_trigger_checksPayload`. - public struct auto_trigger_checksPayloadPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/AutoTriggerChecksPayload`. + public struct AutoTriggerChecksPayloadPayload: Codable, Hashable, Sendable { /// The `id` of the GitHub App. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/auto_trigger_checksPayload/app_id`. - public var app_id: Swift.Int + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/AutoTriggerChecksPayload/app_id`. + public var appId: Swift.Int /// Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/auto_trigger_checksPayload/setting`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/AutoTriggerChecksPayload/setting`. public var setting: Swift.Bool - /// Creates a new `auto_trigger_checksPayloadPayload`. + /// Creates a new `AutoTriggerChecksPayloadPayload`. /// /// - Parameters: - /// - app_id: The `id` of the GitHub App. + /// - appId: The `id` of the GitHub App. /// - setting: Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them. public init( - app_id: Swift.Int, + appId: Swift.Int, setting: Swift.Bool ) { - self.app_id = app_id + self.appId = appId self.setting = setting } public enum CodingKeys: String, CodingKey { - case app_id + case appId = "app_id" case setting } } /// Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/auto_trigger_checks`. - public typealias auto_trigger_checksPayload = [Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body.jsonPayload.auto_trigger_checksPayloadPayload] + public typealias AutoTriggerChecksPayload = [Operations.ChecksSetSuitesPreferences.Input.Body.JsonPayload.AutoTriggerChecksPayloadPayload] /// Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/json/auto_trigger_checks`. - public var auto_trigger_checks: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body.jsonPayload.auto_trigger_checksPayload? - /// Creates a new `jsonPayload`. + public var autoTriggerChecks: Operations.ChecksSetSuitesPreferences.Input.Body.JsonPayload.AutoTriggerChecksPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - auto_trigger_checks: Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. - public init(auto_trigger_checks: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body.jsonPayload.auto_trigger_checksPayload? = nil) { - self.auto_trigger_checks = auto_trigger_checks + /// - autoTriggerChecks: Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. + public init(autoTriggerChecks: Operations.ChecksSetSuitesPreferences.Input.Body.JsonPayload.AutoTriggerChecksPayload? = nil) { + self.autoTriggerChecks = autoTriggerChecks } public enum CodingKeys: String, CodingKey { - case auto_trigger_checks + case autoTriggerChecks = "auto_trigger_checks" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/requestBody/content/application\/json`. - case json(Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body.jsonPayload) + case json(Operations.ChecksSetSuitesPreferences.Input.Body.JsonPayload) } - public var body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body + public var body: Operations.ChecksSetSuitesPreferences.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4198,9 +4207,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Path, - headers: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Headers = .init(), - body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Input.Body + path: Operations.ChecksSetSuitesPreferences.Input.Path, + headers: Operations.ChecksSetSuitesPreferences.Input.Headers = .init(), + body: Operations.ChecksSetSuitesPreferences.Input.Body ) { self.path = path self.headers = headers @@ -4212,12 +4221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/preferences/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_suite_hyphen_preference) + case json(Components.Schemas.CheckSuitePreference) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_suite_hyphen_preference { + public var json: Components.Schemas.CheckSuitePreference { get throws { switch self { case let .json(body): @@ -4227,12 +4236,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output.Ok.Body + public var body: Operations.ChecksSetSuitesPreferences.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output.Ok.Body) { + public init(body: Operations.ChecksSetSuitesPreferences.Output.Ok.Body) { self.body = body } } @@ -4241,12 +4250,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/preferences/patch(checks/set-suites-preferences)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output.Ok) + case ok(Operations.ChecksSetSuitesPreferences.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_set_hyphen_suites_hyphen_preferences.Output.Ok { + public var ok: Operations.ChecksSetSuitesPreferences.Output.Ok { get throws { switch self { case let .ok(response): @@ -4301,7 +4310,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/get(checks/get-suite)`. - public enum checks_sol_get_hyphen_suite { + public enum ChecksGetSuite { public static let id: Swift.String = "checks/get-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/path`. @@ -4309,52 +4318,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check suite. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/path/check_suite_id`. - public var check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + public var checkSuiteId: Components.Parameters.CheckSuiteId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_suite_id: The unique identifier of the check suite. + /// - checkSuiteId: The unique identifier of the check suite. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkSuiteId: Components.Parameters.CheckSuiteId ) { self.owner = owner self.repo = repo - self.check_suite_id = check_suite_id + self.checkSuiteId = checkSuiteId } } - public var path: Operations.checks_sol_get_hyphen_suite.Input.Path + public var path: Operations.ChecksGetSuite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_get_hyphen_suite.Input.Headers + public var headers: Operations.ChecksGetSuite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.checks_sol_get_hyphen_suite.Input.Path, - headers: Operations.checks_sol_get_hyphen_suite.Input.Headers = .init() + path: Operations.ChecksGetSuite.Input.Path, + headers: Operations.ChecksGetSuite.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4365,12 +4374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_suite) + case json(Components.Schemas.CheckSuite) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_suite { + public var json: Components.Schemas.CheckSuite { get throws { switch self { case let .json(body): @@ -4380,12 +4389,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_get_hyphen_suite.Output.Ok.Body + public var body: Operations.ChecksGetSuite.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_get_hyphen_suite.Output.Ok.Body) { + public init(body: Operations.ChecksGetSuite.Output.Ok.Body) { self.body = body } } @@ -4394,12 +4403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/get(checks/get-suite)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_get_hyphen_suite.Output.Ok) + case ok(Operations.ChecksGetSuite.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_get_hyphen_suite.Output.Ok { + public var ok: Operations.ChecksGetSuite.Output.Ok { get throws { switch self { case let .ok(response): @@ -4454,7 +4463,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/get(checks/list-for-suite)`. - public enum checks_sol_list_hyphen_for_hyphen_suite { + public enum ChecksListForSuite { public static let id: Swift.String = "checks/list-for-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/path`. @@ -4462,100 +4471,100 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check suite. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/path/check_suite_id`. - public var check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + public var checkSuiteId: Components.Parameters.CheckSuiteId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_suite_id: The unique identifier of the check suite. + /// - checkSuiteId: The unique identifier of the check suite. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkSuiteId: Components.Parameters.CheckSuiteId ) { self.owner = owner self.repo = repo - self.check_suite_id = check_suite_id + self.checkSuiteId = checkSuiteId } } - public var path: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Path + public var path: Operations.ChecksListForSuite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query`. public struct Query: Sendable, Hashable { /// Returns check runs with the specified `name`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/check_name`. - public var check_name: Components.Parameters.check_hyphen_name? + public var checkName: Components.Parameters.CheckName? /// - Remark: Generated from `#/components/parameters/status`. - @frozen public enum status: String, Codable, Hashable, Sendable { + @frozen public enum Status: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" } /// Returns check runs with the specified `status`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/status`. - public var status: Components.Parameters.status? + public var status: Components.Parameters.Status? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case latest = "latest" case all = "all" } /// Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/filter`. - public var filter: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Query.filterPayload? + public var filter: Operations.ChecksListForSuite.Input.Query.FilterPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - check_name: Returns check runs with the specified `name`. + /// - checkName: Returns check runs with the specified `name`. /// - status: Returns check runs with the specified `status`. /// - filter: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. - /// - 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)." + /// - perPage: 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)." public init( - check_name: Components.Parameters.check_hyphen_name? = nil, - status: Components.Parameters.status? = nil, - filter: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Query.filterPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + checkName: Components.Parameters.CheckName? = nil, + status: Components.Parameters.Status? = nil, + filter: Operations.ChecksListForSuite.Input.Query.FilterPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.check_name = check_name + self.checkName = checkName self.status = status self.filter = filter - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Query + public var query: Operations.ChecksListForSuite.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Headers + public var headers: Operations.ChecksListForSuite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4563,9 +4572,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Path, - query: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Input.Headers = .init() + path: Operations.ChecksListForSuite.Input.Path, + query: Operations.ChecksListForSuite.Input.Query = .init(), + headers: Operations.ChecksListForSuite.Input.Headers = .init() ) { self.path = path self.query = query @@ -4577,49 +4586,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Headers + public var headers: Operations.ChecksListForSuite.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/content/json/check_runs`. - public var check_runs: [Components.Schemas.check_hyphen_run] - /// Creates a new `jsonPayload`. + public var checkRuns: [Components.Schemas.CheckRun] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - check_runs: + /// - totalCount: + /// - checkRuns: public init( - total_count: Swift.Int, - check_runs: [Components.Schemas.check_hyphen_run] + totalCount: Swift.Int, + checkRuns: [Components.Schemas.CheckRun] ) { - self.total_count = total_count - self.check_runs = check_runs + self.totalCount = totalCount + self.checkRuns = checkRuns } public enum CodingKeys: String, CodingKey { - case total_count - case check_runs + case totalCount = "total_count" + case checkRuns = "check_runs" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/GET/responses/200/content/application\/json`. - case json(Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body.jsonPayload) + case json(Operations.ChecksListForSuite.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body.jsonPayload { + public var json: Operations.ChecksListForSuite.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4629,15 +4638,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body + public var body: Operations.ChecksListForSuite.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Headers = .init(), - body: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok.Body + headers: Operations.ChecksListForSuite.Output.Ok.Headers = .init(), + body: Operations.ChecksListForSuite.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4648,12 +4657,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs/get(checks/list-for-suite)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok) + case ok(Operations.ChecksListForSuite.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_list_hyphen_for_hyphen_suite.Output.Ok { + public var ok: Operations.ChecksListForSuite.Output.Ok { get throws { switch self { case let .ok(response): @@ -4703,7 +4712,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. - public enum checks_sol_rerequest_hyphen_suite { + public enum ChecksRerequestSuite { public static let id: Swift.String = "checks/rerequest-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/path`. @@ -4711,52 +4720,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the check suite. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/path/check_suite_id`. - public var check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + public var checkSuiteId: Components.Parameters.CheckSuiteId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - check_suite_id: The unique identifier of the check suite. + /// - checkSuiteId: The unique identifier of the check suite. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - check_suite_id: Components.Parameters.check_hyphen_suite_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + checkSuiteId: Components.Parameters.CheckSuiteId ) { self.owner = owner self.repo = repo - self.check_suite_id = check_suite_id + self.checkSuiteId = checkSuiteId } } - public var path: Operations.checks_sol_rerequest_hyphen_suite.Input.Path + public var path: Operations.ChecksRerequestSuite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_rerequest_hyphen_suite.Input.Headers + public var headers: Operations.ChecksRerequestSuite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.checks_sol_rerequest_hyphen_suite.Input.Path, - headers: Operations.checks_sol_rerequest_hyphen_suite.Input.Headers = .init() + path: Operations.ChecksRerequestSuite.Input.Path, + headers: Operations.ChecksRerequestSuite.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4767,12 +4776,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/POST/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -4782,12 +4791,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_rerequest_hyphen_suite.Output.Created.Body + public var body: Operations.ChecksRerequestSuite.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.checks_sol_rerequest_hyphen_suite.Output.Created.Body) { + public init(body: Operations.ChecksRerequestSuite.Output.Created.Body) { self.body = body } } @@ -4796,12 +4805,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.checks_sol_rerequest_hyphen_suite.Output.Created) + case created(Operations.ChecksRerequestSuite.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.checks_sol_rerequest_hyphen_suite.Output.Created { + public var created: Operations.ChecksRerequestSuite.Output.Created { get throws { switch self { case let .created(response): @@ -4858,7 +4867,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-runs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-runs/get(checks/list-for-ref)`. - public enum checks_sol_list_hyphen_for_hyphen_ref { + public enum ChecksListForRef { public static let id: Swift.String = "checks/list-for-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/path`. @@ -4866,15 +4875,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/path/ref`. - public var ref: Components.Parameters.commit_hyphen_ref + public var ref: Components.Parameters.CommitRef /// Creates a new `Path`. /// /// - Parameters: @@ -4882,89 +4891,89 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.commit_hyphen_ref + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.CommitRef ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Path + public var path: Operations.ChecksListForRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query`. public struct Query: Sendable, Hashable { /// Returns check runs with the specified `name`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/check_name`. - public var check_name: Components.Parameters.check_hyphen_name? + public var checkName: Components.Parameters.CheckName? /// - Remark: Generated from `#/components/parameters/status`. - @frozen public enum status: String, Codable, Hashable, Sendable { + @frozen public enum Status: String, Codable, Hashable, Sendable, CaseIterable { case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" case completed = "completed" } /// Returns check runs with the specified `status`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/status`. - public var status: Components.Parameters.status? + public var status: Components.Parameters.Status? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case latest = "latest" case all = "all" } /// Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/filter`. - public var filter: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Query.filterPayload? + public var filter: Operations.ChecksListForRef.Input.Query.FilterPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/query/app_id`. - public var app_id: Swift.Int? + public var appId: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: - /// - check_name: Returns check runs with the specified `name`. + /// - checkName: Returns check runs with the specified `name`. /// - status: Returns check runs with the specified `status`. /// - filter: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. - /// - 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)." + /// - perPage: 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)." - /// - app_id: + /// - appId: public init( - check_name: Components.Parameters.check_hyphen_name? = nil, - status: Components.Parameters.status? = nil, - filter: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Query.filterPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - app_id: Swift.Int? = nil + checkName: Components.Parameters.CheckName? = nil, + status: Components.Parameters.Status? = nil, + filter: Operations.ChecksListForRef.Input.Query.FilterPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + appId: Swift.Int? = nil ) { - self.check_name = check_name + self.checkName = checkName self.status = status self.filter = filter - self.per_page = per_page + self.perPage = perPage self.page = page - self.app_id = app_id + self.appId = appId } } - public var query: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Query + public var query: Operations.ChecksListForRef.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Headers + public var headers: Operations.ChecksListForRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4972,9 +4981,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Path, - query: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Input.Headers = .init() + path: Operations.ChecksListForRef.Input.Path, + query: Operations.ChecksListForRef.Input.Query = .init(), + headers: Operations.ChecksListForRef.Input.Headers = .init() ) { self.path = path self.query = query @@ -4986,49 +4995,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Headers + public var headers: Operations.ChecksListForRef.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/content/json/check_runs`. - public var check_runs: [Components.Schemas.check_hyphen_run] - /// Creates a new `jsonPayload`. + public var checkRuns: [Components.Schemas.CheckRun] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - check_runs: + /// - totalCount: + /// - checkRuns: public init( - total_count: Swift.Int, - check_runs: [Components.Schemas.check_hyphen_run] + totalCount: Swift.Int, + checkRuns: [Components.Schemas.CheckRun] ) { - self.total_count = total_count - self.check_runs = check_runs + self.totalCount = totalCount + self.checkRuns = checkRuns } public enum CodingKeys: String, CodingKey { - case total_count - case check_runs + case totalCount = "total_count" + case checkRuns = "check_runs" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-runs/GET/responses/200/content/application\/json`. - case json(Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload) + case json(Operations.ChecksListForRef.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload { + public var json: Operations.ChecksListForRef.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5038,15 +5047,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body + public var body: Operations.ChecksListForRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(), - body: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok.Body + headers: Operations.ChecksListForRef.Output.Ok.Headers = .init(), + body: Operations.ChecksListForRef.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5057,12 +5066,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-runs/get(checks/list-for-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok) + case ok(Operations.ChecksListForRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_list_hyphen_for_hyphen_ref.Output.Ok { + public var ok: Operations.ChecksListForRef.Output.Ok { get throws { switch self { case let .ok(response): @@ -5117,7 +5126,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/check-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-suites/get(checks/list-suites-for-ref)`. - public enum checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref { + public enum ChecksListSuitesForRef { public static let id: Swift.String = "checks/list-suites-for-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/path`. @@ -5125,15 +5134,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/path/ref`. - public var ref: Components.Parameters.commit_hyphen_ref + public var ref: Components.Parameters.CommitRef /// Creates a new `Path`. /// /// - Parameters: @@ -5141,66 +5150,66 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.commit_hyphen_ref + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.CommitRef ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Path + public var path: Operations.ChecksListSuitesForRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/query`. public struct Query: Sendable, Hashable { /// Filters check suites by GitHub App `id`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/query/app_id`. - public var app_id: Swift.Int? + public var appId: Swift.Int? /// Returns check runs with the specified `name`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/query/check_name`. - public var check_name: Components.Parameters.check_hyphen_name? + public var checkName: Components.Parameters.CheckName? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - app_id: Filters check suites by GitHub App `id`. - /// - check_name: Returns check runs with the specified `name`. - /// - 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)." + /// - appId: Filters check suites by GitHub App `id`. + /// - checkName: Returns check runs with the specified `name`. + /// - perPage: 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)." public init( - app_id: Swift.Int? = nil, - check_name: Components.Parameters.check_hyphen_name? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + appId: Swift.Int? = nil, + checkName: Components.Parameters.CheckName? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.app_id = app_id - self.check_name = check_name - self.per_page = per_page + self.appId = appId + self.checkName = checkName + self.perPage = perPage self.page = page } } - public var query: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Query + public var query: Operations.ChecksListSuitesForRef.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Headers + public var headers: Operations.ChecksListSuitesForRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5208,9 +5217,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Path, - query: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Input.Headers = .init() + path: Operations.ChecksListSuitesForRef.Input.Path, + query: Operations.ChecksListSuitesForRef.Input.Query = .init(), + headers: Operations.ChecksListSuitesForRef.Input.Headers = .init() ) { self.path = path self.query = query @@ -5222,49 +5231,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Headers + public var headers: Operations.ChecksListSuitesForRef.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/content/json/check_suites`. - public var check_suites: [Components.Schemas.check_hyphen_suite] - /// Creates a new `jsonPayload`. + public var checkSuites: [Components.Schemas.CheckSuite] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - check_suites: + /// - totalCount: + /// - checkSuites: public init( - total_count: Swift.Int, - check_suites: [Components.Schemas.check_hyphen_suite] + totalCount: Swift.Int, + checkSuites: [Components.Schemas.CheckSuite] ) { - self.total_count = total_count - self.check_suites = check_suites + self.totalCount = totalCount + self.checkSuites = checkSuites } public enum CodingKeys: String, CodingKey { - case total_count - case check_suites + case totalCount = "total_count" + case checkSuites = "check_suites" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/check-suites/GET/responses/200/content/application\/json`. - case json(Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload) + case json(Operations.ChecksListSuitesForRef.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body.jsonPayload { + public var json: Operations.ChecksListSuitesForRef.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5274,15 +5283,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body + public var body: Operations.ChecksListSuitesForRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(), - body: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok.Body + headers: Operations.ChecksListSuitesForRef.Output.Ok.Headers = .init(), + body: Operations.ChecksListSuitesForRef.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5293,12 +5302,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/check-suites/get(checks/list-suites-for-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok) + case ok(Operations.ChecksListSuitesForRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.checks_sol_list_hyphen_suites_hyphen_for_hyphen_ref.Output.Ok { + public var ok: Operations.ChecksListSuitesForRef.Output.Ok { get throws { switch self { case let .ok(response): From 531d1d94fbaa6ccc0e4bfe0e55c016e83e340fc3 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:00:36 -0700 Subject: [PATCH 08/46] Commit via running ake Sources/code-scanning --- Sources/code-scanning/Client.swift | 518 ++-- Sources/code-scanning/Types.swift | 4382 ++++++++++++++-------------- 2 files changed, 2527 insertions(+), 2373 deletions(-) diff --git a/Sources/code-scanning/Client.swift b/Sources/code-scanning/Client.swift index c9fefb816d..039a6617ab 100644 --- a/Sources/code-scanning/Client.swift +++ b/Sources/code-scanning/Client.swift @@ -48,10 +48,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)`. - public func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { + public func codeScanningListAlertsForOrg(_ input: Operations.CodeScanningListAlertsForOrg.Input) async throws -> Operations.CodeScanningListAlertsForOrg.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.id, + forOperation: Operations.CodeScanningListAlertsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-scanning/alerts", @@ -69,14 +69,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "tool_name", - value: input.query.tool_name + value: input.query.toolName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "tool_guid", - value: input.query.tool_guid + value: input.query.toolGuid ) try converter.setQueryItemAsURI( in: &request, @@ -104,7 +104,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -143,13 +143,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CodeScanningListAlertsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.CodeScanningListAlertsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -159,7 +159,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_scanning_hyphen_organization_hyphen_alert_hyphen_items].self, + [Components.Schemas.CodeScanningOrganizationAlertItems].self, from: responseBody, transforming: { value in .json(value) @@ -174,7 +174,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -184,7 +184,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -196,7 +196,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -206,7 +206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -240,10 +240,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)`. - public func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { + public func codeScanningListAlertsForRepo(_ input: Operations.CodeScanningListAlertsForRepo.Input) async throws -> Operations.CodeScanningListAlertsForRepo.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.id, + forOperation: Operations.CodeScanningListAlertsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts", @@ -262,14 +262,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "tool_name", - value: input.query.tool_name + value: input.query.toolName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "tool_guid", - value: input.query.tool_guid + value: input.query.toolGuid ) try converter.setQueryItemAsURI( in: &request, @@ -283,7 +283,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -351,7 +351,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.CodeScanningListAlertsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -361,7 +361,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_items].self, + [Components.Schemas.CodeScanningAlertItems].self, from: responseBody, transforming: { value in .json(value) @@ -375,7 +375,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -385,7 +385,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -397,7 +397,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -407,7 +407,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -419,7 +419,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -429,7 +429,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -459,17 +459,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)`. - public func code_hyphen_scanning_sol_get_hyphen_alert(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output { + public func codeScanningGetAlert(_ input: Operations.CodeScanningGetAlert.Input) async throws -> Operations.CodeScanningGetAlert.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_alert.id, + forOperation: Operations.CodeScanningGetAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -487,7 +487,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body + let body: Operations.CodeScanningGetAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -497,7 +497,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_alert.self, + Components.Schemas.CodeScanningAlert.self, from: responseBody, transforming: { value in .json(value) @@ -511,7 +511,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -521,7 +521,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -533,7 +533,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -543,7 +543,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -555,7 +555,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -565,7 +565,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -594,17 +594,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)`. - public func code_hyphen_scanning_sol_update_hyphen_alert(_ input: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output { + public func codeScanningUpdateAlert(_ input: Operations.CodeScanningUpdateAlert.Input) async throws -> Operations.CodeScanningUpdateAlert.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_update_hyphen_alert.id, + forOperation: Operations.CodeScanningUpdateAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -631,7 +631,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body + let body: Operations.CodeScanningUpdateAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -641,7 +641,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_alert.self, + Components.Schemas.CodeScanningAlert.self, from: responseBody, transforming: { value in .json(value) @@ -653,7 +653,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -664,7 +664,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -672,10 +672,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -684,7 +684,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -694,7 +694,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -706,7 +706,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -716,7 +716,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -728,7 +728,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -738,7 +738,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -768,17 +768,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)`. - public func code_hyphen_scanning_sol_get_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output { + public func codeScanningGetAutofix(_ input: Operations.CodeScanningGetAutofix.Input) async throws -> Operations.CodeScanningGetAutofix.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.id, + forOperation: Operations.CodeScanningGetAutofix.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}/autofix", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -796,7 +796,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output.Ok.Body + let body: Operations.CodeScanningGetAutofix.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -806,7 +806,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_autofix.self, + Components.Schemas.CodeScanningAutofix.self, from: responseBody, transforming: { value in .json(value) @@ -818,7 +818,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_bad_request.Body + let body: Components.Responses.CodeScanningBadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -828,7 +828,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -840,7 +840,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -850,7 +850,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -862,7 +862,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -872,7 +872,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -884,7 +884,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -894,7 +894,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -928,17 +928,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)`. - public func code_hyphen_scanning_sol_create_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output { + public func codeScanningCreateAutofix(_ input: Operations.CodeScanningCreateAutofix.Input) async throws -> Operations.CodeScanningCreateAutofix.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.id, + forOperation: Operations.CodeScanningCreateAutofix.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}/autofix", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -956,7 +956,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Ok.Body + let body: Operations.CodeScanningCreateAutofix.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -966,7 +966,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_autofix.self, + Components.Schemas.CodeScanningAutofix.self, from: responseBody, transforming: { value in .json(value) @@ -978,7 +978,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Accepted.Body + let body: Operations.CodeScanningCreateAutofix.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -988,7 +988,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_autofix.self, + Components.Schemas.CodeScanningAutofix.self, from: responseBody, transforming: { value in .json(value) @@ -1000,7 +1000,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_bad_request.Body + let body: Components.Responses.CodeScanningBadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1010,7 +1010,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1022,7 +1022,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_autofix_create_forbidden.Body + let body: Components.Responses.CodeScanningAutofixCreateForbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1032,7 +1032,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1044,7 +1044,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1054,7 +1054,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1068,7 +1068,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1078,7 +1078,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1110,17 +1110,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)`. - public func code_hyphen_scanning_sol_commit_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output { + public func codeScanningCommitAutofix(_ input: Operations.CodeScanningCommitAutofix.Input) async throws -> Operations.CodeScanningCommitAutofix.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.id, + forOperation: Operations.CodeScanningCommitAutofix.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}/autofix/commits", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1149,7 +1149,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.Created.Body + let body: Operations.CodeScanningCommitAutofix.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1159,7 +1159,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_commits_hyphen_response.self, + Components.Schemas.CodeScanningAutofixCommitsResponse.self, from: responseBody, transforming: { value in .json(value) @@ -1171,7 +1171,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_bad_request.Body + let body: Components.Responses.CodeScanningBadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1181,7 +1181,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1193,7 +1193,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1203,7 +1203,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1215,7 +1215,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1225,7 +1225,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1239,7 +1239,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1249,7 +1249,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1279,17 +1279,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)`. - public func code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output { + public func codeScanningListAlertInstances(_ input: Operations.CodeScanningListAlertInstances.Input) async throws -> Operations.CodeScanningListAlertInstances.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.id, + forOperation: Operations.CodeScanningListAlertInstances.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/alerts/{}/instances", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1309,7 +1309,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1335,7 +1335,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output.Ok.Body + let body: Operations.CodeScanningListAlertInstances.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance].self, + [Components.Schemas.CodeScanningAlertInstance].self, from: responseBody, transforming: { value in .json(value) @@ -1357,7 +1357,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1367,7 +1367,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1379,7 +1379,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1389,7 +1389,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1401,7 +1401,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1411,7 +1411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1453,10 +1453,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)`. - public func code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output { + public func codeScanningListRecentAnalyses(_ input: Operations.CodeScanningListRecentAnalyses.Input) async throws -> Operations.CodeScanningListRecentAnalyses.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.id, + forOperation: Operations.CodeScanningListRecentAnalyses.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/analyses", @@ -1475,14 +1475,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "tool_name", - value: input.query.tool_name + value: input.query.toolName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "tool_guid", - value: input.query.tool_guid + value: input.query.toolGuid ) try converter.setQueryItemAsURI( in: &request, @@ -1496,7 +1496,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1517,7 +1517,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "sarif_id", - value: input.query.sarif_id + value: input.query.sarifId ) try converter.setQueryItemAsURI( in: &request, @@ -1543,7 +1543,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output.Ok.Body + let body: Operations.CodeScanningListRecentAnalyses.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1553,7 +1553,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_scanning_hyphen_analysis].self, + [Components.Schemas.CodeScanningAnalysis].self, from: responseBody, transforming: { value in .json(value) @@ -1565,7 +1565,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1575,7 +1575,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1587,7 +1587,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1597,7 +1597,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1609,7 +1609,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1619,7 +1619,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1663,17 +1663,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`. - public func code_hyphen_scanning_sol_get_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output { + public func codeScanningGetAnalysis(_ input: Operations.CodeScanningGetAnalysis.Input) async throws -> Operations.CodeScanningGetAnalysis.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.id, + forOperation: Operations.CodeScanningGetAnalysis.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/analyses/{}", parameters: [ input.path.owner, input.path.repo, - input.path.analysis_id + input.path.analysisId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1691,7 +1691,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output.Ok.Body + let body: Operations.CodeScanningGetAnalysis.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1702,7 +1702,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_analysis.self, + Components.Schemas.CodeScanningAnalysis.self, from: responseBody, transforming: { value in .json(value) @@ -1713,7 +1713,7 @@ public struct Client: APIProtocol { OpenAPIRuntime.HTTPBody.self, from: responseBody, transforming: { value in - .application_json_plus_sarif(value) + .applicationJsonSarif(value) } ) default: @@ -1722,7 +1722,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1732,7 +1732,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1744,7 +1744,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1754,7 +1754,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1764,9 +1764,31 @@ public struct Client: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.UnprocessableAnalysis.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BasicError.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1776,7 +1798,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1867,17 +1889,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)`. - public func code_hyphen_scanning_sol_delete_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output { + public func codeScanningDeleteAnalysis(_ input: Operations.CodeScanningDeleteAnalysis.Input) async throws -> Operations.CodeScanningDeleteAnalysis.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.id, + forOperation: Operations.CodeScanningDeleteAnalysis.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/analyses/{}", parameters: [ input.path.owner, input.path.repo, - input.path.analysis_id + input.path.analysisId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1890,7 +1912,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "confirm_delete", - value: input.query.confirm_delete + value: input.query.confirmDelete ) converter.setAcceptHeader( in: &request.headerFields, @@ -1902,7 +1924,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output.Ok.Body + let body: Operations.CodeScanningDeleteAnalysis.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1912,7 +1934,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_deletion.self, + Components.Schemas.CodeScanningAnalysisDeletion.self, from: responseBody, transforming: { value in .json(value) @@ -1924,7 +1946,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1935,7 +1957,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1943,10 +1965,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1955,7 +1977,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1965,7 +1987,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1977,7 +1999,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1987,7 +2009,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1999,7 +2021,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2009,7 +2031,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2039,10 +2061,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)`. - public func code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output { + public func codeScanningListCodeqlDatabases(_ input: Operations.CodeScanningListCodeqlDatabases.Input) async throws -> Operations.CodeScanningListCodeqlDatabases.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.id, + forOperation: Operations.CodeScanningListCodeqlDatabases.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/databases", @@ -2066,7 +2088,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output.Ok.Body + let body: Operations.CodeScanningListCodeqlDatabases.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2076,7 +2098,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database].self, + [Components.Schemas.CodeScanningCodeqlDatabase].self, from: responseBody, transforming: { value in .json(value) @@ -2088,7 +2110,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2098,7 +2120,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2110,7 +2132,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2120,7 +2142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2132,7 +2154,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2142,7 +2164,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2178,10 +2200,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)`. - public func code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output { + public func codeScanningGetCodeqlDatabase(_ input: Operations.CodeScanningGetCodeqlDatabase.Input) async throws -> Operations.CodeScanningGetCodeqlDatabase.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.id, + forOperation: Operations.CodeScanningGetCodeqlDatabase.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/databases/{}", @@ -2206,7 +2228,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output.Ok.Body + let body: Operations.CodeScanningGetCodeqlDatabase.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2216,7 +2238,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database.self, + Components.Schemas.CodeScanningCodeqlDatabase.self, from: responseBody, transforming: { value in .json(value) @@ -2230,7 +2252,7 @@ public struct Client: APIProtocol { return .found(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2240,7 +2262,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2252,7 +2274,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2262,7 +2284,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2274,7 +2296,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2284,7 +2306,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2314,10 +2336,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)`. - public func code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database(_ input: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Output { + public func codeScanningDeleteCodeqlDatabase(_ input: Operations.CodeScanningDeleteCodeqlDatabase.Input) async throws -> Operations.CodeScanningDeleteCodeqlDatabase.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.id, + forOperation: Operations.CodeScanningDeleteCodeqlDatabase.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/databases/{}", @@ -2344,7 +2366,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2354,7 +2376,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2366,7 +2388,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2376,7 +2398,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2388,7 +2410,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2398,7 +2420,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2433,10 +2455,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)`. - public func code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output { + public func codeScanningCreateVariantAnalysis(_ input: Operations.CodeScanningCreateVariantAnalysis.Input) async throws -> Operations.CodeScanningCreateVariantAnalysis.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.id, + forOperation: Operations.CodeScanningCreateVariantAnalysis.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/variant-analyses", @@ -2469,7 +2491,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.Created.Body + let body: Operations.CodeScanningCreateVariantAnalysis.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2479,7 +2501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.self, + Components.Schemas.CodeScanningVariantAnalysis.self, from: responseBody, transforming: { value in .json(value) @@ -2491,7 +2513,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2501,7 +2523,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2513,7 +2535,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.UnprocessableContent.Body + let body: Operations.CodeScanningCreateVariantAnalysis.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2523,7 +2545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2535,7 +2557,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2545,7 +2567,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2575,17 +2597,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)`. - public func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output { + public func codeScanningGetVariantAnalysis(_ input: Operations.CodeScanningGetVariantAnalysis.Input) async throws -> Operations.CodeScanningGetVariantAnalysis.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.id, + forOperation: Operations.CodeScanningGetVariantAnalysis.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/variant-analyses/{}", parameters: [ input.path.owner, input.path.repo, - input.path.codeql_variant_analysis_id + input.path.codeqlVariantAnalysisId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2603,7 +2625,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output.Ok.Body + let body: Operations.CodeScanningGetVariantAnalysis.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2613,7 +2635,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.self, + Components.Schemas.CodeScanningVariantAnalysis.self, from: responseBody, transforming: { value in .json(value) @@ -2625,7 +2647,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2635,7 +2657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2647,7 +2669,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2657,7 +2679,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2687,19 +2709,19 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)`. - public func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output { + public func codeScanningGetVariantAnalysisRepoTask(_ input: Operations.CodeScanningGetVariantAnalysisRepoTask.Input) async throws -> Operations.CodeScanningGetVariantAnalysisRepoTask.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.id, + forOperation: Operations.CodeScanningGetVariantAnalysisRepoTask.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/codeql/variant-analyses/{}/repos/{}/{}", parameters: [ input.path.owner, input.path.repo, - input.path.codeql_variant_analysis_id, - input.path.repo_owner, - input.path.repo_name + input.path.codeqlVariantAnalysisId, + input.path.repoOwner, + input.path.repoName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2717,7 +2739,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output.Ok.Body + let body: Operations.CodeScanningGetVariantAnalysisRepoTask.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2727,7 +2749,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.self, + Components.Schemas.CodeScanningVariantAnalysisRepoTask.self, from: responseBody, transforming: { value in .json(value) @@ -2739,7 +2761,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2749,7 +2771,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2761,7 +2783,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2771,7 +2793,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2801,10 +2823,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)`. - public func code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output { + public func codeScanningGetDefaultSetup(_ input: Operations.CodeScanningGetDefaultSetup.Input) async throws -> Operations.CodeScanningGetDefaultSetup.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.id, + forOperation: Operations.CodeScanningGetDefaultSetup.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/default-setup", @@ -2828,7 +2850,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output.Ok.Body + let body: Operations.CodeScanningGetDefaultSetup.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2838,7 +2860,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.self, + Components.Schemas.CodeScanningDefaultSetup.self, from: responseBody, transforming: { value in .json(value) @@ -2850,7 +2872,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2860,7 +2882,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2872,7 +2894,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2882,7 +2904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2894,7 +2916,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2904,7 +2926,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2934,10 +2956,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)`. - public func code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup(_ input: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output { + public func codeScanningUpdateDefaultSetup(_ input: Operations.CodeScanningUpdateDefaultSetup.Input) async throws -> Operations.CodeScanningUpdateDefaultSetup.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.id, + forOperation: Operations.CodeScanningUpdateDefaultSetup.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/default-setup", @@ -2970,7 +2992,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Ok.Body + let body: Operations.CodeScanningUpdateDefaultSetup.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2980,7 +3002,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -2992,7 +3014,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Accepted.Body + let body: Operations.CodeScanningUpdateDefaultSetup.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3002,7 +3024,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update_hyphen_response.self, + Components.Schemas.CodeScanningDefaultSetupUpdateResponse.self, from: responseBody, transforming: { value in .json(value) @@ -3014,7 +3036,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3024,7 +3046,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3036,7 +3058,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3046,7 +3068,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3058,7 +3080,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_conflict.Body + let body: Components.Responses.CodeScanningConflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3068,7 +3090,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3080,7 +3102,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3090,7 +3112,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3151,10 +3173,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/sarifs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)`. - public func code_hyphen_scanning_sol_upload_hyphen_sarif(_ input: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input) async throws -> Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output { + public func codeScanningUploadSarif(_ input: Operations.CodeScanningUploadSarif.Input) async throws -> Operations.CodeScanningUploadSarif.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.id, + forOperation: Operations.CodeScanningUploadSarif.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/sarifs", @@ -3187,7 +3209,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.Accepted.Body + let body: Operations.CodeScanningUploadSarif.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3197,7 +3219,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_receipt.self, + Components.Schemas.CodeScanningSarifsReceipt.self, from: responseBody, transforming: { value in .json(value) @@ -3211,7 +3233,7 @@ public struct Client: APIProtocol { return .badRequest(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_write.Body + let body: Components.Responses.CodeScanningForbiddenWrite.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3221,7 +3243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3233,7 +3255,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3243,7 +3265,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3257,7 +3279,7 @@ public struct Client: APIProtocol { return .contentTooLarge(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3267,7 +3289,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3296,17 +3318,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)`. - public func code_hyphen_scanning_sol_get_hyphen_sarif(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output { + public func codeScanningGetSarif(_ input: Operations.CodeScanningGetSarif.Input) async throws -> Operations.CodeScanningGetSarif.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.id, + forOperation: Operations.CodeScanningGetSarif.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-scanning/sarifs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.sarif_id + input.path.sarifId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3324,7 +3346,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.Ok.Body + let body: Operations.CodeScanningGetSarif.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3334,7 +3356,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_status.self, + Components.Schemas.CodeScanningSarifsStatus.self, from: responseBody, transforming: { value in .json(value) @@ -3346,7 +3368,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.code_scanning_forbidden_read.Body + let body: Components.Responses.CodeScanningForbiddenRead.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3356,7 +3378,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3370,7 +3392,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3380,7 +3402,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index ada491d0dd..ecede7b5d2 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -21,7 +21,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)`. - func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output + func codeScanningListAlertsForOrg(_ input: Operations.CodeScanningListAlertsForOrg.Input) async throws -> Operations.CodeScanningListAlertsForOrg.Output /// List code scanning alerts for a repository /// /// Lists code scanning alerts. @@ -34,7 +34,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)`. - func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output + func codeScanningListAlertsForRepo(_ input: Operations.CodeScanningListAlertsForRepo.Input) async throws -> Operations.CodeScanningListAlertsForRepo.Output /// Get a code scanning alert /// /// Gets a single code scanning alert. @@ -43,7 +43,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)`. - func code_hyphen_scanning_sol_get_hyphen_alert(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output + func codeScanningGetAlert(_ input: Operations.CodeScanningGetAlert.Input) async throws -> Operations.CodeScanningGetAlert.Output /// Update a code scanning alert /// /// Updates the status of a single code scanning alert. @@ -51,7 +51,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)`. - func code_hyphen_scanning_sol_update_hyphen_alert(_ input: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output + func codeScanningUpdateAlert(_ input: Operations.CodeScanningUpdateAlert.Input) async throws -> Operations.CodeScanningUpdateAlert.Output /// Get the status of an autofix for a code scanning alert /// /// Gets the status and description of an autofix for a code scanning alert. @@ -60,7 +60,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)`. - func code_hyphen_scanning_sol_get_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output + func codeScanningGetAutofix(_ input: Operations.CodeScanningGetAutofix.Input) async throws -> Operations.CodeScanningGetAutofix.Output /// Create an autofix for a code scanning alert /// /// Creates an autofix for a code scanning alert. @@ -73,7 +73,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)`. - func code_hyphen_scanning_sol_create_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output + func codeScanningCreateAutofix(_ input: Operations.CodeScanningCreateAutofix.Input) async throws -> Operations.CodeScanningCreateAutofix.Output /// Commit an autofix for a code scanning alert /// /// Commits an autofix for a code scanning alert. @@ -84,7 +84,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)`. - func code_hyphen_scanning_sol_commit_hyphen_autofix(_ input: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input) async throws -> Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output + func codeScanningCommitAutofix(_ input: Operations.CodeScanningCommitAutofix.Input) async throws -> Operations.CodeScanningCommitAutofix.Output /// List instances of a code scanning alert /// /// Lists all instances of the specified code scanning alert. @@ -93,7 +93,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)`. - func code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output + func codeScanningListAlertInstances(_ input: Operations.CodeScanningListAlertInstances.Input) async throws -> Operations.CodeScanningListAlertInstances.Output /// List code scanning analyses for a repository /// /// Lists the details of all code scanning analyses for a repository, @@ -114,7 +114,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)`. - func code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output + func codeScanningListRecentAnalyses(_ input: Operations.CodeScanningListRecentAnalyses.Input) async throws -> Operations.CodeScanningListRecentAnalyses.Output /// Get a code scanning analysis for a repository /// /// Gets a specified code scanning analysis for a repository. @@ -137,7 +137,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`. - func code_hyphen_scanning_sol_get_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output + func codeScanningGetAnalysis(_ input: Operations.CodeScanningGetAnalysis.Input) async throws -> Operations.CodeScanningGetAnalysis.Output /// Delete a code scanning analysis from a repository /// /// Deletes a specified code scanning analysis from a repository. @@ -207,7 +207,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)`. - func code_hyphen_scanning_sol_delete_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output + func codeScanningDeleteAnalysis(_ input: Operations.CodeScanningDeleteAnalysis.Input) async throws -> Operations.CodeScanningDeleteAnalysis.Output /// List CodeQL databases for a repository /// /// Lists the CodeQL databases that are available in a repository. @@ -216,7 +216,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)`. - func code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases(_ input: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output + func codeScanningListCodeqlDatabases(_ input: Operations.CodeScanningListCodeqlDatabases.Input) async throws -> Operations.CodeScanningListCodeqlDatabases.Output /// Get a CodeQL database for a repository /// /// Gets a CodeQL database for a language in a repository. @@ -231,7 +231,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)`. - func code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output + func codeScanningGetCodeqlDatabase(_ input: Operations.CodeScanningGetCodeqlDatabase.Input) async throws -> Operations.CodeScanningGetCodeqlDatabase.Output /// Delete a CodeQL database /// /// Deletes a CodeQL database for a language in a repository. @@ -240,7 +240,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)`. - func code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database(_ input: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Output + func codeScanningDeleteCodeqlDatabase(_ input: Operations.CodeScanningDeleteCodeqlDatabase.Input) async throws -> Operations.CodeScanningDeleteCodeqlDatabase.Output /// Create a CodeQL variant analysis /// /// Creates a new CodeQL variant analysis, which will run a CodeQL query against one or more repositories. @@ -254,7 +254,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)`. - func code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output + func codeScanningCreateVariantAnalysis(_ input: Operations.CodeScanningCreateVariantAnalysis.Input) async throws -> Operations.CodeScanningCreateVariantAnalysis.Output /// Get the summary of a CodeQL variant analysis /// /// Gets the summary of a CodeQL variant analysis. @@ -263,7 +263,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)`. - func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output + func codeScanningGetVariantAnalysis(_ input: Operations.CodeScanningGetVariantAnalysis.Input) async throws -> Operations.CodeScanningGetVariantAnalysis.Output /// Get the analysis status of a repository in a CodeQL variant analysis /// /// Gets the analysis status of a repository in a CodeQL variant analysis. @@ -272,7 +272,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)`. - func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output + func codeScanningGetVariantAnalysisRepoTask(_ input: Operations.CodeScanningGetVariantAnalysisRepoTask.Input) async throws -> Operations.CodeScanningGetVariantAnalysisRepoTask.Output /// Get a code scanning default setup configuration /// /// Gets a code scanning default setup configuration. @@ -281,7 +281,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)`. - func code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output + func codeScanningGetDefaultSetup(_ input: Operations.CodeScanningGetDefaultSetup.Input) async throws -> Operations.CodeScanningGetDefaultSetup.Output /// Update a code scanning default setup configuration /// /// Updates a code scanning default setup configuration. @@ -290,7 +290,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)`. - func code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup(_ input: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output + func codeScanningUpdateDefaultSetup(_ input: Operations.CodeScanningUpdateDefaultSetup.Input) async throws -> Operations.CodeScanningUpdateDefaultSetup.Output /// Upload an analysis as SARIF data /// /// Uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)." @@ -330,7 +330,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/sarifs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)`. - func code_hyphen_scanning_sol_upload_hyphen_sarif(_ input: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input) async throws -> Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output + func codeScanningUploadSarif(_ input: Operations.CodeScanningUploadSarif.Input) async throws -> Operations.CodeScanningUploadSarif.Output /// Get information about a SARIF upload /// /// Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)." @@ -338,7 +338,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)`. - func code_hyphen_scanning_sol_get_hyphen_sarif(_ input: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output + func codeScanningGetSarif(_ input: Operations.CodeScanningGetSarif.Input) async throws -> Operations.CodeScanningGetSarif.Output } /// Convenience overloads for operation inputs. @@ -353,12 +353,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)`. - public func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { - try await code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input( + public func codeScanningListAlertsForOrg( + path: Operations.CodeScanningListAlertsForOrg.Input.Path, + query: Operations.CodeScanningListAlertsForOrg.Input.Query = .init(), + headers: Operations.CodeScanningListAlertsForOrg.Input.Headers = .init() + ) async throws -> Operations.CodeScanningListAlertsForOrg.Output { + try await codeScanningListAlertsForOrg(Operations.CodeScanningListAlertsForOrg.Input( path: path, query: query, headers: headers @@ -376,12 +376,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)`. - public func code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { - try await code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input( + public func codeScanningListAlertsForRepo( + path: Operations.CodeScanningListAlertsForRepo.Input.Path, + query: Operations.CodeScanningListAlertsForRepo.Input.Query = .init(), + headers: Operations.CodeScanningListAlertsForRepo.Input.Headers = .init() + ) async throws -> Operations.CodeScanningListAlertsForRepo.Output { + try await codeScanningListAlertsForRepo(Operations.CodeScanningListAlertsForRepo.Input( path: path, query: query, headers: headers @@ -395,11 +395,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)`. - public func code_hyphen_scanning_sol_get_hyphen_alert( - path: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output { - try await code_hyphen_scanning_sol_get_hyphen_alert(Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input( + public func codeScanningGetAlert( + path: Operations.CodeScanningGetAlert.Input.Path, + headers: Operations.CodeScanningGetAlert.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetAlert.Output { + try await codeScanningGetAlert(Operations.CodeScanningGetAlert.Input( path: path, headers: headers )) @@ -411,12 +411,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)`. - public func code_hyphen_scanning_sol_update_hyphen_alert( - path: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Path, - headers: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Body - ) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output { - try await code_hyphen_scanning_sol_update_hyphen_alert(Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input( + public func codeScanningUpdateAlert( + path: Operations.CodeScanningUpdateAlert.Input.Path, + headers: Operations.CodeScanningUpdateAlert.Input.Headers = .init(), + body: Operations.CodeScanningUpdateAlert.Input.Body + ) async throws -> Operations.CodeScanningUpdateAlert.Output { + try await codeScanningUpdateAlert(Operations.CodeScanningUpdateAlert.Input( path: path, headers: headers, body: body @@ -430,11 +430,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)`. - public func code_hyphen_scanning_sol_get_hyphen_autofix( - path: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output { - try await code_hyphen_scanning_sol_get_hyphen_autofix(Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input( + public func codeScanningGetAutofix( + path: Operations.CodeScanningGetAutofix.Input.Path, + headers: Operations.CodeScanningGetAutofix.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetAutofix.Output { + try await codeScanningGetAutofix(Operations.CodeScanningGetAutofix.Input( path: path, headers: headers )) @@ -451,11 +451,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)`. - public func code_hyphen_scanning_sol_create_hyphen_autofix( - path: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output { - try await code_hyphen_scanning_sol_create_hyphen_autofix(Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input( + public func codeScanningCreateAutofix( + path: Operations.CodeScanningCreateAutofix.Input.Path, + headers: Operations.CodeScanningCreateAutofix.Input.Headers = .init() + ) async throws -> Operations.CodeScanningCreateAutofix.Output { + try await codeScanningCreateAutofix(Operations.CodeScanningCreateAutofix.Input( path: path, headers: headers )) @@ -470,12 +470,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)`. - public func code_hyphen_scanning_sol_commit_hyphen_autofix( - path: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Body? = nil - ) async throws -> Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output { - try await code_hyphen_scanning_sol_commit_hyphen_autofix(Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input( + public func codeScanningCommitAutofix( + path: Operations.CodeScanningCommitAutofix.Input.Path, + headers: Operations.CodeScanningCommitAutofix.Input.Headers = .init(), + body: Operations.CodeScanningCommitAutofix.Input.Body? = nil + ) async throws -> Operations.CodeScanningCommitAutofix.Output { + try await codeScanningCommitAutofix(Operations.CodeScanningCommitAutofix.Input( path: path, headers: headers, body: body @@ -489,12 +489,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)`. - public func code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output { - try await code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances(Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input( + public func codeScanningListAlertInstances( + path: Operations.CodeScanningListAlertInstances.Input.Path, + query: Operations.CodeScanningListAlertInstances.Input.Query = .init(), + headers: Operations.CodeScanningListAlertInstances.Input.Headers = .init() + ) async throws -> Operations.CodeScanningListAlertInstances.Output { + try await codeScanningListAlertInstances(Operations.CodeScanningListAlertInstances.Input( path: path, query: query, headers: headers @@ -520,12 +520,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)`. - public func code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses( - path: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output { - try await code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses(Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input( + public func codeScanningListRecentAnalyses( + path: Operations.CodeScanningListRecentAnalyses.Input.Path, + query: Operations.CodeScanningListRecentAnalyses.Input.Query = .init(), + headers: Operations.CodeScanningListRecentAnalyses.Input.Headers = .init() + ) async throws -> Operations.CodeScanningListRecentAnalyses.Output { + try await codeScanningListRecentAnalyses(Operations.CodeScanningListRecentAnalyses.Input( path: path, query: query, headers: headers @@ -553,11 +553,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`. - public func code_hyphen_scanning_sol_get_hyphen_analysis( - path: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output { - try await code_hyphen_scanning_sol_get_hyphen_analysis(Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input( + public func codeScanningGetAnalysis( + path: Operations.CodeScanningGetAnalysis.Input.Path, + headers: Operations.CodeScanningGetAnalysis.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetAnalysis.Output { + try await codeScanningGetAnalysis(Operations.CodeScanningGetAnalysis.Input( path: path, headers: headers )) @@ -631,12 +631,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)`. - public func code_hyphen_scanning_sol_delete_hyphen_analysis( - path: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Path, - query: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output { - try await code_hyphen_scanning_sol_delete_hyphen_analysis(Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input( + public func codeScanningDeleteAnalysis( + path: Operations.CodeScanningDeleteAnalysis.Input.Path, + query: Operations.CodeScanningDeleteAnalysis.Input.Query = .init(), + headers: Operations.CodeScanningDeleteAnalysis.Input.Headers = .init() + ) async throws -> Operations.CodeScanningDeleteAnalysis.Output { + try await codeScanningDeleteAnalysis(Operations.CodeScanningDeleteAnalysis.Input( path: path, query: query, headers: headers @@ -650,11 +650,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)`. - public func code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases( - path: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Path, - headers: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output { - try await code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases(Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input( + public func codeScanningListCodeqlDatabases( + path: Operations.CodeScanningListCodeqlDatabases.Input.Path, + headers: Operations.CodeScanningListCodeqlDatabases.Input.Headers = .init() + ) async throws -> Operations.CodeScanningListCodeqlDatabases.Output { + try await codeScanningListCodeqlDatabases(Operations.CodeScanningListCodeqlDatabases.Input( path: path, headers: headers )) @@ -673,11 +673,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)`. - public func code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database( - path: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output { - try await code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database(Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input( + public func codeScanningGetCodeqlDatabase( + path: Operations.CodeScanningGetCodeqlDatabase.Input.Path, + headers: Operations.CodeScanningGetCodeqlDatabase.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetCodeqlDatabase.Output { + try await codeScanningGetCodeqlDatabase(Operations.CodeScanningGetCodeqlDatabase.Input( path: path, headers: headers )) @@ -690,11 +690,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)`. - public func code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database( - path: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Path, - headers: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Output { - try await code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database(Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input( + public func codeScanningDeleteCodeqlDatabase( + path: Operations.CodeScanningDeleteCodeqlDatabase.Input.Path, + headers: Operations.CodeScanningDeleteCodeqlDatabase.Input.Headers = .init() + ) async throws -> Operations.CodeScanningDeleteCodeqlDatabase.Output { + try await codeScanningDeleteCodeqlDatabase(Operations.CodeScanningDeleteCodeqlDatabase.Input( path: path, headers: headers )) @@ -712,12 +712,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)`. - public func code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis( - path: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body - ) async throws -> Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output { - try await code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input( + public func codeScanningCreateVariantAnalysis( + path: Operations.CodeScanningCreateVariantAnalysis.Input.Path, + headers: Operations.CodeScanningCreateVariantAnalysis.Input.Headers = .init(), + body: Operations.CodeScanningCreateVariantAnalysis.Input.Body + ) async throws -> Operations.CodeScanningCreateVariantAnalysis.Output { + try await codeScanningCreateVariantAnalysis(Operations.CodeScanningCreateVariantAnalysis.Input( path: path, headers: headers, body: body @@ -731,11 +731,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)`. - public func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis( - path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output { - try await code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis(Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input( + public func codeScanningGetVariantAnalysis( + path: Operations.CodeScanningGetVariantAnalysis.Input.Path, + headers: Operations.CodeScanningGetVariantAnalysis.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetVariantAnalysis.Output { + try await codeScanningGetVariantAnalysis(Operations.CodeScanningGetVariantAnalysis.Input( path: path, headers: headers )) @@ -748,11 +748,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)`. - public func code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task( - path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output { - try await code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task(Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input( + public func codeScanningGetVariantAnalysisRepoTask( + path: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Path, + headers: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetVariantAnalysisRepoTask.Output { + try await codeScanningGetVariantAnalysisRepoTask(Operations.CodeScanningGetVariantAnalysisRepoTask.Input( path: path, headers: headers )) @@ -765,11 +765,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)`. - public func code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup( - path: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output { - try await code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup(Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input( + public func codeScanningGetDefaultSetup( + path: Operations.CodeScanningGetDefaultSetup.Input.Path, + headers: Operations.CodeScanningGetDefaultSetup.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetDefaultSetup.Output { + try await codeScanningGetDefaultSetup(Operations.CodeScanningGetDefaultSetup.Input( path: path, headers: headers )) @@ -782,12 +782,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)`. - public func code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup( - path: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Path, - headers: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Body - ) async throws -> Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output { - try await code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup(Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input( + public func codeScanningUpdateDefaultSetup( + path: Operations.CodeScanningUpdateDefaultSetup.Input.Path, + headers: Operations.CodeScanningUpdateDefaultSetup.Input.Headers = .init(), + body: Operations.CodeScanningUpdateDefaultSetup.Input.Body + ) async throws -> Operations.CodeScanningUpdateDefaultSetup.Output { + try await codeScanningUpdateDefaultSetup(Operations.CodeScanningUpdateDefaultSetup.Input( path: path, headers: headers, body: body @@ -832,12 +832,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/sarifs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)`. - public func code_hyphen_scanning_sol_upload_hyphen_sarif( - path: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Path, - headers: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Body - ) async throws -> Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output { - try await code_hyphen_scanning_sol_upload_hyphen_sarif(Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input( + public func codeScanningUploadSarif( + path: Operations.CodeScanningUploadSarif.Input.Path, + headers: Operations.CodeScanningUploadSarif.Input.Headers = .init(), + body: Operations.CodeScanningUploadSarif.Input.Body + ) async throws -> Operations.CodeScanningUploadSarif.Output { + try await codeScanningUploadSarif(Operations.CodeScanningUploadSarif.Input( path: path, headers: headers, body: body @@ -850,11 +850,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)`. - public func code_hyphen_scanning_sol_get_hyphen_sarif( - path: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output { - try await code_hyphen_scanning_sol_get_hyphen_sarif(Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input( + public func codeScanningGetSarif( + path: Operations.CodeScanningGetSarif.Input.Path, + headers: Operations.CodeScanningGetSarif.Input.Headers = .init() + ) async throws -> Operations.CodeScanningGetSarif.Output { + try await codeScanningGetSarif(Operations.CodeScanningGetSarif.Input( path: path, headers: headers )) @@ -863,6 +863,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -878,7 +887,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -888,171 +897,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1060,11 +1069,11 @@ public enum Components { /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -1073,25 +1082,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -1099,7 +1108,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -1109,7 +1118,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1119,142 +1128,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// A GitHub repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository`. - public struct simple_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/id`. @@ -1262,7 +1271,7 @@ public enum Components { /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/name`. @@ -1270,9 +1279,9 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/simple-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-repository/private`. @@ -1280,7 +1289,7 @@ public enum Components { /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The repository description. /// /// - Remark: Generated from `#/components/schemas/simple-repository/description`. @@ -1296,373 +1305,373 @@ public enum Components { /// A template for the API URL to download the repository as an archive. /// /// - Remark: Generated from `#/components/schemas/simple-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// A template for the API URL to list the available assignees for issues in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git blob in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// A template for the API URL to get information about branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// A template for the API URL to get information about collaborators of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// A template for the API URL to get information about comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// A template for the API URL to get information about commits on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// A template for the API URL to compare two commits or refs. /// /// - Remark: Generated from `#/components/schemas/simple-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// A template for the API URL to get the contents of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// A template for the API URL to list the contributors to the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// The API URL to list the deployments of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// The API URL to list the downloads on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// The API URL to list the events of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// The API URL to list the forks of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// A template for the API URL to get information about Git commits of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// A template for the API URL to get information about Git refs of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// A template for the API URL to get information about Git tags of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// A template for the API URL to get information about issue comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// A template for the API URL to get information about issue events on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// A template for the API URL to get information about issues on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// A template for the API URL to get information about deploy keys on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// A template for the API URL to get information about labels of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// The API URL to get information about the languages of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// The API URL to merge branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// A template for the API URL to get information about milestones of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// A template for the API URL to get information about notifications on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// A template for the API URL to get information about pull requests on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// A template for the API URL to get information about releases on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// The API URL to list the stargazers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// A template for the API URL to get information about statuses of a commit. /// /// - Remark: Generated from `#/components/schemas/simple-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// The API URL to list the subscribers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// The API URL to subscribe to notifications for this repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// The API URL to get information about tags on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// The API URL to list the teams on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git tree of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// The API URL to list the hooks on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/hooks_url`. - public var hooks_url: Swift.String - /// Creates a new `simple_hyphen_repository`. + public var hooksUrl: Swift.String + /// Creates a new `SimpleRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - node_id: The GraphQL identifier of the repository. + /// - nodeId: The GraphQL identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - owner: /// - _private: Whether the repository is private. - /// - html_url: The URL to view the repository on GitHub.com. + /// - htmlUrl: The URL to view the repository on GitHub.com. /// - description: The repository description. /// - fork: Whether the repository is a fork. /// - url: The URL to get more information about the repository from the GitHub API. - /// - archive_url: A template for the API URL to download the repository as an archive. - /// - assignees_url: A template for the API URL to list the available assignees for issues in the repository. - /// - blobs_url: A template for the API URL to create or retrieve a raw Git blob in the repository. - /// - branches_url: A template for the API URL to get information about branches in the repository. - /// - collaborators_url: A template for the API URL to get information about collaborators of the repository. - /// - comments_url: A template for the API URL to get information about comments on the repository. - /// - commits_url: A template for the API URL to get information about commits on the repository. - /// - compare_url: A template for the API URL to compare two commits or refs. - /// - contents_url: A template for the API URL to get the contents of the repository. - /// - contributors_url: A template for the API URL to list the contributors to the repository. - /// - deployments_url: The API URL to list the deployments of the repository. - /// - downloads_url: The API URL to list the downloads on the repository. - /// - events_url: The API URL to list the events of the repository. - /// - forks_url: The API URL to list the forks of the repository. - /// - git_commits_url: A template for the API URL to get information about Git commits of the repository. - /// - git_refs_url: A template for the API URL to get information about Git refs of the repository. - /// - git_tags_url: A template for the API URL to get information about Git tags of the repository. - /// - issue_comment_url: A template for the API URL to get information about issue comments on the repository. - /// - issue_events_url: A template for the API URL to get information about issue events on the repository. - /// - issues_url: A template for the API URL to get information about issues on the repository. - /// - keys_url: A template for the API URL to get information about deploy keys on the repository. - /// - labels_url: A template for the API URL to get information about labels of the repository. - /// - languages_url: The API URL to get information about the languages of the repository. - /// - merges_url: The API URL to merge branches in the repository. - /// - milestones_url: A template for the API URL to get information about milestones of the repository. - /// - notifications_url: A template for the API URL to get information about notifications on the repository. - /// - pulls_url: A template for the API URL to get information about pull requests on the repository. - /// - releases_url: A template for the API URL to get information about releases on the repository. - /// - stargazers_url: The API URL to list the stargazers on the repository. - /// - statuses_url: A template for the API URL to get information about statuses of a commit. - /// - subscribers_url: The API URL to list the subscribers on the repository. - /// - subscription_url: The API URL to subscribe to notifications for this repository. - /// - tags_url: The API URL to get information about tags on the repository. - /// - teams_url: The API URL to list the teams on the repository. - /// - trees_url: A template for the API URL to create or retrieve a raw Git tree of the repository. - /// - hooks_url: The API URL to list the hooks on the repository. + /// - archiveUrl: A template for the API URL to download the repository as an archive. + /// - assigneesUrl: A template for the API URL to list the available assignees for issues in the repository. + /// - blobsUrl: A template for the API URL to create or retrieve a raw Git blob in the repository. + /// - branchesUrl: A template for the API URL to get information about branches in the repository. + /// - collaboratorsUrl: A template for the API URL to get information about collaborators of the repository. + /// - commentsUrl: A template for the API URL to get information about comments on the repository. + /// - commitsUrl: A template for the API URL to get information about commits on the repository. + /// - compareUrl: A template for the API URL to compare two commits or refs. + /// - contentsUrl: A template for the API URL to get the contents of the repository. + /// - contributorsUrl: A template for the API URL to list the contributors to the repository. + /// - deploymentsUrl: The API URL to list the deployments of the repository. + /// - downloadsUrl: The API URL to list the downloads on the repository. + /// - eventsUrl: The API URL to list the events of the repository. + /// - forksUrl: The API URL to list the forks of the repository. + /// - gitCommitsUrl: A template for the API URL to get information about Git commits of the repository. + /// - gitRefsUrl: A template for the API URL to get information about Git refs of the repository. + /// - gitTagsUrl: A template for the API URL to get information about Git tags of the repository. + /// - issueCommentUrl: A template for the API URL to get information about issue comments on the repository. + /// - issueEventsUrl: A template for the API URL to get information about issue events on the repository. + /// - issuesUrl: A template for the API URL to get information about issues on the repository. + /// - keysUrl: A template for the API URL to get information about deploy keys on the repository. + /// - labelsUrl: A template for the API URL to get information about labels of the repository. + /// - languagesUrl: The API URL to get information about the languages of the repository. + /// - mergesUrl: The API URL to merge branches in the repository. + /// - milestonesUrl: A template for the API URL to get information about milestones of the repository. + /// - notificationsUrl: A template for the API URL to get information about notifications on the repository. + /// - pullsUrl: A template for the API URL to get information about pull requests on the repository. + /// - releasesUrl: A template for the API URL to get information about releases on the repository. + /// - stargazersUrl: The API URL to list the stargazers on the repository. + /// - statusesUrl: A template for the API URL to get information about statuses of a commit. + /// - subscribersUrl: The API URL to list the subscribers on the repository. + /// - subscriptionUrl: The API URL to subscribe to notifications for this repository. + /// - tagsUrl: The API URL to get information about tags on the repository. + /// - teamsUrl: The API URL to list the teams on the repository. + /// - treesUrl: A template for the API URL to create or retrieve a raw Git tree of the repository. + /// - hooksUrl: The API URL to list the hooks on the repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - hooks_url: Swift.String + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + hooksUrl: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.hooks_url = hooks_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.hooksUrl = hooksUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case hooks_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case hooksUrl = "hooks_url" } } /// The security alert number. /// /// - Remark: Generated from `#/components/schemas/alert-number`. - public typealias alert_hyphen_number = Swift.Int + public typealias AlertNumber = Swift.Int /// The REST API URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-url`. - public typealias alert_hyphen_url = Swift.String + public typealias AlertUrl = Swift.String /// The GitHub URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-html-url`. - public typealias alert_hyphen_html_hyphen_url = Swift.String + public typealias AlertHtmlUrl = Swift.String /// The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-created-at`. - public typealias alert_hyphen_created_hyphen_at = Foundation.Date + public typealias AlertCreatedAt = Foundation.Date /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-updated-at`. - public typealias alert_hyphen_updated_hyphen_at = Foundation.Date + public typealias AlertUpdatedAt = Foundation.Date /// The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-dismissed-at`. - public typealias alert_hyphen_dismissed_hyphen_at = Foundation.Date + public typealias AlertDismissedAt = Foundation.Date /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-fixed-at`. - public typealias alert_hyphen_fixed_hyphen_at = Foundation.Date + public typealias AlertFixedAt = Foundation.Date /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -1671,15 +1680,15 @@ public enum Components { /// The name of the tool used to generate the code scanning analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool-name`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_name = Swift.String + public typealias CodeScanningAnalysisToolName = Swift.String /// The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool-guid`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_guid = Swift.String + public typealias CodeScanningAnalysisToolGuid = Swift.String /// State of a code scanning alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-state-query`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAlertStateQuery: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case dismissed = "dismissed" @@ -1688,7 +1697,7 @@ public enum Components { /// Severity of a code scanning alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-severity`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_severity: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAlertSeverity: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -1700,11 +1709,11 @@ public enum Components { /// The REST API URL for fetching the list of instances for an alert. /// /// - Remark: Generated from `#/components/schemas/alert-instances-url`. - public typealias alert_hyphen_instances_hyphen_url = Swift.String + public typealias AlertInstancesUrl = Swift.String /// State of a code scanning alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-state`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case dismissed = "dismissed" case fixed = "fixed" @@ -1712,17 +1721,17 @@ public enum Components { /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-dismissed-reason`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason: String, Codable, Hashable, Sendable { - case false_space_positive = "false positive" - case won_apos_t_space_fix = "won't fix" - case used_space_in_space_tests = "used in tests" + @frozen public enum CodeScanningAlertDismissedReason: String, Codable, Hashable, Sendable, CaseIterable { + case falsePositive = "false positive" + case won_apos_tFix = "won't fix" + case usedInTests = "used in tests" } /// The dismissal comment associated with the dismissal of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-dismissed-comment`. - public typealias code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment = Swift.String + public typealias CodeScanningAlertDismissedComment = Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary`. - public struct code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary: Codable, Hashable, Sendable { + public struct CodeScanningAlertRuleSummary: Codable, Hashable, Sendable { /// A unique identifier for the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/id`. @@ -1734,7 +1743,7 @@ public enum Components { /// The severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case note = "note" case warning = "warning" @@ -1743,11 +1752,11 @@ public enum Components { /// The severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/severity`. - public var severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.severityPayload? + public var severity: Components.Schemas.CodeScanningAlertRuleSummary.SeverityPayload? /// The security severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/security_severity_level`. - @frozen public enum security_severity_levelPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecuritySeverityLevelPayload: String, Codable, Hashable, Sendable, CaseIterable { case low = "low" case medium = "medium" case high = "high" @@ -1756,7 +1765,7 @@ public enum Components { /// The security severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/security_severity_level`. - public var security_severity_level: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.security_severity_levelPayload? + public var securitySeverityLevel: Components.Schemas.CodeScanningAlertRuleSummary.SecuritySeverityLevelPayload? /// A short description of the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/description`. @@ -1764,7 +1773,7 @@ public enum Components { /// A description of the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/full_description`. - public var full_description: Swift.String? + public var fullDescription: Swift.String? /// A set of tags applicable for the rule. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/tags`. @@ -1776,74 +1785,74 @@ public enum Components { /// A link to the documentation for the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/help_uri`. - public var help_uri: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary`. + public var helpUri: Swift.String? + /// Creates a new `CodeScanningAlertRuleSummary`. /// /// - Parameters: /// - id: A unique identifier for the rule used to detect the alert. /// - name: The name of the rule used to detect the alert. /// - severity: The severity of the alert. - /// - security_severity_level: The security severity of the alert. + /// - securitySeverityLevel: The security severity of the alert. /// - description: A short description of the rule used to detect the alert. - /// - full_description: A description of the rule used to detect the alert. + /// - fullDescription: A description of the rule used to detect the alert. /// - tags: A set of tags applicable for the rule. /// - help: Detailed documentation for the rule as GitHub Flavored Markdown. - /// - help_uri: A link to the documentation for the rule used to detect the alert. + /// - helpUri: A link to the documentation for the rule used to detect the alert. public init( id: Swift.String? = nil, name: Swift.String? = nil, - severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.severityPayload? = nil, - security_severity_level: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.security_severity_levelPayload? = nil, + severity: Components.Schemas.CodeScanningAlertRuleSummary.SeverityPayload? = nil, + securitySeverityLevel: Components.Schemas.CodeScanningAlertRuleSummary.SecuritySeverityLevelPayload? = nil, description: Swift.String? = nil, - full_description: Swift.String? = nil, + fullDescription: Swift.String? = nil, tags: [Swift.String]? = nil, help: Swift.String? = nil, - help_uri: Swift.String? = nil + helpUri: Swift.String? = nil ) { self.id = id self.name = name self.severity = severity - self.security_severity_level = security_severity_level + self.securitySeverityLevel = securitySeverityLevel self.description = description - self.full_description = full_description + self.fullDescription = fullDescription self.tags = tags self.help = help - self.help_uri = help_uri + self.helpUri = helpUri } public enum CodingKeys: String, CodingKey { case id case name case severity - case security_severity_level + case securitySeverityLevel = "security_severity_level" case description - case full_description + case fullDescription = "full_description" case tags case help - case help_uri + case helpUri = "help_uri" } } /// The version of the tool used to generate the code scanning analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool-version`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_version = Swift.String + public typealias CodeScanningAnalysisToolVersion = Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool`. - public struct code_hyphen_scanning_hyphen_analysis_hyphen_tool: Codable, Hashable, Sendable { + public struct CodeScanningAnalysisTool: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool/name`. - public var name: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_name? + public var name: Components.Schemas.CodeScanningAnalysisToolName? /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool/version`. - public var version: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_version? + public var version: Components.Schemas.CodeScanningAnalysisToolVersion? /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-tool/guid`. - public var guid: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_guid? - /// Creates a new `code_hyphen_scanning_hyphen_analysis_hyphen_tool`. + public var guid: Components.Schemas.CodeScanningAnalysisToolGuid? + /// Creates a new `CodeScanningAnalysisTool`. /// /// - Parameters: /// - name: /// - version: /// - guid: public init( - name: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_name? = nil, - version: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_version? = nil, - guid: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_guid? = nil + name: Components.Schemas.CodeScanningAnalysisToolName? = nil, + version: Components.Schemas.CodeScanningAnalysisToolVersion? = nil, + guid: Components.Schemas.CodeScanningAnalysisToolGuid? = nil ) { self.name = name self.version = version @@ -1859,90 +1868,90 @@ public enum Components { /// `refs/heads/` or simply ``. /// /// - Remark: Generated from `#/components/schemas/code-scanning-ref`. - public typealias code_hyphen_scanning_hyphen_ref = Swift.String + public typealias CodeScanningRef = Swift.String /// Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-analysis-key`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_analysis_hyphen_key = Swift.String + public typealias CodeScanningAnalysisAnalysisKey = Swift.String /// Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-environment`. - public typealias code_hyphen_scanning_hyphen_alert_hyphen_environment = Swift.String + public typealias CodeScanningAlertEnvironment = Swift.String /// Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-category`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_category = Swift.String + public typealias CodeScanningAnalysisCategory = Swift.String /// Describe a region within a file for the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location`. - public struct code_hyphen_scanning_hyphen_alert_hyphen_location: Codable, Hashable, Sendable { + public struct CodeScanningAlertLocation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location/path`. public var path: Swift.String? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location/start_line`. - public var start_line: Swift.Int? + public var startLine: Swift.Int? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location/end_line`. - public var end_line: Swift.Int? + public var endLine: Swift.Int? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location/start_column`. - public var start_column: Swift.Int? + public var startColumn: Swift.Int? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-location/end_column`. - public var end_column: Swift.Int? - /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_location`. + public var endColumn: Swift.Int? + /// Creates a new `CodeScanningAlertLocation`. /// /// - Parameters: /// - path: - /// - start_line: - /// - end_line: - /// - start_column: - /// - end_column: + /// - startLine: + /// - endLine: + /// - startColumn: + /// - endColumn: public init( path: Swift.String? = nil, - start_line: Swift.Int? = nil, - end_line: Swift.Int? = nil, - start_column: Swift.Int? = nil, - end_column: Swift.Int? = nil + startLine: Swift.Int? = nil, + endLine: Swift.Int? = nil, + startColumn: Swift.Int? = nil, + endColumn: Swift.Int? = nil ) { self.path = path - self.start_line = start_line - self.end_line = end_line - self.start_column = start_column - self.end_column = end_column + self.startLine = startLine + self.endLine = endLine + self.startColumn = startColumn + self.endColumn = endColumn } public enum CodingKeys: String, CodingKey { case path - case start_line - case end_line - case start_column - case end_column + case startLine = "start_line" + case endLine = "end_line" + case startColumn = "start_column" + case endColumn = "end_column" } } /// A classification of the file. For example to identify it as generated. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-classification`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_classification: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAlertClassification: String, Codable, Hashable, Sendable, CaseIterable { case source = "source" case generated = "generated" case test = "test" case library = "library" } /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance`. - public struct code_hyphen_scanning_hyphen_alert_hyphen_instance: Codable, Hashable, Sendable { + public struct CodeScanningAlertInstance: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/ref`. - public var ref: Components.Schemas.code_hyphen_scanning_hyphen_ref? + public var ref: Components.Schemas.CodeScanningRef? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/analysis_key`. - public var analysis_key: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_analysis_hyphen_key? + public var analysisKey: Components.Schemas.CodeScanningAnalysisAnalysisKey? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/environment`. - public var environment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_environment? + public var environment: Components.Schemas.CodeScanningAlertEnvironment? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/category`. - public var category: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_category? + public var category: Components.Schemas.CodeScanningAnalysisCategory? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.CodeScanningAlertState? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/commit_sha`. - public var commit_sha: Swift.String? + public var commitSha: Swift.String? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/message`. - public struct messagePayload: Codable, Hashable, Sendable { + public struct MessagePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/message/text`. public var text: Swift.String? - /// Creates a new `messagePayload`. + /// Creates a new `MessagePayload`. /// /// - Parameters: /// - text: @@ -1954,287 +1963,287 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/message`. - public var message: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance.messagePayload? + public var message: Components.Schemas.CodeScanningAlertInstance.MessagePayload? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/location`. - public var location: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_location? + public var location: Components.Schemas.CodeScanningAlertLocation? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// Classifications that have been applied to the file that triggered the alert. /// For example identifying it as documentation, or a generated file. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-instance/classifications`. - public var classifications: [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_classification]? - /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_instance`. + public var classifications: [Components.Schemas.CodeScanningAlertClassification]? + /// Creates a new `CodeScanningAlertInstance`. /// /// - Parameters: /// - ref: - /// - analysis_key: + /// - analysisKey: /// - environment: /// - category: /// - state: - /// - commit_sha: + /// - commitSha: /// - message: /// - location: - /// - html_url: + /// - htmlUrl: /// - classifications: Classifications that have been applied to the file that triggered the alert. public init( - ref: Components.Schemas.code_hyphen_scanning_hyphen_ref? = nil, - analysis_key: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_analysis_hyphen_key? = nil, - environment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_environment? = nil, - category: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_category? = nil, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - commit_sha: Swift.String? = nil, - message: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance.messagePayload? = nil, - location: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_location? = nil, - html_url: Swift.String? = nil, - classifications: [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_classification]? = nil + ref: Components.Schemas.CodeScanningRef? = nil, + analysisKey: Components.Schemas.CodeScanningAnalysisAnalysisKey? = nil, + environment: Components.Schemas.CodeScanningAlertEnvironment? = nil, + category: Components.Schemas.CodeScanningAnalysisCategory? = nil, + state: Components.Schemas.CodeScanningAlertState? = nil, + commitSha: Swift.String? = nil, + message: Components.Schemas.CodeScanningAlertInstance.MessagePayload? = nil, + location: Components.Schemas.CodeScanningAlertLocation? = nil, + htmlUrl: Swift.String? = nil, + classifications: [Components.Schemas.CodeScanningAlertClassification]? = nil ) { self.ref = ref - self.analysis_key = analysis_key + self.analysisKey = analysisKey self.environment = environment self.category = category self.state = state - self.commit_sha = commit_sha + self.commitSha = commitSha self.message = message self.location = location - self.html_url = html_url + self.htmlUrl = htmlUrl self.classifications = classifications } public enum CodingKeys: String, CodingKey { case ref - case analysis_key + case analysisKey = "analysis_key" case environment case category case state - case commit_sha + case commitSha = "commit_sha" case message case location - case html_url + case htmlUrl = "html_url" case classifications } } /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items`. - public struct code_hyphen_scanning_hyphen_organization_hyphen_alert_hyphen_items: Codable, Hashable, Sendable { + public struct CodeScanningOrganizationAlertItems: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/number`. - public var number: Components.Schemas.alert_hyphen_number + public var number: Components.Schemas.AlertNumber /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.AlertCreatedAt /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/updated_at`. - public var updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? + public var updatedAt: Components.Schemas.AlertUpdatedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/url`. - public var url: Components.Schemas.alert_hyphen_url + public var url: Components.Schemas.AlertUrl /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url + public var htmlUrl: Components.Schemas.AlertHtmlUrl /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/instances_url`. - public var instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url + public var instancesUrl: Components.Schemas.AlertInstancesUrl /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.CodeScanningAlertState? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/fixed_at`. - public var fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? + public var fixedAt: Components.Schemas.AlertFixedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissed_by`. - public var dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var dismissedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissed_at`. - public var dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? + public var dismissedAt: Components.Schemas.AlertDismissedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissed_reason`. - public var dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? + public var dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissed_comment`. - public var dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? + public var dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/rule`. - public var rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary + public var rule: Components.Schemas.CodeScanningAlertRuleSummary /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/tool`. - public var tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool + public var tool: Components.Schemas.CodeScanningAnalysisTool /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/most_recent_instance`. - public var most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance + public var mostRecentInstance: Components.Schemas.CodeScanningAlertInstance /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/repository`. - public var repository: Components.Schemas.simple_hyphen_repository + public var repository: Components.Schemas.SimpleRepository /// - Remark: Generated from `#/components/schemas/code-scanning-organization-alert-items/dismissal_approved_by`. - public var dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `code_hyphen_scanning_hyphen_organization_hyphen_alert_hyphen_items`. + public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser? + /// Creates a new `CodeScanningOrganizationAlertItems`. /// /// - Parameters: /// - number: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - instances_url: + /// - htmlUrl: + /// - instancesUrl: /// - state: - /// - fixed_at: - /// - dismissed_by: - /// - dismissed_at: - /// - dismissed_reason: - /// - dismissed_comment: + /// - fixedAt: + /// - dismissedBy: + /// - dismissedAt: + /// - dismissedReason: + /// - dismissedComment: /// - rule: /// - tool: - /// - most_recent_instance: + /// - mostRecentInstance: /// - repository: - /// - dismissal_approved_by: + /// - dismissalApprovedBy: public init( - number: Components.Schemas.alert_hyphen_number, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at, - updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? = nil, - url: Components.Schemas.alert_hyphen_url, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url, - instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? = nil, - dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? = nil, - dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? = nil, - dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? = nil, - rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary, - tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool, - most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance, - repository: Components.Schemas.simple_hyphen_repository, - dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + number: Components.Schemas.AlertNumber, + createdAt: Components.Schemas.AlertCreatedAt, + updatedAt: Components.Schemas.AlertUpdatedAt? = nil, + url: Components.Schemas.AlertUrl, + htmlUrl: Components.Schemas.AlertHtmlUrl, + instancesUrl: Components.Schemas.AlertInstancesUrl, + state: Components.Schemas.CodeScanningAlertState? = nil, + fixedAt: Components.Schemas.AlertFixedAt? = nil, + dismissedBy: Components.Schemas.NullableSimpleUser? = nil, + dismissedAt: Components.Schemas.AlertDismissedAt? = nil, + dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? = nil, + dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? = nil, + rule: Components.Schemas.CodeScanningAlertRuleSummary, + tool: Components.Schemas.CodeScanningAnalysisTool, + mostRecentInstance: Components.Schemas.CodeScanningAlertInstance, + repository: Components.Schemas.SimpleRepository, + dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.instances_url = instances_url + self.htmlUrl = htmlUrl + self.instancesUrl = instancesUrl self.state = state - self.fixed_at = fixed_at - self.dismissed_by = dismissed_by - self.dismissed_at = dismissed_at - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment + self.fixedAt = fixedAt + self.dismissedBy = dismissedBy + self.dismissedAt = dismissedAt + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment self.rule = rule self.tool = tool - self.most_recent_instance = most_recent_instance + self.mostRecentInstance = mostRecentInstance self.repository = repository - self.dismissal_approved_by = dismissal_approved_by + self.dismissalApprovedBy = dismissalApprovedBy } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case instances_url + case htmlUrl = "html_url" + case instancesUrl = "instances_url" case state - case fixed_at - case dismissed_by - case dismissed_at - case dismissed_reason - case dismissed_comment + case fixedAt = "fixed_at" + case dismissedBy = "dismissed_by" + case dismissedAt = "dismissed_at" + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" case rule case tool - case most_recent_instance + case mostRecentInstance = "most_recent_instance" case repository - case dismissal_approved_by + case dismissalApprovedBy = "dismissal_approved_by" } } /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items`. - public struct code_hyphen_scanning_hyphen_alert_hyphen_items: Codable, Hashable, Sendable { + public struct CodeScanningAlertItems: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/number`. - public var number: Components.Schemas.alert_hyphen_number + public var number: Components.Schemas.AlertNumber /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.AlertCreatedAt /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/updated_at`. - public var updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? + public var updatedAt: Components.Schemas.AlertUpdatedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/url`. - public var url: Components.Schemas.alert_hyphen_url + public var url: Components.Schemas.AlertUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url + public var htmlUrl: Components.Schemas.AlertHtmlUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/instances_url`. - public var instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url + public var instancesUrl: Components.Schemas.AlertInstancesUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.CodeScanningAlertState? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/fixed_at`. - public var fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? + public var fixedAt: Components.Schemas.AlertFixedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissed_by`. - public var dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var dismissedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissed_at`. - public var dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? + public var dismissedAt: Components.Schemas.AlertDismissedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissed_reason`. - public var dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? + public var dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissed_comment`. - public var dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? + public var dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/rule`. - public var rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary + public var rule: Components.Schemas.CodeScanningAlertRuleSummary /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/tool`. - public var tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool + public var tool: Components.Schemas.CodeScanningAnalysisTool /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/most_recent_instance`. - public var most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance + public var mostRecentInstance: Components.Schemas.CodeScanningAlertInstance /// - Remark: Generated from `#/components/schemas/code-scanning-alert-items/dismissal_approved_by`. - public var dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_items`. + public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser? + /// Creates a new `CodeScanningAlertItems`. /// /// - Parameters: /// - number: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - instances_url: + /// - htmlUrl: + /// - instancesUrl: /// - state: - /// - fixed_at: - /// - dismissed_by: - /// - dismissed_at: - /// - dismissed_reason: - /// - dismissed_comment: + /// - fixedAt: + /// - dismissedBy: + /// - dismissedAt: + /// - dismissedReason: + /// - dismissedComment: /// - rule: /// - tool: - /// - most_recent_instance: - /// - dismissal_approved_by: + /// - mostRecentInstance: + /// - dismissalApprovedBy: public init( - number: Components.Schemas.alert_hyphen_number, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at, - updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? = nil, - url: Components.Schemas.alert_hyphen_url, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url, - instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? = nil, - dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? = nil, - dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? = nil, - dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? = nil, - rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary, - tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool, - most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance, - dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + number: Components.Schemas.AlertNumber, + createdAt: Components.Schemas.AlertCreatedAt, + updatedAt: Components.Schemas.AlertUpdatedAt? = nil, + url: Components.Schemas.AlertUrl, + htmlUrl: Components.Schemas.AlertHtmlUrl, + instancesUrl: Components.Schemas.AlertInstancesUrl, + state: Components.Schemas.CodeScanningAlertState? = nil, + fixedAt: Components.Schemas.AlertFixedAt? = nil, + dismissedBy: Components.Schemas.NullableSimpleUser? = nil, + dismissedAt: Components.Schemas.AlertDismissedAt? = nil, + dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? = nil, + dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? = nil, + rule: Components.Schemas.CodeScanningAlertRuleSummary, + tool: Components.Schemas.CodeScanningAnalysisTool, + mostRecentInstance: Components.Schemas.CodeScanningAlertInstance, + dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.instances_url = instances_url + self.htmlUrl = htmlUrl + self.instancesUrl = instancesUrl self.state = state - self.fixed_at = fixed_at - self.dismissed_by = dismissed_by - self.dismissed_at = dismissed_at - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment + self.fixedAt = fixedAt + self.dismissedBy = dismissedBy + self.dismissedAt = dismissedAt + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment self.rule = rule self.tool = tool - self.most_recent_instance = most_recent_instance - self.dismissal_approved_by = dismissal_approved_by + self.mostRecentInstance = mostRecentInstance + self.dismissalApprovedBy = dismissalApprovedBy } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case instances_url + case htmlUrl = "html_url" + case instancesUrl = "instances_url" case state - case fixed_at - case dismissed_by - case dismissed_at - case dismissed_reason - case dismissed_comment + case fixedAt = "fixed_at" + case dismissedBy = "dismissed_by" + case dismissedAt = "dismissed_at" + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" case rule case tool - case most_recent_instance - case dismissal_approved_by + case mostRecentInstance = "most_recent_instance" + case dismissalApprovedBy = "dismissal_approved_by" } } /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule`. - public struct code_hyphen_scanning_hyphen_alert_hyphen_rule: Codable, Hashable, Sendable { + public struct CodeScanningAlertRule: Codable, Hashable, Sendable { /// A unique identifier for the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/id`. @@ -2246,7 +2255,7 @@ public enum Components { /// The severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case note = "note" case warning = "warning" @@ -2255,11 +2264,11 @@ public enum Components { /// The severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/severity`. - public var severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule.severityPayload? + public var severity: Components.Schemas.CodeScanningAlertRule.SeverityPayload? /// The security severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/security_severity_level`. - @frozen public enum security_severity_levelPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecuritySeverityLevelPayload: String, Codable, Hashable, Sendable, CaseIterable { case low = "low" case medium = "medium" case high = "high" @@ -2268,7 +2277,7 @@ public enum Components { /// The security severity of the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/security_severity_level`. - public var security_severity_level: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule.security_severity_levelPayload? + public var securitySeverityLevel: Components.Schemas.CodeScanningAlertRule.SecuritySeverityLevelPayload? /// A short description of the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/description`. @@ -2276,7 +2285,7 @@ public enum Components { /// A description of the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/full_description`. - public var full_description: Swift.String? + public var fullDescription: Swift.String? /// A set of tags applicable for the rule. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/tags`. @@ -2288,174 +2297,174 @@ public enum Components { /// A link to the documentation for the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/help_uri`. - public var help_uri: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_rule`. + public var helpUri: Swift.String? + /// Creates a new `CodeScanningAlertRule`. /// /// - Parameters: /// - id: A unique identifier for the rule used to detect the alert. /// - name: The name of the rule used to detect the alert. /// - severity: The severity of the alert. - /// - security_severity_level: The security severity of the alert. + /// - securitySeverityLevel: The security severity of the alert. /// - description: A short description of the rule used to detect the alert. - /// - full_description: A description of the rule used to detect the alert. + /// - fullDescription: A description of the rule used to detect the alert. /// - tags: A set of tags applicable for the rule. /// - help: Detailed documentation for the rule as GitHub Flavored Markdown. - /// - help_uri: A link to the documentation for the rule used to detect the alert. + /// - helpUri: A link to the documentation for the rule used to detect the alert. public init( id: Swift.String? = nil, name: Swift.String? = nil, - severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule.severityPayload? = nil, - security_severity_level: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule.security_severity_levelPayload? = nil, + severity: Components.Schemas.CodeScanningAlertRule.SeverityPayload? = nil, + securitySeverityLevel: Components.Schemas.CodeScanningAlertRule.SecuritySeverityLevelPayload? = nil, description: Swift.String? = nil, - full_description: Swift.String? = nil, + fullDescription: Swift.String? = nil, tags: [Swift.String]? = nil, help: Swift.String? = nil, - help_uri: Swift.String? = nil + helpUri: Swift.String? = nil ) { self.id = id self.name = name self.severity = severity - self.security_severity_level = security_severity_level + self.securitySeverityLevel = securitySeverityLevel self.description = description - self.full_description = full_description + self.fullDescription = fullDescription self.tags = tags self.help = help - self.help_uri = help_uri + self.helpUri = helpUri } public enum CodingKeys: String, CodingKey { case id case name case severity - case security_severity_level + case securitySeverityLevel = "security_severity_level" case description - case full_description + case fullDescription = "full_description" case tags case help - case help_uri + case helpUri = "help_uri" } } /// - Remark: Generated from `#/components/schemas/code-scanning-alert`. - public struct code_hyphen_scanning_hyphen_alert: Codable, Hashable, Sendable { + public struct CodeScanningAlert: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-alert/number`. - public var number: Components.Schemas.alert_hyphen_number + public var number: Components.Schemas.AlertNumber /// - Remark: Generated from `#/components/schemas/code-scanning-alert/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.AlertCreatedAt /// - Remark: Generated from `#/components/schemas/code-scanning-alert/updated_at`. - public var updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? + public var updatedAt: Components.Schemas.AlertUpdatedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/url`. - public var url: Components.Schemas.alert_hyphen_url + public var url: Components.Schemas.AlertUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url + public var htmlUrl: Components.Schemas.AlertHtmlUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert/instances_url`. - public var instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url + public var instancesUrl: Components.Schemas.AlertInstancesUrl /// - Remark: Generated from `#/components/schemas/code-scanning-alert/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.CodeScanningAlertState? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/fixed_at`. - public var fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? + public var fixedAt: Components.Schemas.AlertFixedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissed_by`. - public var dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var dismissedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissed_at`. - public var dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? + public var dismissedAt: Components.Schemas.AlertDismissedAt? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissed_reason`. - public var dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? + public var dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissed_comment`. - public var dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? + public var dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? /// - Remark: Generated from `#/components/schemas/code-scanning-alert/rule`. - public var rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule + public var rule: Components.Schemas.CodeScanningAlertRule /// - Remark: Generated from `#/components/schemas/code-scanning-alert/tool`. - public var tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool + public var tool: Components.Schemas.CodeScanningAnalysisTool /// - Remark: Generated from `#/components/schemas/code-scanning-alert/most_recent_instance`. - public var most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance + public var mostRecentInstance: Components.Schemas.CodeScanningAlertInstance /// - Remark: Generated from `#/components/schemas/code-scanning-alert/dismissal_approved_by`. - public var dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `code_hyphen_scanning_hyphen_alert`. + public var dismissalApprovedBy: Components.Schemas.NullableSimpleUser? + /// Creates a new `CodeScanningAlert`. /// /// - Parameters: /// - number: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - instances_url: + /// - htmlUrl: + /// - instancesUrl: /// - state: - /// - fixed_at: - /// - dismissed_by: - /// - dismissed_at: - /// - dismissed_reason: - /// - dismissed_comment: + /// - fixedAt: + /// - dismissedBy: + /// - dismissedAt: + /// - dismissedReason: + /// - dismissedComment: /// - rule: /// - tool: - /// - most_recent_instance: - /// - dismissal_approved_by: + /// - mostRecentInstance: + /// - dismissalApprovedBy: public init( - number: Components.Schemas.alert_hyphen_number, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at, - updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at? = nil, - url: Components.Schemas.alert_hyphen_url, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url, - instances_url: Components.Schemas.alert_hyphen_instances_hyphen_url, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? = nil, - dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? = nil, - dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? = nil, - dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? = nil, - rule: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule, - tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool, - most_recent_instance: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance, - dismissal_approved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + number: Components.Schemas.AlertNumber, + createdAt: Components.Schemas.AlertCreatedAt, + updatedAt: Components.Schemas.AlertUpdatedAt? = nil, + url: Components.Schemas.AlertUrl, + htmlUrl: Components.Schemas.AlertHtmlUrl, + instancesUrl: Components.Schemas.AlertInstancesUrl, + state: Components.Schemas.CodeScanningAlertState? = nil, + fixedAt: Components.Schemas.AlertFixedAt? = nil, + dismissedBy: Components.Schemas.NullableSimpleUser? = nil, + dismissedAt: Components.Schemas.AlertDismissedAt? = nil, + dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? = nil, + dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? = nil, + rule: Components.Schemas.CodeScanningAlertRule, + tool: Components.Schemas.CodeScanningAnalysisTool, + mostRecentInstance: Components.Schemas.CodeScanningAlertInstance, + dismissalApprovedBy: Components.Schemas.NullableSimpleUser? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.instances_url = instances_url + self.htmlUrl = htmlUrl + self.instancesUrl = instancesUrl self.state = state - self.fixed_at = fixed_at - self.dismissed_by = dismissed_by - self.dismissed_at = dismissed_at - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment + self.fixedAt = fixedAt + self.dismissedBy = dismissedBy + self.dismissedAt = dismissedAt + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment self.rule = rule self.tool = tool - self.most_recent_instance = most_recent_instance - self.dismissal_approved_by = dismissal_approved_by + self.mostRecentInstance = mostRecentInstance + self.dismissalApprovedBy = dismissalApprovedBy } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case instances_url + case htmlUrl = "html_url" + case instancesUrl = "instances_url" case state - case fixed_at - case dismissed_by - case dismissed_at - case dismissed_reason - case dismissed_comment + case fixedAt = "fixed_at" + case dismissedBy = "dismissed_by" + case dismissedAt = "dismissed_at" + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" case rule case tool - case most_recent_instance - case dismissal_approved_by + case mostRecentInstance = "most_recent_instance" + case dismissalApprovedBy = "dismissal_approved_by" } } /// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-set-state`. - @frozen public enum code_hyphen_scanning_hyphen_alert_hyphen_set_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAlertSetState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case dismissed = "dismissed" } /// If `true`, attempt to create an alert dismissal request. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-create-request`. - public typealias code_hyphen_scanning_hyphen_alert_hyphen_create_hyphen_request = Swift.Bool + public typealias CodeScanningAlertCreateRequest = Swift.Bool /// The status of an autofix. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-status`. - @frozen public enum code_hyphen_scanning_hyphen_autofix_hyphen_status: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningAutofixStatus: String, Codable, Hashable, Sendable, CaseIterable { case pending = "pending" case error = "error" case success = "success" @@ -2464,220 +2473,220 @@ public enum Components { /// The description of an autofix. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-description`. - public typealias code_hyphen_scanning_hyphen_autofix_hyphen_description = Swift.String + public typealias CodeScanningAutofixDescription = Swift.String /// The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-started-at`. - public typealias code_hyphen_scanning_hyphen_autofix_hyphen_started_hyphen_at = Foundation.Date + public typealias CodeScanningAutofixStartedAt = Foundation.Date /// - Remark: Generated from `#/components/schemas/code-scanning-autofix`. - public struct code_hyphen_scanning_hyphen_autofix: Codable, Hashable, Sendable { + public struct CodeScanningAutofix: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-autofix/status`. - public var status: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_status + public var status: Components.Schemas.CodeScanningAutofixStatus /// - Remark: Generated from `#/components/schemas/code-scanning-autofix/description`. - public var description: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_description? + public var description: Components.Schemas.CodeScanningAutofixDescription? /// - Remark: Generated from `#/components/schemas/code-scanning-autofix/started_at`. - public var started_at: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_started_hyphen_at - /// Creates a new `code_hyphen_scanning_hyphen_autofix`. + public var startedAt: Components.Schemas.CodeScanningAutofixStartedAt + /// Creates a new `CodeScanningAutofix`. /// /// - Parameters: /// - status: /// - description: - /// - started_at: + /// - startedAt: public init( - status: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_status, - description: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_description? = nil, - started_at: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_started_hyphen_at + status: Components.Schemas.CodeScanningAutofixStatus, + description: Components.Schemas.CodeScanningAutofixDescription? = nil, + startedAt: Components.Schemas.CodeScanningAutofixStartedAt ) { self.status = status self.description = description - self.started_at = started_at + self.startedAt = startedAt } public enum CodingKeys: String, CodingKey { case status case description - case started_at + case startedAt = "started_at" } } /// Commit an autofix for a code scanning alert /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits`. - public struct code_hyphen_scanning_hyphen_autofix_hyphen_commits: Codable, Hashable, Sendable { + public struct CodeScanningAutofixCommits: Codable, Hashable, Sendable { /// The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits/target_ref`. - public var target_ref: Swift.String? + public var targetRef: Swift.String? /// Commit message to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits/message`. public var message: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_autofix_hyphen_commits`. + /// Creates a new `CodeScanningAutofixCommits`. /// /// - Parameters: - /// - target_ref: The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. + /// - targetRef: The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// - message: Commit message to be used. public init( - target_ref: Swift.String? = nil, + targetRef: Swift.String? = nil, message: Swift.String? = nil ) { - self.target_ref = target_ref + self.targetRef = targetRef self.message = message } public enum CodingKeys: String, CodingKey { - case target_ref + case targetRef = "target_ref" case message } } /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits-response`. - public struct code_hyphen_scanning_hyphen_autofix_hyphen_commits_hyphen_response: Codable, Hashable, Sendable { + public struct CodeScanningAutofixCommitsResponse: Codable, Hashable, Sendable { /// The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits-response/target_ref`. - public var target_ref: Swift.String? + public var targetRef: Swift.String? /// SHA of commit with autofix. /// /// - Remark: Generated from `#/components/schemas/code-scanning-autofix-commits-response/sha`. public var sha: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_autofix_hyphen_commits_hyphen_response`. + /// Creates a new `CodeScanningAutofixCommitsResponse`. /// /// - Parameters: - /// - target_ref: The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. + /// - targetRef: The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// - sha: SHA of commit with autofix. public init( - target_ref: Swift.String? = nil, + targetRef: Swift.String? = nil, sha: Swift.String? = nil ) { - self.target_ref = target_ref + self.targetRef = targetRef self.sha = sha } public enum CodingKeys: String, CodingKey { - case target_ref + case targetRef = "target_ref" case sha } } /// An identifier for the upload. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-sarif-id`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id = Swift.String + public typealias CodeScanningAnalysisSarifId = Swift.String /// The SHA of the commit to which the analysis you are uploading relates. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-commit-sha`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha = Swift.String + public typealias CodeScanningAnalysisCommitSha = Swift.String /// Identifies the variable values associated with the environment in which this analysis was performed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-environment`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_environment = Swift.String + public typealias CodeScanningAnalysisEnvironment = Swift.String /// The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-created-at`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_created_hyphen_at = Foundation.Date + public typealias CodeScanningAnalysisCreatedAt = Foundation.Date /// The REST API URL of the analysis resource. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-url`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_url = Swift.String + public typealias CodeScanningAnalysisUrl = Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-analysis`. - public struct code_hyphen_scanning_hyphen_analysis: Codable, Hashable, Sendable { + public struct CodeScanningAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/ref`. - public var ref: Components.Schemas.code_hyphen_scanning_hyphen_ref + public var ref: Components.Schemas.CodeScanningRef /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/commit_sha`. - public var commit_sha: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha + public var commitSha: Components.Schemas.CodeScanningAnalysisCommitSha /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/analysis_key`. - public var analysis_key: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_analysis_hyphen_key + public var analysisKey: Components.Schemas.CodeScanningAnalysisAnalysisKey /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/environment`. - public var environment: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_environment + public var environment: Components.Schemas.CodeScanningAnalysisEnvironment /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/category`. - public var category: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_category? + public var category: Components.Schemas.CodeScanningAnalysisCategory? /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/error`. public var error: Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/created_at`. - public var created_at: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.CodeScanningAnalysisCreatedAt /// The total number of results in the analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/results_count`. - public var results_count: Swift.Int + public var resultsCount: Swift.Int /// The total number of rules used in the analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/rules_count`. - public var rules_count: Swift.Int + public var rulesCount: Swift.Int /// Unique identifier for this analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/url`. - public var url: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_url + public var url: Components.Schemas.CodeScanningAnalysisUrl /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/sarif_id`. - public var sarif_id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id + public var sarifId: Components.Schemas.CodeScanningAnalysisSarifId /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/tool`. - public var tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool + public var tool: Components.Schemas.CodeScanningAnalysisTool /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/deletable`. public var deletable: Swift.Bool /// Warning generated when processing the analysis /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis/warning`. public var warning: Swift.String - /// Creates a new `code_hyphen_scanning_hyphen_analysis`. + /// Creates a new `CodeScanningAnalysis`. /// /// - Parameters: /// - ref: - /// - commit_sha: - /// - analysis_key: + /// - commitSha: + /// - analysisKey: /// - environment: /// - category: /// - error: - /// - created_at: - /// - results_count: The total number of results in the analysis. - /// - rules_count: The total number of rules used in the analysis. + /// - createdAt: + /// - resultsCount: The total number of results in the analysis. + /// - rulesCount: The total number of rules used in the analysis. /// - id: Unique identifier for this analysis. /// - url: - /// - sarif_id: + /// - sarifId: /// - tool: /// - deletable: /// - warning: Warning generated when processing the analysis public init( - ref: Components.Schemas.code_hyphen_scanning_hyphen_ref, - commit_sha: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha, - analysis_key: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_analysis_hyphen_key, - environment: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_environment, - category: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_category? = nil, + ref: Components.Schemas.CodeScanningRef, + commitSha: Components.Schemas.CodeScanningAnalysisCommitSha, + analysisKey: Components.Schemas.CodeScanningAnalysisAnalysisKey, + environment: Components.Schemas.CodeScanningAnalysisEnvironment, + category: Components.Schemas.CodeScanningAnalysisCategory? = nil, error: Swift.String, - created_at: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_created_hyphen_at, - results_count: Swift.Int, - rules_count: Swift.Int, + createdAt: Components.Schemas.CodeScanningAnalysisCreatedAt, + resultsCount: Swift.Int, + rulesCount: Swift.Int, id: Swift.Int, - url: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_url, - sarif_id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id, - tool: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool, + url: Components.Schemas.CodeScanningAnalysisUrl, + sarifId: Components.Schemas.CodeScanningAnalysisSarifId, + tool: Components.Schemas.CodeScanningAnalysisTool, deletable: Swift.Bool, warning: Swift.String ) { self.ref = ref - self.commit_sha = commit_sha - self.analysis_key = analysis_key + self.commitSha = commitSha + self.analysisKey = analysisKey self.environment = environment self.category = category self.error = error - self.created_at = created_at - self.results_count = results_count - self.rules_count = rules_count + self.createdAt = createdAt + self.resultsCount = resultsCount + self.rulesCount = rulesCount self.id = id self.url = url - self.sarif_id = sarif_id + self.sarifId = sarifId self.tool = tool self.deletable = deletable self.warning = warning } public enum CodingKeys: String, CodingKey { case ref - case commit_sha - case analysis_key + case commitSha = "commit_sha" + case analysisKey = "analysis_key" case environment case category case error - case created_at - case results_count - case rules_count + case createdAt = "created_at" + case resultsCount = "results_count" + case rulesCount = "rules_count" case id case url - case sarif_id + case sarifId = "sarif_id" case tool case deletable case warning @@ -2686,36 +2695,36 @@ public enum Components { /// Successful deletion of a code scanning analysis /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-deletion`. - public struct code_hyphen_scanning_hyphen_analysis_hyphen_deletion: Codable, Hashable, Sendable { + public struct CodeScanningAnalysisDeletion: Codable, Hashable, Sendable { /// Next deletable analysis in chain, without last analysis deletion confirmation /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-deletion/next_analysis_url`. - public var next_analysis_url: Swift.String? + public var nextAnalysisUrl: Swift.String? /// Next deletable analysis in chain, with last analysis deletion confirmation /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-deletion/confirm_delete_url`. - public var confirm_delete_url: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_analysis_hyphen_deletion`. + public var confirmDeleteUrl: Swift.String? + /// Creates a new `CodeScanningAnalysisDeletion`. /// /// - Parameters: - /// - next_analysis_url: Next deletable analysis in chain, without last analysis deletion confirmation - /// - confirm_delete_url: Next deletable analysis in chain, with last analysis deletion confirmation + /// - nextAnalysisUrl: Next deletable analysis in chain, without last analysis deletion confirmation + /// - confirmDeleteUrl: Next deletable analysis in chain, with last analysis deletion confirmation public init( - next_analysis_url: Swift.String? = nil, - confirm_delete_url: Swift.String? = nil + nextAnalysisUrl: Swift.String? = nil, + confirmDeleteUrl: Swift.String? = nil ) { - self.next_analysis_url = next_analysis_url - self.confirm_delete_url = confirm_delete_url + self.nextAnalysisUrl = nextAnalysisUrl + self.confirmDeleteUrl = confirmDeleteUrl } public enum CodingKeys: String, CodingKey { - case next_analysis_url - case confirm_delete_url + case nextAnalysisUrl = "next_analysis_url" + case confirmDeleteUrl = "confirm_delete_url" } } /// A CodeQL database. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database`. - public struct code_hyphen_scanning_hyphen_codeql_hyphen_database: Codable, Hashable, Sendable { + public struct CodeScanningCodeqlDatabase: Codable, Hashable, Sendable { /// The ID of the CodeQL database. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/id`. @@ -2729,11 +2738,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/language`. public var language: Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/uploader`. - public var uploader: Components.Schemas.simple_hyphen_user + public var uploader: Components.Schemas.SimpleUser /// The MIME type of the CodeQL database file. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/content_type`. - public var content_type: Swift.String + public var contentType: Swift.String /// The size of the CodeQL database file in bytes. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/size`. @@ -2741,11 +2750,11 @@ public enum Components { /// The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/url`. @@ -2753,60 +2762,60 @@ public enum Components { /// The commit SHA of the repository at the time the CodeQL database was created. /// /// - Remark: Generated from `#/components/schemas/code-scanning-codeql-database/commit_oid`. - public var commit_oid: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_codeql_hyphen_database`. + public var commitOid: Swift.String? + /// Creates a new `CodeScanningCodeqlDatabase`. /// /// - Parameters: /// - id: The ID of the CodeQL database. /// - name: The name of the CodeQL database. /// - language: The language of the CodeQL database. /// - uploader: - /// - content_type: The MIME type of the CodeQL database file. + /// - contentType: The MIME type of the CodeQL database file. /// - size: The size of the CodeQL database file in bytes. - /// - created_at: The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// - url: The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property. - /// - commit_oid: The commit SHA of the repository at the time the CodeQL database was created. + /// - commitOid: The commit SHA of the repository at the time the CodeQL database was created. public init( id: Swift.Int, name: Swift.String, language: Swift.String, - uploader: Components.Schemas.simple_hyphen_user, - content_type: Swift.String, + uploader: Components.Schemas.SimpleUser, + contentType: Swift.String, size: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, url: Swift.String, - commit_oid: Swift.String? = nil + commitOid: Swift.String? = nil ) { self.id = id self.name = name self.language = language self.uploader = uploader - self.content_type = content_type + self.contentType = contentType self.size = size - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.commit_oid = commit_oid + self.commitOid = commitOid } public enum CodingKeys: String, CodingKey { case id case name case language case uploader - case content_type + case contentType = "content_type" case size - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case commit_oid + case commitOid = "commit_oid" } } /// The language targeted by the CodeQL query /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-language`. - @frozen public enum code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_language: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningVariantAnalysisLanguage: String, Codable, Hashable, Sendable, CaseIterable { case cpp = "cpp" case csharp = "csharp" case go = "go" @@ -2820,7 +2829,7 @@ public enum Components { /// Repository Identifier /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository`. - public struct code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository: Codable, Hashable, Sendable { + public struct CodeScanningVariantAnalysisRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository/id`. @@ -2832,415 +2841,415 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repository/updated_at`. - public var updated_at: Foundation.Date? - /// Creates a new `code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository`. + public var updatedAt: Foundation.Date? + /// Creates a new `CodeScanningVariantAnalysisRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - _private: Whether the repository is private. - /// - stargazers_count: - /// - updated_at: + /// - stargazersCount: + /// - updatedAt: public init( id: Swift.Int, name: Swift.String, - full_name: Swift.String, + fullName: Swift.String, _private: Swift.Bool, - stargazers_count: Swift.Int, - updated_at: Foundation.Date? = nil + stargazersCount: Swift.Int, + updatedAt: Foundation.Date? = nil ) { self.id = id self.name = name - self.full_name = full_name + self.fullName = fullName self._private = _private - self.stargazers_count = stargazers_count - self.updated_at = updated_at + self.stargazersCount = stargazersCount + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name - case full_name + case fullName = "full_name" case _private = "private" - case stargazers_count - case updated_at + case stargazersCount = "stargazers_count" + case updatedAt = "updated_at" } } /// The new status of the CodeQL variant analysis repository task. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-status`. - @frozen public enum code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_status: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningVariantAnalysisStatus: String, Codable, Hashable, Sendable, CaseIterable { case pending = "pending" - case in_progress = "in_progress" + case inProgress = "in_progress" case succeeded = "succeeded" case failed = "failed" case canceled = "canceled" - case timed_out = "timed_out" + case timedOut = "timed_out" } /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-skipped-repo-group`. - public struct code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group: Codable, Hashable, Sendable { + public struct CodeScanningVariantAnalysisSkippedRepoGroup: Codable, Hashable, Sendable { /// The total number of repositories that were skipped for this reason. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-skipped-repo-group/repository_count`. - public var repository_count: Swift.Int + public var repositoryCount: Swift.Int /// A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-skipped-repo-group/repositories`. - public var repositories: [Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository] - /// Creates a new `code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group`. + public var repositories: [Components.Schemas.CodeScanningVariantAnalysisRepository] + /// Creates a new `CodeScanningVariantAnalysisSkippedRepoGroup`. /// /// - Parameters: - /// - repository_count: The total number of repositories that were skipped for this reason. + /// - repositoryCount: The total number of repositories that were skipped for this reason. /// - repositories: A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. public init( - repository_count: Swift.Int, - repositories: [Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository] + repositoryCount: Swift.Int, + repositories: [Components.Schemas.CodeScanningVariantAnalysisRepository] ) { - self.repository_count = repository_count + self.repositoryCount = repositoryCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case repository_count + case repositoryCount = "repository_count" case repositories } } /// A run of a CodeQL query against one or more repositories. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis`. - public struct code_hyphen_scanning_hyphen_variant_hyphen_analysis: Codable, Hashable, Sendable { + public struct CodeScanningVariantAnalysis: Codable, Hashable, Sendable { /// The ID of the variant analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/controller_repo`. - public var controller_repo: Components.Schemas.simple_hyphen_repository + public var controllerRepo: Components.Schemas.SimpleRepository /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/query_language`. - public var query_language: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_language + public var queryLanguage: Components.Schemas.CodeScanningVariantAnalysisLanguage /// The download url for the query pack. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/query_pack_url`. - public var query_pack_url: Swift.String + public var queryPackUrl: Swift.String /// The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/completed_at`. - public var completed_at: Foundation.Date? + public var completedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { - case in_progress = "in_progress" + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case inProgress = "in_progress" case succeeded = "succeeded" case failed = "failed" case cancelled = "cancelled" } /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/status`. - public var status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.statusPayload + public var status: Components.Schemas.CodeScanningVariantAnalysis.StatusPayload /// The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/actions_workflow_run_id`. - public var actions_workflow_run_id: Swift.Int? + public var actionsWorkflowRunId: Swift.Int? /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/failure_reason`. - @frozen public enum failure_reasonPayload: String, Codable, Hashable, Sendable { - case no_repos_queried = "no_repos_queried" - case actions_workflow_run_failed = "actions_workflow_run_failed" - case internal_error = "internal_error" + @frozen public enum FailureReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { + case noReposQueried = "no_repos_queried" + case actionsWorkflowRunFailed = "actions_workflow_run_failed" + case internalError = "internal_error" } /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/failure_reason`. - public var failure_reason: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.failure_reasonPayload? - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload`. - public struct scanned_repositoriesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload/repository`. - public var repository: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload/analysis_status`. - public var analysis_status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_status + public var failureReason: Components.Schemas.CodeScanningVariantAnalysis.FailureReasonPayload? + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload`. + public struct ScannedRepositoriesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload/repository`. + public var repository: Components.Schemas.CodeScanningVariantAnalysisRepository + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload/analysis_status`. + public var analysisStatus: Components.Schemas.CodeScanningVariantAnalysisStatus /// The number of results in the case of a successful analysis. This is only available for successful analyses. /// - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload/result_count`. - public var result_count: Swift.Int? + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload/result_count`. + public var resultCount: Swift.Int? /// The size of the artifact. This is only available for successful analyses. /// - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload/artifact_size_in_bytes`. - public var artifact_size_in_bytes: Swift.Int? + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload/artifact_size_in_bytes`. + public var artifactSizeInBytes: Swift.Int? /// The reason of the failure of this repo task. This is only available if the repository task has failed. /// - /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositoriesPayload/failure_message`. - public var failure_message: Swift.String? - /// Creates a new `scanned_repositoriesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/ScannedRepositoriesPayload/failure_message`. + public var failureMessage: Swift.String? + /// Creates a new `ScannedRepositoriesPayloadPayload`. /// /// - Parameters: /// - repository: - /// - analysis_status: - /// - result_count: The number of results in the case of a successful analysis. This is only available for successful analyses. - /// - artifact_size_in_bytes: The size of the artifact. This is only available for successful analyses. - /// - failure_message: The reason of the failure of this repo task. This is only available if the repository task has failed. + /// - analysisStatus: + /// - resultCount: The number of results in the case of a successful analysis. This is only available for successful analyses. + /// - artifactSizeInBytes: The size of the artifact. This is only available for successful analyses. + /// - failureMessage: The reason of the failure of this repo task. This is only available if the repository task has failed. public init( - repository: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repository, - analysis_status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_status, - result_count: Swift.Int? = nil, - artifact_size_in_bytes: Swift.Int? = nil, - failure_message: Swift.String? = nil + repository: Components.Schemas.CodeScanningVariantAnalysisRepository, + analysisStatus: Components.Schemas.CodeScanningVariantAnalysisStatus, + resultCount: Swift.Int? = nil, + artifactSizeInBytes: Swift.Int? = nil, + failureMessage: Swift.String? = nil ) { self.repository = repository - self.analysis_status = analysis_status - self.result_count = result_count - self.artifact_size_in_bytes = artifact_size_in_bytes - self.failure_message = failure_message + self.analysisStatus = analysisStatus + self.resultCount = resultCount + self.artifactSizeInBytes = artifactSizeInBytes + self.failureMessage = failureMessage } public enum CodingKeys: String, CodingKey { case repository - case analysis_status - case result_count - case artifact_size_in_bytes - case failure_message + case analysisStatus = "analysis_status" + case resultCount = "result_count" + case artifactSizeInBytes = "artifact_size_in_bytes" + case failureMessage = "failure_message" } } /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositories`. - public typealias scanned_repositoriesPayload = [Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.scanned_repositoriesPayloadPayload] + public typealias ScannedRepositoriesPayload = [Components.Schemas.CodeScanningVariantAnalysis.ScannedRepositoriesPayloadPayload] /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/scanned_repositories`. - public var scanned_repositories: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.scanned_repositoriesPayload? + public var scannedRepositories: Components.Schemas.CodeScanningVariantAnalysis.ScannedRepositoriesPayload? /// Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories`. - public struct skipped_repositoriesPayload: Codable, Hashable, Sendable { + public struct SkippedRepositoriesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/access_mismatch_repos`. - public var access_mismatch_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group + public var accessMismatchRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/not_found_repos`. - public struct not_found_reposPayload: Codable, Hashable, Sendable { + public struct NotFoundReposPayload: Codable, Hashable, Sendable { /// The total number of repositories that were skipped for this reason. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/not_found_repos/repository_count`. - public var repository_count: Swift.Int + public var repositoryCount: Swift.Int /// A list of full repository names that were skipped. This list may not include all repositories that were skipped. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/not_found_repos/repository_full_names`. - public var repository_full_names: [Swift.String] - /// Creates a new `not_found_reposPayload`. + public var repositoryFullNames: [Swift.String] + /// Creates a new `NotFoundReposPayload`. /// /// - Parameters: - /// - repository_count: The total number of repositories that were skipped for this reason. - /// - repository_full_names: A list of full repository names that were skipped. This list may not include all repositories that were skipped. + /// - repositoryCount: The total number of repositories that were skipped for this reason. + /// - repositoryFullNames: A list of full repository names that were skipped. This list may not include all repositories that were skipped. public init( - repository_count: Swift.Int, - repository_full_names: [Swift.String] + repositoryCount: Swift.Int, + repositoryFullNames: [Swift.String] ) { - self.repository_count = repository_count - self.repository_full_names = repository_full_names + self.repositoryCount = repositoryCount + self.repositoryFullNames = repositoryFullNames } public enum CodingKeys: String, CodingKey { - case repository_count - case repository_full_names + case repositoryCount = "repository_count" + case repositoryFullNames = "repository_full_names" } } /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/not_found_repos`. - public var not_found_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.skipped_repositoriesPayload.not_found_reposPayload + public var notFoundRepos: Components.Schemas.CodeScanningVariantAnalysis.SkippedRepositoriesPayload.NotFoundReposPayload /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/no_codeql_db_repos`. - public var no_codeql_db_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group + public var noCodeqlDbRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories/over_limit_repos`. - public var over_limit_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group - /// Creates a new `skipped_repositoriesPayload`. + public var overLimitRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup + /// Creates a new `SkippedRepositoriesPayload`. /// /// - Parameters: - /// - access_mismatch_repos: - /// - not_found_repos: - /// - no_codeql_db_repos: - /// - over_limit_repos: + /// - accessMismatchRepos: + /// - notFoundRepos: + /// - noCodeqlDbRepos: + /// - overLimitRepos: public init( - access_mismatch_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group, - not_found_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.skipped_repositoriesPayload.not_found_reposPayload, - no_codeql_db_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group, - over_limit_repos: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_skipped_hyphen_repo_hyphen_group + accessMismatchRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup, + notFoundRepos: Components.Schemas.CodeScanningVariantAnalysis.SkippedRepositoriesPayload.NotFoundReposPayload, + noCodeqlDbRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup, + overLimitRepos: Components.Schemas.CodeScanningVariantAnalysisSkippedRepoGroup ) { - self.access_mismatch_repos = access_mismatch_repos - self.not_found_repos = not_found_repos - self.no_codeql_db_repos = no_codeql_db_repos - self.over_limit_repos = over_limit_repos + self.accessMismatchRepos = accessMismatchRepos + self.notFoundRepos = notFoundRepos + self.noCodeqlDbRepos = noCodeqlDbRepos + self.overLimitRepos = overLimitRepos } public enum CodingKeys: String, CodingKey { - case access_mismatch_repos - case not_found_repos - case no_codeql_db_repos - case over_limit_repos + case accessMismatchRepos = "access_mismatch_repos" + case notFoundRepos = "not_found_repos" + case noCodeqlDbRepos = "no_codeql_db_repos" + case overLimitRepos = "over_limit_repos" } } /// Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis/skipped_repositories`. - public var skipped_repositories: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.skipped_repositoriesPayload? - /// Creates a new `code_hyphen_scanning_hyphen_variant_hyphen_analysis`. + public var skippedRepositories: Components.Schemas.CodeScanningVariantAnalysis.SkippedRepositoriesPayload? + /// Creates a new `CodeScanningVariantAnalysis`. /// /// - Parameters: /// - id: The ID of the variant analysis. - /// - controller_repo: + /// - controllerRepo: /// - actor: - /// - query_language: - /// - query_pack_url: The download url for the query pack. - /// - created_at: The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - completed_at: The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available. + /// - queryLanguage: + /// - queryPackUrl: The download url for the query pack. + /// - createdAt: The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - completedAt: The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available. /// - status: - /// - actions_workflow_run_id: The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started. - /// - failure_reason: The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. - /// - scanned_repositories: - /// - skipped_repositories: Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. + /// - actionsWorkflowRunId: The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started. + /// - failureReason: The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. + /// - scannedRepositories: + /// - skippedRepositories: Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis. public init( id: Swift.Int, - controller_repo: Components.Schemas.simple_hyphen_repository, - actor: Components.Schemas.simple_hyphen_user, - query_language: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_language, - query_pack_url: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - completed_at: Foundation.Date? = nil, - status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.statusPayload, - actions_workflow_run_id: Swift.Int? = nil, - failure_reason: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.failure_reasonPayload? = nil, - scanned_repositories: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.scanned_repositoriesPayload? = nil, - skipped_repositories: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis.skipped_repositoriesPayload? = nil + controllerRepo: Components.Schemas.SimpleRepository, + actor: Components.Schemas.SimpleUser, + queryLanguage: Components.Schemas.CodeScanningVariantAnalysisLanguage, + queryPackUrl: Swift.String, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + completedAt: Foundation.Date? = nil, + status: Components.Schemas.CodeScanningVariantAnalysis.StatusPayload, + actionsWorkflowRunId: Swift.Int? = nil, + failureReason: Components.Schemas.CodeScanningVariantAnalysis.FailureReasonPayload? = nil, + scannedRepositories: Components.Schemas.CodeScanningVariantAnalysis.ScannedRepositoriesPayload? = nil, + skippedRepositories: Components.Schemas.CodeScanningVariantAnalysis.SkippedRepositoriesPayload? = nil ) { self.id = id - self.controller_repo = controller_repo + self.controllerRepo = controllerRepo self.actor = actor - self.query_language = query_language - self.query_pack_url = query_pack_url - self.created_at = created_at - self.updated_at = updated_at - self.completed_at = completed_at + self.queryLanguage = queryLanguage + self.queryPackUrl = queryPackUrl + self.createdAt = createdAt + self.updatedAt = updatedAt + self.completedAt = completedAt self.status = status - self.actions_workflow_run_id = actions_workflow_run_id - self.failure_reason = failure_reason - self.scanned_repositories = scanned_repositories - self.skipped_repositories = skipped_repositories + self.actionsWorkflowRunId = actionsWorkflowRunId + self.failureReason = failureReason + self.scannedRepositories = scannedRepositories + self.skippedRepositories = skippedRepositories } public enum CodingKeys: String, CodingKey { case id - case controller_repo + case controllerRepo = "controller_repo" case actor - case query_language - case query_pack_url - case created_at - case updated_at - case completed_at + case queryLanguage = "query_language" + case queryPackUrl = "query_pack_url" + case createdAt = "created_at" + case updatedAt = "updated_at" + case completedAt = "completed_at" case status - case actions_workflow_run_id - case failure_reason - case scanned_repositories - case skipped_repositories + case actionsWorkflowRunId = "actions_workflow_run_id" + case failureReason = "failure_reason" + case scannedRepositories = "scanned_repositories" + case skippedRepositories = "skipped_repositories" } } /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task`. - public struct code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task: Codable, Hashable, Sendable { + public struct CodeScanningVariantAnalysisRepoTask: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/repository`. - public var repository: Components.Schemas.simple_hyphen_repository + public var repository: Components.Schemas.SimpleRepository /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/analysis_status`. - public var analysis_status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_status + public var analysisStatus: Components.Schemas.CodeScanningVariantAnalysisStatus /// The size of the artifact. This is only available for successful analyses. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/artifact_size_in_bytes`. - public var artifact_size_in_bytes: Swift.Int? + public var artifactSizeInBytes: Swift.Int? /// The number of results in the case of a successful analysis. This is only available for successful analyses. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/result_count`. - public var result_count: Swift.Int? + public var resultCount: Swift.Int? /// The reason of the failure of this repo task. This is only available if the repository task has failed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/failure_message`. - public var failure_message: Swift.String? + public var failureMessage: Swift.String? /// The SHA of the commit the CodeQL database was built against. This is only available for successful analyses. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/database_commit_sha`. - public var database_commit_sha: Swift.String? + public var databaseCommitSha: Swift.String? /// The source location prefix to use. This is only available for successful analyses. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/source_location_prefix`. - public var source_location_prefix: Swift.String? + public var sourceLocationPrefix: Swift.String? /// The URL of the artifact. This is only available for successful analyses. /// /// - Remark: Generated from `#/components/schemas/code-scanning-variant-analysis-repo-task/artifact_url`. - public var artifact_url: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task`. + public var artifactUrl: Swift.String? + /// Creates a new `CodeScanningVariantAnalysisRepoTask`. /// /// - Parameters: /// - repository: - /// - analysis_status: - /// - artifact_size_in_bytes: The size of the artifact. This is only available for successful analyses. - /// - result_count: The number of results in the case of a successful analysis. This is only available for successful analyses. - /// - failure_message: The reason of the failure of this repo task. This is only available if the repository task has failed. - /// - database_commit_sha: The SHA of the commit the CodeQL database was built against. This is only available for successful analyses. - /// - source_location_prefix: The source location prefix to use. This is only available for successful analyses. - /// - artifact_url: The URL of the artifact. This is only available for successful analyses. + /// - analysisStatus: + /// - artifactSizeInBytes: The size of the artifact. This is only available for successful analyses. + /// - resultCount: The number of results in the case of a successful analysis. This is only available for successful analyses. + /// - failureMessage: The reason of the failure of this repo task. This is only available if the repository task has failed. + /// - databaseCommitSha: The SHA of the commit the CodeQL database was built against. This is only available for successful analyses. + /// - sourceLocationPrefix: The source location prefix to use. This is only available for successful analyses. + /// - artifactUrl: The URL of the artifact. This is only available for successful analyses. public init( - repository: Components.Schemas.simple_hyphen_repository, - analysis_status: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_status, - artifact_size_in_bytes: Swift.Int? = nil, - result_count: Swift.Int? = nil, - failure_message: Swift.String? = nil, - database_commit_sha: Swift.String? = nil, - source_location_prefix: Swift.String? = nil, - artifact_url: Swift.String? = nil + repository: Components.Schemas.SimpleRepository, + analysisStatus: Components.Schemas.CodeScanningVariantAnalysisStatus, + artifactSizeInBytes: Swift.Int? = nil, + resultCount: Swift.Int? = nil, + failureMessage: Swift.String? = nil, + databaseCommitSha: Swift.String? = nil, + sourceLocationPrefix: Swift.String? = nil, + artifactUrl: Swift.String? = nil ) { self.repository = repository - self.analysis_status = analysis_status - self.artifact_size_in_bytes = artifact_size_in_bytes - self.result_count = result_count - self.failure_message = failure_message - self.database_commit_sha = database_commit_sha - self.source_location_prefix = source_location_prefix - self.artifact_url = artifact_url + self.analysisStatus = analysisStatus + self.artifactSizeInBytes = artifactSizeInBytes + self.resultCount = resultCount + self.failureMessage = failureMessage + self.databaseCommitSha = databaseCommitSha + self.sourceLocationPrefix = sourceLocationPrefix + self.artifactUrl = artifactUrl } public enum CodingKeys: String, CodingKey { case repository - case analysis_status - case artifact_size_in_bytes - case result_count - case failure_message - case database_commit_sha - case source_location_prefix - case artifact_url + case analysisStatus = "analysis_status" + case artifactSizeInBytes = "artifact_size_in_bytes" + case resultCount = "result_count" + case failureMessage = "failure_message" + case databaseCommitSha = "database_commit_sha" + case sourceLocationPrefix = "source_location_prefix" + case artifactUrl = "artifact_url" } } /// Configuration for code scanning default setup. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup`. - public struct code_hyphen_scanning_hyphen_default_hyphen_setup: Codable, Hashable, Sendable { + public struct CodeScanningDefaultSetup: Codable, Hashable, Sendable { /// Code scanning default setup has been configured or not. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case configured = "configured" - case not_hyphen_configured = "not-configured" + case notConfigured = "not-configured" } /// Code scanning default setup has been configured or not. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.statePayload? - /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/languagesPayload`. - @frozen public enum languagesPayloadPayload: String, Codable, Hashable, Sendable { + public var state: Components.Schemas.CodeScanningDefaultSetup.StatePayload? + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/LanguagesPayload`. + @frozen public enum LanguagesPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case actions = "actions" - case c_hyphen_cpp = "c-cpp" + case cCpp = "c-cpp" case csharp = "csharp" case go = "go" - case java_hyphen_kotlin = "java-kotlin" - case javascript_hyphen_typescript = "javascript-typescript" + case javaKotlin = "java-kotlin" + case javascriptTypescript = "javascript-typescript" case javascript = "javascript" case python = "python" case ruby = "ruby" @@ -3250,137 +3259,137 @@ public enum Components { /// Languages to be analyzed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/languages`. - public typealias languagesPayload = [Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.languagesPayloadPayload] + public typealias LanguagesPayload = [Components.Schemas.CodeScanningDefaultSetup.LanguagesPayloadPayload] /// Languages to be analyzed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/languages`. - public var languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.languagesPayload? + public var languages: Components.Schemas.CodeScanningDefaultSetup.LanguagesPayload? /// Runner type to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/runner_type`. - @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum RunnerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case standard = "standard" case labeled = "labeled" } /// Runner type to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/runner_type`. - public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.runner_typePayload? + public var runnerType: Components.Schemas.CodeScanningDefaultSetup.RunnerTypePayload? /// Runner label to be used if the runner type is labeled. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/runner_label`. - public var runner_label: Swift.String? + public var runnerLabel: Swift.String? /// CodeQL query suite to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/query_suite`. - @frozen public enum query_suitePayload: String, Codable, Hashable, Sendable { + @frozen public enum QuerySuitePayload: String, Codable, Hashable, Sendable, CaseIterable { case _default = "default" case extended = "extended" } /// CodeQL query suite to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/query_suite`. - public var query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.query_suitePayload? + public var querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload? /// Timestamp of latest configuration update. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The frequency of the periodic analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/schedule`. - @frozen public enum schedulePayload: String, Codable, Hashable, Sendable { + @frozen public enum SchedulePayload: String, Codable, Hashable, Sendable, CaseIterable { case weekly = "weekly" } /// The frequency of the periodic analysis. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/schedule`. - public var schedule: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.schedulePayload? - /// Creates a new `code_hyphen_scanning_hyphen_default_hyphen_setup`. + public var schedule: Components.Schemas.CodeScanningDefaultSetup.SchedulePayload? + /// Creates a new `CodeScanningDefaultSetup`. /// /// - Parameters: /// - state: Code scanning default setup has been configured or not. /// - languages: Languages to be analyzed. - /// - runner_type: Runner type to be used. - /// - runner_label: Runner label to be used if the runner type is labeled. - /// - query_suite: CodeQL query suite to be used. - /// - updated_at: Timestamp of latest configuration update. + /// - runnerType: Runner type to be used. + /// - runnerLabel: Runner label to be used if the runner type is labeled. + /// - querySuite: CodeQL query suite to be used. + /// - updatedAt: Timestamp of latest configuration update. /// - schedule: The frequency of the periodic analysis. public init( - state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.statePayload? = nil, - languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.languagesPayload? = nil, - runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.runner_typePayload? = nil, - runner_label: Swift.String? = nil, - query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.query_suitePayload? = nil, - updated_at: Foundation.Date? = nil, - schedule: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup.schedulePayload? = nil + state: Components.Schemas.CodeScanningDefaultSetup.StatePayload? = nil, + languages: Components.Schemas.CodeScanningDefaultSetup.LanguagesPayload? = nil, + runnerType: Components.Schemas.CodeScanningDefaultSetup.RunnerTypePayload? = nil, + runnerLabel: Swift.String? = nil, + querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload? = nil, + updatedAt: Foundation.Date? = nil, + schedule: Components.Schemas.CodeScanningDefaultSetup.SchedulePayload? = nil ) { self.state = state self.languages = languages - self.runner_type = runner_type - self.runner_label = runner_label - self.query_suite = query_suite - self.updated_at = updated_at + self.runnerType = runnerType + self.runnerLabel = runnerLabel + self.querySuite = querySuite + self.updatedAt = updatedAt self.schedule = schedule } public enum CodingKeys: String, CodingKey { case state case languages - case runner_type - case runner_label - case query_suite - case updated_at + case runnerType = "runner_type" + case runnerLabel = "runner_label" + case querySuite = "query_suite" + case updatedAt = "updated_at" case schedule } } /// Configuration for code scanning default setup. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update`. - public struct code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update: Codable, Hashable, Sendable { + public struct CodeScanningDefaultSetupUpdate: Codable, Hashable, Sendable { /// The desired state of code scanning default setup. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case configured = "configured" - case not_hyphen_configured = "not-configured" + case notConfigured = "not-configured" } /// The desired state of code scanning default setup. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? + public var state: Components.Schemas.CodeScanningDefaultSetupUpdate.StatePayload? /// Runner type to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`. - @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum RunnerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case standard = "standard" case labeled = "labeled" } /// Runner type to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_type`. - public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? + public var runnerType: Components.Schemas.CodeScanningDefaultSetupUpdate.RunnerTypePayload? /// Runner label to be used if the runner type is labeled. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/runner_label`. - public var runner_label: Swift.String? + public var runnerLabel: Swift.String? /// CodeQL query suite to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`. - @frozen public enum query_suitePayload: String, Codable, Hashable, Sendable { + @frozen public enum QuerySuitePayload: String, Codable, Hashable, Sendable, CaseIterable { case _default = "default" case extended = "extended" } /// CodeQL query suite to be used. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`. - public var query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload? - /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/languagesPayload`. - @frozen public enum languagesPayloadPayload: String, Codable, Hashable, Sendable { + public var querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload? + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/LanguagesPayload`. + @frozen public enum LanguagesPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case actions = "actions" - case c_hyphen_cpp = "c-cpp" + case cCpp = "c-cpp" case csharp = "csharp" case go = "go" - case java_hyphen_kotlin = "java-kotlin" - case javascript_hyphen_typescript = "javascript-typescript" + case javaKotlin = "java-kotlin" + case javascriptTypescript = "javascript-typescript" case python = "python" case ruby = "ruby" case swift = "swift" @@ -3388,59 +3397,59 @@ public enum Components { /// CodeQL languages to be analyzed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/languages`. - public typealias languagesPayload = [Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayloadPayload] + public typealias LanguagesPayload = [Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayloadPayload] /// CodeQL languages to be analyzed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/languages`. - public var languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload? - /// Creates a new `code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update`. + public var languages: Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload? + /// Creates a new `CodeScanningDefaultSetupUpdate`. /// /// - Parameters: /// - state: The desired state of code scanning default setup. - /// - runner_type: Runner type to be used. - /// - runner_label: Runner label to be used if the runner type is labeled. - /// - query_suite: CodeQL query suite to be used. + /// - runnerType: Runner type to be used. + /// - runnerLabel: Runner label to be used if the runner type is labeled. + /// - querySuite: CodeQL query suite to be used. /// - languages: CodeQL languages to be analyzed. public init( - state: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload? = nil, - runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload? = nil, - runner_label: Swift.String? = nil, - query_suite: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload? = nil, - languages: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload? = nil + state: Components.Schemas.CodeScanningDefaultSetupUpdate.StatePayload? = nil, + runnerType: Components.Schemas.CodeScanningDefaultSetupUpdate.RunnerTypePayload? = nil, + runnerLabel: Swift.String? = nil, + querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload? = nil, + languages: Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload? = nil ) { self.state = state - self.runner_type = runner_type - self.runner_label = runner_label - self.query_suite = query_suite + self.runnerType = runnerType + self.runnerLabel = runnerLabel + self.querySuite = querySuite self.languages = languages } public enum CodingKeys: String, CodingKey { case state - case runner_type - case runner_label - case query_suite + case runnerType = "runner_type" + case runnerLabel = "runner_label" + case querySuite = "query_suite" case languages } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - state = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.statePayload.self, + self.state = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupUpdate.StatePayload.self, forKey: .state ) - runner_type = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.runner_typePayload.self, - forKey: .runner_type + self.runnerType = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupUpdate.RunnerTypePayload.self, + forKey: .runnerType ) - runner_label = try container.decodeIfPresent( + self.runnerLabel = try container.decodeIfPresent( Swift.String.self, - forKey: .runner_label + forKey: .runnerLabel ) - query_suite = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.query_suitePayload.self, - forKey: .query_suite + self.querySuite = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload.self, + forKey: .querySuite ) - languages = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update.languagesPayload.self, + self.languages = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload.self, forKey: .languages ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -3456,56 +3465,56 @@ public enum Components { /// You should not rely on this always being an actions workflow run object. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update-response`. - public struct code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update_hyphen_response: Codable, Hashable, Sendable { + public struct CodeScanningDefaultSetupUpdateResponse: Codable, Hashable, Sendable { /// ID of the corresponding run. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update-response/run_id`. - public var run_id: Swift.Int? + public var runId: Swift.Int? /// URL of the corresponding run. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update-response/run_url`. - public var run_url: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update_hyphen_response`. + public var runUrl: Swift.String? + /// Creates a new `CodeScanningDefaultSetupUpdateResponse`. /// /// - Parameters: - /// - run_id: ID of the corresponding run. - /// - run_url: URL of the corresponding run. + /// - runId: ID of the corresponding run. + /// - runUrl: URL of the corresponding run. public init( - run_id: Swift.Int? = nil, - run_url: Swift.String? = nil + runId: Swift.Int? = nil, + runUrl: Swift.String? = nil ) { - self.run_id = run_id - self.run_url = run_url + self.runId = runId + self.runUrl = runUrl } public enum CodingKeys: String, CodingKey { - case run_id - case run_url + case runId = "run_id" + case runUrl = "run_url" } } /// The full Git reference, formatted as `refs/heads/`, /// `refs/tags/`, `refs/pull//merge`, or `refs/pull//head`. /// /// - Remark: Generated from `#/components/schemas/code-scanning-ref-full`. - public typealias code_hyphen_scanning_hyphen_ref_hyphen_full = Swift.String + public typealias CodeScanningRefFull = Swift.String /// A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)." /// /// - Remark: Generated from `#/components/schemas/code-scanning-analysis-sarif-file`. - public typealias code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_file = Swift.String + public typealias CodeScanningAnalysisSarifFile = Swift.String /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-receipt`. - public struct code_hyphen_scanning_hyphen_sarifs_hyphen_receipt: Codable, Hashable, Sendable { + public struct CodeScanningSarifsReceipt: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-receipt/id`. - public var id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id? + public var id: Components.Schemas.CodeScanningAnalysisSarifId? /// The REST API URL for checking the status of the upload. /// /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-receipt/url`. public var url: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_sarifs_hyphen_receipt`. + /// Creates a new `CodeScanningSarifsReceipt`. /// /// - Parameters: /// - id: /// - url: The REST API URL for checking the status of the upload. public init( - id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id? = nil, + id: Components.Schemas.CodeScanningAnalysisSarifId? = nil, url: Swift.String? = nil ) { self.id = id @@ -3517,11 +3526,11 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-status`. - public struct code_hyphen_scanning_hyphen_sarifs_hyphen_status: Codable, Hashable, Sendable { + public struct CodeScanningSarifsStatus: Codable, Hashable, Sendable { /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-status/processing_status`. - @frozen public enum processing_statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum ProcessingStatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case pending = "pending" case complete = "complete" case failed = "failed" @@ -3529,33 +3538,33 @@ public enum Components { /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. /// /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-status/processing_status`. - public var processing_status: Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_status.processing_statusPayload? + public var processingStatus: Components.Schemas.CodeScanningSarifsStatus.ProcessingStatusPayload? /// The REST API URL for getting the analyses associated with the upload. /// /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-status/analyses_url`. - public var analyses_url: Swift.String? + public var analysesUrl: Swift.String? /// Any errors that ocurred during processing of the delivery. /// /// - Remark: Generated from `#/components/schemas/code-scanning-sarifs-status/errors`. public var errors: [Swift.String]? - /// Creates a new `code_hyphen_scanning_hyphen_sarifs_hyphen_status`. + /// Creates a new `CodeScanningSarifsStatus`. /// /// - Parameters: - /// - processing_status: `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. - /// - analyses_url: The REST API URL for getting the analyses associated with the upload. + /// - processingStatus: `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. + /// - analysesUrl: The REST API URL for getting the analyses associated with the upload. /// - errors: Any errors that ocurred during processing of the delivery. public init( - processing_status: Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_status.processing_statusPayload? = nil, - analyses_url: Swift.String? = nil, + processingStatus: Components.Schemas.CodeScanningSarifsStatus.ProcessingStatusPayload? = nil, + analysesUrl: Swift.String? = nil, errors: [Swift.String]? = nil ) { - self.processing_status = processing_status - self.analyses_url = analyses_url + self.processingStatus = processingStatus + self.analysesUrl = analysesUrl self.errors = errors } public enum CodingKeys: String, CodingKey { - case processing_status - case analyses_url + case processingStatus = "processing_status" + case analysesUrl = "analyses_url" case errors } } @@ -3565,73 +3574,73 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. /// /// - Remark: Generated from `#/components/parameters/tool-name`. - public typealias tool_hyphen_name = Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_name + public typealias ToolName = Components.Schemas.CodeScanningAnalysisToolName /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// /// - Remark: Generated from `#/components/parameters/tool-guid`. - public typealias tool_hyphen_guid = Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_tool_hyphen_guid + public typealias ToolGuid = Components.Schemas.CodeScanningAnalysisToolGuid /// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/components/parameters/git-ref`. - public typealias git_hyphen_ref = Components.Schemas.code_hyphen_scanning_hyphen_ref + public typealias GitRef = Components.Schemas.CodeScanningRef /// The number of the pull request for the results you want to list. /// /// - Remark: Generated from `#/components/parameters/pr-alias`. - public typealias pr_hyphen_alias = Swift.Int + public typealias PrAlias = Swift.Int /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/components/parameters/alert-number`. - public typealias alert_hyphen_number = Components.Schemas.alert_hyphen_number + public typealias AlertNumber = Components.Schemas.AlertNumber } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3641,25 +3650,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3673,15 +3682,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -3693,58 +3702,58 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3754,25 +3763,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct code_scanning_forbidden_read: Sendable, Hashable { + public struct CodeScanningForbiddenRead: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_forbidden_read/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_forbidden_read/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3782,25 +3791,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.code_scanning_forbidden_read.Body - /// Creates a new `code_scanning_forbidden_read`. + public var body: Components.Responses.CodeScanningForbiddenRead.Body + /// Creates a new `CodeScanningForbiddenRead`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.code_scanning_forbidden_read.Body) { + public init(body: Components.Responses.CodeScanningForbiddenRead.Body) { self.body = body } } - public struct code_scanning_forbidden_write: Sendable, Hashable { + public struct CodeScanningForbiddenWrite: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_forbidden_write/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_forbidden_write/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3810,25 +3819,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.code_scanning_forbidden_write.Body - /// Creates a new `code_scanning_forbidden_write`. + public var body: Components.Responses.CodeScanningForbiddenWrite.Body + /// Creates a new `CodeScanningForbiddenWrite`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.code_scanning_forbidden_write.Body) { + public init(body: Components.Responses.CodeScanningForbiddenWrite.Body) { self.body = body } } - public struct code_scanning_bad_request: Sendable, Hashable { + public struct CodeScanningBadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3838,25 +3847,53 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.code_scanning_bad_request.Body - /// Creates a new `code_scanning_bad_request`. + public var body: Components.Responses.CodeScanningBadRequest.Body + /// Creates a new `CodeScanningBadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.code_scanning_bad_request.Body) { + public init(body: Components.Responses.CodeScanningBadRequest.Body) { self.body = body } } - public struct code_scanning_autofix_create_forbidden: Sendable, Hashable { + public struct CodeScanningAutofixCreateForbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_autofix_create_forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_autofix_create_forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BasicError { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Components.Responses.CodeScanningAutofixCreateForbidden.Body + /// Creates a new `CodeScanningAutofixCreateForbidden`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Components.Responses.CodeScanningAutofixCreateForbidden.Body) { + self.body = body + } + } + public struct UnprocessableAnalysis: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/unprocessable_analysis/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/unprocessable_analysis/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3866,29 +3903,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.code_scanning_autofix_create_forbidden.Body - /// Creates a new `code_scanning_autofix_create_forbidden`. + public var body: Components.Responses.UnprocessableAnalysis.Body + /// Creates a new `UnprocessableAnalysis`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.code_scanning_autofix_create_forbidden.Body) { + public init(body: Components.Responses.UnprocessableAnalysis.Body) { self.body = body } } - public struct found: Sendable, Hashable { - /// Creates a new `found`. + public struct Found: Sendable, Hashable { + /// Creates a new `Found`. public init() {} } - public struct code_scanning_conflict: Sendable, Hashable { + public struct CodeScanningConflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/code_scanning_conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3898,12 +3935,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.code_scanning_conflict.Body - /// Creates a new `code_scanning_conflict`. + public var body: Components.Responses.CodeScanningConflict.Body + /// Creates a new `CodeScanningConflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.code_scanning_conflict.Body) { + public init(body: Components.Responses.CodeScanningConflict.Body) { self.body = body } } @@ -3911,7 +3948,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -3927,7 +3964,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)`. - public enum code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org { + public enum CodeScanningListAlertsForOrg { public static let id: Swift.String = "code-scanning/list-alerts-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/path`. @@ -3935,118 +3972,118 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path + public var path: Operations.CodeScanningListAlertsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query`. public struct Query: Sendable, Hashable { /// The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/tool_name`. - public var tool_name: Components.Parameters.tool_hyphen_name? + public var toolName: Components.Parameters.ToolName? /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/tool_guid`. - public var tool_guid: Components.Parameters.tool_hyphen_guid? + public var toolGuid: Components.Parameters.ToolGuid? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// If specified, only code scanning alerts with this state will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query? + public var state: Components.Schemas.CodeScanningAlertStateQuery? /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/sort`. - public var sort: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query.sortPayload? + public var sort: Operations.CodeScanningListAlertsForOrg.Input.Query.SortPayload? /// If specified, only code scanning alerts with this severity will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/query/severity`. - public var severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_severity? + public var severity: Components.Schemas.CodeScanningAlertSeverity? /// Creates a new `Query`. /// /// - Parameters: - /// - tool_name: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. - /// - tool_guid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. + /// - toolName: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. + /// - toolGuid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - 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)." + /// - perPage: 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)." /// - direction: The direction to sort the results by. /// - state: If specified, only code scanning alerts with this state will be returned. /// - sort: The property by which to sort the results. /// - severity: If specified, only code scanning alerts with this severity will be returned. public init( - tool_name: Components.Parameters.tool_hyphen_name? = nil, - tool_guid: Components.Parameters.tool_hyphen_guid? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - direction: Components.Parameters.direction? = nil, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query? = nil, - sort: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query.sortPayload? = nil, - severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_severity? = nil + toolName: Components.Parameters.ToolName? = nil, + toolGuid: Components.Parameters.ToolGuid? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + direction: Components.Parameters.Direction? = nil, + state: Components.Schemas.CodeScanningAlertStateQuery? = nil, + sort: Operations.CodeScanningListAlertsForOrg.Input.Query.SortPayload? = nil, + severity: Components.Schemas.CodeScanningAlertSeverity? = nil ) { - self.tool_name = tool_name - self.tool_guid = tool_guid + self.toolName = toolName + self.toolGuid = toolGuid self.before = before self.after = after self.page = page - self.per_page = per_page + self.perPage = perPage self.direction = direction self.state = state self.sort = sort self.severity = severity } } - public var query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query + public var query: Operations.CodeScanningListAlertsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.CodeScanningListAlertsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4054,9 +4091,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.CodeScanningListAlertsForOrg.Input.Path, + query: Operations.CodeScanningListAlertsForOrg.Input.Query = .init(), + headers: Operations.CodeScanningListAlertsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -4068,26 +4105,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.CodeScanningListAlertsForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-scanning/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_scanning_hyphen_organization_hyphen_alert_hyphen_items]) + case json([Components.Schemas.CodeScanningOrganizationAlertItems]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_scanning_hyphen_organization_hyphen_alert_hyphen_items] { + public var json: [Components.Schemas.CodeScanningOrganizationAlertItems] { get throws { switch self { case let .json(body): @@ -4097,15 +4134,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.CodeScanningListAlertsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.CodeScanningListAlertsForOrg.Output.Ok.Headers = .init(), + body: Operations.CodeScanningListAlertsForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4116,12 +4153,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.CodeScanningListAlertsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.CodeScanningListAlertsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -4139,12 +4176,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4162,12 +4199,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-scanning/alerts/get(code-scanning/list-alerts-for-org)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4223,7 +4260,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)`. - public enum code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo { + public enum CodeScanningListAlertsForRepo { public static let id: Swift.String = "code-scanning/list-alerts-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/path`. @@ -4231,92 +4268,92 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.CodeScanningListAlertsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query`. public struct Query: Sendable, Hashable { /// The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/tool_name`. - public var tool_name: Components.Parameters.tool_hyphen_name? + public var toolName: Components.Parameters.ToolName? /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/tool_guid`. - public var tool_guid: Components.Parameters.tool_hyphen_guid? + public var toolGuid: Components.Parameters.ToolGuid? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/ref`. - public var ref: Components.Parameters.git_hyphen_ref? + public var ref: Components.Parameters.GitRef? /// The number of the pull request for the results you want to list. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/pr`. - public var pr: Components.Parameters.pr_hyphen_alias? + public var pr: Components.Parameters.PrAlias? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/sort`. - public var sort: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query.sortPayload? + public var sort: Operations.CodeScanningListAlertsForRepo.Input.Query.SortPayload? /// If specified, only code scanning alerts with this state will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query? + public var state: Components.Schemas.CodeScanningAlertStateQuery? /// If specified, only code scanning alerts with this severity will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/severity`. - public var severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_severity? + public var severity: Components.Schemas.CodeScanningAlertSeverity? /// Creates a new `Query`. /// /// - Parameters: - /// - tool_name: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. - /// - tool_guid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. + /// - toolName: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. + /// - toolGuid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - ref: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// - pr: The number of the pull request for the results you want to list. /// - direction: The direction to sort the results by. @@ -4326,23 +4363,23 @@ public enum Operations { /// - state: If specified, only code scanning alerts with this state will be returned. /// - severity: If specified, only code scanning alerts with this severity will be returned. public init( - tool_name: Components.Parameters.tool_hyphen_name? = nil, - tool_guid: Components.Parameters.tool_hyphen_guid? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - ref: Components.Parameters.git_hyphen_ref? = nil, - pr: Components.Parameters.pr_hyphen_alias? = nil, - direction: Components.Parameters.direction? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - sort: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query.sortPayload? = nil, - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query? = nil, - severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_severity? = nil + toolName: Components.Parameters.ToolName? = nil, + toolGuid: Components.Parameters.ToolGuid? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + ref: Components.Parameters.GitRef? = nil, + pr: Components.Parameters.PrAlias? = nil, + direction: Components.Parameters.Direction? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + sort: Operations.CodeScanningListAlertsForRepo.Input.Query.SortPayload? = nil, + state: Components.Schemas.CodeScanningAlertStateQuery? = nil, + severity: Components.Schemas.CodeScanningAlertSeverity? = nil ) { - self.tool_name = tool_name - self.tool_guid = tool_guid + self.toolName = toolName + self.toolGuid = toolGuid self.page = page - self.per_page = per_page + self.perPage = perPage self.ref = ref self.pr = pr self.direction = direction @@ -4353,19 +4390,19 @@ public enum Operations { self.severity = severity } } - public var query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.CodeScanningListAlertsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.CodeScanningListAlertsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4373,9 +4410,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.CodeScanningListAlertsForRepo.Input.Path, + query: Operations.CodeScanningListAlertsForRepo.Input.Query = .init(), + headers: Operations.CodeScanningListAlertsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -4387,12 +4424,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_items]) + case json([Components.Schemas.CodeScanningAlertItems]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_items] { + public var json: [Components.Schemas.CodeScanningAlertItems] { get throws { switch self { case let .json(body): @@ -4402,12 +4439,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.CodeScanningListAlertsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.CodeScanningListAlertsForRepo.Output.Ok.Body) { self.body = body } } @@ -4416,12 +4453,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.CodeScanningListAlertsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.CodeScanningListAlertsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -4439,12 +4476,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4462,12 +4507,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -4485,12 +4530,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4508,12 +4553,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/get(code-scanning/list-alerts-for-repo)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4565,7 +4610,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)`. - public enum code_hyphen_scanning_sol_get_hyphen_alert { + public enum CodeScanningGetAlert { public static let id: Swift.String = "code-scanning/get-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/path`. @@ -4573,52 +4618,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Path + public var path: Operations.CodeScanningGetAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Headers + public var headers: Operations.CodeScanningGetAlert.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Input.Headers = .init() + path: Operations.CodeScanningGetAlert.Input.Path, + headers: Operations.CodeScanningGetAlert.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4629,12 +4674,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_alert) + case json(Components.Schemas.CodeScanningAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_alert { + public var json: Components.Schemas.CodeScanningAlert { get throws { switch self { case let .json(body): @@ -4644,12 +4689,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body + public var body: Operations.CodeScanningGetAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetAlert.Output.Ok.Body) { self.body = body } } @@ -4658,12 +4703,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output.Ok) + case ok(Operations.CodeScanningGetAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_alert.Output.Ok { + public var ok: Operations.CodeScanningGetAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -4681,12 +4726,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4704,12 +4757,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -4727,12 +4780,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4750,12 +4803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/get(code-scanning/get-alert)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4806,7 +4859,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)`. - public enum code_hyphen_scanning_sol_update_hyphen_alert { + public enum CodeScanningUpdateAlert { public static let id: Swift.String = "code-scanning/update-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/path`. @@ -4814,85 +4867,85 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Path + public var path: Operations.CodeScanningUpdateAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Headers + public var headers: Operations.CodeScanningUpdateAlert.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/json/state`. - public var state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_set_hyphen_state + public var state: Components.Schemas.CodeScanningAlertSetState /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/json/dismissed_reason`. - public var dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? + public var dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/json/dismissed_comment`. - public var dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? + public var dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/json/create_request`. - public var create_request: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_create_hyphen_request? - /// Creates a new `jsonPayload`. + public var createRequest: Components.Schemas.CodeScanningAlertCreateRequest? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: - /// - dismissed_reason: - /// - dismissed_comment: - /// - create_request: + /// - dismissedReason: + /// - dismissedComment: + /// - createRequest: public init( - state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_set_hyphen_state, - dismissed_reason: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_reason? = nil, - dismissed_comment: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_dismissed_hyphen_comment? = nil, - create_request: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_create_hyphen_request? = nil + state: Components.Schemas.CodeScanningAlertSetState, + dismissedReason: Components.Schemas.CodeScanningAlertDismissedReason? = nil, + dismissedComment: Components.Schemas.CodeScanningAlertDismissedComment? = nil, + createRequest: Components.Schemas.CodeScanningAlertCreateRequest? = nil ) { self.state = state - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment - self.create_request = create_request + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment + self.createRequest = createRequest } public enum CodingKeys: String, CodingKey { case state - case dismissed_reason - case dismissed_comment - case create_request + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" + case createRequest = "create_request" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Body.jsonPayload) + case json(Operations.CodeScanningUpdateAlert.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Body + public var body: Operations.CodeScanningUpdateAlert.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4900,9 +4953,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Path, - headers: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Input.Body + path: Operations.CodeScanningUpdateAlert.Input.Path, + headers: Operations.CodeScanningUpdateAlert.Input.Headers = .init(), + body: Operations.CodeScanningUpdateAlert.Input.Body ) { self.path = path self.headers = headers @@ -4914,12 +4967,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_alert) + case json(Components.Schemas.CodeScanningAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_alert { + public var json: Components.Schemas.CodeScanningAlert { get throws { switch self { case let .json(body): @@ -4929,12 +4982,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body + public var body: Operations.CodeScanningUpdateAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.CodeScanningUpdateAlert.Output.Ok.Body) { self.body = body } } @@ -4943,12 +4996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output.Ok) + case ok(Operations.CodeScanningUpdateAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_update_hyphen_alert.Output.Ok { + public var ok: Operations.CodeScanningUpdateAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -4966,12 +5019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -4989,12 +5042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -5012,12 +5065,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5035,12 +5088,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/patch(code-scanning/update-alert)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5060,14 +5113,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -5078,14 +5131,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -5098,7 +5151,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)`. - public enum code_hyphen_scanning_sol_get_hyphen_autofix { + public enum CodeScanningGetAutofix { public static let id: Swift.String = "code-scanning/get-autofix" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/path`. @@ -5106,52 +5159,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Path + public var path: Operations.CodeScanningGetAutofix.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Headers + public var headers: Operations.CodeScanningGetAutofix.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Input.Headers = .init() + path: Operations.CodeScanningGetAutofix.Input.Path, + headers: Operations.CodeScanningGetAutofix.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5162,12 +5215,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_autofix) + case json(Components.Schemas.CodeScanningAutofix) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_autofix { + public var json: Components.Schemas.CodeScanningAutofix { get throws { switch self { case let .json(body): @@ -5177,12 +5230,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output.Ok.Body + public var body: Operations.CodeScanningGetAutofix.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetAutofix.Output.Ok.Body) { self.body = body } } @@ -5191,12 +5244,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output.Ok) + case ok(Operations.CodeScanningGetAutofix.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_autofix.Output.Ok { + public var ok: Operations.CodeScanningGetAutofix.Output.Ok { get throws { switch self { case let .ok(response): @@ -5214,12 +5267,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.code_scanning_bad_request) + case badRequest(Components.Responses.CodeScanningBadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.code_scanning_bad_request { + public var badRequest: Components.Responses.CodeScanningBadRequest { get throws { switch self { case let .badRequest(response): @@ -5237,12 +5290,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -5260,12 +5313,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5283,12 +5336,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/get(code-scanning/get-autofix)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5344,7 +5397,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)`. - public enum code_hyphen_scanning_sol_create_hyphen_autofix { + public enum CodeScanningCreateAutofix { public static let id: Swift.String = "code-scanning/create-autofix" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/path`. @@ -5352,52 +5405,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Path + public var path: Operations.CodeScanningCreateAutofix.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Headers + public var headers: Operations.CodeScanningCreateAutofix.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Input.Headers = .init() + path: Operations.CodeScanningCreateAutofix.Input.Path, + headers: Operations.CodeScanningCreateAutofix.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5408,12 +5461,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_autofix) + case json(Components.Schemas.CodeScanningAutofix) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_autofix { + public var json: Components.Schemas.CodeScanningAutofix { get throws { switch self { case let .json(body): @@ -5423,12 +5476,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Ok.Body + public var body: Operations.CodeScanningCreateAutofix.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Ok.Body) { + public init(body: Operations.CodeScanningCreateAutofix.Output.Ok.Body) { self.body = body } } @@ -5437,12 +5490,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Ok) + case ok(Operations.CodeScanningCreateAutofix.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Ok { + public var ok: Operations.CodeScanningCreateAutofix.Output.Ok { get throws { switch self { case let .ok(response): @@ -5459,12 +5512,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/POST/responses/202/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_autofix) + case json(Components.Schemas.CodeScanningAutofix) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_autofix { + public var json: Components.Schemas.CodeScanningAutofix { get throws { switch self { case let .json(body): @@ -5474,12 +5527,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Accepted.Body + public var body: Operations.CodeScanningCreateAutofix.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Accepted.Body) { + public init(body: Operations.CodeScanningCreateAutofix.Output.Accepted.Body) { self.body = body } } @@ -5488,12 +5541,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Accepted) + case accepted(Operations.CodeScanningCreateAutofix.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.Accepted { + public var accepted: Operations.CodeScanningCreateAutofix.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -5511,12 +5564,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.code_scanning_bad_request) + case badRequest(Components.Responses.CodeScanningBadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.code_scanning_bad_request { + public var badRequest: Components.Responses.CodeScanningBadRequest { get throws { switch self { case let .badRequest(response): @@ -5534,12 +5587,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_autofix_create_forbidden) + case forbidden(Components.Responses.CodeScanningAutofixCreateForbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_autofix_create_forbidden { + public var forbidden: Components.Responses.CodeScanningAutofixCreateForbidden { get throws { switch self { case let .forbidden(response): @@ -5557,12 +5610,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5584,12 +5637,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.UnprocessableContent) + case unprocessableContent(Operations.CodeScanningCreateAutofix.Output.UnprocessableContent) + /// Unprocessable Entity + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.code_hyphen_scanning_sol_create_hyphen_autofix.Output.UnprocessableContent { + public var unprocessableContent: Operations.CodeScanningCreateAutofix.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -5607,12 +5668,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/post(code-scanning/create-autofix)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5666,7 +5727,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)`. - public enum code_hyphen_scanning_sol_commit_hyphen_autofix { + public enum CodeScanningCommitAutofix { public static let id: Swift.String = "code-scanning/commit-autofix" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/path`. @@ -5674,50 +5735,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Path + public var path: Operations.CodeScanningCommitAutofix.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Headers + public var headers: Operations.CodeScanningCommitAutofix.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/requestBody/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_commits) + case json(Components.Schemas.CodeScanningAutofixCommits) } - public var body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Body? + public var body: Operations.CodeScanningCommitAutofix.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -5725,9 +5786,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Path, - headers: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Input.Body? = nil + path: Operations.CodeScanningCommitAutofix.Input.Path, + headers: Operations.CodeScanningCommitAutofix.Input.Headers = .init(), + body: Operations.CodeScanningCommitAutofix.Input.Body? = nil ) { self.path = path self.headers = headers @@ -5739,12 +5800,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/POST/responses/201/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_commits_hyphen_response) + case json(Components.Schemas.CodeScanningAutofixCommitsResponse) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_autofix_hyphen_commits_hyphen_response { + public var json: Components.Schemas.CodeScanningAutofixCommitsResponse { get throws { switch self { case let .json(body): @@ -5754,12 +5815,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.Created.Body + public var body: Operations.CodeScanningCommitAutofix.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.Created.Body) { + public init(body: Operations.CodeScanningCommitAutofix.Output.Created.Body) { self.body = body } } @@ -5768,12 +5829,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.Created) + case created(Operations.CodeScanningCommitAutofix.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.Created { + public var created: Operations.CodeScanningCommitAutofix.Output.Created { get throws { switch self { case let .created(response): @@ -5791,12 +5852,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.code_scanning_bad_request) + case badRequest(Components.Responses.CodeScanningBadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.code_scanning_bad_request { + public var badRequest: Components.Responses.CodeScanningBadRequest { get throws { switch self { case let .badRequest(response): @@ -5814,12 +5875,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -5837,12 +5898,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5864,12 +5925,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.UnprocessableContent) + case unprocessableContent(Operations.CodeScanningCommitAutofix.Output.UnprocessableContent) + /// Unprocessable Entity + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.code_hyphen_scanning_sol_commit_hyphen_autofix.Output.UnprocessableContent { + public var unprocessableContent: Operations.CodeScanningCommitAutofix.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -5887,12 +5956,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits/post(code-scanning/commit-autofix)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5944,7 +6013,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)`. - public enum code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances { + public enum CodeScanningListAlertInstances { public static let id: Swift.String = "code-scanning/list-alert-instances" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/path`. @@ -5952,82 +6021,82 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Path + public var path: Operations.CodeScanningListAlertInstances.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/query/ref`. - public var ref: Components.Parameters.git_hyphen_ref? + public var ref: Components.Parameters.GitRef? /// The number of the pull request for the results you want to list. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/query/pr`. - public var pr: Components.Parameters.pr_hyphen_alias? + public var pr: Components.Parameters.PrAlias? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - ref: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// - pr: The number of the pull request for the results you want to list. public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - ref: Components.Parameters.git_hyphen_ref? = nil, - pr: Components.Parameters.pr_hyphen_alias? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + ref: Components.Parameters.GitRef? = nil, + pr: Components.Parameters.PrAlias? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage self.ref = ref self.pr = pr } } - public var query: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Query + public var query: Operations.CodeScanningListAlertInstances.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Headers + public var headers: Operations.CodeScanningListAlertInstances.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6035,9 +6104,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Input.Headers = .init() + path: Operations.CodeScanningListAlertInstances.Input.Path, + query: Operations.CodeScanningListAlertInstances.Input.Query = .init(), + headers: Operations.CodeScanningListAlertInstances.Input.Headers = .init() ) { self.path = path self.query = query @@ -6049,12 +6118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance]) + case json([Components.Schemas.CodeScanningAlertInstance]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_instance] { + public var json: [Components.Schemas.CodeScanningAlertInstance] { get throws { switch self { case let .json(body): @@ -6064,12 +6133,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output.Ok.Body + public var body: Operations.CodeScanningListAlertInstances.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output.Ok.Body) { + public init(body: Operations.CodeScanningListAlertInstances.Output.Ok.Body) { self.body = body } } @@ -6078,12 +6147,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output.Ok) + case ok(Operations.CodeScanningListAlertInstances.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_list_hyphen_alert_hyphen_instances.Output.Ok { + public var ok: Operations.CodeScanningListAlertInstances.Output.Ok { get throws { switch self { case let .ok(response): @@ -6101,12 +6170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -6124,12 +6193,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6147,12 +6216,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances/get(code-scanning/list-alert-instances)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -6216,7 +6285,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)`. - public enum code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses { + public enum CodeScanningListRecentAnalyses { public static let id: Swift.String = "code-scanning/list-recent-analyses" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/path`. @@ -6224,119 +6293,119 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Path + public var path: Operations.CodeScanningListRecentAnalyses.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query`. public struct Query: Sendable, Hashable { /// The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/tool_name`. - public var tool_name: Components.Parameters.tool_hyphen_name? + public var toolName: Components.Parameters.ToolName? /// The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/tool_guid`. - public var tool_guid: Components.Parameters.tool_hyphen_guid? + public var toolGuid: Components.Parameters.ToolGuid? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// The number of the pull request for the results you want to list. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/pr`. - public var pr: Components.Parameters.pr_hyphen_alias? + public var pr: Components.Parameters.PrAlias? /// The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/ref`. - public var ref: Components.Schemas.code_hyphen_scanning_hyphen_ref? + public var ref: Components.Schemas.CodeScanningRef? /// Filter analyses belonging to the same SARIF upload. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/sarif_id`. - public var sarif_id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id? + public var sarifId: Components.Schemas.CodeScanningAnalysisSarifId? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/query/sort`. - public var sort: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Query.sortPayload? + public var sort: Operations.CodeScanningListRecentAnalyses.Input.Query.SortPayload? /// Creates a new `Query`. /// /// - Parameters: - /// - tool_name: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. - /// - tool_guid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. + /// - toolName: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both. + /// - toolGuid: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - pr: The number of the pull request for the results you want to list. /// - ref: The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. - /// - sarif_id: Filter analyses belonging to the same SARIF upload. + /// - sarifId: Filter analyses belonging to the same SARIF upload. /// - direction: The direction to sort the results by. /// - sort: The property by which to sort the results. public init( - tool_name: Components.Parameters.tool_hyphen_name? = nil, - tool_guid: Components.Parameters.tool_hyphen_guid? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - pr: Components.Parameters.pr_hyphen_alias? = nil, - ref: Components.Schemas.code_hyphen_scanning_hyphen_ref? = nil, - sarif_id: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_id? = nil, - direction: Components.Parameters.direction? = nil, - sort: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Query.sortPayload? = nil + toolName: Components.Parameters.ToolName? = nil, + toolGuid: Components.Parameters.ToolGuid? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + pr: Components.Parameters.PrAlias? = nil, + ref: Components.Schemas.CodeScanningRef? = nil, + sarifId: Components.Schemas.CodeScanningAnalysisSarifId? = nil, + direction: Components.Parameters.Direction? = nil, + sort: Operations.CodeScanningListRecentAnalyses.Input.Query.SortPayload? = nil ) { - self.tool_name = tool_name - self.tool_guid = tool_guid + self.toolName = toolName + self.toolGuid = toolGuid self.page = page - self.per_page = per_page + self.perPage = perPage self.pr = pr self.ref = ref - self.sarif_id = sarif_id + self.sarifId = sarifId self.direction = direction self.sort = sort } } - public var query: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Query + public var query: Operations.CodeScanningListRecentAnalyses.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Headers + public var headers: Operations.CodeScanningListRecentAnalyses.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6344,9 +6413,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Path, - query: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Input.Headers = .init() + path: Operations.CodeScanningListRecentAnalyses.Input.Path, + query: Operations.CodeScanningListRecentAnalyses.Input.Query = .init(), + headers: Operations.CodeScanningListRecentAnalyses.Input.Headers = .init() ) { self.path = path self.query = query @@ -6358,12 +6427,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_scanning_hyphen_analysis]) + case json([Components.Schemas.CodeScanningAnalysis]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_scanning_hyphen_analysis] { + public var json: [Components.Schemas.CodeScanningAnalysis] { get throws { switch self { case let .json(body): @@ -6373,12 +6442,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output.Ok.Body + public var body: Operations.CodeScanningListRecentAnalyses.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output.Ok.Body) { + public init(body: Operations.CodeScanningListRecentAnalyses.Output.Ok.Body) { self.body = body } } @@ -6387,12 +6456,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output.Ok) + case ok(Operations.CodeScanningListRecentAnalyses.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_list_hyphen_recent_hyphen_analyses.Output.Ok { + public var ok: Operations.CodeScanningListRecentAnalyses.Output.Ok { get throws { switch self { case let .ok(response): @@ -6410,12 +6479,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -6433,12 +6502,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6456,12 +6525,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/get(code-scanning/list-recent-analyses)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -6527,7 +6596,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`. - public enum code_hyphen_scanning_sol_get_hyphen_analysis { + public enum CodeScanningGetAnalysis { public static let id: Swift.String = "code-scanning/get-analysis" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/path`. @@ -6535,52 +6604,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/path/analysis_id`. - public var analysis_id: Swift.Int + public var analysisId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - analysis_id: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. + /// - analysisId: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - analysis_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + analysisId: Swift.Int ) { self.owner = owner self.repo = repo - self.analysis_id = analysis_id + self.analysisId = analysisId } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Path + public var path: Operations.CodeScanningGetAnalysis.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Headers + public var headers: Operations.CodeScanningGetAnalysis.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Input.Headers = .init() + path: Operations.CodeScanningGetAnalysis.Input.Path, + headers: Operations.CodeScanningGetAnalysis.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6591,12 +6660,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_analysis) + case json(Components.Schemas.CodeScanningAnalysis) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_analysis { + public var json: Components.Schemas.CodeScanningAnalysis { get throws { switch self { case let .json(body): @@ -6610,15 +6679,15 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/GET/responses/200/content/application\/json+sarif`. - case application_json_plus_sarif(OpenAPIRuntime.HTTPBody) - /// The associated value of the enum case if `self` is `.application_json_plus_sarif`. + case applicationJsonSarif(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationJsonSarif`. /// - /// - Throws: An error if `self` is not `.application_json_plus_sarif`. - /// - SeeAlso: `.application_json_plus_sarif`. - public var application_json_plus_sarif: OpenAPIRuntime.HTTPBody { + /// - Throws: An error if `self` is not `.applicationJsonSarif`. + /// - SeeAlso: `.applicationJsonSarif`. + public var applicationJsonSarif: OpenAPIRuntime.HTTPBody { get throws { switch self { - case let .application_json_plus_sarif(body): + case let .applicationJsonSarif(body): return body default: try throwUnexpectedResponseBody( @@ -6630,12 +6699,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output.Ok.Body + public var body: Operations.CodeScanningGetAnalysis.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetAnalysis.Output.Ok.Body) { self.body = body } } @@ -6644,12 +6713,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output.Ok) + case ok(Operations.CodeScanningGetAnalysis.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_analysis.Output.Ok { + public var ok: Operations.CodeScanningGetAnalysis.Output.Ok { get throws { switch self { case let .ok(response): @@ -6667,12 +6736,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -6690,12 +6759,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6708,17 +6777,40 @@ public enum Operations { } } } + /// Response if analysis could not be processed + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Components.Responses.UnprocessableAnalysis) + /// The associated value of the enum case if `self` is `.unprocessableContent`. + /// + /// - Throws: An error if `self` is not `.unprocessableContent`. + /// - SeeAlso: `.unprocessableContent`. + public var unprocessableContent: Components.Responses.UnprocessableAnalysis { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Service unavailable /// /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -6738,14 +6830,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_json_plus_sarif + case applicationJsonSarif case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/json+sarif": - self = .application_json_plus_sarif + self = .applicationJsonSarif default: self = .other(rawValue) } @@ -6756,14 +6848,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_json_plus_sarif: + case .applicationJsonSarif: return "application/json+sarif" } } public static var allCases: [Self] { [ .json, - .application_json_plus_sarif + .applicationJsonSarif ] } } @@ -6837,7 +6929,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)`. - public enum code_hyphen_scanning_sol_delete_hyphen_analysis { + public enum CodeScanningDeleteAnalysis { public static let id: Swift.String = "code-scanning/delete-analysis" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/path`. @@ -6845,59 +6937,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/path/analysis_id`. - public var analysis_id: Swift.Int + public var analysisId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - analysis_id: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. + /// - analysisId: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - analysis_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + analysisId: Swift.Int ) { self.owner = owner self.repo = repo - self.analysis_id = analysis_id + self.analysisId = analysisId } } - public var path: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Path + public var path: Operations.CodeScanningDeleteAnalysis.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/query`. public struct Query: Sendable, Hashable { /// Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/query/confirm_delete`. - public var confirm_delete: Swift.String? + public var confirmDelete: Swift.String? /// Creates a new `Query`. /// /// - Parameters: - /// - confirm_delete: Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.` - public init(confirm_delete: Swift.String? = nil) { - self.confirm_delete = confirm_delete + /// - confirmDelete: Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.` + public init(confirmDelete: Swift.String? = nil) { + self.confirmDelete = confirmDelete } } - public var query: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Query + public var query: Operations.CodeScanningDeleteAnalysis.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Headers + public var headers: Operations.CodeScanningDeleteAnalysis.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6905,9 +6997,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Path, - query: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Query = .init(), - headers: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Input.Headers = .init() + path: Operations.CodeScanningDeleteAnalysis.Input.Path, + query: Operations.CodeScanningDeleteAnalysis.Input.Query = .init(), + headers: Operations.CodeScanningDeleteAnalysis.Input.Headers = .init() ) { self.path = path self.query = query @@ -6919,12 +7011,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_deletion) + case json(Components.Schemas.CodeScanningAnalysisDeletion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_deletion { + public var json: Components.Schemas.CodeScanningAnalysisDeletion { get throws { switch self { case let .json(body): @@ -6934,12 +7026,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output.Ok.Body + public var body: Operations.CodeScanningDeleteAnalysis.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output.Ok.Body) { + public init(body: Operations.CodeScanningDeleteAnalysis.Output.Ok.Body) { self.body = body } } @@ -6948,12 +7040,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output.Ok) + case ok(Operations.CodeScanningDeleteAnalysis.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_delete_hyphen_analysis.Output.Ok { + public var ok: Operations.CodeScanningDeleteAnalysis.Output.Ok { get throws { switch self { case let .ok(response): @@ -6971,12 +7063,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -6994,12 +7086,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -7017,12 +7109,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7040,12 +7132,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/delete(code-scanning/delete-analysis)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7065,14 +7157,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -7083,14 +7175,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -7103,7 +7195,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)`. - public enum code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases { + public enum CodeScanningListCodeqlDatabases { public static let id: Swift.String = "code-scanning/list-codeql-databases" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/path`. @@ -7111,45 +7203,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Path + public var path: Operations.CodeScanningListCodeqlDatabases.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Headers + public var headers: Operations.CodeScanningListCodeqlDatabases.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Path, - headers: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Input.Headers = .init() + path: Operations.CodeScanningListCodeqlDatabases.Input.Path, + headers: Operations.CodeScanningListCodeqlDatabases.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7160,12 +7252,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database]) + case json([Components.Schemas.CodeScanningCodeqlDatabase]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database] { + public var json: [Components.Schemas.CodeScanningCodeqlDatabase] { get throws { switch self { case let .json(body): @@ -7175,12 +7267,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output.Ok.Body + public var body: Operations.CodeScanningListCodeqlDatabases.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output.Ok.Body) { + public init(body: Operations.CodeScanningListCodeqlDatabases.Output.Ok.Body) { self.body = body } } @@ -7189,12 +7281,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output.Ok) + case ok(Operations.CodeScanningListCodeqlDatabases.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_list_hyphen_codeql_hyphen_databases.Output.Ok { + public var ok: Operations.CodeScanningListCodeqlDatabases.Output.Ok { get throws { switch self { case let .ok(response): @@ -7212,12 +7304,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -7235,12 +7327,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7258,12 +7350,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/get(code-scanning/list-codeql-databases)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7321,7 +7413,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)`. - public enum code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database { + public enum CodeScanningGetCodeqlDatabase { public static let id: Swift.String = "code-scanning/get-codeql-database" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/path`. @@ -7329,11 +7421,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The language of the CodeQL database. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/path/language`. @@ -7345,8 +7437,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - language: The language of the CodeQL database. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, language: Swift.String ) { self.owner = owner @@ -7354,27 +7446,27 @@ public enum Operations { self.language = language } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Path + public var path: Operations.CodeScanningGetCodeqlDatabase.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Headers + public var headers: Operations.CodeScanningGetCodeqlDatabase.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Input.Headers = .init() + path: Operations.CodeScanningGetCodeqlDatabase.Input.Path, + headers: Operations.CodeScanningGetCodeqlDatabase.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7385,12 +7477,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database) + case json(Components.Schemas.CodeScanningCodeqlDatabase) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_codeql_hyphen_database { + public var json: Components.Schemas.CodeScanningCodeqlDatabase { get throws { switch self { case let .json(body): @@ -7400,12 +7492,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output.Ok.Body + public var body: Operations.CodeScanningGetCodeqlDatabase.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetCodeqlDatabase.Output.Ok.Body) { self.body = body } } @@ -7414,12 +7506,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output.Ok) + case ok(Operations.CodeScanningGetCodeqlDatabase.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_codeql_hyphen_database.Output.Ok { + public var ok: Operations.CodeScanningGetCodeqlDatabase.Output.Ok { get throws { switch self { case let .ok(response): @@ -7437,12 +7529,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Components.Responses.found) + case found(Components.Responses.Found) + /// Found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/302`. + /// + /// HTTP response code: `302 found`. + public static var found: Self { + .found(.init()) + } /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Components.Responses.found { + public var found: Components.Responses.Found { get throws { switch self { case let .found(response): @@ -7460,12 +7560,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -7483,12 +7583,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7506,12 +7606,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/get(code-scanning/get-codeql-database)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7563,7 +7663,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)`. - public enum code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database { + public enum CodeScanningDeleteCodeqlDatabase { public static let id: Swift.String = "code-scanning/delete-codeql-database" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/DELETE/path`. @@ -7571,11 +7671,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The language of the CodeQL database. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/DELETE/path/language`. @@ -7587,8 +7687,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - language: The language of the CodeQL database. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, language: Swift.String ) { self.owner = owner @@ -7596,27 +7696,27 @@ public enum Operations { self.language = language } } - public var path: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Path + public var path: Operations.CodeScanningDeleteCodeqlDatabase.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Headers + public var headers: Operations.CodeScanningDeleteCodeqlDatabase.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Path, - headers: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Input.Headers = .init() + path: Operations.CodeScanningDeleteCodeqlDatabase.Input.Path, + headers: Operations.CodeScanningDeleteCodeqlDatabase.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7632,12 +7732,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Output.NoContent) + case noContent(Operations.CodeScanningDeleteCodeqlDatabase.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.code_hyphen_scanning_sol_delete_hyphen_codeql_hyphen_database.Output.NoContent { + public var noContent: Operations.CodeScanningDeleteCodeqlDatabase.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7655,12 +7763,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -7678,12 +7786,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7701,12 +7809,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/databases/{language}/delete(code-scanning/delete-codeql-database)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7763,7 +7871,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)`. - public enum code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis { + public enum CodeScanningCreateVariantAnalysis { public static let id: Swift.String = "code-scanning/create-variant-analysis" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/path`. @@ -7771,62 +7879,62 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Path + public var path: Operations.CodeScanningCreateVariantAnalysis.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Headers + public var headers: Operations.CodeScanningCreateVariantAnalysis.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// Creates a new `Case1Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case1`. - case case1(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.CodeScanningCreateVariantAnalysis.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case2`. public struct Case2Payload: Codable, Hashable, Sendable { /// Creates a new `Case2Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case2`. - case case2(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body.jsonPayload.Case2Payload) + case case2(Operations.CodeScanningCreateVariantAnalysis.Input.Body.JsonPayload.Case2Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case3`. public struct Case3Payload: Codable, Hashable, Sendable { /// Creates a new `Case3Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/json/case3`. - case case3(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body.jsonPayload.Case3Payload) + case case3(Operations.CodeScanningCreateVariantAnalysis.Input.Body.JsonPayload.Case3Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -7865,9 +7973,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body.jsonPayload) + case json(Operations.CodeScanningCreateVariantAnalysis.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body + public var body: Operations.CodeScanningCreateVariantAnalysis.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7875,9 +7983,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Input.Body + path: Operations.CodeScanningCreateVariantAnalysis.Input.Path, + headers: Operations.CodeScanningCreateVariantAnalysis.Input.Headers = .init(), + body: Operations.CodeScanningCreateVariantAnalysis.Input.Body ) { self.path = path self.headers = headers @@ -7889,12 +7997,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/responses/201/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis) + case json(Components.Schemas.CodeScanningVariantAnalysis) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis { + public var json: Components.Schemas.CodeScanningVariantAnalysis { get throws { switch self { case let .json(body): @@ -7904,12 +8012,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.Created.Body + public var body: Operations.CodeScanningCreateVariantAnalysis.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.Created.Body) { + public init(body: Operations.CodeScanningCreateVariantAnalysis.Output.Created.Body) { self.body = body } } @@ -7918,12 +8026,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.Created) + case created(Operations.CodeScanningCreateVariantAnalysis.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.Created { + public var created: Operations.CodeScanningCreateVariantAnalysis.Output.Created { get throws { switch self { case let .created(response): @@ -7941,12 +8049,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7963,12 +8071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/POST/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -7978,12 +8086,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.UnprocessableContent.Body + public var body: Operations.CodeScanningCreateVariantAnalysis.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.UnprocessableContent.Body) { + public init(body: Operations.CodeScanningCreateVariantAnalysis.Output.UnprocessableContent.Body) { self.body = body } } @@ -7992,12 +8100,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.UnprocessableContent) + case unprocessableContent(Operations.CodeScanningCreateVariantAnalysis.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.code_hyphen_scanning_sol_create_hyphen_variant_hyphen_analysis.Output.UnprocessableContent { + public var unprocessableContent: Operations.CodeScanningCreateVariantAnalysis.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -8015,12 +8123,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/post(code-scanning/create-variant-analysis)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -8072,7 +8180,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)`. - public enum code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis { + public enum CodeScanningGetVariantAnalysis { public static let id: Swift.String = "code-scanning/get-variant-analysis" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/path`. @@ -8080,52 +8188,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the variant analysis. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/path/codeql_variant_analysis_id`. - public var codeql_variant_analysis_id: Swift.Int + public var codeqlVariantAnalysisId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - codeql_variant_analysis_id: The unique identifier of the variant analysis. + /// - codeqlVariantAnalysisId: The unique identifier of the variant analysis. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - codeql_variant_analysis_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + codeqlVariantAnalysisId: Swift.Int ) { self.owner = owner self.repo = repo - self.codeql_variant_analysis_id = codeql_variant_analysis_id + self.codeqlVariantAnalysisId = codeqlVariantAnalysisId } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Path + public var path: Operations.CodeScanningGetVariantAnalysis.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Headers + public var headers: Operations.CodeScanningGetVariantAnalysis.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Input.Headers = .init() + path: Operations.CodeScanningGetVariantAnalysis.Input.Path, + headers: Operations.CodeScanningGetVariantAnalysis.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8136,12 +8244,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis) + case json(Components.Schemas.CodeScanningVariantAnalysis) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis { + public var json: Components.Schemas.CodeScanningVariantAnalysis { get throws { switch self { case let .json(body): @@ -8151,12 +8259,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output.Ok.Body + public var body: Operations.CodeScanningGetVariantAnalysis.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetVariantAnalysis.Output.Ok.Body) { self.body = body } } @@ -8165,12 +8273,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output.Ok) + case ok(Operations.CodeScanningGetVariantAnalysis.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis.Output.Ok { + public var ok: Operations.CodeScanningGetVariantAnalysis.Output.Ok { get throws { switch self { case let .ok(response): @@ -8188,12 +8296,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8211,12 +8319,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/get(code-scanning/get-variant-analysis)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -8268,7 +8376,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)`. - public enum code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task { + public enum CodeScanningGetVariantAnalysisRepoTask { public static let id: Swift.String = "code-scanning/get-variant-analysis-repo-task" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path`. @@ -8276,7 +8384,7 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the controller repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path/repo`. @@ -8284,58 +8392,58 @@ public enum Operations { /// The ID of the variant analysis. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path/codeql_variant_analysis_id`. - public var codeql_variant_analysis_id: Swift.Int + public var codeqlVariantAnalysisId: Swift.Int /// The account owner of the variant analysis repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path/repo_owner`. - public var repo_owner: Swift.String + public var repoOwner: Swift.String /// The name of the variant analysis repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/path/repo_name`. - public var repo_name: Swift.String + public var repoName: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the controller repository. - /// - codeql_variant_analysis_id: The ID of the variant analysis. - /// - repo_owner: The account owner of the variant analysis repository. The name is not case sensitive. - /// - repo_name: The name of the variant analysis repository. + /// - codeqlVariantAnalysisId: The ID of the variant analysis. + /// - repoOwner: The account owner of the variant analysis repository. The name is not case sensitive. + /// - repoName: The name of the variant analysis repository. public init( - owner: Components.Parameters.owner, + owner: Components.Parameters.Owner, repo: Swift.String, - codeql_variant_analysis_id: Swift.Int, - repo_owner: Swift.String, - repo_name: Swift.String + codeqlVariantAnalysisId: Swift.Int, + repoOwner: Swift.String, + repoName: Swift.String ) { self.owner = owner self.repo = repo - self.codeql_variant_analysis_id = codeql_variant_analysis_id - self.repo_owner = repo_owner - self.repo_name = repo_name + self.codeqlVariantAnalysisId = codeqlVariantAnalysisId + self.repoOwner = repoOwner + self.repoName = repoName } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Path + public var path: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Headers + public var headers: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Input.Headers = .init() + path: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Path, + headers: Operations.CodeScanningGetVariantAnalysisRepoTask.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8346,12 +8454,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task) + case json(Components.Schemas.CodeScanningVariantAnalysisRepoTask) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task { + public var json: Components.Schemas.CodeScanningVariantAnalysisRepoTask { get throws { switch self { case let .json(body): @@ -8361,12 +8469,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output.Ok.Body + public var body: Operations.CodeScanningGetVariantAnalysisRepoTask.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetVariantAnalysisRepoTask.Output.Ok.Body) { self.body = body } } @@ -8375,12 +8483,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output.Ok) + case ok(Operations.CodeScanningGetVariantAnalysisRepoTask.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_variant_hyphen_analysis_hyphen_repo_hyphen_task.Output.Ok { + public var ok: Operations.CodeScanningGetVariantAnalysisRepoTask.Output.Ok { get throws { switch self { case let .ok(response): @@ -8398,12 +8506,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8421,12 +8529,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}/get(code-scanning/get-variant-analysis-repo-task)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -8478,7 +8586,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)`. - public enum code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup { + public enum CodeScanningGetDefaultSetup { public static let id: Swift.String = "code-scanning/get-default-setup" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/path`. @@ -8486,45 +8594,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Path + public var path: Operations.CodeScanningGetDefaultSetup.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Headers + public var headers: Operations.CodeScanningGetDefaultSetup.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Input.Headers = .init() + path: Operations.CodeScanningGetDefaultSetup.Input.Path, + headers: Operations.CodeScanningGetDefaultSetup.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8535,12 +8643,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup) + case json(Components.Schemas.CodeScanningDefaultSetup) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup { + public var json: Components.Schemas.CodeScanningDefaultSetup { get throws { switch self { case let .json(body): @@ -8550,12 +8658,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output.Ok.Body + public var body: Operations.CodeScanningGetDefaultSetup.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetDefaultSetup.Output.Ok.Body) { self.body = body } } @@ -8564,12 +8672,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output.Ok) + case ok(Operations.CodeScanningGetDefaultSetup.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_default_hyphen_setup.Output.Ok { + public var ok: Operations.CodeScanningGetDefaultSetup.Output.Ok { get throws { switch self { case let .ok(response): @@ -8587,12 +8695,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -8610,12 +8718,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8633,12 +8741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/get(code-scanning/get-default-setup)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -8690,7 +8798,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/code-scanning/default-setup`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)`. - public enum code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup { + public enum CodeScanningUpdateDefaultSetup { public static let id: Swift.String = "code-scanning/update-default-setup" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/path`. @@ -8698,43 +8806,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Path + public var path: Operations.CodeScanningUpdateDefaultSetup.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Headers + public var headers: Operations.CodeScanningUpdateDefaultSetup.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/requestBody/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update) + case json(Components.Schemas.CodeScanningDefaultSetupUpdate) } - public var body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Body + public var body: Operations.CodeScanningUpdateDefaultSetup.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8742,9 +8850,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Path, - headers: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Input.Body + path: Operations.CodeScanningUpdateDefaultSetup.Input.Path, + headers: Operations.CodeScanningUpdateDefaultSetup.Input.Headers = .init(), + body: Operations.CodeScanningUpdateDefaultSetup.Input.Body ) { self.path = path self.headers = headers @@ -8756,12 +8864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -8771,12 +8879,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Ok.Body + public var body: Operations.CodeScanningUpdateDefaultSetup.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Ok.Body) { + public init(body: Operations.CodeScanningUpdateDefaultSetup.Output.Ok.Body) { self.body = body } } @@ -8785,12 +8893,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Ok) + case ok(Operations.CodeScanningUpdateDefaultSetup.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Ok { + public var ok: Operations.CodeScanningUpdateDefaultSetup.Output.Ok { get throws { switch self { case let .ok(response): @@ -8807,12 +8915,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/default-setup/PATCH/responses/202/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update_hyphen_response) + case json(Components.Schemas.CodeScanningDefaultSetupUpdateResponse) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_update_hyphen_response { + public var json: Components.Schemas.CodeScanningDefaultSetupUpdateResponse { get throws { switch self { case let .json(body): @@ -8822,12 +8930,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Accepted.Body + public var body: Operations.CodeScanningUpdateDefaultSetup.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Accepted.Body) { + public init(body: Operations.CodeScanningUpdateDefaultSetup.Output.Accepted.Body) { self.body = body } } @@ -8836,12 +8944,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Accepted) + case accepted(Operations.CodeScanningUpdateDefaultSetup.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.code_hyphen_scanning_sol_update_hyphen_default_hyphen_setup.Output.Accepted { + public var accepted: Operations.CodeScanningUpdateDefaultSetup.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -8859,12 +8967,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -8882,12 +8990,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8905,12 +9013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.code_scanning_conflict) + case conflict(Components.Responses.CodeScanningConflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.code_scanning_conflict { + public var conflict: Components.Responses.CodeScanningConflict { get throws { switch self { case let .conflict(response): @@ -8928,12 +9036,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/default-setup/patch(code-scanning/update-default-setup)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -9016,7 +9124,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/code-scanning/sarifs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)`. - public enum code_hyphen_scanning_sol_upload_hyphen_sarif { + public enum CodeScanningUploadSarif { public static let id: Swift.String = "code-scanning/upload-sarif" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/path`. @@ -9024,128 +9132,128 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Path + public var path: Operations.CodeScanningUploadSarif.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Headers + public var headers: Operations.CodeScanningUploadSarif.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/commit_sha`. - public var commit_sha: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha + public var commitSha: Components.Schemas.CodeScanningAnalysisCommitSha /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/ref`. - public var ref: Components.Schemas.code_hyphen_scanning_hyphen_ref_hyphen_full + public var ref: Components.Schemas.CodeScanningRefFull /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/sarif`. - public var sarif: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_file + public var sarif: Components.Schemas.CodeScanningAnalysisSarifFile /// The base directory used in the analysis, as it appears in the SARIF file. /// This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/checkout_uri`. - public var checkout_uri: Swift.String? + public var checkoutUri: Swift.String? /// The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/started_at`. - public var started_at: Foundation.Date? + public var startedAt: Foundation.Date? /// The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/tool_name`. - public var tool_name: Swift.String? + public var toolName: Swift.String? /// Whether the SARIF file will be validated according to the code scanning specifications. /// This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/json/validate`. public var validate: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - commit_sha: + /// - commitSha: /// - ref: /// - sarif: - /// - checkout_uri: The base directory used in the analysis, as it appears in the SARIF file. - /// - started_at: The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - tool_name: The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. + /// - checkoutUri: The base directory used in the analysis, as it appears in the SARIF file. + /// - startedAt: The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - toolName: The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. /// - validate: Whether the SARIF file will be validated according to the code scanning specifications. public init( - commit_sha: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha, - ref: Components.Schemas.code_hyphen_scanning_hyphen_ref_hyphen_full, - sarif: Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_file, - checkout_uri: Swift.String? = nil, - started_at: Foundation.Date? = nil, - tool_name: Swift.String? = nil, + commitSha: Components.Schemas.CodeScanningAnalysisCommitSha, + ref: Components.Schemas.CodeScanningRefFull, + sarif: Components.Schemas.CodeScanningAnalysisSarifFile, + checkoutUri: Swift.String? = nil, + startedAt: Foundation.Date? = nil, + toolName: Swift.String? = nil, validate: Swift.Bool? = nil ) { - self.commit_sha = commit_sha + self.commitSha = commitSha self.ref = ref self.sarif = sarif - self.checkout_uri = checkout_uri - self.started_at = started_at - self.tool_name = tool_name + self.checkoutUri = checkoutUri + self.startedAt = startedAt + self.toolName = toolName self.validate = validate } public enum CodingKeys: String, CodingKey { - case commit_sha + case commitSha = "commit_sha" case ref case sarif - case checkout_uri - case started_at - case tool_name + case checkoutUri = "checkout_uri" + case startedAt = "started_at" + case toolName = "tool_name" case validate } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - commit_sha = try container.decode( - Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_commit_hyphen_sha.self, - forKey: .commit_sha + self.commitSha = try container.decode( + Components.Schemas.CodeScanningAnalysisCommitSha.self, + forKey: .commitSha ) - ref = try container.decode( - Components.Schemas.code_hyphen_scanning_hyphen_ref_hyphen_full.self, + self.ref = try container.decode( + Components.Schemas.CodeScanningRefFull.self, forKey: .ref ) - sarif = try container.decode( - Components.Schemas.code_hyphen_scanning_hyphen_analysis_hyphen_sarif_hyphen_file.self, + self.sarif = try container.decode( + Components.Schemas.CodeScanningAnalysisSarifFile.self, forKey: .sarif ) - checkout_uri = try container.decodeIfPresent( + self.checkoutUri = try container.decodeIfPresent( Swift.String.self, - forKey: .checkout_uri + forKey: .checkoutUri ) - started_at = try container.decodeIfPresent( + self.startedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .started_at + forKey: .startedAt ) - tool_name = try container.decodeIfPresent( + self.toolName = try container.decodeIfPresent( Swift.String.self, - forKey: .tool_name + forKey: .toolName ) - validate = try container.decodeIfPresent( + self.validate = try container.decodeIfPresent( Swift.Bool.self, forKey: .validate ) @@ -9161,9 +9269,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Body.jsonPayload) + case json(Operations.CodeScanningUploadSarif.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Body + public var body: Operations.CodeScanningUploadSarif.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -9171,9 +9279,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Path, - headers: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Headers = .init(), - body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Input.Body + path: Operations.CodeScanningUploadSarif.Input.Path, + headers: Operations.CodeScanningUploadSarif.Input.Headers = .init(), + body: Operations.CodeScanningUploadSarif.Input.Body ) { self.path = path self.headers = headers @@ -9185,12 +9293,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/POST/responses/202/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_receipt) + case json(Components.Schemas.CodeScanningSarifsReceipt) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_receipt { + public var json: Components.Schemas.CodeScanningSarifsReceipt { get throws { switch self { case let .json(body): @@ -9200,12 +9308,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.Accepted.Body + public var body: Operations.CodeScanningUploadSarif.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.Accepted.Body) { + public init(body: Operations.CodeScanningUploadSarif.Output.Accepted.Body) { self.body = body } } @@ -9214,12 +9322,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.Accepted) + case accepted(Operations.CodeScanningUploadSarif.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.Accepted { + public var accepted: Operations.CodeScanningUploadSarif.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -9241,12 +9349,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.BadRequest) + case badRequest(Operations.CodeScanningUploadSarif.Output.BadRequest) + /// Bad Request if the sarif field is invalid + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.BadRequest { + public var badRequest: Operations.CodeScanningUploadSarif.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -9264,12 +9380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_write) + case forbidden(Components.Responses.CodeScanningForbiddenWrite) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_write { + public var forbidden: Components.Responses.CodeScanningForbiddenWrite { get throws { switch self { case let .forbidden(response): @@ -9287,12 +9403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9314,12 +9430,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/413`. /// /// HTTP response code: `413 contentTooLarge`. - case contentTooLarge(Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.ContentTooLarge) + case contentTooLarge(Operations.CodeScanningUploadSarif.Output.ContentTooLarge) + /// Payload Too Large if the sarif field is too large + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/413`. + /// + /// HTTP response code: `413 contentTooLarge`. + public static var contentTooLarge: Self { + .contentTooLarge(.init()) + } /// The associated value of the enum case if `self` is `.contentTooLarge`. /// /// - Throws: An error if `self` is not `.contentTooLarge`. /// - SeeAlso: `.contentTooLarge`. - public var contentTooLarge: Operations.code_hyphen_scanning_sol_upload_hyphen_sarif.Output.ContentTooLarge { + public var contentTooLarge: Operations.CodeScanningUploadSarif.Output.ContentTooLarge { get throws { switch self { case let .contentTooLarge(response): @@ -9337,12 +9461,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/post(code-scanning/upload-sarif)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -9393,7 +9517,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)`. - public enum code_hyphen_scanning_sol_get_hyphen_sarif { + public enum CodeScanningGetSarif { public static let id: Swift.String = "code-scanning/get-sarif" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/path`. @@ -9401,52 +9525,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SARIF ID obtained after uploading. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/path/sarif_id`. - public var sarif_id: Swift.String + public var sarifId: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - sarif_id: The SARIF ID obtained after uploading. + /// - sarifId: The SARIF ID obtained after uploading. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - sarif_id: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + sarifId: Swift.String ) { self.owner = owner self.repo = repo - self.sarif_id = sarif_id + self.sarifId = sarifId } } - public var path: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Path + public var path: Operations.CodeScanningGetSarif.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Headers + public var headers: Operations.CodeScanningGetSarif.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Path, - headers: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Input.Headers = .init() + path: Operations.CodeScanningGetSarif.Input.Path, + headers: Operations.CodeScanningGetSarif.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9457,12 +9581,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_status) + case json(Components.Schemas.CodeScanningSarifsStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_scanning_hyphen_sarifs_hyphen_status { + public var json: Components.Schemas.CodeScanningSarifsStatus { get throws { switch self { case let .json(body): @@ -9472,12 +9596,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.Ok.Body + public var body: Operations.CodeScanningGetSarif.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.Ok.Body) { + public init(body: Operations.CodeScanningGetSarif.Output.Ok.Body) { self.body = body } } @@ -9486,12 +9610,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.Ok) + case ok(Operations.CodeScanningGetSarif.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.Ok { + public var ok: Operations.CodeScanningGetSarif.Output.Ok { get throws { switch self { case let .ok(response): @@ -9509,12 +9633,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.code_scanning_forbidden_read) + case forbidden(Components.Responses.CodeScanningForbiddenRead) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.code_scanning_forbidden_read { + public var forbidden: Components.Responses.CodeScanningForbiddenRead { get throws { switch self { case let .forbidden(response): @@ -9536,12 +9660,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.NotFound) + case notFound(Operations.CodeScanningGetSarif.Output.NotFound) + /// Not Found if the sarif id does not match any upload + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.code_hyphen_scanning_sol_get_hyphen_sarif.Output.NotFound { + public var notFound: Operations.CodeScanningGetSarif.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9559,12 +9691,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}/get(code-scanning/get-sarif)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): From e0d86fc52f17ef492ace47bdd6d3a53428d91f5f Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:00:49 -0700 Subject: [PATCH 09/46] Commit via running ake Sources/codes-of-conduct --- Sources/codes-of-conduct/Client.swift | 20 ++-- Sources/codes-of-conduct/Types.swift | 147 +++++++++++++++----------- 2 files changed, 96 insertions(+), 71 deletions(-) diff --git a/Sources/codes-of-conduct/Client.swift b/Sources/codes-of-conduct/Client.swift index ad6bbcf479..b7dbd2eafb 100644 --- a/Sources/codes-of-conduct/Client.swift +++ b/Sources/codes-of-conduct/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /codes_of_conduct`. /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)`. - public func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct(_ input: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output { + public func codesOfConductGetAllCodesOfConduct(_ input: Operations.CodesOfConductGetAllCodesOfConduct.Input) async throws -> Operations.CodesOfConductGetAllCodesOfConduct.Output { try await client.send( input: input, - forOperation: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.id, + forOperation: Operations.CodesOfConductGetAllCodesOfConduct.id, serializer: { input in let path = try converter.renderedPath( template: "/codes_of_conduct", @@ -68,7 +68,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output.Ok.Body + let body: Operations.CodesOfConductGetAllCodesOfConduct.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -78,7 +78,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_of_hyphen_conduct].self, + [Components.Schemas.CodeOfConduct].self, from: responseBody, transforming: { value in .json(value) @@ -108,10 +108,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /codes_of_conduct/{key}`. /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)`. - public func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code(_ input: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output { + public func codesOfConductGetConductCode(_ input: Operations.CodesOfConductGetConductCode.Input) async throws -> Operations.CodesOfConductGetConductCode.Output { try await client.send( input: input, - forOperation: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.id, + forOperation: Operations.CodesOfConductGetConductCode.id, serializer: { input in let path = try converter.renderedPath( template: "/codes_of_conduct/{}", @@ -134,7 +134,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output.Ok.Body + let body: Operations.CodesOfConductGetConductCode.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -144,7 +144,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_of_hyphen_conduct.self, + Components.Schemas.CodeOfConduct.self, from: responseBody, transforming: { value in .json(value) @@ -156,7 +156,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -166,7 +166,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/codes-of-conduct/Types.swift b/Sources/codes-of-conduct/Types.swift index e18d4ce5a9..e48046aed7 100644 --- a/Sources/codes-of-conduct/Types.swift +++ b/Sources/codes-of-conduct/Types.swift @@ -17,14 +17,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /codes_of_conduct`. /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)`. - func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct(_ input: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output + func codesOfConductGetAllCodesOfConduct(_ input: Operations.CodesOfConductGetAllCodesOfConduct.Input) async throws -> Operations.CodesOfConductGetAllCodesOfConduct.Output /// Get a code of conduct /// /// Returns information about the specified GitHub code of conduct. /// /// - Remark: HTTP `GET /codes_of_conduct/{key}`. /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)`. - func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code(_ input: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output + func codesOfConductGetConductCode(_ input: Operations.CodesOfConductGetConductCode.Input) async throws -> Operations.CodesOfConductGetConductCode.Output } /// Convenience overloads for operation inputs. @@ -35,8 +35,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /codes_of_conduct`. /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)`. - public func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct(headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input.Headers = .init()) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output { - try await codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct(Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input(headers: headers)) + public func codesOfConductGetAllCodesOfConduct(headers: Operations.CodesOfConductGetAllCodesOfConduct.Input.Headers = .init()) async throws -> Operations.CodesOfConductGetAllCodesOfConduct.Output { + try await codesOfConductGetAllCodesOfConduct(Operations.CodesOfConductGetAllCodesOfConduct.Input(headers: headers)) } /// Get a code of conduct /// @@ -44,11 +44,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /codes_of_conduct/{key}`. /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)`. - public func codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code( - path: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Path, - headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Headers = .init() - ) async throws -> Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output { - try await codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code(Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input( + public func codesOfConductGetConductCode( + path: Operations.CodesOfConductGetConductCode.Input.Path, + headers: Operations.CodesOfConductGetConductCode.Input.Headers = .init() + ) async throws -> Operations.CodesOfConductGetConductCode.Output { + try await codesOfConductGetConductCode(Operations.CodesOfConductGetConductCode.Input( path: path, headers: headers )) @@ -57,6 +57,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -72,36 +81,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -109,7 +118,7 @@ public enum Components { /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -119,34 +128,34 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } } @@ -156,16 +165,16 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -175,17 +184,17 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } @@ -201,26 +210,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /codes_of_conduct`. /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)`. - public enum codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct { + public enum CodesOfConductGetAllCodesOfConduct { public static let id: Swift.String = "codes-of-conduct/get-all-codes-of-conduct" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/codes_of_conduct/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input.Headers + public var headers: Operations.CodesOfConductGetAllCodesOfConduct.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Input.Headers = .init()) { + public init(headers: Operations.CodesOfConductGetAllCodesOfConduct.Input.Headers = .init()) { self.headers = headers } } @@ -229,12 +238,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/codes_of_conduct/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/codes_of_conduct/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_of_hyphen_conduct]) + case json([Components.Schemas.CodeOfConduct]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_of_hyphen_conduct] { + public var json: [Components.Schemas.CodeOfConduct] { get throws { switch self { case let .json(body): @@ -244,12 +253,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output.Ok.Body + public var body: Operations.CodesOfConductGetAllCodesOfConduct.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output.Ok.Body) { + public init(body: Operations.CodesOfConductGetAllCodesOfConduct.Output.Ok.Body) { self.body = body } } @@ -258,12 +267,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output.Ok) + case ok(Operations.CodesOfConductGetAllCodesOfConduct.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_all_hyphen_codes_hyphen_of_hyphen_conduct.Output.Ok { + public var ok: Operations.CodesOfConductGetAllCodesOfConduct.Output.Ok { get throws { switch self { case let .ok(response): @@ -281,12 +290,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//codes_of_conduct/get(codes-of-conduct/get-all-codes-of-conduct)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -336,7 +353,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /codes_of_conduct/{key}`. /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)`. - public enum codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code { + public enum CodesOfConductGetConductCode { public static let id: Swift.String = "codes-of-conduct/get-conduct-code" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/codes_of_conduct/{key}/GET/path`. @@ -351,27 +368,27 @@ public enum Operations { self.key = key } } - public var path: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Path + public var path: Operations.CodesOfConductGetConductCode.Input.Path /// - Remark: Generated from `#/paths/codes_of_conduct/{key}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Headers + public var headers: Operations.CodesOfConductGetConductCode.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Path, - headers: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Input.Headers = .init() + path: Operations.CodesOfConductGetConductCode.Input.Path, + headers: Operations.CodesOfConductGetConductCode.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -382,12 +399,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/codes_of_conduct/{key}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/codes_of_conduct/{key}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_of_hyphen_conduct) + case json(Components.Schemas.CodeOfConduct) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_of_hyphen_conduct { + public var json: Components.Schemas.CodeOfConduct { get throws { switch self { case let .json(body): @@ -397,12 +414,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output.Ok.Body + public var body: Operations.CodesOfConductGetConductCode.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output.Ok.Body) { + public init(body: Operations.CodesOfConductGetConductCode.Output.Ok.Body) { self.body = body } } @@ -411,12 +428,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output.Ok) + case ok(Operations.CodesOfConductGetConductCode.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codes_hyphen_of_hyphen_conduct_sol_get_hyphen_conduct_hyphen_code.Output.Ok { + public var ok: Operations.CodesOfConductGetConductCode.Output.Ok { get throws { switch self { case let .ok(response): @@ -434,12 +451,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -457,12 +474,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//codes_of_conduct/{key}/get(codes-of-conduct/get-conduct-code)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): From 1a1a5f8657c28cd65f2186df6d3d4609ac4943d3 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:01:02 -0700 Subject: [PATCH 10/46] Commit via running ake Sources/emojis --- Sources/emojis/Client.swift | 8 +++--- Sources/emojis/Types.swift | 57 ++++++++++++++++++++++++------------- 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/Sources/emojis/Client.swift b/Sources/emojis/Client.swift index cfe117f3d4..b7a5cb48da 100644 --- a/Sources/emojis/Client.swift +++ b/Sources/emojis/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /emojis`. /// - Remark: Generated from `#/paths//emojis/get(emojis/get)`. - public func emojis_sol_get(_ input: Operations.emojis_sol_get.Input) async throws -> Operations.emojis_sol_get.Output { + public func emojisGet(_ input: Operations.EmojisGet.Input) async throws -> Operations.EmojisGet.Output { try await client.send( input: input, - forOperation: Operations.emojis_sol_get.id, + forOperation: Operations.EmojisGet.id, serializer: { input in let path = try converter.renderedPath( template: "/emojis", @@ -68,7 +68,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.emojis_sol_get.Output.Ok.Body + let body: Operations.EmojisGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -78,7 +78,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.emojis_sol_get.Output.Ok.Body.jsonPayload.self, + Operations.EmojisGet.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/emojis/Types.swift b/Sources/emojis/Types.swift index e02b45e207..fa7369913e 100644 --- a/Sources/emojis/Types.swift +++ b/Sources/emojis/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /emojis`. /// - Remark: Generated from `#/paths//emojis/get(emojis/get)`. - func emojis_sol_get(_ input: Operations.emojis_sol_get.Input) async throws -> Operations.emojis_sol_get.Output + func emojisGet(_ input: Operations.EmojisGet.Input) async throws -> Operations.EmojisGet.Output } /// Convenience overloads for operation inputs. @@ -28,13 +28,22 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /emojis`. /// - Remark: Generated from `#/paths//emojis/get(emojis/get)`. - public func emojis_sol_get(headers: Operations.emojis_sol_get.Input.Headers = .init()) async throws -> Operations.emojis_sol_get.Output { - try await emojis_sol_get(Operations.emojis_sol_get.Input(headers: headers)) + public func emojisGet(headers: Operations.EmojisGet.Input.Headers = .init()) async throws -> Operations.EmojisGet.Output { + try await emojisGet(Operations.EmojisGet.Input(headers: headers)) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -53,8 +62,8 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } @@ -70,26 +79,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /emojis`. /// - Remark: Generated from `#/paths//emojis/get(emojis/get)`. - public enum emojis_sol_get { + public enum EmojisGet { public static let id: Swift.String = "emojis/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/emojis/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.emojis_sol_get.Input.Headers + public var headers: Operations.EmojisGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.emojis_sol_get.Input.Headers = .init()) { + public init(headers: Operations.EmojisGet.Input.Headers = .init()) { self.headers = headers } } @@ -98,10 +107,10 @@ public enum Operations { /// - Remark: Generated from `#/paths/emojis/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/emojis/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -116,12 +125,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/emojis/GET/responses/200/content/application\/json`. - case json(Operations.emojis_sol_get.Output.Ok.Body.jsonPayload) + case json(Operations.EmojisGet.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.emojis_sol_get.Output.Ok.Body.jsonPayload { + public var json: Operations.EmojisGet.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -131,12 +140,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.emojis_sol_get.Output.Ok.Body + public var body: Operations.EmojisGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.emojis_sol_get.Output.Ok.Body) { + public init(body: Operations.EmojisGet.Output.Ok.Body) { self.body = body } } @@ -145,12 +154,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//emojis/get(emojis/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.emojis_sol_get.Output.Ok) + case ok(Operations.EmojisGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.emojis_sol_get.Output.Ok { + public var ok: Operations.EmojisGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -168,12 +177,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//emojis/get(emojis/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//emojis/get(emojis/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): From 7a0e5732125714e141c8b3365af93c205994bc01 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:01:16 -0700 Subject: [PATCH 11/46] Commit via running ake Sources/dependabot --- Sources/dependabot/Client.swift | 270 +- Sources/dependabot/Types.swift | 4425 ++++++++++++++++--------------- 2 files changed, 2404 insertions(+), 2291 deletions(-) diff --git a/Sources/dependabot/Client.swift b/Sources/dependabot/Client.swift index 8fb44251c4..5da94b1066 100644 --- a/Sources/dependabot/Client.swift +++ b/Sources/dependabot/Client.swift @@ -50,10 +50,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/dependabot/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output { + public func dependabotListAlertsForEnterprise(_ input: Operations.DependabotListAlertsForEnterprise.Input) async throws -> Operations.DependabotListAlertsForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.DependabotListAlertsForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/dependabot/alerts", @@ -99,7 +99,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "epss_percentage", - value: input.query.epss_percentage + value: input.query.epssPercentage ) try converter.setQueryItemAsURI( in: &request, @@ -162,7 +162,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -174,7 +174,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.DependabotListAlertsForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -184,7 +184,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository].self, + [Components.Schemas.DependabotAlertWithRepository].self, from: responseBody, transforming: { value in .json(value) @@ -198,7 +198,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -208,7 +208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -220,7 +220,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -230,7 +230,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -242,7 +242,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -252,7 +252,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -284,10 +284,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { + public func dependabotListAlertsForOrg(_ input: Operations.DependabotListAlertsForOrg.Input) async throws -> Operations.DependabotListAlertsForOrg.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.id, + forOperation: Operations.DependabotListAlertsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/alerts", @@ -333,7 +333,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "epss_percentage", - value: input.query.epss_percentage + value: input.query.epssPercentage ) try converter.setQueryItemAsURI( in: &request, @@ -396,7 +396,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -408,7 +408,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.DependabotListAlertsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -418,7 +418,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository].self, + [Components.Schemas.DependabotAlertWithRepository].self, from: responseBody, transforming: { value in .json(value) @@ -432,7 +432,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -443,7 +443,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -451,10 +451,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -463,7 +463,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -473,7 +473,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -485,7 +485,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -495,7 +495,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -507,7 +507,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -517,7 +517,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -548,10 +548,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/get(dependabot/list-org-secrets)`. - public func dependabot_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output { + public func dependabotListOrgSecrets(_ input: Operations.DependabotListOrgSecrets.Input) async throws -> Operations.DependabotListOrgSecrets.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.id, + forOperation: Operations.DependabotListOrgSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets", @@ -569,7 +569,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -587,13 +587,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.DependabotListOrgSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + let body: Operations.DependabotListOrgSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -603,7 +603,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.DependabotListOrgSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -637,10 +637,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/public-key/get(dependabot/get-org-public-key)`. - public func dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { + public func dependabotGetOrgPublicKey(_ input: Operations.DependabotGetOrgPublicKey.Input) async throws -> Operations.DependabotGetOrgPublicKey.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.id, + forOperation: Operations.DependabotGetOrgPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/public-key", @@ -663,7 +663,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.DependabotGetOrgPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -673,7 +673,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependabot_hyphen_public_hyphen_key.self, + Components.Schemas.DependabotPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -703,16 +703,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/get(dependabot/get-org-secret)`. - public func dependabot_sol_get_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output { + public func dependabotGetOrgSecret(_ input: Operations.DependabotGetOrgSecret.Input) async throws -> Operations.DependabotGetOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotGetOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -730,7 +730,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.DependabotGetOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -740,7 +740,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_dependabot_hyphen_secret.self, + Components.Schemas.OrganizationDependabotSecret.self, from: responseBody, transforming: { value in .json(value) @@ -771,16 +771,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)`. - public func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { + public func dependabotCreateOrUpdateOrgSecret(_ input: Operations.DependabotCreateOrUpdateOrgSecret.Input) async throws -> Operations.DependabotCreateOrUpdateOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotCreateOrUpdateOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -807,7 +807,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + let body: Operations.DependabotCreateOrUpdateOrgSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -817,7 +817,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -849,16 +849,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)`. - public func dependabot_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Output { + public func dependabotDeleteOrgSecret(_ input: Operations.DependabotDeleteOrgSecret.Input) async throws -> Operations.DependabotDeleteOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotDeleteOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -893,16 +893,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/get(dependabot/list-selected-repos-for-org-secret)`. - public func dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func dependabotListSelectedReposForOrgSecret(_ input: Operations.DependabotListSelectedReposForOrgSecret.Input) async throws -> Operations.DependabotListSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotListSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -922,7 +922,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -934,7 +934,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -944,7 +944,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload.self, + Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -976,16 +976,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)`. - public func dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func dependabotSetSelectedReposForOrgSecret(_ input: Operations.DependabotSetSelectedReposForOrgSecret.Input) async throws -> Operations.DependabotSetSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotSetSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1030,17 +1030,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)`. - public func dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { + public func dependabotAddSelectedRepoToOrgSecret(_ input: Operations.DependabotAddSelectedRepoToOrgSecret.Input) async throws -> Operations.DependabotAddSelectedRepoToOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotAddSelectedRepoToOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1078,17 +1078,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)`. - public func dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { + public func dependabotRemoveSelectedRepoFromOrgSecret(_ input: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.id, + forOperation: Operations.DependabotRemoveSelectedRepoFromOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/dependabot/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1122,10 +1122,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { + public func dependabotListAlertsForRepo(_ input: Operations.DependabotListAlertsForRepo.Input) async throws -> Operations.DependabotListAlertsForRepo.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.id, + forOperation: Operations.DependabotListAlertsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/alerts", @@ -1179,7 +1179,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "epss_percentage", - value: input.query.epss_percentage + value: input.query.epssPercentage ) try converter.setQueryItemAsURI( in: &request, @@ -1221,7 +1221,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1261,7 +1261,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.DependabotListAlertsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1271,7 +1271,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.dependabot_hyphen_alert].self, + [Components.Schemas.DependabotAlert].self, from: responseBody, transforming: { value in .json(value) @@ -1285,7 +1285,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1296,7 +1296,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1304,10 +1304,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1316,7 +1316,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1326,7 +1326,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1338,7 +1338,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1348,7 +1348,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1360,7 +1360,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1370,7 +1370,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -1398,17 +1398,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)`. - public func dependabot_sol_get_hyphen_alert(_ input: Operations.dependabot_sol_get_hyphen_alert.Input) async throws -> Operations.dependabot_sol_get_hyphen_alert.Output { + public func dependabotGetAlert(_ input: Operations.DependabotGetAlert.Input) async throws -> Operations.DependabotGetAlert.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_get_hyphen_alert.id, + forOperation: Operations.DependabotGetAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1426,7 +1426,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_get_hyphen_alert.Output.Ok.Body + let body: Operations.DependabotGetAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1436,7 +1436,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependabot_hyphen_alert.self, + Components.Schemas.DependabotAlert.self, from: responseBody, transforming: { value in .json(value) @@ -1450,7 +1450,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1460,7 +1460,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1472,7 +1472,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1482,7 +1482,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1512,17 +1512,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)`. - public func dependabot_sol_update_hyphen_alert(_ input: Operations.dependabot_sol_update_hyphen_alert.Input) async throws -> Operations.dependabot_sol_update_hyphen_alert.Output { + public func dependabotUpdateAlert(_ input: Operations.DependabotUpdateAlert.Input) async throws -> Operations.DependabotUpdateAlert.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_update_hyphen_alert.id, + forOperation: Operations.DependabotUpdateAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1549,7 +1549,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_update_hyphen_alert.Output.Ok.Body + let body: Operations.DependabotUpdateAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1559,7 +1559,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependabot_hyphen_alert.self, + Components.Schemas.DependabotAlert.self, from: responseBody, transforming: { value in .json(value) @@ -1571,7 +1571,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1582,7 +1582,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1590,10 +1590,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1602,7 +1602,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1612,7 +1612,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1624,7 +1624,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1634,7 +1634,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1646,7 +1646,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1656,7 +1656,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1668,7 +1668,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1678,7 +1678,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -1709,10 +1709,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/get(dependabot/list-repo-secrets)`. - public func dependabot_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output { + public func dependabotListRepoSecrets(_ input: Operations.DependabotListRepoSecrets.Input) async throws -> Operations.DependabotListRepoSecrets.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.id, + forOperation: Operations.DependabotListRepoSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/secrets", @@ -1731,7 +1731,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1749,13 +1749,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.DependabotListRepoSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + let body: Operations.DependabotListRepoSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1765,7 +1765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.DependabotListRepoSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1800,10 +1800,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/public-key/get(dependabot/get-repo-public-key)`. - public func dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { + public func dependabotGetRepoPublicKey(_ input: Operations.DependabotGetRepoPublicKey.Input) async throws -> Operations.DependabotGetRepoPublicKey.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.id, + forOperation: Operations.DependabotGetRepoPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/secrets/public-key", @@ -1827,7 +1827,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.DependabotGetRepoPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1837,7 +1837,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependabot_hyphen_public_hyphen_key.self, + Components.Schemas.DependabotPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -1867,17 +1867,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/get(dependabot/get-repo-secret)`. - public func dependabot_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output { + public func dependabotGetRepoSecret(_ input: Operations.DependabotGetRepoSecret.Input) async throws -> Operations.DependabotGetRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.id, + forOperation: Operations.DependabotGetRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1895,7 +1895,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + let body: Operations.DependabotGetRepoSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1905,7 +1905,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependabot_hyphen_secret.self, + Components.Schemas.DependabotSecret.self, from: responseBody, transforming: { value in .json(value) @@ -1936,17 +1936,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)`. - public func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { + public func dependabotCreateOrUpdateRepoSecret(_ input: Operations.DependabotCreateOrUpdateRepoSecret.Input) async throws -> Operations.DependabotCreateOrUpdateRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.id, + forOperation: Operations.DependabotCreateOrUpdateRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1973,7 +1973,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + let body: Operations.DependabotCreateOrUpdateRepoSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1983,7 +1983,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -2015,17 +2015,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)`. - public func dependabot_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Output { + public func dependabotDeleteRepoSecret(_ input: Operations.DependabotDeleteRepoSecret.Input) async throws -> Operations.DependabotDeleteRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.id, + forOperation: Operations.DependabotDeleteRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependabot/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index ecb2dd39f6..80a7b8871c 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -23,7 +23,7 @@ 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 dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output + func dependabotListAlertsForEnterprise(_ input: Operations.DependabotListAlertsForEnterprise.Input) async throws -> Operations.DependabotListAlertsForEnterprise.Output /// List Dependabot alerts for an organization /// /// Lists Dependabot alerts for an organization. @@ -34,7 +34,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)`. - func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output + func dependabotListAlertsForOrg(_ input: Operations.DependabotListAlertsForOrg.Input) async throws -> Operations.DependabotListAlertsForOrg.Output /// List organization secrets /// /// Lists all secrets available in an organization without revealing their @@ -44,7 +44,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/get(dependabot/list-org-secrets)`. - func dependabot_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output + func dependabotListOrgSecrets(_ input: Operations.DependabotListOrgSecrets.Input) async throws -> Operations.DependabotListOrgSecrets.Output /// Get an organization public key /// /// Gets your public key, which you need to encrypt secrets. You need to @@ -54,7 +54,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/public-key/get(dependabot/get-org-public-key)`. - func dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output + func dependabotGetOrgPublicKey(_ input: Operations.DependabotGetOrgPublicKey.Input) async throws -> Operations.DependabotGetOrgPublicKey.Output /// Get an organization secret /// /// Gets a single organization secret without revealing its encrypted value. @@ -63,7 +63,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/get(dependabot/get-org-secret)`. - func dependabot_sol_get_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output + func dependabotGetOrgSecret(_ input: Operations.DependabotGetOrgSecret.Input) async throws -> Operations.DependabotGetOrgSecret.Output /// Create or update an organization secret /// /// Creates or updates an organization secret with an encrypted value. Encrypt your secret using @@ -73,7 +73,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)`. - func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output + func dependabotCreateOrUpdateOrgSecret(_ input: Operations.DependabotCreateOrUpdateOrgSecret.Input) async throws -> Operations.DependabotCreateOrUpdateOrgSecret.Output /// Delete an organization secret /// /// Deletes a secret in an organization using the secret name. @@ -82,7 +82,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)`. - func dependabot_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Output + func dependabotDeleteOrgSecret(_ input: Operations.DependabotDeleteOrgSecret.Input) async throws -> Operations.DependabotDeleteOrgSecret.Output /// List selected repositories for an organization secret /// /// Lists all repositories that have been selected when the `visibility` @@ -92,7 +92,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/get(dependabot/list-selected-repos-for-org-secret)`. - func dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func dependabotListSelectedReposForOrgSecret(_ input: Operations.DependabotListSelectedReposForOrgSecret.Input) async throws -> Operations.DependabotListSelectedReposForOrgSecret.Output /// Set selected repositories for an organization secret /// /// Replaces all repositories for an organization secret when the `visibility` @@ -103,7 +103,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)`. - func dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func dependabotSetSelectedReposForOrgSecret(_ input: Operations.DependabotSetSelectedReposForOrgSecret.Input) async throws -> Operations.DependabotSetSelectedReposForOrgSecret.Output /// Add selected repository to an organization secret /// /// Adds a repository to an organization secret when the `visibility` for @@ -114,7 +114,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)`. - func dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output + func dependabotAddSelectedRepoToOrgSecret(_ input: Operations.DependabotAddSelectedRepoToOrgSecret.Input) async throws -> Operations.DependabotAddSelectedRepoToOrgSecret.Output /// Remove selected repository from an organization secret /// /// Removes a repository from an organization secret when the `visibility` @@ -125,21 +125,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)`. - func dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output + func dependabotRemoveSelectedRepoFromOrgSecret(_ input: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output /// List Dependabot alerts for a repository /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)`. - func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output + func dependabotListAlertsForRepo(_ input: Operations.DependabotListAlertsForRepo.Input) async throws -> Operations.DependabotListAlertsForRepo.Output /// Get a Dependabot alert /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)`. - func dependabot_sol_get_hyphen_alert(_ input: Operations.dependabot_sol_get_hyphen_alert.Input) async throws -> Operations.dependabot_sol_get_hyphen_alert.Output + func dependabotGetAlert(_ input: Operations.DependabotGetAlert.Input) async throws -> Operations.DependabotGetAlert.Output /// Update a Dependabot alert /// /// The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see "[Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)." @@ -148,7 +148,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)`. - func dependabot_sol_update_hyphen_alert(_ input: Operations.dependabot_sol_update_hyphen_alert.Input) async throws -> Operations.dependabot_sol_update_hyphen_alert.Output + func dependabotUpdateAlert(_ input: Operations.DependabotUpdateAlert.Input) async throws -> Operations.DependabotUpdateAlert.Output /// List repository secrets /// /// Lists all secrets available in a repository without revealing their encrypted @@ -158,7 +158,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/get(dependabot/list-repo-secrets)`. - func dependabot_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output + func dependabotListRepoSecrets(_ input: Operations.DependabotListRepoSecrets.Input) async throws -> Operations.DependabotListRepoSecrets.Output /// Get a repository public key /// /// Gets your public key, which you need to encrypt secrets. You need to @@ -169,7 +169,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/public-key/get(dependabot/get-repo-public-key)`. - func dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output + func dependabotGetRepoPublicKey(_ input: Operations.DependabotGetRepoPublicKey.Input) async throws -> Operations.DependabotGetRepoPublicKey.Output /// Get a repository secret /// /// Gets a single repository secret without revealing its encrypted value. @@ -178,7 +178,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/get(dependabot/get-repo-secret)`. - func dependabot_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output + func dependabotGetRepoSecret(_ input: Operations.DependabotGetRepoSecret.Input) async throws -> Operations.DependabotGetRepoSecret.Output /// Create or update a repository secret /// /// Creates or updates a repository secret with an encrypted value. Encrypt your secret using @@ -188,7 +188,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)`. - func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output + func dependabotCreateOrUpdateRepoSecret(_ input: Operations.DependabotCreateOrUpdateRepoSecret.Input) async throws -> Operations.DependabotCreateOrUpdateRepoSecret.Output /// Delete a repository secret /// /// Deletes a secret in a repository using the secret name. @@ -197,7 +197,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)`. - func dependabot_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Output + func dependabotDeleteRepoSecret(_ input: Operations.DependabotDeleteRepoSecret.Input) async throws -> Operations.DependabotDeleteRepoSecret.Output } /// Convenience overloads for operation inputs. @@ -214,12 +214,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/dependabot/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output { - try await dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input( + public func dependabotListAlertsForEnterprise( + path: Operations.DependabotListAlertsForEnterprise.Input.Path, + query: Operations.DependabotListAlertsForEnterprise.Input.Query = .init(), + headers: Operations.DependabotListAlertsForEnterprise.Input.Headers = .init() + ) async throws -> Operations.DependabotListAlertsForEnterprise.Output { + try await dependabotListAlertsForEnterprise(Operations.DependabotListAlertsForEnterprise.Input( path: path, query: query, headers: headers @@ -235,12 +235,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { - try await dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input( + public func dependabotListAlertsForOrg( + path: Operations.DependabotListAlertsForOrg.Input.Path, + query: Operations.DependabotListAlertsForOrg.Input.Query = .init(), + headers: Operations.DependabotListAlertsForOrg.Input.Headers = .init() + ) async throws -> Operations.DependabotListAlertsForOrg.Output { + try await dependabotListAlertsForOrg(Operations.DependabotListAlertsForOrg.Input( path: path, query: query, headers: headers @@ -255,12 +255,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/get(dependabot/list-org-secrets)`. - public func dependabot_sol_list_hyphen_org_hyphen_secrets( - path: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output { - try await dependabot_sol_list_hyphen_org_hyphen_secrets(Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input( + public func dependabotListOrgSecrets( + path: Operations.DependabotListOrgSecrets.Input.Path, + query: Operations.DependabotListOrgSecrets.Input.Query = .init(), + headers: Operations.DependabotListOrgSecrets.Input.Headers = .init() + ) async throws -> Operations.DependabotListOrgSecrets.Output { + try await dependabotListOrgSecrets(Operations.DependabotListOrgSecrets.Input( path: path, query: query, headers: headers @@ -275,11 +275,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/public-key/get(dependabot/get-org-public-key)`. - public func dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key( - path: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { - try await dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key(Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input( + public func dependabotGetOrgPublicKey( + path: Operations.DependabotGetOrgPublicKey.Input.Path, + headers: Operations.DependabotGetOrgPublicKey.Input.Headers = .init() + ) async throws -> Operations.DependabotGetOrgPublicKey.Output { + try await dependabotGetOrgPublicKey(Operations.DependabotGetOrgPublicKey.Input( path: path, headers: headers )) @@ -292,11 +292,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/get(dependabot/get-org-secret)`. - public func dependabot_sol_get_hyphen_org_hyphen_secret( - path: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_get_hyphen_org_hyphen_secret(Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input( + public func dependabotGetOrgSecret( + path: Operations.DependabotGetOrgSecret.Input.Path, + headers: Operations.DependabotGetOrgSecret.Input.Headers = .init() + ) async throws -> Operations.DependabotGetOrgSecret.Output { + try await dependabotGetOrgSecret(Operations.DependabotGetOrgSecret.Input( path: path, headers: headers )) @@ -310,12 +310,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)`. - public func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret( - path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input( + public func dependabotCreateOrUpdateOrgSecret( + path: Operations.DependabotCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.DependabotCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body + ) async throws -> Operations.DependabotCreateOrUpdateOrgSecret.Output { + try await dependabotCreateOrUpdateOrgSecret(Operations.DependabotCreateOrUpdateOrgSecret.Input( path: path, headers: headers, body: body @@ -329,8 +329,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)`. - public func dependabot_sol_delete_hyphen_org_hyphen_secret(path: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_delete_hyphen_org_hyphen_secret(Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input(path: path)) + public func dependabotDeleteOrgSecret(path: Operations.DependabotDeleteOrgSecret.Input.Path) async throws -> Operations.DependabotDeleteOrgSecret.Output { + try await dependabotDeleteOrgSecret(Operations.DependabotDeleteOrgSecret.Input(path: path)) } /// List selected repositories for an organization secret /// @@ -341,12 +341,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/get(dependabot/list-selected-repos-for-org-secret)`. - public func dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func dependabotListSelectedReposForOrgSecret( + path: Operations.DependabotListSelectedReposForOrgSecret.Input.Path, + query: Operations.DependabotListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.DependabotListSelectedReposForOrgSecret.Input.Headers = .init() + ) async throws -> Operations.DependabotListSelectedReposForOrgSecret.Output { + try await dependabotListSelectedReposForOrgSecret(Operations.DependabotListSelectedReposForOrgSecret.Input( path: path, query: query, headers: headers @@ -362,11 +362,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)`. - public func dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - body: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func dependabotSetSelectedReposForOrgSecret( + path: Operations.DependabotSetSelectedReposForOrgSecret.Input.Path, + body: Operations.DependabotSetSelectedReposForOrgSecret.Input.Body + ) async throws -> Operations.DependabotSetSelectedReposForOrgSecret.Output { + try await dependabotSetSelectedReposForOrgSecret(Operations.DependabotSetSelectedReposForOrgSecret.Input( path: path, body: body )) @@ -381,8 +381,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)`. - public func dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(path: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input(path: path)) + public func dependabotAddSelectedRepoToOrgSecret(path: Operations.DependabotAddSelectedRepoToOrgSecret.Input.Path) async throws -> Operations.DependabotAddSelectedRepoToOrgSecret.Output { + try await dependabotAddSelectedRepoToOrgSecret(Operations.DependabotAddSelectedRepoToOrgSecret.Input(path: path)) } /// Remove selected repository from an organization secret /// @@ -394,8 +394,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)`. - public func dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(path: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path) async throws -> Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { - try await dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input(path: path)) + public func dependabotRemoveSelectedRepoFromOrgSecret(path: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input.Path) async throws -> Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output { + try await dependabotRemoveSelectedRepoFromOrgSecret(Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input(path: path)) } /// List Dependabot alerts for a repository /// @@ -403,12 +403,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)`. - public func dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { - try await dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input( + public func dependabotListAlertsForRepo( + path: Operations.DependabotListAlertsForRepo.Input.Path, + query: Operations.DependabotListAlertsForRepo.Input.Query = .init(), + headers: Operations.DependabotListAlertsForRepo.Input.Headers = .init() + ) async throws -> Operations.DependabotListAlertsForRepo.Output { + try await dependabotListAlertsForRepo(Operations.DependabotListAlertsForRepo.Input( path: path, query: query, headers: headers @@ -420,11 +420,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)`. - public func dependabot_sol_get_hyphen_alert( - path: Operations.dependabot_sol_get_hyphen_alert.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_alert.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_get_hyphen_alert.Output { - try await dependabot_sol_get_hyphen_alert(Operations.dependabot_sol_get_hyphen_alert.Input( + public func dependabotGetAlert( + path: Operations.DependabotGetAlert.Input.Path, + headers: Operations.DependabotGetAlert.Input.Headers = .init() + ) async throws -> Operations.DependabotGetAlert.Output { + try await dependabotGetAlert(Operations.DependabotGetAlert.Input( path: path, headers: headers )) @@ -437,12 +437,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)`. - public func dependabot_sol_update_hyphen_alert( - path: Operations.dependabot_sol_update_hyphen_alert.Input.Path, - headers: Operations.dependabot_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.dependabot_sol_update_hyphen_alert.Input.Body - ) async throws -> Operations.dependabot_sol_update_hyphen_alert.Output { - try await dependabot_sol_update_hyphen_alert(Operations.dependabot_sol_update_hyphen_alert.Input( + public func dependabotUpdateAlert( + path: Operations.DependabotUpdateAlert.Input.Path, + headers: Operations.DependabotUpdateAlert.Input.Headers = .init(), + body: Operations.DependabotUpdateAlert.Input.Body + ) async throws -> Operations.DependabotUpdateAlert.Output { + try await dependabotUpdateAlert(Operations.DependabotUpdateAlert.Input( path: path, headers: headers, body: body @@ -457,12 +457,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/get(dependabot/list-repo-secrets)`. - public func dependabot_sol_list_hyphen_repo_hyphen_secrets( - path: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output { - try await dependabot_sol_list_hyphen_repo_hyphen_secrets(Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input( + public func dependabotListRepoSecrets( + path: Operations.DependabotListRepoSecrets.Input.Path, + query: Operations.DependabotListRepoSecrets.Input.Query = .init(), + headers: Operations.DependabotListRepoSecrets.Input.Headers = .init() + ) async throws -> Operations.DependabotListRepoSecrets.Output { + try await dependabotListRepoSecrets(Operations.DependabotListRepoSecrets.Input( path: path, query: query, headers: headers @@ -478,11 +478,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/public-key/get(dependabot/get-repo-public-key)`. - public func dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key( - path: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { - try await dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key(Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input( + public func dependabotGetRepoPublicKey( + path: Operations.DependabotGetRepoPublicKey.Input.Path, + headers: Operations.DependabotGetRepoPublicKey.Input.Headers = .init() + ) async throws -> Operations.DependabotGetRepoPublicKey.Output { + try await dependabotGetRepoPublicKey(Operations.DependabotGetRepoPublicKey.Input( path: path, headers: headers )) @@ -495,11 +495,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/get(dependabot/get-repo-secret)`. - public func dependabot_sol_get_hyphen_repo_hyphen_secret( - path: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output { - try await dependabot_sol_get_hyphen_repo_hyphen_secret(Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input( + public func dependabotGetRepoSecret( + path: Operations.DependabotGetRepoSecret.Input.Path, + headers: Operations.DependabotGetRepoSecret.Input.Headers = .init() + ) async throws -> Operations.DependabotGetRepoSecret.Output { + try await dependabotGetRepoSecret(Operations.DependabotGetRepoSecret.Input( path: path, headers: headers )) @@ -513,12 +513,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)`. - public func dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret( - path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body - ) async throws -> Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { - try await dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input( + public func dependabotCreateOrUpdateRepoSecret( + path: Operations.DependabotCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.DependabotCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.DependabotCreateOrUpdateRepoSecret.Input.Body + ) async throws -> Operations.DependabotCreateOrUpdateRepoSecret.Output { + try await dependabotCreateOrUpdateRepoSecret(Operations.DependabotCreateOrUpdateRepoSecret.Input( path: path, headers: headers, body: body @@ -532,13 +532,22 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)`. - public func dependabot_sol_delete_hyphen_repo_hyphen_secret(path: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input.Path) async throws -> Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Output { - try await dependabot_sol_delete_hyphen_repo_hyphen_secret(Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input(path: path)) + public func dependabotDeleteRepoSecret(path: Operations.DependabotDeleteRepoSecret.Input.Path) async throws -> Operations.DependabotDeleteRepoSecret.Output { + try await dependabotDeleteRepoSecret(Operations.DependabotDeleteRepoSecret.Input(path: path)) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -552,91 +561,91 @@ public enum Components { /// Types generated from the `#/components/schemas` section of the OpenAPI document. public enum Schemas { /// - Remark: Generated from `#/components/schemas/cvss-severities`. - public struct cvss_hyphen_severities: Codable, Hashable, Sendable { + public struct CvssSeverities: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. - public struct cvss_v3Payload: Codable, Hashable, Sendable { + public struct CvssV3Payload: Codable, Hashable, Sendable { /// The CVSS 3 vector string. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS 3 score. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`. public var score: Swift.Double? - /// Creates a new `cvss_v3Payload`. + /// Creates a new `CvssV3Payload`. /// /// - Parameters: - /// - vector_string: The CVSS 3 vector string. + /// - vectorString: The CVSS 3 vector string. /// - score: The CVSS 3 score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. - public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? + public var cvssV3: Components.Schemas.CvssSeverities.CvssV3Payload? /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. - public struct cvss_v4Payload: Codable, Hashable, Sendable { + public struct CvssV4Payload: Codable, Hashable, Sendable { /// The CVSS 4 vector string. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS 4 score. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`. public var score: Swift.Double? - /// Creates a new `cvss_v4Payload`. + /// Creates a new `CvssV4Payload`. /// /// - Parameters: - /// - vector_string: The CVSS 4 vector string. + /// - vectorString: The CVSS 4 vector string. /// - score: The CVSS 4 score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. - public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? - /// Creates a new `cvss_hyphen_severities`. + public var cvssV4: Components.Schemas.CvssSeverities.CvssV4Payload? + /// Creates a new `CvssSeverities`. /// /// - Parameters: - /// - cvss_v3: - /// - cvss_v4: + /// - cvssV3: + /// - cvssV4: public init( - cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil, - cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil + cvssV3: Components.Schemas.CvssSeverities.CvssV3Payload? = nil, + cvssV4: Components.Schemas.CvssSeverities.CvssV4Payload? = nil ) { - self.cvss_v3 = cvss_v3 - self.cvss_v4 = cvss_v4 + self.cvssV3 = cvssV3 + self.cvssV4 = cvssV4 } public enum CodingKeys: String, CodingKey { - case cvss_v3 - case cvss_v4 + case cvssV3 = "cvss_v3" + case cvssV4 = "cvss_v4" } } /// The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). /// /// - Remark: Generated from `#/components/schemas/security-advisory-epss`. - public struct security_hyphen_advisory_hyphen_epss: Codable, Hashable, Sendable { + public struct SecurityAdvisoryEpss: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-advisory-epss/percentage`. public var percentage: Swift.Double? /// - Remark: Generated from `#/components/schemas/security-advisory-epss/percentile`. public var percentile: Swift.Double? - /// Creates a new `security_hyphen_advisory_hyphen_epss`. + /// Creates a new `SecurityAdvisoryEpss`. /// /// - Parameters: /// - percentage: @@ -656,7 +665,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -666,171 +675,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -838,42 +847,42 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -882,25 +891,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -908,7 +917,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -918,7 +927,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -928,142 +937,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -1073,40 +1082,40 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// A GitHub repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository`. - public struct simple_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/id`. @@ -1114,7 +1123,7 @@ public enum Components { /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/name`. @@ -1122,9 +1131,9 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/simple-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-repository/private`. @@ -1132,7 +1141,7 @@ public enum Components { /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The repository description. /// /// - Remark: Generated from `#/components/schemas/simple-repository/description`. @@ -1148,348 +1157,348 @@ public enum Components { /// A template for the API URL to download the repository as an archive. /// /// - Remark: Generated from `#/components/schemas/simple-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// A template for the API URL to list the available assignees for issues in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git blob in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// A template for the API URL to get information about branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// A template for the API URL to get information about collaborators of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// A template for the API URL to get information about comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// A template for the API URL to get information about commits on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// A template for the API URL to compare two commits or refs. /// /// - Remark: Generated from `#/components/schemas/simple-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// A template for the API URL to get the contents of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// A template for the API URL to list the contributors to the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// The API URL to list the deployments of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// The API URL to list the downloads on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// The API URL to list the events of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// The API URL to list the forks of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// A template for the API URL to get information about Git commits of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// A template for the API URL to get information about Git refs of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// A template for the API URL to get information about Git tags of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// A template for the API URL to get information about issue comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// A template for the API URL to get information about issue events on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// A template for the API URL to get information about issues on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// A template for the API URL to get information about deploy keys on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// A template for the API URL to get information about labels of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// The API URL to get information about the languages of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// The API URL to merge branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// A template for the API URL to get information about milestones of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// A template for the API URL to get information about notifications on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// A template for the API URL to get information about pull requests on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// A template for the API URL to get information about releases on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// The API URL to list the stargazers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// A template for the API URL to get information about statuses of a commit. /// /// - Remark: Generated from `#/components/schemas/simple-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// The API URL to list the subscribers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// The API URL to subscribe to notifications for this repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// The API URL to get information about tags on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// The API URL to list the teams on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git tree of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// The API URL to list the hooks on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/hooks_url`. - public var hooks_url: Swift.String - /// Creates a new `simple_hyphen_repository`. + public var hooksUrl: Swift.String + /// Creates a new `SimpleRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - node_id: The GraphQL identifier of the repository. + /// - nodeId: The GraphQL identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - owner: /// - _private: Whether the repository is private. - /// - html_url: The URL to view the repository on GitHub.com. + /// - htmlUrl: The URL to view the repository on GitHub.com. /// - description: The repository description. /// - fork: Whether the repository is a fork. /// - url: The URL to get more information about the repository from the GitHub API. - /// - archive_url: A template for the API URL to download the repository as an archive. - /// - assignees_url: A template for the API URL to list the available assignees for issues in the repository. - /// - blobs_url: A template for the API URL to create or retrieve a raw Git blob in the repository. - /// - branches_url: A template for the API URL to get information about branches in the repository. - /// - collaborators_url: A template for the API URL to get information about collaborators of the repository. - /// - comments_url: A template for the API URL to get information about comments on the repository. - /// - commits_url: A template for the API URL to get information about commits on the repository. - /// - compare_url: A template for the API URL to compare two commits or refs. - /// - contents_url: A template for the API URL to get the contents of the repository. - /// - contributors_url: A template for the API URL to list the contributors to the repository. - /// - deployments_url: The API URL to list the deployments of the repository. - /// - downloads_url: The API URL to list the downloads on the repository. - /// - events_url: The API URL to list the events of the repository. - /// - forks_url: The API URL to list the forks of the repository. - /// - git_commits_url: A template for the API URL to get information about Git commits of the repository. - /// - git_refs_url: A template for the API URL to get information about Git refs of the repository. - /// - git_tags_url: A template for the API URL to get information about Git tags of the repository. - /// - issue_comment_url: A template for the API URL to get information about issue comments on the repository. - /// - issue_events_url: A template for the API URL to get information about issue events on the repository. - /// - issues_url: A template for the API URL to get information about issues on the repository. - /// - keys_url: A template for the API URL to get information about deploy keys on the repository. - /// - labels_url: A template for the API URL to get information about labels of the repository. - /// - languages_url: The API URL to get information about the languages of the repository. - /// - merges_url: The API URL to merge branches in the repository. - /// - milestones_url: A template for the API URL to get information about milestones of the repository. - /// - notifications_url: A template for the API URL to get information about notifications on the repository. - /// - pulls_url: A template for the API URL to get information about pull requests on the repository. - /// - releases_url: A template for the API URL to get information about releases on the repository. - /// - stargazers_url: The API URL to list the stargazers on the repository. - /// - statuses_url: A template for the API URL to get information about statuses of a commit. - /// - subscribers_url: The API URL to list the subscribers on the repository. - /// - subscription_url: The API URL to subscribe to notifications for this repository. - /// - tags_url: The API URL to get information about tags on the repository. - /// - teams_url: The API URL to list the teams on the repository. - /// - trees_url: A template for the API URL to create or retrieve a raw Git tree of the repository. - /// - hooks_url: The API URL to list the hooks on the repository. + /// - archiveUrl: A template for the API URL to download the repository as an archive. + /// - assigneesUrl: A template for the API URL to list the available assignees for issues in the repository. + /// - blobsUrl: A template for the API URL to create or retrieve a raw Git blob in the repository. + /// - branchesUrl: A template for the API URL to get information about branches in the repository. + /// - collaboratorsUrl: A template for the API URL to get information about collaborators of the repository. + /// - commentsUrl: A template for the API URL to get information about comments on the repository. + /// - commitsUrl: A template for the API URL to get information about commits on the repository. + /// - compareUrl: A template for the API URL to compare two commits or refs. + /// - contentsUrl: A template for the API URL to get the contents of the repository. + /// - contributorsUrl: A template for the API URL to list the contributors to the repository. + /// - deploymentsUrl: The API URL to list the deployments of the repository. + /// - downloadsUrl: The API URL to list the downloads on the repository. + /// - eventsUrl: The API URL to list the events of the repository. + /// - forksUrl: The API URL to list the forks of the repository. + /// - gitCommitsUrl: A template for the API URL to get information about Git commits of the repository. + /// - gitRefsUrl: A template for the API URL to get information about Git refs of the repository. + /// - gitTagsUrl: A template for the API URL to get information about Git tags of the repository. + /// - issueCommentUrl: A template for the API URL to get information about issue comments on the repository. + /// - issueEventsUrl: A template for the API URL to get information about issue events on the repository. + /// - issuesUrl: A template for the API URL to get information about issues on the repository. + /// - keysUrl: A template for the API URL to get information about deploy keys on the repository. + /// - labelsUrl: A template for the API URL to get information about labels of the repository. + /// - languagesUrl: The API URL to get information about the languages of the repository. + /// - mergesUrl: The API URL to merge branches in the repository. + /// - milestonesUrl: A template for the API URL to get information about milestones of the repository. + /// - notificationsUrl: A template for the API URL to get information about notifications on the repository. + /// - pullsUrl: A template for the API URL to get information about pull requests on the repository. + /// - releasesUrl: A template for the API URL to get information about releases on the repository. + /// - stargazersUrl: The API URL to list the stargazers on the repository. + /// - statusesUrl: A template for the API URL to get information about statuses of a commit. + /// - subscribersUrl: The API URL to list the subscribers on the repository. + /// - subscriptionUrl: The API URL to subscribe to notifications for this repository. + /// - tagsUrl: The API URL to get information about tags on the repository. + /// - teamsUrl: The API URL to list the teams on the repository. + /// - treesUrl: A template for the API URL to create or retrieve a raw Git tree of the repository. + /// - hooksUrl: The API URL to list the hooks on the repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - hooks_url: Swift.String + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + hooksUrl: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.hooks_url = hooks_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.hooksUrl = hooksUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case hooks_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case hooksUrl = "hooks_url" } } /// The security alert number. /// /// - Remark: Generated from `#/components/schemas/alert-number`. - public typealias alert_hyphen_number = Swift.Int + public typealias AlertNumber = Swift.Int /// Details for the vulnerable package. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-package`. - public struct dependabot_hyphen_alert_hyphen_package: Codable, Hashable, Sendable { + public struct DependabotAlertPackage: Codable, Hashable, Sendable { /// The package's language or package management ecosystem. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-package/ecosystem`. @@ -1498,7 +1507,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-package/name`. public var name: Swift.String - /// Creates a new `dependabot_hyphen_alert_hyphen_package`. + /// Creates a new `DependabotAlertPackage`. /// /// - Parameters: /// - ecosystem: The package's language or package management ecosystem. @@ -1516,11 +1525,11 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - ecosystem = try container.decode( + self.ecosystem = try container.decode( Swift.String.self, forKey: .ecosystem ) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) @@ -1533,13 +1542,13 @@ public enum Components { /// Details pertaining to one vulnerable version range for the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability`. - public struct dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability: Codable, Hashable, Sendable { + public struct DependabotAlertSecurityVulnerability: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/package`. - public var package: Components.Schemas.dependabot_hyphen_alert_hyphen_package + public var package: Components.Schemas.DependabotAlertPackage /// The severity of the vulnerability. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case low = "low" case medium = "medium" case high = "high" @@ -1548,20 +1557,20 @@ public enum Components { /// The severity of the vulnerability. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/severity`. - public var severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.severityPayload + public var severity: Components.Schemas.DependabotAlertSecurityVulnerability.SeverityPayload /// Conditions that identify vulnerable versions of this vulnerability's package. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String + public var vulnerableVersionRange: Swift.String /// Details pertaining to the package version that patches this vulnerability. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/first_patched_version`. - public struct first_patched_versionPayload: Codable, Hashable, Sendable { + public struct FirstPatchedVersionPayload: Codable, Hashable, Sendable { /// The package version that patches this vulnerability. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/first_patched_version/identifier`. public var identifier: Swift.String - /// Creates a new `first_patched_versionPayload`. + /// Creates a new `FirstPatchedVersionPayload`. /// /// - Parameters: /// - identifier: The package version that patches this vulnerability. @@ -1573,7 +1582,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - identifier = try container.decode( + self.identifier = try container.decode( Swift.String.self, forKey: .identifier ) @@ -1585,48 +1594,48 @@ public enum Components { /// Details pertaining to the package version that patches this vulnerability. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-vulnerability/first_patched_version`. - public var first_patched_version: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.first_patched_versionPayload? - /// Creates a new `dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability`. + public var firstPatchedVersion: Components.Schemas.DependabotAlertSecurityVulnerability.FirstPatchedVersionPayload? + /// Creates a new `DependabotAlertSecurityVulnerability`. /// /// - Parameters: /// - package: /// - severity: The severity of the vulnerability. - /// - vulnerable_version_range: Conditions that identify vulnerable versions of this vulnerability's package. - /// - first_patched_version: Details pertaining to the package version that patches this vulnerability. + /// - vulnerableVersionRange: Conditions that identify vulnerable versions of this vulnerability's package. + /// - firstPatchedVersion: Details pertaining to the package version that patches this vulnerability. public init( - package: Components.Schemas.dependabot_hyphen_alert_hyphen_package, - severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.severityPayload, - vulnerable_version_range: Swift.String, - first_patched_version: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.first_patched_versionPayload? = nil + package: Components.Schemas.DependabotAlertPackage, + severity: Components.Schemas.DependabotAlertSecurityVulnerability.SeverityPayload, + vulnerableVersionRange: Swift.String, + firstPatchedVersion: Components.Schemas.DependabotAlertSecurityVulnerability.FirstPatchedVersionPayload? = nil ) { self.package = package self.severity = severity - self.vulnerable_version_range = vulnerable_version_range - self.first_patched_version = first_patched_version + self.vulnerableVersionRange = vulnerableVersionRange + self.firstPatchedVersion = firstPatchedVersion } public enum CodingKeys: String, CodingKey { case package case severity - case vulnerable_version_range - case first_patched_version + case vulnerableVersionRange = "vulnerable_version_range" + case firstPatchedVersion = "first_patched_version" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_package.self, + self.package = try container.decode( + Components.Schemas.DependabotAlertPackage.self, forKey: .package ) - severity = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.severityPayload.self, + self.severity = try container.decode( + Components.Schemas.DependabotAlertSecurityVulnerability.SeverityPayload.self, forKey: .severity ) - vulnerable_version_range = try container.decode( + self.vulnerableVersionRange = try container.decode( Swift.String.self, - forKey: .vulnerable_version_range + forKey: .vulnerableVersionRange ) - first_patched_version = try container.decodeIfPresent( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.first_patched_versionPayload.self, - forKey: .first_patched_version + self.firstPatchedVersion = try container.decodeIfPresent( + Components.Schemas.DependabotAlertSecurityVulnerability.FirstPatchedVersionPayload.self, + forKey: .firstPatchedVersion ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "package", @@ -1639,15 +1648,15 @@ public enum Components { /// Details for the GitHub Security Advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory`. - public struct dependabot_hyphen_alert_hyphen_security_hyphen_advisory: Codable, Hashable, Sendable { + public struct DependabotAlertSecurityAdvisory: Codable, Hashable, Sendable { /// The unique GitHub Security Advisory ID assigned to the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/ghsa_id`. - public var ghsa_id: Swift.String + public var ghsaId: Swift.String /// The unique CVE ID assigned to the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cve_id`. - public var cve_id: Swift.String? + public var cveId: Swift.String? /// A short, plain text summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/summary`. @@ -1659,11 +1668,11 @@ public enum Components { /// Vulnerable version range information for the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/vulnerabilities`. - public var vulnerabilities: [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability] + public var vulnerabilities: [Components.Schemas.DependabotAlertSecurityVulnerability] /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case low = "low" case medium = "medium" case high = "high" @@ -1672,11 +1681,11 @@ public enum Components { /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/severity`. - public var severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.severityPayload + public var severity: Components.Schemas.DependabotAlertSecurityAdvisory.SeverityPayload /// Details for the advisory pertaining to the Common Vulnerability Scoring System. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss`. - public struct cvssPayload: Codable, Hashable, Sendable { + public struct CvssPayload: Codable, Hashable, Sendable { /// The overall CVSS score of the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss/score`. @@ -1684,32 +1693,32 @@ public enum Components { /// The full CVSS vector string for the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss/vector_string`. - public var vector_string: Swift.String? - /// Creates a new `cvssPayload`. + public var vectorString: Swift.String? + /// Creates a new `CvssPayload`. /// /// - Parameters: /// - score: The overall CVSS score of the advisory. - /// - vector_string: The full CVSS vector string for the advisory. + /// - vectorString: The full CVSS vector string for the advisory. public init( score: Swift.Double, - vector_string: Swift.String? = nil + vectorString: Swift.String? = nil ) { self.score = score - self.vector_string = vector_string + self.vectorString = vectorString } public enum CodingKeys: String, CodingKey { case score - case vector_string + case vectorString = "vector_string" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - score = try container.decode( + self.score = try container.decode( Swift.Double.self, forKey: .score ) - vector_string = try container.decodeIfPresent( + self.vectorString = try container.decodeIfPresent( Swift.String.self, - forKey: .vector_string + forKey: .vectorString ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "score", @@ -1720,46 +1729,46 @@ public enum Components { /// Details for the advisory pertaining to the Common Vulnerability Scoring System. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss`. - public var cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload + public var cvss: Components.Schemas.DependabotAlertSecurityAdvisory.CvssPayload /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss_severities`. - public var cvss_severities: Components.Schemas.cvss_hyphen_severities? + public var cvssSeverities: Components.Schemas.CvssSeverities? /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/epss`. - public var epss: Components.Schemas.security_hyphen_advisory_hyphen_epss? + public var epss: Components.Schemas.SecurityAdvisoryEpss? /// A CWE weakness assigned to the advisory. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwesPayload`. - public struct cwesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/CwesPayload`. + public struct CwesPayloadPayload: Codable, Hashable, Sendable { /// The unique CWE ID. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwesPayload/cwe_id`. - public var cwe_id: Swift.String + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/CwesPayload/cwe_id`. + public var cweId: Swift.String /// The short, plain text name of the CWE. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwesPayload/name`. + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/CwesPayload/name`. public var name: Swift.String - /// Creates a new `cwesPayloadPayload`. + /// Creates a new `CwesPayloadPayload`. /// /// - Parameters: - /// - cwe_id: The unique CWE ID. + /// - cweId: The unique CWE ID. /// - name: The short, plain text name of the CWE. public init( - cwe_id: Swift.String, + cweId: Swift.String, name: Swift.String ) { - self.cwe_id = cwe_id + self.cweId = cweId self.name = name } public enum CodingKeys: String, CodingKey { - case cwe_id + case cweId = "cwe_id" case name } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - cwe_id = try container.decode( + self.cweId = try container.decode( Swift.String.self, - forKey: .cwe_id + forKey: .cweId ) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) @@ -1772,37 +1781,37 @@ public enum Components { /// Details for the advisory pertaining to Common Weakness Enumeration. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwes`. - public typealias cwesPayload = [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayloadPayload] + public typealias CwesPayload = [Components.Schemas.DependabotAlertSecurityAdvisory.CwesPayloadPayload] /// Details for the advisory pertaining to Common Weakness Enumeration. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwes`. - public var cwes: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload + public var cwes: Components.Schemas.DependabotAlertSecurityAdvisory.CwesPayload /// An advisory identifier. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiersPayload`. - public struct identifiersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/IdentifiersPayload`. + public struct IdentifiersPayloadPayload: Codable, Hashable, Sendable { /// The type of advisory identifier. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiersPayload/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case CVE = "CVE" - case GHSA = "GHSA" + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/IdentifiersPayload/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case cve = "CVE" + case ghsa = "GHSA" } /// The type of advisory identifier. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiersPayload/type`. - public var _type: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayloadPayload._typePayload + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/IdentifiersPayload/type`. + public var _type: Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayloadPayload._TypePayload /// The value of the advisory identifer. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiersPayload/value`. + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/IdentifiersPayload/value`. public var value: Swift.String - /// Creates a new `identifiersPayloadPayload`. + /// Creates a new `IdentifiersPayloadPayload`. /// /// - Parameters: /// - _type: The type of advisory identifier. /// - value: The value of the advisory identifer. public init( - _type: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayloadPayload._typePayload, + _type: Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayloadPayload._TypePayload, value: Swift.String ) { self._type = _type @@ -1814,11 +1823,11 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - _type = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayloadPayload._typePayload.self, + self._type = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayloadPayload._TypePayload.self, forKey: ._type ) - value = try container.decode( + self.value = try container.decode( Swift.String.self, forKey: .value ) @@ -1831,20 +1840,20 @@ public enum Components { /// Values that identify this advisory among security information sources. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiers`. - public typealias identifiersPayload = [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayloadPayload] + public typealias IdentifiersPayload = [Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayloadPayload] /// Values that identify this advisory among security information sources. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/identifiers`. - public var identifiers: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayload + public var identifiers: Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayload /// A link to additional advisory information. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/referencesPayload`. - public struct referencesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/ReferencesPayload`. + public struct ReferencesPayloadPayload: Codable, Hashable, Sendable { /// The URL of the reference. /// - /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/referencesPayload/url`. + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/ReferencesPayload/url`. public var url: Swift.String - /// Creates a new `referencesPayloadPayload`. + /// Creates a new `ReferencesPayloadPayload`. /// /// - Parameters: /// - url: The URL of the reference. @@ -1856,7 +1865,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) @@ -1868,152 +1877,152 @@ public enum Components { /// Links to additional advisory information. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/references`. - public typealias referencesPayload = [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayloadPayload] + public typealias ReferencesPayload = [Components.Schemas.DependabotAlertSecurityAdvisory.ReferencesPayloadPayload] /// Links to additional advisory information. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/references`. - public var references: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayload + public var references: Components.Schemas.DependabotAlertSecurityAdvisory.ReferencesPayload /// The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/published_at`. - public var published_at: Foundation.Date + public var publishedAt: Foundation.Date /// The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/withdrawn_at`. - public var withdrawn_at: Foundation.Date? - /// Creates a new `dependabot_hyphen_alert_hyphen_security_hyphen_advisory`. + public var withdrawnAt: Foundation.Date? + /// Creates a new `DependabotAlertSecurityAdvisory`. /// /// - Parameters: - /// - ghsa_id: The unique GitHub Security Advisory ID assigned to the advisory. - /// - cve_id: The unique CVE ID assigned to the advisory. + /// - ghsaId: The unique GitHub Security Advisory ID assigned to the advisory. + /// - cveId: The unique CVE ID assigned to the advisory. /// - summary: A short, plain text summary of the advisory. /// - description: A long-form Markdown-supported description of the advisory. /// - vulnerabilities: Vulnerable version range information for the advisory. /// - severity: The severity of the advisory. /// - cvss: Details for the advisory pertaining to the Common Vulnerability Scoring System. - /// - cvss_severities: + /// - cvssSeverities: /// - epss: /// - cwes: Details for the advisory pertaining to Common Weakness Enumeration. /// - identifiers: Values that identify this advisory among security information sources. /// - references: Links to additional advisory information. - /// - published_at: The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - updated_at: The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - withdrawn_at: The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - publishedAt: The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - updatedAt: The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - withdrawnAt: The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. public init( - ghsa_id: Swift.String, - cve_id: Swift.String? = nil, + ghsaId: Swift.String, + cveId: Swift.String? = nil, summary: Swift.String, description: Swift.String, - vulnerabilities: [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability], - severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.severityPayload, - cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload, - cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, - epss: Components.Schemas.security_hyphen_advisory_hyphen_epss? = nil, - cwes: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload, - identifiers: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayload, - references: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayload, - published_at: Foundation.Date, - updated_at: Foundation.Date, - withdrawn_at: Foundation.Date? = nil + vulnerabilities: [Components.Schemas.DependabotAlertSecurityVulnerability], + severity: Components.Schemas.DependabotAlertSecurityAdvisory.SeverityPayload, + cvss: Components.Schemas.DependabotAlertSecurityAdvisory.CvssPayload, + cvssSeverities: Components.Schemas.CvssSeverities? = nil, + epss: Components.Schemas.SecurityAdvisoryEpss? = nil, + cwes: Components.Schemas.DependabotAlertSecurityAdvisory.CwesPayload, + identifiers: Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayload, + references: Components.Schemas.DependabotAlertSecurityAdvisory.ReferencesPayload, + publishedAt: Foundation.Date, + updatedAt: Foundation.Date, + withdrawnAt: Foundation.Date? = nil ) { - self.ghsa_id = ghsa_id - self.cve_id = cve_id + self.ghsaId = ghsaId + self.cveId = cveId self.summary = summary self.description = description self.vulnerabilities = vulnerabilities self.severity = severity self.cvss = cvss - self.cvss_severities = cvss_severities + self.cvssSeverities = cvssSeverities self.epss = epss self.cwes = cwes self.identifiers = identifiers self.references = references - self.published_at = published_at - self.updated_at = updated_at - self.withdrawn_at = withdrawn_at + self.publishedAt = publishedAt + self.updatedAt = updatedAt + self.withdrawnAt = withdrawnAt } public enum CodingKeys: String, CodingKey { - case ghsa_id - case cve_id + case ghsaId = "ghsa_id" + case cveId = "cve_id" case summary case description case vulnerabilities case severity case cvss - case cvss_severities + case cvssSeverities = "cvss_severities" case epss case cwes case identifiers case references - case published_at - case updated_at - case withdrawn_at + case publishedAt = "published_at" + case updatedAt = "updated_at" + case withdrawnAt = "withdrawn_at" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - ghsa_id = try container.decode( + self.ghsaId = try container.decode( Swift.String.self, - forKey: .ghsa_id + forKey: .ghsaId ) - cve_id = try container.decodeIfPresent( + self.cveId = try container.decodeIfPresent( Swift.String.self, - forKey: .cve_id + forKey: .cveId ) - summary = try container.decode( + self.summary = try container.decode( Swift.String.self, forKey: .summary ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - vulnerabilities = try container.decode( - [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability].self, + self.vulnerabilities = try container.decode( + [Components.Schemas.DependabotAlertSecurityVulnerability].self, forKey: .vulnerabilities ) - severity = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.severityPayload.self, + self.severity = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.SeverityPayload.self, forKey: .severity ) - cvss = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload.self, + self.cvss = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.CvssPayload.self, forKey: .cvss ) - cvss_severities = try container.decodeIfPresent( - Components.Schemas.cvss_hyphen_severities.self, - forKey: .cvss_severities + self.cvssSeverities = try container.decodeIfPresent( + Components.Schemas.CvssSeverities.self, + forKey: .cvssSeverities ) - epss = try container.decodeIfPresent( - Components.Schemas.security_hyphen_advisory_hyphen_epss.self, + self.epss = try container.decodeIfPresent( + Components.Schemas.SecurityAdvisoryEpss.self, forKey: .epss ) - cwes = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload.self, + self.cwes = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.CwesPayload.self, forKey: .cwes ) - identifiers = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayload.self, + self.identifiers = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.IdentifiersPayload.self, forKey: .identifiers ) - references = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayload.self, + self.references = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.ReferencesPayload.self, forKey: .references ) - published_at = try container.decode( + self.publishedAt = try container.decode( Foundation.Date.self, - forKey: .published_at + forKey: .publishedAt ) - updated_at = try container.decode( + self.updatedAt = try container.decode( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - withdrawn_at = try container.decodeIfPresent( + self.withdrawnAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .withdrawn_at + forKey: .withdrawnAt ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "ghsa_id", @@ -2037,42 +2046,42 @@ public enum Components { /// The REST API URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-url`. - public typealias alert_hyphen_url = Swift.String + public typealias AlertUrl = Swift.String /// The GitHub URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-html-url`. - public typealias alert_hyphen_html_hyphen_url = Swift.String + public typealias AlertHtmlUrl = Swift.String /// The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-created-at`. - public typealias alert_hyphen_created_hyphen_at = Foundation.Date + public typealias AlertCreatedAt = Foundation.Date /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-updated-at`. - public typealias alert_hyphen_updated_hyphen_at = Foundation.Date + public typealias AlertUpdatedAt = Foundation.Date /// The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-dismissed-at`. - public typealias alert_hyphen_dismissed_hyphen_at = Foundation.Date + public typealias AlertDismissedAt = Foundation.Date /// The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-fixed-at`. - public typealias alert_hyphen_fixed_hyphen_at = Foundation.Date + public typealias AlertFixedAt = Foundation.Date /// The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-auto-dismissed-at`. - public typealias alert_hyphen_auto_hyphen_dismissed_hyphen_at = Foundation.Date + public typealias AlertAutoDismissedAt = Foundation.Date /// A Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository`. - public struct dependabot_hyphen_alert_hyphen_with_hyphen_repository: Codable, Hashable, Sendable { + public struct DependabotAlertWithRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/number`. - public var number: Components.Schemas.alert_hyphen_number + public var number: Components.Schemas.AlertNumber /// The state of the Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { - case auto_dismissed = "auto_dismissed" + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { + case autoDismissed = "auto_dismissed" case dismissed = "dismissed" case fixed = "fixed" case open = "open" @@ -2080,28 +2089,28 @@ public enum Components { /// The state of the Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/state`. - public var state: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.statePayload + public var state: Components.Schemas.DependabotAlertWithRepository.StatePayload /// Details for the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency`. - public struct dependencyPayload: Codable, Hashable, Sendable { + public struct DependencyPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/package`. - public var package: Components.Schemas.dependabot_hyphen_alert_hyphen_package? + public var package: Components.Schemas.DependabotAlertPackage? /// The full path to the dependency manifest file, relative to the root of the repository. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/manifest_path`. - public var manifest_path: Swift.String? + public var manifestPath: Swift.String? /// The execution scope of the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } /// The execution scope of the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/scope`. - public var scope: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload.scopePayload? + public var scope: Components.Schemas.DependabotAlertWithRepository.DependencyPayload.ScopePayload? /// The vulnerable dependency's relationship to your project. /// /// > [!NOTE] @@ -2109,7 +2118,7 @@ public enum Components { /// /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/relationship`. - @frozen public enum relationshipPayload: String, Codable, Hashable, Sendable { + @frozen public enum RelationshipPayload: String, Codable, Hashable, Sendable, CaseIterable { case unknown = "unknown" case direct = "direct" case transitive = "transitive" @@ -2121,28 +2130,28 @@ public enum Components { /// /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency/relationship`. - public var relationship: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload.relationshipPayload? - /// Creates a new `dependencyPayload`. + public var relationship: Components.Schemas.DependabotAlertWithRepository.DependencyPayload.RelationshipPayload? + /// Creates a new `DependencyPayload`. /// /// - Parameters: /// - package: - /// - manifest_path: The full path to the dependency manifest file, relative to the root of the repository. + /// - manifestPath: The full path to the dependency manifest file, relative to the root of the repository. /// - scope: The execution scope of the vulnerable dependency. /// - relationship: The vulnerable dependency's relationship to your project. public init( - package: Components.Schemas.dependabot_hyphen_alert_hyphen_package? = nil, - manifest_path: Swift.String? = nil, - scope: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload.scopePayload? = nil, - relationship: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload.relationshipPayload? = nil + package: Components.Schemas.DependabotAlertPackage? = nil, + manifestPath: Swift.String? = nil, + scope: Components.Schemas.DependabotAlertWithRepository.DependencyPayload.ScopePayload? = nil, + relationship: Components.Schemas.DependabotAlertWithRepository.DependencyPayload.RelationshipPayload? = nil ) { self.package = package - self.manifest_path = manifest_path + self.manifestPath = manifestPath self.scope = scope self.relationship = relationship } public enum CodingKeys: String, CodingKey { case package - case manifest_path + case manifestPath = "manifest_path" case scope case relationship } @@ -2150,183 +2159,183 @@ public enum Components { /// Details for the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dependency`. - public var dependency: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload + public var dependency: Components.Schemas.DependabotAlertWithRepository.DependencyPayload /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/security_advisory`. - public var security_advisory: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory + public var securityAdvisory: Components.Schemas.DependabotAlertSecurityAdvisory /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/security_vulnerability`. - public var security_vulnerability: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability + public var securityVulnerability: Components.Schemas.DependabotAlertSecurityVulnerability /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/url`. - public var url: Components.Schemas.alert_hyphen_url + public var url: Components.Schemas.AlertUrl /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url + public var htmlUrl: Components.Schemas.AlertHtmlUrl /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.AlertCreatedAt /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/updated_at`. - public var updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at + public var updatedAt: Components.Schemas.AlertUpdatedAt /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dismissed_at`. - public var dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? + public var dismissedAt: Components.Schemas.AlertDismissedAt? /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dismissed_by`. - public var dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var dismissedBy: Components.Schemas.NullableSimpleUser? /// The reason that the alert was dismissed. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dismissed_reason`. - @frozen public enum dismissed_reasonPayload: String, Codable, Hashable, Sendable { - case fix_started = "fix_started" + @frozen public enum DismissedReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { + case fixStarted = "fix_started" case inaccurate = "inaccurate" - case no_bandwidth = "no_bandwidth" - case not_used = "not_used" - case tolerable_risk = "tolerable_risk" + case noBandwidth = "no_bandwidth" + case notUsed = "not_used" + case tolerableRisk = "tolerable_risk" } /// The reason that the alert was dismissed. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dismissed_reason`. - public var dismissed_reason: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dismissed_reasonPayload? + public var dismissedReason: Components.Schemas.DependabotAlertWithRepository.DismissedReasonPayload? /// An optional comment associated with the alert's dismissal. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/dismissed_comment`. - public var dismissed_comment: Swift.String? + public var dismissedComment: Swift.String? /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/fixed_at`. - public var fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? + public var fixedAt: Components.Schemas.AlertFixedAt? /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/auto_dismissed_at`. - public var auto_dismissed_at: Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at? + public var autoDismissedAt: Components.Schemas.AlertAutoDismissedAt? /// - Remark: Generated from `#/components/schemas/dependabot-alert-with-repository/repository`. - public var repository: Components.Schemas.simple_hyphen_repository - /// Creates a new `dependabot_hyphen_alert_hyphen_with_hyphen_repository`. + public var repository: Components.Schemas.SimpleRepository + /// Creates a new `DependabotAlertWithRepository`. /// /// - Parameters: /// - number: /// - state: The state of the Dependabot alert. /// - dependency: Details for the vulnerable dependency. - /// - security_advisory: - /// - security_vulnerability: + /// - securityAdvisory: + /// - securityVulnerability: /// - url: - /// - html_url: - /// - created_at: - /// - updated_at: - /// - dismissed_at: - /// - dismissed_by: - /// - dismissed_reason: The reason that the alert was dismissed. - /// - dismissed_comment: An optional comment associated with the alert's dismissal. - /// - fixed_at: - /// - auto_dismissed_at: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: + /// - dismissedAt: + /// - dismissedBy: + /// - dismissedReason: The reason that the alert was dismissed. + /// - dismissedComment: An optional comment associated with the alert's dismissal. + /// - fixedAt: + /// - autoDismissedAt: /// - repository: public init( - number: Components.Schemas.alert_hyphen_number, - state: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.statePayload, - dependency: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload, - security_advisory: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory, - security_vulnerability: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability, - url: Components.Schemas.alert_hyphen_url, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at, - updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at, - dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? = nil, - dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - dismissed_reason: Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dismissed_reasonPayload? = nil, - dismissed_comment: Swift.String? = nil, - fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? = nil, - auto_dismissed_at: Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at? = nil, - repository: Components.Schemas.simple_hyphen_repository + number: Components.Schemas.AlertNumber, + state: Components.Schemas.DependabotAlertWithRepository.StatePayload, + dependency: Components.Schemas.DependabotAlertWithRepository.DependencyPayload, + securityAdvisory: Components.Schemas.DependabotAlertSecurityAdvisory, + securityVulnerability: Components.Schemas.DependabotAlertSecurityVulnerability, + url: Components.Schemas.AlertUrl, + htmlUrl: Components.Schemas.AlertHtmlUrl, + createdAt: Components.Schemas.AlertCreatedAt, + updatedAt: Components.Schemas.AlertUpdatedAt, + dismissedAt: Components.Schemas.AlertDismissedAt? = nil, + dismissedBy: Components.Schemas.NullableSimpleUser? = nil, + dismissedReason: Components.Schemas.DependabotAlertWithRepository.DismissedReasonPayload? = nil, + dismissedComment: Swift.String? = nil, + fixedAt: Components.Schemas.AlertFixedAt? = nil, + autoDismissedAt: Components.Schemas.AlertAutoDismissedAt? = nil, + repository: Components.Schemas.SimpleRepository ) { self.number = number self.state = state self.dependency = dependency - self.security_advisory = security_advisory - self.security_vulnerability = security_vulnerability + self.securityAdvisory = securityAdvisory + self.securityVulnerability = securityVulnerability self.url = url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at - self.dismissed_at = dismissed_at - self.dismissed_by = dismissed_by - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment - self.fixed_at = fixed_at - self.auto_dismissed_at = auto_dismissed_at + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt + self.dismissedAt = dismissedAt + self.dismissedBy = dismissedBy + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment + self.fixedAt = fixedAt + self.autoDismissedAt = autoDismissedAt self.repository = repository } public enum CodingKeys: String, CodingKey { case number case state case dependency - case security_advisory - case security_vulnerability + case securityAdvisory = "security_advisory" + case securityVulnerability = "security_vulnerability" case url - case html_url - case created_at - case updated_at - case dismissed_at - case dismissed_by - case dismissed_reason - case dismissed_comment - case fixed_at - case auto_dismissed_at + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" + case dismissedAt = "dismissed_at" + case dismissedBy = "dismissed_by" + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" + case fixedAt = "fixed_at" + case autoDismissedAt = "auto_dismissed_at" case repository } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - number = try container.decode( - Components.Schemas.alert_hyphen_number.self, + self.number = try container.decode( + Components.Schemas.AlertNumber.self, forKey: .number ) - state = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.statePayload.self, + self.state = try container.decode( + Components.Schemas.DependabotAlertWithRepository.StatePayload.self, forKey: .state ) - dependency = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dependencyPayload.self, + self.dependency = try container.decode( + Components.Schemas.DependabotAlertWithRepository.DependencyPayload.self, forKey: .dependency ) - security_advisory = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.self, - forKey: .security_advisory + self.securityAdvisory = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.self, + forKey: .securityAdvisory ) - security_vulnerability = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.self, - forKey: .security_vulnerability + self.securityVulnerability = try container.decode( + Components.Schemas.DependabotAlertSecurityVulnerability.self, + forKey: .securityVulnerability ) - url = try container.decode( - Components.Schemas.alert_hyphen_url.self, + self.url = try container.decode( + Components.Schemas.AlertUrl.self, forKey: .url ) - html_url = try container.decode( - Components.Schemas.alert_hyphen_html_hyphen_url.self, - forKey: .html_url + self.htmlUrl = try container.decode( + Components.Schemas.AlertHtmlUrl.self, + forKey: .htmlUrl ) - created_at = try container.decode( - Components.Schemas.alert_hyphen_created_hyphen_at.self, - forKey: .created_at + self.createdAt = try container.decode( + Components.Schemas.AlertCreatedAt.self, + forKey: .createdAt ) - updated_at = try container.decode( - Components.Schemas.alert_hyphen_updated_hyphen_at.self, - forKey: .updated_at + self.updatedAt = try container.decode( + Components.Schemas.AlertUpdatedAt.self, + forKey: .updatedAt ) - dismissed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_dismissed_hyphen_at.self, - forKey: .dismissed_at + self.dismissedAt = try container.decodeIfPresent( + Components.Schemas.AlertDismissedAt.self, + forKey: .dismissedAt ) - dismissed_by = try container.decodeIfPresent( - Components.Schemas.nullable_hyphen_simple_hyphen_user.self, - forKey: .dismissed_by + self.dismissedBy = try container.decodeIfPresent( + Components.Schemas.NullableSimpleUser.self, + forKey: .dismissedBy ) - dismissed_reason = try container.decodeIfPresent( - Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository.dismissed_reasonPayload.self, - forKey: .dismissed_reason + self.dismissedReason = try container.decodeIfPresent( + Components.Schemas.DependabotAlertWithRepository.DismissedReasonPayload.self, + forKey: .dismissedReason ) - dismissed_comment = try container.decodeIfPresent( + self.dismissedComment = try container.decodeIfPresent( Swift.String.self, - forKey: .dismissed_comment + forKey: .dismissedComment ) - fixed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_fixed_hyphen_at.self, - forKey: .fixed_at + self.fixedAt = try container.decodeIfPresent( + Components.Schemas.AlertFixedAt.self, + forKey: .fixedAt ) - auto_dismissed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at.self, - forKey: .auto_dismissed_at + self.autoDismissedAt = try container.decodeIfPresent( + Components.Schemas.AlertAutoDismissedAt.self, + forKey: .autoDismissedAt ) - repository = try container.decode( - Components.Schemas.simple_hyphen_repository.self, + self.repository = try container.decode( + Components.Schemas.SimpleRepository.self, forKey: .repository ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -2350,21 +2359,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2372,21 +2381,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2394,27 +2403,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2424,21 +2433,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2446,21 +2455,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2468,21 +2477,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2490,21 +2499,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2512,62 +2521,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -2575,121 +2584,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -2697,13 +2706,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -2714,7 +2723,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2744,436 +2753,436 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -3182,19 +3191,19 @@ public enum Components { /// Secrets for GitHub Dependabot for an organization. /// /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret`. - public struct organization_hyphen_dependabot_hyphen_secret: Codable, Hashable, Sendable { + public struct OrganizationDependabotSecret: Codable, Hashable, Sendable { /// The name of the secret. /// /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Visibility of a secret /// /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -3202,78 +3211,78 @@ public enum Components { /// Visibility of a secret /// /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/visibility`. - public var visibility: Components.Schemas.organization_hyphen_dependabot_hyphen_secret.visibilityPayload + public var visibility: Components.Schemas.OrganizationDependabotSecret.VisibilityPayload /// - Remark: Generated from `#/components/schemas/organization-dependabot-secret/selected_repositories_url`. - public var selected_repositories_url: Swift.String? - /// Creates a new `organization_hyphen_dependabot_hyphen_secret`. + public var selectedRepositoriesUrl: Swift.String? + /// Creates a new `OrganizationDependabotSecret`. /// /// - Parameters: /// - name: The name of the secret. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - visibility: Visibility of a secret - /// - selected_repositories_url: + /// - selectedRepositoriesUrl: public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - visibility: Components.Schemas.organization_hyphen_dependabot_hyphen_secret.visibilityPayload, - selected_repositories_url: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + visibility: Components.Schemas.OrganizationDependabotSecret.VisibilityPayload, + selectedRepositoriesUrl: Swift.String? = nil ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.visibility = visibility - self.selected_repositories_url = selected_repositories_url + self.selectedRepositoriesUrl = selectedRepositoriesUrl } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case visibility - case selected_repositories_url + case selectedRepositoriesUrl = "selected_repositories_url" } } /// The public key used for setting Dependabot Secrets. /// /// - Remark: Generated from `#/components/schemas/dependabot-public-key`. - public struct dependabot_hyphen_public_hyphen_key: Codable, Hashable, Sendable { + public struct DependabotPublicKey: Codable, Hashable, Sendable { /// The identifier for the key. /// /// - Remark: Generated from `#/components/schemas/dependabot-public-key/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// The Base64 encoded public key. /// /// - Remark: Generated from `#/components/schemas/dependabot-public-key/key`. public var key: Swift.String - /// Creates a new `dependabot_hyphen_public_hyphen_key`. + /// Creates a new `DependabotPublicKey`. /// /// - Parameters: - /// - key_id: The identifier for the key. + /// - keyId: The identifier for the key. /// - key: The Base64 encoded public key. public init( - key_id: Swift.String, + keyId: Swift.String, key: Swift.String ) { - self.key_id = key_id + self.keyId = keyId self.key = key } public enum CodingKeys: String, CodingKey { - case key_id + case keyId = "key_id" case key } } /// A Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert`. - public struct dependabot_hyphen_alert: Codable, Hashable, Sendable { + public struct DependabotAlert: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependabot-alert/number`. - public var number: Components.Schemas.alert_hyphen_number + public var number: Components.Schemas.AlertNumber /// The state of the Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { - case auto_dismissed = "auto_dismissed" + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { + case autoDismissed = "auto_dismissed" case dismissed = "dismissed" case fixed = "fixed" case open = "open" @@ -3281,28 +3290,28 @@ public enum Components { /// The state of the Dependabot alert. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/state`. - public var state: Components.Schemas.dependabot_hyphen_alert.statePayload + public var state: Components.Schemas.DependabotAlert.StatePayload /// Details for the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency`. - public struct dependencyPayload: Codable, Hashable, Sendable { + public struct DependencyPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/package`. - public var package: Components.Schemas.dependabot_hyphen_alert_hyphen_package? + public var package: Components.Schemas.DependabotAlertPackage? /// The full path to the dependency manifest file, relative to the root of the repository. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/manifest_path`. - public var manifest_path: Swift.String? + public var manifestPath: Swift.String? /// The execution scope of the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } /// The execution scope of the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/scope`. - public var scope: Components.Schemas.dependabot_hyphen_alert.dependencyPayload.scopePayload? + public var scope: Components.Schemas.DependabotAlert.DependencyPayload.ScopePayload? /// The vulnerable dependency's relationship to your project. /// /// > [!NOTE] @@ -3310,7 +3319,7 @@ public enum Components { /// /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/relationship`. - @frozen public enum relationshipPayload: String, Codable, Hashable, Sendable { + @frozen public enum RelationshipPayload: String, Codable, Hashable, Sendable, CaseIterable { case unknown = "unknown" case direct = "direct" case transitive = "transitive" @@ -3322,28 +3331,28 @@ public enum Components { /// /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency/relationship`. - public var relationship: Components.Schemas.dependabot_hyphen_alert.dependencyPayload.relationshipPayload? - /// Creates a new `dependencyPayload`. + public var relationship: Components.Schemas.DependabotAlert.DependencyPayload.RelationshipPayload? + /// Creates a new `DependencyPayload`. /// /// - Parameters: /// - package: - /// - manifest_path: The full path to the dependency manifest file, relative to the root of the repository. + /// - manifestPath: The full path to the dependency manifest file, relative to the root of the repository. /// - scope: The execution scope of the vulnerable dependency. /// - relationship: The vulnerable dependency's relationship to your project. public init( - package: Components.Schemas.dependabot_hyphen_alert_hyphen_package? = nil, - manifest_path: Swift.String? = nil, - scope: Components.Schemas.dependabot_hyphen_alert.dependencyPayload.scopePayload? = nil, - relationship: Components.Schemas.dependabot_hyphen_alert.dependencyPayload.relationshipPayload? = nil + package: Components.Schemas.DependabotAlertPackage? = nil, + manifestPath: Swift.String? = nil, + scope: Components.Schemas.DependabotAlert.DependencyPayload.ScopePayload? = nil, + relationship: Components.Schemas.DependabotAlert.DependencyPayload.RelationshipPayload? = nil ) { self.package = package - self.manifest_path = manifest_path + self.manifestPath = manifestPath self.scope = scope self.relationship = relationship } public enum CodingKeys: String, CodingKey { case package - case manifest_path + case manifestPath = "manifest_path" case scope case relationship } @@ -3351,174 +3360,174 @@ public enum Components { /// Details for the vulnerable dependency. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dependency`. - public var dependency: Components.Schemas.dependabot_hyphen_alert.dependencyPayload + public var dependency: Components.Schemas.DependabotAlert.DependencyPayload /// - Remark: Generated from `#/components/schemas/dependabot-alert/security_advisory`. - public var security_advisory: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory + public var securityAdvisory: Components.Schemas.DependabotAlertSecurityAdvisory /// - Remark: Generated from `#/components/schemas/dependabot-alert/security_vulnerability`. - public var security_vulnerability: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability + public var securityVulnerability: Components.Schemas.DependabotAlertSecurityVulnerability /// - Remark: Generated from `#/components/schemas/dependabot-alert/url`. - public var url: Components.Schemas.alert_hyphen_url + public var url: Components.Schemas.AlertUrl /// - Remark: Generated from `#/components/schemas/dependabot-alert/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url + public var htmlUrl: Components.Schemas.AlertHtmlUrl /// - Remark: Generated from `#/components/schemas/dependabot-alert/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at + public var createdAt: Components.Schemas.AlertCreatedAt /// - Remark: Generated from `#/components/schemas/dependabot-alert/updated_at`. - public var updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at + public var updatedAt: Components.Schemas.AlertUpdatedAt /// - Remark: Generated from `#/components/schemas/dependabot-alert/dismissed_at`. - public var dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? + public var dismissedAt: Components.Schemas.AlertDismissedAt? /// - Remark: Generated from `#/components/schemas/dependabot-alert/dismissed_by`. - public var dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var dismissedBy: Components.Schemas.NullableSimpleUser? /// The reason that the alert was dismissed. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dismissed_reason`. - @frozen public enum dismissed_reasonPayload: String, Codable, Hashable, Sendable { - case fix_started = "fix_started" + @frozen public enum DismissedReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { + case fixStarted = "fix_started" case inaccurate = "inaccurate" - case no_bandwidth = "no_bandwidth" - case not_used = "not_used" - case tolerable_risk = "tolerable_risk" + case noBandwidth = "no_bandwidth" + case notUsed = "not_used" + case tolerableRisk = "tolerable_risk" } /// The reason that the alert was dismissed. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dismissed_reason`. - public var dismissed_reason: Components.Schemas.dependabot_hyphen_alert.dismissed_reasonPayload? + public var dismissedReason: Components.Schemas.DependabotAlert.DismissedReasonPayload? /// An optional comment associated with the alert's dismissal. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert/dismissed_comment`. - public var dismissed_comment: Swift.String? + public var dismissedComment: Swift.String? /// - Remark: Generated from `#/components/schemas/dependabot-alert/fixed_at`. - public var fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? + public var fixedAt: Components.Schemas.AlertFixedAt? /// - Remark: Generated from `#/components/schemas/dependabot-alert/auto_dismissed_at`. - public var auto_dismissed_at: Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at? - /// Creates a new `dependabot_hyphen_alert`. + public var autoDismissedAt: Components.Schemas.AlertAutoDismissedAt? + /// Creates a new `DependabotAlert`. /// /// - Parameters: /// - number: /// - state: The state of the Dependabot alert. /// - dependency: Details for the vulnerable dependency. - /// - security_advisory: - /// - security_vulnerability: + /// - securityAdvisory: + /// - securityVulnerability: /// - url: - /// - html_url: - /// - created_at: - /// - updated_at: - /// - dismissed_at: - /// - dismissed_by: - /// - dismissed_reason: The reason that the alert was dismissed. - /// - dismissed_comment: An optional comment associated with the alert's dismissal. - /// - fixed_at: - /// - auto_dismissed_at: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: + /// - dismissedAt: + /// - dismissedBy: + /// - dismissedReason: The reason that the alert was dismissed. + /// - dismissedComment: An optional comment associated with the alert's dismissal. + /// - fixedAt: + /// - autoDismissedAt: public init( - number: Components.Schemas.alert_hyphen_number, - state: Components.Schemas.dependabot_hyphen_alert.statePayload, - dependency: Components.Schemas.dependabot_hyphen_alert.dependencyPayload, - security_advisory: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory, - security_vulnerability: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability, - url: Components.Schemas.alert_hyphen_url, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at, - updated_at: Components.Schemas.alert_hyphen_updated_hyphen_at, - dismissed_at: Components.Schemas.alert_hyphen_dismissed_hyphen_at? = nil, - dismissed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - dismissed_reason: Components.Schemas.dependabot_hyphen_alert.dismissed_reasonPayload? = nil, - dismissed_comment: Swift.String? = nil, - fixed_at: Components.Schemas.alert_hyphen_fixed_hyphen_at? = nil, - auto_dismissed_at: Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at? = nil + number: Components.Schemas.AlertNumber, + state: Components.Schemas.DependabotAlert.StatePayload, + dependency: Components.Schemas.DependabotAlert.DependencyPayload, + securityAdvisory: Components.Schemas.DependabotAlertSecurityAdvisory, + securityVulnerability: Components.Schemas.DependabotAlertSecurityVulnerability, + url: Components.Schemas.AlertUrl, + htmlUrl: Components.Schemas.AlertHtmlUrl, + createdAt: Components.Schemas.AlertCreatedAt, + updatedAt: Components.Schemas.AlertUpdatedAt, + dismissedAt: Components.Schemas.AlertDismissedAt? = nil, + dismissedBy: Components.Schemas.NullableSimpleUser? = nil, + dismissedReason: Components.Schemas.DependabotAlert.DismissedReasonPayload? = nil, + dismissedComment: Swift.String? = nil, + fixedAt: Components.Schemas.AlertFixedAt? = nil, + autoDismissedAt: Components.Schemas.AlertAutoDismissedAt? = nil ) { self.number = number self.state = state self.dependency = dependency - self.security_advisory = security_advisory - self.security_vulnerability = security_vulnerability + self.securityAdvisory = securityAdvisory + self.securityVulnerability = securityVulnerability self.url = url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at - self.dismissed_at = dismissed_at - self.dismissed_by = dismissed_by - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment - self.fixed_at = fixed_at - self.auto_dismissed_at = auto_dismissed_at + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt + self.dismissedAt = dismissedAt + self.dismissedBy = dismissedBy + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment + self.fixedAt = fixedAt + self.autoDismissedAt = autoDismissedAt } public enum CodingKeys: String, CodingKey { case number case state case dependency - case security_advisory - case security_vulnerability + case securityAdvisory = "security_advisory" + case securityVulnerability = "security_vulnerability" case url - case html_url - case created_at - case updated_at - case dismissed_at - case dismissed_by - case dismissed_reason - case dismissed_comment - case fixed_at - case auto_dismissed_at + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" + case dismissedAt = "dismissed_at" + case dismissedBy = "dismissed_by" + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" + case fixedAt = "fixed_at" + case autoDismissedAt = "auto_dismissed_at" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - number = try container.decode( - Components.Schemas.alert_hyphen_number.self, + self.number = try container.decode( + Components.Schemas.AlertNumber.self, forKey: .number ) - state = try container.decode( - Components.Schemas.dependabot_hyphen_alert.statePayload.self, + self.state = try container.decode( + Components.Schemas.DependabotAlert.StatePayload.self, forKey: .state ) - dependency = try container.decode( - Components.Schemas.dependabot_hyphen_alert.dependencyPayload.self, + self.dependency = try container.decode( + Components.Schemas.DependabotAlert.DependencyPayload.self, forKey: .dependency ) - security_advisory = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.self, - forKey: .security_advisory + self.securityAdvisory = try container.decode( + Components.Schemas.DependabotAlertSecurityAdvisory.self, + forKey: .securityAdvisory ) - security_vulnerability = try container.decode( - Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability.self, - forKey: .security_vulnerability + self.securityVulnerability = try container.decode( + Components.Schemas.DependabotAlertSecurityVulnerability.self, + forKey: .securityVulnerability ) - url = try container.decode( - Components.Schemas.alert_hyphen_url.self, + self.url = try container.decode( + Components.Schemas.AlertUrl.self, forKey: .url ) - html_url = try container.decode( - Components.Schemas.alert_hyphen_html_hyphen_url.self, - forKey: .html_url + self.htmlUrl = try container.decode( + Components.Schemas.AlertHtmlUrl.self, + forKey: .htmlUrl ) - created_at = try container.decode( - Components.Schemas.alert_hyphen_created_hyphen_at.self, - forKey: .created_at + self.createdAt = try container.decode( + Components.Schemas.AlertCreatedAt.self, + forKey: .createdAt ) - updated_at = try container.decode( - Components.Schemas.alert_hyphen_updated_hyphen_at.self, - forKey: .updated_at + self.updatedAt = try container.decode( + Components.Schemas.AlertUpdatedAt.self, + forKey: .updatedAt ) - dismissed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_dismissed_hyphen_at.self, - forKey: .dismissed_at + self.dismissedAt = try container.decodeIfPresent( + Components.Schemas.AlertDismissedAt.self, + forKey: .dismissedAt ) - dismissed_by = try container.decodeIfPresent( - Components.Schemas.nullable_hyphen_simple_hyphen_user.self, - forKey: .dismissed_by + self.dismissedBy = try container.decodeIfPresent( + Components.Schemas.NullableSimpleUser.self, + forKey: .dismissedBy ) - dismissed_reason = try container.decodeIfPresent( - Components.Schemas.dependabot_hyphen_alert.dismissed_reasonPayload.self, - forKey: .dismissed_reason + self.dismissedReason = try container.decodeIfPresent( + Components.Schemas.DependabotAlert.DismissedReasonPayload.self, + forKey: .dismissedReason ) - dismissed_comment = try container.decodeIfPresent( + self.dismissedComment = try container.decodeIfPresent( Swift.String.self, - forKey: .dismissed_comment + forKey: .dismissedComment ) - fixed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_fixed_hyphen_at.self, - forKey: .fixed_at + self.fixedAt = try container.decodeIfPresent( + Components.Schemas.AlertFixedAt.self, + forKey: .fixedAt ) - auto_dismissed_at = try container.decodeIfPresent( - Components.Schemas.alert_hyphen_auto_hyphen_dismissed_hyphen_at.self, - forKey: .auto_dismissed_at + self.autoDismissedAt = try container.decodeIfPresent( + Components.Schemas.AlertAutoDismissedAt.self, + forKey: .autoDismissedAt ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "number", @@ -3542,34 +3551,34 @@ public enum Components { /// Set secrets for Dependabot. /// /// - Remark: Generated from `#/components/schemas/dependabot-secret`. - public struct dependabot_hyphen_secret: Codable, Hashable, Sendable { + public struct DependabotSecret: Codable, Hashable, Sendable { /// The name of the secret. /// /// - Remark: Generated from `#/components/schemas/dependabot-secret/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/dependabot-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/dependabot-secret/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `dependabot_hyphen_secret`. + public var updatedAt: Foundation.Date + /// Creates a new `DependabotSecret`. /// /// - Parameters: /// - name: The name of the secret. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } } @@ -3578,52 +3587,52 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/components/parameters/enterprise`. - public typealias enterprise = Swift.String + public typealias Enterprise = Swift.String /// A comma-separated list of states. If specified, only alerts with these states will be returned. /// /// Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-states`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states = Swift.String + public typealias DependabotAlertCommaSeparatedStates = Swift.String /// A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// /// Can be: `low`, `medium`, `high`, `critical` /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-severities`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities = Swift.String + public typealias DependabotAlertCommaSeparatedSeverities = Swift.String /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// /// Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-ecosystems`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems = Swift.String + public typealias DependabotAlertCommaSeparatedEcosystems = Swift.String /// A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-packages`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages = Swift.String + public typealias DependabotAlertCommaSeparatedPackages = Swift.String /// CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: /// - An exact number (`n`) /// - Comparators such as `>n`, `=n`, `<=n` @@ -3632,22 +3641,22 @@ public enum Components { /// Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-epss`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss = Swift.String - /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. - /// Multiple `has` filters can be chained to check if multiple properties are present. + public typealias DependabotAlertCommaSeparatedEpss = Swift.String + /// Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. + /// Multiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. - @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + @frozen public enum DependabotAlertCommaSeparatedHas: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. - @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case patch = "patch" } /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + public typealias Case2Payload = [Components.Parameters.DependabotAlertCommaSeparatedHas.Case2PayloadPayload] /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + case case2(Components.Parameters.DependabotAlertCommaSeparatedHas.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -3680,7 +3689,7 @@ public enum Components { /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. - @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertScope: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } @@ -3690,65 +3699,65 @@ public enum Components { /// `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-sort`. - @frozen public enum dependabot_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case epss_percentage = "epss_percentage" + case epssPercentage = "epss_percentage" } /// **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// This parameter must not be used in combination with `last`. /// Instead, use `per_page` in combination with `after` to fetch the first page of results. /// /// - Remark: Generated from `#/components/parameters/pagination-first`. - public typealias pagination_hyphen_first = Swift.Int + public typealias PaginationFirst = Swift.Int /// **Deprecated**. The number of results per page (max 100), starting from the last matching result. /// This parameter must not be used in combination with `first`. /// Instead, use `per_page` in combination with `before` to fetch the last page of results. /// /// - Remark: Generated from `#/components/parameters/pagination-last`. - public typealias pagination_hyphen_last = Swift.Int + public typealias PaginationLast = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The name of the secret. /// /// - Remark: Generated from `#/components/parameters/secret-name`. - public typealias secret_hyphen_name = Swift.String + public typealias SecretName = Swift.String /// A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-manifests`. - public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_manifests = Swift.String + public typealias DependabotAlertCommaSeparatedManifests = Swift.String /// The number that identifies a Dependabot alert in its repository. /// You can find this at the end of the URL for a Dependabot alert within GitHub, /// or in `number` fields in the response from the /// `GET /repos/{owner}/{repo}/dependabot/alerts` operation. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-number`. - public typealias dependabot_hyphen_alert_hyphen_number = Components.Schemas.alert_hyphen_number + public typealias DependabotAlertNumber = Components.Schemas.AlertNumber } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -3758,25 +3767,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3786,25 +3795,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3818,15 +3827,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -3838,29 +3847,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3870,25 +3879,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { + public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3898,12 +3907,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } @@ -3911,7 +3920,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -3929,7 +3938,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/dependabot/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)`. - public enum dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise { + public enum DependabotListAlertsForEnterprise { public static let id: Swift.String = "dependabot/list-alerts-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/path`. @@ -3937,16 +3946,16 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - public init(enterprise: Components.Parameters.enterprise) { + public init(enterprise: Components.Parameters.Enterprise) { self.enterprise = enterprise } } - public var path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.DependabotListAlertsForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query`. public struct Query: Sendable, Hashable { /// A comma-separated list of states. If specified, only alerts with these states will be returned. @@ -3954,23 +3963,23 @@ public enum Operations { /// Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/state`. - public var state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? + public var state: Components.Parameters.DependabotAlertCommaSeparatedStates? /// A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// /// Can be: `low`, `medium`, `high`, `critical` /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/severity`. - public var severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? + public var severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// /// Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/ecosystem`. - public var ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? + public var ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? /// A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/package`. - public var package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? + public var package: Components.Parameters.DependabotAlertCommaSeparatedPackages? /// CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: /// - An exact number (`n`) /// - Comparators such as `>n`, `=n`, `<=n` @@ -3979,19 +3988,19 @@ public enum Operations { /// Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/epss_percentage`. - public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + public var epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. - @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + @frozen public enum DependabotAlertCommaSeparatedHas: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. - @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case patch = "patch" } /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + public typealias Case2Payload = [Components.Parameters.DependabotAlertCommaSeparatedHas.Case2PayloadPayload] /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + case case2(Components.Parameters.DependabotAlertCommaSeparatedHas.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -4021,25 +4030,25 @@ public enum Operations { } } } - /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. - /// Multiple `has` filters can be chained to check if multiple properties are present. + /// Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. + /// Multiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/has`. - public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? + public var has: Components.Parameters.DependabotAlertCommaSeparatedHas? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. - @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertScope: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/scope`. - public var scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? + public var scope: Components.Parameters.DependabotAlertScope? /// - Remark: Generated from `#/components/parameters/dependabot-alert-sort`. - @frozen public enum dependabot_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case epss_percentage = "epss_percentage" + case epssPercentage = "epss_percentage" } /// The property by which to sort the results. /// `created` means when the alert was created. @@ -4047,40 +4056,40 @@ public enum Operations { /// `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/sort`. - public var sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.DependabotAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// This parameter must not be used in combination with `last`. /// Instead, use `per_page` in combination with `after` to fetch the first page of results. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/first`. - public var first: Components.Parameters.pagination_hyphen_first? + public var first: Components.Parameters.PaginationFirst? /// **Deprecated**. The number of results per page (max 100), starting from the last matching result. /// This parameter must not be used in combination with `first`. /// Instead, use `per_page` in combination with `before` to fetch the last page of results. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/last`. - public var last: Components.Parameters.pagination_hyphen_last? + public var last: Components.Parameters.PaginationLast? /// 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: @@ -4088,8 +4097,8 @@ public enum Operations { /// - severity: A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. - /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: - /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// - epssPercentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. @@ -4097,28 +4106,28 @@ public enum Operations { /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - first: **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// - last: **Deprecated**. The number of results per page (max 100), starting from the last matching result. - /// - 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)." + /// - perPage: 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)." public init( - state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? = nil, - severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? = nil, - ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? = nil, - package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, - epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, - has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, - scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, - sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - first: Components.Parameters.pagination_hyphen_first? = nil, - last: Components.Parameters.pagination_hyphen_last? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + state: Components.Parameters.DependabotAlertCommaSeparatedStates? = nil, + severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? = nil, + ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? = nil, + package: Components.Parameters.DependabotAlertCommaSeparatedPackages? = nil, + epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? = nil, + has: Components.Parameters.DependabotAlertCommaSeparatedHas? = nil, + scope: Components.Parameters.DependabotAlertScope? = nil, + sort: Components.Parameters.DependabotAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + first: Components.Parameters.PaginationFirst? = nil, + last: Components.Parameters.PaginationLast? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.state = state self.severity = severity self.ecosystem = ecosystem self.package = package - self.epss_percentage = epss_percentage + self.epssPercentage = epssPercentage self.has = has self.scope = scope self.sort = sort @@ -4127,22 +4136,22 @@ public enum Operations { self.after = after self.first = first self.last = last - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query + public var query: Operations.DependabotListAlertsForEnterprise.Input.Query /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.DependabotListAlertsForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4150,9 +4159,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.DependabotListAlertsForEnterprise.Input.Path, + query: Operations.DependabotListAlertsForEnterprise.Input.Query = .init(), + headers: Operations.DependabotListAlertsForEnterprise.Input.Headers = .init() ) { self.path = path self.query = query @@ -4164,12 +4173,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository]) + case json([Components.Schemas.DependabotAlertWithRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository] { + public var json: [Components.Schemas.DependabotAlertWithRepository] { get throws { switch self { case let .json(body): @@ -4179,12 +4188,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.DependabotListAlertsForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body) { + public init(body: Operations.DependabotListAlertsForEnterprise.Output.Ok.Body) { self.body = body } } @@ -4193,12 +4202,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.DependabotListAlertsForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.DependabotListAlertsForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -4216,12 +4225,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4239,12 +4256,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4262,12 +4279,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4285,12 +4302,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -4344,7 +4361,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)`. - public enum dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org { + public enum DependabotListAlertsForOrg { public static let id: Swift.String = "dependabot/list-alerts-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/path`. @@ -4352,16 +4369,16 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path + public var path: Operations.DependabotListAlertsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query`. public struct Query: Sendable, Hashable { /// A comma-separated list of states. If specified, only alerts with these states will be returned. @@ -4369,23 +4386,23 @@ public enum Operations { /// Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/state`. - public var state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? + public var state: Components.Parameters.DependabotAlertCommaSeparatedStates? /// A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// /// Can be: `low`, `medium`, `high`, `critical` /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/severity`. - public var severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? + public var severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// /// Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/ecosystem`. - public var ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? + public var ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? /// A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/package`. - public var package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? + public var package: Components.Parameters.DependabotAlertCommaSeparatedPackages? /// CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: /// - An exact number (`n`) /// - Comparators such as `>n`, `=n`, `<=n` @@ -4394,19 +4411,19 @@ public enum Operations { /// Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/epss_percentage`. - public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + public var epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. - @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + @frozen public enum DependabotAlertCommaSeparatedHas: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. - @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case patch = "patch" } /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + public typealias Case2Payload = [Components.Parameters.DependabotAlertCommaSeparatedHas.Case2PayloadPayload] /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + case case2(Components.Parameters.DependabotAlertCommaSeparatedHas.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -4436,25 +4453,25 @@ public enum Operations { } } } - /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. - /// Multiple `has` filters can be chained to check if multiple properties are present. + /// Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. + /// Multiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/has`. - public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? + public var has: Components.Parameters.DependabotAlertCommaSeparatedHas? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. - @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertScope: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/scope`. - public var scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? + public var scope: Components.Parameters.DependabotAlertScope? /// - Remark: Generated from `#/components/parameters/dependabot-alert-sort`. - @frozen public enum dependabot_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case epss_percentage = "epss_percentage" + case epssPercentage = "epss_percentage" } /// The property by which to sort the results. /// `created` means when the alert was created. @@ -4462,40 +4479,40 @@ public enum Operations { /// `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/sort`. - public var sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.DependabotAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// This parameter must not be used in combination with `last`. /// Instead, use `per_page` in combination with `after` to fetch the first page of results. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/first`. - public var first: Components.Parameters.pagination_hyphen_first? + public var first: Components.Parameters.PaginationFirst? /// **Deprecated**. The number of results per page (max 100), starting from the last matching result. /// This parameter must not be used in combination with `first`. /// Instead, use `per_page` in combination with `before` to fetch the last page of results. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/last`. - public var last: Components.Parameters.pagination_hyphen_last? + public var last: Components.Parameters.PaginationLast? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: @@ -4503,8 +4520,8 @@ public enum Operations { /// - severity: A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. - /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: - /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// - epssPercentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. @@ -4512,28 +4529,28 @@ public enum Operations { /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - first: **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// - last: **Deprecated**. The number of results per page (max 100), starting from the last matching result. - /// - 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)." + /// - perPage: 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)." public init( - state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? = nil, - severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? = nil, - ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? = nil, - package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, - epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, - has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, - scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, - sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - first: Components.Parameters.pagination_hyphen_first? = nil, - last: Components.Parameters.pagination_hyphen_last? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + state: Components.Parameters.DependabotAlertCommaSeparatedStates? = nil, + severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? = nil, + ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? = nil, + package: Components.Parameters.DependabotAlertCommaSeparatedPackages? = nil, + epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? = nil, + has: Components.Parameters.DependabotAlertCommaSeparatedHas? = nil, + scope: Components.Parameters.DependabotAlertScope? = nil, + sort: Components.Parameters.DependabotAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + first: Components.Parameters.PaginationFirst? = nil, + last: Components.Parameters.PaginationLast? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.state = state self.severity = severity self.ecosystem = ecosystem self.package = package - self.epss_percentage = epss_percentage + self.epssPercentage = epssPercentage self.has = has self.scope = scope self.sort = sort @@ -4542,22 +4559,22 @@ public enum Operations { self.after = after self.first = first self.last = last - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query + public var query: Operations.DependabotListAlertsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.DependabotListAlertsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4565,9 +4582,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.DependabotListAlertsForOrg.Input.Path, + query: Operations.DependabotListAlertsForOrg.Input.Query = .init(), + headers: Operations.DependabotListAlertsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -4579,12 +4596,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository]) + case json([Components.Schemas.DependabotAlertWithRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.dependabot_hyphen_alert_hyphen_with_hyphen_repository] { + public var json: [Components.Schemas.DependabotAlertWithRepository] { get throws { switch self { case let .json(body): @@ -4594,12 +4611,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.DependabotListAlertsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.DependabotListAlertsForOrg.Output.Ok.Body) { self.body = body } } @@ -4608,12 +4625,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.DependabotListAlertsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.DependabotListAlertsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -4631,12 +4648,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4654,12 +4679,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -4677,12 +4702,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4700,12 +4725,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4723,12 +4748,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/alerts/get(dependabot/list-alerts-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -4748,14 +4773,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -4766,14 +4791,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -4787,7 +4812,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/get(dependabot/list-org-secrets)`. - public enum dependabot_sol_list_hyphen_org_hyphen_secrets { + public enum DependabotListOrgSecrets { public static let id: Swift.String = "dependabot/list-org-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/path`. @@ -4795,52 +4820,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Path + public var path: Operations.DependabotListOrgSecrets.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Query + public var query: Operations.DependabotListOrgSecrets.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Headers + public var headers: Operations.DependabotListOrgSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4848,9 +4873,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() + path: Operations.DependabotListOrgSecrets.Input.Path, + query: Operations.DependabotListOrgSecrets.Input.Query = .init(), + headers: Operations.DependabotListOrgSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -4862,49 +4887,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.DependabotListOrgSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.organization_hyphen_dependabot_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.OrganizationDependabotSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.organization_hyphen_dependabot_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.OrganizationDependabotSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/GET/responses/200/content/application\/json`. - case json(Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.DependabotListOrgSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.DependabotListOrgSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4914,15 +4939,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + public var body: Operations.DependabotListOrgSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + headers: Operations.DependabotListOrgSecrets.Output.Ok.Headers = .init(), + body: Operations.DependabotListOrgSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4933,12 +4958,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/get(dependabot/list-org-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok) + case ok(Operations.DependabotListOrgSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_org_hyphen_secrets.Output.Ok { + public var ok: Operations.DependabotListOrgSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -4991,7 +5016,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/public-key/get(dependabot/get-org-public-key)`. - public enum dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key { + public enum DependabotGetOrgPublicKey { public static let id: Swift.String = "dependabot/get-org-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/public-key/GET/path`. @@ -4999,36 +5024,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/public-key/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path + public var path: Operations.DependabotGetOrgPublicKey.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.DependabotGetOrgPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.DependabotGetOrgPublicKey.Input.Path, + headers: Operations.DependabotGetOrgPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5039,12 +5064,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependabot_hyphen_public_hyphen_key) + case json(Components.Schemas.DependabotPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependabot_hyphen_public_hyphen_key { + public var json: Components.Schemas.DependabotPublicKey { get throws { switch self { case let .json(body): @@ -5054,12 +5079,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.DependabotGetOrgPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.DependabotGetOrgPublicKey.Output.Ok.Body) { self.body = body } } @@ -5068,12 +5093,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/public-key/get(dependabot/get-org-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.DependabotGetOrgPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.DependabotGetOrgPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -5125,7 +5150,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/get(dependabot/get-org-secret)`. - public enum dependabot_sol_get_hyphen_org_hyphen_secret { + public enum DependabotGetOrgSecret { public static let id: Swift.String = "dependabot/get-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/path`. @@ -5133,45 +5158,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotGetOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.DependabotGetOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.DependabotGetOrgSecret.Input.Path, + headers: Operations.DependabotGetOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5182,12 +5207,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_dependabot_hyphen_secret) + case json(Components.Schemas.OrganizationDependabotSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_dependabot_hyphen_secret { + public var json: Components.Schemas.OrganizationDependabotSecret { get throws { switch self { case let .json(body): @@ -5197,12 +5222,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.DependabotGetOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.DependabotGetOrgSecret.Output.Ok.Body) { self.body = body } } @@ -5211,12 +5236,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/get(dependabot/get-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.DependabotGetOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_get_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.DependabotGetOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -5269,7 +5294,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)`. - public enum dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret { + public enum DependabotCreateOrUpdateOrgSecret { public static let id: Swift.String = "dependabot/create-or-update-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/path`. @@ -5277,53 +5302,53 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotCreateOrUpdateOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.DependabotCreateOrUpdateOrgSecret.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String? + public var keyId: Swift.String? /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -5331,40 +5356,40 @@ public enum Operations { /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/visibility`. - public var visibility: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload /// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.String]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. /// - visibility: Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - /// - selected_repository_ids: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. + /// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. public init( - encrypted_value: Swift.String? = nil, - key_id: Swift.String? = nil, - visibility: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload, - selected_repository_ids: [Swift.String]? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String? = nil, + visibility: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload, + selectedRepositoryIds: [Swift.String]? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.DependabotCreateOrUpdateOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5372,9 +5397,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + path: Operations.DependabotCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.DependabotCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.DependabotCreateOrUpdateOrgSecret.Input.Body ) { self.path = path self.headers = headers @@ -5386,12 +5411,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -5401,12 +5426,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + public var body: Operations.DependabotCreateOrUpdateOrgSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body) { + public init(body: Operations.DependabotCreateOrUpdateOrgSecret.Output.Created.Body) { self.body = body } } @@ -5415,12 +5440,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created) + case created(Operations.DependabotCreateOrUpdateOrgSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created { + public var created: Operations.DependabotCreateOrUpdateOrgSecret.Output.Created { get throws { switch self { case let .created(response): @@ -5442,12 +5467,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotCreateOrUpdateOrgSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotCreateOrUpdateOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5499,7 +5532,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)`. - public enum dependabot_sol_delete_hyphen_org_hyphen_secret { + public enum DependabotDeleteOrgSecret { public static let id: Swift.String = "dependabot/delete-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/DELETE/path`. @@ -5507,30 +5540,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotDeleteOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.DependabotDeleteOrgSecret.Input.Path) { self.path = path } } @@ -5544,12 +5577,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotDeleteOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/delete(dependabot/delete-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_delete_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotDeleteOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5577,7 +5618,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/get(dependabot/list-selected-repos-for-org-secret)`. - public enum dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum DependabotListSelectedReposForOrgSecret { public static let id: Swift.String = "dependabot/list-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/path`. @@ -5585,61 +5626,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotListSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query + public var query: Operations.DependabotListSelectedReposForOrgSecret.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.DependabotListSelectedReposForOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5647,9 +5688,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.DependabotListSelectedReposForOrgSecret.Input.Path, + query: Operations.DependabotListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.DependabotListSelectedReposForOrgSecret.Input.Headers = .init() ) { self.path = path self.query = query @@ -5661,35 +5702,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Int, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload) + case json(Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload { + public var json: Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5699,12 +5740,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.DependabotListSelectedReposForOrgSecret.Output.Ok.Body) { self.body = body } } @@ -5713,12 +5754,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/get(dependabot/list-selected-repos-for-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.DependabotListSelectedReposForOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.DependabotListSelectedReposForOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -5772,7 +5813,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)`. - public enum dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum DependabotSetSelectedReposForOrgSecret { public static let id: Swift.String = "dependabot/set-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/path`. @@ -5780,56 +5821,56 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotSetSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.DependabotSetSelectedReposForOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.DependabotSetSelectedReposForOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - body: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + path: Operations.DependabotSetSelectedReposForOrgSecret.Input.Path, + body: Operations.DependabotSetSelectedReposForOrgSecret.Input.Body ) { self.path = path self.body = body @@ -5845,12 +5886,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotSetSelectedReposForOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/put(dependabot/set-selected-repos-for-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotSetSelectedReposForOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5879,7 +5928,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)`. - public enum dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret { + public enum DependabotAddSelectedRepoToOrgSecret { public static let id: Swift.String = "dependabot/add-selected-repo-to-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/PUT/path`. @@ -5887,35 +5936,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotAddSelectedRepoToOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.DependabotAddSelectedRepoToOrgSecret.Input.Path) { self.path = path } } @@ -5929,12 +5978,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotAddSelectedRepoToOrgSecret.Output.NoContent) + /// No Content when repository was added to the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotAddSelectedRepoToOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5956,12 +6013,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.DependabotAddSelectedRepoToOrgSecret.Output.Conflict) + /// Conflict when visibility type is not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/put(dependabot/add-selected-repo-to-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.dependabot_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.DependabotAddSelectedRepoToOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -5990,7 +6055,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)`. - public enum dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret { + public enum DependabotRemoveSelectedRepoFromOrgSecret { public static let id: Swift.String = "dependabot/remove-selected-repo-from-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/DELETE/path`. @@ -5998,35 +6063,35 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path) { + public init(path: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Input.Path) { self.path = path } } @@ -6040,12 +6105,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output.NoContent) + /// Response when repository was removed from the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6067,12 +6140,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output.Conflict) + /// Conflict when visibility type not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}/delete(dependabot/remove-selected-repo-from-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.dependabot_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.DependabotRemoveSelectedRepoFromOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -6097,7 +6178,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)`. - public enum dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo { + public enum DependabotListAlertsForRepo { public static let id: Swift.String = "dependabot/list-alerts-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/path`. @@ -6105,25 +6186,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.DependabotListAlertsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query`. public struct Query: Sendable, Hashable { /// A comma-separated list of states. If specified, only alerts with these states will be returned. @@ -6131,27 +6212,27 @@ public enum Operations { /// Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/state`. - public var state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? + public var state: Components.Parameters.DependabotAlertCommaSeparatedStates? /// A comma-separated list of severities. If specified, only alerts with these severities will be returned. /// /// Can be: `low`, `medium`, `high`, `critical` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/severity`. - public var severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? + public var severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? /// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// /// Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/ecosystem`. - public var ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? + public var ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? /// A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/package`. - public var package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? + public var package: Components.Parameters.DependabotAlertCommaSeparatedPackages? /// A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/manifest`. - public var manifest: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_manifests? + public var manifest: Components.Parameters.DependabotAlertCommaSeparatedManifests? /// CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: /// - An exact number (`n`) /// - Comparators such as `>n`, `=n`, `<=n` @@ -6160,19 +6241,19 @@ public enum Operations { /// Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/epss_percentage`. - public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + public var epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. - @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + @frozen public enum DependabotAlertCommaSeparatedHas: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. - @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case patch = "patch" } /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + public typealias Case2Payload = [Components.Parameters.DependabotAlertCommaSeparatedHas.Case2PayloadPayload] /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. - case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + case case2(Components.Parameters.DependabotAlertCommaSeparatedHas.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -6202,25 +6283,25 @@ public enum Operations { } } } - /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. - /// Multiple `has` filters can be chained to check if multiple properties are present. + /// Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. + /// Multiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/has`. - public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? + public var has: Components.Parameters.DependabotAlertCommaSeparatedHas? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. - @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertScope: String, Codable, Hashable, Sendable, CaseIterable { case development = "development" case runtime = "runtime" } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/scope`. - public var scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? + public var scope: Components.Parameters.DependabotAlertScope? /// - Remark: Generated from `#/components/parameters/dependabot-alert-sort`. - @frozen public enum dependabot_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case epss_percentage = "epss_percentage" + case epssPercentage = "epss_percentage" } /// The property by which to sort the results. /// `created` means when the alert was created. @@ -6228,16 +6309,16 @@ public enum Operations { /// `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/sort`. - public var sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.DependabotAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/page`. @@ -6247,27 +6328,27 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/per_page`. @available(*, deprecated) - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// This parameter must not be used in combination with `last`. /// Instead, use `per_page` in combination with `after` to fetch the first page of results. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/first`. - public var first: Components.Parameters.pagination_hyphen_first? + public var first: Components.Parameters.PaginationFirst? /// **Deprecated**. The number of results per page (max 100), starting from the last matching result. /// This parameter must not be used in combination with `first`. /// Instead, use `per_page` in combination with `before` to fetch the last page of results. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/last`. - public var last: Components.Parameters.pagination_hyphen_last? + public var last: Components.Parameters.PaginationLast? /// Creates a new `Query`. /// /// - Parameters: @@ -6276,66 +6357,66 @@ public enum Operations { /// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// - manifest: A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. - /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: - /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// - epssPercentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. /// - page: **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. - /// - 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - first: **Deprecated**. The number of results per page (max 100), starting from the first matching result. /// - last: **Deprecated**. The number of results per page (max 100), starting from the last matching result. public init( - state: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_states? = nil, - severity: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_severities? = nil, - ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? = nil, - package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, - manifest: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_manifests? = nil, - epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, - has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, - scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, - sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, + state: Components.Parameters.DependabotAlertCommaSeparatedStates? = nil, + severity: Components.Parameters.DependabotAlertCommaSeparatedSeverities? = nil, + ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? = nil, + package: Components.Parameters.DependabotAlertCommaSeparatedPackages? = nil, + manifest: Components.Parameters.DependabotAlertCommaSeparatedManifests? = nil, + epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? = nil, + has: Components.Parameters.DependabotAlertCommaSeparatedHas? = nil, + scope: Components.Parameters.DependabotAlertScope? = nil, + sort: Components.Parameters.DependabotAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, page: Swift.Int? = nil, - per_page: Swift.Int? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - first: Components.Parameters.pagination_hyphen_first? = nil, - last: Components.Parameters.pagination_hyphen_last? = nil + perPage: Swift.Int? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + first: Components.Parameters.PaginationFirst? = nil, + last: Components.Parameters.PaginationLast? = nil ) { self.state = state self.severity = severity self.ecosystem = ecosystem self.package = package self.manifest = manifest - self.epss_percentage = epss_percentage + self.epssPercentage = epssPercentage self.has = has self.scope = scope self.sort = sort self.direction = direction self.page = page - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.first = first self.last = last } } - public var query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.DependabotListAlertsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.DependabotListAlertsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6343,9 +6424,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.DependabotListAlertsForRepo.Input.Path, + query: Operations.DependabotListAlertsForRepo.Input.Query = .init(), + headers: Operations.DependabotListAlertsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -6357,12 +6438,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.dependabot_hyphen_alert]) + case json([Components.Schemas.DependabotAlert]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.dependabot_hyphen_alert] { + public var json: [Components.Schemas.DependabotAlert] { get throws { switch self { case let .json(body): @@ -6372,12 +6453,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.DependabotListAlertsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.DependabotListAlertsForRepo.Output.Ok.Body) { self.body = body } } @@ -6386,12 +6467,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.DependabotListAlertsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.DependabotListAlertsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -6409,12 +6490,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6432,12 +6521,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -6455,12 +6544,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6478,12 +6567,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6501,12 +6590,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/get(dependabot/list-alerts-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -6526,14 +6615,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -6544,14 +6633,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -6562,7 +6651,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)`. - public enum dependabot_sol_get_hyphen_alert { + public enum DependabotGetAlert { public static let id: Swift.String = "dependabot/get-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/path`. @@ -6570,55 +6659,55 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies a Dependabot alert in its repository. /// You can find this at the end of the URL for a Dependabot alert within GitHub, /// or in `number` fields in the response from the /// `GET /repos/{owner}/{repo}/dependabot/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/path/alert_number`. - public var alert_number: Components.Parameters.dependabot_hyphen_alert_hyphen_number + public var alertNumber: Components.Parameters.DependabotAlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies a Dependabot alert in its repository. + /// - alertNumber: The number that identifies a Dependabot alert in its repository. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.dependabot_hyphen_alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.DependabotAlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.dependabot_sol_get_hyphen_alert.Input.Path + public var path: Operations.DependabotGetAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_get_hyphen_alert.Input.Headers + public var headers: Operations.DependabotGetAlert.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependabot_sol_get_hyphen_alert.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_alert.Input.Headers = .init() + path: Operations.DependabotGetAlert.Input.Path, + headers: Operations.DependabotGetAlert.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6629,12 +6718,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependabot_hyphen_alert) + case json(Components.Schemas.DependabotAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependabot_hyphen_alert { + public var json: Components.Schemas.DependabotAlert { get throws { switch self { case let .json(body): @@ -6644,12 +6733,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_get_hyphen_alert.Output.Ok.Body + public var body: Operations.DependabotGetAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_get_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.DependabotGetAlert.Output.Ok.Body) { self.body = body } } @@ -6658,12 +6747,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_get_hyphen_alert.Output.Ok) + case ok(Operations.DependabotGetAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_get_hyphen_alert.Output.Ok { + public var ok: Operations.DependabotGetAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -6681,12 +6770,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6704,12 +6801,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6727,12 +6824,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/get(dependabot/get-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6784,7 +6881,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)`. - public enum dependabot_sol_update_hyphen_alert { + public enum DependabotUpdateAlert { public static let id: Swift.String = "dependabot/update-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/path`. @@ -6792,56 +6889,56 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies a Dependabot alert in its repository. /// You can find this at the end of the URL for a Dependabot alert within GitHub, /// or in `number` fields in the response from the /// `GET /repos/{owner}/{repo}/dependabot/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/path/alert_number`. - public var alert_number: Components.Parameters.dependabot_hyphen_alert_hyphen_number + public var alertNumber: Components.Parameters.DependabotAlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies a Dependabot alert in its repository. + /// - alertNumber: The number that identifies a Dependabot alert in its repository. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.dependabot_hyphen_alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.DependabotAlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.dependabot_sol_update_hyphen_alert.Input.Path + public var path: Operations.DependabotUpdateAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_update_hyphen_alert.Input.Headers + public var headers: Operations.DependabotUpdateAlert.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The state of the Dependabot alert. /// A `dismissed_reason` must be provided when setting the state to `dismissed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case dismissed = "dismissed" case open = "open" } @@ -6849,58 +6946,58 @@ public enum Operations { /// A `dismissed_reason` must be provided when setting the state to `dismissed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json/state`. - public var state: Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.statePayload + public var state: Operations.DependabotUpdateAlert.Input.Body.JsonPayload.StatePayload /// **Required when `state` is `dismissed`.** A reason for dismissing the alert. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json/dismissed_reason`. - @frozen public enum dismissed_reasonPayload: String, Codable, Hashable, Sendable { - case fix_started = "fix_started" + @frozen public enum DismissedReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { + case fixStarted = "fix_started" case inaccurate = "inaccurate" - case no_bandwidth = "no_bandwidth" - case not_used = "not_used" - case tolerable_risk = "tolerable_risk" + case noBandwidth = "no_bandwidth" + case notUsed = "not_used" + case tolerableRisk = "tolerable_risk" } /// **Required when `state` is `dismissed`.** A reason for dismissing the alert. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json/dismissed_reason`. - public var dismissed_reason: Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.dismissed_reasonPayload? + public var dismissedReason: Operations.DependabotUpdateAlert.Input.Body.JsonPayload.DismissedReasonPayload? /// An optional comment associated with dismissing the alert. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/json/dismissed_comment`. - public var dismissed_comment: Swift.String? - /// Creates a new `jsonPayload`. + public var dismissedComment: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: The state of the Dependabot alert. - /// - dismissed_reason: **Required when `state` is `dismissed`.** A reason for dismissing the alert. - /// - dismissed_comment: An optional comment associated with dismissing the alert. + /// - dismissedReason: **Required when `state` is `dismissed`.** A reason for dismissing the alert. + /// - dismissedComment: An optional comment associated with dismissing the alert. public init( - state: Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.statePayload, - dismissed_reason: Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.dismissed_reasonPayload? = nil, - dismissed_comment: Swift.String? = nil + state: Operations.DependabotUpdateAlert.Input.Body.JsonPayload.StatePayload, + dismissedReason: Operations.DependabotUpdateAlert.Input.Body.JsonPayload.DismissedReasonPayload? = nil, + dismissedComment: Swift.String? = nil ) { self.state = state - self.dismissed_reason = dismissed_reason - self.dismissed_comment = dismissed_comment + self.dismissedReason = dismissedReason + self.dismissedComment = dismissedComment } public enum CodingKeys: String, CodingKey { case state - case dismissed_reason - case dismissed_comment + case dismissedReason = "dismissed_reason" + case dismissedComment = "dismissed_comment" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - state = try container.decode( - Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.statePayload.self, + self.state = try container.decode( + Operations.DependabotUpdateAlert.Input.Body.JsonPayload.StatePayload.self, forKey: .state ) - dismissed_reason = try container.decodeIfPresent( - Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload.dismissed_reasonPayload.self, - forKey: .dismissed_reason + self.dismissedReason = try container.decodeIfPresent( + Operations.DependabotUpdateAlert.Input.Body.JsonPayload.DismissedReasonPayload.self, + forKey: .dismissedReason ) - dismissed_comment = try container.decodeIfPresent( + self.dismissedComment = try container.decodeIfPresent( Swift.String.self, - forKey: .dismissed_comment + forKey: .dismissedComment ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "state", @@ -6910,9 +7007,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.dependabot_sol_update_hyphen_alert.Input.Body.jsonPayload) + case json(Operations.DependabotUpdateAlert.Input.Body.JsonPayload) } - public var body: Operations.dependabot_sol_update_hyphen_alert.Input.Body + public var body: Operations.DependabotUpdateAlert.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6920,9 +7017,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.dependabot_sol_update_hyphen_alert.Input.Path, - headers: Operations.dependabot_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.dependabot_sol_update_hyphen_alert.Input.Body + path: Operations.DependabotUpdateAlert.Input.Path, + headers: Operations.DependabotUpdateAlert.Input.Headers = .init(), + body: Operations.DependabotUpdateAlert.Input.Body ) { self.path = path self.headers = headers @@ -6934,12 +7031,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/{alert_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.dependabot_hyphen_alert) + case json(Components.Schemas.DependabotAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependabot_hyphen_alert { + public var json: Components.Schemas.DependabotAlert { get throws { switch self { case let .json(body): @@ -6949,12 +7046,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_update_hyphen_alert.Output.Ok.Body + public var body: Operations.DependabotUpdateAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_update_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.DependabotUpdateAlert.Output.Ok.Body) { self.body = body } } @@ -6963,12 +7060,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_update_hyphen_alert.Output.Ok) + case ok(Operations.DependabotUpdateAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_update_hyphen_alert.Output.Ok { + public var ok: Operations.DependabotUpdateAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -6986,12 +7083,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7009,12 +7106,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7032,12 +7129,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7055,12 +7152,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -7078,12 +7175,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/alerts/{alert_number}/patch(dependabot/update-alert)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -7103,14 +7200,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -7121,14 +7218,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -7142,7 +7239,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/get(dependabot/list-repo-secrets)`. - public enum dependabot_sol_list_hyphen_repo_hyphen_secrets { + public enum DependabotListRepoSecrets { public static let id: Swift.String = "dependabot/list-repo-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/path`. @@ -7150,61 +7247,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Path + public var path: Operations.DependabotListRepoSecrets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Query + public var query: Operations.DependabotListRepoSecrets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Headers + public var headers: Operations.DependabotListRepoSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7212,9 +7309,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() + path: Operations.DependabotListRepoSecrets.Input.Path, + query: Operations.DependabotListRepoSecrets.Input.Query = .init(), + headers: Operations.DependabotListRepoSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -7226,49 +7323,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.DependabotListRepoSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.dependabot_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.DependabotSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.dependabot_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.DependabotSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/GET/responses/200/content/application\/json`. - case json(Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.DependabotListRepoSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.DependabotListRepoSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -7278,15 +7375,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + public var body: Operations.DependabotListRepoSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + headers: Operations.DependabotListRepoSecrets.Output.Ok.Headers = .init(), + body: Operations.DependabotListRepoSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7297,12 +7394,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/get(dependabot/list-repo-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok) + case ok(Operations.DependabotListRepoSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_list_hyphen_repo_hyphen_secrets.Output.Ok { + public var ok: Operations.DependabotListRepoSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -7356,7 +7453,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/public-key/get(dependabot/get-repo-public-key)`. - public enum dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key { + public enum DependabotGetRepoPublicKey { public static let id: Swift.String = "dependabot/get-repo-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/path`. @@ -7364,45 +7461,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path + public var path: Operations.DependabotGetRepoPublicKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.DependabotGetRepoPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.DependabotGetRepoPublicKey.Input.Path, + headers: Operations.DependabotGetRepoPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7413,12 +7510,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependabot_hyphen_public_hyphen_key) + case json(Components.Schemas.DependabotPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependabot_hyphen_public_hyphen_key { + public var json: Components.Schemas.DependabotPublicKey { get throws { switch self { case let .json(body): @@ -7428,12 +7525,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.DependabotGetRepoPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.DependabotGetRepoPublicKey.Output.Ok.Body) { self.body = body } } @@ -7442,12 +7539,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/public-key/get(dependabot/get-repo-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.DependabotGetRepoPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.DependabotGetRepoPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -7499,7 +7596,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/get(dependabot/get-repo-secret)`. - public enum dependabot_sol_get_hyphen_repo_hyphen_secret { + public enum DependabotGetRepoSecret { public static let id: Swift.String = "dependabot/get-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/path`. @@ -7507,52 +7604,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.DependabotGetRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.DependabotGetRepoSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() + path: Operations.DependabotGetRepoSecret.Input.Path, + headers: Operations.DependabotGetRepoSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7563,12 +7660,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependabot_hyphen_secret) + case json(Components.Schemas.DependabotSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependabot_hyphen_secret { + public var json: Components.Schemas.DependabotSecret { get throws { switch self { case let .json(body): @@ -7578,12 +7675,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + public var body: Operations.DependabotGetRepoSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.DependabotGetRepoSecret.Output.Ok.Body) { self.body = body } } @@ -7592,12 +7689,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/get(dependabot/get-repo-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output.Ok) + case ok(Operations.DependabotGetRepoSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependabot_sol_get_hyphen_repo_hyphen_secret.Output.Ok { + public var ok: Operations.DependabotGetRepoSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -7650,7 +7747,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)`. - public enum dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret { + public enum DependabotCreateOrUpdateRepoSecret { public static let id: Swift.String = "dependabot/create-or-update-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/path`. @@ -7658,77 +7755,77 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.DependabotCreateOrUpdateRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.DependabotCreateOrUpdateRepoSecret.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String? - /// Creates a new `jsonPayload`. + public var keyId: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. public init( - encrypted_value: Swift.String? = nil, - key_id: Swift.String? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.DependabotCreateOrUpdateRepoSecret.Input.Body.JsonPayload) } - public var body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + public var body: Operations.DependabotCreateOrUpdateRepoSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7736,9 +7833,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + path: Operations.DependabotCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.DependabotCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.DependabotCreateOrUpdateRepoSecret.Input.Body ) { self.path = path self.headers = headers @@ -7750,12 +7847,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -7765,12 +7862,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + public var body: Operations.DependabotCreateOrUpdateRepoSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body) { + public init(body: Operations.DependabotCreateOrUpdateRepoSecret.Output.Created.Body) { self.body = body } } @@ -7779,12 +7876,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created) + case created(Operations.DependabotCreateOrUpdateRepoSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created { + public var created: Operations.DependabotCreateOrUpdateRepoSecret.Output.Created { get throws { switch self { case let .created(response): @@ -7806,12 +7903,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotCreateOrUpdateRepoSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/put(dependabot/create-or-update-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotCreateOrUpdateRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7863,7 +7968,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)`. - public enum dependabot_sol_delete_hyphen_repo_hyphen_secret { + public enum DependabotDeleteRepoSecret { public static let id: Swift.String = "dependabot/delete-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/DELETE/path`. @@ -7871,37 +7976,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.DependabotDeleteRepoSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Input.Path) { + public init(path: Operations.DependabotDeleteRepoSecret.Input.Path) { self.path = path } } @@ -7915,12 +8020,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.DependabotDeleteRepoSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependabot/secrets/{secret_name}/delete(dependabot/delete-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.dependabot_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.DependabotDeleteRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): From 04f9a911547c04d8a38d34a38f333feab1939a19 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:01:29 -0700 Subject: [PATCH 12/46] Commit via running ake Sources/dependency-graph --- Sources/dependency-graph/Client.swift | 48 +- Sources/dependency-graph/Types.swift | 727 +++++++++++++------------- 2 files changed, 392 insertions(+), 383 deletions(-) diff --git a/Sources/dependency-graph/Client.swift b/Sources/dependency-graph/Client.swift index 07f9372df0..1714051070 100644 --- a/Sources/dependency-graph/Client.swift +++ b/Sources/dependency-graph/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)`. - public func dependency_hyphen_graph_sol_diff_hyphen_range(_ input: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input) async throws -> Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output { + public func dependencyGraphDiffRange(_ input: Operations.DependencyGraphDiffRange.Input) async throws -> Operations.DependencyGraphDiffRange.Output { try await client.send( input: input, - forOperation: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.id, + forOperation: Operations.DependencyGraphDiffRange.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependency-graph/compare/{}", @@ -78,13 +78,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.DependencyGraphDiffRange.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Body + let body: Operations.DependencyGraphDiffRange.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -94,7 +94,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependency_hyphen_graph_hyphen_diff.self, + Components.Schemas.DependencyGraphDiff.self, from: responseBody, transforming: { value in .json(value) @@ -109,7 +109,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -119,7 +119,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -131,7 +131,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.dependency_review_forbidden.Body + let body: Components.Responses.DependencyReviewForbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -141,7 +141,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -169,10 +169,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/sbom`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)`. - public func dependency_hyphen_graph_sol_export_hyphen_sbom(_ input: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input) async throws -> Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output { + public func dependencyGraphExportSbom(_ input: Operations.DependencyGraphExportSbom.Input) async throws -> Operations.DependencyGraphExportSbom.Output { try await client.send( input: input, - forOperation: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.id, + forOperation: Operations.DependencyGraphExportSbom.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependency-graph/sbom", @@ -195,13 +195,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.DependencyGraphExportSbom.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Body + let body: Operations.DependencyGraphExportSbom.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -211,7 +211,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.self, + Components.Schemas.DependencyGraphSpdxSbom.self, from: responseBody, transforming: { value in .json(value) @@ -226,7 +226,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -236,7 +236,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -248,7 +248,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -258,7 +258,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -290,10 +290,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dependency-graph/snapshots`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)`. - public func dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot(_ input: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input) async throws -> Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output { + public func dependencyGraphCreateRepositorySnapshot(_ input: Operations.DependencyGraphCreateRepositorySnapshot.Input) async throws -> Operations.DependencyGraphCreateRepositorySnapshot.Output { try await client.send( input: input, - forOperation: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.id, + forOperation: Operations.DependencyGraphCreateRepositorySnapshot.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dependency-graph/snapshots", @@ -326,7 +326,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body + let body: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -336,7 +336,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body.jsonPayload.self, + Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/dependency-graph/Types.swift b/Sources/dependency-graph/Types.swift index 7150249fc0..ca587a3d5e 100644 --- a/Sources/dependency-graph/Types.swift +++ b/Sources/dependency-graph/Types.swift @@ -17,14 +17,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)`. - func dependency_hyphen_graph_sol_diff_hyphen_range(_ input: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input) async throws -> Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output + func dependencyGraphDiffRange(_ input: Operations.DependencyGraphDiffRange.Input) async throws -> Operations.DependencyGraphDiffRange.Output /// Export a software bill of materials (SBOM) for a repository. /// /// Exports the software bill of materials (SBOM) for a repository in SPDX JSON format. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/sbom`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)`. - func dependency_hyphen_graph_sol_export_hyphen_sbom(_ input: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input) async throws -> Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output + func dependencyGraphExportSbom(_ input: Operations.DependencyGraphExportSbom.Input) async throws -> Operations.DependencyGraphExportSbom.Output /// Create a snapshot of dependencies for a repository /// /// Create a new snapshot of a repository's dependencies. @@ -35,7 +35,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dependency-graph/snapshots`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)`. - func dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot(_ input: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input) async throws -> Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output + func dependencyGraphCreateRepositorySnapshot(_ input: Operations.DependencyGraphCreateRepositorySnapshot.Input) async throws -> Operations.DependencyGraphCreateRepositorySnapshot.Output } /// Convenience overloads for operation inputs. @@ -46,12 +46,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)`. - public func dependency_hyphen_graph_sol_diff_hyphen_range( - path: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Path, - query: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Query = .init(), - headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Headers = .init() - ) async throws -> Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output { - try await dependency_hyphen_graph_sol_diff_hyphen_range(Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input( + public func dependencyGraphDiffRange( + path: Operations.DependencyGraphDiffRange.Input.Path, + query: Operations.DependencyGraphDiffRange.Input.Query = .init(), + headers: Operations.DependencyGraphDiffRange.Input.Headers = .init() + ) async throws -> Operations.DependencyGraphDiffRange.Output { + try await dependencyGraphDiffRange(Operations.DependencyGraphDiffRange.Input( path: path, query: query, headers: headers @@ -63,11 +63,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/sbom`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)`. - public func dependency_hyphen_graph_sol_export_hyphen_sbom( - path: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Path, - headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Headers = .init() - ) async throws -> Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output { - try await dependency_hyphen_graph_sol_export_hyphen_sbom(Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input( + public func dependencyGraphExportSbom( + path: Operations.DependencyGraphExportSbom.Input.Path, + headers: Operations.DependencyGraphExportSbom.Input.Headers = .init() + ) async throws -> Operations.DependencyGraphExportSbom.Output { + try await dependencyGraphExportSbom(Operations.DependencyGraphExportSbom.Input( path: path, headers: headers )) @@ -82,12 +82,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dependency-graph/snapshots`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)`. - public func dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot( - path: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Path, - headers: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Headers = .init(), - body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Body - ) async throws -> Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output { - try await dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot(Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input( + public func dependencyGraphCreateRepositorySnapshot( + path: Operations.DependencyGraphCreateRepositorySnapshot.Input.Path, + headers: Operations.DependencyGraphCreateRepositorySnapshot.Input.Headers = .init(), + body: Operations.DependencyGraphCreateRepositorySnapshot.Input.Body + ) async throws -> Operations.DependencyGraphCreateRepositorySnapshot.Output { + try await dependencyGraphCreateRepositorySnapshot(Operations.DependencyGraphCreateRepositorySnapshot.Input( path: path, headers: headers, body: body @@ -97,6 +97,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -112,159 +121,159 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } } - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff`. - public struct dependency_hyphen_graph_hyphen_diffPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/change_type`. - @frozen public enum change_typePayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff`. + public struct DependencyGraphDiffPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/change_type`. + @frozen public enum ChangeTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case added = "added" case removed = "removed" } - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/change_type`. - public var change_type: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.change_typePayload - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/manifest`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/change_type`. + public var changeType: Components.Schemas.DependencyGraphDiffPayload.ChangeTypePayload + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/manifest`. public var manifest: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/ecosystem`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/ecosystem`. public var ecosystem: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/name`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/version`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/version`. public var version: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/package_url`. - public var package_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/license`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/package_url`. + public var packageUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/license`. public var license: Swift.String? - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/source_repository_url`. - public var source_repository_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilitiesPayload`. - public struct vulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilitiesPayload/severity`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/source_repository_url`. + public var sourceRepositoryUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/VulnerabilitiesPayload`. + public struct VulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/VulnerabilitiesPayload/severity`. public var severity: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilitiesPayload/advisory_ghsa_id`. - public var advisory_ghsa_id: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilitiesPayload/advisory_summary`. - public var advisory_summary: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilitiesPayload/advisory_url`. - public var advisory_url: Swift.String - /// Creates a new `vulnerabilitiesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/VulnerabilitiesPayload/advisory_ghsa_id`. + public var advisoryGhsaId: Swift.String + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/VulnerabilitiesPayload/advisory_summary`. + public var advisorySummary: Swift.String + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/VulnerabilitiesPayload/advisory_url`. + public var advisoryUrl: Swift.String + /// Creates a new `VulnerabilitiesPayloadPayload`. /// /// - Parameters: /// - severity: - /// - advisory_ghsa_id: - /// - advisory_summary: - /// - advisory_url: + /// - advisoryGhsaId: + /// - advisorySummary: + /// - advisoryUrl: public init( severity: Swift.String, - advisory_ghsa_id: Swift.String, - advisory_summary: Swift.String, - advisory_url: Swift.String + advisoryGhsaId: Swift.String, + advisorySummary: Swift.String, + advisoryUrl: Swift.String ) { self.severity = severity - self.advisory_ghsa_id = advisory_ghsa_id - self.advisory_summary = advisory_summary - self.advisory_url = advisory_url + self.advisoryGhsaId = advisoryGhsaId + self.advisorySummary = advisorySummary + self.advisoryUrl = advisoryUrl } public enum CodingKeys: String, CodingKey { case severity - case advisory_ghsa_id - case advisory_summary - case advisory_url + case advisoryGhsaId = "advisory_ghsa_id" + case advisorySummary = "advisory_summary" + case advisoryUrl = "advisory_url" } } - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilities`. - public typealias vulnerabilitiesPayload = [Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.vulnerabilitiesPayloadPayload] - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/vulnerabilities`. - public var vulnerabilities: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.vulnerabilitiesPayload + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/vulnerabilities`. + public typealias VulnerabilitiesPayload = [Components.Schemas.DependencyGraphDiffPayload.VulnerabilitiesPayloadPayload] + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/vulnerabilities`. + public var vulnerabilities: Components.Schemas.DependencyGraphDiffPayload.VulnerabilitiesPayload /// Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment. /// - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/scope`. + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case unknown = "unknown" case runtime = "runtime" case development = "development" } /// Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment. /// - /// - Remark: Generated from `#/components/schemas/dependency_hyphen_graph_hyphen_diff/scope`. - public var scope: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.scopePayload - /// Creates a new `dependency_hyphen_graph_hyphen_diffPayload`. + /// - Remark: Generated from `#/components/schemas/DependencyGraphDiff/scope`. + public var scope: Components.Schemas.DependencyGraphDiffPayload.ScopePayload + /// Creates a new `DependencyGraphDiffPayload`. /// /// - Parameters: - /// - change_type: + /// - changeType: /// - manifest: /// - ecosystem: /// - name: /// - version: - /// - package_url: + /// - packageUrl: /// - license: - /// - source_repository_url: + /// - sourceRepositoryUrl: /// - vulnerabilities: /// - scope: Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment. public init( - change_type: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.change_typePayload, + changeType: Components.Schemas.DependencyGraphDiffPayload.ChangeTypePayload, manifest: Swift.String, ecosystem: Swift.String, name: Swift.String, version: Swift.String, - package_url: Swift.String? = nil, + packageUrl: Swift.String? = nil, license: Swift.String? = nil, - source_repository_url: Swift.String? = nil, - vulnerabilities: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.vulnerabilitiesPayload, - scope: Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload.scopePayload + sourceRepositoryUrl: Swift.String? = nil, + vulnerabilities: Components.Schemas.DependencyGraphDiffPayload.VulnerabilitiesPayload, + scope: Components.Schemas.DependencyGraphDiffPayload.ScopePayload ) { - self.change_type = change_type + self.changeType = changeType self.manifest = manifest self.ecosystem = ecosystem self.name = name self.version = version - self.package_url = package_url + self.packageUrl = packageUrl self.license = license - self.source_repository_url = source_repository_url + self.sourceRepositoryUrl = sourceRepositoryUrl self.vulnerabilities = vulnerabilities self.scope = scope } public enum CodingKeys: String, CodingKey { - case change_type + case changeType = "change_type" case manifest case ecosystem case name case version - case package_url + case packageUrl = "package_url" case license - case source_repository_url + case sourceRepositoryUrl = "source_repository_url" case vulnerabilities case scope } @@ -272,17 +281,17 @@ public enum Components { /// A diff of the dependencies between two commits. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-diff`. - public typealias dependency_hyphen_graph_hyphen_diff = [Components.Schemas.dependency_hyphen_graph_hyphen_diffPayload] + public typealias DependencyGraphDiff = [Components.Schemas.DependencyGraphDiffPayload] /// A schema for the SPDX JSON format returned by the Dependency Graph. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom`. - public struct dependency_hyphen_graph_hyphen_spdx_hyphen_sbom: Codable, Hashable, Sendable { + public struct DependencyGraphSpdxSbom: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom`. - public struct sbomPayload: Codable, Hashable, Sendable { + public struct SbomPayload: Codable, Hashable, Sendable { /// The SPDX identifier for the SPDX document. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/SPDXID`. - public var SPDXID: Swift.String + public var spdxid: Swift.String /// The version of the SPDX specification that this document conforms to. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/spdxVersion`. @@ -292,7 +301,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/comment`. public var comment: Swift.String? /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/creationInfo`. - public struct creationInfoPayload: Codable, Hashable, Sendable { + public struct CreationInfoPayload: Codable, Hashable, Sendable { /// The date and time the SPDX document was created. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/creationInfo/created`. @@ -301,7 +310,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/creationInfo/creators`. public var creators: [Swift.String] - /// Creates a new `creationInfoPayload`. + /// Creates a new `CreationInfoPayload`. /// /// - Parameters: /// - created: The date and time the SPDX document was created. @@ -319,7 +328,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/creationInfo`. - public var creationInfo: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.creationInfoPayload + public var creationInfo: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.CreationInfoPayload /// The name of the SPDX document. /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/name`. @@ -332,63 +341,63 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/documentNamespace`. public var documentNamespace: Swift.String - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload`. - public struct packagesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload`. + public struct PackagesPayloadPayload: Codable, Hashable, Sendable { /// A unique SPDX identifier for the package. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/SPDXID`. - public var SPDXID: Swift.String? + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/SPDXID`. + public var spdxid: Swift.String? /// The name of the package. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/name`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/name`. public var name: Swift.String? /// The version of the package. If the package does not have an exact version specified, /// a version range is given. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/versionInfo`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/versionInfo`. public var versionInfo: Swift.String? /// The location where the package can be downloaded, /// or NOASSERTION if this has not been determined. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/downloadLocation`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/downloadLocation`. public var downloadLocation: Swift.String? /// Whether the package's file content has been subjected to /// analysis during the creation of the SPDX document. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/filesAnalyzed`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/filesAnalyzed`. public var filesAnalyzed: Swift.Bool? /// The license of the package as determined while creating the SPDX document. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/licenseConcluded`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/licenseConcluded`. public var licenseConcluded: Swift.String? /// The license of the package as declared by its author, or NOASSERTION if this information /// was not available when the SPDX document was created. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/licenseDeclared`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/licenseDeclared`. public var licenseDeclared: Swift.String? /// The distribution source of this package, or NOASSERTION if this was not determined. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/supplier`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/supplier`. public var supplier: Swift.String? /// The copyright holders of the package, and any dates present with those notices, if available. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/copyrightText`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/copyrightText`. public var copyrightText: Swift.String? - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefsPayload`. - public struct externalRefsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/ExternalRefsPayload`. + public struct ExternalRefsPayloadPayload: Codable, Hashable, Sendable { /// The category of reference to an external resource this reference refers to. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefsPayload/referenceCategory`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/ExternalRefsPayload/referenceCategory`. public var referenceCategory: Swift.String /// A locator for the particular external resource this reference refers to. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefsPayload/referenceLocator`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/ExternalRefsPayload/referenceLocator`. public var referenceLocator: Swift.String /// The category of reference to an external resource this reference refers to. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefsPayload/referenceType`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/ExternalRefsPayload/referenceType`. public var referenceType: Swift.String - /// Creates a new `externalRefsPayloadPayload`. + /// Creates a new `ExternalRefsPayloadPayload`. /// /// - Parameters: /// - referenceCategory: The category of reference to an external resource this reference refers to. @@ -409,14 +418,14 @@ public enum Components { case referenceType } } - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefs`. - public typealias externalRefsPayload = [Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayloadPayload.externalRefsPayloadPayload] - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packagesPayload/externalRefs`. - public var externalRefs: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayloadPayload.externalRefsPayload? - /// Creates a new `packagesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/externalRefs`. + public typealias ExternalRefsPayload = [Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayloadPayload.ExternalRefsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/PackagesPayload/externalRefs`. + public var externalRefs: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayloadPayload.ExternalRefsPayload? + /// Creates a new `PackagesPayloadPayload`. /// /// - Parameters: - /// - SPDXID: A unique SPDX identifier for the package. + /// - spdxid: A unique SPDX identifier for the package. /// - name: The name of the package. /// - versionInfo: The version of the package. If the package does not have an exact version specified, /// - downloadLocation: The location where the package can be downloaded, @@ -427,7 +436,7 @@ public enum Components { /// - copyrightText: The copyright holders of the package, and any dates present with those notices, if available. /// - externalRefs: public init( - SPDXID: Swift.String? = nil, + spdxid: Swift.String? = nil, name: Swift.String? = nil, versionInfo: Swift.String? = nil, downloadLocation: Swift.String? = nil, @@ -436,9 +445,9 @@ public enum Components { licenseDeclared: Swift.String? = nil, supplier: Swift.String? = nil, copyrightText: Swift.String? = nil, - externalRefs: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayloadPayload.externalRefsPayload? = nil + externalRefs: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayloadPayload.ExternalRefsPayload? = nil ) { - self.SPDXID = SPDXID + self.spdxid = spdxid self.name = name self.versionInfo = versionInfo self.downloadLocation = downloadLocation @@ -450,7 +459,7 @@ public enum Components { self.externalRefs = externalRefs } public enum CodingKeys: String, CodingKey { - case SPDXID + case spdxid = "SPDXID" case name case versionInfo case downloadLocation @@ -463,24 +472,24 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packages`. - public typealias packagesPayload = [Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayloadPayload] + public typealias PackagesPayload = [Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayloadPayload] /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/packages`. - public var packages: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayload - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationshipsPayload`. - public struct relationshipsPayloadPayload: Codable, Hashable, Sendable { + public var packages: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayload + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/RelationshipsPayload`. + public struct RelationshipsPayloadPayload: Codable, Hashable, Sendable { /// The type of relationship between the two SPDX elements. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationshipsPayload/relationshipType`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/RelationshipsPayload/relationshipType`. public var relationshipType: Swift.String? /// The SPDX identifier of the package that is the source of the relationship. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationshipsPayload/spdxElementId`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/RelationshipsPayload/spdxElementId`. public var spdxElementId: Swift.String? /// The SPDX identifier of the package that is the target of the relationship. /// - /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationshipsPayload/relatedSpdxElement`. + /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/RelationshipsPayload/relatedSpdxElement`. public var relatedSpdxElement: Swift.String? - /// Creates a new `relationshipsPayloadPayload`. + /// Creates a new `RelationshipsPayloadPayload`. /// /// - Parameters: /// - relationshipType: The type of relationship between the two SPDX elements. @@ -502,13 +511,13 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationships`. - public typealias relationshipsPayload = [Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.relationshipsPayloadPayload] + public typealias RelationshipsPayload = [Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.RelationshipsPayloadPayload] /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom/relationships`. - public var relationships: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.relationshipsPayload? - /// Creates a new `sbomPayload`. + public var relationships: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.RelationshipsPayload? + /// Creates a new `SbomPayload`. /// /// - Parameters: - /// - SPDXID: The SPDX identifier for the SPDX document. + /// - spdxid: The SPDX identifier for the SPDX document. /// - spdxVersion: The version of the SPDX specification that this document conforms to. /// - comment: An optional comment about the SPDX document. /// - creationInfo: @@ -518,17 +527,17 @@ public enum Components { /// - packages: /// - relationships: public init( - SPDXID: Swift.String, + spdxid: Swift.String, spdxVersion: Swift.String, comment: Swift.String? = nil, - creationInfo: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.creationInfoPayload, + creationInfo: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.CreationInfoPayload, name: Swift.String, dataLicense: Swift.String, documentNamespace: Swift.String, - packages: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.packagesPayload, - relationships: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload.relationshipsPayload? = nil + packages: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.PackagesPayload, + relationships: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload.RelationshipsPayload? = nil ) { - self.SPDXID = SPDXID + self.spdxid = spdxid self.spdxVersion = spdxVersion self.comment = comment self.creationInfo = creationInfo @@ -539,7 +548,7 @@ public enum Components { self.relationships = relationships } public enum CodingKeys: String, CodingKey { - case SPDXID + case spdxid = "SPDXID" case spdxVersion case comment case creationInfo @@ -551,12 +560,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/dependency-graph-spdx-sbom/sbom`. - public var sbom: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload - /// Creates a new `dependency_hyphen_graph_hyphen_spdx_hyphen_sbom`. + public var sbom: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload + /// Creates a new `DependencyGraphSpdxSbom`. /// /// - Parameters: /// - sbom: - public init(sbom: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.sbomPayload) { + public init(sbom: Components.Schemas.DependencyGraphSpdxSbom.SbomPayload) { self.sbom = sbom } public enum CodingKeys: String, CodingKey { @@ -566,16 +575,16 @@ public enum Components { /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. /// /// - Remark: Generated from `#/components/schemas/metadata`. - public struct metadata: Codable, Hashable, Sendable { + public struct Metadata: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/metadata/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/metadata/additionalProperties/value1`. public var value1: Swift.String? /// - Remark: Generated from `#/components/schemas/metadata/additionalProperties/value2`. public var value2: Swift.Double? /// - Remark: Generated from `#/components/schemas/metadata/additionalProperties/value3`. public var value3: Swift.Bool? - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - value1: @@ -593,25 +602,25 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try decoder.decodeFromSingleValueContainer() + self.value1 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } do { - value2 = try decoder.decodeFromSingleValueContainer() + self.value2 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } do { - value3 = try decoder.decodeFromSingleValueContainer() + self.value3 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2, - value3 + self.value1, + self.value2, + self.value3 ], type: Self.self, codingPath: decoder.codingPath, @@ -620,19 +629,19 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { try encoder.encodeFirstNonNilValueToSingleValueContainer([ - value1, - value2, - value3 + self.value1, + self.value2, + self.value3 ]) } } /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.metadata.additionalPropertiesPayload?] - /// Creates a new `metadata`. + public var additionalProperties: [String: Components.Schemas.Metadata.AdditionalPropertiesPayload?] + /// Creates a new `Metadata`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.metadata.additionalPropertiesPayload?] = .init()) { + public init(additionalProperties: [String: Components.Schemas.Metadata.AdditionalPropertiesPayload?] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -643,62 +652,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/dependency`. - public struct dependency: Codable, Hashable, Sendable { + public struct Dependency: Codable, Hashable, Sendable { /// Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details. /// /// - Remark: Generated from `#/components/schemas/dependency/package_url`. - public var package_url: Swift.String? + public var packageUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/dependency/metadata`. - public var metadata: Components.Schemas.metadata? + public var metadata: Components.Schemas.Metadata? /// A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency. /// /// - Remark: Generated from `#/components/schemas/dependency/relationship`. - @frozen public enum relationshipPayload: String, Codable, Hashable, Sendable { + @frozen public enum RelationshipPayload: String, Codable, Hashable, Sendable, CaseIterable { case direct = "direct" case indirect = "indirect" } /// A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency. /// /// - Remark: Generated from `#/components/schemas/dependency/relationship`. - public var relationship: Components.Schemas.dependency.relationshipPayload? + public var relationship: Components.Schemas.Dependency.RelationshipPayload? /// A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes. /// /// - Remark: Generated from `#/components/schemas/dependency/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case runtime = "runtime" case development = "development" } /// A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes. /// /// - Remark: Generated from `#/components/schemas/dependency/scope`. - public var scope: Components.Schemas.dependency.scopePayload? + public var scope: Components.Schemas.Dependency.ScopePayload? /// Array of package-url (PURLs) of direct child dependencies. /// /// - Remark: Generated from `#/components/schemas/dependency/dependencies`. public var dependencies: [Swift.String]? - /// Creates a new `dependency`. + /// Creates a new `Dependency`. /// /// - Parameters: - /// - package_url: Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details. + /// - packageUrl: Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details. /// - metadata: /// - relationship: A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency. /// - scope: A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes. /// - dependencies: Array of package-url (PURLs) of direct child dependencies. public init( - package_url: Swift.String? = nil, - metadata: Components.Schemas.metadata? = nil, - relationship: Components.Schemas.dependency.relationshipPayload? = nil, - scope: Components.Schemas.dependency.scopePayload? = nil, + packageUrl: Swift.String? = nil, + metadata: Components.Schemas.Metadata? = nil, + relationship: Components.Schemas.Dependency.RelationshipPayload? = nil, + scope: Components.Schemas.Dependency.ScopePayload? = nil, dependencies: [Swift.String]? = nil ) { - self.package_url = package_url + self.packageUrl = packageUrl self.metadata = metadata self.relationship = relationship self.scope = scope self.dependencies = dependencies } public enum CodingKeys: String, CodingKey { - case package_url + case packageUrl = "package_url" case metadata case relationship case scope @@ -706,23 +715,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package_url = try container.decodeIfPresent( + self.packageUrl = try container.decodeIfPresent( Swift.String.self, - forKey: .package_url + forKey: .packageUrl ) - metadata = try container.decodeIfPresent( - Components.Schemas.metadata.self, + self.metadata = try container.decodeIfPresent( + Components.Schemas.Metadata.self, forKey: .metadata ) - relationship = try container.decodeIfPresent( - Components.Schemas.dependency.relationshipPayload.self, + self.relationship = try container.decodeIfPresent( + Components.Schemas.Dependency.RelationshipPayload.self, forKey: .relationship ) - scope = try container.decodeIfPresent( - Components.Schemas.dependency.scopePayload.self, + self.scope = try container.decodeIfPresent( + Components.Schemas.Dependency.ScopePayload.self, forKey: .scope ) - dependencies = try container.decodeIfPresent( + self.dependencies = try container.decodeIfPresent( [Swift.String].self, forKey: .dependencies ) @@ -736,32 +745,32 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/manifest`. - public struct manifest: Codable, Hashable, Sendable { + public struct Manifest: Codable, Hashable, Sendable { /// The name of the manifest. /// /// - Remark: Generated from `#/components/schemas/manifest/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/manifest/file`. - public struct filePayload: Codable, Hashable, Sendable { + public struct FilePayload: Codable, Hashable, Sendable { /// The path of the manifest file relative to the root of the Git repository. /// /// - Remark: Generated from `#/components/schemas/manifest/file/source_location`. - public var source_location: Swift.String? - /// Creates a new `filePayload`. + public var sourceLocation: Swift.String? + /// Creates a new `FilePayload`. /// /// - Parameters: - /// - source_location: The path of the manifest file relative to the root of the Git repository. - public init(source_location: Swift.String? = nil) { - self.source_location = source_location + /// - sourceLocation: The path of the manifest file relative to the root of the Git repository. + public init(sourceLocation: Swift.String? = nil) { + self.sourceLocation = sourceLocation } public enum CodingKeys: String, CodingKey { - case source_location + case sourceLocation = "source_location" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - source_location = try container.decodeIfPresent( + self.sourceLocation = try container.decodeIfPresent( Swift.String.self, - forKey: .source_location + forKey: .sourceLocation ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "source_location" @@ -769,20 +778,20 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/manifest/file`. - public var file: Components.Schemas.manifest.filePayload? + public var file: Components.Schemas.Manifest.FilePayload? /// - Remark: Generated from `#/components/schemas/manifest/metadata`. - public var metadata: Components.Schemas.metadata? + public var metadata: Components.Schemas.Metadata? /// A collection of resolved package dependencies. /// /// - Remark: Generated from `#/components/schemas/manifest/resolved`. - public struct resolvedPayload: Codable, Hashable, Sendable { + public struct ResolvedPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.dependency] - /// Creates a new `resolvedPayload`. + public var additionalProperties: [String: Components.Schemas.Dependency] + /// Creates a new `ResolvedPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.dependency] = .init()) { + public init(additionalProperties: [String: Components.Schemas.Dependency] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -795,8 +804,8 @@ public enum Components { /// A collection of resolved package dependencies. /// /// - Remark: Generated from `#/components/schemas/manifest/resolved`. - public var resolved: Components.Schemas.manifest.resolvedPayload? - /// Creates a new `manifest`. + public var resolved: Components.Schemas.Manifest.ResolvedPayload? + /// Creates a new `Manifest`. /// /// - Parameters: /// - name: The name of the manifest. @@ -805,9 +814,9 @@ public enum Components { /// - resolved: A collection of resolved package dependencies. public init( name: Swift.String, - file: Components.Schemas.manifest.filePayload? = nil, - metadata: Components.Schemas.metadata? = nil, - resolved: Components.Schemas.manifest.resolvedPayload? = nil + file: Components.Schemas.Manifest.FilePayload? = nil, + metadata: Components.Schemas.Metadata? = nil, + resolved: Components.Schemas.Manifest.ResolvedPayload? = nil ) { self.name = name self.file = file @@ -822,20 +831,20 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) - file = try container.decodeIfPresent( - Components.Schemas.manifest.filePayload.self, + self.file = try container.decodeIfPresent( + Components.Schemas.Manifest.FilePayload.self, forKey: .file ) - metadata = try container.decodeIfPresent( - Components.Schemas.metadata.self, + self.metadata = try container.decodeIfPresent( + Components.Schemas.Metadata.self, forKey: .metadata ) - resolved = try container.decodeIfPresent( - Components.Schemas.manifest.resolvedPayload.self, + self.resolved = try container.decodeIfPresent( + Components.Schemas.Manifest.ResolvedPayload.self, forKey: .resolved ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -849,13 +858,13 @@ public enum Components { /// Create a new snapshot of a repository's dependencies. /// /// - Remark: Generated from `#/components/schemas/snapshot`. - public struct snapshot: Codable, Hashable, Sendable { + public struct Snapshot: Codable, Hashable, Sendable { /// The version of the repository snapshot submission. /// /// - Remark: Generated from `#/components/schemas/snapshot/version`. public var version: Swift.Int /// - Remark: Generated from `#/components/schemas/snapshot/job`. - public struct jobPayload: Codable, Hashable, Sendable { + public struct JobPayload: Codable, Hashable, Sendable { /// The external ID of the job. /// /// - Remark: Generated from `#/components/schemas/snapshot/job/id`. @@ -867,40 +876,40 @@ public enum Components { /// The url for the job. /// /// - Remark: Generated from `#/components/schemas/snapshot/job/html_url`. - public var html_url: Swift.String? - /// Creates a new `jobPayload`. + public var htmlUrl: Swift.String? + /// Creates a new `JobPayload`. /// /// - Parameters: /// - id: The external ID of the job. /// - correlator: Correlator provides a key that is used to group snapshots submitted over time. Only the "latest" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given "wave" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation. - /// - html_url: The url for the job. + /// - htmlUrl: The url for the job. public init( id: Swift.String, correlator: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.id = id self.correlator = correlator - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case id case correlator - case html_url + case htmlUrl = "html_url" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - id = try container.decode( + self.id = try container.decode( Swift.String.self, forKey: .id ) - correlator = try container.decode( + self.correlator = try container.decode( Swift.String.self, forKey: .correlator ) - html_url = try container.decodeIfPresent( + self.htmlUrl = try container.decodeIfPresent( Swift.String.self, - forKey: .html_url + forKey: .htmlUrl ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "id", @@ -910,7 +919,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/snapshot/job`. - public var job: Components.Schemas.snapshot.jobPayload + public var job: Components.Schemas.Snapshot.JobPayload /// The commit SHA associated with this dependency snapshot. Maximum length: 40 characters. /// /// - Remark: Generated from `#/components/schemas/snapshot/sha`. @@ -922,7 +931,7 @@ public enum Components { /// A description of the detector used. /// /// - Remark: Generated from `#/components/schemas/snapshot/detector`. - public struct detectorPayload: Codable, Hashable, Sendable { + public struct DetectorPayload: Codable, Hashable, Sendable { /// The name of the detector used. /// /// - Remark: Generated from `#/components/schemas/snapshot/detector/name`. @@ -935,7 +944,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/snapshot/detector/url`. public var url: Swift.String - /// Creates a new `detectorPayload`. + /// Creates a new `DetectorPayload`. /// /// - Parameters: /// - name: The name of the detector used. @@ -957,15 +966,15 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) - version = try container.decode( + self.version = try container.decode( Swift.String.self, forKey: .version ) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) @@ -979,20 +988,20 @@ public enum Components { /// A description of the detector used. /// /// - Remark: Generated from `#/components/schemas/snapshot/detector`. - public var detector: Components.Schemas.snapshot.detectorPayload + public var detector: Components.Schemas.Snapshot.DetectorPayload /// - Remark: Generated from `#/components/schemas/snapshot/metadata`. - public var metadata: Components.Schemas.metadata? + public var metadata: Components.Schemas.Metadata? /// A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies. /// /// - Remark: Generated from `#/components/schemas/snapshot/manifests`. - public struct manifestsPayload: Codable, Hashable, Sendable { + public struct ManifestsPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.manifest] - /// Creates a new `manifestsPayload`. + public var additionalProperties: [String: Components.Schemas.Manifest] + /// Creates a new `ManifestsPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.manifest] = .init()) { + public init(additionalProperties: [String: Components.Schemas.Manifest] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -1005,12 +1014,12 @@ public enum Components { /// A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies. /// /// - Remark: Generated from `#/components/schemas/snapshot/manifests`. - public var manifests: Components.Schemas.snapshot.manifestsPayload? + public var manifests: Components.Schemas.Snapshot.ManifestsPayload? /// The time at which the snapshot was scanned. /// /// - Remark: Generated from `#/components/schemas/snapshot/scanned`. public var scanned: Foundation.Date - /// Creates a new `snapshot`. + /// Creates a new `Snapshot`. /// /// - Parameters: /// - version: The version of the repository snapshot submission. @@ -1023,12 +1032,12 @@ public enum Components { /// - scanned: The time at which the snapshot was scanned. public init( version: Swift.Int, - job: Components.Schemas.snapshot.jobPayload, + job: Components.Schemas.Snapshot.JobPayload, sha: Swift.String, ref: Swift.String, - detector: Components.Schemas.snapshot.detectorPayload, - metadata: Components.Schemas.metadata? = nil, - manifests: Components.Schemas.snapshot.manifestsPayload? = nil, + detector: Components.Schemas.Snapshot.DetectorPayload, + metadata: Components.Schemas.Metadata? = nil, + manifests: Components.Schemas.Snapshot.ManifestsPayload? = nil, scanned: Foundation.Date ) { self.version = version @@ -1052,35 +1061,35 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - version = try container.decode( + self.version = try container.decode( Swift.Int.self, forKey: .version ) - job = try container.decode( - Components.Schemas.snapshot.jobPayload.self, + self.job = try container.decode( + Components.Schemas.Snapshot.JobPayload.self, forKey: .job ) - sha = try container.decode( + self.sha = try container.decode( Swift.String.self, forKey: .sha ) - ref = try container.decode( + self.ref = try container.decode( Swift.String.self, forKey: .ref ) - detector = try container.decode( - Components.Schemas.snapshot.detectorPayload.self, + self.detector = try container.decode( + Components.Schemas.Snapshot.DetectorPayload.self, forKey: .detector ) - metadata = try container.decodeIfPresent( - Components.Schemas.metadata.self, + self.metadata = try container.decodeIfPresent( + Components.Schemas.Metadata.self, forKey: .metadata ) - manifests = try container.decodeIfPresent( - Components.Schemas.snapshot.manifestsPayload.self, + self.manifests = try container.decodeIfPresent( + Components.Schemas.Snapshot.ManifestsPayload.self, forKey: .manifests ) - scanned = try container.decode( + self.scanned = try container.decode( Foundation.Date.self, forKey: .scanned ) @@ -1102,30 +1111,30 @@ public enum Components { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The full path, relative to the repository root, of the dependency manifest file. /// /// - Remark: Generated from `#/components/parameters/manifest-path`. - public typealias manifest_hyphen_path = Swift.String + public typealias ManifestPath = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1135,25 +1144,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1163,25 +1172,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct dependency_review_forbidden: Sendable, Hashable { + public struct DependencyReviewForbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/dependency_review_forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/dependency_review_forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1191,12 +1200,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.dependency_review_forbidden.Body - /// Creates a new `dependency_review_forbidden`. + public var body: Components.Responses.DependencyReviewForbidden.Body + /// Creates a new `DependencyReviewForbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.dependency_review_forbidden.Body) { + public init(body: Components.Responses.DependencyReviewForbidden.Body) { self.body = body } } @@ -1204,7 +1213,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -1216,7 +1225,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)`. - public enum dependency_hyphen_graph_sol_diff_hyphen_range { + public enum DependencyGraphDiffRange { public static let id: Swift.String = "dependency-graph/diff-range" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/path`. @@ -1224,11 +1233,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/path/basehead`. @@ -1240,8 +1249,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - basehead: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, basehead: Swift.String ) { self.owner = owner @@ -1249,34 +1258,34 @@ public enum Operations { self.basehead = basehead } } - public var path: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Path + public var path: Operations.DependencyGraphDiffRange.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/query`. public struct Query: Sendable, Hashable { /// The full path, relative to the repository root, of the dependency manifest file. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/query/name`. - public var name: Components.Parameters.manifest_hyphen_path? + public var name: Components.Parameters.ManifestPath? /// Creates a new `Query`. /// /// - Parameters: /// - name: The full path, relative to the repository root, of the dependency manifest file. - public init(name: Components.Parameters.manifest_hyphen_path? = nil) { + public init(name: Components.Parameters.ManifestPath? = nil) { self.name = name } } - public var query: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Query + public var query: Operations.DependencyGraphDiffRange.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Headers + public var headers: Operations.DependencyGraphDiffRange.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1284,9 +1293,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Path, - query: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Query = .init(), - headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input.Headers = .init() + path: Operations.DependencyGraphDiffRange.Input.Path, + query: Operations.DependencyGraphDiffRange.Input.Query = .init(), + headers: Operations.DependencyGraphDiffRange.Input.Headers = .init() ) { self.path = path self.query = query @@ -1298,26 +1307,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Headers + public var headers: Operations.DependencyGraphDiffRange.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/compare/{basehead}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependency_hyphen_graph_hyphen_diff) + case json(Components.Schemas.DependencyGraphDiff) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependency_hyphen_graph_hyphen_diff { + public var json: Components.Schemas.DependencyGraphDiff { get throws { switch self { case let .json(body): @@ -1327,15 +1336,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Body + public var body: Operations.DependencyGraphDiffRange.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Headers = .init(), - body: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Body + headers: Operations.DependencyGraphDiffRange.Output.Ok.Headers = .init(), + body: Operations.DependencyGraphDiffRange.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1346,12 +1355,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok) + case ok(Operations.DependencyGraphDiffRange.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok { + public var ok: Operations.DependencyGraphDiffRange.Output.Ok { get throws { switch self { case let .ok(response): @@ -1369,12 +1378,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1392,12 +1401,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.dependency_review_forbidden) + case forbidden(Components.Responses.DependencyReviewForbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.dependency_review_forbidden { + public var forbidden: Components.Responses.DependencyReviewForbidden { get throws { switch self { case let .forbidden(response): @@ -1447,7 +1456,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/sbom`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)`. - public enum dependency_hyphen_graph_sol_export_hyphen_sbom { + public enum DependencyGraphExportSbom { public static let id: Swift.String = "dependency-graph/export-sbom" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/path`. @@ -1455,45 +1464,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Path + public var path: Operations.DependencyGraphExportSbom.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Headers + public var headers: Operations.DependencyGraphExportSbom.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Path, - headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input.Headers = .init() + path: Operations.DependencyGraphExportSbom.Input.Path, + headers: Operations.DependencyGraphExportSbom.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1504,26 +1513,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Headers + public var headers: Operations.DependencyGraphExportSbom.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/sbom/GET/responses/200/content/application\/json`. - case json(Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom) + case json(Components.Schemas.DependencyGraphSpdxSbom) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom { + public var json: Components.Schemas.DependencyGraphSpdxSbom { get throws { switch self { case let .json(body): @@ -1533,15 +1542,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Body + public var body: Operations.DependencyGraphExportSbom.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Headers = .init(), - body: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Body + headers: Operations.DependencyGraphExportSbom.Output.Ok.Headers = .init(), + body: Operations.DependencyGraphExportSbom.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1552,12 +1561,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok) + case ok(Operations.DependencyGraphExportSbom.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok { + public var ok: Operations.DependencyGraphExportSbom.Output.Ok { get throws { switch self { case let .ok(response): @@ -1575,12 +1584,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1598,12 +1607,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -1657,7 +1666,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dependency-graph/snapshots`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)`. - public enum dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot { + public enum DependencyGraphCreateRepositorySnapshot { public static let id: Swift.String = "dependency-graph/create-repository-snapshot" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/path`. @@ -1665,43 +1674,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Path + public var path: Operations.DependencyGraphCreateRepositorySnapshot.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Headers + public var headers: Operations.DependencyGraphCreateRepositorySnapshot.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/requestBody/content/application\/json`. - case json(Components.Schemas.snapshot) + case json(Components.Schemas.Snapshot) } - public var body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Body + public var body: Operations.DependencyGraphCreateRepositorySnapshot.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1709,9 +1718,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Path, - headers: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Headers = .init(), - body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input.Body + path: Operations.DependencyGraphCreateRepositorySnapshot.Input.Path, + headers: Operations.DependencyGraphCreateRepositorySnapshot.Input.Headers = .init(), + body: Operations.DependencyGraphCreateRepositorySnapshot.Input.Body ) { self.path = path self.headers = headers @@ -1723,7 +1732,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// ID of the created snapshot. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/json/id`. @@ -1731,7 +1740,7 @@ public enum Operations { /// The time at which the snapshot was created. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/json/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository's dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository's dependencies were not updated. "INVALID" indicates that the snapshot was malformed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/json/result`. @@ -1740,38 +1749,38 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/json/message`. public var message: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - id: ID of the created snapshot. - /// - created_at: The time at which the snapshot was created. + /// - createdAt: The time at which the snapshot was created. /// - result: Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository's dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository's dependencies were not updated. "INVALID" indicates that the snapshot was malformed. /// - message: A message providing further details about the result, such as why the dependencies were not updated. public init( id: Swift.Int, - created_at: Swift.String, + createdAt: Swift.String, result: Swift.String, message: Swift.String ) { self.id = id - self.created_at = created_at + self.createdAt = createdAt self.result = result self.message = message } public enum CodingKeys: String, CodingKey { case id - case created_at + case createdAt = "created_at" case result case message } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependency-graph/snapshots/POST/responses/201/content/application\/json`. - case json(Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body.jsonPayload) + case json(Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body.jsonPayload { + public var json: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -1781,12 +1790,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body + public var body: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body) { + public init(body: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body) { self.body = body } } @@ -1795,12 +1804,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created) + case created(Operations.DependencyGraphCreateRepositorySnapshot.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created { + public var created: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created { get throws { switch self { case let .created(response): From 23951e886cfaa7877909aeb186974891115de9fa Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:01:42 -0700 Subject: [PATCH 13/46] Commit via running ake Sources/gists --- Sources/gists/Client.swift | 382 ++--- Sources/gists/Types.swift | 3127 +++++++++++++++++++----------------- 2 files changed, 1843 insertions(+), 1666 deletions(-) diff --git a/Sources/gists/Client.swift b/Sources/gists/Client.swift index 334f4dbd58..dc80f9c4b6 100644 --- a/Sources/gists/Client.swift +++ b/Sources/gists/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists`. /// - Remark: Generated from `#/paths//gists/get(gists/list)`. - public func gists_sol_list(_ input: Operations.gists_sol_list.Input) async throws -> Operations.gists_sol_list.Output { + public func gistsList(_ input: Operations.GistsList.Input) async throws -> Operations.GistsList.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list.id, + forOperation: Operations.GistsList.id, serializer: { input in let path = try converter.renderedPath( template: "/gists", @@ -70,7 +70,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -88,13 +88,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list.Output.Ok.Body + let body: Operations.GistsList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -104,7 +104,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.base_hyphen_gist].self, + [Components.Schemas.BaseGist].self, from: responseBody, transforming: { value in .json(value) @@ -121,7 +121,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -131,7 +131,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -162,10 +162,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /gists`. /// - Remark: Generated from `#/paths//gists/post(gists/create)`. - public func gists_sol_create(_ input: Operations.gists_sol_create.Input) async throws -> Operations.gists_sol_create.Output { + public func gistsCreate(_ input: Operations.GistsCreate.Input) async throws -> Operations.GistsCreate.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_create.id, + forOperation: Operations.GistsCreate.id, serializer: { input in let path = try converter.renderedPath( template: "/gists", @@ -194,13 +194,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.gists_sol_create.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsCreate.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_create.Output.Created.Body + let body: Operations.GistsCreate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -210,7 +210,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_simple.self, + Components.Schemas.GistSimple.self, from: responseBody, transforming: { value in .json(value) @@ -225,7 +225,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -235,7 +235,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -249,7 +249,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -259,7 +259,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -271,7 +271,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -281,7 +281,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -311,10 +311,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/public`. /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)`. - public func gists_sol_list_hyphen_public(_ input: Operations.gists_sol_list_hyphen_public.Input) async throws -> Operations.gists_sol_list_hyphen_public.Output { + public func gistsListPublic(_ input: Operations.GistsListPublic.Input) async throws -> Operations.GistsListPublic.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_public.id, + forOperation: Operations.GistsListPublic.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/public", @@ -337,7 +337,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -355,13 +355,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_public.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListPublic.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_public.Output.Ok.Body + let body: Operations.GistsListPublic.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -371,7 +371,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.base_hyphen_gist].self, + [Components.Schemas.BaseGist].self, from: responseBody, transforming: { value in .json(value) @@ -386,7 +386,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -410,7 +410,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -420,7 +420,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -448,10 +448,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/starred`. /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)`. - public func gists_sol_list_hyphen_starred(_ input: Operations.gists_sol_list_hyphen_starred.Input) async throws -> Operations.gists_sol_list_hyphen_starred.Output { + public func gistsListStarred(_ input: Operations.GistsListStarred.Input) async throws -> Operations.GistsListStarred.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_starred.id, + forOperation: Operations.GistsListStarred.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/starred", @@ -474,7 +474,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -492,13 +492,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_starred.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListStarred.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_starred.Output.Ok.Body + let body: Operations.GistsListStarred.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -508,7 +508,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.base_hyphen_gist].self, + [Components.Schemas.BaseGist].self, from: responseBody, transforming: { value in .json(value) @@ -523,7 +523,7 @@ public struct Client: APIProtocol { )) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -533,7 +533,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -547,7 +547,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -557,7 +557,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -590,15 +590,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. - public func gists_sol_get(_ input: Operations.gists_sol_get.Input) async throws -> Operations.gists_sol_get.Output { + public func gistsGet(_ input: Operations.GistsGet.Input) async throws -> Operations.GistsGet.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_get.id, + forOperation: Operations.GistsGet.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -616,7 +616,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_get.Output.Ok.Body + let body: Operations.GistsGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -626,7 +626,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_simple.self, + Components.Schemas.GistSimple.self, from: responseBody, transforming: { value in .json(value) @@ -638,7 +638,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden_gist.Body + let body: Components.Responses.ForbiddenGist.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -648,7 +648,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.forbidden_gist.Body.jsonPayload.self, + Components.Responses.ForbiddenGist.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -660,7 +660,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -670,7 +670,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -709,15 +709,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. - public func gists_sol_update(_ input: Operations.gists_sol_update.Input) async throws -> Operations.gists_sol_update.Output { + public func gistsUpdate(_ input: Operations.GistsUpdate.Input) async throws -> Operations.GistsUpdate.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_update.id, + forOperation: Operations.GistsUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -744,7 +744,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_update.Output.Ok.Body + let body: Operations.GistsUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -754,7 +754,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_simple.self, + Components.Schemas.GistSimple.self, from: responseBody, transforming: { value in .json(value) @@ -766,7 +766,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -776,7 +776,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -788,7 +788,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -798,7 +798,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -826,15 +826,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)`. - public func gists_sol_delete(_ input: Operations.gists_sol_delete.Input) async throws -> Operations.gists_sol_delete.Output { + public func gistsDelete(_ input: Operations.GistsDelete.Input) async throws -> Operations.GistsDelete.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_delete.id, + forOperation: Operations.GistsDelete.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -854,7 +854,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -864,7 +864,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -878,7 +878,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -888,7 +888,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -921,15 +921,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. - public func gists_sol_list_hyphen_comments(_ input: Operations.gists_sol_list_hyphen_comments.Input) async throws -> Operations.gists_sol_list_hyphen_comments.Output { + public func gistsListComments(_ input: Operations.GistsListComments.Input) async throws -> Operations.GistsListComments.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_comments.id, + forOperation: Operations.GistsListComments.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/comments", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -942,7 +942,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -960,13 +960,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_comments.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListComments.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_comments.Output.Ok.Body + let body: Operations.GistsListComments.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -976,7 +976,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.gist_hyphen_comment].self, + [Components.Schemas.GistComment].self, from: responseBody, transforming: { value in .json(value) @@ -993,7 +993,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1003,7 +1003,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1015,7 +1015,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1025,7 +1025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1058,15 +1058,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. - public func gists_sol_create_hyphen_comment(_ input: Operations.gists_sol_create_hyphen_comment.Input) async throws -> Operations.gists_sol_create_hyphen_comment.Output { + public func gistsCreateComment(_ input: Operations.GistsCreateComment.Input) async throws -> Operations.GistsCreateComment.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_create_hyphen_comment.id, + forOperation: Operations.GistsCreateComment.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/comments", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1092,13 +1092,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.gists_sol_create_hyphen_comment.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsCreateComment.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_create_hyphen_comment.Output.Created.Body + let body: Operations.GistsCreateComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1108,7 +1108,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_comment.self, + Components.Schemas.GistComment.self, from: responseBody, transforming: { value in .json(value) @@ -1125,7 +1125,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1135,7 +1135,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1147,7 +1147,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1157,7 +1157,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1190,16 +1190,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. - public func gists_sol_get_hyphen_comment(_ input: Operations.gists_sol_get_hyphen_comment.Input) async throws -> Operations.gists_sol_get_hyphen_comment.Output { + public func gistsGetComment(_ input: Operations.GistsGetComment.Input) async throws -> Operations.GistsGetComment.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_get_hyphen_comment.id, + forOperation: Operations.GistsGetComment.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/comments/{}", parameters: [ - input.path.gist_id, - input.path.comment_id + input.path.gistId, + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1217,7 +1217,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_get_hyphen_comment.Output.Ok.Body + let body: Operations.GistsGetComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1227,7 +1227,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_comment.self, + Components.Schemas.GistComment.self, from: responseBody, transforming: { value in .json(value) @@ -1241,7 +1241,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1251,7 +1251,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1263,7 +1263,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden_gist.Body + let body: Components.Responses.ForbiddenGist.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1273,7 +1273,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.forbidden_gist.Body.jsonPayload.self, + Components.Responses.ForbiddenGist.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1306,16 +1306,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. - public func gists_sol_update_hyphen_comment(_ input: Operations.gists_sol_update_hyphen_comment.Input) async throws -> Operations.gists_sol_update_hyphen_comment.Output { + public func gistsUpdateComment(_ input: Operations.GistsUpdateComment.Input) async throws -> Operations.GistsUpdateComment.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_update_hyphen_comment.id, + forOperation: Operations.GistsUpdateComment.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/comments/{}", parameters: [ - input.path.gist_id, - input.path.comment_id + input.path.gistId, + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1342,7 +1342,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_update_hyphen_comment.Output.Ok.Body + let body: Operations.GistsUpdateComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1352,7 +1352,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_comment.self, + Components.Schemas.GistComment.self, from: responseBody, transforming: { value in .json(value) @@ -1364,7 +1364,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1374,7 +1374,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1402,16 +1402,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)`. - public func gists_sol_delete_hyphen_comment(_ input: Operations.gists_sol_delete_hyphen_comment.Input) async throws -> Operations.gists_sol_delete_hyphen_comment.Output { + public func gistsDeleteComment(_ input: Operations.GistsDeleteComment.Input) async throws -> Operations.GistsDeleteComment.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_delete_hyphen_comment.id, + forOperation: Operations.GistsDeleteComment.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/comments/{}", parameters: [ - input.path.gist_id, - input.path.comment_id + input.path.gistId, + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1433,7 +1433,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1443,7 +1443,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1455,7 +1455,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1465,7 +1465,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1493,15 +1493,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/commits`. /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)`. - public func gists_sol_list_hyphen_commits(_ input: Operations.gists_sol_list_hyphen_commits.Input) async throws -> Operations.gists_sol_list_hyphen_commits.Output { + public func gistsListCommits(_ input: Operations.GistsListCommits.Input) async throws -> Operations.GistsListCommits.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_commits.id, + forOperation: Operations.GistsListCommits.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/commits", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1514,7 +1514,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1532,13 +1532,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_commits.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListCommits.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_commits.Output.Ok.Body + let body: Operations.GistsListCommits.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1548,7 +1548,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.gist_hyphen_commit].self, + [Components.Schemas.GistCommit].self, from: responseBody, transforming: { value in .json(value) @@ -1563,7 +1563,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1573,7 +1573,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1587,7 +1587,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1597,7 +1597,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1625,15 +1625,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)`. - public func gists_sol_list_hyphen_forks(_ input: Operations.gists_sol_list_hyphen_forks.Input) async throws -> Operations.gists_sol_list_hyphen_forks.Output { + public func gistsListForks(_ input: Operations.GistsListForks.Input) async throws -> Operations.GistsListForks.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_forks.id, + forOperation: Operations.GistsListForks.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/forks", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1646,7 +1646,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1664,13 +1664,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_forks.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListForks.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_forks.Output.Ok.Body + let body: Operations.GistsListForks.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1680,7 +1680,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.gist_hyphen_simple].self, + [Components.Schemas.GistSimple].self, from: responseBody, transforming: { value in .json(value) @@ -1695,7 +1695,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1705,7 +1705,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1719,7 +1719,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1729,7 +1729,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1757,15 +1757,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)`. - public func gists_sol_fork(_ input: Operations.gists_sol_fork.Input) async throws -> Operations.gists_sol_fork.Output { + public func gistsFork(_ input: Operations.GistsFork.Input) async throws -> Operations.GistsFork.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_fork.id, + forOperation: Operations.GistsFork.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/forks", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1782,13 +1782,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.gists_sol_fork.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsFork.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_fork.Output.Created.Body + let body: Operations.GistsFork.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1798,7 +1798,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.base_hyphen_gist.self, + Components.Schemas.BaseGist.self, from: responseBody, transforming: { value in .json(value) @@ -1813,7 +1813,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1823,7 +1823,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1835,7 +1835,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1845,7 +1845,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1859,7 +1859,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1869,7 +1869,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1897,15 +1897,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)`. - public func gists_sol_check_hyphen_is_hyphen_starred(_ input: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input) async throws -> Operations.gists_sol_check_hyphen_is_hyphen_starred.Output { + public func gistsCheckIsStarred(_ input: Operations.GistsCheckIsStarred.Input) async throws -> Operations.GistsCheckIsStarred.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_check_hyphen_is_hyphen_starred.id, + forOperation: Operations.GistsCheckIsStarred.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/star", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1925,7 +1925,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body + let body: Operations.GistsCheckIsStarred.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1935,7 +1935,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body.jsonPayload.self, + Operations.GistsCheckIsStarred.Output.NotFound.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1949,7 +1949,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1959,7 +1959,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1987,15 +1987,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)`. - public func gists_sol_star(_ input: Operations.gists_sol_star.Input) async throws -> Operations.gists_sol_star.Output { + public func gistsStar(_ input: Operations.GistsStar.Input) async throws -> Operations.GistsStar.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_star.id, + forOperation: Operations.GistsStar.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/star", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2015,7 +2015,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2025,7 +2025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2039,7 +2039,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2049,7 +2049,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2077,15 +2077,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)`. - public func gists_sol_unstar(_ input: Operations.gists_sol_unstar.Input) async throws -> Operations.gists_sol_unstar.Output { + public func gistsUnstar(_ input: Operations.GistsUnstar.Input) async throws -> Operations.GistsUnstar.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_unstar.id, + forOperation: Operations.GistsUnstar.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/star", parameters: [ - input.path.gist_id + input.path.gistId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2107,7 +2107,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2117,7 +2117,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2129,7 +2129,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2139,7 +2139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2172,15 +2172,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. - public func gists_sol_get_hyphen_revision(_ input: Operations.gists_sol_get_hyphen_revision.Input) async throws -> Operations.gists_sol_get_hyphen_revision.Output { + public func gistsGetRevision(_ input: Operations.GistsGetRevision.Input) async throws -> Operations.GistsGetRevision.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_get_hyphen_revision.id, + forOperation: Operations.GistsGetRevision.id, serializer: { input in let path = try converter.renderedPath( template: "/gists/{}/{}", parameters: [ - input.path.gist_id, + input.path.gistId, input.path.sha ] ) @@ -2199,7 +2199,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_get_hyphen_revision.Output.Ok.Body + let body: Operations.GistsGetRevision.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2209,7 +2209,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gist_hyphen_simple.self, + Components.Schemas.GistSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2221,7 +2221,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2231,7 +2231,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2243,7 +2243,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2253,7 +2253,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2265,7 +2265,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2275,7 +2275,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2303,10 +2303,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/gists`. /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)`. - public func gists_sol_list_hyphen_for_hyphen_user(_ input: Operations.gists_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.gists_sol_list_hyphen_for_hyphen_user.Output { + public func gistsListForUser(_ input: Operations.GistsListForUser.Input) async throws -> Operations.GistsListForUser.Output { try await client.send( input: input, - forOperation: Operations.gists_sol_list_hyphen_for_hyphen_user.id, + forOperation: Operations.GistsListForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/gists", @@ -2331,7 +2331,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2349,13 +2349,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GistsListForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.GistsListForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2365,7 +2365,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.base_hyphen_gist].self, + [Components.Schemas.BaseGist].self, from: responseBody, transforming: { value in .json(value) @@ -2380,7 +2380,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2390,7 +2390,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/gists/Types.swift b/Sources/gists/Types.swift index 80f879d245..9165a2da32 100644 --- a/Sources/gists/Types.swift +++ b/Sources/gists/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists`. /// - Remark: Generated from `#/paths//gists/get(gists/list)`. - func gists_sol_list(_ input: Operations.gists_sol_list.Input) async throws -> Operations.gists_sol_list.Output + func gistsList(_ input: Operations.GistsList.Input) async throws -> Operations.GistsList.Output /// Create a gist /// /// Allows you to add a new gist with one or more files. @@ -27,7 +27,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /gists`. /// - Remark: Generated from `#/paths//gists/post(gists/create)`. - func gists_sol_create(_ input: Operations.gists_sol_create.Input) async throws -> Operations.gists_sol_create.Output + func gistsCreate(_ input: Operations.GistsCreate.Input) async throws -> Operations.GistsCreate.Output /// List public gists /// /// List public gists sorted by most recently updated to least recently updated. @@ -36,14 +36,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists/public`. /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)`. - func gists_sol_list_hyphen_public(_ input: Operations.gists_sol_list_hyphen_public.Input) async throws -> Operations.gists_sol_list_hyphen_public.Output + func gistsListPublic(_ input: Operations.GistsListPublic.Input) async throws -> Operations.GistsListPublic.Output /// List starred gists /// /// List the authenticated user's starred gists: /// /// - Remark: HTTP `GET /gists/starred`. /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)`. - func gists_sol_list_hyphen_starred(_ input: Operations.gists_sol_list_hyphen_starred.Input) async throws -> Operations.gists_sol_list_hyphen_starred.Output + func gistsListStarred(_ input: Operations.GistsListStarred.Input) async throws -> Operations.GistsListStarred.Output /// Get a gist /// /// Gets a specified gist. @@ -55,7 +55,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. - func gists_sol_get(_ input: Operations.gists_sol_get.Input) async throws -> Operations.gists_sol_get.Output + func gistsGet(_ input: Operations.GistsGet.Input) async throws -> Operations.GistsGet.Output /// Update a gist /// /// Allows you to update a gist's description and to update, delete, or rename gist files. Files @@ -71,14 +71,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. - func gists_sol_update(_ input: Operations.gists_sol_update.Input) async throws -> Operations.gists_sol_update.Output + func gistsUpdate(_ input: Operations.GistsUpdate.Input) async throws -> Operations.GistsUpdate.Output /// Delete a gist /// /// /// /// - Remark: HTTP `DELETE /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)`. - func gists_sol_delete(_ input: Operations.gists_sol_delete.Input) async throws -> Operations.gists_sol_delete.Output + func gistsDelete(_ input: Operations.GistsDelete.Input) async throws -> Operations.GistsDelete.Output /// List gist comments /// /// Lists the comments on a gist. @@ -90,7 +90,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. - func gists_sol_list_hyphen_comments(_ input: Operations.gists_sol_list_hyphen_comments.Input) async throws -> Operations.gists_sol_list_hyphen_comments.Output + func gistsListComments(_ input: Operations.GistsListComments.Input) async throws -> Operations.GistsListComments.Output /// Create a gist comment /// /// Creates a comment on a gist. @@ -102,7 +102,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. - func gists_sol_create_hyphen_comment(_ input: Operations.gists_sol_create_hyphen_comment.Input) async throws -> Operations.gists_sol_create_hyphen_comment.Output + func gistsCreateComment(_ input: Operations.GistsCreateComment.Input) async throws -> Operations.GistsCreateComment.Output /// Get a gist comment /// /// Gets a comment on a gist. @@ -114,7 +114,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. - func gists_sol_get_hyphen_comment(_ input: Operations.gists_sol_get_hyphen_comment.Input) async throws -> Operations.gists_sol_get_hyphen_comment.Output + func gistsGetComment(_ input: Operations.GistsGetComment.Input) async throws -> Operations.GistsGetComment.Output /// Update a gist comment /// /// Updates a comment on a gist. @@ -126,56 +126,56 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. - func gists_sol_update_hyphen_comment(_ input: Operations.gists_sol_update_hyphen_comment.Input) async throws -> Operations.gists_sol_update_hyphen_comment.Output + func gistsUpdateComment(_ input: Operations.GistsUpdateComment.Input) async throws -> Operations.GistsUpdateComment.Output /// Delete a gist comment /// /// /// /// - Remark: HTTP `DELETE /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)`. - func gists_sol_delete_hyphen_comment(_ input: Operations.gists_sol_delete_hyphen_comment.Input) async throws -> Operations.gists_sol_delete_hyphen_comment.Output + func gistsDeleteComment(_ input: Operations.GistsDeleteComment.Input) async throws -> Operations.GistsDeleteComment.Output /// List gist commits /// /// /// /// - Remark: HTTP `GET /gists/{gist_id}/commits`. /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)`. - func gists_sol_list_hyphen_commits(_ input: Operations.gists_sol_list_hyphen_commits.Input) async throws -> Operations.gists_sol_list_hyphen_commits.Output + func gistsListCommits(_ input: Operations.GistsListCommits.Input) async throws -> Operations.GistsListCommits.Output /// List gist forks /// /// /// /// - Remark: HTTP `GET /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)`. - func gists_sol_list_hyphen_forks(_ input: Operations.gists_sol_list_hyphen_forks.Input) async throws -> Operations.gists_sol_list_hyphen_forks.Output + func gistsListForks(_ input: Operations.GistsListForks.Input) async throws -> Operations.GistsListForks.Output /// Fork a gist /// /// /// /// - Remark: HTTP `POST /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)`. - func gists_sol_fork(_ input: Operations.gists_sol_fork.Input) async throws -> Operations.gists_sol_fork.Output + func gistsFork(_ input: Operations.GistsFork.Input) async throws -> Operations.GistsFork.Output /// Check if a gist is starred /// /// /// /// - Remark: HTTP `GET /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)`. - func gists_sol_check_hyphen_is_hyphen_starred(_ input: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input) async throws -> Operations.gists_sol_check_hyphen_is_hyphen_starred.Output + func gistsCheckIsStarred(_ input: Operations.GistsCheckIsStarred.Input) async throws -> Operations.GistsCheckIsStarred.Output /// Star a gist /// /// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: HTTP `PUT /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)`. - func gists_sol_star(_ input: Operations.gists_sol_star.Input) async throws -> Operations.gists_sol_star.Output + func gistsStar(_ input: Operations.GistsStar.Input) async throws -> Operations.GistsStar.Output /// Unstar a gist /// /// /// /// - Remark: HTTP `DELETE /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)`. - func gists_sol_unstar(_ input: Operations.gists_sol_unstar.Input) async throws -> Operations.gists_sol_unstar.Output + func gistsUnstar(_ input: Operations.GistsUnstar.Input) async throws -> Operations.GistsUnstar.Output /// Get a gist revision /// /// Gets a specified gist revision. @@ -187,14 +187,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. - func gists_sol_get_hyphen_revision(_ input: Operations.gists_sol_get_hyphen_revision.Input) async throws -> Operations.gists_sol_get_hyphen_revision.Output + func gistsGetRevision(_ input: Operations.GistsGetRevision.Input) async throws -> Operations.GistsGetRevision.Output /// List gists for a user /// /// Lists public gists for the specified user: /// /// - Remark: HTTP `GET /users/{username}/gists`. /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)`. - func gists_sol_list_hyphen_for_hyphen_user(_ input: Operations.gists_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.gists_sol_list_hyphen_for_hyphen_user.Output + func gistsListForUser(_ input: Operations.GistsListForUser.Input) async throws -> Operations.GistsListForUser.Output } /// Convenience overloads for operation inputs. @@ -205,11 +205,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists`. /// - Remark: Generated from `#/paths//gists/get(gists/list)`. - public func gists_sol_list( - query: Operations.gists_sol_list.Input.Query = .init(), - headers: Operations.gists_sol_list.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list.Output { - try await gists_sol_list(Operations.gists_sol_list.Input( + public func gistsList( + query: Operations.GistsList.Input.Query = .init(), + headers: Operations.GistsList.Input.Headers = .init() + ) async throws -> Operations.GistsList.Output { + try await gistsList(Operations.GistsList.Input( query: query, headers: headers )) @@ -223,11 +223,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /gists`. /// - Remark: Generated from `#/paths//gists/post(gists/create)`. - public func gists_sol_create( - headers: Operations.gists_sol_create.Input.Headers = .init(), - body: Operations.gists_sol_create.Input.Body - ) async throws -> Operations.gists_sol_create.Output { - try await gists_sol_create(Operations.gists_sol_create.Input( + public func gistsCreate( + headers: Operations.GistsCreate.Input.Headers = .init(), + body: Operations.GistsCreate.Input.Body + ) async throws -> Operations.GistsCreate.Output { + try await gistsCreate(Operations.GistsCreate.Input( headers: headers, body: body )) @@ -240,11 +240,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/public`. /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)`. - public func gists_sol_list_hyphen_public( - query: Operations.gists_sol_list_hyphen_public.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_public.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_public.Output { - try await gists_sol_list_hyphen_public(Operations.gists_sol_list_hyphen_public.Input( + public func gistsListPublic( + query: Operations.GistsListPublic.Input.Query = .init(), + headers: Operations.GistsListPublic.Input.Headers = .init() + ) async throws -> Operations.GistsListPublic.Output { + try await gistsListPublic(Operations.GistsListPublic.Input( query: query, headers: headers )) @@ -255,11 +255,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/starred`. /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)`. - public func gists_sol_list_hyphen_starred( - query: Operations.gists_sol_list_hyphen_starred.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_starred.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_starred.Output { - try await gists_sol_list_hyphen_starred(Operations.gists_sol_list_hyphen_starred.Input( + public func gistsListStarred( + query: Operations.GistsListStarred.Input.Query = .init(), + headers: Operations.GistsListStarred.Input.Headers = .init() + ) async throws -> Operations.GistsListStarred.Output { + try await gistsListStarred(Operations.GistsListStarred.Input( query: query, headers: headers )) @@ -275,11 +275,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. - public func gists_sol_get( - path: Operations.gists_sol_get.Input.Path, - headers: Operations.gists_sol_get.Input.Headers = .init() - ) async throws -> Operations.gists_sol_get.Output { - try await gists_sol_get(Operations.gists_sol_get.Input( + public func gistsGet( + path: Operations.GistsGet.Input.Path, + headers: Operations.GistsGet.Input.Headers = .init() + ) async throws -> Operations.GistsGet.Output { + try await gistsGet(Operations.GistsGet.Input( path: path, headers: headers )) @@ -299,12 +299,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. - public func gists_sol_update( - path: Operations.gists_sol_update.Input.Path, - headers: Operations.gists_sol_update.Input.Headers = .init(), - body: Operations.gists_sol_update.Input.Body - ) async throws -> Operations.gists_sol_update.Output { - try await gists_sol_update(Operations.gists_sol_update.Input( + public func gistsUpdate( + path: Operations.GistsUpdate.Input.Path, + headers: Operations.GistsUpdate.Input.Headers = .init(), + body: Operations.GistsUpdate.Input.Body + ) async throws -> Operations.GistsUpdate.Output { + try await gistsUpdate(Operations.GistsUpdate.Input( path: path, headers: headers, body: body @@ -316,11 +316,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)`. - public func gists_sol_delete( - path: Operations.gists_sol_delete.Input.Path, - headers: Operations.gists_sol_delete.Input.Headers = .init() - ) async throws -> Operations.gists_sol_delete.Output { - try await gists_sol_delete(Operations.gists_sol_delete.Input( + public func gistsDelete( + path: Operations.GistsDelete.Input.Path, + headers: Operations.GistsDelete.Input.Headers = .init() + ) async throws -> Operations.GistsDelete.Output { + try await gistsDelete(Operations.GistsDelete.Input( path: path, headers: headers )) @@ -336,12 +336,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. - public func gists_sol_list_hyphen_comments( - path: Operations.gists_sol_list_hyphen_comments.Input.Path, - query: Operations.gists_sol_list_hyphen_comments.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_comments.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_comments.Output { - try await gists_sol_list_hyphen_comments(Operations.gists_sol_list_hyphen_comments.Input( + public func gistsListComments( + path: Operations.GistsListComments.Input.Path, + query: Operations.GistsListComments.Input.Query = .init(), + headers: Operations.GistsListComments.Input.Headers = .init() + ) async throws -> Operations.GistsListComments.Output { + try await gistsListComments(Operations.GistsListComments.Input( path: path, query: query, headers: headers @@ -358,12 +358,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. - public func gists_sol_create_hyphen_comment( - path: Operations.gists_sol_create_hyphen_comment.Input.Path, - headers: Operations.gists_sol_create_hyphen_comment.Input.Headers = .init(), - body: Operations.gists_sol_create_hyphen_comment.Input.Body - ) async throws -> Operations.gists_sol_create_hyphen_comment.Output { - try await gists_sol_create_hyphen_comment(Operations.gists_sol_create_hyphen_comment.Input( + public func gistsCreateComment( + path: Operations.GistsCreateComment.Input.Path, + headers: Operations.GistsCreateComment.Input.Headers = .init(), + body: Operations.GistsCreateComment.Input.Body + ) async throws -> Operations.GistsCreateComment.Output { + try await gistsCreateComment(Operations.GistsCreateComment.Input( path: path, headers: headers, body: body @@ -380,11 +380,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. - public func gists_sol_get_hyphen_comment( - path: Operations.gists_sol_get_hyphen_comment.Input.Path, - headers: Operations.gists_sol_get_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.gists_sol_get_hyphen_comment.Output { - try await gists_sol_get_hyphen_comment(Operations.gists_sol_get_hyphen_comment.Input( + public func gistsGetComment( + path: Operations.GistsGetComment.Input.Path, + headers: Operations.GistsGetComment.Input.Headers = .init() + ) async throws -> Operations.GistsGetComment.Output { + try await gistsGetComment(Operations.GistsGetComment.Input( path: path, headers: headers )) @@ -400,12 +400,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. - public func gists_sol_update_hyphen_comment( - path: Operations.gists_sol_update_hyphen_comment.Input.Path, - headers: Operations.gists_sol_update_hyphen_comment.Input.Headers = .init(), - body: Operations.gists_sol_update_hyphen_comment.Input.Body - ) async throws -> Operations.gists_sol_update_hyphen_comment.Output { - try await gists_sol_update_hyphen_comment(Operations.gists_sol_update_hyphen_comment.Input( + public func gistsUpdateComment( + path: Operations.GistsUpdateComment.Input.Path, + headers: Operations.GistsUpdateComment.Input.Headers = .init(), + body: Operations.GistsUpdateComment.Input.Body + ) async throws -> Operations.GistsUpdateComment.Output { + try await gistsUpdateComment(Operations.GistsUpdateComment.Input( path: path, headers: headers, body: body @@ -417,11 +417,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)`. - public func gists_sol_delete_hyphen_comment( - path: Operations.gists_sol_delete_hyphen_comment.Input.Path, - headers: Operations.gists_sol_delete_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.gists_sol_delete_hyphen_comment.Output { - try await gists_sol_delete_hyphen_comment(Operations.gists_sol_delete_hyphen_comment.Input( + public func gistsDeleteComment( + path: Operations.GistsDeleteComment.Input.Path, + headers: Operations.GistsDeleteComment.Input.Headers = .init() + ) async throws -> Operations.GistsDeleteComment.Output { + try await gistsDeleteComment(Operations.GistsDeleteComment.Input( path: path, headers: headers )) @@ -432,12 +432,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/commits`. /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)`. - public func gists_sol_list_hyphen_commits( - path: Operations.gists_sol_list_hyphen_commits.Input.Path, - query: Operations.gists_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_commits.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_commits.Output { - try await gists_sol_list_hyphen_commits(Operations.gists_sol_list_hyphen_commits.Input( + public func gistsListCommits( + path: Operations.GistsListCommits.Input.Path, + query: Operations.GistsListCommits.Input.Query = .init(), + headers: Operations.GistsListCommits.Input.Headers = .init() + ) async throws -> Operations.GistsListCommits.Output { + try await gistsListCommits(Operations.GistsListCommits.Input( path: path, query: query, headers: headers @@ -449,12 +449,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)`. - public func gists_sol_list_hyphen_forks( - path: Operations.gists_sol_list_hyphen_forks.Input.Path, - query: Operations.gists_sol_list_hyphen_forks.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_forks.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_forks.Output { - try await gists_sol_list_hyphen_forks(Operations.gists_sol_list_hyphen_forks.Input( + public func gistsListForks( + path: Operations.GistsListForks.Input.Path, + query: Operations.GistsListForks.Input.Query = .init(), + headers: Operations.GistsListForks.Input.Headers = .init() + ) async throws -> Operations.GistsListForks.Output { + try await gistsListForks(Operations.GistsListForks.Input( path: path, query: query, headers: headers @@ -466,11 +466,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)`. - public func gists_sol_fork( - path: Operations.gists_sol_fork.Input.Path, - headers: Operations.gists_sol_fork.Input.Headers = .init() - ) async throws -> Operations.gists_sol_fork.Output { - try await gists_sol_fork(Operations.gists_sol_fork.Input( + public func gistsFork( + path: Operations.GistsFork.Input.Path, + headers: Operations.GistsFork.Input.Headers = .init() + ) async throws -> Operations.GistsFork.Output { + try await gistsFork(Operations.GistsFork.Input( path: path, headers: headers )) @@ -481,11 +481,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)`. - public func gists_sol_check_hyphen_is_hyphen_starred( - path: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Path, - headers: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Headers = .init() - ) async throws -> Operations.gists_sol_check_hyphen_is_hyphen_starred.Output { - try await gists_sol_check_hyphen_is_hyphen_starred(Operations.gists_sol_check_hyphen_is_hyphen_starred.Input( + public func gistsCheckIsStarred( + path: Operations.GistsCheckIsStarred.Input.Path, + headers: Operations.GistsCheckIsStarred.Input.Headers = .init() + ) async throws -> Operations.GistsCheckIsStarred.Output { + try await gistsCheckIsStarred(Operations.GistsCheckIsStarred.Input( path: path, headers: headers )) @@ -496,11 +496,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)`. - public func gists_sol_star( - path: Operations.gists_sol_star.Input.Path, - headers: Operations.gists_sol_star.Input.Headers = .init() - ) async throws -> Operations.gists_sol_star.Output { - try await gists_sol_star(Operations.gists_sol_star.Input( + public func gistsStar( + path: Operations.GistsStar.Input.Path, + headers: Operations.GistsStar.Input.Headers = .init() + ) async throws -> Operations.GistsStar.Output { + try await gistsStar(Operations.GistsStar.Input( path: path, headers: headers )) @@ -511,11 +511,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)`. - public func gists_sol_unstar( - path: Operations.gists_sol_unstar.Input.Path, - headers: Operations.gists_sol_unstar.Input.Headers = .init() - ) async throws -> Operations.gists_sol_unstar.Output { - try await gists_sol_unstar(Operations.gists_sol_unstar.Input( + public func gistsUnstar( + path: Operations.GistsUnstar.Input.Path, + headers: Operations.GistsUnstar.Input.Headers = .init() + ) async throws -> Operations.GistsUnstar.Output { + try await gistsUnstar(Operations.GistsUnstar.Input( path: path, headers: headers )) @@ -531,11 +531,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. - public func gists_sol_get_hyphen_revision( - path: Operations.gists_sol_get_hyphen_revision.Input.Path, - headers: Operations.gists_sol_get_hyphen_revision.Input.Headers = .init() - ) async throws -> Operations.gists_sol_get_hyphen_revision.Output { - try await gists_sol_get_hyphen_revision(Operations.gists_sol_get_hyphen_revision.Input( + public func gistsGetRevision( + path: Operations.GistsGetRevision.Input.Path, + headers: Operations.GistsGetRevision.Input.Headers = .init() + ) async throws -> Operations.GistsGetRevision.Output { + try await gistsGetRevision(Operations.GistsGetRevision.Input( path: path, headers: headers )) @@ -546,12 +546,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/gists`. /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)`. - public func gists_sol_list_hyphen_for_hyphen_user( - path: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.gists_sol_list_hyphen_for_hyphen_user.Output { - try await gists_sol_list_hyphen_for_hyphen_user(Operations.gists_sol_list_hyphen_for_hyphen_user.Input( + public func gistsListForUser( + path: Operations.GistsListForUser.Input.Path, + query: Operations.GistsListForUser.Input.Query = .init(), + headers: Operations.GistsListForUser.Input.Headers = .init() + ) async throws -> Operations.GistsListForUser.Output { + try await gistsListForUser(Operations.GistsListForUser.Input( path: path, query: query, headers: headers @@ -561,6 +561,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -576,7 +585,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -586,171 +595,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -758,30 +767,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -820,9 +829,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -837,7 +846,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -856,34 +865,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -893,175 +902,175 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// Base Gist /// /// - Remark: Generated from `#/components/schemas/base-gist`. - public struct base_hyphen_gist: Codable, Hashable, Sendable { + public struct BaseGist: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/base-gist/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/id`. public var id: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/git_pull_url`. - public var git_pull_url: Swift.String + public var gitPullUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/git_push_url`. - public var git_push_url: Swift.String + public var gitPushUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/filename`. public var filename: Swift.String? /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/type`. @@ -1069,34 +1078,34 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/raw_url`. - public var raw_url: Swift.String? + public var rawUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/size`. public var size: Swift.Int? /// The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. /// /// - Remark: Generated from `#/components/schemas/base-gist/files/additionalProperties/encoding`. public var encoding: Swift.String? - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - filename: /// - _type: /// - language: - /// - raw_url: + /// - rawUrl: /// - size: /// - encoding: The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. public init( filename: Swift.String? = nil, _type: Swift.String? = nil, language: Swift.String? = nil, - raw_url: Swift.String? = nil, + rawUrl: Swift.String? = nil, size: Swift.Int? = nil, encoding: Swift.String? = nil ) { self.filename = filename self._type = _type self.language = language - self.raw_url = raw_url + self.rawUrl = rawUrl self.size = size self.encoding = encoding } @@ -1104,18 +1113,18 @@ public enum Components { case filename case _type = "type" case language - case raw_url + case rawUrl = "raw_url" case size case encoding } } /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.base_hyphen_gist.filesPayload.additionalPropertiesPayload] - /// Creates a new `filesPayload`. + public var additionalProperties: [String: Components.Schemas.BaseGist.FilesPayload.AdditionalPropertiesPayload] + /// Creates a new `FilesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.base_hyphen_gist.filesPayload.additionalPropertiesPayload] = .init()) { + public init(additionalProperties: [String: Components.Schemas.BaseGist.FilesPayload.AdditionalPropertiesPayload] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -1126,95 +1135,95 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/base-gist/files`. - public var files: Components.Schemas.base_hyphen_gist.filesPayload + public var files: Components.Schemas.BaseGist.FilesPayload /// - Remark: Generated from `#/components/schemas/base-gist/public`. public var _public: Swift.Bool /// - Remark: Generated from `#/components/schemas/base-gist/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/base-gist/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/base-gist/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/base-gist/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/base-gist/comments_enabled`. - public var comments_enabled: Swift.Bool? + public var commentsEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/base-gist/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/base-gist/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/base-gist/owner`. - public var owner: Components.Schemas.simple_hyphen_user? + public var owner: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/base-gist/truncated`. public var truncated: Swift.Bool? /// - Remark: Generated from `#/components/schemas/base-gist/forks`. public var forks: [OpenAPIRuntime.OpenAPIValueContainer]? /// - Remark: Generated from `#/components/schemas/base-gist/history`. public var history: [OpenAPIRuntime.OpenAPIValueContainer]? - /// Creates a new `base_hyphen_gist`. + /// Creates a new `BaseGist`. /// /// - Parameters: /// - url: - /// - forks_url: - /// - commits_url: + /// - forksUrl: + /// - commitsUrl: /// - id: - /// - node_id: - /// - git_pull_url: - /// - git_push_url: - /// - html_url: + /// - nodeId: + /// - gitPullUrl: + /// - gitPushUrl: + /// - htmlUrl: /// - files: /// - _public: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - description: /// - comments: - /// - comments_enabled: + /// - commentsEnabled: /// - user: - /// - comments_url: + /// - commentsUrl: /// - owner: /// - truncated: /// - forks: /// - history: public init( url: Swift.String, - forks_url: Swift.String, - commits_url: Swift.String, + forksUrl: Swift.String, + commitsUrl: Swift.String, id: Swift.String, - node_id: Swift.String, - git_pull_url: Swift.String, - git_push_url: Swift.String, - html_url: Swift.String, - files: Components.Schemas.base_hyphen_gist.filesPayload, + nodeId: Swift.String, + gitPullUrl: Swift.String, + gitPushUrl: Swift.String, + htmlUrl: Swift.String, + files: Components.Schemas.BaseGist.FilesPayload, _public: Swift.Bool, - created_at: Foundation.Date, - updated_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, description: Swift.String? = nil, comments: Swift.Int, - comments_enabled: Swift.Bool? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - comments_url: Swift.String, - owner: Components.Schemas.simple_hyphen_user? = nil, + commentsEnabled: Swift.Bool? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + commentsUrl: Swift.String, + owner: Components.Schemas.SimpleUser? = nil, truncated: Swift.Bool? = nil, forks: [OpenAPIRuntime.OpenAPIValueContainer]? = nil, history: [OpenAPIRuntime.OpenAPIValueContainer]? = nil ) { self.url = url - self.forks_url = forks_url - self.commits_url = commits_url + self.forksUrl = forksUrl + self.commitsUrl = commitsUrl self.id = id - self.node_id = node_id - self.git_pull_url = git_pull_url - self.git_push_url = git_push_url - self.html_url = html_url + self.nodeId = nodeId + self.gitPullUrl = gitPullUrl + self.gitPushUrl = gitPushUrl + self.htmlUrl = htmlUrl self.files = files self._public = _public - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.description = description self.comments = comments - self.comments_enabled = comments_enabled + self.commentsEnabled = commentsEnabled self.user = user - self.comments_url = comments_url + self.commentsUrl = commentsUrl self.owner = owner self.truncated = truncated self.forks = forks @@ -1222,22 +1231,22 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case forks_url - case commits_url + case forksUrl = "forks_url" + case commitsUrl = "commits_url" case id - case node_id - case git_pull_url - case git_push_url - case html_url + case nodeId = "node_id" + case gitPullUrl = "git_pull_url" + case gitPushUrl = "git_push_url" + case htmlUrl = "html_url" case files case _public = "public" - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case description case comments - case comments_enabled + case commentsEnabled = "comments_enabled" case user - case comments_url + case commentsUrl = "comments_url" case owner case truncated case forks @@ -1247,45 +1256,45 @@ public enum Components { /// Public User /// /// - Remark: Generated from `#/components/schemas/public-user`. - public struct public_hyphen_user: Codable, Hashable, Sendable { + public struct PublicUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/public-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/public-user/user_view_type`. - public var user_view_type: Swift.String? + public var userViewType: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/public-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/company`. @@ -1297,27 +1306,27 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/public-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/notification_email`. - public var notification_email: Swift.String? + public var notificationEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/hireable`. public var hireable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/public-user/bio`. public var bio: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/public_repos`. - public var public_repos: Swift.Int + public var publicRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/public_gists`. - public var public_gists: Swift.Int + public var publicGists: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/followers`. public var followers: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/following`. public var following: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/public-user/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/public-user/plan`. - public struct planPayload: Codable, Hashable, Sendable { + public struct PlanPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/public-user/plan/collaborators`. public var collaborators: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/plan/name`. @@ -1325,371 +1334,371 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/public-user/plan/space`. public var space: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/plan/private_repos`. - public var private_repos: Swift.Int - /// Creates a new `planPayload`. + public var privateRepos: Swift.Int + /// Creates a new `PlanPayload`. /// /// - Parameters: /// - collaborators: /// - name: /// - space: - /// - private_repos: + /// - privateRepos: public init( collaborators: Swift.Int, name: Swift.String, space: Swift.Int, - private_repos: Swift.Int + privateRepos: Swift.Int ) { self.collaborators = collaborators self.name = name self.space = space - self.private_repos = private_repos + self.privateRepos = privateRepos } public enum CodingKeys: String, CodingKey { case collaborators case name case space - case private_repos + case privateRepos = "private_repos" } } /// - Remark: Generated from `#/components/schemas/public-user/plan`. - public var plan: Components.Schemas.public_hyphen_user.planPayload? + public var plan: Components.Schemas.PublicUser.PlanPayload? /// - Remark: Generated from `#/components/schemas/public-user/private_gists`. - public var private_gists: Swift.Int? + public var privateGists: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/total_private_repos`. - public var total_private_repos: Swift.Int? + public var totalPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/owned_private_repos`. - public var owned_private_repos: Swift.Int? + public var ownedPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/disk_usage`. - public var disk_usage: Swift.Int? + public var diskUsage: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/collaborators`. public var collaborators: Swift.Int? - /// Creates a new `public_hyphen_user`. + /// Creates a new `PublicUser`. /// /// - Parameters: /// - login: /// - id: - /// - user_view_type: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - userViewType: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - name: /// - company: /// - blog: /// - location: /// - email: - /// - notification_email: + /// - notificationEmail: /// - hireable: /// - bio: - /// - twitter_username: - /// - public_repos: - /// - public_gists: + /// - twitterUsername: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - plan: - /// - private_gists: - /// - total_private_repos: - /// - owned_private_repos: - /// - disk_usage: + /// - privateGists: + /// - totalPrivateRepos: + /// - ownedPrivateRepos: + /// - diskUsage: /// - collaborators: public init( login: Swift.String, id: Swift.Int64, - user_view_type: Swift.String? = nil, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + userViewType: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, + siteAdmin: Swift.Bool, name: Swift.String? = nil, company: Swift.String? = nil, blog: Swift.String? = nil, location: Swift.String? = nil, email: Swift.String? = nil, - notification_email: Swift.String? = nil, + notificationEmail: Swift.String? = nil, hireable: Swift.Bool? = nil, bio: Swift.String? = nil, - twitter_username: Swift.String? = nil, - public_repos: Swift.Int, - public_gists: Swift.Int, + twitterUsername: Swift.String? = nil, + publicRepos: Swift.Int, + publicGists: Swift.Int, followers: Swift.Int, following: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - plan: Components.Schemas.public_hyphen_user.planPayload? = nil, - private_gists: Swift.Int? = nil, - total_private_repos: Swift.Int? = nil, - owned_private_repos: Swift.Int? = nil, - disk_usage: Swift.Int? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + plan: Components.Schemas.PublicUser.PlanPayload? = nil, + privateGists: Swift.Int? = nil, + totalPrivateRepos: Swift.Int? = nil, + ownedPrivateRepos: Swift.Int? = nil, + diskUsage: Swift.Int? = nil, collaborators: Swift.Int? = nil ) { self.login = login self.id = id - self.user_view_type = user_view_type - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.userViewType = userViewType + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.name = name self.company = company self.blog = blog self.location = location self.email = email - self.notification_email = notification_email + self.notificationEmail = notificationEmail self.hireable = hireable self.bio = bio - self.twitter_username = twitter_username - self.public_repos = public_repos - self.public_gists = public_gists + self.twitterUsername = twitterUsername + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.plan = plan - self.private_gists = private_gists - self.total_private_repos = total_private_repos - self.owned_private_repos = owned_private_repos - self.disk_usage = disk_usage + self.privateGists = privateGists + self.totalPrivateRepos = totalPrivateRepos + self.ownedPrivateRepos = ownedPrivateRepos + self.diskUsage = diskUsage self.collaborators = collaborators } public enum CodingKeys: String, CodingKey { case login case id - case user_view_type - case node_id - case avatar_url - case gravatar_id + case userViewType = "user_view_type" + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case name case company case blog case location case email - case notification_email + case notificationEmail = "notification_email" case hireable case bio - case twitter_username - case public_repos - case public_gists + case twitterUsername = "twitter_username" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case plan - case private_gists - case total_private_repos - case owned_private_repos - case disk_usage + case privateGists = "private_gists" + case totalPrivateRepos = "total_private_repos" + case ownedPrivateRepos = "owned_private_repos" + case diskUsage = "disk_usage" case collaborators } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - login = try container.decode( + self.login = try container.decode( Swift.String.self, forKey: .login ) - id = try container.decode( + self.id = try container.decode( Swift.Int64.self, forKey: .id ) - user_view_type = try container.decodeIfPresent( + self.userViewType = try container.decodeIfPresent( Swift.String.self, - forKey: .user_view_type + forKey: .userViewType ) - node_id = try container.decode( + self.nodeId = try container.decode( Swift.String.self, - forKey: .node_id + forKey: .nodeId ) - avatar_url = try container.decode( + self.avatarUrl = try container.decode( Swift.String.self, - forKey: .avatar_url + forKey: .avatarUrl ) - gravatar_id = try container.decodeIfPresent( + self.gravatarId = try container.decodeIfPresent( Swift.String.self, - forKey: .gravatar_id + forKey: .gravatarId ) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) - html_url = try container.decode( + self.htmlUrl = try container.decode( Swift.String.self, - forKey: .html_url + forKey: .htmlUrl ) - followers_url = try container.decode( + self.followersUrl = try container.decode( Swift.String.self, - forKey: .followers_url + forKey: .followersUrl ) - following_url = try container.decode( + self.followingUrl = try container.decode( Swift.String.self, - forKey: .following_url + forKey: .followingUrl ) - gists_url = try container.decode( + self.gistsUrl = try container.decode( Swift.String.self, - forKey: .gists_url + forKey: .gistsUrl ) - starred_url = try container.decode( + self.starredUrl = try container.decode( Swift.String.self, - forKey: .starred_url + forKey: .starredUrl ) - subscriptions_url = try container.decode( + self.subscriptionsUrl = try container.decode( Swift.String.self, - forKey: .subscriptions_url + forKey: .subscriptionsUrl ) - organizations_url = try container.decode( + self.organizationsUrl = try container.decode( Swift.String.self, - forKey: .organizations_url + forKey: .organizationsUrl ) - repos_url = try container.decode( + self.reposUrl = try container.decode( Swift.String.self, - forKey: .repos_url + forKey: .reposUrl ) - events_url = try container.decode( + self.eventsUrl = try container.decode( Swift.String.self, - forKey: .events_url + forKey: .eventsUrl ) - received_events_url = try container.decode( + self.receivedEventsUrl = try container.decode( Swift.String.self, - forKey: .received_events_url + forKey: .receivedEventsUrl ) - _type = try container.decode( + self._type = try container.decode( Swift.String.self, forKey: ._type ) - site_admin = try container.decode( + self.siteAdmin = try container.decode( Swift.Bool.self, - forKey: .site_admin + forKey: .siteAdmin ) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - company = try container.decodeIfPresent( + self.company = try container.decodeIfPresent( Swift.String.self, forKey: .company ) - blog = try container.decodeIfPresent( + self.blog = try container.decodeIfPresent( Swift.String.self, forKey: .blog ) - location = try container.decodeIfPresent( + self.location = try container.decodeIfPresent( Swift.String.self, forKey: .location ) - email = try container.decodeIfPresent( + self.email = try container.decodeIfPresent( Swift.String.self, forKey: .email ) - notification_email = try container.decodeIfPresent( + self.notificationEmail = try container.decodeIfPresent( Swift.String.self, - forKey: .notification_email + forKey: .notificationEmail ) - hireable = try container.decodeIfPresent( + self.hireable = try container.decodeIfPresent( Swift.Bool.self, forKey: .hireable ) - bio = try container.decodeIfPresent( + self.bio = try container.decodeIfPresent( Swift.String.self, forKey: .bio ) - twitter_username = try container.decodeIfPresent( + self.twitterUsername = try container.decodeIfPresent( Swift.String.self, - forKey: .twitter_username + forKey: .twitterUsername ) - public_repos = try container.decode( + self.publicRepos = try container.decode( Swift.Int.self, - forKey: .public_repos + forKey: .publicRepos ) - public_gists = try container.decode( + self.publicGists = try container.decode( Swift.Int.self, - forKey: .public_gists + forKey: .publicGists ) - followers = try container.decode( + self.followers = try container.decode( Swift.Int.self, forKey: .followers ) - following = try container.decode( + self.following = try container.decode( Swift.Int.self, forKey: .following ) - created_at = try container.decode( + self.createdAt = try container.decode( Foundation.Date.self, - forKey: .created_at + forKey: .createdAt ) - updated_at = try container.decode( + self.updatedAt = try container.decode( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - plan = try container.decodeIfPresent( - Components.Schemas.public_hyphen_user.planPayload.self, + self.plan = try container.decodeIfPresent( + Components.Schemas.PublicUser.PlanPayload.self, forKey: .plan ) - private_gists = try container.decodeIfPresent( + self.privateGists = try container.decodeIfPresent( Swift.Int.self, - forKey: .private_gists + forKey: .privateGists ) - total_private_repos = try container.decodeIfPresent( + self.totalPrivateRepos = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_private_repos + forKey: .totalPrivateRepos ) - owned_private_repos = try container.decodeIfPresent( + self.ownedPrivateRepos = try container.decodeIfPresent( Swift.Int.self, - forKey: .owned_private_repos + forKey: .ownedPrivateRepos ) - disk_usage = try container.decodeIfPresent( + self.diskUsage = try container.decodeIfPresent( Swift.Int.self, - forKey: .disk_usage + forKey: .diskUsage ) - collaborators = try container.decodeIfPresent( + self.collaborators = try container.decodeIfPresent( Swift.Int.self, forKey: .collaborators ) @@ -1740,22 +1749,22 @@ public enum Components { /// Gist History /// /// - Remark: Generated from `#/components/schemas/gist-history`. - public struct gist_hyphen_history: Codable, Hashable, Sendable { + public struct GistHistory: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-history/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/gist-history/version`. public var version: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-history/committed_at`. - public var committed_at: Foundation.Date? + public var committedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/gist-history/change_status`. - public struct change_statusPayload: Codable, Hashable, Sendable { + public struct ChangeStatusPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-history/change_status/total`. public var total: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-history/change_status/additions`. public var additions: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-history/change_status/deletions`. public var deletions: Swift.Int? - /// Creates a new `change_statusPayload`. + /// Creates a new `ChangeStatusPayload`. /// /// - Parameters: /// - total: @@ -1777,115 +1786,115 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/gist-history/change_status`. - public var change_status: Components.Schemas.gist_hyphen_history.change_statusPayload? + public var changeStatus: Components.Schemas.GistHistory.ChangeStatusPayload? /// - Remark: Generated from `#/components/schemas/gist-history/url`. public var url: Swift.String? - /// Creates a new `gist_hyphen_history`. + /// Creates a new `GistHistory`. /// /// - Parameters: /// - user: /// - version: - /// - committed_at: - /// - change_status: + /// - committedAt: + /// - changeStatus: /// - url: public init( - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, version: Swift.String? = nil, - committed_at: Foundation.Date? = nil, - change_status: Components.Schemas.gist_hyphen_history.change_statusPayload? = nil, + committedAt: Foundation.Date? = nil, + changeStatus: Components.Schemas.GistHistory.ChangeStatusPayload? = nil, url: Swift.String? = nil ) { self.user = user self.version = version - self.committed_at = committed_at - self.change_status = change_status + self.committedAt = committedAt + self.changeStatus = changeStatus self.url = url } public enum CodingKeys: String, CodingKey { case user case version - case committed_at - case change_status + case committedAt = "committed_at" + case changeStatus = "change_status" case url } } /// Gist Simple /// /// - Remark: Generated from `#/components/schemas/gist-simple`. - public struct gist_hyphen_simple: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload`. - public struct forksPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload/id`. + public struct GistSimple: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload`. + public struct ForksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload/id`. public var id: Swift.String? - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload/url`. + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload/user`. - public var user: Components.Schemas.public_hyphen_user? - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload/created_at`. - public var created_at: Foundation.Date? - /// - Remark: Generated from `#/components/schemas/gist-simple/forksPayload/updated_at`. - public var updated_at: Foundation.Date? - /// Creates a new `forksPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload/user`. + public var user: Components.Schemas.PublicUser? + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload/created_at`. + public var createdAt: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/gist-simple/ForksPayload/updated_at`. + public var updatedAt: Foundation.Date? + /// Creates a new `ForksPayloadPayload`. /// /// - Parameters: /// - id: /// - url: /// - user: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( id: Swift.String? = nil, url: Swift.String? = nil, - user: Components.Schemas.public_hyphen_user? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil + user: Components.Schemas.PublicUser? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil ) { self.id = id self.url = url self.user = user - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case url case user - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// - Remark: Generated from `#/components/schemas/gist-simple/forks`. - public typealias forksPayload = [Components.Schemas.gist_hyphen_simple.forksPayloadPayload] + public typealias ForksPayload = [Components.Schemas.GistSimple.ForksPayloadPayload] /// - Remark: Generated from `#/components/schemas/gist-simple/forks`. @available(*, deprecated) - public var forks: Components.Schemas.gist_hyphen_simple.forksPayload? + public var forks: Components.Schemas.GistSimple.ForksPayload? /// - Remark: Generated from `#/components/schemas/gist-simple/history`. @available(*, deprecated) - public var history: [Components.Schemas.gist_hyphen_history]? + public var history: [Components.Schemas.GistHistory]? /// Gist /// /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of`. - public struct fork_ofPayload: Codable, Hashable, Sendable { + public struct ForkOfPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/id`. public var id: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/git_pull_url`. - public var git_pull_url: Swift.String + public var gitPullUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/git_push_url`. - public var git_push_url: Swift.String + public var gitPushUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties/filename`. public var filename: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties/type`. @@ -1893,45 +1902,45 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties/raw_url`. - public var raw_url: Swift.String? + public var rawUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files/additionalProperties/size`. public var size: Swift.Int? - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - filename: /// - _type: /// - language: - /// - raw_url: + /// - rawUrl: /// - size: public init( filename: Swift.String? = nil, _type: Swift.String? = nil, language: Swift.String? = nil, - raw_url: Swift.String? = nil, + rawUrl: Swift.String? = nil, size: Swift.Int? = nil ) { self.filename = filename self._type = _type self.language = language - self.raw_url = raw_url + self.rawUrl = rawUrl self.size = size } public enum CodingKeys: String, CodingKey { case filename case _type = "type" case language - case raw_url + case rawUrl = "raw_url" case size } } /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.gist_hyphen_simple.fork_ofPayload.filesPayload.additionalPropertiesPayload] - /// Creates a new `filesPayload`. + public var additionalProperties: [String: Components.Schemas.GistSimple.ForkOfPayload.FilesPayload.AdditionalPropertiesPayload] + /// Creates a new `FilesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.gist_hyphen_simple.fork_ofPayload.filesPayload.additionalPropertiesPayload] = .init()) { + public init(additionalProperties: [String: Components.Schemas.GistSimple.ForkOfPayload.FilesPayload.AdditionalPropertiesPayload] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -1942,95 +1951,95 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/files`. - public var files: Components.Schemas.gist_hyphen_simple.fork_ofPayload.filesPayload + public var files: Components.Schemas.GistSimple.ForkOfPayload.FilesPayload /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/public`. public var _public: Swift.Bool /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/comments_enabled`. - public var comments_enabled: Swift.Bool? + public var commentsEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/owner`. - public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var owner: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/truncated`. public var truncated: Swift.Bool? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/forks`. public var forks: [OpenAPIRuntime.OpenAPIValueContainer]? /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of/history`. public var history: [OpenAPIRuntime.OpenAPIValueContainer]? - /// Creates a new `fork_ofPayload`. + /// Creates a new `ForkOfPayload`. /// /// - Parameters: /// - url: - /// - forks_url: - /// - commits_url: + /// - forksUrl: + /// - commitsUrl: /// - id: - /// - node_id: - /// - git_pull_url: - /// - git_push_url: - /// - html_url: + /// - nodeId: + /// - gitPullUrl: + /// - gitPushUrl: + /// - htmlUrl: /// - files: /// - _public: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - description: /// - comments: - /// - comments_enabled: + /// - commentsEnabled: /// - user: - /// - comments_url: + /// - commentsUrl: /// - owner: /// - truncated: /// - forks: /// - history: public init( url: Swift.String, - forks_url: Swift.String, - commits_url: Swift.String, + forksUrl: Swift.String, + commitsUrl: Swift.String, id: Swift.String, - node_id: Swift.String, - git_pull_url: Swift.String, - git_push_url: Swift.String, - html_url: Swift.String, - files: Components.Schemas.gist_hyphen_simple.fork_ofPayload.filesPayload, + nodeId: Swift.String, + gitPullUrl: Swift.String, + gitPushUrl: Swift.String, + htmlUrl: Swift.String, + files: Components.Schemas.GistSimple.ForkOfPayload.FilesPayload, _public: Swift.Bool, - created_at: Foundation.Date, - updated_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, description: Swift.String? = nil, comments: Swift.Int, - comments_enabled: Swift.Bool? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - comments_url: Swift.String, - owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + commentsEnabled: Swift.Bool? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + commentsUrl: Swift.String, + owner: Components.Schemas.NullableSimpleUser? = nil, truncated: Swift.Bool? = nil, forks: [OpenAPIRuntime.OpenAPIValueContainer]? = nil, history: [OpenAPIRuntime.OpenAPIValueContainer]? = nil ) { self.url = url - self.forks_url = forks_url - self.commits_url = commits_url + self.forksUrl = forksUrl + self.commitsUrl = commitsUrl self.id = id - self.node_id = node_id - self.git_pull_url = git_pull_url - self.git_push_url = git_push_url - self.html_url = html_url + self.nodeId = nodeId + self.gitPullUrl = gitPullUrl + self.gitPushUrl = gitPushUrl + self.htmlUrl = htmlUrl self.files = files self._public = _public - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.description = description self.comments = comments - self.comments_enabled = comments_enabled + self.commentsEnabled = commentsEnabled self.user = user - self.comments_url = comments_url + self.commentsUrl = commentsUrl self.owner = owner self.truncated = truncated self.forks = forks @@ -2038,22 +2047,22 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case forks_url - case commits_url + case forksUrl = "forks_url" + case commitsUrl = "commits_url" case id - case node_id - case git_pull_url - case git_push_url - case html_url + case nodeId = "node_id" + case gitPullUrl = "git_pull_url" + case gitPushUrl = "git_push_url" + case htmlUrl = "html_url" case files case _public = "public" - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case description case comments - case comments_enabled + case commentsEnabled = "comments_enabled" case user - case comments_url + case commentsUrl = "comments_url" case owner case truncated case forks @@ -2063,27 +2072,27 @@ public enum Components { /// Gist /// /// - Remark: Generated from `#/components/schemas/gist-simple/fork_of`. - public var fork_of: Components.Schemas.gist_hyphen_simple.fork_ofPayload? + public var forkOf: Components.Schemas.GistSimple.ForkOfPayload? /// - Remark: Generated from `#/components/schemas/gist-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/forks_url`. - public var forks_url: Swift.String? + public var forksUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/commits_url`. - public var commits_url: Swift.String? + public var commitsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/id`. public var id: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/git_pull_url`. - public var git_pull_url: Swift.String? + public var gitPullUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/git_push_url`. - public var git_push_url: Swift.String? + public var gitPushUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/filename`. public var filename: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/type`. @@ -2091,7 +2100,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/raw_url`. - public var raw_url: Swift.String? + public var rawUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/truncated`. @@ -2102,13 +2111,13 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/gist-simple/files/additionalProperties/encoding`. public var encoding: Swift.String? - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - filename: /// - _type: /// - language: - /// - raw_url: + /// - rawUrl: /// - size: /// - truncated: /// - content: @@ -2117,7 +2126,7 @@ public enum Components { filename: Swift.String? = nil, _type: Swift.String? = nil, language: Swift.String? = nil, - raw_url: Swift.String? = nil, + rawUrl: Swift.String? = nil, size: Swift.Int? = nil, truncated: Swift.Bool? = nil, content: Swift.String? = nil, @@ -2126,7 +2135,7 @@ public enum Components { self.filename = filename self._type = _type self.language = language - self.raw_url = raw_url + self.rawUrl = rawUrl self.size = size self.truncated = truncated self.content = content @@ -2136,7 +2145,7 @@ public enum Components { case filename case _type = "type" case language - case raw_url + case rawUrl = "raw_url" case size case truncated case content @@ -2144,12 +2153,12 @@ public enum Components { } } /// A container of undocumented properties. - public var additionalProperties: [String: Components.Schemas.gist_hyphen_simple.filesPayload.additionalPropertiesPayload?] - /// Creates a new `filesPayload`. + public var additionalProperties: [String: Components.Schemas.GistSimple.FilesPayload.AdditionalPropertiesPayload?] + /// Creates a new `FilesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Components.Schemas.gist_hyphen_simple.filesPayload.additionalPropertiesPayload?] = .init()) { + public init(additionalProperties: [String: Components.Schemas.GistSimple.FilesPayload.AdditionalPropertiesPayload?] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -2160,120 +2169,120 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/gist-simple/files`. - public var files: Components.Schemas.gist_hyphen_simple.filesPayload? + public var files: Components.Schemas.GistSimple.FilesPayload? /// - Remark: Generated from `#/components/schemas/gist-simple/public`. public var _public: Swift.Bool? /// - Remark: Generated from `#/components/schemas/gist-simple/created_at`. - public var created_at: Swift.String? + public var createdAt: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/updated_at`. - public var updated_at: Swift.String? + public var updatedAt: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/comments`. public var comments: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-simple/comments_enabled`. - public var comments_enabled: Swift.Bool? + public var commentsEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/gist-simple/user`. public var user: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/comments_url`. - public var comments_url: Swift.String? + public var commentsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/gist-simple/owner`. - public var owner: Components.Schemas.simple_hyphen_user? + public var owner: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/gist-simple/truncated`. public var truncated: Swift.Bool? - /// Creates a new `gist_hyphen_simple`. + /// Creates a new `GistSimple`. /// /// - Parameters: /// - forks: /// - history: - /// - fork_of: Gist + /// - forkOf: Gist /// - url: - /// - forks_url: - /// - commits_url: + /// - forksUrl: + /// - commitsUrl: /// - id: - /// - node_id: - /// - git_pull_url: - /// - git_push_url: - /// - html_url: + /// - nodeId: + /// - gitPullUrl: + /// - gitPushUrl: + /// - htmlUrl: /// - files: /// - _public: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - description: /// - comments: - /// - comments_enabled: + /// - commentsEnabled: /// - user: - /// - comments_url: + /// - commentsUrl: /// - owner: /// - truncated: public init( - forks: Components.Schemas.gist_hyphen_simple.forksPayload? = nil, - history: [Components.Schemas.gist_hyphen_history]? = nil, - fork_of: Components.Schemas.gist_hyphen_simple.fork_ofPayload? = nil, + forks: Components.Schemas.GistSimple.ForksPayload? = nil, + history: [Components.Schemas.GistHistory]? = nil, + forkOf: Components.Schemas.GistSimple.ForkOfPayload? = nil, url: Swift.String? = nil, - forks_url: Swift.String? = nil, - commits_url: Swift.String? = nil, + forksUrl: Swift.String? = nil, + commitsUrl: Swift.String? = nil, id: Swift.String? = nil, - node_id: Swift.String? = nil, - git_pull_url: Swift.String? = nil, - git_push_url: Swift.String? = nil, - html_url: Swift.String? = nil, - files: Components.Schemas.gist_hyphen_simple.filesPayload? = nil, + nodeId: Swift.String? = nil, + gitPullUrl: Swift.String? = nil, + gitPushUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + files: Components.Schemas.GistSimple.FilesPayload? = nil, _public: Swift.Bool? = nil, - created_at: Swift.String? = nil, - updated_at: Swift.String? = nil, + createdAt: Swift.String? = nil, + updatedAt: Swift.String? = nil, description: Swift.String? = nil, comments: Swift.Int? = nil, - comments_enabled: Swift.Bool? = nil, + commentsEnabled: Swift.Bool? = nil, user: Swift.String? = nil, - comments_url: Swift.String? = nil, - owner: Components.Schemas.simple_hyphen_user? = nil, + commentsUrl: Swift.String? = nil, + owner: Components.Schemas.SimpleUser? = nil, truncated: Swift.Bool? = nil ) { self.forks = forks self.history = history - self.fork_of = fork_of + self.forkOf = forkOf self.url = url - self.forks_url = forks_url - self.commits_url = commits_url + self.forksUrl = forksUrl + self.commitsUrl = commitsUrl self.id = id - self.node_id = node_id - self.git_pull_url = git_pull_url - self.git_push_url = git_push_url - self.html_url = html_url + self.nodeId = nodeId + self.gitPullUrl = gitPullUrl + self.gitPushUrl = gitPushUrl + self.htmlUrl = htmlUrl self.files = files self._public = _public - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.description = description self.comments = comments - self.comments_enabled = comments_enabled + self.commentsEnabled = commentsEnabled self.user = user - self.comments_url = comments_url + self.commentsUrl = commentsUrl self.owner = owner self.truncated = truncated } public enum CodingKeys: String, CodingKey { case forks case history - case fork_of + case forkOf = "fork_of" case url - case forks_url - case commits_url + case forksUrl = "forks_url" + case commitsUrl = "commits_url" case id - case node_id - case git_pull_url - case git_push_url - case html_url + case nodeId = "node_id" + case gitPullUrl = "git_pull_url" + case gitPushUrl = "git_push_url" + case htmlUrl = "html_url" case files case _public = "public" - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case description case comments - case comments_enabled + case commentsEnabled = "comments_enabled" case user - case comments_url + case commentsUrl = "comments_url" case owner case truncated } @@ -2281,11 +2290,11 @@ public enum Components { /// A comment made to a gist. /// /// - Remark: Generated from `#/components/schemas/gist-comment`. - public struct gist_hyphen_comment: Codable, Hashable, Sendable { + public struct GistComment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-comment/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/gist-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/gist-comment/url`. public var url: Swift.String /// The comment text. @@ -2293,73 +2302,73 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/gist-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/gist-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/gist-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/gist-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/gist-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association - /// Creates a new `gist_hyphen_comment`. + public var authorAssociation: Components.Schemas.AuthorAssociation + /// Creates a new `GistComment`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - body: The comment text. /// - user: - /// - created_at: - /// - updated_at: - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - authorAssociation: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, body: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - author_association: Components.Schemas.author_hyphen_association + user: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + authorAssociation: Components.Schemas.AuthorAssociation ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.body = body self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.authorAssociation = authorAssociation } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case body case user - case created_at - case updated_at - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case authorAssociation = "author_association" } } /// Gist Commit /// /// - Remark: Generated from `#/components/schemas/gist-commit`. - public struct gist_hyphen_commit: Codable, Hashable, Sendable { + public struct GistCommit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/gist-commit/version`. public var version: Swift.String /// - Remark: Generated from `#/components/schemas/gist-commit/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/gist-commit/change_status`. - public struct change_statusPayload: Codable, Hashable, Sendable { + public struct ChangeStatusPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gist-commit/change_status/total`. public var total: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-commit/change_status/additions`. public var additions: Swift.Int? /// - Remark: Generated from `#/components/schemas/gist-commit/change_status/deletions`. public var deletions: Swift.Int? - /// Creates a new `change_statusPayload`. + /// Creates a new `ChangeStatusPayload`. /// /// - Parameters: /// - total: @@ -2381,36 +2390,36 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/gist-commit/change_status`. - public var change_status: Components.Schemas.gist_hyphen_commit.change_statusPayload + public var changeStatus: Components.Schemas.GistCommit.ChangeStatusPayload /// - Remark: Generated from `#/components/schemas/gist-commit/committed_at`. - public var committed_at: Foundation.Date - /// Creates a new `gist_hyphen_commit`. + public var committedAt: Foundation.Date + /// Creates a new `GistCommit`. /// /// - Parameters: /// - url: /// - version: /// - user: - /// - change_status: - /// - committed_at: + /// - changeStatus: + /// - committedAt: public init( url: Swift.String, version: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - change_status: Components.Schemas.gist_hyphen_commit.change_statusPayload, - committed_at: Foundation.Date + user: Components.Schemas.NullableSimpleUser? = nil, + changeStatus: Components.Schemas.GistCommit.ChangeStatusPayload, + committedAt: Foundation.Date ) { self.url = url self.version = version self.user = user - self.change_status = change_status - self.committed_at = committed_at + self.changeStatus = changeStatus + self.committedAt = committedAt } public enum CodingKeys: String, CodingKey { case url case version case user - case change_status - case committed_at + case changeStatus = "change_status" + case committedAt = "committed_at" } } } @@ -2419,42 +2428,42 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since`. - public typealias since = Foundation.Date + public typealias Since = Foundation.Date /// The unique identifier of the gist. /// /// - Remark: Generated from `#/components/parameters/gist-id`. - public typealias gist_hyphen_id = Swift.String + public typealias GistId = Swift.String /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int64 + public typealias CommentId = Swift.Int64 /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2464,25 +2473,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -2492,29 +2501,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2524,25 +2533,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2552,83 +2561,83 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct forbidden_gist: Sendable, Hashable { + public struct ForbiddenGist: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden_gist/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/block`. - public struct blockPayload: Codable, Hashable, Sendable { + public struct BlockPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/block/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/block/created_at`. - public var created_at: Swift.String? + public var createdAt: Swift.String? /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/block/html_url`. - public var html_url: Swift.String? - /// Creates a new `blockPayload`. + public var htmlUrl: Swift.String? + /// Creates a new `BlockPayload`. /// /// - Parameters: /// - reason: - /// - created_at: - /// - html_url: + /// - createdAt: + /// - htmlUrl: public init( reason: Swift.String? = nil, - created_at: Swift.String? = nil, - html_url: Swift.String? = nil + createdAt: Swift.String? = nil, + htmlUrl: Swift.String? = nil ) { self.reason = reason - self.created_at = created_at - self.html_url = html_url + self.createdAt = createdAt + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case reason - case created_at - case html_url + case createdAt = "created_at" + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/block`. - public var block: Components.Responses.forbidden_gist.Body.jsonPayload.blockPayload? + public var block: Components.Responses.ForbiddenGist.Body.JsonPayload.BlockPayload? /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/forbidden_gist/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - block: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( - block: Components.Responses.forbidden_gist.Body.jsonPayload.blockPayload? = nil, + block: Components.Responses.ForbiddenGist.Body.JsonPayload.BlockPayload? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.block = block self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case block case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/forbidden_gist/content/application\/json`. - case json(Components.Responses.forbidden_gist.Body.jsonPayload) + case json(Components.Responses.ForbiddenGist.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.forbidden_gist.Body.jsonPayload { + public var json: Components.Responses.ForbiddenGist.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -2638,12 +2647,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden_gist.Body - /// Creates a new `forbidden_gist`. + public var body: Components.Responses.ForbiddenGist.Body + /// Creates a new `ForbiddenGist`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden_gist.Body) { + public init(body: Components.Responses.ForbiddenGist.Body) { self.body = body } } @@ -2651,7 +2660,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -2663,7 +2672,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists`. /// - Remark: Generated from `#/paths//gists/get(gists/list)`. - public enum gists_sol_list { + public enum GistsList { public static let id: Swift.String = "gists/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/GET/query`. @@ -2671,52 +2680,52 @@ public enum Operations { /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/gists/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/gists/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list.Input.Query + public var query: Operations.GistsList.Input.Query /// - Remark: Generated from `#/paths/gists/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list.Input.Headers + public var headers: Operations.GistsList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.gists_sol_list.Input.Query = .init(), - headers: Operations.gists_sol_list.Input.Headers = .init() + query: Operations.GistsList.Input.Query = .init(), + headers: Operations.GistsList.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -2727,26 +2736,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list.Output.Ok.Headers + public var headers: Operations.GistsList.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/GET/responses/200/content/application\/json`. - case json([Components.Schemas.base_hyphen_gist]) + case json([Components.Schemas.BaseGist]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.base_hyphen_gist] { + public var json: [Components.Schemas.BaseGist] { get throws { switch self { case let .json(body): @@ -2756,15 +2765,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list.Output.Ok.Body + public var body: Operations.GistsList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list.Output.Ok.Body + headers: Operations.GistsList.Output.Ok.Headers = .init(), + body: Operations.GistsList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -2775,12 +2784,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/get(gists/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list.Output.Ok) + case ok(Operations.GistsList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list.Output.Ok { + public var ok: Operations.GistsList.Output.Ok { get throws { switch self { case let .ok(response): @@ -2798,12 +2807,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/get(gists/list)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/get(gists/list)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -2821,12 +2838,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/get(gists/list)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2879,25 +2896,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /gists`. /// - Remark: Generated from `#/paths//gists/post(gists/create)`. - public enum gists_sol_create { + public enum GistsCreate { public static let id: Swift.String = "gists/create" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_create.Input.Headers + public var headers: Operations.GistsCreate.Input.Headers /// - Remark: Generated from `#/paths/gists/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Description of the gist /// /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/description`. @@ -2905,14 +2922,14 @@ public enum Operations { /// Names and content for the files that make up the gist /// /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/files/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// Content of the file /// /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/files/additionalProperties/content`. public var content: Swift.String - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - content: Content of the file @@ -2924,12 +2941,12 @@ public enum Operations { } } /// A container of undocumented properties. - public var additionalProperties: [String: Operations.gists_sol_create.Input.Body.jsonPayload.filesPayload.additionalPropertiesPayload] - /// Creates a new `filesPayload`. + public var additionalProperties: [String: Operations.GistsCreate.Input.Body.JsonPayload.FilesPayload.AdditionalPropertiesPayload] + /// Creates a new `FilesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Operations.gists_sol_create.Input.Body.jsonPayload.filesPayload.additionalPropertiesPayload] = .init()) { + public init(additionalProperties: [String: Operations.GistsCreate.Input.Body.JsonPayload.FilesPayload.AdditionalPropertiesPayload] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -2942,20 +2959,20 @@ public enum Operations { /// Names and content for the files that make up the gist /// /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/files`. - public var files: Operations.gists_sol_create.Input.Body.jsonPayload.filesPayload + public var files: Operations.GistsCreate.Input.Body.JsonPayload.FilesPayload /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/public`. - @frozen public enum _publicPayload: Codable, Hashable, Sendable { + @frozen public enum PublicPayload: Codable, Hashable, Sendable { /// Flag indicating whether the gist is public /// /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/public/case1`. case case1(Swift.Bool) /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/public/case2`. - @frozen public enum Case2Payload: String, Codable, Hashable, Sendable { + @frozen public enum Case2Payload: String, Codable, Hashable, Sendable, CaseIterable { case _true = "true" case _false = "false" } /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/public/case2`. - case case2(Operations.gists_sol_create.Input.Body.jsonPayload._publicPayload.Case2Payload) + case case2(Operations.GistsCreate.Input.Body.JsonPayload.PublicPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -2986,8 +3003,8 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/gists/POST/requestBody/json/public`. - public var _public: Operations.gists_sol_create.Input.Body.jsonPayload._publicPayload? - /// Creates a new `jsonPayload`. + public var _public: Operations.GistsCreate.Input.Body.JsonPayload.PublicPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - description: Description of the gist @@ -2995,8 +3012,8 @@ public enum Operations { /// - _public: public init( description: Swift.String? = nil, - files: Operations.gists_sol_create.Input.Body.jsonPayload.filesPayload, - _public: Operations.gists_sol_create.Input.Body.jsonPayload._publicPayload? = nil + files: Operations.GistsCreate.Input.Body.JsonPayload.FilesPayload, + _public: Operations.GistsCreate.Input.Body.JsonPayload.PublicPayload? = nil ) { self.description = description self.files = files @@ -3009,17 +3026,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/gists/POST/requestBody/content/application\/json`. - case json(Operations.gists_sol_create.Input.Body.jsonPayload) + case json(Operations.GistsCreate.Input.Body.JsonPayload) } - public var body: Operations.gists_sol_create.Input.Body + public var body: Operations.GistsCreate.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.gists_sol_create.Input.Headers = .init(), - body: Operations.gists_sol_create.Input.Body + headers: Operations.GistsCreate.Input.Headers = .init(), + body: Operations.GistsCreate.Input.Body ) { self.headers = headers self.body = body @@ -3030,26 +3047,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.gists_sol_create.Output.Created.Headers + public var headers: Operations.GistsCreate.Output.Created.Headers /// - Remark: Generated from `#/paths/gists/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/POST/responses/201/content/application\/json`. - case json(Components.Schemas.gist_hyphen_simple) + case json(Components.Schemas.GistSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_simple { + public var json: Components.Schemas.GistSimple { get throws { switch self { case let .json(body): @@ -3059,15 +3076,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_create.Output.Created.Body + public var body: Operations.GistsCreate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_create.Output.Created.Headers = .init(), - body: Operations.gists_sol_create.Output.Created.Body + headers: Operations.GistsCreate.Output.Created.Headers = .init(), + body: Operations.GistsCreate.Output.Created.Body ) { self.headers = headers self.body = body @@ -3078,12 +3095,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.gists_sol_create.Output.Created) + case created(Operations.GistsCreate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.gists_sol_create.Output.Created { + public var created: Operations.GistsCreate.Output.Created { get throws { switch self { case let .created(response): @@ -3101,12 +3118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3124,12 +3141,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3147,12 +3172,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3170,12 +3195,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/post(gists/create)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3227,7 +3252,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/public`. /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)`. - public enum gists_sol_list_hyphen_public { + public enum GistsListPublic { public static let id: Swift.String = "gists/list-public" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/public/GET/query`. @@ -3235,52 +3260,52 @@ public enum Operations { /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/gists/public/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/gists/public/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/public/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_public.Input.Query + public var query: Operations.GistsListPublic.Input.Query /// - Remark: Generated from `#/paths/gists/public/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_public.Input.Headers + public var headers: Operations.GistsListPublic.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.gists_sol_list_hyphen_public.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_public.Input.Headers = .init() + query: Operations.GistsListPublic.Input.Query = .init(), + headers: Operations.GistsListPublic.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -3291,26 +3316,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/public/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/public/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_public.Output.Ok.Headers + public var headers: Operations.GistsListPublic.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/public/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/public/GET/responses/200/content/application\/json`. - case json([Components.Schemas.base_hyphen_gist]) + case json([Components.Schemas.BaseGist]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.base_hyphen_gist] { + public var json: [Components.Schemas.BaseGist] { get throws { switch self { case let .json(body): @@ -3320,15 +3345,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_public.Output.Ok.Body + public var body: Operations.GistsListPublic.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_public.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_public.Output.Ok.Body + headers: Operations.GistsListPublic.Output.Ok.Headers = .init(), + body: Operations.GistsListPublic.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3339,12 +3364,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_public.Output.Ok) + case ok(Operations.GistsListPublic.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_public.Output.Ok { + public var ok: Operations.GistsListPublic.Output.Ok { get throws { switch self { case let .ok(response): @@ -3362,12 +3387,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3385,12 +3410,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3408,12 +3441,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/public/get(gists/list-public)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3463,7 +3496,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/starred`. /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)`. - public enum gists_sol_list_hyphen_starred { + public enum GistsListStarred { public static let id: Swift.String = "gists/list-starred" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/starred/GET/query`. @@ -3471,52 +3504,52 @@ public enum Operations { /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/gists/starred/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/gists/starred/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/starred/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_starred.Input.Query + public var query: Operations.GistsListStarred.Input.Query /// - Remark: Generated from `#/paths/gists/starred/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_starred.Input.Headers + public var headers: Operations.GistsListStarred.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.gists_sol_list_hyphen_starred.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_starred.Input.Headers = .init() + query: Operations.GistsListStarred.Input.Query = .init(), + headers: Operations.GistsListStarred.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -3527,26 +3560,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/starred/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/starred/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_starred.Output.Ok.Headers + public var headers: Operations.GistsListStarred.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/starred/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/starred/GET/responses/200/content/application\/json`. - case json([Components.Schemas.base_hyphen_gist]) + case json([Components.Schemas.BaseGist]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.base_hyphen_gist] { + public var json: [Components.Schemas.BaseGist] { get throws { switch self { case let .json(body): @@ -3556,15 +3589,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_starred.Output.Ok.Body + public var body: Operations.GistsListStarred.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_starred.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_starred.Output.Ok.Body + headers: Operations.GistsListStarred.Output.Ok.Headers = .init(), + body: Operations.GistsListStarred.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3575,12 +3608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_starred.Output.Ok) + case ok(Operations.GistsListStarred.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_starred.Output.Ok { + public var ok: Operations.GistsListStarred.Output.Ok { get throws { switch self { case let .ok(response): @@ -3598,12 +3631,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3621,12 +3654,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3644,12 +3685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/starred/get(gists/list-starred)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3704,7 +3745,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. - public enum gists_sol_get { + public enum GistsGet { public static let id: Swift.String = "gists/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/GET/path`. @@ -3712,36 +3753,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_get.Input.Path + public var path: Operations.GistsGet.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_get.Input.Headers + public var headers: Operations.GistsGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_get.Input.Path, - headers: Operations.gists_sol_get.Input.Headers = .init() + path: Operations.GistsGet.Input.Path, + headers: Operations.GistsGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3752,12 +3793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.gist_hyphen_simple) + case json(Components.Schemas.GistSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_simple { + public var json: Components.Schemas.GistSimple { get throws { switch self { case let .json(body): @@ -3767,12 +3808,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_get.Output.Ok.Body + public var body: Operations.GistsGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_get.Output.Ok.Body) { + public init(body: Operations.GistsGet.Output.Ok.Body) { self.body = body } } @@ -3781,12 +3822,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_get.Output.Ok) + case ok(Operations.GistsGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_get.Output.Ok { + public var ok: Operations.GistsGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -3804,12 +3845,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden_gist) + case forbidden(Components.Responses.ForbiddenGist) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden_gist { + public var forbidden: Components.Responses.ForbiddenGist { get throws { switch self { case let .forbidden(response): @@ -3827,12 +3868,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3850,12 +3891,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3914,7 +3963,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. - public enum gists_sol_update { + public enum GistsUpdate { public static let id: Swift.String = "gists/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/path`. @@ -3922,32 +3971,32 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_update.Input.Path + public var path: Operations.GistsUpdate.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_update.Input.Headers + public var headers: Operations.GistsUpdate.Input.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The description of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/description`. @@ -3959,9 +4008,9 @@ public enum Operations { /// deleted if the specified object does not contain at least one of `content` or `filename`. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/files/additionalProperties`. - public struct additionalPropertiesPayload: Codable, Hashable, Sendable { + public struct AdditionalPropertiesPayload: Codable, Hashable, Sendable { /// The new content of the file. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/files/additionalProperties/content`. @@ -3970,7 +4019,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/files/additionalProperties/filename`. public var filename: Swift.String? - /// Creates a new `additionalPropertiesPayload`. + /// Creates a new `AdditionalPropertiesPayload`. /// /// - Parameters: /// - content: The new content of the file. @@ -3988,12 +4037,12 @@ public enum Operations { } } /// A container of undocumented properties. - public var additionalProperties: [String: Operations.gists_sol_update.Input.Body.jsonPayload.filesPayload.additionalPropertiesPayload?] - /// Creates a new `filesPayload`. + public var additionalProperties: [String: Operations.GistsUpdate.Input.Body.JsonPayload.FilesPayload.AdditionalPropertiesPayload?] + /// Creates a new `FilesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. - public init(additionalProperties: [String: Operations.gists_sol_update.Input.Body.jsonPayload.filesPayload.additionalPropertiesPayload?] = .init()) { + public init(additionalProperties: [String: Operations.GistsUpdate.Input.Body.JsonPayload.FilesPayload.AdditionalPropertiesPayload?] = .init()) { self.additionalProperties = additionalProperties } public init(from decoder: any Decoder) throws { @@ -4010,15 +4059,15 @@ public enum Operations { /// deleted if the specified object does not contain at least one of `content` or `filename`. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/json/files`. - public var files: Operations.gists_sol_update.Input.Body.jsonPayload.filesPayload? - /// Creates a new `jsonPayload`. + public var files: Operations.GistsUpdate.Input.Body.JsonPayload.FilesPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - description: The description of the gist. /// - files: The gist files to be updated, renamed, or deleted. Each `key` must match the current filename public init( description: Swift.String? = nil, - files: Operations.gists_sol_update.Input.Body.jsonPayload.filesPayload? = nil + files: Operations.GistsUpdate.Input.Body.JsonPayload.FilesPayload? = nil ) { self.description = description self.files = files @@ -4029,9 +4078,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.gists_sol_update.Input.Body.jsonPayload) + case json(Operations.GistsUpdate.Input.Body.JsonPayload) } - public var body: Operations.gists_sol_update.Input.Body + public var body: Operations.GistsUpdate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4039,9 +4088,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.gists_sol_update.Input.Path, - headers: Operations.gists_sol_update.Input.Headers = .init(), - body: Operations.gists_sol_update.Input.Body + path: Operations.GistsUpdate.Input.Path, + headers: Operations.GistsUpdate.Input.Headers = .init(), + body: Operations.GistsUpdate.Input.Body ) { self.path = path self.headers = headers @@ -4053,12 +4102,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.gist_hyphen_simple) + case json(Components.Schemas.GistSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_simple { + public var json: Components.Schemas.GistSimple { get throws { switch self { case let .json(body): @@ -4068,12 +4117,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_update.Output.Ok.Body + public var body: Operations.GistsUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_update.Output.Ok.Body) { + public init(body: Operations.GistsUpdate.Output.Ok.Body) { self.body = body } } @@ -4082,12 +4131,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_update.Output.Ok) + case ok(Operations.GistsUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_update.Output.Ok { + public var ok: Operations.GistsUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -4105,12 +4154,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4128,12 +4177,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4183,7 +4232,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)`. - public enum gists_sol_delete { + public enum GistsDelete { public static let id: Swift.String = "gists/delete" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/DELETE/path`. @@ -4191,36 +4240,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/DELETE/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_delete.Input.Path + public var path: Operations.GistsDelete.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_delete.Input.Headers + public var headers: Operations.GistsDelete.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_delete.Input.Path, - headers: Operations.gists_sol_delete.Input.Headers = .init() + path: Operations.GistsDelete.Input.Path, + headers: Operations.GistsDelete.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4236,12 +4285,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.gists_sol_delete.Output.NoContent) + case noContent(Operations.GistsDelete.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.gists_sol_delete.Output.NoContent { + public var noContent: Operations.GistsDelete.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4259,12 +4316,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4282,12 +4339,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4305,12 +4370,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/delete(gists/delete)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4365,7 +4430,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. - public enum gists_sol_list_hyphen_comments { + public enum GistsListComments { public static let id: Swift.String = "gists/list-comments" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/path`. @@ -4373,52 +4438,52 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_list_hyphen_comments.Input.Path + public var path: Operations.GistsListComments.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_comments.Input.Query + public var query: Operations.GistsListComments.Input.Query /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_comments.Input.Headers + public var headers: Operations.GistsListComments.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4426,9 +4491,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.gists_sol_list_hyphen_comments.Input.Path, - query: Operations.gists_sol_list_hyphen_comments.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_comments.Input.Headers = .init() + path: Operations.GistsListComments.Input.Path, + query: Operations.GistsListComments.Input.Query = .init(), + headers: Operations.GistsListComments.Input.Headers = .init() ) { self.path = path self.query = query @@ -4440,26 +4505,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_comments.Output.Ok.Headers + public var headers: Operations.GistsListComments.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.gist_hyphen_comment]) + case json([Components.Schemas.GistComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.gist_hyphen_comment] { + public var json: [Components.Schemas.GistComment] { get throws { switch self { case let .json(body): @@ -4469,15 +4534,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_comments.Output.Ok.Body + public var body: Operations.GistsListComments.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_comments.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_comments.Output.Ok.Body + headers: Operations.GistsListComments.Output.Ok.Headers = .init(), + body: Operations.GistsListComments.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4488,12 +4553,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_comments.Output.Ok) + case ok(Operations.GistsListComments.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_comments.Output.Ok { + public var ok: Operations.GistsListComments.Output.Ok { get throws { switch self { case let .ok(response): @@ -4511,12 +4576,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4534,12 +4607,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4557,12 +4630,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4617,7 +4690,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. - public enum gists_sol_create_hyphen_comment { + public enum GistsCreateComment { public static let id: Swift.String = "gists/create-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/path`. @@ -4625,37 +4698,37 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_create_hyphen_comment.Input.Path + public var path: Operations.GistsCreateComment.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_create_hyphen_comment.Input.Headers + public var headers: Operations.GistsCreateComment.Input.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The comment text. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The comment text. @@ -4667,9 +4740,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/requestBody/content/application\/json`. - case json(Operations.gists_sol_create_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.GistsCreateComment.Input.Body.JsonPayload) } - public var body: Operations.gists_sol_create_hyphen_comment.Input.Body + public var body: Operations.GistsCreateComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4677,9 +4750,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.gists_sol_create_hyphen_comment.Input.Path, - headers: Operations.gists_sol_create_hyphen_comment.Input.Headers = .init(), - body: Operations.gists_sol_create_hyphen_comment.Input.Body + path: Operations.GistsCreateComment.Input.Path, + headers: Operations.GistsCreateComment.Input.Headers = .init(), + body: Operations.GistsCreateComment.Input.Body ) { self.path = path self.headers = headers @@ -4691,26 +4764,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.gists_sol_create_hyphen_comment.Output.Created.Headers + public var headers: Operations.GistsCreateComment.Output.Created.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.gist_hyphen_comment) + case json(Components.Schemas.GistComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_comment { + public var json: Components.Schemas.GistComment { get throws { switch self { case let .json(body): @@ -4720,15 +4793,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_create_hyphen_comment.Output.Created.Body + public var body: Operations.GistsCreateComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_create_hyphen_comment.Output.Created.Headers = .init(), - body: Operations.gists_sol_create_hyphen_comment.Output.Created.Body + headers: Operations.GistsCreateComment.Output.Created.Headers = .init(), + body: Operations.GistsCreateComment.Output.Created.Body ) { self.headers = headers self.body = body @@ -4739,12 +4812,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.gists_sol_create_hyphen_comment.Output.Created) + case created(Operations.GistsCreateComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.gists_sol_create_hyphen_comment.Output.Created { + public var created: Operations.GistsCreateComment.Output.Created { get throws { switch self { case let .created(response): @@ -4762,12 +4835,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4785,12 +4866,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4808,12 +4889,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4868,7 +4949,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. - public enum gists_sol_get_hyphen_comment { + public enum GistsGetComment { public static let id: Swift.String = "gists/get-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/path`. @@ -4876,45 +4957,45 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - /// - comment_id: The unique identifier of the comment. + /// - gistId: The unique identifier of the gist. + /// - commentId: The unique identifier of the comment. public init( - gist_id: Components.Parameters.gist_hyphen_id, - comment_id: Components.Parameters.comment_hyphen_id + gistId: Components.Parameters.GistId, + commentId: Components.Parameters.CommentId ) { - self.gist_id = gist_id - self.comment_id = comment_id + self.gistId = gistId + self.commentId = commentId } } - public var path: Operations.gists_sol_get_hyphen_comment.Input.Path + public var path: Operations.GistsGetComment.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_get_hyphen_comment.Input.Headers + public var headers: Operations.GistsGetComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_get_hyphen_comment.Input.Path, - headers: Operations.gists_sol_get_hyphen_comment.Input.Headers = .init() + path: Operations.GistsGetComment.Input.Path, + headers: Operations.GistsGetComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4925,12 +5006,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.gist_hyphen_comment) + case json(Components.Schemas.GistComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_comment { + public var json: Components.Schemas.GistComment { get throws { switch self { case let .json(body): @@ -4940,12 +5021,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_get_hyphen_comment.Output.Ok.Body + public var body: Operations.GistsGetComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_get_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.GistsGetComment.Output.Ok.Body) { self.body = body } } @@ -4954,12 +5035,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_get_hyphen_comment.Output.Ok) + case ok(Operations.GistsGetComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_get_hyphen_comment.Output.Ok { + public var ok: Operations.GistsGetComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -4977,12 +5058,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5000,12 +5089,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5023,12 +5112,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden_gist) + case forbidden(Components.Responses.ForbiddenGist) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden_gist { + public var forbidden: Components.Responses.ForbiddenGist { get throws { switch self { case let .forbidden(response): @@ -5083,7 +5172,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. - public enum gists_sol_update_hyphen_comment { + public enum GistsUpdateComment { public static let id: Swift.String = "gists/update-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/path`. @@ -5091,46 +5180,46 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - /// - comment_id: The unique identifier of the comment. + /// - gistId: The unique identifier of the gist. + /// - commentId: The unique identifier of the comment. public init( - gist_id: Components.Parameters.gist_hyphen_id, - comment_id: Components.Parameters.comment_hyphen_id + gistId: Components.Parameters.GistId, + commentId: Components.Parameters.CommentId ) { - self.gist_id = gist_id - self.comment_id = comment_id + self.gistId = gistId + self.commentId = commentId } } - public var path: Operations.gists_sol_update_hyphen_comment.Input.Path + public var path: Operations.GistsUpdateComment.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_update_hyphen_comment.Input.Headers + public var headers: Operations.GistsUpdateComment.Input.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The comment text. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The comment text. @@ -5142,9 +5231,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.gists_sol_update_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.GistsUpdateComment.Input.Body.JsonPayload) } - public var body: Operations.gists_sol_update_hyphen_comment.Input.Body + public var body: Operations.GistsUpdateComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5152,9 +5241,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.gists_sol_update_hyphen_comment.Input.Path, - headers: Operations.gists_sol_update_hyphen_comment.Input.Headers = .init(), - body: Operations.gists_sol_update_hyphen_comment.Input.Body + path: Operations.GistsUpdateComment.Input.Path, + headers: Operations.GistsUpdateComment.Input.Headers = .init(), + body: Operations.GistsUpdateComment.Input.Body ) { self.path = path self.headers = headers @@ -5166,12 +5255,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.gist_hyphen_comment) + case json(Components.Schemas.GistComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_comment { + public var json: Components.Schemas.GistComment { get throws { switch self { case let .json(body): @@ -5181,12 +5270,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_update_hyphen_comment.Output.Ok.Body + public var body: Operations.GistsUpdateComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_update_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.GistsUpdateComment.Output.Ok.Body) { self.body = body } } @@ -5195,12 +5284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_update_hyphen_comment.Output.Ok) + case ok(Operations.GistsUpdateComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_update_hyphen_comment.Output.Ok { + public var ok: Operations.GistsUpdateComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -5218,12 +5307,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5273,7 +5362,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)`. - public enum gists_sol_delete_hyphen_comment { + public enum GistsDeleteComment { public static let id: Swift.String = "gists/delete-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/DELETE/path`. @@ -5281,45 +5370,45 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/DELETE/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - /// - comment_id: The unique identifier of the comment. + /// - gistId: The unique identifier of the gist. + /// - commentId: The unique identifier of the comment. public init( - gist_id: Components.Parameters.gist_hyphen_id, - comment_id: Components.Parameters.comment_hyphen_id + gistId: Components.Parameters.GistId, + commentId: Components.Parameters.CommentId ) { - self.gist_id = gist_id - self.comment_id = comment_id + self.gistId = gistId + self.commentId = commentId } } - public var path: Operations.gists_sol_delete_hyphen_comment.Input.Path + public var path: Operations.GistsDeleteComment.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/comments/{comment_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_delete_hyphen_comment.Input.Headers + public var headers: Operations.GistsDeleteComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_delete_hyphen_comment.Input.Path, - headers: Operations.gists_sol_delete_hyphen_comment.Input.Headers = .init() + path: Operations.GistsDeleteComment.Input.Path, + headers: Operations.GistsDeleteComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5335,12 +5424,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.gists_sol_delete_hyphen_comment.Output.NoContent) + case noContent(Operations.GistsDeleteComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.gists_sol_delete_hyphen_comment.Output.NoContent { + public var noContent: Operations.GistsDeleteComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5358,12 +5455,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5381,12 +5486,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5404,12 +5509,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/delete(gists/delete-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5459,7 +5564,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/commits`. /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)`. - public enum gists_sol_list_hyphen_commits { + public enum GistsListCommits { public static let id: Swift.String = "gists/list-commits" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/path`. @@ -5467,52 +5572,52 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_list_hyphen_commits.Input.Path + public var path: Operations.GistsListCommits.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_commits.Input.Query + public var query: Operations.GistsListCommits.Input.Query /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_commits.Input.Headers + public var headers: Operations.GistsListCommits.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5520,9 +5625,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.gists_sol_list_hyphen_commits.Input.Path, - query: Operations.gists_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_commits.Input.Headers = .init() + path: Operations.GistsListCommits.Input.Path, + query: Operations.GistsListCommits.Input.Query = .init(), + headers: Operations.GistsListCommits.Input.Headers = .init() ) { self.path = path self.query = query @@ -5534,26 +5639,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/responses/200/headers/Link`. - public var Link: Swift.String? + public var link: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Swift.String? = nil) { - self.Link = Link + /// - link: + public init(link: Swift.String? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_commits.Output.Ok.Headers + public var headers: Operations.GistsListCommits.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/commits/GET/responses/200/content/application\/json`. - case json([Components.Schemas.gist_hyphen_commit]) + case json([Components.Schemas.GistCommit]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.gist_hyphen_commit] { + public var json: [Components.Schemas.GistCommit] { get throws { switch self { case let .json(body): @@ -5563,15 +5668,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_commits.Output.Ok.Body + public var body: Operations.GistsListCommits.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_commits.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_commits.Output.Ok.Body + headers: Operations.GistsListCommits.Output.Ok.Headers = .init(), + body: Operations.GistsListCommits.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5582,12 +5687,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_commits.Output.Ok) + case ok(Operations.GistsListCommits.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_commits.Output.Ok { + public var ok: Operations.GistsListCommits.Output.Ok { get throws { switch self { case let .ok(response): @@ -5605,12 +5710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5628,12 +5733,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5651,12 +5764,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/commits/get(gists/list-commits)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5706,7 +5819,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)`. - public enum gists_sol_list_hyphen_forks { + public enum GistsListForks { public static let id: Swift.String = "gists/list-forks" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/path`. @@ -5714,52 +5827,52 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_list_hyphen_forks.Input.Path + public var path: Operations.GistsListForks.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_forks.Input.Query + public var query: Operations.GistsListForks.Input.Query /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_forks.Input.Headers + public var headers: Operations.GistsListForks.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5767,9 +5880,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.gists_sol_list_hyphen_forks.Input.Path, - query: Operations.gists_sol_list_hyphen_forks.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_forks.Input.Headers = .init() + path: Operations.GistsListForks.Input.Path, + query: Operations.GistsListForks.Input.Query = .init(), + headers: Operations.GistsListForks.Input.Headers = .init() ) { self.path = path self.query = query @@ -5781,26 +5894,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_forks.Output.Ok.Headers + public var headers: Operations.GistsListForks.Output.Ok.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.gist_hyphen_simple]) + case json([Components.Schemas.GistSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.gist_hyphen_simple] { + public var json: [Components.Schemas.GistSimple] { get throws { switch self { case let .json(body): @@ -5810,15 +5923,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_forks.Output.Ok.Body + public var body: Operations.GistsListForks.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_forks.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_forks.Output.Ok.Body + headers: Operations.GistsListForks.Output.Ok.Headers = .init(), + body: Operations.GistsListForks.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5829,12 +5942,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_forks.Output.Ok) + case ok(Operations.GistsListForks.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_forks.Output.Ok { + public var ok: Operations.GistsListForks.Output.Ok { get throws { switch self { case let .ok(response): @@ -5852,12 +5965,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5875,12 +5988,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5898,12 +6019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/get(gists/list-forks)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5953,7 +6074,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /gists/{gist_id}/forks`. /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)`. - public enum gists_sol_fork { + public enum GistsFork { public static let id: Swift.String = "gists/fork" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/path`. @@ -5961,36 +6082,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_fork.Input.Path + public var path: Operations.GistsFork.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_fork.Input.Headers + public var headers: Operations.GistsFork.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_fork.Input.Path, - headers: Operations.gists_sol_fork.Input.Headers = .init() + path: Operations.GistsFork.Input.Path, + headers: Operations.GistsFork.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6001,26 +6122,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.gists_sol_fork.Output.Created.Headers + public var headers: Operations.GistsFork.Output.Created.Headers /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/forks/POST/responses/201/content/application\/json`. - case json(Components.Schemas.base_hyphen_gist) + case json(Components.Schemas.BaseGist) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.base_hyphen_gist { + public var json: Components.Schemas.BaseGist { get throws { switch self { case let .json(body): @@ -6030,15 +6151,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_fork.Output.Created.Body + public var body: Operations.GistsFork.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_fork.Output.Created.Headers = .init(), - body: Operations.gists_sol_fork.Output.Created.Body + headers: Operations.GistsFork.Output.Created.Headers = .init(), + body: Operations.GistsFork.Output.Created.Body ) { self.headers = headers self.body = body @@ -6049,12 +6170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.gists_sol_fork.Output.Created) + case created(Operations.GistsFork.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.gists_sol_fork.Output.Created { + public var created: Operations.GistsFork.Output.Created { get throws { switch self { case let .created(response): @@ -6072,12 +6193,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6095,12 +6216,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6118,12 +6239,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6141,12 +6270,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/forks/post(gists/fork)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6196,7 +6325,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)`. - public enum gists_sol_check_hyphen_is_hyphen_starred { + public enum GistsCheckIsStarred { public static let id: Swift.String = "gists/check-is-starred" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/path`. @@ -6204,36 +6333,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Path + public var path: Operations.GistsCheckIsStarred.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Headers + public var headers: Operations.GistsCheckIsStarred.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Path, - headers: Operations.gists_sol_check_hyphen_is_hyphen_starred.Input.Headers = .init() + path: Operations.GistsCheckIsStarred.Input.Path, + headers: Operations.GistsCheckIsStarred.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6249,12 +6378,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NoContent) + case noContent(Operations.GistsCheckIsStarred.Output.NoContent) + /// Response if gist is starred + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NoContent { + public var noContent: Operations.GistsCheckIsStarred.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6271,20 +6408,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/responses/404/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// Creates a new `jsonPayload`. + public struct JsonPayload: Codable, Hashable, Sendable { + /// Creates a new `JsonPayload`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } /// - Remark: Generated from `#/paths/gists/{gist_id}/star/GET/responses/404/content/application\/json`. - case json(Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body.jsonPayload) + case json(Operations.GistsCheckIsStarred.Output.NotFound.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body.jsonPayload { + public var json: Operations.GistsCheckIsStarred.Output.NotFound.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6294,12 +6431,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body + public var body: Operations.GistsCheckIsStarred.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound.Body) { + public init(body: Operations.GistsCheckIsStarred.Output.NotFound.Body) { self.body = body } } @@ -6308,12 +6445,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound) + case notFound(Operations.GistsCheckIsStarred.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.gists_sol_check_hyphen_is_hyphen_starred.Output.NotFound { + public var notFound: Operations.GistsCheckIsStarred.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -6331,12 +6468,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6354,12 +6499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/get(gists/check-is-starred)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6409,7 +6554,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)`. - public enum gists_sol_star { + public enum GistsStar { public static let id: Swift.String = "gists/star" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/star/PUT/path`. @@ -6417,36 +6562,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/star/PUT/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_star.Input.Path + public var path: Operations.GistsStar.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/star/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_star.Input.Headers + public var headers: Operations.GistsStar.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_star.Input.Path, - headers: Operations.gists_sol_star.Input.Headers = .init() + path: Operations.GistsStar.Input.Path, + headers: Operations.GistsStar.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6462,12 +6607,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.gists_sol_star.Output.NoContent) + case noContent(Operations.GistsStar.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.gists_sol_star.Output.NoContent { + public var noContent: Operations.GistsStar.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6485,12 +6638,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6508,12 +6661,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6531,12 +6692,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/put(gists/star)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6586,7 +6747,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /gists/{gist_id}/star`. /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)`. - public enum gists_sol_unstar { + public enum GistsUnstar { public static let id: Swift.String = "gists/unstar" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/star/DELETE/path`. @@ -6594,36 +6755,36 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/star/DELETE/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. - public init(gist_id: Components.Parameters.gist_hyphen_id) { - self.gist_id = gist_id + /// - gistId: The unique identifier of the gist. + public init(gistId: Components.Parameters.GistId) { + self.gistId = gistId } } - public var path: Operations.gists_sol_unstar.Input.Path + public var path: Operations.GistsUnstar.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/star/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_unstar.Input.Headers + public var headers: Operations.GistsUnstar.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_unstar.Input.Path, - headers: Operations.gists_sol_unstar.Input.Headers = .init() + path: Operations.GistsUnstar.Input.Path, + headers: Operations.GistsUnstar.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6639,12 +6800,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.gists_sol_unstar.Output.NoContent) + case noContent(Operations.GistsUnstar.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.gists_sol_unstar.Output.NoContent { + public var noContent: Operations.GistsUnstar.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6662,12 +6831,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6685,12 +6862,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6708,12 +6885,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/star/delete(gists/unstar)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6768,7 +6945,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. - public enum gists_sol_get_hyphen_revision { + public enum GistsGetRevision { public static let id: Swift.String = "gists/get-revision" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/path`. @@ -6776,43 +6953,43 @@ public enum Operations { /// The unique identifier of the gist. /// /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/path/gist_id`. - public var gist_id: Components.Parameters.gist_hyphen_id + public var gistId: Components.Parameters.GistId /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/path/sha`. public var sha: Swift.String /// Creates a new `Path`. /// /// - Parameters: - /// - gist_id: The unique identifier of the gist. + /// - gistId: The unique identifier of the gist. /// - sha: public init( - gist_id: Components.Parameters.gist_hyphen_id, + gistId: Components.Parameters.GistId, sha: Swift.String ) { - self.gist_id = gist_id + self.gistId = gistId self.sha = sha } } - public var path: Operations.gists_sol_get_hyphen_revision.Input.Path + public var path: Operations.GistsGetRevision.Input.Path /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_get_hyphen_revision.Input.Headers + public var headers: Operations.GistsGetRevision.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gists_sol_get_hyphen_revision.Input.Path, - headers: Operations.gists_sol_get_hyphen_revision.Input.Headers = .init() + path: Operations.GistsGetRevision.Input.Path, + headers: Operations.GistsGetRevision.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6823,12 +7000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gists/{gist_id}/{sha}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.gist_hyphen_simple) + case json(Components.Schemas.GistSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gist_hyphen_simple { + public var json: Components.Schemas.GistSimple { get throws { switch self { case let .json(body): @@ -6838,12 +7015,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_get_hyphen_revision.Output.Ok.Body + public var body: Operations.GistsGetRevision.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gists_sol_get_hyphen_revision.Output.Ok.Body) { + public init(body: Operations.GistsGetRevision.Output.Ok.Body) { self.body = body } } @@ -6852,12 +7029,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_get_hyphen_revision.Output.Ok) + case ok(Operations.GistsGetRevision.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_get_hyphen_revision.Output.Ok { + public var ok: Operations.GistsGetRevision.Output.Ok { get throws { switch self { case let .ok(response): @@ -6875,12 +7052,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6898,12 +7075,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6921,12 +7098,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6976,7 +7153,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/gists`. /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)`. - public enum gists_sol_list_hyphen_for_hyphen_user { + public enum GistsListForUser { public static let id: Swift.String = "gists/list-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gists/GET/path`. @@ -6984,59 +7161,59 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/gists/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Path + public var path: Operations.GistsListForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/gists/GET/query`. public struct Query: Sendable, Hashable { /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/users/{username}/gists/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/gists/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/gists/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Query + public var query: Operations.GistsListForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/gists/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.GistsListForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7044,9 +7221,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.GistsListForUser.Input.Path, + query: Operations.GistsListForUser.Input.Query = .init(), + headers: Operations.GistsListForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -7058,26 +7235,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/gists/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gists/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.GistsListForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/gists/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gists/GET/responses/200/content/application\/json`. - case json([Components.Schemas.base_hyphen_gist]) + case json([Components.Schemas.BaseGist]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.base_hyphen_gist] { + public var json: [Components.Schemas.BaseGist] { get throws { switch self { case let .json(body): @@ -7087,15 +7264,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.GistsListForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.GistsListForUser.Output.Ok.Headers = .init(), + body: Operations.GistsListForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7106,12 +7283,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.GistsListForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gists_sol_list_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.GistsListForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7129,12 +7306,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/gists/get(gists/list-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): From 7da2c0103939d6eb2624a83b1f9bd35cacc4042c Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:01:55 -0700 Subject: [PATCH 14/46] Commit via running ake Sources/git --- Sources/git/Client.swift | 250 +++---- Sources/git/Types.swift | 1469 +++++++++++++++++++------------------- 2 files changed, 872 insertions(+), 847 deletions(-) diff --git a/Sources/git/Client.swift b/Sources/git/Client.swift index 2280cc0494..8dd29cae38 100644 --- a/Sources/git/Client.swift +++ b/Sources/git/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/blobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)`. - public func git_sol_create_hyphen_blob(_ input: Operations.git_sol_create_hyphen_blob.Input) async throws -> Operations.git_sol_create_hyphen_blob.Output { + public func gitCreateBlob(_ input: Operations.GitCreateBlob.Input) async throws -> Operations.GitCreateBlob.Output { try await client.send( input: input, - forOperation: Operations.git_sol_create_hyphen_blob.id, + forOperation: Operations.GitCreateBlob.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/blobs", @@ -79,13 +79,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.git_sol_create_hyphen_blob.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitCreateBlob.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_blob.Output.Created.Body + let body: Operations.GitCreateBlob.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -95,7 +95,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.short_hyphen_blob.self, + Components.Schemas.ShortBlob.self, from: responseBody, transforming: { value in .json(value) @@ -110,7 +110,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -120,7 +120,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -132,7 +132,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -142,7 +142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -154,7 +154,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -164,7 +164,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -176,7 +176,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body + let body: Operations.GitCreateBlob.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -186,7 +186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body.jsonPayload.self, + Operations.GitCreateBlob.Output.UnprocessableContent.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -221,17 +221,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`. - public func git_sol_get_hyphen_blob(_ input: Operations.git_sol_get_hyphen_blob.Input) async throws -> Operations.git_sol_get_hyphen_blob.Output { + public func gitGetBlob(_ input: Operations.GitGetBlob.Input) async throws -> Operations.GitGetBlob.Output { try await client.send( input: input, - forOperation: Operations.git_sol_get_hyphen_blob.id, + forOperation: Operations.GitGetBlob.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/blobs/{}", parameters: [ input.path.owner, input.path.repo, - input.path.file_sha + input.path.fileSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -249,7 +249,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_get_hyphen_blob.Output.Ok.Body + let body: Operations.GitGetBlob.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -259,7 +259,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.blob.self, + Components.Schemas.Blob.self, from: responseBody, transforming: { value in .json(value) @@ -271,7 +271,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -281,7 +281,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -293,7 +293,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -303,7 +303,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -315,7 +315,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -325,7 +325,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -337,7 +337,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -347,7 +347,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -405,10 +405,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)`. - public func git_sol_create_hyphen_commit(_ input: Operations.git_sol_create_hyphen_commit.Input) async throws -> Operations.git_sol_create_hyphen_commit.Output { + public func gitCreateCommit(_ input: Operations.GitCreateCommit.Input) async throws -> Operations.GitCreateCommit.Output { try await client.send( input: input, - forOperation: Operations.git_sol_create_hyphen_commit.id, + forOperation: Operations.GitCreateCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/commits", @@ -440,13 +440,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.git_sol_create_hyphen_commit.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitCreateCommit.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_commit.Output.Created.Body + let body: Operations.GitCreateCommit.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -456,7 +456,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_commit.self, + Components.Schemas.GitCommit.self, from: responseBody, transforming: { value in .json(value) @@ -471,7 +471,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -481,7 +481,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -493,7 +493,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -503,7 +503,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -515,7 +515,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -525,7 +525,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -585,17 +585,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/commits/{commit_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)`. - public func git_sol_get_hyphen_commit(_ input: Operations.git_sol_get_hyphen_commit.Input) async throws -> Operations.git_sol_get_hyphen_commit.Output { + public func gitGetCommit(_ input: Operations.GitGetCommit.Input) async throws -> Operations.GitGetCommit.Output { try await client.send( input: input, - forOperation: Operations.git_sol_get_hyphen_commit.id, + forOperation: Operations.GitGetCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/commits/{}", parameters: [ input.path.owner, input.path.repo, - input.path.commit_sha + input.path.commitSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -613,7 +613,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_get_hyphen_commit.Output.Ok.Body + let body: Operations.GitGetCommit.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -623,7 +623,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_commit.self, + Components.Schemas.GitCommit.self, from: responseBody, transforming: { value in .json(value) @@ -635,7 +635,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -645,7 +645,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -657,7 +657,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -667,7 +667,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -702,10 +702,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/matching-refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)`. - public func git_sol_list_hyphen_matching_hyphen_refs(_ input: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input) async throws -> Operations.git_sol_list_hyphen_matching_hyphen_refs.Output { + public func gitListMatchingRefs(_ input: Operations.GitListMatchingRefs.Input) async throws -> Operations.GitListMatchingRefs.Output { try await client.send( input: input, - forOperation: Operations.git_sol_list_hyphen_matching_hyphen_refs.id, + forOperation: Operations.GitListMatchingRefs.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/matching-refs/{}", @@ -729,13 +729,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitListMatchingRefs.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Body + let body: Operations.GitListMatchingRefs.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -745,7 +745,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.git_hyphen_ref].self, + [Components.Schemas.GitRef].self, from: responseBody, transforming: { value in .json(value) @@ -760,7 +760,7 @@ public struct Client: APIProtocol { )) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -770,7 +770,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -801,10 +801,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/ref/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)`. - public func git_sol_get_hyphen_ref(_ input: Operations.git_sol_get_hyphen_ref.Input) async throws -> Operations.git_sol_get_hyphen_ref.Output { + public func gitGetRef(_ input: Operations.GitGetRef.Input) async throws -> Operations.GitGetRef.Output { try await client.send( input: input, - forOperation: Operations.git_sol_get_hyphen_ref.id, + forOperation: Operations.GitGetRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/ref/{}", @@ -829,7 +829,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_get_hyphen_ref.Output.Ok.Body + let body: Operations.GitGetRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -839,7 +839,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_ref.self, + Components.Schemas.GitRef.self, from: responseBody, transforming: { value in .json(value) @@ -851,7 +851,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -861,7 +861,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -873,7 +873,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -883,7 +883,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -911,10 +911,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/refs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)`. - public func git_sol_create_hyphen_ref(_ input: Operations.git_sol_create_hyphen_ref.Input) async throws -> Operations.git_sol_create_hyphen_ref.Output { + public func gitCreateRef(_ input: Operations.GitCreateRef.Input) async throws -> Operations.GitCreateRef.Output { try await client.send( input: input, - forOperation: Operations.git_sol_create_hyphen_ref.id, + forOperation: Operations.GitCreateRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/refs", @@ -946,13 +946,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.git_sol_create_hyphen_ref.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitCreateRef.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_ref.Output.Created.Body + let body: Operations.GitCreateRef.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -962,7 +962,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_ref.self, + Components.Schemas.GitRef.self, from: responseBody, transforming: { value in .json(value) @@ -977,7 +977,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -987,7 +987,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -999,7 +999,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1009,7 +1009,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1037,10 +1037,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)`. - public func git_sol_update_hyphen_ref(_ input: Operations.git_sol_update_hyphen_ref.Input) async throws -> Operations.git_sol_update_hyphen_ref.Output { + public func gitUpdateRef(_ input: Operations.GitUpdateRef.Input) async throws -> Operations.GitUpdateRef.Output { try await client.send( input: input, - forOperation: Operations.git_sol_update_hyphen_ref.id, + forOperation: Operations.GitUpdateRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/refs/{}", @@ -1074,7 +1074,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_update_hyphen_ref.Output.Ok.Body + let body: Operations.GitUpdateRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1084,7 +1084,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_ref.self, + Components.Schemas.GitRef.self, from: responseBody, transforming: { value in .json(value) @@ -1096,7 +1096,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1106,7 +1106,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1118,7 +1118,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1128,7 +1128,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1156,10 +1156,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)`. - public func git_sol_delete_hyphen_ref(_ input: Operations.git_sol_delete_hyphen_ref.Input) async throws -> Operations.git_sol_delete_hyphen_ref.Output { + public func gitDeleteRef(_ input: Operations.GitDeleteRef.Input) async throws -> Operations.GitDeleteRef.Output { try await client.send( input: input, - forOperation: Operations.git_sol_delete_hyphen_ref.id, + forOperation: Operations.GitDeleteRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/refs/{}", @@ -1188,7 +1188,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1198,7 +1198,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1256,10 +1256,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)`. - public func git_sol_create_hyphen_tag(_ input: Operations.git_sol_create_hyphen_tag.Input) async throws -> Operations.git_sol_create_hyphen_tag.Output { + public func gitCreateTag(_ input: Operations.GitCreateTag.Input) async throws -> Operations.GitCreateTag.Output { try await client.send( input: input, - forOperation: Operations.git_sol_create_hyphen_tag.id, + forOperation: Operations.GitCreateTag.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/tags", @@ -1291,13 +1291,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.git_sol_create_hyphen_tag.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitCreateTag.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_tag.Output.Created.Body + let body: Operations.GitCreateTag.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1307,7 +1307,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_tag.self, + Components.Schemas.GitTag.self, from: responseBody, transforming: { value in .json(value) @@ -1322,7 +1322,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1332,7 +1332,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1344,7 +1344,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1354,7 +1354,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1410,17 +1410,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/tags/{tag_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)`. - public func git_sol_get_hyphen_tag(_ input: Operations.git_sol_get_hyphen_tag.Input) async throws -> Operations.git_sol_get_hyphen_tag.Output { + public func gitGetTag(_ input: Operations.GitGetTag.Input) async throws -> Operations.GitGetTag.Output { try await client.send( input: input, - forOperation: Operations.git_sol_get_hyphen_tag.id, + forOperation: Operations.GitGetTag.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/tags/{}", parameters: [ input.path.owner, input.path.repo, - input.path.tag_sha + input.path.tagSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1438,7 +1438,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_get_hyphen_tag.Output.Ok.Body + let body: Operations.GitGetTag.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1448,7 +1448,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_tag.self, + Components.Schemas.GitTag.self, from: responseBody, transforming: { value in .json(value) @@ -1460,7 +1460,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1470,7 +1470,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1482,7 +1482,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1492,7 +1492,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1524,10 +1524,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/trees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)`. - public func git_sol_create_hyphen_tree(_ input: Operations.git_sol_create_hyphen_tree.Input) async throws -> Operations.git_sol_create_hyphen_tree.Output { + public func gitCreateTree(_ input: Operations.GitCreateTree.Input) async throws -> Operations.GitCreateTree.Output { try await client.send( input: input, - forOperation: Operations.git_sol_create_hyphen_tree.id, + forOperation: Operations.GitCreateTree.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/trees", @@ -1559,13 +1559,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.git_sol_create_hyphen_tree.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.GitCreateTree.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_create_hyphen_tree.Output.Created.Body + let body: Operations.GitCreateTree.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1575,7 +1575,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_tree.self, + Components.Schemas.GitTree.self, from: responseBody, transforming: { value in .json(value) @@ -1590,7 +1590,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1600,7 +1600,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1612,7 +1612,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1622,7 +1622,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1634,7 +1634,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1644,7 +1644,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1656,7 +1656,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1666,7 +1666,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1699,17 +1699,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/trees/{tree_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)`. - public func git_sol_get_hyphen_tree(_ input: Operations.git_sol_get_hyphen_tree.Input) async throws -> Operations.git_sol_get_hyphen_tree.Output { + public func gitGetTree(_ input: Operations.GitGetTree.Input) async throws -> Operations.GitGetTree.Output { try await client.send( input: input, - forOperation: Operations.git_sol_get_hyphen_tree.id, + forOperation: Operations.GitGetTree.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/git/trees/{}", parameters: [ input.path.owner, input.path.repo, - input.path.tree_sha + input.path.treeSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1734,7 +1734,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.git_sol_get_hyphen_tree.Output.Ok.Body + let body: Operations.GitGetTree.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1744,7 +1744,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.git_hyphen_tree.self, + Components.Schemas.GitTree.self, from: responseBody, transforming: { value in .json(value) @@ -1756,7 +1756,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1766,7 +1766,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1778,7 +1778,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1788,7 +1788,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1800,7 +1800,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1810,7 +1810,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/git/Types.swift b/Sources/git/Types.swift index 69f8478cfe..31ab1051aa 100644 --- a/Sources/git/Types.swift +++ b/Sources/git/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/blobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)`. - func git_sol_create_hyphen_blob(_ input: Operations.git_sol_create_hyphen_blob.Input) async throws -> Operations.git_sol_create_hyphen_blob.Output + func gitCreateBlob(_ input: Operations.GitCreateBlob.Input) async throws -> Operations.GitCreateBlob.Output /// Get a blob /// /// The `content` in the response will always be Base64 encoded. @@ -31,7 +31,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`. - func git_sol_get_hyphen_blob(_ input: Operations.git_sol_get_hyphen_blob.Input) async throws -> Operations.git_sol_get_hyphen_blob.Output + func gitGetBlob(_ input: Operations.GitGetBlob.Input) async throws -> Operations.GitGetBlob.Output /// Create a commit /// /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). @@ -68,7 +68,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)`. - func git_sol_create_hyphen_commit(_ input: Operations.git_sol_create_hyphen_commit.Input) async throws -> Operations.git_sol_create_hyphen_commit.Output + func gitCreateCommit(_ input: Operations.GitCreateCommit.Input) async throws -> Operations.GitCreateCommit.Output /// Get a commit object /// /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). @@ -107,7 +107,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/commits/{commit_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)`. - func git_sol_get_hyphen_commit(_ input: Operations.git_sol_get_hyphen_commit.Input) async throws -> Operations.git_sol_get_hyphen_commit.Output + func gitGetCommit(_ input: Operations.GitGetCommit.Input) async throws -> Operations.GitGetCommit.Output /// List matching references /// /// Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. @@ -121,7 +121,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/matching-refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)`. - func git_sol_list_hyphen_matching_hyphen_refs(_ input: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input) async throws -> Operations.git_sol_list_hyphen_matching_hyphen_refs.Output + func gitListMatchingRefs(_ input: Operations.GitListMatchingRefs.Input) async throws -> Operations.GitListMatchingRefs.Output /// Get a reference /// /// Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. @@ -131,28 +131,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/ref/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)`. - func git_sol_get_hyphen_ref(_ input: Operations.git_sol_get_hyphen_ref.Input) async throws -> Operations.git_sol_get_hyphen_ref.Output + func gitGetRef(_ input: Operations.GitGetRef.Input) async throws -> Operations.GitGetRef.Output /// Create a reference /// /// Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/refs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)`. - func git_sol_create_hyphen_ref(_ input: Operations.git_sol_create_hyphen_ref.Input) async throws -> Operations.git_sol_create_hyphen_ref.Output + func gitCreateRef(_ input: Operations.GitCreateRef.Input) async throws -> Operations.GitCreateRef.Output /// Update a reference /// /// Updates the provided reference to point to a new SHA. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)`. - func git_sol_update_hyphen_ref(_ input: Operations.git_sol_update_hyphen_ref.Input) async throws -> Operations.git_sol_update_hyphen_ref.Output + func gitUpdateRef(_ input: Operations.GitUpdateRef.Input) async throws -> Operations.GitUpdateRef.Output /// Delete a reference /// /// Deletes the provided reference. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)`. - func git_sol_delete_hyphen_ref(_ input: Operations.git_sol_delete_hyphen_ref.Input) async throws -> Operations.git_sol_delete_hyphen_ref.Output + func gitDeleteRef(_ input: Operations.GitDeleteRef.Input) async throws -> Operations.GitDeleteRef.Output /// Create a tag object /// /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary. @@ -189,7 +189,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)`. - func git_sol_create_hyphen_tag(_ input: Operations.git_sol_create_hyphen_tag.Input) async throws -> Operations.git_sol_create_hyphen_tag.Output + func gitCreateTag(_ input: Operations.GitCreateTag.Input) async throws -> Operations.GitCreateTag.Output /// Get a tag /// /// **Signature verification object** @@ -224,7 +224,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/tags/{tag_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)`. - func git_sol_get_hyphen_tag(_ input: Operations.git_sol_get_hyphen_tag.Input) async throws -> Operations.git_sol_get_hyphen_tag.Output + func gitGetTag(_ input: Operations.GitGetTag.Input) async throws -> Operations.GitGetTag.Output /// Create a tree /// /// The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. @@ -235,7 +235,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/trees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)`. - func git_sol_create_hyphen_tree(_ input: Operations.git_sol_create_hyphen_tree.Input) async throws -> Operations.git_sol_create_hyphen_tree.Output + func gitCreateTree(_ input: Operations.GitCreateTree.Input) async throws -> Operations.GitCreateTree.Output /// Get a tree /// /// Returns a single tree using the SHA1 value or ref name for that tree. @@ -247,7 +247,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/trees/{tree_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)`. - func git_sol_get_hyphen_tree(_ input: Operations.git_sol_get_hyphen_tree.Input) async throws -> Operations.git_sol_get_hyphen_tree.Output + func gitGetTree(_ input: Operations.GitGetTree.Input) async throws -> Operations.GitGetTree.Output } /// Convenience overloads for operation inputs. @@ -258,12 +258,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/blobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)`. - public func git_sol_create_hyphen_blob( - path: Operations.git_sol_create_hyphen_blob.Input.Path, - headers: Operations.git_sol_create_hyphen_blob.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_blob.Input.Body - ) async throws -> Operations.git_sol_create_hyphen_blob.Output { - try await git_sol_create_hyphen_blob(Operations.git_sol_create_hyphen_blob.Input( + public func gitCreateBlob( + path: Operations.GitCreateBlob.Input.Path, + headers: Operations.GitCreateBlob.Input.Headers = .init(), + body: Operations.GitCreateBlob.Input.Body + ) async throws -> Operations.GitCreateBlob.Output { + try await gitCreateBlob(Operations.GitCreateBlob.Input( path: path, headers: headers, body: body @@ -282,11 +282,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`. - public func git_sol_get_hyphen_blob( - path: Operations.git_sol_get_hyphen_blob.Input.Path, - headers: Operations.git_sol_get_hyphen_blob.Input.Headers = .init() - ) async throws -> Operations.git_sol_get_hyphen_blob.Output { - try await git_sol_get_hyphen_blob(Operations.git_sol_get_hyphen_blob.Input( + public func gitGetBlob( + path: Operations.GitGetBlob.Input.Path, + headers: Operations.GitGetBlob.Input.Headers = .init() + ) async throws -> Operations.GitGetBlob.Output { + try await gitGetBlob(Operations.GitGetBlob.Input( path: path, headers: headers )) @@ -327,12 +327,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)`. - public func git_sol_create_hyphen_commit( - path: Operations.git_sol_create_hyphen_commit.Input.Path, - headers: Operations.git_sol_create_hyphen_commit.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_commit.Input.Body - ) async throws -> Operations.git_sol_create_hyphen_commit.Output { - try await git_sol_create_hyphen_commit(Operations.git_sol_create_hyphen_commit.Input( + public func gitCreateCommit( + path: Operations.GitCreateCommit.Input.Path, + headers: Operations.GitCreateCommit.Input.Headers = .init(), + body: Operations.GitCreateCommit.Input.Body + ) async throws -> Operations.GitCreateCommit.Output { + try await gitCreateCommit(Operations.GitCreateCommit.Input( path: path, headers: headers, body: body @@ -376,11 +376,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/commits/{commit_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)`. - public func git_sol_get_hyphen_commit( - path: Operations.git_sol_get_hyphen_commit.Input.Path, - headers: Operations.git_sol_get_hyphen_commit.Input.Headers = .init() - ) async throws -> Operations.git_sol_get_hyphen_commit.Output { - try await git_sol_get_hyphen_commit(Operations.git_sol_get_hyphen_commit.Input( + public func gitGetCommit( + path: Operations.GitGetCommit.Input.Path, + headers: Operations.GitGetCommit.Input.Headers = .init() + ) async throws -> Operations.GitGetCommit.Output { + try await gitGetCommit(Operations.GitGetCommit.Input( path: path, headers: headers )) @@ -398,11 +398,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/matching-refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)`. - public func git_sol_list_hyphen_matching_hyphen_refs( - path: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Path, - headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Headers = .init() - ) async throws -> Operations.git_sol_list_hyphen_matching_hyphen_refs.Output { - try await git_sol_list_hyphen_matching_hyphen_refs(Operations.git_sol_list_hyphen_matching_hyphen_refs.Input( + public func gitListMatchingRefs( + path: Operations.GitListMatchingRefs.Input.Path, + headers: Operations.GitListMatchingRefs.Input.Headers = .init() + ) async throws -> Operations.GitListMatchingRefs.Output { + try await gitListMatchingRefs(Operations.GitListMatchingRefs.Input( path: path, headers: headers )) @@ -416,11 +416,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/ref/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)`. - public func git_sol_get_hyphen_ref( - path: Operations.git_sol_get_hyphen_ref.Input.Path, - headers: Operations.git_sol_get_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.git_sol_get_hyphen_ref.Output { - try await git_sol_get_hyphen_ref(Operations.git_sol_get_hyphen_ref.Input( + public func gitGetRef( + path: Operations.GitGetRef.Input.Path, + headers: Operations.GitGetRef.Input.Headers = .init() + ) async throws -> Operations.GitGetRef.Output { + try await gitGetRef(Operations.GitGetRef.Input( path: path, headers: headers )) @@ -431,12 +431,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/refs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)`. - public func git_sol_create_hyphen_ref( - path: Operations.git_sol_create_hyphen_ref.Input.Path, - headers: Operations.git_sol_create_hyphen_ref.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_ref.Input.Body - ) async throws -> Operations.git_sol_create_hyphen_ref.Output { - try await git_sol_create_hyphen_ref(Operations.git_sol_create_hyphen_ref.Input( + public func gitCreateRef( + path: Operations.GitCreateRef.Input.Path, + headers: Operations.GitCreateRef.Input.Headers = .init(), + body: Operations.GitCreateRef.Input.Body + ) async throws -> Operations.GitCreateRef.Output { + try await gitCreateRef(Operations.GitCreateRef.Input( path: path, headers: headers, body: body @@ -448,12 +448,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)`. - public func git_sol_update_hyphen_ref( - path: Operations.git_sol_update_hyphen_ref.Input.Path, - headers: Operations.git_sol_update_hyphen_ref.Input.Headers = .init(), - body: Operations.git_sol_update_hyphen_ref.Input.Body - ) async throws -> Operations.git_sol_update_hyphen_ref.Output { - try await git_sol_update_hyphen_ref(Operations.git_sol_update_hyphen_ref.Input( + public func gitUpdateRef( + path: Operations.GitUpdateRef.Input.Path, + headers: Operations.GitUpdateRef.Input.Headers = .init(), + body: Operations.GitUpdateRef.Input.Body + ) async throws -> Operations.GitUpdateRef.Output { + try await gitUpdateRef(Operations.GitUpdateRef.Input( path: path, headers: headers, body: body @@ -465,11 +465,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)`. - public func git_sol_delete_hyphen_ref( - path: Operations.git_sol_delete_hyphen_ref.Input.Path, - headers: Operations.git_sol_delete_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.git_sol_delete_hyphen_ref.Output { - try await git_sol_delete_hyphen_ref(Operations.git_sol_delete_hyphen_ref.Input( + public func gitDeleteRef( + path: Operations.GitDeleteRef.Input.Path, + headers: Operations.GitDeleteRef.Input.Headers = .init() + ) async throws -> Operations.GitDeleteRef.Output { + try await gitDeleteRef(Operations.GitDeleteRef.Input( path: path, headers: headers )) @@ -510,12 +510,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)`. - public func git_sol_create_hyphen_tag( - path: Operations.git_sol_create_hyphen_tag.Input.Path, - headers: Operations.git_sol_create_hyphen_tag.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_tag.Input.Body - ) async throws -> Operations.git_sol_create_hyphen_tag.Output { - try await git_sol_create_hyphen_tag(Operations.git_sol_create_hyphen_tag.Input( + public func gitCreateTag( + path: Operations.GitCreateTag.Input.Path, + headers: Operations.GitCreateTag.Input.Headers = .init(), + body: Operations.GitCreateTag.Input.Body + ) async throws -> Operations.GitCreateTag.Output { + try await gitCreateTag(Operations.GitCreateTag.Input( path: path, headers: headers, body: body @@ -555,11 +555,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/tags/{tag_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)`. - public func git_sol_get_hyphen_tag( - path: Operations.git_sol_get_hyphen_tag.Input.Path, - headers: Operations.git_sol_get_hyphen_tag.Input.Headers = .init() - ) async throws -> Operations.git_sol_get_hyphen_tag.Output { - try await git_sol_get_hyphen_tag(Operations.git_sol_get_hyphen_tag.Input( + public func gitGetTag( + path: Operations.GitGetTag.Input.Path, + headers: Operations.GitGetTag.Input.Headers = .init() + ) async throws -> Operations.GitGetTag.Output { + try await gitGetTag(Operations.GitGetTag.Input( path: path, headers: headers )) @@ -574,12 +574,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/trees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)`. - public func git_sol_create_hyphen_tree( - path: Operations.git_sol_create_hyphen_tree.Input.Path, - headers: Operations.git_sol_create_hyphen_tree.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_tree.Input.Body - ) async throws -> Operations.git_sol_create_hyphen_tree.Output { - try await git_sol_create_hyphen_tree(Operations.git_sol_create_hyphen_tree.Input( + public func gitCreateTree( + path: Operations.GitCreateTree.Input.Path, + headers: Operations.GitCreateTree.Input.Headers = .init(), + body: Operations.GitCreateTree.Input.Body + ) async throws -> Operations.GitCreateTree.Output { + try await gitCreateTree(Operations.GitCreateTree.Input( path: path, headers: headers, body: body @@ -596,12 +596,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/trees/{tree_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)`. - public func git_sol_get_hyphen_tree( - path: Operations.git_sol_get_hyphen_tree.Input.Path, - query: Operations.git_sol_get_hyphen_tree.Input.Query = .init(), - headers: Operations.git_sol_get_hyphen_tree.Input.Headers = .init() - ) async throws -> Operations.git_sol_get_hyphen_tree.Output { - try await git_sol_get_hyphen_tree(Operations.git_sol_get_hyphen_tree.Input( + public func gitGetTree( + path: Operations.GitGetTree.Input.Path, + query: Operations.GitGetTree.Input.Query = .init(), + headers: Operations.GitGetTree.Input.Headers = .init() + ) async throws -> Operations.GitGetTree.Output { + try await gitGetTree(Operations.GitGetTree.Input( path: path, query: query, headers: headers @@ -611,6 +611,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -626,36 +635,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -663,30 +672,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -725,9 +734,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -742,7 +751,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -761,32 +770,32 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/components/schemas/verification`. - public struct verification: Codable, Hashable, Sendable { + public struct Verification: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/verification/reason`. @@ -796,128 +805,128 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/verification/signature`. public var signature: Swift.String? /// - Remark: Generated from `#/components/schemas/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verification`. + public var verifiedAt: Swift.String? + /// Creates a new `Verification`. /// /// - Parameters: /// - verified: /// - reason: /// - payload: /// - signature: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, payload: Swift.String? = nil, signature: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.payload = payload self.signature = signature - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case payload case signature - case verified_at + case verifiedAt = "verified_at" } } /// The ID of the push protection bypass placeholder. This value is returned on any push protected routes. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass-placeholder-id`. - public typealias secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id = Swift.String + public typealias SecretScanningPushProtectionBypassPlaceholderId = Swift.String /// Repository rule violation was detected /// /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error`. - public struct repository_hyphen_rule_hyphen_violation_hyphen_error: Codable, Hashable, Sendable { + public struct RepositoryRuleViolationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/status`. public var status: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata`. - public struct metadataPayload: Codable, Hashable, Sendable { + public struct MetadataPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload`. - public struct bypass_placeholdersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload/placeholder_id`. - public var placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id? - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload/token_type`. - public var token_type: Swift.String? - /// Creates a new `bypass_placeholdersPayloadPayload`. + public struct SecretScanningPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload`. + public struct BypassPlaceholdersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload/placeholder_id`. + public var placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId? + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload/token_type`. + public var tokenType: Swift.String? + /// Creates a new `BypassPlaceholdersPayloadPayload`. /// /// - Parameters: - /// - placeholder_id: - /// - token_type: + /// - placeholderId: + /// - tokenType: public init( - placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id? = nil, - token_type: Swift.String? = nil + placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId? = nil, + tokenType: Swift.String? = nil ) { - self.placeholder_id = placeholder_id - self.token_type = token_type + self.placeholderId = placeholderId + self.tokenType = tokenType } public enum CodingKeys: String, CodingKey { - case placeholder_id - case token_type + case placeholderId = "placeholder_id" + case tokenType = "token_type" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholders`. - public typealias bypass_placeholdersPayload = [Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayloadPayload] + public typealias BypassPlaceholdersPayload = [Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayloadPayload] /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholders`. - public var bypass_placeholders: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayload? - /// Creates a new `secret_scanningPayload`. + public var bypassPlaceholders: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: - /// - bypass_placeholders: - public init(bypass_placeholders: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayload? = nil) { - self.bypass_placeholders = bypass_placeholders + /// - bypassPlaceholders: + public init(bypassPlaceholders: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayload? = nil) { + self.bypassPlaceholders = bypassPlaceholders } public enum CodingKeys: String, CodingKey { - case bypass_placeholders + case bypassPlaceholders = "bypass_placeholders" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning`. - public var secret_scanning: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload? - /// Creates a new `metadataPayload`. + public var secretScanning: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload? + /// Creates a new `MetadataPayload`. /// /// - Parameters: - /// - secret_scanning: - public init(secret_scanning: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload? = nil) { - self.secret_scanning = secret_scanning + /// - secretScanning: + public init(secretScanning: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload? = nil) { + self.secretScanning = secretScanning } public enum CodingKeys: String, CodingKey { - case secret_scanning + case secretScanning = "secret_scanning" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata`. - public var metadata: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload? - /// Creates a new `repository_hyphen_rule_hyphen_violation_hyphen_error`. + public var metadata: Components.Schemas.RepositoryRuleViolationError.MetadataPayload? + /// Creates a new `RepositoryRuleViolationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - status: /// - metadata: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, status: Swift.String? = nil, - metadata: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload? = nil + metadata: Components.Schemas.RepositoryRuleViolationError.MetadataPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.status = status self.metadata = metadata } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case status case metadata } @@ -925,12 +934,12 @@ public enum Components { /// Short Blob /// /// - Remark: Generated from `#/components/schemas/short-blob`. - public struct short_hyphen_blob: Codable, Hashable, Sendable { + public struct ShortBlob: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/short-blob/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/short-blob/sha`. public var sha: Swift.String - /// Creates a new `short_hyphen_blob`. + /// Creates a new `ShortBlob`. /// /// - Parameters: /// - url: @@ -950,7 +959,7 @@ public enum Components { /// Blob /// /// - Remark: Generated from `#/components/schemas/blob`. - public struct blob: Codable, Hashable, Sendable { + public struct Blob: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/blob/content`. public var content: Swift.String /// - Remark: Generated from `#/components/schemas/blob/encoding`. @@ -962,10 +971,10 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/blob/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/blob/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/blob/highlighted_content`. - public var highlighted_content: Swift.String? - /// Creates a new `blob`. + public var highlightedContent: Swift.String? + /// Creates a new `Blob`. /// /// - Parameters: /// - content: @@ -973,24 +982,24 @@ public enum Components { /// - url: /// - sha: /// - size: - /// - node_id: - /// - highlighted_content: + /// - nodeId: + /// - highlightedContent: public init( content: Swift.String, encoding: Swift.String, url: Swift.String, sha: Swift.String, size: Swift.Int? = nil, - node_id: Swift.String, - highlighted_content: Swift.String? = nil + nodeId: Swift.String, + highlightedContent: Swift.String? = nil ) { self.content = content self.encoding = encoding self.url = url self.sha = sha self.size = size - self.node_id = node_id - self.highlighted_content = highlighted_content + self.nodeId = nodeId + self.highlightedContent = highlightedContent } public enum CodingKeys: String, CodingKey { case content @@ -998,26 +1007,26 @@ public enum Components { case url case sha case size - case node_id - case highlighted_content + case nodeId = "node_id" + case highlightedContent = "highlighted_content" } } /// Low-level Git commit operations within a repository /// /// - Remark: Generated from `#/components/schemas/git-commit`. - public struct git_hyphen_commit: Codable, Hashable, Sendable { + public struct GitCommit: Codable, Hashable, Sendable { /// SHA for the commit /// /// - Remark: Generated from `#/components/schemas/git-commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/git-commit/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/git-commit/url`. public var url: Swift.String /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/git-commit/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// Timestamp of the commit /// /// - Remark: Generated from `#/components/schemas/git-commit/author/date`. @@ -1030,7 +1039,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/git-commit/author/name`. public var name: Swift.String - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - date: Timestamp of the commit @@ -1054,11 +1063,11 @@ public enum Components { /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/git-commit/author`. - public var author: Components.Schemas.git_hyphen_commit.authorPayload + public var author: Components.Schemas.GitCommit.AuthorPayload /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/git-commit/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// Timestamp of the commit /// /// - Remark: Generated from `#/components/schemas/git-commit/committer/date`. @@ -1071,7 +1080,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/git-commit/committer/name`. public var name: Swift.String - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - date: Timestamp of the commit @@ -1095,20 +1104,20 @@ public enum Components { /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/git-commit/committer`. - public var committer: Components.Schemas.git_hyphen_commit.committerPayload + public var committer: Components.Schemas.GitCommit.CommitterPayload /// Message describing the purpose of the commit /// /// - Remark: Generated from `#/components/schemas/git-commit/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/git-commit/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// SHA for the commit /// /// - Remark: Generated from `#/components/schemas/git-commit/tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/git-commit/tree/url`. public var url: Swift.String - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - sha: SHA for the commit @@ -1126,44 +1135,44 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/git-commit/tree`. - public var tree: Components.Schemas.git_hyphen_commit.treePayload - /// - Remark: Generated from `#/components/schemas/git-commit/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { + public var tree: Components.Schemas.GitCommit.TreePayload + /// - Remark: Generated from `#/components/schemas/git-commit/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { /// SHA for the commit /// - /// - Remark: Generated from `#/components/schemas/git-commit/parentsPayload/sha`. + /// - Remark: Generated from `#/components/schemas/git-commit/ParentsPayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/git-commit/parentsPayload/url`. + /// - Remark: Generated from `#/components/schemas/git-commit/ParentsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/git-commit/parentsPayload/html_url`. - public var html_url: Swift.String - /// Creates a new `parentsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/git-commit/ParentsPayload/html_url`. + public var htmlUrl: Swift.String + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - sha: SHA for the commit /// - url: - /// - html_url: + /// - htmlUrl: public init( sha: Swift.String, url: Swift.String, - html_url: Swift.String + htmlUrl: Swift.String ) { self.sha = sha self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case sha case url - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/git-commit/parents`. - public typealias parentsPayload = [Components.Schemas.git_hyphen_commit.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.GitCommit.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/git-commit/parents`. - public var parents: Components.Schemas.git_hyphen_commit.parentsPayload + public var parents: Components.Schemas.GitCommit.ParentsPayload /// - Remark: Generated from `#/components/schemas/git-commit/verification`. - public struct verificationPayload: Codable, Hashable, Sendable { + public struct VerificationPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-commit/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/git-commit/verification/reason`. @@ -1173,45 +1182,45 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/git-commit/verification/payload`. public var payload: Swift.String? /// - Remark: Generated from `#/components/schemas/git-commit/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verificationPayload`. + public var verifiedAt: Swift.String? + /// Creates a new `VerificationPayload`. /// /// - Parameters: /// - verified: /// - reason: /// - signature: /// - payload: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, signature: Swift.String? = nil, payload: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.signature = signature self.payload = payload - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case signature case payload - case verified_at + case verifiedAt = "verified_at" } } /// - Remark: Generated from `#/components/schemas/git-commit/verification`. - public var verification: Components.Schemas.git_hyphen_commit.verificationPayload + public var verification: Components.Schemas.GitCommit.VerificationPayload /// - Remark: Generated from `#/components/schemas/git-commit/html_url`. - public var html_url: Swift.String - /// Creates a new `git_hyphen_commit`. + public var htmlUrl: Swift.String + /// Creates a new `GitCommit`. /// /// - Parameters: /// - sha: SHA for the commit - /// - node_id: + /// - nodeId: /// - url: /// - author: Identifying information for the git-user /// - committer: Identifying information for the git-user @@ -1219,21 +1228,21 @@ public enum Components { /// - tree: /// - parents: /// - verification: - /// - html_url: + /// - htmlUrl: public init( sha: Swift.String, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - author: Components.Schemas.git_hyphen_commit.authorPayload, - committer: Components.Schemas.git_hyphen_commit.committerPayload, + author: Components.Schemas.GitCommit.AuthorPayload, + committer: Components.Schemas.GitCommit.CommitterPayload, message: Swift.String, - tree: Components.Schemas.git_hyphen_commit.treePayload, - parents: Components.Schemas.git_hyphen_commit.parentsPayload, - verification: Components.Schemas.git_hyphen_commit.verificationPayload, - html_url: Swift.String + tree: Components.Schemas.GitCommit.TreePayload, + parents: Components.Schemas.GitCommit.ParentsPayload, + verification: Components.Schemas.GitCommit.VerificationPayload, + htmlUrl: Swift.String ) { self.sha = sha - self.node_id = node_id + self.nodeId = nodeId self.url = url self.author = author self.committer = committer @@ -1241,11 +1250,11 @@ public enum Components { self.tree = tree self.parents = parents self.verification = verification - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case sha - case node_id + case nodeId = "node_id" case url case author case committer @@ -1253,21 +1262,21 @@ public enum Components { case tree case parents case verification - case html_url + case htmlUrl = "html_url" } } /// Git references within a repository /// /// - Remark: Generated from `#/components/schemas/git-ref`. - public struct git_hyphen_ref: Codable, Hashable, Sendable { + public struct GitRef: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-ref/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/git-ref/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/git-ref/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/git-ref/object`. - public struct objectPayload: Codable, Hashable, Sendable { + public struct ObjectPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-ref/object/type`. public var _type: Swift.String /// SHA for the reference @@ -1276,7 +1285,7 @@ public enum Components { public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/git-ref/object/url`. public var url: Swift.String - /// Creates a new `objectPayload`. + /// Creates a new `ObjectPayload`. /// /// - Parameters: /// - _type: @@ -1298,28 +1307,28 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/git-ref/object`. - public var object: Components.Schemas.git_hyphen_ref.objectPayload - /// Creates a new `git_hyphen_ref`. + public var object: Components.Schemas.GitRef.ObjectPayload + /// Creates a new `GitRef`. /// /// - Parameters: /// - ref: - /// - node_id: + /// - nodeId: /// - url: /// - object: public init( ref: Swift.String, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - object: Components.Schemas.git_hyphen_ref.objectPayload + object: Components.Schemas.GitRef.ObjectPayload ) { self.ref = ref - self.node_id = node_id + self.nodeId = nodeId self.url = url self.object = object } public enum CodingKeys: String, CodingKey { case ref - case node_id + case nodeId = "node_id" case url case object } @@ -1327,9 +1336,9 @@ public enum Components { /// Metadata for a Git tag /// /// - Remark: Generated from `#/components/schemas/git-tag`. - public struct git_hyphen_tag: Codable, Hashable, Sendable { + public struct GitTag: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-tag/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Name of the tag /// /// - Remark: Generated from `#/components/schemas/git-tag/tag`. @@ -1345,14 +1354,14 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/git-tag/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/git-tag/tagger`. - public struct taggerPayload: Codable, Hashable, Sendable { + public struct TaggerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-tag/tagger/date`. public var date: Swift.String /// - Remark: Generated from `#/components/schemas/git-tag/tagger/email`. public var email: Swift.String /// - Remark: Generated from `#/components/schemas/git-tag/tagger/name`. public var name: Swift.String - /// Creates a new `taggerPayload`. + /// Creates a new `TaggerPayload`. /// /// - Parameters: /// - date: @@ -1374,16 +1383,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/git-tag/tagger`. - public var tagger: Components.Schemas.git_hyphen_tag.taggerPayload + public var tagger: Components.Schemas.GitTag.TaggerPayload /// - Remark: Generated from `#/components/schemas/git-tag/object`. - public struct objectPayload: Codable, Hashable, Sendable { + public struct ObjectPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-tag/object/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/git-tag/object/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/git-tag/object/url`. public var url: Swift.String - /// Creates a new `objectPayload`. + /// Creates a new `ObjectPayload`. /// /// - Parameters: /// - sha: @@ -1405,13 +1414,13 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/git-tag/object`. - public var object: Components.Schemas.git_hyphen_tag.objectPayload + public var object: Components.Schemas.GitTag.ObjectPayload /// - Remark: Generated from `#/components/schemas/git-tag/verification`. - public var verification: Components.Schemas.verification? - /// Creates a new `git_hyphen_tag`. + public var verification: Components.Schemas.Verification? + /// Creates a new `GitTag`. /// /// - Parameters: - /// - node_id: + /// - nodeId: /// - tag: Name of the tag /// - sha: /// - url: URL for the tag @@ -1420,16 +1429,16 @@ public enum Components { /// - object: /// - verification: public init( - node_id: Swift.String, + nodeId: Swift.String, tag: Swift.String, sha: Swift.String, url: Swift.String, message: Swift.String, - tagger: Components.Schemas.git_hyphen_tag.taggerPayload, - object: Components.Schemas.git_hyphen_tag.objectPayload, - verification: Components.Schemas.verification? = nil + tagger: Components.Schemas.GitTag.TaggerPayload, + object: Components.Schemas.GitTag.ObjectPayload, + verification: Components.Schemas.Verification? = nil ) { - self.node_id = node_id + self.nodeId = nodeId self.tag = tag self.sha = sha self.url = url @@ -1439,7 +1448,7 @@ public enum Components { self.verification = verification } public enum CodingKeys: String, CodingKey { - case node_id + case nodeId = "node_id" case tag case sha case url @@ -1452,28 +1461,28 @@ public enum Components { /// The hierarchy between files in a Git repository. /// /// - Remark: Generated from `#/components/schemas/git-tree`. - public struct git_hyphen_tree: Codable, Hashable, Sendable { + public struct GitTree: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/git-tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/git-tree/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/git-tree/truncated`. public var truncated: Swift.Bool - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload`. - public struct treePayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/path`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload`. + public struct TreePayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/path`. public var path: Swift.String - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/mode`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/mode`. public var mode: Swift.String - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/type`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/type`. public var _type: Swift.String - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/sha`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/size`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/size`. public var size: Swift.Int? - /// - Remark: Generated from `#/components/schemas/git-tree/treePayload/url`. + /// - Remark: Generated from `#/components/schemas/git-tree/TreePayload/url`. public var url: Swift.String? - /// Creates a new `treePayloadPayload`. + /// Creates a new `TreePayloadPayload`. /// /// - Parameters: /// - path: @@ -1509,12 +1518,12 @@ public enum Components { /// Objects specifying a tree structure /// /// - Remark: Generated from `#/components/schemas/git-tree/tree`. - public typealias treePayload = [Components.Schemas.git_hyphen_tree.treePayloadPayload] + public typealias TreePayload = [Components.Schemas.GitTree.TreePayloadPayload] /// Objects specifying a tree structure /// /// - Remark: Generated from `#/components/schemas/git-tree/tree`. - public var tree: Components.Schemas.git_hyphen_tree.treePayload - /// Creates a new `git_hyphen_tree`. + public var tree: Components.Schemas.GitTree.TreePayload + /// Creates a new `GitTree`. /// /// - Parameters: /// - sha: @@ -1525,7 +1534,7 @@ public enum Components { sha: Swift.String, url: Swift.String? = nil, truncated: Swift.Bool, - tree: Components.Schemas.git_hyphen_tree.treePayload + tree: Components.Schemas.GitTree.TreePayload ) { self.sha = sha self.url = url @@ -1545,34 +1554,34 @@ public enum Components { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The SHA of the commit. /// /// - Remark: Generated from `#/components/parameters/commit-sha`. - public typealias commit_hyphen_sha = Swift.String + public typealias CommitSha = Swift.String /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/components/parameters/git-ref-only`. - public typealias git_hyphen_ref_hyphen_only = Swift.String + public typealias GitRefOnly = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1582,25 +1591,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -1610,25 +1619,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1638,25 +1647,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { + public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1666,12 +1675,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } @@ -1679,7 +1688,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -1691,7 +1700,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/blobs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)`. - public enum git_sol_create_hyphen_blob { + public enum GitCreateBlob { public static let id: Swift.String = "git/create-blob" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/path`. @@ -1699,41 +1708,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.git_sol_create_hyphen_blob.Input.Path + public var path: Operations.GitCreateBlob.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_create_hyphen_blob.Input.Headers + public var headers: Operations.GitCreateBlob.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The new blob's content. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/requestBody/json/content`. @@ -1742,7 +1751,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/requestBody/json/encoding`. public var encoding: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The new blob's content. @@ -1760,9 +1769,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/requestBody/content/application\/json`. - case json(Operations.git_sol_create_hyphen_blob.Input.Body.jsonPayload) + case json(Operations.GitCreateBlob.Input.Body.JsonPayload) } - public var body: Operations.git_sol_create_hyphen_blob.Input.Body + public var body: Operations.GitCreateBlob.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1770,9 +1779,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_create_hyphen_blob.Input.Path, - headers: Operations.git_sol_create_hyphen_blob.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_blob.Input.Body + path: Operations.GitCreateBlob.Input.Path, + headers: Operations.GitCreateBlob.Input.Headers = .init(), + body: Operations.GitCreateBlob.Input.Body ) { self.path = path self.headers = headers @@ -1784,26 +1793,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.git_sol_create_hyphen_blob.Output.Created.Headers + public var headers: Operations.GitCreateBlob.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/201/content/application\/json`. - case json(Components.Schemas.short_hyphen_blob) + case json(Components.Schemas.ShortBlob) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.short_hyphen_blob { + public var json: Components.Schemas.ShortBlob { get throws { switch self { case let .json(body): @@ -1813,15 +1822,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_blob.Output.Created.Body + public var body: Operations.GitCreateBlob.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_create_hyphen_blob.Output.Created.Headers = .init(), - body: Operations.git_sol_create_hyphen_blob.Output.Created.Body + headers: Operations.GitCreateBlob.Output.Created.Headers = .init(), + body: Operations.GitCreateBlob.Output.Created.Body ) { self.headers = headers self.body = body @@ -1832,12 +1841,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.git_sol_create_hyphen_blob.Output.Created) + case created(Operations.GitCreateBlob.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.git_sol_create_hyphen_blob.Output.Created { + public var created: Operations.GitCreateBlob.Output.Created { get throws { switch self { case let .created(response): @@ -1855,12 +1864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1878,12 +1887,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -1901,12 +1910,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -1923,21 +1932,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/422/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/422/content/json/case1`. - case validation_hyphen_error(Components.Schemas.validation_hyphen_error) + case ValidationError(Components.Schemas.ValidationError) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/422/content/json/case2`. - case repository_hyphen_rule_hyphen_violation_hyphen_error(Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error) + case RepositoryRuleViolationError(Components.Schemas.RepositoryRuleViolationError) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .validation_hyphen_error(try .init(from: decoder)) + self = .ValidationError(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_violation_hyphen_error(try .init(from: decoder)) + self = .RepositoryRuleViolationError(try .init(from: decoder)) return } catch { errors.append(error) @@ -1950,20 +1959,20 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { switch self { - case let .validation_hyphen_error(value): + case let .ValidationError(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_violation_hyphen_error(value): + case let .RepositoryRuleViolationError(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/POST/responses/422/content/application\/json`. - case json(Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body.jsonPayload) + case json(Operations.GitCreateBlob.Output.UnprocessableContent.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body.jsonPayload { + public var json: Operations.GitCreateBlob.Output.UnprocessableContent.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -1973,12 +1982,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body + public var body: Operations.GitCreateBlob.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent.Body) { + public init(body: Operations.GitCreateBlob.Output.UnprocessableContent.Body) { self.body = body } } @@ -1987,12 +1996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/post(git/create-blob)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent) + case unprocessableContent(Operations.GitCreateBlob.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.git_sol_create_hyphen_blob.Output.UnprocessableContent { + public var unprocessableContent: Operations.GitCreateBlob.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -2049,7 +2058,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`. - public enum git_sol_get_hyphen_blob { + public enum GitGetBlob { public static let id: Swift.String = "git/get-blob" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/path`. @@ -2057,50 +2066,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/path/file_sha`. - public var file_sha: Swift.String + public var fileSha: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - file_sha: + /// - fileSha: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - file_sha: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + fileSha: Swift.String ) { self.owner = owner self.repo = repo - self.file_sha = file_sha + self.fileSha = fileSha } } - public var path: Operations.git_sol_get_hyphen_blob.Input.Path + public var path: Operations.GitGetBlob.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_get_hyphen_blob.Input.Headers + public var headers: Operations.GitGetBlob.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_get_hyphen_blob.Input.Path, - headers: Operations.git_sol_get_hyphen_blob.Input.Headers = .init() + path: Operations.GitGetBlob.Input.Path, + headers: Operations.GitGetBlob.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2111,12 +2120,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/blobs/{file_sha}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.blob) + case json(Components.Schemas.Blob) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.blob { + public var json: Components.Schemas.Blob { get throws { switch self { case let .json(body): @@ -2126,12 +2135,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_get_hyphen_blob.Output.Ok.Body + public var body: Operations.GitGetBlob.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_get_hyphen_blob.Output.Ok.Body) { + public init(body: Operations.GitGetBlob.Output.Ok.Body) { self.body = body } } @@ -2140,12 +2149,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_get_hyphen_blob.Output.Ok) + case ok(Operations.GitGetBlob.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_get_hyphen_blob.Output.Ok { + public var ok: Operations.GitGetBlob.Output.Ok { get throws { switch self { case let .ok(response): @@ -2163,12 +2172,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2186,12 +2195,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -2209,12 +2218,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2232,12 +2241,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -2317,7 +2326,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)`. - public enum git_sol_create_hyphen_commit { + public enum GitCreateCommit { public static let id: Swift.String = "git/create-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/path`. @@ -2325,41 +2334,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.git_sol_create_hyphen_commit.Input.Path + public var path: Operations.GitCreateCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_create_hyphen_commit.Input.Headers + public var headers: Operations.GitCreateCommit.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The commit message /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/message`. @@ -2375,7 +2384,7 @@ public enum Operations { /// Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// The name of the author (or committer) of the commit /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/author/name`. @@ -2388,7 +2397,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/author/date`. public var date: Foundation.Date? - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: The name of the author (or committer) of the commit @@ -2412,11 +2421,11 @@ public enum Operations { /// Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/author`. - public var author: Operations.git_sol_create_hyphen_commit.Input.Body.jsonPayload.authorPayload? + public var author: Operations.GitCreateCommit.Input.Body.JsonPayload.AuthorPayload? /// Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// The name of the author (or committer) of the commit /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/committer/name`. @@ -2429,7 +2438,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/committer/date`. public var date: Foundation.Date? - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - name: The name of the author (or committer) of the commit @@ -2453,12 +2462,12 @@ public enum Operations { /// Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/committer`. - public var committer: Operations.git_sol_create_hyphen_commit.Input.Body.jsonPayload.committerPayload? + public var committer: Operations.GitCreateCommit.Input.Body.JsonPayload.CommitterPayload? /// The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/json/signature`. public var signature: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: The commit message @@ -2471,8 +2480,8 @@ public enum Operations { message: Swift.String, tree: Swift.String, parents: [Swift.String]? = nil, - author: Operations.git_sol_create_hyphen_commit.Input.Body.jsonPayload.authorPayload? = nil, - committer: Operations.git_sol_create_hyphen_commit.Input.Body.jsonPayload.committerPayload? = nil, + author: Operations.GitCreateCommit.Input.Body.JsonPayload.AuthorPayload? = nil, + committer: Operations.GitCreateCommit.Input.Body.JsonPayload.CommitterPayload? = nil, signature: Swift.String? = nil ) { self.message = message @@ -2492,9 +2501,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/requestBody/content/application\/json`. - case json(Operations.git_sol_create_hyphen_commit.Input.Body.jsonPayload) + case json(Operations.GitCreateCommit.Input.Body.JsonPayload) } - public var body: Operations.git_sol_create_hyphen_commit.Input.Body + public var body: Operations.GitCreateCommit.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2502,9 +2511,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_create_hyphen_commit.Input.Path, - headers: Operations.git_sol_create_hyphen_commit.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_commit.Input.Body + path: Operations.GitCreateCommit.Input.Path, + headers: Operations.GitCreateCommit.Input.Headers = .init(), + body: Operations.GitCreateCommit.Input.Body ) { self.path = path self.headers = headers @@ -2516,26 +2525,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.git_sol_create_hyphen_commit.Output.Created.Headers + public var headers: Operations.GitCreateCommit.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/POST/responses/201/content/application\/json`. - case json(Components.Schemas.git_hyphen_commit) + case json(Components.Schemas.GitCommit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_commit { + public var json: Components.Schemas.GitCommit { get throws { switch self { case let .json(body): @@ -2545,15 +2554,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_commit.Output.Created.Body + public var body: Operations.GitCreateCommit.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_create_hyphen_commit.Output.Created.Headers = .init(), - body: Operations.git_sol_create_hyphen_commit.Output.Created.Body + headers: Operations.GitCreateCommit.Output.Created.Headers = .init(), + body: Operations.GitCreateCommit.Output.Created.Body ) { self.headers = headers self.body = body @@ -2564,12 +2573,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.git_sol_create_hyphen_commit.Output.Created) + case created(Operations.GitCreateCommit.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.git_sol_create_hyphen_commit.Output.Created { + public var created: Operations.GitCreateCommit.Output.Created { get throws { switch self { case let .created(response): @@ -2587,12 +2596,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -2610,12 +2619,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2633,12 +2642,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/post(git/create-commit)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -2720,7 +2729,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/commits/{commit_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)`. - public enum git_sol_get_hyphen_commit { + public enum GitGetCommit { public static let id: Swift.String = "git/get-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/path`. @@ -2728,52 +2737,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA of the commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/path/commit_sha`. - public var commit_sha: Components.Parameters.commit_hyphen_sha + public var commitSha: Components.Parameters.CommitSha /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - commit_sha: The SHA of the commit. + /// - commitSha: The SHA of the commit. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - commit_sha: Components.Parameters.commit_hyphen_sha + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commitSha: Components.Parameters.CommitSha ) { self.owner = owner self.repo = repo - self.commit_sha = commit_sha + self.commitSha = commitSha } } - public var path: Operations.git_sol_get_hyphen_commit.Input.Path + public var path: Operations.GitGetCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_get_hyphen_commit.Input.Headers + public var headers: Operations.GitGetCommit.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_get_hyphen_commit.Input.Path, - headers: Operations.git_sol_get_hyphen_commit.Input.Headers = .init() + path: Operations.GitGetCommit.Input.Path, + headers: Operations.GitGetCommit.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2784,12 +2793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/commits/{commit_sha}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.git_hyphen_commit) + case json(Components.Schemas.GitCommit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_commit { + public var json: Components.Schemas.GitCommit { get throws { switch self { case let .json(body): @@ -2799,12 +2808,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_get_hyphen_commit.Output.Ok.Body + public var body: Operations.GitGetCommit.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_get_hyphen_commit.Output.Ok.Body) { + public init(body: Operations.GitGetCommit.Output.Ok.Body) { self.body = body } } @@ -2813,12 +2822,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_get_hyphen_commit.Output.Ok) + case ok(Operations.GitGetCommit.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_get_hyphen_commit.Output.Ok { + public var ok: Operations.GitGetCommit.Output.Ok { get throws { switch self { case let .ok(response): @@ -2836,12 +2845,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2859,12 +2868,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/commits/{commit_sha}/get(git/get-commit)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -2921,7 +2930,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/matching-refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)`. - public enum git_sol_list_hyphen_matching_hyphen_refs { + public enum GitListMatchingRefs { public static let id: Swift.String = "git/list-matching-refs" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/path`. @@ -2929,15 +2938,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/path/ref`. - public var ref: Components.Parameters.git_hyphen_ref_hyphen_only + public var ref: Components.Parameters.GitRefOnly /// Creates a new `Path`. /// /// - Parameters: @@ -2945,36 +2954,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.git_hyphen_ref_hyphen_only + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.GitRefOnly ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Path + public var path: Operations.GitListMatchingRefs.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Headers + public var headers: Operations.GitListMatchingRefs.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Path, - headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Input.Headers = .init() + path: Operations.GitListMatchingRefs.Input.Path, + headers: Operations.GitListMatchingRefs.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2985,26 +2994,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Headers + public var headers: Operations.GitListMatchingRefs.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/matching-refs/{ref}/GET/responses/200/content/application\/json`. - case json([Components.Schemas.git_hyphen_ref]) + case json([Components.Schemas.GitRef]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.git_hyphen_ref] { + public var json: [Components.Schemas.GitRef] { get throws { switch self { case let .json(body): @@ -3014,15 +3023,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Body + public var body: Operations.GitListMatchingRefs.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Headers = .init(), - body: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok.Body + headers: Operations.GitListMatchingRefs.Output.Ok.Headers = .init(), + body: Operations.GitListMatchingRefs.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3033,12 +3042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok) + case ok(Operations.GitListMatchingRefs.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_list_hyphen_matching_hyphen_refs.Output.Ok { + public var ok: Operations.GitListMatchingRefs.Output.Ok { get throws { switch self { case let .ok(response): @@ -3056,12 +3065,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/matching-refs/{ref}/get(git/list-matching-refs)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3114,7 +3123,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/ref/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)`. - public enum git_sol_get_hyphen_ref { + public enum GitGetRef { public static let id: Swift.String = "git/get-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/path`. @@ -3122,15 +3131,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/path/ref`. - public var ref: Components.Parameters.git_hyphen_ref_hyphen_only + public var ref: Components.Parameters.GitRefOnly /// Creates a new `Path`. /// /// - Parameters: @@ -3138,36 +3147,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.git_hyphen_ref_hyphen_only + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.GitRefOnly ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.git_sol_get_hyphen_ref.Input.Path + public var path: Operations.GitGetRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_get_hyphen_ref.Input.Headers + public var headers: Operations.GitGetRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_get_hyphen_ref.Input.Path, - headers: Operations.git_sol_get_hyphen_ref.Input.Headers = .init() + path: Operations.GitGetRef.Input.Path, + headers: Operations.GitGetRef.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3178,12 +3187,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/ref/{ref}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.git_hyphen_ref) + case json(Components.Schemas.GitRef) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_ref { + public var json: Components.Schemas.GitRef { get throws { switch self { case let .json(body): @@ -3193,12 +3202,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_get_hyphen_ref.Output.Ok.Body + public var body: Operations.GitGetRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_get_hyphen_ref.Output.Ok.Body) { + public init(body: Operations.GitGetRef.Output.Ok.Body) { self.body = body } } @@ -3207,12 +3216,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_get_hyphen_ref.Output.Ok) + case ok(Operations.GitGetRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_get_hyphen_ref.Output.Ok { + public var ok: Operations.GitGetRef.Output.Ok { get throws { switch self { case let .ok(response): @@ -3230,12 +3239,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3253,12 +3262,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/ref/{ref}/get(git/get-ref)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3308,7 +3317,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/refs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)`. - public enum git_sol_create_hyphen_ref { + public enum GitCreateRef { public static let id: Swift.String = "git/create-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/path`. @@ -3316,41 +3325,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.git_sol_create_hyphen_ref.Input.Path + public var path: Operations.GitCreateRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_create_hyphen_ref.Input.Headers + public var headers: Operations.GitCreateRef.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/requestBody/json/ref`. @@ -3359,7 +3368,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/requestBody/json/sha`. public var sha: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - ref: The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. @@ -3377,9 +3386,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/requestBody/content/application\/json`. - case json(Operations.git_sol_create_hyphen_ref.Input.Body.jsonPayload) + case json(Operations.GitCreateRef.Input.Body.JsonPayload) } - public var body: Operations.git_sol_create_hyphen_ref.Input.Body + public var body: Operations.GitCreateRef.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3387,9 +3396,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_create_hyphen_ref.Input.Path, - headers: Operations.git_sol_create_hyphen_ref.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_ref.Input.Body + path: Operations.GitCreateRef.Input.Path, + headers: Operations.GitCreateRef.Input.Headers = .init(), + body: Operations.GitCreateRef.Input.Body ) { self.path = path self.headers = headers @@ -3401,26 +3410,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.git_sol_create_hyphen_ref.Output.Created.Headers + public var headers: Operations.GitCreateRef.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/POST/responses/201/content/application\/json`. - case json(Components.Schemas.git_hyphen_ref) + case json(Components.Schemas.GitRef) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_ref { + public var json: Components.Schemas.GitRef { get throws { switch self { case let .json(body): @@ -3430,15 +3439,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_ref.Output.Created.Body + public var body: Operations.GitCreateRef.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_create_hyphen_ref.Output.Created.Headers = .init(), - body: Operations.git_sol_create_hyphen_ref.Output.Created.Body + headers: Operations.GitCreateRef.Output.Created.Headers = .init(), + body: Operations.GitCreateRef.Output.Created.Body ) { self.headers = headers self.body = body @@ -3449,12 +3458,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.git_sol_create_hyphen_ref.Output.Created) + case created(Operations.GitCreateRef.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.git_sol_create_hyphen_ref.Output.Created { + public var created: Operations.GitCreateRef.Output.Created { get throws { switch self { case let .created(response): @@ -3472,12 +3481,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3495,12 +3504,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/post(git/create-ref)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3550,7 +3559,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)`. - public enum git_sol_update_hyphen_ref { + public enum GitUpdateRef { public static let id: Swift.String = "git/update-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/path`. @@ -3558,15 +3567,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/path/ref`. - public var ref: Components.Parameters.git_hyphen_ref_hyphen_only + public var ref: Components.Parameters.GitRefOnly /// Creates a new `Path`. /// /// - Parameters: @@ -3574,32 +3583,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.git_hyphen_ref_hyphen_only + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.GitRefOnly ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.git_sol_update_hyphen_ref.Input.Path + public var path: Operations.GitUpdateRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_update_hyphen_ref.Input.Headers + public var headers: Operations.GitUpdateRef.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The SHA1 value to set this reference to /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/requestBody/json/sha`. @@ -3608,7 +3617,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/requestBody/json/force`. public var force: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - sha: The SHA1 value to set this reference to @@ -3626,9 +3635,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/requestBody/content/application\/json`. - case json(Operations.git_sol_update_hyphen_ref.Input.Body.jsonPayload) + case json(Operations.GitUpdateRef.Input.Body.JsonPayload) } - public var body: Operations.git_sol_update_hyphen_ref.Input.Body + public var body: Operations.GitUpdateRef.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3636,9 +3645,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_update_hyphen_ref.Input.Path, - headers: Operations.git_sol_update_hyphen_ref.Input.Headers = .init(), - body: Operations.git_sol_update_hyphen_ref.Input.Body + path: Operations.GitUpdateRef.Input.Path, + headers: Operations.GitUpdateRef.Input.Headers = .init(), + body: Operations.GitUpdateRef.Input.Body ) { self.path = path self.headers = headers @@ -3650,12 +3659,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.git_hyphen_ref) + case json(Components.Schemas.GitRef) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_ref { + public var json: Components.Schemas.GitRef { get throws { switch self { case let .json(body): @@ -3665,12 +3674,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_update_hyphen_ref.Output.Ok.Body + public var body: Operations.GitUpdateRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_update_hyphen_ref.Output.Ok.Body) { + public init(body: Operations.GitUpdateRef.Output.Ok.Body) { self.body = body } } @@ -3679,12 +3688,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_update_hyphen_ref.Output.Ok) + case ok(Operations.GitUpdateRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_update_hyphen_ref.Output.Ok { + public var ok: Operations.GitUpdateRef.Output.Ok { get throws { switch self { case let .ok(response): @@ -3702,12 +3711,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3725,12 +3734,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/patch(git/update-ref)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3780,7 +3789,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/git/refs/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)`. - public enum git_sol_delete_hyphen_ref { + public enum GitDeleteRef { public static let id: Swift.String = "git/delete-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/DELETE/path`. @@ -3788,15 +3797,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/DELETE/path/ref`. - public var ref: Components.Parameters.git_hyphen_ref_hyphen_only + public var ref: Components.Parameters.GitRefOnly /// Creates a new `Path`. /// /// - Parameters: @@ -3804,36 +3813,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.git_hyphen_ref_hyphen_only + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.GitRefOnly ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.git_sol_delete_hyphen_ref.Input.Path + public var path: Operations.GitDeleteRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/refs/{ref}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_delete_hyphen_ref.Input.Headers + public var headers: Operations.GitDeleteRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_delete_hyphen_ref.Input.Path, - headers: Operations.git_sol_delete_hyphen_ref.Input.Headers = .init() + path: Operations.GitDeleteRef.Input.Path, + headers: Operations.GitDeleteRef.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3849,12 +3858,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.git_sol_delete_hyphen_ref.Output.NoContent) + case noContent(Operations.GitDeleteRef.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.git_sol_delete_hyphen_ref.Output.NoContent { + public var noContent: Operations.GitDeleteRef.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3876,12 +3893,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.git_sol_delete_hyphen_ref.Output.UnprocessableContent) + case unprocessableContent(Operations.GitDeleteRef.Output.UnprocessableContent) + /// Validation failed, an attempt was made to delete the default branch, or the endpoint has been spammed. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.git_sol_delete_hyphen_ref.Output.UnprocessableContent { + public var unprocessableContent: Operations.GitDeleteRef.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -3899,12 +3924,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/refs/{ref}/delete(git/delete-ref)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3984,7 +4009,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)`. - public enum git_sol_create_hyphen_tag { + public enum GitCreateTag { public static let id: Swift.String = "git/create-tag" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/path`. @@ -3992,41 +4017,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.git_sol_create_hyphen_tag.Input.Path + public var path: Operations.GitCreateTag.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_create_hyphen_tag.Input.Headers + public var headers: Operations.GitCreateTag.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The tag's name. This is typically a version (e.g., "v0.0.1"). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/tag`. @@ -4042,7 +4067,7 @@ public enum Operations { /// The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case commit = "commit" case tree = "tree" case blob = "blob" @@ -4050,11 +4075,11 @@ public enum Operations { /// The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/type`. - public var _type: Operations.git_sol_create_hyphen_tag.Input.Body.jsonPayload._typePayload + public var _type: Operations.GitCreateTag.Input.Body.JsonPayload._TypePayload /// An object with information about the individual creating the tag. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/tagger`. - public struct taggerPayload: Codable, Hashable, Sendable { + public struct TaggerPayload: Codable, Hashable, Sendable { /// The name of the author of the tag /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/tagger/name`. @@ -4067,7 +4092,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/tagger/date`. public var date: Foundation.Date? - /// Creates a new `taggerPayload`. + /// Creates a new `TaggerPayload`. /// /// - Parameters: /// - name: The name of the author of the tag @@ -4091,8 +4116,8 @@ public enum Operations { /// An object with information about the individual creating the tag. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/json/tagger`. - public var tagger: Operations.git_sol_create_hyphen_tag.Input.Body.jsonPayload.taggerPayload? - /// Creates a new `jsonPayload`. + public var tagger: Operations.GitCreateTag.Input.Body.JsonPayload.TaggerPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - tag: The tag's name. This is typically a version (e.g., "v0.0.1"). @@ -4104,8 +4129,8 @@ public enum Operations { tag: Swift.String, message: Swift.String, object: Swift.String, - _type: Operations.git_sol_create_hyphen_tag.Input.Body.jsonPayload._typePayload, - tagger: Operations.git_sol_create_hyphen_tag.Input.Body.jsonPayload.taggerPayload? = nil + _type: Operations.GitCreateTag.Input.Body.JsonPayload._TypePayload, + tagger: Operations.GitCreateTag.Input.Body.JsonPayload.TaggerPayload? = nil ) { self.tag = tag self.message = message @@ -4122,9 +4147,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/requestBody/content/application\/json`. - case json(Operations.git_sol_create_hyphen_tag.Input.Body.jsonPayload) + case json(Operations.GitCreateTag.Input.Body.JsonPayload) } - public var body: Operations.git_sol_create_hyphen_tag.Input.Body + public var body: Operations.GitCreateTag.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4132,9 +4157,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_create_hyphen_tag.Input.Path, - headers: Operations.git_sol_create_hyphen_tag.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_tag.Input.Body + path: Operations.GitCreateTag.Input.Path, + headers: Operations.GitCreateTag.Input.Headers = .init(), + body: Operations.GitCreateTag.Input.Body ) { self.path = path self.headers = headers @@ -4146,26 +4171,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.git_sol_create_hyphen_tag.Output.Created.Headers + public var headers: Operations.GitCreateTag.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/POST/responses/201/content/application\/json`. - case json(Components.Schemas.git_hyphen_tag) + case json(Components.Schemas.GitTag) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_tag { + public var json: Components.Schemas.GitTag { get throws { switch self { case let .json(body): @@ -4175,15 +4200,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_tag.Output.Created.Body + public var body: Operations.GitCreateTag.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_create_hyphen_tag.Output.Created.Headers = .init(), - body: Operations.git_sol_create_hyphen_tag.Output.Created.Body + headers: Operations.GitCreateTag.Output.Created.Headers = .init(), + body: Operations.GitCreateTag.Output.Created.Body ) { self.headers = headers self.body = body @@ -4194,12 +4219,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.git_sol_create_hyphen_tag.Output.Created) + case created(Operations.GitCreateTag.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.git_sol_create_hyphen_tag.Output.Created { + public var created: Operations.GitCreateTag.Output.Created { get throws { switch self { case let .created(response): @@ -4217,12 +4242,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4240,12 +4265,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/post(git/create-tag)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -4323,7 +4348,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/tags/{tag_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)`. - public enum git_sol_get_hyphen_tag { + public enum GitGetTag { public static let id: Swift.String = "git/get-tag" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/path`. @@ -4331,50 +4356,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/path/tag_sha`. - public var tag_sha: Swift.String + public var tagSha: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - tag_sha: + /// - tagSha: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - tag_sha: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + tagSha: Swift.String ) { self.owner = owner self.repo = repo - self.tag_sha = tag_sha + self.tagSha = tagSha } } - public var path: Operations.git_sol_get_hyphen_tag.Input.Path + public var path: Operations.GitGetTag.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_get_hyphen_tag.Input.Headers + public var headers: Operations.GitGetTag.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.git_sol_get_hyphen_tag.Input.Path, - headers: Operations.git_sol_get_hyphen_tag.Input.Headers = .init() + path: Operations.GitGetTag.Input.Path, + headers: Operations.GitGetTag.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4385,12 +4410,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/tags/{tag_sha}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.git_hyphen_tag) + case json(Components.Schemas.GitTag) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_tag { + public var json: Components.Schemas.GitTag { get throws { switch self { case let .json(body): @@ -4400,12 +4425,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_get_hyphen_tag.Output.Ok.Body + public var body: Operations.GitGetTag.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_get_hyphen_tag.Output.Ok.Body) { + public init(body: Operations.GitGetTag.Output.Ok.Body) { self.body = body } } @@ -4414,12 +4439,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_get_hyphen_tag.Output.Ok) + case ok(Operations.GitGetTag.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_get_hyphen_tag.Output.Ok { + public var ok: Operations.GitGetTag.Output.Ok { get throws { switch self { case let .ok(response): @@ -4437,12 +4462,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4460,12 +4485,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/tags/{tag_sha}/get(git/get-tag)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -4519,7 +4544,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/git/trees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)`. - public enum git_sol_create_hyphen_tree { + public enum GitCreateTree { public static let id: Swift.String = "git/create-tree" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/path`. @@ -4527,51 +4552,51 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.git_sol_create_hyphen_tree.Input.Path + public var path: Operations.GitCreateTree.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_create_hyphen_tree.Input.Headers + public var headers: Operations.GitCreateTree.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload`. - public struct treePayloadPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload`. + public struct TreePayloadPayload: Codable, Hashable, Sendable { /// The file referenced in the tree. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/path`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/path`. public var path: Swift.String? /// The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/mode`. - @frozen public enum modePayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { case _100644 = "100644" case _100755 = "100755" case _040000 = "040000" @@ -4580,33 +4605,33 @@ public enum Operations { } /// The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/mode`. - public var mode: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayloadPayload.modePayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/mode`. + public var mode: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayloadPayload.ModePayload? /// Either `blob`, `tree`, or `commit`. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case blob = "blob" case tree = "tree" case commit = "commit" } /// Either `blob`, `tree`, or `commit`. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/type`. - public var _type: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayloadPayload._typePayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/type`. + public var _type: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayloadPayload._TypePayload? /// The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. /// /// **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/sha`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/sha`. public var sha: Swift.String? /// The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. /// /// **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/treePayload/content`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/TreePayload/content`. public var content: Swift.String? - /// Creates a new `treePayloadPayload`. + /// Creates a new `TreePayloadPayload`. /// /// - Parameters: /// - path: The file referenced in the tree. @@ -4616,8 +4641,8 @@ public enum Operations { /// - content: The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. public init( path: Swift.String? = nil, - mode: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayloadPayload.modePayload? = nil, - _type: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayloadPayload._typePayload? = nil, + mode: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayloadPayload.ModePayload? = nil, + _type: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayloadPayload._TypePayload? = nil, sha: Swift.String? = nil, content: Swift.String? = nil ) { @@ -4638,37 +4663,37 @@ public enum Operations { /// Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/tree`. - public typealias treePayload = [Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayloadPayload] + public typealias TreePayload = [Operations.GitCreateTree.Input.Body.JsonPayload.TreePayloadPayload] /// Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/tree`. - public var tree: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayload + public var tree: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayload /// The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. /// If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/json/base_tree`. - public var base_tree: Swift.String? - /// Creates a new `jsonPayload`. + public var baseTree: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - tree: Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - /// - base_tree: The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. + /// - baseTree: The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on. public init( - tree: Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload.treePayload, - base_tree: Swift.String? = nil + tree: Operations.GitCreateTree.Input.Body.JsonPayload.TreePayload, + baseTree: Swift.String? = nil ) { self.tree = tree - self.base_tree = base_tree + self.baseTree = baseTree } public enum CodingKeys: String, CodingKey { case tree - case base_tree + case baseTree = "base_tree" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/requestBody/content/application\/json`. - case json(Operations.git_sol_create_hyphen_tree.Input.Body.jsonPayload) + case json(Operations.GitCreateTree.Input.Body.JsonPayload) } - public var body: Operations.git_sol_create_hyphen_tree.Input.Body + public var body: Operations.GitCreateTree.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4676,9 +4701,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.git_sol_create_hyphen_tree.Input.Path, - headers: Operations.git_sol_create_hyphen_tree.Input.Headers = .init(), - body: Operations.git_sol_create_hyphen_tree.Input.Body + path: Operations.GitCreateTree.Input.Path, + headers: Operations.GitCreateTree.Input.Headers = .init(), + body: Operations.GitCreateTree.Input.Body ) { self.path = path self.headers = headers @@ -4690,26 +4715,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.git_sol_create_hyphen_tree.Output.Created.Headers + public var headers: Operations.GitCreateTree.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/POST/responses/201/content/application\/json`. - case json(Components.Schemas.git_hyphen_tree) + case json(Components.Schemas.GitTree) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_tree { + public var json: Components.Schemas.GitTree { get throws { switch self { case let .json(body): @@ -4719,15 +4744,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_create_hyphen_tree.Output.Created.Body + public var body: Operations.GitCreateTree.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.git_sol_create_hyphen_tree.Output.Created.Headers = .init(), - body: Operations.git_sol_create_hyphen_tree.Output.Created.Body + headers: Operations.GitCreateTree.Output.Created.Headers = .init(), + body: Operations.GitCreateTree.Output.Created.Body ) { self.headers = headers self.body = body @@ -4738,12 +4763,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.git_sol_create_hyphen_tree.Output.Created) + case created(Operations.GitCreateTree.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.git_sol_create_hyphen_tree.Output.Created { + public var created: Operations.GitCreateTree.Output.Created { get throws { switch self { case let .created(response): @@ -4761,12 +4786,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4784,12 +4809,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4807,12 +4832,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4830,12 +4855,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/post(git/create-tree)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -4890,7 +4915,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/git/trees/{tree_sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)`. - public enum git_sol_get_hyphen_tree { + public enum GitGetTree { public static let id: Swift.String = "git/get-tree" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/path`. @@ -4898,32 +4923,32 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA1 value or ref (branch or tag) name of the tree. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/path/tree_sha`. - public var tree_sha: Swift.String + public var treeSha: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - tree_sha: The SHA1 value or ref (branch or tag) name of the tree. + /// - treeSha: The SHA1 value or ref (branch or tag) name of the tree. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - tree_sha: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + treeSha: Swift.String ) { self.owner = owner self.repo = repo - self.tree_sha = tree_sha + self.treeSha = treeSha } } - public var path: Operations.git_sol_get_hyphen_tree.Input.Path + public var path: Operations.GitGetTree.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/query`. public struct Query: Sendable, Hashable { /// Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees. @@ -4938,19 +4963,19 @@ public enum Operations { self.recursive = recursive } } - public var query: Operations.git_sol_get_hyphen_tree.Input.Query + public var query: Operations.GitGetTree.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.git_sol_get_hyphen_tree.Input.Headers + public var headers: Operations.GitGetTree.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4958,9 +4983,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.git_sol_get_hyphen_tree.Input.Path, - query: Operations.git_sol_get_hyphen_tree.Input.Query = .init(), - headers: Operations.git_sol_get_hyphen_tree.Input.Headers = .init() + path: Operations.GitGetTree.Input.Path, + query: Operations.GitGetTree.Input.Query = .init(), + headers: Operations.GitGetTree.Input.Headers = .init() ) { self.path = path self.query = query @@ -4972,12 +4997,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/git/trees/{tree_sha}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.git_hyphen_tree) + case json(Components.Schemas.GitTree) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.git_hyphen_tree { + public var json: Components.Schemas.GitTree { get throws { switch self { case let .json(body): @@ -4987,12 +5012,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.git_sol_get_hyphen_tree.Output.Ok.Body + public var body: Operations.GitGetTree.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.git_sol_get_hyphen_tree.Output.Ok.Body) { + public init(body: Operations.GitGetTree.Output.Ok.Body) { self.body = body } } @@ -5001,12 +5026,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.git_sol_get_hyphen_tree.Output.Ok) + case ok(Operations.GitGetTree.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.git_sol_get_hyphen_tree.Output.Ok { + public var ok: Operations.GitGetTree.Output.Ok { get throws { switch self { case let .ok(response): @@ -5024,12 +5049,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5047,12 +5072,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5070,12 +5095,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/trees/{tree_sha}/get(git/get-tree)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): From 695472c5c7b05a034d74d9538858c3b835bfcd9d Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:02:08 -0700 Subject: [PATCH 15/46] Commit via running ake Sources/gitignore --- Sources/gitignore/Client.swift | 14 ++--- Sources/gitignore/Types.swift | 103 ++++++++++++++++++++------------- 2 files changed, 71 insertions(+), 46 deletions(-) diff --git a/Sources/gitignore/Client.swift b/Sources/gitignore/Client.swift index c66e07053d..775b5fe471 100644 --- a/Sources/gitignore/Client.swift +++ b/Sources/gitignore/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gitignore/templates`. /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)`. - public func gitignore_sol_get_hyphen_all_hyphen_templates(_ input: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input) async throws -> Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output { + public func gitignoreGetAllTemplates(_ input: Operations.GitignoreGetAllTemplates.Input) async throws -> Operations.GitignoreGetAllTemplates.Output { try await client.send( input: input, - forOperation: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.id, + forOperation: Operations.GitignoreGetAllTemplates.id, serializer: { input in let path = try converter.renderedPath( template: "/gitignore/templates", @@ -68,7 +68,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output.Ok.Body + let body: Operations.GitignoreGetAllTemplates.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -112,10 +112,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /gitignore/templates/{name}`. /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`. - public func gitignore_sol_get_hyphen_template(_ input: Operations.gitignore_sol_get_hyphen_template.Input) async throws -> Operations.gitignore_sol_get_hyphen_template.Output { + public func gitignoreGetTemplate(_ input: Operations.GitignoreGetTemplate.Input) async throws -> Operations.GitignoreGetTemplate.Output { try await client.send( input: input, - forOperation: Operations.gitignore_sol_get_hyphen_template.id, + forOperation: Operations.GitignoreGetTemplate.id, serializer: { input in let path = try converter.renderedPath( template: "/gitignore/templates/{}", @@ -138,7 +138,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.gitignore_sol_get_hyphen_template.Output.Ok.Body + let body: Operations.GitignoreGetTemplate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -148,7 +148,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gitignore_hyphen_template.self, + Components.Schemas.GitignoreTemplate.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/gitignore/Types.swift b/Sources/gitignore/Types.swift index 6b3a7a7bed..9b7a7d7fa4 100644 --- a/Sources/gitignore/Types.swift +++ b/Sources/gitignore/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gitignore/templates`. /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)`. - func gitignore_sol_get_hyphen_all_hyphen_templates(_ input: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input) async throws -> Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output + func gitignoreGetAllTemplates(_ input: Operations.GitignoreGetAllTemplates.Input) async throws -> Operations.GitignoreGetAllTemplates.Output /// Get a gitignore template /// /// Get the content of a gitignore template. @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /gitignore/templates/{name}`. /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`. - func gitignore_sol_get_hyphen_template(_ input: Operations.gitignore_sol_get_hyphen_template.Input) async throws -> Operations.gitignore_sol_get_hyphen_template.Output + func gitignoreGetTemplate(_ input: Operations.GitignoreGetTemplate.Input) async throws -> Operations.GitignoreGetTemplate.Output } /// Convenience overloads for operation inputs. @@ -39,8 +39,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gitignore/templates`. /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)`. - public func gitignore_sol_get_hyphen_all_hyphen_templates(headers: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input.Headers = .init()) async throws -> Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output { - try await gitignore_sol_get_hyphen_all_hyphen_templates(Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input(headers: headers)) + public func gitignoreGetAllTemplates(headers: Operations.GitignoreGetAllTemplates.Input.Headers = .init()) async throws -> Operations.GitignoreGetAllTemplates.Output { + try await gitignoreGetAllTemplates(Operations.GitignoreGetAllTemplates.Input(headers: headers)) } /// Get a gitignore template /// @@ -52,11 +52,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /gitignore/templates/{name}`. /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`. - public func gitignore_sol_get_hyphen_template( - path: Operations.gitignore_sol_get_hyphen_template.Input.Path, - headers: Operations.gitignore_sol_get_hyphen_template.Input.Headers = .init() - ) async throws -> Operations.gitignore_sol_get_hyphen_template.Output { - try await gitignore_sol_get_hyphen_template(Operations.gitignore_sol_get_hyphen_template.Input( + public func gitignoreGetTemplate( + path: Operations.GitignoreGetTemplate.Input.Path, + headers: Operations.GitignoreGetTemplate.Input.Headers = .init() + ) async throws -> Operations.GitignoreGetTemplate.Output { + try await gitignoreGetTemplate(Operations.GitignoreGetTemplate.Input( path: path, headers: headers )) @@ -65,6 +65,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -80,12 +89,12 @@ public enum Components { /// Gitignore Template /// /// - Remark: Generated from `#/components/schemas/gitignore-template`. - public struct gitignore_hyphen_template: Codable, Hashable, Sendable { + public struct GitignoreTemplate: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gitignore-template/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/gitignore-template/source`. public var source: Swift.String - /// Creates a new `gitignore_hyphen_template`. + /// Creates a new `GitignoreTemplate`. /// /// - Parameters: /// - name: @@ -109,8 +118,8 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } @@ -126,26 +135,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /gitignore/templates`. /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)`. - public enum gitignore_sol_get_hyphen_all_hyphen_templates { + public enum GitignoreGetAllTemplates { public static let id: Swift.String = "gitignore/get-all-templates" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gitignore/templates/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input.Headers + public var headers: Operations.GitignoreGetAllTemplates.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input.Headers = .init()) { + public init(headers: Operations.GitignoreGetAllTemplates.Input.Headers = .init()) { self.headers = headers } } @@ -169,12 +178,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output.Ok.Body + public var body: Operations.GitignoreGetAllTemplates.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output.Ok.Body) { + public init(body: Operations.GitignoreGetAllTemplates.Output.Ok.Body) { self.body = body } } @@ -183,12 +192,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output.Ok) + case ok(Operations.GitignoreGetAllTemplates.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output.Ok { + public var ok: Operations.GitignoreGetAllTemplates.Output.Ok { get throws { switch self { case let .ok(response): @@ -206,12 +215,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gitignore/templates/get(gitignore/get-all-templates)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -265,7 +282,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /gitignore/templates/{name}`. /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`. - public enum gitignore_sol_get_hyphen_template { + public enum GitignoreGetTemplate { public static let id: Swift.String = "gitignore/get-template" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/gitignore/templates/{name}/GET/path`. @@ -280,27 +297,27 @@ public enum Operations { self.name = name } } - public var path: Operations.gitignore_sol_get_hyphen_template.Input.Path + public var path: Operations.GitignoreGetTemplate.Input.Path /// - Remark: Generated from `#/paths/gitignore/templates/{name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.gitignore_sol_get_hyphen_template.Input.Headers + public var headers: Operations.GitignoreGetTemplate.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.gitignore_sol_get_hyphen_template.Input.Path, - headers: Operations.gitignore_sol_get_hyphen_template.Input.Headers = .init() + path: Operations.GitignoreGetTemplate.Input.Path, + headers: Operations.GitignoreGetTemplate.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -311,12 +328,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/gitignore/templates/{name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/gitignore/templates/{name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.gitignore_hyphen_template) + case json(Components.Schemas.GitignoreTemplate) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gitignore_hyphen_template { + public var json: Components.Schemas.GitignoreTemplate { get throws { switch self { case let .json(body): @@ -326,12 +343,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.gitignore_sol_get_hyphen_template.Output.Ok.Body + public var body: Operations.GitignoreGetTemplate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.gitignore_sol_get_hyphen_template.Output.Ok.Body) { + public init(body: Operations.GitignoreGetTemplate.Output.Ok.Body) { self.body = body } } @@ -340,12 +357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.gitignore_sol_get_hyphen_template.Output.Ok) + case ok(Operations.GitignoreGetTemplate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.gitignore_sol_get_hyphen_template.Output.Ok { + public var ok: Operations.GitignoreGetTemplate.Output.Ok { get throws { switch self { case let .ok(response): @@ -363,12 +380,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): From 90c06bff701921165f5634d9fe64c237280a2f96 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:02:22 -0700 Subject: [PATCH 16/46] Commit via running ake Sources/issues --- Sources/issues/Client.swift | 830 +-- Sources/issues/Types.swift | 9485 ++++++++++++++++++----------------- 2 files changed, 5206 insertions(+), 5109 deletions(-) diff --git a/Sources/issues/Client.swift b/Sources/issues/Client.swift index b1b7574368..652329b744 100644 --- a/Sources/issues/Client.swift +++ b/Sources/issues/Client.swift @@ -56,10 +56,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /issues`. /// - Remark: Generated from `#/paths//issues/get(issues/list)`. - public func issues_sol_list(_ input: Operations.issues_sol_list.Input) async throws -> Operations.issues_sol_list.Output { + public func issuesList(_ input: Operations.IssuesList.Input) async throws -> Operations.IssuesList.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list.id, + forOperation: Operations.IssuesList.id, serializer: { input in let path = try converter.renderedPath( template: "/issues", @@ -145,7 +145,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -163,13 +163,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list.Output.Ok.Body + let body: Operations.IssuesList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -179,7 +179,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue].self, + [Components.Schemas.Issue].self, from: responseBody, transforming: { value in .json(value) @@ -194,7 +194,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -204,7 +204,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -218,7 +218,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -228,7 +228,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -266,10 +266,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/issues`. /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)`. - public func issues_sol_list_hyphen_for_hyphen_org(_ input: Operations.issues_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_org.Output { + public func issuesListForOrg(_ input: Operations.IssuesListForOrg.Input) async throws -> Operations.IssuesListForOrg.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_for_hyphen_org.id, + forOperation: Operations.IssuesListForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/issues", @@ -336,7 +336,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -354,13 +354,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.IssuesListForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -370,7 +370,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue].self, + [Components.Schemas.Issue].self, from: responseBody, transforming: { value in .json(value) @@ -385,7 +385,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -395,7 +395,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -423,10 +423,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)`. - public func issues_sol_list_hyphen_assignees(_ input: Operations.issues_sol_list_hyphen_assignees.Input) async throws -> Operations.issues_sol_list_hyphen_assignees.Output { + public func issuesListAssignees(_ input: Operations.IssuesListAssignees.Input) async throws -> Operations.IssuesListAssignees.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_assignees.id, + forOperation: Operations.IssuesListAssignees.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/assignees", @@ -445,7 +445,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -463,13 +463,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListAssignees.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Body + let body: Operations.IssuesListAssignees.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -479,7 +479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -494,7 +494,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -504,7 +504,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -536,10 +536,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)`. - public func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned(_ input: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output { + public func issuesCheckUserCanBeAssigned(_ input: Operations.IssuesCheckUserCanBeAssigned.Input) async throws -> Operations.IssuesCheckUserCanBeAssigned.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.id, + forOperation: Operations.IssuesCheckUserCanBeAssigned.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/assignees/{}", @@ -566,7 +566,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NotFound.Body + let body: Operations.IssuesCheckUserCanBeAssigned.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -576,7 +576,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -614,10 +614,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)`. - public func issues_sol_list_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_repo.Output { + public func issuesListForRepo(_ input: Operations.IssuesListForRepo.Input) async throws -> Operations.IssuesListForRepo.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_for_hyphen_repo.id, + forOperation: Operations.IssuesListForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues", @@ -706,7 +706,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -724,13 +724,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.IssuesListForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -740,7 +740,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue].self, + [Components.Schemas.Issue].self, from: responseBody, transforming: { value in .json(value) @@ -755,7 +755,7 @@ public struct Client: APIProtocol { )) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -765,7 +765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -777,7 +777,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -787,7 +787,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -799,7 +799,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -809,7 +809,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -847,10 +847,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)`. - public func issues_sol_create(_ input: Operations.issues_sol_create.Input) async throws -> Operations.issues_sol_create.Output { + public func issuesCreate(_ input: Operations.IssuesCreate.Input) async throws -> Operations.IssuesCreate.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_create.id, + forOperation: Operations.IssuesCreate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues", @@ -882,13 +882,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.issues_sol_create.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesCreate.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_create.Output.Created.Body + let body: Operations.IssuesCreate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -898,7 +898,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -913,7 +913,7 @@ public struct Client: APIProtocol { )) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -924,7 +924,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -932,10 +932,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -944,7 +944,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -954,7 +954,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -966,7 +966,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -976,7 +976,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -988,7 +988,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -998,7 +998,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1010,7 +1010,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1020,7 +1020,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1032,7 +1032,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1042,7 +1042,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1079,10 +1079,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)`. - public func issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output { + public func issuesListCommentsForRepo(_ input: Operations.IssuesListCommentsForRepo.Input) async throws -> Operations.IssuesListCommentsForRepo.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.id, + forOperation: Operations.IssuesListCommentsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments", @@ -1122,7 +1122,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1140,13 +1140,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListCommentsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.IssuesListCommentsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1156,7 +1156,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue_hyphen_comment].self, + [Components.Schemas.IssueComment].self, from: responseBody, transforming: { value in .json(value) @@ -1171,7 +1171,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1181,7 +1181,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1193,7 +1193,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1203,7 +1203,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1238,17 +1238,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)`. - public func issues_sol_get_hyphen_comment(_ input: Operations.issues_sol_get_hyphen_comment.Input) async throws -> Operations.issues_sol_get_hyphen_comment.Output { + public func issuesGetComment(_ input: Operations.IssuesGetComment.Input) async throws -> Operations.IssuesGetComment.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_get_hyphen_comment.id, + forOperation: Operations.IssuesGetComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1266,7 +1266,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_get_hyphen_comment.Output.Ok.Body + let body: Operations.IssuesGetComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1276,7 +1276,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_comment.self, + Components.Schemas.IssueComment.self, from: responseBody, transforming: { value in .json(value) @@ -1288,7 +1288,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1298,7 +1298,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1333,17 +1333,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)`. - public func issues_sol_update_hyphen_comment(_ input: Operations.issues_sol_update_hyphen_comment.Input) async throws -> Operations.issues_sol_update_hyphen_comment.Output { + public func issuesUpdateComment(_ input: Operations.IssuesUpdateComment.Input) async throws -> Operations.IssuesUpdateComment.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_update_hyphen_comment.id, + forOperation: Operations.IssuesUpdateComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1370,7 +1370,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_update_hyphen_comment.Output.Ok.Body + let body: Operations.IssuesUpdateComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1380,7 +1380,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_comment.self, + Components.Schemas.IssueComment.self, from: responseBody, transforming: { value in .json(value) @@ -1392,7 +1392,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1402,7 +1402,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1430,17 +1430,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)`. - public func issues_sol_delete_hyphen_comment(_ input: Operations.issues_sol_delete_hyphen_comment.Input) async throws -> Operations.issues_sol_delete_hyphen_comment.Output { + public func issuesDeleteComment(_ input: Operations.IssuesDeleteComment.Input) async throws -> Operations.IssuesDeleteComment.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_delete_hyphen_comment.id, + forOperation: Operations.IssuesDeleteComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1472,10 +1472,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)`. - public func issues_sol_list_hyphen_events_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output { + public func issuesListEventsForRepo(_ input: Operations.IssuesListEventsForRepo.Input) async throws -> Operations.IssuesListEventsForRepo.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.id, + forOperation: Operations.IssuesListEventsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/events", @@ -1494,7 +1494,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1512,13 +1512,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListEventsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.IssuesListEventsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1528,7 +1528,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue_hyphen_event].self, + [Components.Schemas.IssueEvent].self, from: responseBody, transforming: { value in .json(value) @@ -1543,7 +1543,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1553,7 +1553,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1581,17 +1581,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events/{event_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)`. - public func issues_sol_get_hyphen_event(_ input: Operations.issues_sol_get_hyphen_event.Input) async throws -> Operations.issues_sol_get_hyphen_event.Output { + public func issuesGetEvent(_ input: Operations.IssuesGetEvent.Input) async throws -> Operations.IssuesGetEvent.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_get_hyphen_event.id, + forOperation: Operations.IssuesGetEvent.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/events/{}", parameters: [ input.path.owner, input.path.repo, - input.path.event_id + input.path.eventId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1609,7 +1609,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_get_hyphen_event.Output.Ok.Body + let body: Operations.IssuesGetEvent.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1619,7 +1619,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_event.self, + Components.Schemas.IssueEvent.self, from: responseBody, transforming: { value in .json(value) @@ -1631,7 +1631,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1641,7 +1641,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1653,7 +1653,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1663,7 +1663,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1675,7 +1675,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1685,7 +1685,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1728,17 +1728,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)`. - public func issues_sol_get(_ input: Operations.issues_sol_get.Input) async throws -> Operations.issues_sol_get.Output { + public func issuesGet(_ input: Operations.IssuesGet.Input) async throws -> Operations.IssuesGet.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_get.id, + forOperation: Operations.IssuesGet.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1756,7 +1756,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_get.Output.Ok.Body + let body: Operations.IssuesGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1766,7 +1766,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -1778,7 +1778,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1788,7 +1788,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1800,7 +1800,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1810,7 +1810,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1822,7 +1822,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1832,7 +1832,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1869,17 +1869,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)`. - public func issues_sol_update(_ input: Operations.issues_sol_update.Input) async throws -> Operations.issues_sol_update.Output { + public func issuesUpdate(_ input: Operations.IssuesUpdate.Input) async throws -> Operations.IssuesUpdate.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_update.id, + forOperation: Operations.IssuesUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1908,7 +1908,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_update.Output.Ok.Body + let body: Operations.IssuesUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1918,7 +1918,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -1930,7 +1930,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1940,7 +1940,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1952,7 +1952,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1962,7 +1962,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1974,7 +1974,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1984,7 +1984,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1996,7 +1996,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2006,7 +2006,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2018,7 +2018,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2028,7 +2028,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2040,7 +2040,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2050,7 +2050,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2078,17 +2078,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/post(issues/add-assignees)`. - public func issues_sol_add_hyphen_assignees(_ input: Operations.issues_sol_add_hyphen_assignees.Input) async throws -> Operations.issues_sol_add_hyphen_assignees.Output { + public func issuesAddAssignees(_ input: Operations.IssuesAddAssignees.Input) async throws -> Operations.IssuesAddAssignees.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_add_hyphen_assignees.id, + forOperation: Operations.IssuesAddAssignees.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/assignees", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2117,7 +2117,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_add_hyphen_assignees.Output.Created.Body + let body: Operations.IssuesAddAssignees.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2127,7 +2127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -2155,17 +2155,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/delete(issues/remove-assignees)`. - public func issues_sol_remove_hyphen_assignees(_ input: Operations.issues_sol_remove_hyphen_assignees.Input) async throws -> Operations.issues_sol_remove_hyphen_assignees.Output { + public func issuesRemoveAssignees(_ input: Operations.IssuesRemoveAssignees.Input) async throws -> Operations.IssuesRemoveAssignees.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_remove_hyphen_assignees.id, + forOperation: Operations.IssuesRemoveAssignees.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/assignees", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2194,7 +2194,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_remove_hyphen_assignees.Output.Ok.Body + let body: Operations.IssuesRemoveAssignees.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2204,7 +2204,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -2236,17 +2236,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)`. - public func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue(_ input: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output { + public func issuesCheckUserCanBeAssignedToIssue(_ input: Operations.IssuesCheckUserCanBeAssignedToIssue.Input) async throws -> Operations.IssuesCheckUserCanBeAssignedToIssue.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.id, + forOperation: Operations.IssuesCheckUserCanBeAssignedToIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/assignees/{}", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number, + input.path.issueNumber, input.path.assignee ] ) @@ -2267,7 +2267,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NotFound.Body + let body: Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2277,7 +2277,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2314,17 +2314,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)`. - public func issues_sol_list_hyphen_comments(_ input: Operations.issues_sol_list_hyphen_comments.Input) async throws -> Operations.issues_sol_list_hyphen_comments.Output { + public func issuesListComments(_ input: Operations.IssuesListComments.Input) async throws -> Operations.IssuesListComments.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_comments.id, + forOperation: Operations.IssuesListComments.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2344,7 +2344,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2362,13 +2362,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_comments.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListComments.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_comments.Output.Ok.Body + let body: Operations.IssuesListComments.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2378,7 +2378,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue_hyphen_comment].self, + [Components.Schemas.IssueComment].self, from: responseBody, transforming: { value in .json(value) @@ -2393,7 +2393,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2403,7 +2403,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2415,7 +2415,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2425,7 +2425,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2465,17 +2465,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`. - public func issues_sol_create_hyphen_comment(_ input: Operations.issues_sol_create_hyphen_comment.Input) async throws -> Operations.issues_sol_create_hyphen_comment.Output { + public func issuesCreateComment(_ input: Operations.IssuesCreateComment.Input) async throws -> Operations.IssuesCreateComment.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_create_hyphen_comment.id, + forOperation: Operations.IssuesCreateComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2501,13 +2501,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.issues_sol_create_hyphen_comment.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesCreateComment.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_create_hyphen_comment.Output.Created.Body + let body: Operations.IssuesCreateComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2517,7 +2517,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_comment.self, + Components.Schemas.IssueComment.self, from: responseBody, transforming: { value in .json(value) @@ -2532,7 +2532,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2542,7 +2542,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2554,7 +2554,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2564,7 +2564,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2576,7 +2576,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2586,7 +2586,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2598,7 +2598,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2608,7 +2608,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2636,17 +2636,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)`. - public func issues_sol_list_hyphen_events(_ input: Operations.issues_sol_list_hyphen_events.Input) async throws -> Operations.issues_sol_list_hyphen_events.Output { + public func issuesListEvents(_ input: Operations.IssuesListEvents.Input) async throws -> Operations.IssuesListEvents.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_events.id, + forOperation: Operations.IssuesListEvents.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/events", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2659,7 +2659,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2677,13 +2677,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_events.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListEvents.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_events.Output.Ok.Body + let body: Operations.IssuesListEvents.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2693,7 +2693,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue_hyphen_event_hyphen_for_hyphen_issue].self, + [Components.Schemas.IssueEventForIssue].self, from: responseBody, transforming: { value in .json(value) @@ -2708,7 +2708,7 @@ public struct Client: APIProtocol { )) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2718,7 +2718,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2746,17 +2746,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)`. - public func issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output { + public func issuesListLabelsOnIssue(_ input: Operations.IssuesListLabelsOnIssue.Input) async throws -> Operations.IssuesListLabelsOnIssue.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.id, + forOperation: Operations.IssuesListLabelsOnIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2769,7 +2769,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2787,13 +2787,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListLabelsOnIssue.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Body + let body: Operations.IssuesListLabelsOnIssue.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2803,7 +2803,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -2818,7 +2818,7 @@ public struct Client: APIProtocol { )) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2828,7 +2828,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2840,7 +2840,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2850,7 +2850,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2862,7 +2862,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2872,7 +2872,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2900,17 +2900,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)`. - public func issues_sol_add_hyphen_labels(_ input: Operations.issues_sol_add_hyphen_labels.Input) async throws -> Operations.issues_sol_add_hyphen_labels.Output { + public func issuesAddLabels(_ input: Operations.IssuesAddLabels.Input) async throws -> Operations.IssuesAddLabels.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_add_hyphen_labels.id, + forOperation: Operations.IssuesAddLabels.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2939,7 +2939,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_add_hyphen_labels.Output.Ok.Body + let body: Operations.IssuesAddLabels.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2949,7 +2949,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -2961,7 +2961,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2971,7 +2971,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2983,7 +2983,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2993,7 +2993,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3005,7 +3005,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3015,7 +3015,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3027,7 +3027,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3037,7 +3037,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3065,17 +3065,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)`. - public func issues_sol_set_hyphen_labels(_ input: Operations.issues_sol_set_hyphen_labels.Input) async throws -> Operations.issues_sol_set_hyphen_labels.Output { + public func issuesSetLabels(_ input: Operations.IssuesSetLabels.Input) async throws -> Operations.IssuesSetLabels.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_set_hyphen_labels.id, + forOperation: Operations.IssuesSetLabels.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3104,7 +3104,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_set_hyphen_labels.Output.Ok.Body + let body: Operations.IssuesSetLabels.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3114,7 +3114,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -3126,7 +3126,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3136,7 +3136,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3148,7 +3148,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3158,7 +3158,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3170,7 +3170,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3180,7 +3180,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3192,7 +3192,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3202,7 +3202,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3230,17 +3230,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)`. - public func issues_sol_remove_hyphen_all_hyphen_labels(_ input: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input) async throws -> Operations.issues_sol_remove_hyphen_all_hyphen_labels.Output { + public func issuesRemoveAllLabels(_ input: Operations.IssuesRemoveAllLabels.Input) async throws -> Operations.IssuesRemoveAllLabels.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_remove_hyphen_all_hyphen_labels.id, + forOperation: Operations.IssuesRemoveAllLabels.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3260,7 +3260,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3270,7 +3270,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3282,7 +3282,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3292,7 +3292,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3304,7 +3304,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3314,7 +3314,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3342,17 +3342,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)`. - public func issues_sol_remove_hyphen_label(_ input: Operations.issues_sol_remove_hyphen_label.Input) async throws -> Operations.issues_sol_remove_hyphen_label.Output { + public func issuesRemoveLabel(_ input: Operations.IssuesRemoveLabel.Input) async throws -> Operations.IssuesRemoveLabel.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_remove_hyphen_label.id, + forOperation: Operations.IssuesRemoveLabel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/labels/{}", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number, + input.path.issueNumber, input.path.name ] ) @@ -3371,7 +3371,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_remove_hyphen_label.Output.Ok.Body + let body: Operations.IssuesRemoveLabel.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3381,7 +3381,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -3393,7 +3393,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3403,7 +3403,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3415,7 +3415,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3425,7 +3425,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3437,7 +3437,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3447,7 +3447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3477,17 +3477,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)`. - public func issues_sol_lock(_ input: Operations.issues_sol_lock.Input) async throws -> Operations.issues_sol_lock.Output { + public func issuesLock(_ input: Operations.IssuesLock.Input) async throws -> Operations.IssuesLock.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_lock.id, + forOperation: Operations.IssuesLock.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/lock", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3518,7 +3518,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3528,7 +3528,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3540,7 +3540,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3550,7 +3550,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3562,7 +3562,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3572,7 +3572,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3584,7 +3584,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3594,7 +3594,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3622,17 +3622,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)`. - public func issues_sol_unlock(_ input: Operations.issues_sol_unlock.Input) async throws -> Operations.issues_sol_unlock.Output { + public func issuesUnlock(_ input: Operations.IssuesUnlock.Input) async throws -> Operations.IssuesUnlock.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_unlock.id, + forOperation: Operations.IssuesUnlock.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/lock", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3652,7 +3652,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3662,7 +3662,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3674,7 +3674,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3684,7 +3684,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3720,17 +3720,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)`. - public func issues_sol_remove_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output { + public func issuesRemoveSubIssue(_ input: Operations.IssuesRemoveSubIssue.Input) async throws -> Operations.IssuesRemoveSubIssue.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.id, + forOperation: Operations.IssuesRemoveSubIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/sub_issue", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3756,13 +3756,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesRemoveSubIssue.Output.Ok.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Body + let body: Operations.IssuesRemoveSubIssue.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3772,7 +3772,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -3787,7 +3787,7 @@ public struct Client: APIProtocol { )) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3798,7 +3798,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3806,10 +3806,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -3818,7 +3818,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3828,7 +3828,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3863,17 +3863,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)`. - public func issues_sol_list_hyphen_sub_hyphen_issues(_ input: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input) async throws -> Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output { + public func issuesListSubIssues(_ input: Operations.IssuesListSubIssues.Input) async throws -> Operations.IssuesListSubIssues.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_sub_hyphen_issues.id, + forOperation: Operations.IssuesListSubIssues.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/sub_issues", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3886,7 +3886,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3904,13 +3904,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListSubIssues.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Body + let body: Operations.IssuesListSubIssues.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3920,7 +3920,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue].self, + [Components.Schemas.Issue].self, from: responseBody, transforming: { value in .json(value) @@ -3935,7 +3935,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3945,7 +3945,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3957,7 +3957,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3967,7 +3967,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4006,17 +4006,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)`. - public func issues_sol_add_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output { + public func issuesAddSubIssue(_ input: Operations.IssuesAddSubIssue.Input) async throws -> Operations.IssuesAddSubIssue.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_add_hyphen_sub_hyphen_issue.id, + forOperation: Operations.IssuesAddSubIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/sub_issues", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4042,13 +4042,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesAddSubIssue.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Body + let body: Operations.IssuesAddSubIssue.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4058,7 +4058,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -4073,7 +4073,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4083,7 +4083,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4095,7 +4095,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4105,7 +4105,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4117,7 +4117,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4127,7 +4127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4139,7 +4139,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4149,7 +4149,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4177,17 +4177,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)`. - public func issues_sol_reprioritize_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output { + public func issuesReprioritizeSubIssue(_ input: Operations.IssuesReprioritizeSubIssue.Input) async throws -> Operations.IssuesReprioritizeSubIssue.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.id, + forOperation: Operations.IssuesReprioritizeSubIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/sub_issues/priority", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4214,7 +4214,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output.Ok.Body + let body: Operations.IssuesReprioritizeSubIssue.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4224,7 +4224,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue.self, + Components.Schemas.Issue.self, from: responseBody, transforming: { value in .json(value) @@ -4236,7 +4236,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4246,7 +4246,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4258,7 +4258,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4268,7 +4268,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4280,7 +4280,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4290,7 +4290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -4302,7 +4302,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4312,7 +4312,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4340,17 +4340,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. - public func issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline(_ input: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output { + public func issuesListEventsForTimeline(_ input: Operations.IssuesListEventsForTimeline.Input) async throws -> Operations.IssuesListEventsForTimeline.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.id, + forOperation: Operations.IssuesListEventsForTimeline.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/timeline", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4363,7 +4363,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4381,13 +4381,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListEventsForTimeline.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Body + let body: Operations.IssuesListEventsForTimeline.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4397,7 +4397,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.timeline_hyphen_issue_hyphen_events].self, + [Components.Schemas.TimelineIssueEvents].self, from: responseBody, transforming: { value in .json(value) @@ -4412,7 +4412,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4422,7 +4422,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4434,7 +4434,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4444,7 +4444,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4472,10 +4472,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)`. - public func issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output { + public func issuesListLabelsForRepo(_ input: Operations.IssuesListLabelsForRepo.Input) async throws -> Operations.IssuesListLabelsForRepo.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.id, + forOperation: Operations.IssuesListLabelsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/labels", @@ -4494,7 +4494,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4512,13 +4512,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListLabelsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.IssuesListLabelsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4528,7 +4528,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -4543,7 +4543,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4553,7 +4553,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4581,10 +4581,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)`. - public func issues_sol_create_hyphen_label(_ input: Operations.issues_sol_create_hyphen_label.Input) async throws -> Operations.issues_sol_create_hyphen_label.Output { + public func issuesCreateLabel(_ input: Operations.IssuesCreateLabel.Input) async throws -> Operations.IssuesCreateLabel.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_create_hyphen_label.id, + forOperation: Operations.IssuesCreateLabel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/labels", @@ -4616,13 +4616,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.issues_sol_create_hyphen_label.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesCreateLabel.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_create_hyphen_label.Output.Created.Body + let body: Operations.IssuesCreateLabel.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4632,7 +4632,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.label.self, + Components.Schemas.Label.self, from: responseBody, transforming: { value in .json(value) @@ -4647,7 +4647,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4657,7 +4657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4669,7 +4669,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4679,7 +4679,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4707,10 +4707,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)`. - public func issues_sol_get_hyphen_label(_ input: Operations.issues_sol_get_hyphen_label.Input) async throws -> Operations.issues_sol_get_hyphen_label.Output { + public func issuesGetLabel(_ input: Operations.IssuesGetLabel.Input) async throws -> Operations.IssuesGetLabel.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_get_hyphen_label.id, + forOperation: Operations.IssuesGetLabel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/labels/{}", @@ -4735,7 +4735,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_get_hyphen_label.Output.Ok.Body + let body: Operations.IssuesGetLabel.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4745,7 +4745,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.label.self, + Components.Schemas.Label.self, from: responseBody, transforming: { value in .json(value) @@ -4757,7 +4757,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4767,7 +4767,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4795,10 +4795,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/patch(issues/update-label)`. - public func issues_sol_update_hyphen_label(_ input: Operations.issues_sol_update_hyphen_label.Input) async throws -> Operations.issues_sol_update_hyphen_label.Output { + public func issuesUpdateLabel(_ input: Operations.IssuesUpdateLabel.Input) async throws -> Operations.IssuesUpdateLabel.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_update_hyphen_label.id, + forOperation: Operations.IssuesUpdateLabel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/labels/{}", @@ -4834,7 +4834,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_update_hyphen_label.Output.Ok.Body + let body: Operations.IssuesUpdateLabel.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4844,7 +4844,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.label.self, + Components.Schemas.Label.self, from: responseBody, transforming: { value in .json(value) @@ -4872,10 +4872,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)`. - public func issues_sol_delete_hyphen_label(_ input: Operations.issues_sol_delete_hyphen_label.Input) async throws -> Operations.issues_sol_delete_hyphen_label.Output { + public func issuesDeleteLabel(_ input: Operations.IssuesDeleteLabel.Input) async throws -> Operations.IssuesDeleteLabel.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_delete_hyphen_label.id, + forOperation: Operations.IssuesDeleteLabel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/labels/{}", @@ -4914,10 +4914,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)`. - public func issues_sol_list_hyphen_milestones(_ input: Operations.issues_sol_list_hyphen_milestones.Input) async throws -> Operations.issues_sol_list_hyphen_milestones.Output { + public func issuesListMilestones(_ input: Operations.IssuesListMilestones.Input) async throws -> Operations.IssuesListMilestones.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_milestones.id, + forOperation: Operations.IssuesListMilestones.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones", @@ -4957,7 +4957,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4975,13 +4975,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListMilestones.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Body + let body: Operations.IssuesListMilestones.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4991,7 +4991,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.milestone].self, + [Components.Schemas.Milestone].self, from: responseBody, transforming: { value in .json(value) @@ -5006,7 +5006,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5016,7 +5016,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5044,10 +5044,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)`. - public func issues_sol_create_hyphen_milestone(_ input: Operations.issues_sol_create_hyphen_milestone.Input) async throws -> Operations.issues_sol_create_hyphen_milestone.Output { + public func issuesCreateMilestone(_ input: Operations.IssuesCreateMilestone.Input) async throws -> Operations.IssuesCreateMilestone.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_create_hyphen_milestone.id, + forOperation: Operations.IssuesCreateMilestone.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones", @@ -5079,13 +5079,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.issues_sol_create_hyphen_milestone.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesCreateMilestone.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_create_hyphen_milestone.Output.Created.Body + let body: Operations.IssuesCreateMilestone.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5095,7 +5095,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.milestone.self, + Components.Schemas.Milestone.self, from: responseBody, transforming: { value in .json(value) @@ -5110,7 +5110,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5120,7 +5120,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5132,7 +5132,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5142,7 +5142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5170,17 +5170,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)`. - public func issues_sol_get_hyphen_milestone(_ input: Operations.issues_sol_get_hyphen_milestone.Input) async throws -> Operations.issues_sol_get_hyphen_milestone.Output { + public func issuesGetMilestone(_ input: Operations.IssuesGetMilestone.Input) async throws -> Operations.IssuesGetMilestone.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_get_hyphen_milestone.id, + forOperation: Operations.IssuesGetMilestone.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones/{}", parameters: [ input.path.owner, input.path.repo, - input.path.milestone_number + input.path.milestoneNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5198,7 +5198,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_get_hyphen_milestone.Output.Ok.Body + let body: Operations.IssuesGetMilestone.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5208,7 +5208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.milestone.self, + Components.Schemas.Milestone.self, from: responseBody, transforming: { value in .json(value) @@ -5220,7 +5220,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5230,7 +5230,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5258,17 +5258,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/patch(issues/update-milestone)`. - public func issues_sol_update_hyphen_milestone(_ input: Operations.issues_sol_update_hyphen_milestone.Input) async throws -> Operations.issues_sol_update_hyphen_milestone.Output { + public func issuesUpdateMilestone(_ input: Operations.IssuesUpdateMilestone.Input) async throws -> Operations.IssuesUpdateMilestone.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_update_hyphen_milestone.id, + forOperation: Operations.IssuesUpdateMilestone.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones/{}", parameters: [ input.path.owner, input.path.repo, - input.path.milestone_number + input.path.milestoneNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5297,7 +5297,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_update_hyphen_milestone.Output.Ok.Body + let body: Operations.IssuesUpdateMilestone.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5307,7 +5307,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.milestone.self, + Components.Schemas.Milestone.self, from: responseBody, transforming: { value in .json(value) @@ -5335,17 +5335,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)`. - public func issues_sol_delete_hyphen_milestone(_ input: Operations.issues_sol_delete_hyphen_milestone.Input) async throws -> Operations.issues_sol_delete_hyphen_milestone.Output { + public func issuesDeleteMilestone(_ input: Operations.IssuesDeleteMilestone.Input) async throws -> Operations.IssuesDeleteMilestone.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_delete_hyphen_milestone.id, + forOperation: Operations.IssuesDeleteMilestone.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones/{}", parameters: [ input.path.owner, input.path.repo, - input.path.milestone_number + input.path.milestoneNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5365,7 +5365,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5375,7 +5375,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5403,17 +5403,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/labels/get(issues/list-labels-for-milestone)`. - public func issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output { + public func issuesListLabelsForMilestone(_ input: Operations.IssuesListLabelsForMilestone.Input) async throws -> Operations.IssuesListLabelsForMilestone.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.id, + forOperation: Operations.IssuesListLabelsForMilestone.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/milestones/{}/labels", parameters: [ input.path.owner, input.path.repo, - input.path.milestone_number + input.path.milestoneNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5426,7 +5426,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5444,13 +5444,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListLabelsForMilestone.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Body + let body: Operations.IssuesListLabelsForMilestone.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5460,7 +5460,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.label].self, + [Components.Schemas.Label].self, from: responseBody, transforming: { value in .json(value) @@ -5501,10 +5501,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/issues`. /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)`. - public func issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func issuesListForAuthenticatedUser(_ input: Operations.IssuesListForAuthenticatedUser.Input) async throws -> Operations.IssuesListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.IssuesListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/issues", @@ -5562,7 +5562,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5580,13 +5580,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.IssuesListForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.IssuesListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5596,7 +5596,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue].self, + [Components.Schemas.Issue].self, from: responseBody, transforming: { value in .json(value) @@ -5611,7 +5611,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5621,7 +5621,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index a24b16c3d6..98e1908748 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -29,7 +29,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /issues`. /// - Remark: Generated from `#/paths//issues/get(issues/list)`. - func issues_sol_list(_ input: Operations.issues_sol_list.Input) async throws -> Operations.issues_sol_list.Output + func issuesList(_ input: Operations.IssuesList.Input) async throws -> Operations.IssuesList.Output /// List organization issues assigned to the authenticated user /// /// List issues in an organization assigned to the authenticated user. @@ -46,14 +46,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/issues`. /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)`. - func issues_sol_list_hyphen_for_hyphen_org(_ input: Operations.issues_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_org.Output + func issuesListForOrg(_ input: Operations.IssuesListForOrg.Input) async throws -> Operations.IssuesListForOrg.Output /// List assignees /// /// Lists the [available assignees](https://docs.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)`. - func issues_sol_list_hyphen_assignees(_ input: Operations.issues_sol_list_hyphen_assignees.Input) async throws -> Operations.issues_sol_list_hyphen_assignees.Output + func issuesListAssignees(_ input: Operations.IssuesListAssignees.Input) async throws -> Operations.IssuesListAssignees.Output /// Check if a user can be assigned /// /// Checks if a user has permission to be assigned to an issue in this repository. @@ -64,7 +64,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)`. - func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned(_ input: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output + func issuesCheckUserCanBeAssigned(_ input: Operations.IssuesCheckUserCanBeAssigned.Input) async throws -> Operations.IssuesCheckUserCanBeAssigned.Output /// List repository issues /// /// List issues in a repository. Only open issues will be listed. @@ -81,7 +81,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)`. - func issues_sol_list_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_repo.Output + func issuesListForRepo(_ input: Operations.IssuesListForRepo.Input) async throws -> Operations.IssuesListForRepo.Output /// Create an issue /// /// Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://docs.github.com/articles/disabling-issues/), the API returns a `410 Gone` status. @@ -98,7 +98,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)`. - func issues_sol_create(_ input: Operations.issues_sol_create.Input) async throws -> Operations.issues_sol_create.Output + func issuesCreate(_ input: Operations.IssuesCreate.Input) async throws -> Operations.IssuesCreate.Output /// List issue comments for a repository /// /// You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request. @@ -114,7 +114,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)`. - func issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output + func issuesListCommentsForRepo(_ input: Operations.IssuesListCommentsForRepo.Input) async throws -> Operations.IssuesListCommentsForRepo.Output /// Get an issue comment /// /// You can use the REST API to get comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. @@ -128,7 +128,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)`. - func issues_sol_get_hyphen_comment(_ input: Operations.issues_sol_get_hyphen_comment.Input) async throws -> Operations.issues_sol_get_hyphen_comment.Output + func issuesGetComment(_ input: Operations.IssuesGetComment.Input) async throws -> Operations.IssuesGetComment.Output /// Update an issue comment /// /// You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. @@ -142,28 +142,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)`. - func issues_sol_update_hyphen_comment(_ input: Operations.issues_sol_update_hyphen_comment.Input) async throws -> Operations.issues_sol_update_hyphen_comment.Output + func issuesUpdateComment(_ input: Operations.IssuesUpdateComment.Input) async throws -> Operations.IssuesUpdateComment.Output /// Delete an issue comment /// /// You can use the REST API to delete comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)`. - func issues_sol_delete_hyphen_comment(_ input: Operations.issues_sol_delete_hyphen_comment.Input) async throws -> Operations.issues_sol_delete_hyphen_comment.Output + func issuesDeleteComment(_ input: Operations.IssuesDeleteComment.Input) async throws -> Operations.IssuesDeleteComment.Output /// List issue events for a repository /// /// Lists events for a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)`. - func issues_sol_list_hyphen_events_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output + func issuesListEventsForRepo(_ input: Operations.IssuesListEventsForRepo.Input) async throws -> Operations.IssuesListEventsForRepo.Output /// Get an issue event /// /// Gets a single event by the event id. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events/{event_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)`. - func issues_sol_get_hyphen_event(_ input: Operations.issues_sol_get_hyphen_event.Input) async throws -> Operations.issues_sol_get_hyphen_event.Output + func issuesGetEvent(_ input: Operations.IssuesGetEvent.Input) async throws -> Operations.IssuesGetEvent.Output /// Get an issue /// /// The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api#follow-redirects) if the issue was @@ -185,7 +185,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)`. - func issues_sol_get(_ input: Operations.issues_sol_get.Input) async throws -> Operations.issues_sol_get.Output + func issuesGet(_ input: Operations.IssuesGet.Input) async throws -> Operations.IssuesGet.Output /// Update an issue /// /// Issue owners and users with push access or Triage role can edit an issue. @@ -199,21 +199,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)`. - func issues_sol_update(_ input: Operations.issues_sol_update.Input) async throws -> Operations.issues_sol_update.Output + func issuesUpdate(_ input: Operations.IssuesUpdate.Input) async throws -> Operations.IssuesUpdate.Output /// Add assignees to an issue /// /// Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/post(issues/add-assignees)`. - func issues_sol_add_hyphen_assignees(_ input: Operations.issues_sol_add_hyphen_assignees.Input) async throws -> Operations.issues_sol_add_hyphen_assignees.Output + func issuesAddAssignees(_ input: Operations.IssuesAddAssignees.Input) async throws -> Operations.IssuesAddAssignees.Output /// Remove assignees from an issue /// /// Removes one or more assignees from an issue. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/delete(issues/remove-assignees)`. - func issues_sol_remove_hyphen_assignees(_ input: Operations.issues_sol_remove_hyphen_assignees.Input) async throws -> Operations.issues_sol_remove_hyphen_assignees.Output + func issuesRemoveAssignees(_ input: Operations.IssuesRemoveAssignees.Input) async throws -> Operations.IssuesRemoveAssignees.Output /// Check if a user can be assigned to a issue /// /// Checks if a user has permission to be assigned to a specific issue. @@ -224,7 +224,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)`. - func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue(_ input: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output + func issuesCheckUserCanBeAssignedToIssue(_ input: Operations.IssuesCheckUserCanBeAssignedToIssue.Input) async throws -> Operations.IssuesCheckUserCanBeAssignedToIssue.Output /// List issue comments /// /// You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. @@ -240,7 +240,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)`. - func issues_sol_list_hyphen_comments(_ input: Operations.issues_sol_list_hyphen_comments.Input) async throws -> Operations.issues_sol_list_hyphen_comments.Output + func issuesListComments(_ input: Operations.IssuesListComments.Input) async throws -> Operations.IssuesListComments.Output /// Create an issue comment /// /// You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request. @@ -259,49 +259,49 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`. - func issues_sol_create_hyphen_comment(_ input: Operations.issues_sol_create_hyphen_comment.Input) async throws -> Operations.issues_sol_create_hyphen_comment.Output + func issuesCreateComment(_ input: Operations.IssuesCreateComment.Input) async throws -> Operations.IssuesCreateComment.Output /// List issue events /// /// Lists all events for an issue. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)`. - func issues_sol_list_hyphen_events(_ input: Operations.issues_sol_list_hyphen_events.Input) async throws -> Operations.issues_sol_list_hyphen_events.Output + func issuesListEvents(_ input: Operations.IssuesListEvents.Input) async throws -> Operations.IssuesListEvents.Output /// List labels for an issue /// /// Lists all labels for an issue. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)`. - func issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output + func issuesListLabelsOnIssue(_ input: Operations.IssuesListLabelsOnIssue.Input) async throws -> Operations.IssuesListLabelsOnIssue.Output /// Add labels to an issue /// /// Adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)`. - func issues_sol_add_hyphen_labels(_ input: Operations.issues_sol_add_hyphen_labels.Input) async throws -> Operations.issues_sol_add_hyphen_labels.Output + func issuesAddLabels(_ input: Operations.IssuesAddLabels.Input) async throws -> Operations.IssuesAddLabels.Output /// Set labels for an issue /// /// Removes any previous labels and sets the new labels for an issue. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)`. - func issues_sol_set_hyphen_labels(_ input: Operations.issues_sol_set_hyphen_labels.Input) async throws -> Operations.issues_sol_set_hyphen_labels.Output + func issuesSetLabels(_ input: Operations.IssuesSetLabels.Input) async throws -> Operations.IssuesSetLabels.Output /// Remove all labels from an issue /// /// Removes all labels from an issue. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)`. - func issues_sol_remove_hyphen_all_hyphen_labels(_ input: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input) async throws -> Operations.issues_sol_remove_hyphen_all_hyphen_labels.Output + func issuesRemoveAllLabels(_ input: Operations.IssuesRemoveAllLabels.Input) async throws -> Operations.IssuesRemoveAllLabels.Output /// Remove a label from an issue /// /// Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)`. - func issues_sol_remove_hyphen_label(_ input: Operations.issues_sol_remove_hyphen_label.Input) async throws -> Operations.issues_sol_remove_hyphen_label.Output + func issuesRemoveLabel(_ input: Operations.IssuesRemoveLabel.Input) async throws -> Operations.IssuesRemoveLabel.Output /// Lock an issue /// /// Users with push access can lock an issue or pull request's conversation. @@ -310,14 +310,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)`. - func issues_sol_lock(_ input: Operations.issues_sol_lock.Input) async throws -> Operations.issues_sol_lock.Output + func issuesLock(_ input: Operations.IssuesLock.Input) async throws -> Operations.IssuesLock.Output /// Unlock an issue /// /// Users with push access can unlock an issue's conversation. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)`. - func issues_sol_unlock(_ input: Operations.issues_sol_unlock.Input) async throws -> Operations.issues_sol_unlock.Output + func issuesUnlock(_ input: Operations.IssuesUnlock.Input) async throws -> Operations.IssuesUnlock.Output /// Remove sub-issue /// /// You can use the REST API to remove a sub-issue from an issue. @@ -332,7 +332,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)`. - func issues_sol_remove_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output + func issuesRemoveSubIssue(_ input: Operations.IssuesRemoveSubIssue.Input) async throws -> Operations.IssuesRemoveSubIssue.Output /// List sub-issues /// /// You can use the REST API to list the sub-issues on an issue. @@ -346,7 +346,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)`. - func issues_sol_list_hyphen_sub_hyphen_issues(_ input: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input) async throws -> Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output + func issuesListSubIssues(_ input: Operations.IssuesListSubIssues.Input) async throws -> Operations.IssuesListSubIssues.Output /// Add sub-issue /// /// You can use the REST API to add sub-issues to issues. @@ -364,98 +364,98 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)`. - func issues_sol_add_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output + func issuesAddSubIssue(_ input: Operations.IssuesAddSubIssue.Input) async throws -> Operations.IssuesAddSubIssue.Output /// Reprioritize sub-issue /// /// You can use the REST API to reprioritize a sub-issue to a different position in the parent list. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)`. - func issues_sol_reprioritize_hyphen_sub_hyphen_issue(_ input: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input) async throws -> Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output + func issuesReprioritizeSubIssue(_ input: Operations.IssuesReprioritizeSubIssue.Input) async throws -> Operations.IssuesReprioritizeSubIssue.Output /// List timeline events for an issue /// /// List all timeline events for an issue. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. - func issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline(_ input: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output + func issuesListEventsForTimeline(_ input: Operations.IssuesListEventsForTimeline.Input) async throws -> Operations.IssuesListEventsForTimeline.Output /// List labels for a repository /// /// Lists all labels for a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)`. - func issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output + func issuesListLabelsForRepo(_ input: Operations.IssuesListLabelsForRepo.Input) async throws -> Operations.IssuesListLabelsForRepo.Output /// Create a label /// /// Creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid [hexadecimal color code](http://www.color-hex.com/). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)`. - func issues_sol_create_hyphen_label(_ input: Operations.issues_sol_create_hyphen_label.Input) async throws -> Operations.issues_sol_create_hyphen_label.Output + func issuesCreateLabel(_ input: Operations.IssuesCreateLabel.Input) async throws -> Operations.IssuesCreateLabel.Output /// Get a label /// /// Gets a label using the given name. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)`. - func issues_sol_get_hyphen_label(_ input: Operations.issues_sol_get_hyphen_label.Input) async throws -> Operations.issues_sol_get_hyphen_label.Output + func issuesGetLabel(_ input: Operations.IssuesGetLabel.Input) async throws -> Operations.IssuesGetLabel.Output /// Update a label /// /// Updates a label using the given label name. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/patch(issues/update-label)`. - func issues_sol_update_hyphen_label(_ input: Operations.issues_sol_update_hyphen_label.Input) async throws -> Operations.issues_sol_update_hyphen_label.Output + func issuesUpdateLabel(_ input: Operations.IssuesUpdateLabel.Input) async throws -> Operations.IssuesUpdateLabel.Output /// Delete a label /// /// Deletes a label using the given label name. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)`. - func issues_sol_delete_hyphen_label(_ input: Operations.issues_sol_delete_hyphen_label.Input) async throws -> Operations.issues_sol_delete_hyphen_label.Output + func issuesDeleteLabel(_ input: Operations.IssuesDeleteLabel.Input) async throws -> Operations.IssuesDeleteLabel.Output /// List milestones /// /// Lists milestones for a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)`. - func issues_sol_list_hyphen_milestones(_ input: Operations.issues_sol_list_hyphen_milestones.Input) async throws -> Operations.issues_sol_list_hyphen_milestones.Output + func issuesListMilestones(_ input: Operations.IssuesListMilestones.Input) async throws -> Operations.IssuesListMilestones.Output /// Create a milestone /// /// Creates a milestone. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)`. - func issues_sol_create_hyphen_milestone(_ input: Operations.issues_sol_create_hyphen_milestone.Input) async throws -> Operations.issues_sol_create_hyphen_milestone.Output + func issuesCreateMilestone(_ input: Operations.IssuesCreateMilestone.Input) async throws -> Operations.IssuesCreateMilestone.Output /// Get a milestone /// /// Gets a milestone using the given milestone number. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)`. - func issues_sol_get_hyphen_milestone(_ input: Operations.issues_sol_get_hyphen_milestone.Input) async throws -> Operations.issues_sol_get_hyphen_milestone.Output + func issuesGetMilestone(_ input: Operations.IssuesGetMilestone.Input) async throws -> Operations.IssuesGetMilestone.Output /// Update a milestone /// /// /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/patch(issues/update-milestone)`. - func issues_sol_update_hyphen_milestone(_ input: Operations.issues_sol_update_hyphen_milestone.Input) async throws -> Operations.issues_sol_update_hyphen_milestone.Output + func issuesUpdateMilestone(_ input: Operations.IssuesUpdateMilestone.Input) async throws -> Operations.IssuesUpdateMilestone.Output /// Delete a milestone /// /// Deletes a milestone using the given milestone number. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)`. - func issues_sol_delete_hyphen_milestone(_ input: Operations.issues_sol_delete_hyphen_milestone.Input) async throws -> Operations.issues_sol_delete_hyphen_milestone.Output + func issuesDeleteMilestone(_ input: Operations.IssuesDeleteMilestone.Input) async throws -> Operations.IssuesDeleteMilestone.Output /// List labels for issues in a milestone /// /// Lists labels for issues in a milestone. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/labels/get(issues/list-labels-for-milestone)`. - func issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone(_ input: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output + func issuesListLabelsForMilestone(_ input: Operations.IssuesListLabelsForMilestone.Input) async throws -> Operations.IssuesListLabelsForMilestone.Output /// List user account issues assigned to the authenticated user /// /// List issues across owned and member repositories assigned to the authenticated user. @@ -472,7 +472,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/issues`. /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)`. - func issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func issuesListForAuthenticatedUser(_ input: Operations.IssuesListForAuthenticatedUser.Input) async throws -> Operations.IssuesListForAuthenticatedUser.Output } /// Convenience overloads for operation inputs. @@ -495,11 +495,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /issues`. /// - Remark: Generated from `#/paths//issues/get(issues/list)`. - public func issues_sol_list( - query: Operations.issues_sol_list.Input.Query = .init(), - headers: Operations.issues_sol_list.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list.Output { - try await issues_sol_list(Operations.issues_sol_list.Input( + public func issuesList( + query: Operations.IssuesList.Input.Query = .init(), + headers: Operations.IssuesList.Input.Headers = .init() + ) async throws -> Operations.IssuesList.Output { + try await issuesList(Operations.IssuesList.Input( query: query, headers: headers )) @@ -520,12 +520,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/issues`. /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)`. - public func issues_sol_list_hyphen_for_hyphen_org( - path: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_org.Output { - try await issues_sol_list_hyphen_for_hyphen_org(Operations.issues_sol_list_hyphen_for_hyphen_org.Input( + public func issuesListForOrg( + path: Operations.IssuesListForOrg.Input.Path, + query: Operations.IssuesListForOrg.Input.Query = .init(), + headers: Operations.IssuesListForOrg.Input.Headers = .init() + ) async throws -> Operations.IssuesListForOrg.Output { + try await issuesListForOrg(Operations.IssuesListForOrg.Input( path: path, query: query, headers: headers @@ -537,12 +537,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)`. - public func issues_sol_list_hyphen_assignees( - path: Operations.issues_sol_list_hyphen_assignees.Input.Path, - query: Operations.issues_sol_list_hyphen_assignees.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_assignees.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_assignees.Output { - try await issues_sol_list_hyphen_assignees(Operations.issues_sol_list_hyphen_assignees.Input( + public func issuesListAssignees( + path: Operations.IssuesListAssignees.Input.Path, + query: Operations.IssuesListAssignees.Input.Query = .init(), + headers: Operations.IssuesListAssignees.Input.Headers = .init() + ) async throws -> Operations.IssuesListAssignees.Output { + try await issuesListAssignees(Operations.IssuesListAssignees.Input( path: path, query: query, headers: headers @@ -558,11 +558,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)`. - public func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned( - path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Path, - headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Headers = .init() - ) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output { - try await issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input( + public func issuesCheckUserCanBeAssigned( + path: Operations.IssuesCheckUserCanBeAssigned.Input.Path, + headers: Operations.IssuesCheckUserCanBeAssigned.Input.Headers = .init() + ) async throws -> Operations.IssuesCheckUserCanBeAssigned.Output { + try await issuesCheckUserCanBeAssigned(Operations.IssuesCheckUserCanBeAssigned.Input( path: path, headers: headers )) @@ -583,12 +583,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)`. - public func issues_sol_list_hyphen_for_hyphen_repo( - path: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_repo.Output { - try await issues_sol_list_hyphen_for_hyphen_repo(Operations.issues_sol_list_hyphen_for_hyphen_repo.Input( + public func issuesListForRepo( + path: Operations.IssuesListForRepo.Input.Path, + query: Operations.IssuesListForRepo.Input.Query = .init(), + headers: Operations.IssuesListForRepo.Input.Headers = .init() + ) async throws -> Operations.IssuesListForRepo.Output { + try await issuesListForRepo(Operations.IssuesListForRepo.Input( path: path, query: query, headers: headers @@ -610,12 +610,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)`. - public func issues_sol_create( - path: Operations.issues_sol_create.Input.Path, - headers: Operations.issues_sol_create.Input.Headers = .init(), - body: Operations.issues_sol_create.Input.Body - ) async throws -> Operations.issues_sol_create.Output { - try await issues_sol_create(Operations.issues_sol_create.Input( + public func issuesCreate( + path: Operations.IssuesCreate.Input.Path, + headers: Operations.IssuesCreate.Input.Headers = .init(), + body: Operations.IssuesCreate.Input.Body + ) async throws -> Operations.IssuesCreate.Output { + try await issuesCreate(Operations.IssuesCreate.Input( path: path, headers: headers, body: body @@ -636,12 +636,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)`. - public func issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo( - path: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output { - try await issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo(Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input( + public func issuesListCommentsForRepo( + path: Operations.IssuesListCommentsForRepo.Input.Path, + query: Operations.IssuesListCommentsForRepo.Input.Query = .init(), + headers: Operations.IssuesListCommentsForRepo.Input.Headers = .init() + ) async throws -> Operations.IssuesListCommentsForRepo.Output { + try await issuesListCommentsForRepo(Operations.IssuesListCommentsForRepo.Input( path: path, query: query, headers: headers @@ -660,11 +660,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)`. - public func issues_sol_get_hyphen_comment( - path: Operations.issues_sol_get_hyphen_comment.Input.Path, - headers: Operations.issues_sol_get_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.issues_sol_get_hyphen_comment.Output { - try await issues_sol_get_hyphen_comment(Operations.issues_sol_get_hyphen_comment.Input( + public func issuesGetComment( + path: Operations.IssuesGetComment.Input.Path, + headers: Operations.IssuesGetComment.Input.Headers = .init() + ) async throws -> Operations.IssuesGetComment.Output { + try await issuesGetComment(Operations.IssuesGetComment.Input( path: path, headers: headers )) @@ -682,12 +682,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)`. - public func issues_sol_update_hyphen_comment( - path: Operations.issues_sol_update_hyphen_comment.Input.Path, - headers: Operations.issues_sol_update_hyphen_comment.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_comment.Input.Body - ) async throws -> Operations.issues_sol_update_hyphen_comment.Output { - try await issues_sol_update_hyphen_comment(Operations.issues_sol_update_hyphen_comment.Input( + public func issuesUpdateComment( + path: Operations.IssuesUpdateComment.Input.Path, + headers: Operations.IssuesUpdateComment.Input.Headers = .init(), + body: Operations.IssuesUpdateComment.Input.Body + ) async throws -> Operations.IssuesUpdateComment.Output { + try await issuesUpdateComment(Operations.IssuesUpdateComment.Input( path: path, headers: headers, body: body @@ -699,8 +699,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)`. - public func issues_sol_delete_hyphen_comment(path: Operations.issues_sol_delete_hyphen_comment.Input.Path) async throws -> Operations.issues_sol_delete_hyphen_comment.Output { - try await issues_sol_delete_hyphen_comment(Operations.issues_sol_delete_hyphen_comment.Input(path: path)) + public func issuesDeleteComment(path: Operations.IssuesDeleteComment.Input.Path) async throws -> Operations.IssuesDeleteComment.Output { + try await issuesDeleteComment(Operations.IssuesDeleteComment.Input(path: path)) } /// List issue events for a repository /// @@ -708,12 +708,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)`. - public func issues_sol_list_hyphen_events_hyphen_for_hyphen_repo( - path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output { - try await issues_sol_list_hyphen_events_hyphen_for_hyphen_repo(Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input( + public func issuesListEventsForRepo( + path: Operations.IssuesListEventsForRepo.Input.Path, + query: Operations.IssuesListEventsForRepo.Input.Query = .init(), + headers: Operations.IssuesListEventsForRepo.Input.Headers = .init() + ) async throws -> Operations.IssuesListEventsForRepo.Output { + try await issuesListEventsForRepo(Operations.IssuesListEventsForRepo.Input( path: path, query: query, headers: headers @@ -725,11 +725,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events/{event_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)`. - public func issues_sol_get_hyphen_event( - path: Operations.issues_sol_get_hyphen_event.Input.Path, - headers: Operations.issues_sol_get_hyphen_event.Input.Headers = .init() - ) async throws -> Operations.issues_sol_get_hyphen_event.Output { - try await issues_sol_get_hyphen_event(Operations.issues_sol_get_hyphen_event.Input( + public func issuesGetEvent( + path: Operations.IssuesGetEvent.Input.Path, + headers: Operations.IssuesGetEvent.Input.Headers = .init() + ) async throws -> Operations.IssuesGetEvent.Output { + try await issuesGetEvent(Operations.IssuesGetEvent.Input( path: path, headers: headers )) @@ -755,11 +755,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)`. - public func issues_sol_get( - path: Operations.issues_sol_get.Input.Path, - headers: Operations.issues_sol_get.Input.Headers = .init() - ) async throws -> Operations.issues_sol_get.Output { - try await issues_sol_get(Operations.issues_sol_get.Input( + public func issuesGet( + path: Operations.IssuesGet.Input.Path, + headers: Operations.IssuesGet.Input.Headers = .init() + ) async throws -> Operations.IssuesGet.Output { + try await issuesGet(Operations.IssuesGet.Input( path: path, headers: headers )) @@ -777,12 +777,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)`. - public func issues_sol_update( - path: Operations.issues_sol_update.Input.Path, - headers: Operations.issues_sol_update.Input.Headers = .init(), - body: Operations.issues_sol_update.Input.Body? = nil - ) async throws -> Operations.issues_sol_update.Output { - try await issues_sol_update(Operations.issues_sol_update.Input( + public func issuesUpdate( + path: Operations.IssuesUpdate.Input.Path, + headers: Operations.IssuesUpdate.Input.Headers = .init(), + body: Operations.IssuesUpdate.Input.Body? = nil + ) async throws -> Operations.IssuesUpdate.Output { + try await issuesUpdate(Operations.IssuesUpdate.Input( path: path, headers: headers, body: body @@ -794,12 +794,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/post(issues/add-assignees)`. - public func issues_sol_add_hyphen_assignees( - path: Operations.issues_sol_add_hyphen_assignees.Input.Path, - headers: Operations.issues_sol_add_hyphen_assignees.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_assignees.Input.Body? = nil - ) async throws -> Operations.issues_sol_add_hyphen_assignees.Output { - try await issues_sol_add_hyphen_assignees(Operations.issues_sol_add_hyphen_assignees.Input( + public func issuesAddAssignees( + path: Operations.IssuesAddAssignees.Input.Path, + headers: Operations.IssuesAddAssignees.Input.Headers = .init(), + body: Operations.IssuesAddAssignees.Input.Body? = nil + ) async throws -> Operations.IssuesAddAssignees.Output { + try await issuesAddAssignees(Operations.IssuesAddAssignees.Input( path: path, headers: headers, body: body @@ -811,12 +811,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/delete(issues/remove-assignees)`. - public func issues_sol_remove_hyphen_assignees( - path: Operations.issues_sol_remove_hyphen_assignees.Input.Path, - headers: Operations.issues_sol_remove_hyphen_assignees.Input.Headers = .init(), - body: Operations.issues_sol_remove_hyphen_assignees.Input.Body? = nil - ) async throws -> Operations.issues_sol_remove_hyphen_assignees.Output { - try await issues_sol_remove_hyphen_assignees(Operations.issues_sol_remove_hyphen_assignees.Input( + public func issuesRemoveAssignees( + path: Operations.IssuesRemoveAssignees.Input.Path, + headers: Operations.IssuesRemoveAssignees.Input.Headers = .init(), + body: Operations.IssuesRemoveAssignees.Input.Body? = nil + ) async throws -> Operations.IssuesRemoveAssignees.Output { + try await issuesRemoveAssignees(Operations.IssuesRemoveAssignees.Input( path: path, headers: headers, body: body @@ -832,11 +832,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)`. - public func issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue( - path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Path, - headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Headers = .init() - ) async throws -> Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output { - try await issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input( + public func issuesCheckUserCanBeAssignedToIssue( + path: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Path, + headers: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Headers = .init() + ) async throws -> Operations.IssuesCheckUserCanBeAssignedToIssue.Output { + try await issuesCheckUserCanBeAssignedToIssue(Operations.IssuesCheckUserCanBeAssignedToIssue.Input( path: path, headers: headers )) @@ -856,12 +856,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)`. - public func issues_sol_list_hyphen_comments( - path: Operations.issues_sol_list_hyphen_comments.Input.Path, - query: Operations.issues_sol_list_hyphen_comments.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_comments.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_comments.Output { - try await issues_sol_list_hyphen_comments(Operations.issues_sol_list_hyphen_comments.Input( + public func issuesListComments( + path: Operations.IssuesListComments.Input.Path, + query: Operations.IssuesListComments.Input.Query = .init(), + headers: Operations.IssuesListComments.Input.Headers = .init() + ) async throws -> Operations.IssuesListComments.Output { + try await issuesListComments(Operations.IssuesListComments.Input( path: path, query: query, headers: headers @@ -885,12 +885,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`. - public func issues_sol_create_hyphen_comment( - path: Operations.issues_sol_create_hyphen_comment.Input.Path, - headers: Operations.issues_sol_create_hyphen_comment.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_comment.Input.Body - ) async throws -> Operations.issues_sol_create_hyphen_comment.Output { - try await issues_sol_create_hyphen_comment(Operations.issues_sol_create_hyphen_comment.Input( + public func issuesCreateComment( + path: Operations.IssuesCreateComment.Input.Path, + headers: Operations.IssuesCreateComment.Input.Headers = .init(), + body: Operations.IssuesCreateComment.Input.Body + ) async throws -> Operations.IssuesCreateComment.Output { + try await issuesCreateComment(Operations.IssuesCreateComment.Input( path: path, headers: headers, body: body @@ -902,12 +902,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)`. - public func issues_sol_list_hyphen_events( - path: Operations.issues_sol_list_hyphen_events.Input.Path, - query: Operations.issues_sol_list_hyphen_events.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_events.Output { - try await issues_sol_list_hyphen_events(Operations.issues_sol_list_hyphen_events.Input( + public func issuesListEvents( + path: Operations.IssuesListEvents.Input.Path, + query: Operations.IssuesListEvents.Input.Query = .init(), + headers: Operations.IssuesListEvents.Input.Headers = .init() + ) async throws -> Operations.IssuesListEvents.Output { + try await issuesListEvents(Operations.IssuesListEvents.Input( path: path, query: query, headers: headers @@ -919,12 +919,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)`. - public func issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue( - path: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output { - try await issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue(Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input( + public func issuesListLabelsOnIssue( + path: Operations.IssuesListLabelsOnIssue.Input.Path, + query: Operations.IssuesListLabelsOnIssue.Input.Query = .init(), + headers: Operations.IssuesListLabelsOnIssue.Input.Headers = .init() + ) async throws -> Operations.IssuesListLabelsOnIssue.Output { + try await issuesListLabelsOnIssue(Operations.IssuesListLabelsOnIssue.Input( path: path, query: query, headers: headers @@ -936,12 +936,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)`. - public func issues_sol_add_hyphen_labels( - path: Operations.issues_sol_add_hyphen_labels.Input.Path, - headers: Operations.issues_sol_add_hyphen_labels.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_labels.Input.Body? = nil - ) async throws -> Operations.issues_sol_add_hyphen_labels.Output { - try await issues_sol_add_hyphen_labels(Operations.issues_sol_add_hyphen_labels.Input( + public func issuesAddLabels( + path: Operations.IssuesAddLabels.Input.Path, + headers: Operations.IssuesAddLabels.Input.Headers = .init(), + body: Operations.IssuesAddLabels.Input.Body? = nil + ) async throws -> Operations.IssuesAddLabels.Output { + try await issuesAddLabels(Operations.IssuesAddLabels.Input( path: path, headers: headers, body: body @@ -953,12 +953,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)`. - public func issues_sol_set_hyphen_labels( - path: Operations.issues_sol_set_hyphen_labels.Input.Path, - headers: Operations.issues_sol_set_hyphen_labels.Input.Headers = .init(), - body: Operations.issues_sol_set_hyphen_labels.Input.Body? = nil - ) async throws -> Operations.issues_sol_set_hyphen_labels.Output { - try await issues_sol_set_hyphen_labels(Operations.issues_sol_set_hyphen_labels.Input( + public func issuesSetLabels( + path: Operations.IssuesSetLabels.Input.Path, + headers: Operations.IssuesSetLabels.Input.Headers = .init(), + body: Operations.IssuesSetLabels.Input.Body? = nil + ) async throws -> Operations.IssuesSetLabels.Output { + try await issuesSetLabels(Operations.IssuesSetLabels.Input( path: path, headers: headers, body: body @@ -970,11 +970,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)`. - public func issues_sol_remove_hyphen_all_hyphen_labels( - path: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Path, - headers: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Headers = .init() - ) async throws -> Operations.issues_sol_remove_hyphen_all_hyphen_labels.Output { - try await issues_sol_remove_hyphen_all_hyphen_labels(Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input( + public func issuesRemoveAllLabels( + path: Operations.IssuesRemoveAllLabels.Input.Path, + headers: Operations.IssuesRemoveAllLabels.Input.Headers = .init() + ) async throws -> Operations.IssuesRemoveAllLabels.Output { + try await issuesRemoveAllLabels(Operations.IssuesRemoveAllLabels.Input( path: path, headers: headers )) @@ -985,11 +985,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)`. - public func issues_sol_remove_hyphen_label( - path: Operations.issues_sol_remove_hyphen_label.Input.Path, - headers: Operations.issues_sol_remove_hyphen_label.Input.Headers = .init() - ) async throws -> Operations.issues_sol_remove_hyphen_label.Output { - try await issues_sol_remove_hyphen_label(Operations.issues_sol_remove_hyphen_label.Input( + public func issuesRemoveLabel( + path: Operations.IssuesRemoveLabel.Input.Path, + headers: Operations.IssuesRemoveLabel.Input.Headers = .init() + ) async throws -> Operations.IssuesRemoveLabel.Output { + try await issuesRemoveLabel(Operations.IssuesRemoveLabel.Input( path: path, headers: headers )) @@ -1002,12 +1002,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)`. - public func issues_sol_lock( - path: Operations.issues_sol_lock.Input.Path, - headers: Operations.issues_sol_lock.Input.Headers = .init(), - body: Operations.issues_sol_lock.Input.Body? = nil - ) async throws -> Operations.issues_sol_lock.Output { - try await issues_sol_lock(Operations.issues_sol_lock.Input( + public func issuesLock( + path: Operations.IssuesLock.Input.Path, + headers: Operations.IssuesLock.Input.Headers = .init(), + body: Operations.IssuesLock.Input.Body? = nil + ) async throws -> Operations.IssuesLock.Output { + try await issuesLock(Operations.IssuesLock.Input( path: path, headers: headers, body: body @@ -1019,11 +1019,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)`. - public func issues_sol_unlock( - path: Operations.issues_sol_unlock.Input.Path, - headers: Operations.issues_sol_unlock.Input.Headers = .init() - ) async throws -> Operations.issues_sol_unlock.Output { - try await issues_sol_unlock(Operations.issues_sol_unlock.Input( + public func issuesUnlock( + path: Operations.IssuesUnlock.Input.Path, + headers: Operations.IssuesUnlock.Input.Headers = .init() + ) async throws -> Operations.IssuesUnlock.Output { + try await issuesUnlock(Operations.IssuesUnlock.Input( path: path, headers: headers )) @@ -1042,12 +1042,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)`. - public func issues_sol_remove_hyphen_sub_hyphen_issue( - path: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Body - ) async throws -> Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output { - try await issues_sol_remove_hyphen_sub_hyphen_issue(Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input( + public func issuesRemoveSubIssue( + path: Operations.IssuesRemoveSubIssue.Input.Path, + headers: Operations.IssuesRemoveSubIssue.Input.Headers = .init(), + body: Operations.IssuesRemoveSubIssue.Input.Body + ) async throws -> Operations.IssuesRemoveSubIssue.Output { + try await issuesRemoveSubIssue(Operations.IssuesRemoveSubIssue.Input( path: path, headers: headers, body: body @@ -1066,12 +1066,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)`. - public func issues_sol_list_hyphen_sub_hyphen_issues( - path: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Path, - query: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output { - try await issues_sol_list_hyphen_sub_hyphen_issues(Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input( + public func issuesListSubIssues( + path: Operations.IssuesListSubIssues.Input.Path, + query: Operations.IssuesListSubIssues.Input.Query = .init(), + headers: Operations.IssuesListSubIssues.Input.Headers = .init() + ) async throws -> Operations.IssuesListSubIssues.Output { + try await issuesListSubIssues(Operations.IssuesListSubIssues.Input( path: path, query: query, headers: headers @@ -1094,12 +1094,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)`. - public func issues_sol_add_hyphen_sub_hyphen_issue( - path: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Body - ) async throws -> Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output { - try await issues_sol_add_hyphen_sub_hyphen_issue(Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input( + public func issuesAddSubIssue( + path: Operations.IssuesAddSubIssue.Input.Path, + headers: Operations.IssuesAddSubIssue.Input.Headers = .init(), + body: Operations.IssuesAddSubIssue.Input.Body + ) async throws -> Operations.IssuesAddSubIssue.Output { + try await issuesAddSubIssue(Operations.IssuesAddSubIssue.Input( path: path, headers: headers, body: body @@ -1111,12 +1111,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)`. - public func issues_sol_reprioritize_hyphen_sub_hyphen_issue( - path: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Body - ) async throws -> Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output { - try await issues_sol_reprioritize_hyphen_sub_hyphen_issue(Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input( + public func issuesReprioritizeSubIssue( + path: Operations.IssuesReprioritizeSubIssue.Input.Path, + headers: Operations.IssuesReprioritizeSubIssue.Input.Headers = .init(), + body: Operations.IssuesReprioritizeSubIssue.Input.Body + ) async throws -> Operations.IssuesReprioritizeSubIssue.Output { + try await issuesReprioritizeSubIssue(Operations.IssuesReprioritizeSubIssue.Input( path: path, headers: headers, body: body @@ -1128,12 +1128,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. - public func issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline( - path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Path, - query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output { - try await issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline(Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input( + public func issuesListEventsForTimeline( + path: Operations.IssuesListEventsForTimeline.Input.Path, + query: Operations.IssuesListEventsForTimeline.Input.Query = .init(), + headers: Operations.IssuesListEventsForTimeline.Input.Headers = .init() + ) async throws -> Operations.IssuesListEventsForTimeline.Output { + try await issuesListEventsForTimeline(Operations.IssuesListEventsForTimeline.Input( path: path, query: query, headers: headers @@ -1145,12 +1145,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)`. - public func issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo( - path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output { - try await issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo(Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input( + public func issuesListLabelsForRepo( + path: Operations.IssuesListLabelsForRepo.Input.Path, + query: Operations.IssuesListLabelsForRepo.Input.Query = .init(), + headers: Operations.IssuesListLabelsForRepo.Input.Headers = .init() + ) async throws -> Operations.IssuesListLabelsForRepo.Output { + try await issuesListLabelsForRepo(Operations.IssuesListLabelsForRepo.Input( path: path, query: query, headers: headers @@ -1162,12 +1162,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)`. - public func issues_sol_create_hyphen_label( - path: Operations.issues_sol_create_hyphen_label.Input.Path, - headers: Operations.issues_sol_create_hyphen_label.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_label.Input.Body - ) async throws -> Operations.issues_sol_create_hyphen_label.Output { - try await issues_sol_create_hyphen_label(Operations.issues_sol_create_hyphen_label.Input( + public func issuesCreateLabel( + path: Operations.IssuesCreateLabel.Input.Path, + headers: Operations.IssuesCreateLabel.Input.Headers = .init(), + body: Operations.IssuesCreateLabel.Input.Body + ) async throws -> Operations.IssuesCreateLabel.Output { + try await issuesCreateLabel(Operations.IssuesCreateLabel.Input( path: path, headers: headers, body: body @@ -1179,11 +1179,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)`. - public func issues_sol_get_hyphen_label( - path: Operations.issues_sol_get_hyphen_label.Input.Path, - headers: Operations.issues_sol_get_hyphen_label.Input.Headers = .init() - ) async throws -> Operations.issues_sol_get_hyphen_label.Output { - try await issues_sol_get_hyphen_label(Operations.issues_sol_get_hyphen_label.Input( + public func issuesGetLabel( + path: Operations.IssuesGetLabel.Input.Path, + headers: Operations.IssuesGetLabel.Input.Headers = .init() + ) async throws -> Operations.IssuesGetLabel.Output { + try await issuesGetLabel(Operations.IssuesGetLabel.Input( path: path, headers: headers )) @@ -1194,12 +1194,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/patch(issues/update-label)`. - public func issues_sol_update_hyphen_label( - path: Operations.issues_sol_update_hyphen_label.Input.Path, - headers: Operations.issues_sol_update_hyphen_label.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_label.Input.Body? = nil - ) async throws -> Operations.issues_sol_update_hyphen_label.Output { - try await issues_sol_update_hyphen_label(Operations.issues_sol_update_hyphen_label.Input( + public func issuesUpdateLabel( + path: Operations.IssuesUpdateLabel.Input.Path, + headers: Operations.IssuesUpdateLabel.Input.Headers = .init(), + body: Operations.IssuesUpdateLabel.Input.Body? = nil + ) async throws -> Operations.IssuesUpdateLabel.Output { + try await issuesUpdateLabel(Operations.IssuesUpdateLabel.Input( path: path, headers: headers, body: body @@ -1211,8 +1211,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)`. - public func issues_sol_delete_hyphen_label(path: Operations.issues_sol_delete_hyphen_label.Input.Path) async throws -> Operations.issues_sol_delete_hyphen_label.Output { - try await issues_sol_delete_hyphen_label(Operations.issues_sol_delete_hyphen_label.Input(path: path)) + public func issuesDeleteLabel(path: Operations.IssuesDeleteLabel.Input.Path) async throws -> Operations.IssuesDeleteLabel.Output { + try await issuesDeleteLabel(Operations.IssuesDeleteLabel.Input(path: path)) } /// List milestones /// @@ -1220,12 +1220,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)`. - public func issues_sol_list_hyphen_milestones( - path: Operations.issues_sol_list_hyphen_milestones.Input.Path, - query: Operations.issues_sol_list_hyphen_milestones.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_milestones.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_milestones.Output { - try await issues_sol_list_hyphen_milestones(Operations.issues_sol_list_hyphen_milestones.Input( + public func issuesListMilestones( + path: Operations.IssuesListMilestones.Input.Path, + query: Operations.IssuesListMilestones.Input.Query = .init(), + headers: Operations.IssuesListMilestones.Input.Headers = .init() + ) async throws -> Operations.IssuesListMilestones.Output { + try await issuesListMilestones(Operations.IssuesListMilestones.Input( path: path, query: query, headers: headers @@ -1237,12 +1237,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)`. - public func issues_sol_create_hyphen_milestone( - path: Operations.issues_sol_create_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_create_hyphen_milestone.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_milestone.Input.Body - ) async throws -> Operations.issues_sol_create_hyphen_milestone.Output { - try await issues_sol_create_hyphen_milestone(Operations.issues_sol_create_hyphen_milestone.Input( + public func issuesCreateMilestone( + path: Operations.IssuesCreateMilestone.Input.Path, + headers: Operations.IssuesCreateMilestone.Input.Headers = .init(), + body: Operations.IssuesCreateMilestone.Input.Body + ) async throws -> Operations.IssuesCreateMilestone.Output { + try await issuesCreateMilestone(Operations.IssuesCreateMilestone.Input( path: path, headers: headers, body: body @@ -1254,11 +1254,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)`. - public func issues_sol_get_hyphen_milestone( - path: Operations.issues_sol_get_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_get_hyphen_milestone.Input.Headers = .init() - ) async throws -> Operations.issues_sol_get_hyphen_milestone.Output { - try await issues_sol_get_hyphen_milestone(Operations.issues_sol_get_hyphen_milestone.Input( + public func issuesGetMilestone( + path: Operations.IssuesGetMilestone.Input.Path, + headers: Operations.IssuesGetMilestone.Input.Headers = .init() + ) async throws -> Operations.IssuesGetMilestone.Output { + try await issuesGetMilestone(Operations.IssuesGetMilestone.Input( path: path, headers: headers )) @@ -1269,12 +1269,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/patch(issues/update-milestone)`. - public func issues_sol_update_hyphen_milestone( - path: Operations.issues_sol_update_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_update_hyphen_milestone.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_milestone.Input.Body? = nil - ) async throws -> Operations.issues_sol_update_hyphen_milestone.Output { - try await issues_sol_update_hyphen_milestone(Operations.issues_sol_update_hyphen_milestone.Input( + public func issuesUpdateMilestone( + path: Operations.IssuesUpdateMilestone.Input.Path, + headers: Operations.IssuesUpdateMilestone.Input.Headers = .init(), + body: Operations.IssuesUpdateMilestone.Input.Body? = nil + ) async throws -> Operations.IssuesUpdateMilestone.Output { + try await issuesUpdateMilestone(Operations.IssuesUpdateMilestone.Input( path: path, headers: headers, body: body @@ -1286,11 +1286,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)`. - public func issues_sol_delete_hyphen_milestone( - path: Operations.issues_sol_delete_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_delete_hyphen_milestone.Input.Headers = .init() - ) async throws -> Operations.issues_sol_delete_hyphen_milestone.Output { - try await issues_sol_delete_hyphen_milestone(Operations.issues_sol_delete_hyphen_milestone.Input( + public func issuesDeleteMilestone( + path: Operations.IssuesDeleteMilestone.Input.Path, + headers: Operations.IssuesDeleteMilestone.Input.Headers = .init() + ) async throws -> Operations.IssuesDeleteMilestone.Output { + try await issuesDeleteMilestone(Operations.IssuesDeleteMilestone.Input( path: path, headers: headers )) @@ -1301,12 +1301,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/labels/get(issues/list-labels-for-milestone)`. - public func issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone( - path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output { - try await issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone(Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input( + public func issuesListLabelsForMilestone( + path: Operations.IssuesListLabelsForMilestone.Input.Path, + query: Operations.IssuesListLabelsForMilestone.Input.Query = .init(), + headers: Operations.IssuesListLabelsForMilestone.Input.Headers = .init() + ) async throws -> Operations.IssuesListLabelsForMilestone.Output { + try await issuesListLabelsForMilestone(Operations.IssuesListLabelsForMilestone.Input( path: path, query: query, headers: headers @@ -1328,11 +1328,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/issues`. /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)`. - public func issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func issuesListForAuthenticatedUser( + query: Operations.IssuesListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.IssuesListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.IssuesListForAuthenticatedUser.Output { + try await issuesListForAuthenticatedUser(Operations.IssuesListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -1341,6 +1341,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -1356,7 +1365,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -1366,171 +1375,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1538,54 +1547,54 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -1595,64 +1604,64 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/integration`. - public struct integration: Codable, Hashable, Sendable { + public struct Integration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/id`. @@ -1662,25 +1671,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -1693,15 +1702,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/integration/owner`. - public var owner: Components.Schemas.integration.ownerPayload + public var owner: Components.Schemas.Integration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/name`. @@ -1709,17 +1718,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/permissions/checks`. @@ -1732,7 +1741,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -1765,23 +1774,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -1796,23 +1805,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -1821,7 +1830,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public var permissions: Components.Schemas.integration.permissionsPayload + public var permissions: Components.Schemas.Integration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/events`. @@ -1829,98 +1838,98 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/pem`. public var pem: Swift.String? - /// Creates a new `integration`. + /// Creates a new `Integration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.Integration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -1929,25 +1938,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -1955,7 +1964,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -1965,30 +1974,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -2027,9 +2036,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -2044,7 +2053,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -2063,34 +2072,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -2100,142 +2109,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -2243,66 +2252,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -2313,7 +2322,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2343,15 +2352,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -2359,97 +2368,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -2457,38 +2466,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -2502,47 +2511,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -2550,7 +2559,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -2558,10 +2567,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -2570,16 +2579,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -2587,7 +2596,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -2595,10 +2604,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -2607,434 +2616,434 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct nullable_hyphen_milestone: Codable, Hashable, Sendable { + public struct NullableMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. @@ -3042,14 +3051,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.nullable_hyphen_milestone.statePayload + public var state: Components.Schemas.NullableMilestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. @@ -3057,96 +3066,96 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `nullable_hyphen_milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `NullableMilestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.nullable_hyphen_milestone.statePayload, + state: Components.Schemas.NullableMilestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } /// The type of issue. /// /// - Remark: Generated from `#/components/schemas/issue-type`. - public struct issue_hyphen_type: Codable, Hashable, Sendable { + public struct IssueType: Codable, Hashable, Sendable { /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/id`. @@ -3154,7 +3163,7 @@ public enum Components { /// The node identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/name`. @@ -3166,7 +3175,7 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -3179,64 +3188,64 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - public var color: Components.Schemas.issue_hyphen_type.colorPayload? + public var color: Components.Schemas.IssueType.ColorPayload? /// The time the issue type created. /// /// - Remark: Generated from `#/components/schemas/issue-type/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The time the issue type last updated. /// /// - Remark: Generated from `#/components/schemas/issue-type/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The enabled state of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/is_enabled`. - public var is_enabled: Swift.Bool? - /// Creates a new `issue_hyphen_type`. + public var isEnabled: Swift.Bool? + /// Creates a new `IssueType`. /// /// - Parameters: /// - id: The unique identifier of the issue type. - /// - node_id: The node identifier of the issue type. + /// - nodeId: The node identifier of the issue type. /// - name: The name of the issue type. /// - description: The description of the issue type. /// - color: The color of the issue type. - /// - created_at: The time the issue type created. - /// - updated_at: The time the issue type last updated. - /// - is_enabled: The enabled state of the issue type. + /// - createdAt: The time the issue type created. + /// - updatedAt: The time the issue type last updated. + /// - isEnabled: The enabled state of the issue type. public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, description: Swift.String? = nil, - color: Components.Schemas.issue_hyphen_type.colorPayload? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - is_enabled: Swift.Bool? = nil + color: Components.Schemas.IssueType.ColorPayload? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + isEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.description = description self.color = color - self.created_at = created_at - self.updated_at = updated_at - self.is_enabled = is_enabled + self.createdAt = createdAt + self.updatedAt = updatedAt + self.isEnabled = isEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case description case color - case created_at - case updated_at - case is_enabled + case createdAt = "created_at" + case updatedAt = "updated_at" + case isEnabled = "is_enabled" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -3246,25 +3255,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -3277,15 +3286,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -3293,17 +3302,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -3316,7 +3325,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -3349,23 +3358,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -3380,23 +3389,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -3405,7 +3414,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -3413,109 +3422,109 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -3532,11 +3541,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -3547,7 +3556,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -3558,7 +3567,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -3570,7 +3579,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -3582,56 +3591,56 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/sub-issues-summary`. - public struct sub_hyphen_issues_hyphen_summary: Codable, Hashable, Sendable { + public struct SubIssuesSummary: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/sub-issues-summary/total`. public var total: Swift.Int /// - Remark: Generated from `#/components/schemas/sub-issues-summary/completed`. public var completed: Swift.Int /// - Remark: Generated from `#/components/schemas/sub-issues-summary/percent_completed`. - public var percent_completed: Swift.Int - /// Creates a new `sub_hyphen_issues_hyphen_summary`. + public var percentCompleted: Swift.Int + /// Creates a new `SubIssuesSummary`. /// /// - Parameters: /// - total: /// - completed: - /// - percent_completed: + /// - percentCompleted: public init( total: Swift.Int, completed: Swift.Int, - percent_completed: Swift.Int + percentCompleted: Swift.Int ) { self.total = total self.completed = completed - self.percent_completed = percent_completed + self.percentCompleted = percentCompleted } public enum CodingKeys: String, CodingKey { case total case completed - case percent_completed + case percentCompleted = "percent_completed" } } /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// /// - Remark: Generated from `#/components/schemas/issue`. - public struct issue: Codable, Hashable, Sendable { + public struct Issue: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue /// /// - Remark: Generated from `#/components/schemas/issue/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/issue/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// Number uniquely identifying the issue within its repository /// /// - Remark: Generated from `#/components/schemas/issue/number`. @@ -3643,15 +3652,15 @@ public enum Components { /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - @frozen public enum state_reasonPayload: String, Codable, Hashable, Sendable { + @frozen public enum StateReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" case reopened = "reopened" - case not_planned = "not_planned" + case notPlanned = "not_planned" } /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/issue/state_reason`. - public var state_reason: Components.Schemas.issue.state_reasonPayload? + public var stateReason: Components.Schemas.Issue.StateReasonPayload? /// Title of the issue /// /// - Remark: Generated from `#/components/schemas/issue/title`. @@ -3661,32 +3670,32 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload`. - @frozen public enum labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case1`. + public var user: Components.Schemas.NullableSimpleUser? + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload`. + @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case1`. case case1(Swift.String) - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/id`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/url`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/name`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/description`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/color`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/color`. public var color: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2/default`. + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2/default`. public var _default: Swift.Bool? /// Creates a new `Case2Payload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -3694,7 +3703,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, name: Swift.String? = nil, description: Swift.String? = nil, @@ -3702,7 +3711,7 @@ public enum Components { _default: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -3711,7 +3720,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -3719,8 +3728,8 @@ public enum Components { case _default = "default" } } - /// - Remark: Generated from `#/components/schemas/issue/labelsPayload/case2`. - case case2(Components.Schemas.issue.labelsPayloadPayload.Case2Payload) + /// - Remark: Generated from `#/components/schemas/issue/LabelsPayload/case2`. + case case2(Components.Schemas.Issue.LabelsPayloadPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -3753,108 +3762,108 @@ public enum Components { /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/issue/labels`. - public typealias labelsPayload = [Components.Schemas.issue.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.Issue.LabelsPayloadPayload] /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/issue/labels`. - public var labels: Components.Schemas.issue.labelsPayload + public var labels: Components.Schemas.Issue.LabelsPayload /// - Remark: Generated from `#/components/schemas/issue/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/issue/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/issue/locked`. public var locked: Swift.Bool /// - Remark: Generated from `#/components/schemas/issue/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue/pull_request/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue/pull_request/diff_url`. - public var diff_url: Swift.String? + public var diffUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/patch_url`. - public var patch_url: Swift.String? + public var patchUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/pull_request/url`. public var url: Swift.String? - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: - /// - merged_at: - /// - diff_url: - /// - html_url: - /// - patch_url: + /// - mergedAt: + /// - diffUrl: + /// - htmlUrl: + /// - patchUrl: /// - url: public init( - merged_at: Foundation.Date? = nil, - diff_url: Swift.String? = nil, - html_url: Swift.String? = nil, - patch_url: Swift.String? = nil, + mergedAt: Foundation.Date? = nil, + diffUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + patchUrl: Swift.String? = nil, url: Swift.String? = nil ) { - self.merged_at = merged_at - self.diff_url = diff_url - self.html_url = html_url - self.patch_url = patch_url + self.mergedAt = mergedAt + self.diffUrl = diffUrl + self.htmlUrl = htmlUrl + self.patchUrl = patchUrl self.url = url } public enum CodingKeys: String, CodingKey { - case merged_at - case diff_url - case html_url - case patch_url + case mergedAt = "merged_at" + case diffUrl = "diff_url" + case htmlUrl = "html_url" + case patchUrl = "patch_url" case url } } /// - Remark: Generated from `#/components/schemas/issue/pull_request`. - public var pull_request: Components.Schemas.issue.pull_requestPayload? + public var pullRequest: Components.Schemas.Issue.PullRequestPayload? /// - Remark: Generated from `#/components/schemas/issue/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue/draft`. public var draft: Swift.Bool? /// - Remark: Generated from `#/components/schemas/issue/closed_by`. - public var closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var closedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/timeline_url`. - public var timeline_url: Swift.String? + public var timelineUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue/type`. - public var _type: Components.Schemas.issue_hyphen_type? + public var _type: Components.Schemas.IssueType? /// - Remark: Generated from `#/components/schemas/issue/repository`. - public var repository: Components.Schemas.repository? + public var repository: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/issue/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/issue/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// - Remark: Generated from `#/components/schemas/issue/sub_issues_summary`. - public var sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? - /// Creates a new `issue`. + public var subIssuesSummary: Components.Schemas.SubIssuesSummary? + /// Creates a new `Issue`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: URL for the issue - /// - repository_url: - /// - labels_url: - /// - comments_url: - /// - events_url: - /// - html_url: + /// - repositoryUrl: + /// - labelsUrl: + /// - commentsUrl: + /// - eventsUrl: + /// - htmlUrl: /// - number: Number uniquely identifying the issue within its repository /// - state: State of the issue; either 'open' or 'closed' - /// - state_reason: The reason for the current state + /// - stateReason: The reason for the current state /// - title: Title of the issue /// - body: Contents of the issue /// - user: @@ -3863,72 +3872,72 @@ public enum Components { /// - assignees: /// - milestone: /// - locked: - /// - active_lock_reason: + /// - activeLockReason: /// - comments: - /// - pull_request: - /// - closed_at: - /// - created_at: - /// - updated_at: + /// - pullRequest: + /// - closedAt: + /// - createdAt: + /// - updatedAt: /// - draft: - /// - closed_by: - /// - body_html: - /// - body_text: - /// - timeline_url: + /// - closedBy: + /// - bodyHtml: + /// - bodyText: + /// - timelineUrl: /// - _type: /// - repository: - /// - performed_via_github_app: - /// - author_association: + /// - performedViaGithubApp: + /// - authorAssociation: /// - reactions: - /// - sub_issues_summary: + /// - subIssuesSummary: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repository_url: Swift.String, - labels_url: Swift.String, - comments_url: Swift.String, - events_url: Swift.String, - html_url: Swift.String, + repositoryUrl: Swift.String, + labelsUrl: Swift.String, + commentsUrl: Swift.String, + eventsUrl: Swift.String, + htmlUrl: Swift.String, number: Swift.Int, state: Swift.String, - state_reason: Components.Schemas.issue.state_reasonPayload? = nil, + stateReason: Components.Schemas.Issue.StateReasonPayload? = nil, title: Swift.String, body: Swift.String? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - labels: Components.Schemas.issue.labelsPayload, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + labels: Components.Schemas.Issue.LabelsPayload, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + milestone: Components.Schemas.NullableMilestone? = nil, locked: Swift.Bool, - active_lock_reason: Swift.String? = nil, + activeLockReason: Swift.String? = nil, comments: Swift.Int, - pull_request: Components.Schemas.issue.pull_requestPayload? = nil, - closed_at: Foundation.Date? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, + pullRequest: Components.Schemas.Issue.PullRequestPayload? = nil, + closedAt: Foundation.Date? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, draft: Swift.Bool? = nil, - closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - timeline_url: Swift.String? = nil, - _type: Components.Schemas.issue_hyphen_type? = nil, - repository: Components.Schemas.repository? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - author_association: Components.Schemas.author_hyphen_association, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? = nil + closedBy: Components.Schemas.NullableSimpleUser? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + timelineUrl: Swift.String? = nil, + _type: Components.Schemas.IssueType? = nil, + repository: Components.Schemas.Repository? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + authorAssociation: Components.Schemas.AuthorAssociation, + reactions: Components.Schemas.ReactionRollup? = nil, + subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repository_url = repository_url - self.labels_url = labels_url - self.comments_url = comments_url - self.events_url = events_url - self.html_url = html_url + self.repositoryUrl = repositoryUrl + self.labelsUrl = labelsUrl + self.commentsUrl = commentsUrl + self.eventsUrl = eventsUrl + self.htmlUrl = htmlUrl self.number = number self.state = state - self.state_reason = state_reason + self.stateReason = stateReason self.title = title self.body = body self.user = user @@ -3937,36 +3946,36 @@ public enum Components { self.assignees = assignees self.milestone = milestone self.locked = locked - self.active_lock_reason = active_lock_reason + self.activeLockReason = activeLockReason self.comments = comments - self.pull_request = pull_request - self.closed_at = closed_at - self.created_at = created_at - self.updated_at = updated_at + self.pullRequest = pullRequest + self.closedAt = closedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.draft = draft - self.closed_by = closed_by - self.body_html = body_html - self.body_text = body_text - self.timeline_url = timeline_url + self.closedBy = closedBy + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.timelineUrl = timelineUrl self._type = _type self.repository = repository - self.performed_via_github_app = performed_via_github_app - self.author_association = author_association + self.performedViaGithubApp = performedViaGithubApp + self.authorAssociation = authorAssociation self.reactions = reactions - self.sub_issues_summary = sub_issues_summary + self.subIssuesSummary = subIssuesSummary } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case repository_url - case labels_url - case comments_url - case events_url - case html_url + case repositoryUrl = "repository_url" + case labelsUrl = "labels_url" + case commentsUrl = "comments_url" + case eventsUrl = "events_url" + case htmlUrl = "html_url" case number case state - case state_reason + case stateReason = "state_reason" case title case body case user @@ -3975,35 +3984,35 @@ public enum Components { case assignees case milestone case locked - case active_lock_reason + case activeLockReason = "active_lock_reason" case comments - case pull_request - case closed_at - case created_at - case updated_at + case pullRequest = "pull_request" + case closedAt = "closed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case draft - case closed_by - case body_html - case body_text - case timeline_url + case closedBy = "closed_by" + case bodyHtml = "body_html" + case bodyText = "body_text" + case timelineUrl = "timeline_url" case _type = "type" case repository - case performed_via_github_app - case author_association + case performedViaGithubApp = "performed_via_github_app" + case authorAssociation = "author_association" case reactions - case sub_issues_summary + case subIssuesSummary = "sub_issues_summary" } } /// Comments provide a way for people to collaborate on an issue. /// /// - Remark: Generated from `#/components/schemas/issue-comment`. - public struct issue_hyphen_comment: Codable, Hashable, Sendable { + public struct IssueComment: Codable, Hashable, Sendable { /// Unique identifier of the issue comment /// /// - Remark: Generated from `#/components/schemas/issue-comment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue comment /// /// - Remark: Generated from `#/components/schemas/issue-comment/url`. @@ -4013,106 +4022,106 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue-comment/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-comment/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/issue-comment/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `issue_hyphen_comment`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `IssueComment`. /// /// - Parameters: /// - id: Unique identifier of the issue comment - /// - node_id: + /// - nodeId: /// - url: URL for the issue comment /// - body: Contents of the issue comment - /// - body_text: - /// - body_html: - /// - html_url: + /// - bodyText: + /// - bodyHtml: + /// - htmlUrl: /// - user: - /// - created_at: - /// - updated_at: - /// - issue_url: - /// - author_association: - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - issueUrl: + /// - authorAssociation: + /// - performedViaGithubApp: /// - reactions: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, body: Swift.String? = nil, - body_text: Swift.String? = nil, - body_html: Swift.String? = nil, - html_url: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - issue_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + bodyText: Swift.String? = nil, + bodyHtml: Swift.String? = nil, + htmlUrl: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + issueUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reactions: Components.Schemas.ReactionRollup? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.body = body - self.body_text = body_text - self.body_html = body_html - self.html_url = html_url + self.bodyText = bodyText + self.bodyHtml = bodyHtml + self.htmlUrl = htmlUrl self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.issue_url = issue_url - self.author_association = author_association - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.issueUrl = issueUrl + self.authorAssociation = authorAssociation + self.performedViaGithubApp = performedViaGithubApp self.reactions = reactions } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case body - case body_text - case body_html - case html_url + case bodyText = "body_text" + case bodyHtml = "body_html" + case htmlUrl = "html_url" case user - case created_at - case updated_at - case issue_url - case author_association - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case issueUrl = "issue_url" + case authorAssociation = "author_association" + case performedViaGithubApp = "performed_via_github_app" case reactions } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -4132,86 +4141,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -4221,11 +4230,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -4236,7 +4245,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -4266,94 +4275,94 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Commit Comment /// /// - Remark: Generated from `#/components/schemas/commit-comment`. - public struct commit_hyphen_comment: Codable, Hashable, Sendable { + public struct CommitComment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/path`. @@ -4363,104 +4372,104 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/commit-comment/line`. public var line: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit-comment/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/commit-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/commit-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/commit-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/commit-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `commit_hyphen_comment`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `CommitComment`. /// /// - Parameters: - /// - html_url: + /// - htmlUrl: /// - url: /// - id: - /// - node_id: + /// - nodeId: /// - body: /// - path: /// - position: /// - line: - /// - commit_id: + /// - commitId: /// - user: - /// - created_at: - /// - updated_at: - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - authorAssociation: /// - reactions: public init( - html_url: Swift.String, + htmlUrl: Swift.String, url: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, body: Swift.String, path: Swift.String? = nil, position: Swift.Int? = nil, line: Swift.Int? = nil, - commit_id: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - author_association: Components.Schemas.author_hyphen_association, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + commitId: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + authorAssociation: Components.Schemas.AuthorAssociation, + reactions: Components.Schemas.ReactionRollup? = nil ) { - self.html_url = html_url + self.htmlUrl = htmlUrl self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.body = body self.path = path self.position = position self.line = line - self.commit_id = commit_id + self.commitId = commitId self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.authorAssociation = authorAssociation self.reactions = reactions } public enum CodingKeys: String, CodingKey { - case html_url + case htmlUrl = "html_url" case url case id - case node_id + case nodeId = "node_id" case body case path case position case line - case commit_id + case commitId = "commit_id" case user - case created_at - case updated_at - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case authorAssociation = "author_association" case reactions } } /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// /// - Remark: Generated from `#/components/schemas/nullable-issue`. - public struct nullable_hyphen_issue: Codable, Hashable, Sendable { + public struct NullableIssue: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-issue/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-issue/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue /// /// - Remark: Generated from `#/components/schemas/nullable-issue/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-issue/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-issue/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-issue/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-issue/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-issue/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// Number uniquely identifying the issue within its repository /// /// - Remark: Generated from `#/components/schemas/nullable-issue/number`. @@ -4472,15 +4481,15 @@ public enum Components { /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/nullable-issue/state_reason`. - @frozen public enum state_reasonPayload: String, Codable, Hashable, Sendable { + @frozen public enum StateReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" case reopened = "reopened" - case not_planned = "not_planned" + case notPlanned = "not_planned" } /// The reason for the current state /// /// - Remark: Generated from `#/components/schemas/nullable-issue/state_reason`. - public var state_reason: Components.Schemas.nullable_hyphen_issue.state_reasonPayload? + public var stateReason: Components.Schemas.NullableIssue.StateReasonPayload? /// Title of the issue /// /// - Remark: Generated from `#/components/schemas/nullable-issue/title`. @@ -4490,32 +4499,32 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-issue/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload`. - @frozen public enum labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case1`. + public var user: Components.Schemas.NullableSimpleUser? + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload`. + @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case1`. case case1(Swift.String) - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2`. public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/id`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/url`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/name`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/description`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/color`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/color`. public var color: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2/default`. + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2/default`. public var _default: Swift.Bool? /// Creates a new `Case2Payload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -4523,7 +4532,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, name: Swift.String? = nil, description: Swift.String? = nil, @@ -4531,7 +4540,7 @@ public enum Components { _default: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -4540,7 +4549,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -4548,8 +4557,8 @@ public enum Components { case _default = "default" } } - /// - Remark: Generated from `#/components/schemas/nullable-issue/labelsPayload/case2`. - case case2(Components.Schemas.nullable_hyphen_issue.labelsPayloadPayload.Case2Payload) + /// - Remark: Generated from `#/components/schemas/nullable-issue/LabelsPayload/case2`. + case case2(Components.Schemas.NullableIssue.LabelsPayloadPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -4582,108 +4591,108 @@ public enum Components { /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/nullable-issue/labels`. - public typealias labelsPayload = [Components.Schemas.nullable_hyphen_issue.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.NullableIssue.LabelsPayloadPayload] /// Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository /// /// - Remark: Generated from `#/components/schemas/nullable-issue/labels`. - public var labels: Components.Schemas.nullable_hyphen_issue.labelsPayload + public var labels: Components.Schemas.NullableIssue.LabelsPayload /// - Remark: Generated from `#/components/schemas/nullable-issue/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-issue/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/nullable-issue/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/nullable-issue/locked`. public var locked: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-issue/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request/diff_url`. - public var diff_url: Swift.String? + public var diffUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request/patch_url`. - public var patch_url: Swift.String? + public var patchUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request/url`. public var url: Swift.String? - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: - /// - merged_at: - /// - diff_url: - /// - html_url: - /// - patch_url: + /// - mergedAt: + /// - diffUrl: + /// - htmlUrl: + /// - patchUrl: /// - url: public init( - merged_at: Foundation.Date? = nil, - diff_url: Swift.String? = nil, - html_url: Swift.String? = nil, - patch_url: Swift.String? = nil, + mergedAt: Foundation.Date? = nil, + diffUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + patchUrl: Swift.String? = nil, url: Swift.String? = nil ) { - self.merged_at = merged_at - self.diff_url = diff_url - self.html_url = html_url - self.patch_url = patch_url + self.mergedAt = mergedAt + self.diffUrl = diffUrl + self.htmlUrl = htmlUrl + self.patchUrl = patchUrl self.url = url } public enum CodingKeys: String, CodingKey { - case merged_at - case diff_url - case html_url - case patch_url + case mergedAt = "merged_at" + case diffUrl = "diff_url" + case htmlUrl = "html_url" + case patchUrl = "patch_url" case url } } /// - Remark: Generated from `#/components/schemas/nullable-issue/pull_request`. - public var pull_request: Components.Schemas.nullable_hyphen_issue.pull_requestPayload? + public var pullRequest: Components.Schemas.NullableIssue.PullRequestPayload? /// - Remark: Generated from `#/components/schemas/nullable-issue/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-issue/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-issue/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-issue/draft`. public var draft: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-issue/closed_by`. - public var closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var closedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-issue/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/timeline_url`. - public var timeline_url: Swift.String? + public var timelineUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-issue/type`. - public var _type: Components.Schemas.issue_hyphen_type? + public var _type: Components.Schemas.IssueType? /// - Remark: Generated from `#/components/schemas/nullable-issue/repository`. - public var repository: Components.Schemas.repository? + public var repository: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/nullable-issue/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/nullable-issue/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/nullable-issue/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// - Remark: Generated from `#/components/schemas/nullable-issue/sub_issues_summary`. - public var sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? - /// Creates a new `nullable_hyphen_issue`. + public var subIssuesSummary: Components.Schemas.SubIssuesSummary? + /// Creates a new `NullableIssue`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: URL for the issue - /// - repository_url: - /// - labels_url: - /// - comments_url: - /// - events_url: - /// - html_url: + /// - repositoryUrl: + /// - labelsUrl: + /// - commentsUrl: + /// - eventsUrl: + /// - htmlUrl: /// - number: Number uniquely identifying the issue within its repository /// - state: State of the issue; either 'open' or 'closed' - /// - state_reason: The reason for the current state + /// - stateReason: The reason for the current state /// - title: Title of the issue /// - body: Contents of the issue /// - user: @@ -4692,72 +4701,72 @@ public enum Components { /// - assignees: /// - milestone: /// - locked: - /// - active_lock_reason: + /// - activeLockReason: /// - comments: - /// - pull_request: - /// - closed_at: - /// - created_at: - /// - updated_at: + /// - pullRequest: + /// - closedAt: + /// - createdAt: + /// - updatedAt: /// - draft: - /// - closed_by: - /// - body_html: - /// - body_text: - /// - timeline_url: + /// - closedBy: + /// - bodyHtml: + /// - bodyText: + /// - timelineUrl: /// - _type: /// - repository: - /// - performed_via_github_app: - /// - author_association: + /// - performedViaGithubApp: + /// - authorAssociation: /// - reactions: - /// - sub_issues_summary: + /// - subIssuesSummary: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repository_url: Swift.String, - labels_url: Swift.String, - comments_url: Swift.String, - events_url: Swift.String, - html_url: Swift.String, + repositoryUrl: Swift.String, + labelsUrl: Swift.String, + commentsUrl: Swift.String, + eventsUrl: Swift.String, + htmlUrl: Swift.String, number: Swift.Int, state: Swift.String, - state_reason: Components.Schemas.nullable_hyphen_issue.state_reasonPayload? = nil, + stateReason: Components.Schemas.NullableIssue.StateReasonPayload? = nil, title: Swift.String, body: Swift.String? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - labels: Components.Schemas.nullable_hyphen_issue.labelsPayload, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + labels: Components.Schemas.NullableIssue.LabelsPayload, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + milestone: Components.Schemas.NullableMilestone? = nil, locked: Swift.Bool, - active_lock_reason: Swift.String? = nil, + activeLockReason: Swift.String? = nil, comments: Swift.Int, - pull_request: Components.Schemas.nullable_hyphen_issue.pull_requestPayload? = nil, - closed_at: Foundation.Date? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, + pullRequest: Components.Schemas.NullableIssue.PullRequestPayload? = nil, + closedAt: Foundation.Date? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, draft: Swift.Bool? = nil, - closed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - timeline_url: Swift.String? = nil, - _type: Components.Schemas.issue_hyphen_type? = nil, - repository: Components.Schemas.repository? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - author_association: Components.Schemas.author_hyphen_association, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - sub_issues_summary: Components.Schemas.sub_hyphen_issues_hyphen_summary? = nil + closedBy: Components.Schemas.NullableSimpleUser? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + timelineUrl: Swift.String? = nil, + _type: Components.Schemas.IssueType? = nil, + repository: Components.Schemas.Repository? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + authorAssociation: Components.Schemas.AuthorAssociation, + reactions: Components.Schemas.ReactionRollup? = nil, + subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repository_url = repository_url - self.labels_url = labels_url - self.comments_url = comments_url - self.events_url = events_url - self.html_url = html_url + self.repositoryUrl = repositoryUrl + self.labelsUrl = labelsUrl + self.commentsUrl = commentsUrl + self.eventsUrl = eventsUrl + self.htmlUrl = htmlUrl self.number = number self.state = state - self.state_reason = state_reason + self.stateReason = stateReason self.title = title self.body = body self.user = user @@ -4766,36 +4775,36 @@ public enum Components { self.assignees = assignees self.milestone = milestone self.locked = locked - self.active_lock_reason = active_lock_reason + self.activeLockReason = activeLockReason self.comments = comments - self.pull_request = pull_request - self.closed_at = closed_at - self.created_at = created_at - self.updated_at = updated_at + self.pullRequest = pullRequest + self.closedAt = closedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.draft = draft - self.closed_by = closed_by - self.body_html = body_html - self.body_text = body_text - self.timeline_url = timeline_url + self.closedBy = closedBy + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.timelineUrl = timelineUrl self._type = _type self.repository = repository - self.performed_via_github_app = performed_via_github_app - self.author_association = author_association + self.performedViaGithubApp = performedViaGithubApp + self.authorAssociation = authorAssociation self.reactions = reactions - self.sub_issues_summary = sub_issues_summary + self.subIssuesSummary = subIssuesSummary } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case repository_url - case labels_url - case comments_url - case events_url - case html_url + case repositoryUrl = "repository_url" + case labelsUrl = "labels_url" + case commentsUrl = "comments_url" + case eventsUrl = "events_url" + case htmlUrl = "html_url" case number case state - case state_reason + case stateReason = "state_reason" case title case body case user @@ -4804,34 +4813,34 @@ public enum Components { case assignees case milestone case locked - case active_lock_reason + case activeLockReason = "active_lock_reason" case comments - case pull_request - case closed_at - case created_at - case updated_at + case pullRequest = "pull_request" + case closedAt = "closed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case draft - case closed_by - case body_html - case body_text - case timeline_url + case closedBy = "closed_by" + case bodyHtml = "body_html" + case bodyText = "body_text" + case timelineUrl = "timeline_url" case _type = "type" case repository - case performed_via_github_app - case author_association + case performedViaGithubApp = "performed_via_github_app" + case authorAssociation = "author_association" case reactions - case sub_issues_summary + case subIssuesSummary = "sub_issues_summary" } } /// Issue Event Label /// /// - Remark: Generated from `#/components/schemas/issue-event-label`. - public struct issue_hyphen_event_hyphen_label: Codable, Hashable, Sendable { + public struct IssueEventLabel: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-label/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-event-label/color`. public var color: Swift.String? - /// Creates a new `issue_hyphen_event_hyphen_label`. + /// Creates a new `IssueEventLabel`. /// /// - Parameters: /// - name: @@ -4849,47 +4858,47 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/issue-event-dismissed-review`. - public struct issue_hyphen_event_hyphen_dismissed_hyphen_review: Codable, Hashable, Sendable { + public struct IssueEventDismissedReview: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-dismissed-review/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event-dismissed-review/review_id`. - public var review_id: Swift.Int + public var reviewId: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-event-dismissed-review/dismissal_message`. - public var dismissal_message: Swift.String? + public var dismissalMessage: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-event-dismissed-review/dismissal_commit_id`. - public var dismissal_commit_id: Swift.String? - /// Creates a new `issue_hyphen_event_hyphen_dismissed_hyphen_review`. + public var dismissalCommitId: Swift.String? + /// Creates a new `IssueEventDismissedReview`. /// /// - Parameters: /// - state: - /// - review_id: - /// - dismissal_message: - /// - dismissal_commit_id: + /// - reviewId: + /// - dismissalMessage: + /// - dismissalCommitId: public init( state: Swift.String, - review_id: Swift.Int, - dismissal_message: Swift.String? = nil, - dismissal_commit_id: Swift.String? = nil + reviewId: Swift.Int, + dismissalMessage: Swift.String? = nil, + dismissalCommitId: Swift.String? = nil ) { self.state = state - self.review_id = review_id - self.dismissal_message = dismissal_message - self.dismissal_commit_id = dismissal_commit_id + self.reviewId = reviewId + self.dismissalMessage = dismissalMessage + self.dismissalCommitId = dismissalCommitId } public enum CodingKeys: String, CodingKey { case state - case review_id - case dismissal_message - case dismissal_commit_id + case reviewId = "review_id" + case dismissalMessage = "dismissal_message" + case dismissalCommitId = "dismissal_commit_id" } } /// Issue Event Milestone /// /// - Remark: Generated from `#/components/schemas/issue-event-milestone`. - public struct issue_hyphen_event_hyphen_milestone: Codable, Hashable, Sendable { + public struct IssueEventMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-milestone/title`. public var title: Swift.String - /// Creates a new `issue_hyphen_event_hyphen_milestone`. + /// Creates a new `IssueEventMilestone`. /// /// - Parameters: /// - title: @@ -4903,61 +4912,61 @@ public enum Components { /// Issue Event Project Card /// /// - Remark: Generated from `#/components/schemas/issue-event-project-card`. - public struct issue_hyphen_event_hyphen_project_hyphen_card: Codable, Hashable, Sendable { + public struct IssueEventProjectCard: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-project-card/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event-project-card/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-event-project-card/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event-project-card/project_id`. - public var project_id: Swift.Int + public var projectId: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-event-project-card/column_name`. - public var column_name: Swift.String + public var columnName: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event-project-card/previous_column_name`. - public var previous_column_name: Swift.String? - /// Creates a new `issue_hyphen_event_hyphen_project_hyphen_card`. + public var previousColumnName: Swift.String? + /// Creates a new `IssueEventProjectCard`. /// /// - Parameters: /// - url: /// - id: - /// - project_url: - /// - project_id: - /// - column_name: - /// - previous_column_name: + /// - projectUrl: + /// - projectId: + /// - columnName: + /// - previousColumnName: public init( url: Swift.String, id: Swift.Int, - project_url: Swift.String, - project_id: Swift.Int, - column_name: Swift.String, - previous_column_name: Swift.String? = nil + projectUrl: Swift.String, + projectId: Swift.Int, + columnName: Swift.String, + previousColumnName: Swift.String? = nil ) { self.url = url self.id = id - self.project_url = project_url - self.project_id = project_id - self.column_name = column_name - self.previous_column_name = previous_column_name + self.projectUrl = projectUrl + self.projectId = projectId + self.columnName = columnName + self.previousColumnName = previousColumnName } public enum CodingKeys: String, CodingKey { case url case id - case project_url - case project_id - case column_name - case previous_column_name + case projectUrl = "project_url" + case projectId = "project_id" + case columnName = "column_name" + case previousColumnName = "previous_column_name" } } /// Issue Event Rename /// /// - Remark: Generated from `#/components/schemas/issue-event-rename`. - public struct issue_hyphen_event_hyphen_rename: Codable, Hashable, Sendable { + public struct IssueEventRename: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-rename/from`. public var from: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event-rename/to`. public var to: Swift.String - /// Creates a new `issue_hyphen_event_hyphen_rename`. + /// Creates a new `IssueEventRename`. /// /// - Parameters: /// - from: @@ -4977,177 +4986,177 @@ public enum Components { /// Issue Event /// /// - Remark: Generated from `#/components/schemas/issue-event`. - public struct issue_hyphen_event: Codable, Hashable, Sendable { + public struct IssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event/actor`. - public var actor: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var actor: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-event/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-event/issue`. - public var issue: Components.Schemas.nullable_hyphen_issue? + public var issue: Components.Schemas.NullableIssue? /// - Remark: Generated from `#/components/schemas/issue-event/label`. - public var label: Components.Schemas.issue_hyphen_event_hyphen_label? + public var label: Components.Schemas.IssueEventLabel? /// - Remark: Generated from `#/components/schemas/issue-event/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-event/assigner`. - public var assigner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assigner: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-event/review_requester`. - public var review_requester: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var reviewRequester: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-event/requested_reviewer`. - public var requested_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var requestedReviewer: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-event/requested_team`. - public var requested_team: Components.Schemas.team? + public var requestedTeam: Components.Schemas.Team? /// - Remark: Generated from `#/components/schemas/issue-event/dismissed_review`. - public var dismissed_review: Components.Schemas.issue_hyphen_event_hyphen_dismissed_hyphen_review? + public var dismissedReview: Components.Schemas.IssueEventDismissedReview? /// - Remark: Generated from `#/components/schemas/issue-event/milestone`. - public var milestone: Components.Schemas.issue_hyphen_event_hyphen_milestone? + public var milestone: Components.Schemas.IssueEventMilestone? /// - Remark: Generated from `#/components/schemas/issue-event/project_card`. - public var project_card: Components.Schemas.issue_hyphen_event_hyphen_project_hyphen_card? + public var projectCard: Components.Schemas.IssueEventProjectCard? /// - Remark: Generated from `#/components/schemas/issue-event/rename`. - public var rename: Components.Schemas.issue_hyphen_event_hyphen_rename? + public var rename: Components.Schemas.IssueEventRename? /// - Remark: Generated from `#/components/schemas/issue-event/author_association`. - public var author_association: Components.Schemas.author_hyphen_association? + public var authorAssociation: Components.Schemas.AuthorAssociation? /// - Remark: Generated from `#/components/schemas/issue-event/lock_reason`. - public var lock_reason: Swift.String? + public var lockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? - /// Creates a new `issue_hyphen_event`. + public var performedViaGithubApp: Components.Schemas.NullableIntegration? + /// Creates a new `IssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: + /// - commitId: + /// - commitUrl: + /// - createdAt: /// - issue: /// - label: /// - assignee: /// - assigner: - /// - review_requester: - /// - requested_reviewer: - /// - requested_team: - /// - dismissed_review: + /// - reviewRequester: + /// - requestedReviewer: + /// - requestedTeam: + /// - dismissedReview: /// - milestone: - /// - project_card: + /// - projectCard: /// - rename: - /// - author_association: - /// - lock_reason: - /// - performed_via_github_app: + /// - authorAssociation: + /// - lockReason: + /// - performedViaGithubApp: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + actor: Components.Schemas.NullableSimpleUser? = nil, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Foundation.Date, - issue: Components.Schemas.nullable_hyphen_issue? = nil, - label: Components.Schemas.issue_hyphen_event_hyphen_label? = nil, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assigner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - review_requester: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - requested_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - requested_team: Components.Schemas.team? = nil, - dismissed_review: Components.Schemas.issue_hyphen_event_hyphen_dismissed_hyphen_review? = nil, - milestone: Components.Schemas.issue_hyphen_event_hyphen_milestone? = nil, - project_card: Components.Schemas.issue_hyphen_event_hyphen_project_hyphen_card? = nil, - rename: Components.Schemas.issue_hyphen_event_hyphen_rename? = nil, - author_association: Components.Schemas.author_hyphen_association? = nil, - lock_reason: Swift.String? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Foundation.Date, + issue: Components.Schemas.NullableIssue? = nil, + label: Components.Schemas.IssueEventLabel? = nil, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assigner: Components.Schemas.NullableSimpleUser? = nil, + reviewRequester: Components.Schemas.NullableSimpleUser? = nil, + requestedReviewer: Components.Schemas.NullableSimpleUser? = nil, + requestedTeam: Components.Schemas.Team? = nil, + dismissedReview: Components.Schemas.IssueEventDismissedReview? = nil, + milestone: Components.Schemas.IssueEventMilestone? = nil, + projectCard: Components.Schemas.IssueEventProjectCard? = nil, + rename: Components.Schemas.IssueEventRename? = nil, + authorAssociation: Components.Schemas.AuthorAssociation? = nil, + lockReason: Swift.String? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt self.issue = issue self.label = label self.assignee = assignee self.assigner = assigner - self.review_requester = review_requester - self.requested_reviewer = requested_reviewer - self.requested_team = requested_team - self.dismissed_review = dismissed_review + self.reviewRequester = reviewRequester + self.requestedReviewer = requestedReviewer + self.requestedTeam = requestedTeam + self.dismissedReview = dismissedReview self.milestone = milestone - self.project_card = project_card + self.projectCard = projectCard self.rename = rename - self.author_association = author_association - self.lock_reason = lock_reason - self.performed_via_github_app = performed_via_github_app + self.authorAssociation = authorAssociation + self.lockReason = lockReason + self.performedViaGithubApp = performedViaGithubApp } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" case issue case label case assignee case assigner - case review_requester - case requested_reviewer - case requested_team - case dismissed_review + case reviewRequester = "review_requester" + case requestedReviewer = "requested_reviewer" + case requestedTeam = "requested_team" + case dismissedReview = "dismissed_review" case milestone - case project_card + case projectCard = "project_card" case rename - case author_association - case lock_reason - case performed_via_github_app + case authorAssociation = "author_association" + case lockReason = "lock_reason" + case performedViaGithubApp = "performed_via_github_app" } } /// Labeled Issue Event /// /// - Remark: Generated from `#/components/schemas/labeled-issue-event`. - public struct labeled_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct LabeledIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/labeled-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/labeled-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/labeled-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/labeled-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/labeled-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/labeled-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/labeled-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/labeled-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/labeled-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label`. - public struct labelPayload: Codable, Hashable, Sendable { + public struct LabelPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label/color`. public var color: Swift.String - /// Creates a new `labelPayload`. + /// Creates a new `LabelPayload`. /// /// - Parameters: /// - name: @@ -5165,85 +5174,85 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/labeled-issue-event/label`. - public var label: Components.Schemas.labeled_hyphen_issue_hyphen_event.labelPayload - /// Creates a new `labeled_hyphen_issue_hyphen_event`. + public var label: Components.Schemas.LabeledIssueEvent.LabelPayload + /// Creates a new `LabeledIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - label: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - label: Components.Schemas.labeled_hyphen_issue_hyphen_event.labelPayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + label: Components.Schemas.LabeledIssueEvent.LabelPayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.label = label } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case label } } /// Unlabeled Issue Event /// /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event`. - public struct unlabeled_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct UnlabeledIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label`. - public struct labelPayload: Codable, Hashable, Sendable { + public struct LabelPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label/color`. public var color: Swift.String - /// Creates a new `labelPayload`. + /// Creates a new `LabelPayload`. /// /// - Parameters: /// - name: @@ -5261,131 +5270,131 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/unlabeled-issue-event/label`. - public var label: Components.Schemas.unlabeled_hyphen_issue_hyphen_event.labelPayload - /// Creates a new `unlabeled_hyphen_issue_hyphen_event`. + public var label: Components.Schemas.UnlabeledIssueEvent.LabelPayload + /// Creates a new `UnlabeledIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - label: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - label: Components.Schemas.unlabeled_hyphen_issue_hyphen_event.labelPayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + label: Components.Schemas.UnlabeledIssueEvent.LabelPayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.label = label } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case label } } /// Assigned Issue Event /// /// - Remark: Generated from `#/components/schemas/assigned-issue-event`. - public struct assigned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct AssignedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/assigned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/assigned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/assigned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/assigned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/assigned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/assigned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/assigned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/assigned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/assigned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.integration? + public var performedViaGithubApp: Components.Schemas.Integration? /// - Remark: Generated from `#/components/schemas/assigned-issue-event/assignee`. - public var assignee: Components.Schemas.simple_hyphen_user + public var assignee: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/assigned-issue-event/assigner`. - public var assigner: Components.Schemas.simple_hyphen_user - /// Creates a new `assigned_hyphen_issue_hyphen_event`. + public var assigner: Components.Schemas.SimpleUser + /// Creates a new `AssignedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - assignee: /// - assigner: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.integration? = nil, - assignee: Components.Schemas.simple_hyphen_user, - assigner: Components.Schemas.simple_hyphen_user + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.Integration? = nil, + assignee: Components.Schemas.SimpleUser, + assigner: Components.Schemas.SimpleUser ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.assignee = assignee self.assigner = assigner } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case assignee case assigner } @@ -5393,78 +5402,78 @@ public enum Components { /// Unassigned Issue Event /// /// - Remark: Generated from `#/components/schemas/unassigned-issue-event`. - public struct unassigned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct UnassignedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/assignee`. - public var assignee: Components.Schemas.simple_hyphen_user + public var assignee: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/unassigned-issue-event/assigner`. - public var assigner: Components.Schemas.simple_hyphen_user - /// Creates a new `unassigned_hyphen_issue_hyphen_event`. + public var assigner: Components.Schemas.SimpleUser + /// Creates a new `UnassignedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - assignee: /// - assigner: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - assignee: Components.Schemas.simple_hyphen_user, - assigner: Components.Schemas.simple_hyphen_user + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + assignee: Components.Schemas.SimpleUser, + assigner: Components.Schemas.SimpleUser ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.assignee = assignee self.assigner = assigner } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case assignee case assigner } @@ -5472,30 +5481,30 @@ public enum Components { /// Milestoned Issue Event /// /// - Remark: Generated from `#/components/schemas/milestoned-issue-event`. - public struct milestoned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct MilestonedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone`. - public struct milestonePayload: Codable, Hashable, Sendable { + public struct MilestonePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone/title`. public var title: Swift.String - /// Creates a new `milestonePayload`. + /// Creates a new `MilestonePayload`. /// /// - Parameters: /// - title: @@ -5507,83 +5516,83 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/milestoned-issue-event/milestone`. - public var milestone: Components.Schemas.milestoned_hyphen_issue_hyphen_event.milestonePayload - /// Creates a new `milestoned_hyphen_issue_hyphen_event`. + public var milestone: Components.Schemas.MilestonedIssueEvent.MilestonePayload + /// Creates a new `MilestonedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - milestone: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - milestone: Components.Schemas.milestoned_hyphen_issue_hyphen_event.milestonePayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + milestone: Components.Schemas.MilestonedIssueEvent.MilestonePayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.milestone = milestone } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case milestone } } /// Demilestoned Issue Event /// /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event`. - public struct demilestoned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct DemilestonedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone`. - public struct milestonePayload: Codable, Hashable, Sendable { + public struct MilestonePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone/title`. public var title: Swift.String - /// Creates a new `milestonePayload`. + /// Creates a new `MilestonePayload`. /// /// - Parameters: /// - title: @@ -5595,85 +5604,85 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/demilestoned-issue-event/milestone`. - public var milestone: Components.Schemas.demilestoned_hyphen_issue_hyphen_event.milestonePayload - /// Creates a new `demilestoned_hyphen_issue_hyphen_event`. + public var milestone: Components.Schemas.DemilestonedIssueEvent.MilestonePayload + /// Creates a new `DemilestonedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - milestone: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - milestone: Components.Schemas.demilestoned_hyphen_issue_hyphen_event.milestonePayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + milestone: Components.Schemas.DemilestonedIssueEvent.MilestonePayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.milestone = milestone } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case milestone } } /// Renamed Issue Event /// /// - Remark: Generated from `#/components/schemas/renamed-issue-event`. - public struct renamed_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct RenamedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/renamed-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/renamed-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/renamed-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/renamed-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/renamed-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/renamed-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/renamed-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/renamed-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/renamed-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename`. - public struct renamePayload: Codable, Hashable, Sendable { + public struct RenamePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename/from`. public var from: Swift.String /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename/to`. public var to: Swift.String - /// Creates a new `renamePayload`. + /// Creates a new `RenamePayload`. /// /// - Parameters: /// - from: @@ -5691,922 +5700,922 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/renamed-issue-event/rename`. - public var rename: Components.Schemas.renamed_hyphen_issue_hyphen_event.renamePayload - /// Creates a new `renamed_hyphen_issue_hyphen_event`. + public var rename: Components.Schemas.RenamedIssueEvent.RenamePayload + /// Creates a new `RenamedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - rename: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - rename: Components.Schemas.renamed_hyphen_issue_hyphen_event.renamePayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + rename: Components.Schemas.RenamedIssueEvent.RenamePayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.rename = rename } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case rename } } /// Review Requested Issue Event /// /// - Remark: Generated from `#/components/schemas/review-requested-issue-event`. - public struct review_hyphen_requested_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct ReviewRequestedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/review_requester`. - public var review_requester: Components.Schemas.simple_hyphen_user + public var reviewRequester: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/requested_team`. - public var requested_team: Components.Schemas.team? + public var requestedTeam: Components.Schemas.Team? /// - Remark: Generated from `#/components/schemas/review-requested-issue-event/requested_reviewer`. - public var requested_reviewer: Components.Schemas.simple_hyphen_user? - /// Creates a new `review_hyphen_requested_hyphen_issue_hyphen_event`. + public var requestedReviewer: Components.Schemas.SimpleUser? + /// Creates a new `ReviewRequestedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - review_requester: - /// - requested_team: - /// - requested_reviewer: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - reviewRequester: + /// - requestedTeam: + /// - requestedReviewer: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - review_requester: Components.Schemas.simple_hyphen_user, - requested_team: Components.Schemas.team? = nil, - requested_reviewer: Components.Schemas.simple_hyphen_user? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reviewRequester: Components.Schemas.SimpleUser, + requestedTeam: Components.Schemas.Team? = nil, + requestedReviewer: Components.Schemas.SimpleUser? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.review_requester = review_requester - self.requested_team = requested_team - self.requested_reviewer = requested_reviewer + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.reviewRequester = reviewRequester + self.requestedTeam = requestedTeam + self.requestedReviewer = requestedReviewer } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case review_requester - case requested_team - case requested_reviewer + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case reviewRequester = "review_requester" + case requestedTeam = "requested_team" + case requestedReviewer = "requested_reviewer" } } /// Review Request Removed Issue Event /// /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event`. - public struct review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct ReviewRequestRemovedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/review_requester`. - public var review_requester: Components.Schemas.simple_hyphen_user + public var reviewRequester: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/requested_team`. - public var requested_team: Components.Schemas.team? + public var requestedTeam: Components.Schemas.Team? /// - Remark: Generated from `#/components/schemas/review-request-removed-issue-event/requested_reviewer`. - public var requested_reviewer: Components.Schemas.simple_hyphen_user? - /// Creates a new `review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event`. + public var requestedReviewer: Components.Schemas.SimpleUser? + /// Creates a new `ReviewRequestRemovedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - review_requester: - /// - requested_team: - /// - requested_reviewer: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - reviewRequester: + /// - requestedTeam: + /// - requestedReviewer: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - review_requester: Components.Schemas.simple_hyphen_user, - requested_team: Components.Schemas.team? = nil, - requested_reviewer: Components.Schemas.simple_hyphen_user? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reviewRequester: Components.Schemas.SimpleUser, + requestedTeam: Components.Schemas.Team? = nil, + requestedReviewer: Components.Schemas.SimpleUser? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.review_requester = review_requester - self.requested_team = requested_team - self.requested_reviewer = requested_reviewer + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.reviewRequester = reviewRequester + self.requestedTeam = requestedTeam + self.requestedReviewer = requestedReviewer } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case review_requester - case requested_team - case requested_reviewer + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case reviewRequester = "review_requester" + case requestedTeam = "requested_team" + case requestedReviewer = "requested_reviewer" } } /// Review Dismissed Issue Event /// /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event`. - public struct review_hyphen_dismissed_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct ReviewDismissedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review`. - public struct dismissed_reviewPayload: Codable, Hashable, Sendable { + public struct DismissedReviewPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/review_id`. - public var review_id: Swift.Int + public var reviewId: Swift.Int /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/dismissal_message`. - public var dismissal_message: Swift.String? + public var dismissalMessage: Swift.String? /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review/dismissal_commit_id`. - public var dismissal_commit_id: Swift.String? - /// Creates a new `dismissed_reviewPayload`. + public var dismissalCommitId: Swift.String? + /// Creates a new `DismissedReviewPayload`. /// /// - Parameters: /// - state: - /// - review_id: - /// - dismissal_message: - /// - dismissal_commit_id: + /// - reviewId: + /// - dismissalMessage: + /// - dismissalCommitId: public init( state: Swift.String, - review_id: Swift.Int, - dismissal_message: Swift.String? = nil, - dismissal_commit_id: Swift.String? = nil + reviewId: Swift.Int, + dismissalMessage: Swift.String? = nil, + dismissalCommitId: Swift.String? = nil ) { self.state = state - self.review_id = review_id - self.dismissal_message = dismissal_message - self.dismissal_commit_id = dismissal_commit_id + self.reviewId = reviewId + self.dismissalMessage = dismissalMessage + self.dismissalCommitId = dismissalCommitId } public enum CodingKeys: String, CodingKey { case state - case review_id - case dismissal_message - case dismissal_commit_id + case reviewId = "review_id" + case dismissalMessage = "dismissal_message" + case dismissalCommitId = "dismissal_commit_id" } } /// - Remark: Generated from `#/components/schemas/review-dismissed-issue-event/dismissed_review`. - public var dismissed_review: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event.dismissed_reviewPayload - /// Creates a new `review_hyphen_dismissed_hyphen_issue_hyphen_event`. + public var dismissedReview: Components.Schemas.ReviewDismissedIssueEvent.DismissedReviewPayload + /// Creates a new `ReviewDismissedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - dismissed_review: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - dismissedReview: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - dismissed_review: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event.dismissed_reviewPayload + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + dismissedReview: Components.Schemas.ReviewDismissedIssueEvent.DismissedReviewPayload ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.dismissed_review = dismissed_review + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.dismissedReview = dismissedReview } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case dismissed_review + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case dismissedReview = "dismissed_review" } } /// Locked Issue Event /// /// - Remark: Generated from `#/components/schemas/locked-issue-event`. - public struct locked_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct LockedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/locked-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/locked-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/locked-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/locked-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/locked-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/locked-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/locked-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/locked-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/locked-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/locked-issue-event/lock_reason`. - public var lock_reason: Swift.String? - /// Creates a new `locked_hyphen_issue_hyphen_event`. + public var lockReason: Swift.String? + /// Creates a new `LockedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - lock_reason: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - lockReason: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - lock_reason: Swift.String? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + lockReason: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.lock_reason = lock_reason + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.lockReason = lockReason } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case lock_reason + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case lockReason = "lock_reason" } } /// Added to Project Issue Event /// /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event`. - public struct added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct AddedToProjectIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card`. - public struct project_cardPayload: Codable, Hashable, Sendable { + public struct ProjectCardPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/project_id`. - public var project_id: Swift.Int + public var projectId: Swift.Int /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/column_name`. - public var column_name: Swift.String + public var columnName: Swift.String /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card/previous_column_name`. - public var previous_column_name: Swift.String? - /// Creates a new `project_cardPayload`. + public var previousColumnName: Swift.String? + /// Creates a new `ProjectCardPayload`. /// /// - Parameters: /// - id: /// - url: - /// - project_id: - /// - project_url: - /// - column_name: - /// - previous_column_name: + /// - projectId: + /// - projectUrl: + /// - columnName: + /// - previousColumnName: public init( id: Swift.Int, url: Swift.String, - project_id: Swift.Int, - project_url: Swift.String, - column_name: Swift.String, - previous_column_name: Swift.String? = nil + projectId: Swift.Int, + projectUrl: Swift.String, + columnName: Swift.String, + previousColumnName: Swift.String? = nil ) { self.id = id self.url = url - self.project_id = project_id - self.project_url = project_url - self.column_name = column_name - self.previous_column_name = previous_column_name + self.projectId = projectId + self.projectUrl = projectUrl + self.columnName = columnName + self.previousColumnName = previousColumnName } public enum CodingKeys: String, CodingKey { case id case url - case project_id - case project_url - case column_name - case previous_column_name + case projectId = "project_id" + case projectUrl = "project_url" + case columnName = "column_name" + case previousColumnName = "previous_column_name" } } /// - Remark: Generated from `#/components/schemas/added-to-project-issue-event/project_card`. - public var project_card: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? - /// Creates a new `added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event`. + public var projectCard: Components.Schemas.AddedToProjectIssueEvent.ProjectCardPayload? + /// Creates a new `AddedToProjectIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - project_card: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - projectCard: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - project_card: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + projectCard: Components.Schemas.AddedToProjectIssueEvent.ProjectCardPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.project_card = project_card + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.projectCard = projectCard } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case project_card + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case projectCard = "project_card" } } /// Moved Column in Project Issue Event /// /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event`. - public struct moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct MovedColumnInProjectIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card`. - public struct project_cardPayload: Codable, Hashable, Sendable { + public struct ProjectCardPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/project_id`. - public var project_id: Swift.Int + public var projectId: Swift.Int /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/column_name`. - public var column_name: Swift.String + public var columnName: Swift.String /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card/previous_column_name`. - public var previous_column_name: Swift.String? - /// Creates a new `project_cardPayload`. + public var previousColumnName: Swift.String? + /// Creates a new `ProjectCardPayload`. /// /// - Parameters: /// - id: /// - url: - /// - project_id: - /// - project_url: - /// - column_name: - /// - previous_column_name: + /// - projectId: + /// - projectUrl: + /// - columnName: + /// - previousColumnName: public init( id: Swift.Int, url: Swift.String, - project_id: Swift.Int, - project_url: Swift.String, - column_name: Swift.String, - previous_column_name: Swift.String? = nil + projectId: Swift.Int, + projectUrl: Swift.String, + columnName: Swift.String, + previousColumnName: Swift.String? = nil ) { self.id = id self.url = url - self.project_id = project_id - self.project_url = project_url - self.column_name = column_name - self.previous_column_name = previous_column_name + self.projectId = projectId + self.projectUrl = projectUrl + self.columnName = columnName + self.previousColumnName = previousColumnName } public enum CodingKeys: String, CodingKey { case id case url - case project_id - case project_url - case column_name - case previous_column_name + case projectId = "project_id" + case projectUrl = "project_url" + case columnName = "column_name" + case previousColumnName = "previous_column_name" } } /// - Remark: Generated from `#/components/schemas/moved-column-in-project-issue-event/project_card`. - public var project_card: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? - /// Creates a new `moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event`. + public var projectCard: Components.Schemas.MovedColumnInProjectIssueEvent.ProjectCardPayload? + /// Creates a new `MovedColumnInProjectIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - project_card: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - projectCard: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - project_card: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + projectCard: Components.Schemas.MovedColumnInProjectIssueEvent.ProjectCardPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.project_card = project_card + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.projectCard = projectCard } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case project_card + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case projectCard = "project_card" } } /// Removed from Project Issue Event /// /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event`. - public struct removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct RemovedFromProjectIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card`. - public struct project_cardPayload: Codable, Hashable, Sendable { + public struct ProjectCardPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/project_id`. - public var project_id: Swift.Int + public var projectId: Swift.Int /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/column_name`. - public var column_name: Swift.String + public var columnName: Swift.String /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card/previous_column_name`. - public var previous_column_name: Swift.String? - /// Creates a new `project_cardPayload`. + public var previousColumnName: Swift.String? + /// Creates a new `ProjectCardPayload`. /// /// - Parameters: /// - id: /// - url: - /// - project_id: - /// - project_url: - /// - column_name: - /// - previous_column_name: + /// - projectId: + /// - projectUrl: + /// - columnName: + /// - previousColumnName: public init( id: Swift.Int, url: Swift.String, - project_id: Swift.Int, - project_url: Swift.String, - column_name: Swift.String, - previous_column_name: Swift.String? = nil + projectId: Swift.Int, + projectUrl: Swift.String, + columnName: Swift.String, + previousColumnName: Swift.String? = nil ) { self.id = id self.url = url - self.project_id = project_id - self.project_url = project_url - self.column_name = column_name - self.previous_column_name = previous_column_name + self.projectId = projectId + self.projectUrl = projectUrl + self.columnName = columnName + self.previousColumnName = previousColumnName } public enum CodingKeys: String, CodingKey { case id case url - case project_id - case project_url - case column_name - case previous_column_name + case projectId = "project_id" + case projectUrl = "project_url" + case columnName = "column_name" + case previousColumnName = "previous_column_name" } } /// - Remark: Generated from `#/components/schemas/removed-from-project-issue-event/project_card`. - public var project_card: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? - /// Creates a new `removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event`. + public var projectCard: Components.Schemas.RemovedFromProjectIssueEvent.ProjectCardPayload? + /// Creates a new `RemovedFromProjectIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - project_card: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - projectCard: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - project_card: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event.project_cardPayload? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + projectCard: Components.Schemas.RemovedFromProjectIssueEvent.ProjectCardPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.project_card = project_card + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.projectCard = projectCard } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case project_card + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case projectCard = "project_card" } } /// Converted Note to Issue Issue Event /// /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event`. - public struct converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct ConvertedNoteToIssueIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.integration? + public var performedViaGithubApp: Components.Schemas.Integration? /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card`. - public struct project_cardPayload: Codable, Hashable, Sendable { + public struct ProjectCardPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/project_id`. - public var project_id: Swift.Int + public var projectId: Swift.Int /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/column_name`. - public var column_name: Swift.String + public var columnName: Swift.String /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card/previous_column_name`. - public var previous_column_name: Swift.String? - /// Creates a new `project_cardPayload`. + public var previousColumnName: Swift.String? + /// Creates a new `ProjectCardPayload`. /// /// - Parameters: /// - id: /// - url: - /// - project_id: - /// - project_url: - /// - column_name: - /// - previous_column_name: + /// - projectId: + /// - projectUrl: + /// - columnName: + /// - previousColumnName: public init( id: Swift.Int, url: Swift.String, - project_id: Swift.Int, - project_url: Swift.String, - column_name: Swift.String, - previous_column_name: Swift.String? = nil + projectId: Swift.Int, + projectUrl: Swift.String, + columnName: Swift.String, + previousColumnName: Swift.String? = nil ) { self.id = id self.url = url - self.project_id = project_id - self.project_url = project_url - self.column_name = column_name - self.previous_column_name = previous_column_name + self.projectId = projectId + self.projectUrl = projectUrl + self.columnName = columnName + self.previousColumnName = previousColumnName } public enum CodingKeys: String, CodingKey { case id case url - case project_id - case project_url - case column_name - case previous_column_name + case projectId = "project_id" + case projectUrl = "project_url" + case columnName = "column_name" + case previousColumnName = "previous_column_name" } } /// - Remark: Generated from `#/components/schemas/converted-note-to-issue-issue-event/project_card`. - public var project_card: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event.project_cardPayload? - /// Creates a new `converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event`. + public var projectCard: Components.Schemas.ConvertedNoteToIssueIssueEvent.ProjectCardPayload? + /// Creates a new `ConvertedNoteToIssueIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - project_card: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - projectCard: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.integration? = nil, - project_card: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event.project_cardPayload? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.Integration? = nil, + projectCard: Components.Schemas.ConvertedNoteToIssueIssueEvent.ProjectCardPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.project_card = project_card + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.projectCard = projectCard } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case project_card + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case projectCard = "project_card" } } /// Issue Event for Issue /// /// - Remark: Generated from `#/components/schemas/issue-event-for-issue`. - public struct issue_hyphen_event_hyphen_for_hyphen_issue: Codable, Hashable, Sendable { + public struct IssueEventForIssue: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value1`. - public var value1: Components.Schemas.labeled_hyphen_issue_hyphen_event? + public var value1: Components.Schemas.LabeledIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value2`. - public var value2: Components.Schemas.unlabeled_hyphen_issue_hyphen_event? + public var value2: Components.Schemas.UnlabeledIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value3`. - public var value3: Components.Schemas.assigned_hyphen_issue_hyphen_event? + public var value3: Components.Schemas.AssignedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value4`. - public var value4: Components.Schemas.unassigned_hyphen_issue_hyphen_event? + public var value4: Components.Schemas.UnassignedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value5`. - public var value5: Components.Schemas.milestoned_hyphen_issue_hyphen_event? + public var value5: Components.Schemas.MilestonedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value6`. - public var value6: Components.Schemas.demilestoned_hyphen_issue_hyphen_event? + public var value6: Components.Schemas.DemilestonedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value7`. - public var value7: Components.Schemas.renamed_hyphen_issue_hyphen_event? + public var value7: Components.Schemas.RenamedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value8`. - public var value8: Components.Schemas.review_hyphen_requested_hyphen_issue_hyphen_event? + public var value8: Components.Schemas.ReviewRequestedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value9`. - public var value9: Components.Schemas.review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event? + public var value9: Components.Schemas.ReviewRequestRemovedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value10`. - public var value10: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event? + public var value10: Components.Schemas.ReviewDismissedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value11`. - public var value11: Components.Schemas.locked_hyphen_issue_hyphen_event? + public var value11: Components.Schemas.LockedIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value12`. - public var value12: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event? + public var value12: Components.Schemas.AddedToProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value13`. - public var value13: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event? + public var value13: Components.Schemas.MovedColumnInProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value14`. - public var value14: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event? + public var value14: Components.Schemas.RemovedFromProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/issue-event-for-issue/value15`. - public var value15: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event? - /// Creates a new `issue_hyphen_event_hyphen_for_hyphen_issue`. + public var value15: Components.Schemas.ConvertedNoteToIssueIssueEvent? + /// Creates a new `IssueEventForIssue`. /// /// - Parameters: /// - value1: @@ -6625,21 +6634,21 @@ public enum Components { /// - value14: /// - value15: public init( - value1: Components.Schemas.labeled_hyphen_issue_hyphen_event? = nil, - value2: Components.Schemas.unlabeled_hyphen_issue_hyphen_event? = nil, - value3: Components.Schemas.assigned_hyphen_issue_hyphen_event? = nil, - value4: Components.Schemas.unassigned_hyphen_issue_hyphen_event? = nil, - value5: Components.Schemas.milestoned_hyphen_issue_hyphen_event? = nil, - value6: Components.Schemas.demilestoned_hyphen_issue_hyphen_event? = nil, - value7: Components.Schemas.renamed_hyphen_issue_hyphen_event? = nil, - value8: Components.Schemas.review_hyphen_requested_hyphen_issue_hyphen_event? = nil, - value9: Components.Schemas.review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event? = nil, - value10: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event? = nil, - value11: Components.Schemas.locked_hyphen_issue_hyphen_event? = nil, - value12: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event? = nil, - value13: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event? = nil, - value14: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event? = nil, - value15: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event? = nil + value1: Components.Schemas.LabeledIssueEvent? = nil, + value2: Components.Schemas.UnlabeledIssueEvent? = nil, + value3: Components.Schemas.AssignedIssueEvent? = nil, + value4: Components.Schemas.UnassignedIssueEvent? = nil, + value5: Components.Schemas.MilestonedIssueEvent? = nil, + value6: Components.Schemas.DemilestonedIssueEvent? = nil, + value7: Components.Schemas.RenamedIssueEvent? = nil, + value8: Components.Schemas.ReviewRequestedIssueEvent? = nil, + value9: Components.Schemas.ReviewRequestRemovedIssueEvent? = nil, + value10: Components.Schemas.ReviewDismissedIssueEvent? = nil, + value11: Components.Schemas.LockedIssueEvent? = nil, + value12: Components.Schemas.AddedToProjectIssueEvent? = nil, + value13: Components.Schemas.MovedColumnInProjectIssueEvent? = nil, + value14: Components.Schemas.RemovedFromProjectIssueEvent? = nil, + value15: Components.Schemas.ConvertedNoteToIssueIssueEvent? = nil ) { self.value1 = value1 self.value2 = value2 @@ -6660,97 +6669,97 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } do { - value3 = try .init(from: decoder) + self.value3 = try .init(from: decoder) } catch { errors.append(error) } do { - value4 = try .init(from: decoder) + self.value4 = try .init(from: decoder) } catch { errors.append(error) } do { - value5 = try .init(from: decoder) + self.value5 = try .init(from: decoder) } catch { errors.append(error) } do { - value6 = try .init(from: decoder) + self.value6 = try .init(from: decoder) } catch { errors.append(error) } do { - value7 = try .init(from: decoder) + self.value7 = try .init(from: decoder) } catch { errors.append(error) } do { - value8 = try .init(from: decoder) + self.value8 = try .init(from: decoder) } catch { errors.append(error) } do { - value9 = try .init(from: decoder) + self.value9 = try .init(from: decoder) } catch { errors.append(error) } do { - value10 = try .init(from: decoder) + self.value10 = try .init(from: decoder) } catch { errors.append(error) } do { - value11 = try .init(from: decoder) + self.value11 = try .init(from: decoder) } catch { errors.append(error) } do { - value12 = try .init(from: decoder) + self.value12 = try .init(from: decoder) } catch { errors.append(error) } do { - value13 = try .init(from: decoder) + self.value13 = try .init(from: decoder) } catch { errors.append(error) } do { - value14 = try .init(from: decoder) + self.value14 = try .init(from: decoder) } catch { errors.append(error) } do { - value15 = try .init(from: decoder) + self.value15 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2, - value3, - value4, - value5, - value6, - value7, - value8, - value9, - value10, - value11, - value12, - value13, - value14, - value15 + self.value1, + self.value2, + self.value3, + self.value4, + self.value5, + self.value6, + self.value7, + self.value8, + self.value9, + self.value10, + self.value11, + self.value12, + self.value13, + self.value14, + self.value15 ], type: Self.self, codingPath: decoder.codingPath, @@ -6758,33 +6767,33 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) - try value3?.encode(to: encoder) - try value4?.encode(to: encoder) - try value5?.encode(to: encoder) - try value6?.encode(to: encoder) - try value7?.encode(to: encoder) - try value8?.encode(to: encoder) - try value9?.encode(to: encoder) - try value10?.encode(to: encoder) - try value11?.encode(to: encoder) - try value12?.encode(to: encoder) - try value13?.encode(to: encoder) - try value14?.encode(to: encoder) - try value15?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) + try self.value3?.encode(to: encoder) + try self.value4?.encode(to: encoder) + try self.value5?.encode(to: encoder) + try self.value6?.encode(to: encoder) + try self.value7?.encode(to: encoder) + try self.value8?.encode(to: encoder) + try self.value9?.encode(to: encoder) + try self.value10?.encode(to: encoder) + try self.value11?.encode(to: encoder) + try self.value12?.encode(to: encoder) + try self.value13?.encode(to: encoder) + try self.value14?.encode(to: encoder) + try self.value15?.encode(to: encoder) } } /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). /// /// - Remark: Generated from `#/components/schemas/label`. - public struct label: Codable, Hashable, Sendable { + public struct Label: Codable, Hashable, Sendable { /// Unique identifier for the label. /// /// - Remark: Generated from `#/components/schemas/label/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/label/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the label /// /// - Remark: Generated from `#/components/schemas/label/url`. @@ -6805,11 +6814,11 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/label/default`. public var _default: Swift.Bool - /// Creates a new `label`. + /// Creates a new `Label`. /// /// - Parameters: /// - id: Unique identifier for the label. - /// - node_id: + /// - nodeId: /// - url: URL for the label /// - name: The name of the label. /// - description: Optional description of the label, such as its purpose. @@ -6817,7 +6826,7 @@ public enum Components { /// - _default: Whether this label comes by default in a new repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, name: Swift.String, description: Swift.String? = nil, @@ -6825,7 +6834,7 @@ public enum Components { _default: Swift.Bool ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -6834,7 +6843,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -6845,17 +6854,17 @@ public enum Components { /// Timeline Comment Event /// /// - Remark: Generated from `#/components/schemas/timeline-comment-event`. - public struct timeline_hyphen_comment_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineCommentEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-comment-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-comment-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// Unique identifier of the issue comment /// /// - Remark: Generated from `#/components/schemas/timeline-comment-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/timeline-comment-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the issue comment /// /// - Remark: Generated from `#/components/schemas/timeline-comment-event/url`. @@ -6865,124 +6874,124 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-comment-event/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-comment-event/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-comment-event/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/timeline-comment-event/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/timeline-comment-event/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/timeline-comment-event/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-comment-event/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/timeline-comment-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/timeline-comment-event/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `timeline_hyphen_comment_hyphen_event`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `TimelineCommentEvent`. /// /// - Parameters: /// - event: /// - actor: /// - id: Unique identifier of the issue comment - /// - node_id: + /// - nodeId: /// - url: URL for the issue comment /// - body: Contents of the issue comment - /// - body_text: - /// - body_html: - /// - html_url: + /// - bodyText: + /// - bodyHtml: + /// - htmlUrl: /// - user: - /// - created_at: - /// - updated_at: - /// - issue_url: - /// - author_association: - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - issueUrl: + /// - authorAssociation: + /// - performedViaGithubApp: /// - reactions: public init( event: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, body: Swift.String? = nil, - body_text: Swift.String? = nil, - body_html: Swift.String? = nil, - html_url: Swift.String, - user: Components.Schemas.simple_hyphen_user, - created_at: Foundation.Date, - updated_at: Foundation.Date, - issue_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + bodyText: Swift.String? = nil, + bodyHtml: Swift.String? = nil, + htmlUrl: Swift.String, + user: Components.Schemas.SimpleUser, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + issueUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reactions: Components.Schemas.ReactionRollup? = nil ) { self.event = event self.actor = actor self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.body = body - self.body_text = body_text - self.body_html = body_html - self.html_url = html_url + self.bodyText = bodyText + self.bodyHtml = bodyHtml + self.htmlUrl = htmlUrl self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.issue_url = issue_url - self.author_association = author_association - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.issueUrl = issueUrl + self.authorAssociation = authorAssociation + self.performedViaGithubApp = performedViaGithubApp self.reactions = reactions } public enum CodingKeys: String, CodingKey { case event case actor case id - case node_id + case nodeId = "node_id" case url case body - case body_text - case body_html - case html_url + case bodyText = "body_text" + case bodyHtml = "body_html" + case htmlUrl = "html_url" case user - case created_at - case updated_at - case issue_url - case author_association - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case issueUrl = "issue_url" + case authorAssociation = "author_association" + case performedViaGithubApp = "performed_via_github_app" case reactions } } /// Timeline Cross Referenced Event /// /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event`. - public struct timeline_hyphen_cross_hyphen_referenced_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineCrossReferencedEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user? + public var actor: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source`. - public struct sourcePayload: Codable, Hashable, Sendable { + public struct SourcePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source/type`. public var _type: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source/issue`. - public var issue: Components.Schemas.issue? - /// Creates a new `sourcePayload`. + public var issue: Components.Schemas.Issue? + /// Creates a new `SourcePayload`. /// /// - Parameters: /// - _type: /// - issue: public init( _type: Swift.String? = nil, - issue: Components.Schemas.issue? = nil + issue: Components.Schemas.Issue? = nil ) { self._type = _type self.issue = issue @@ -6993,40 +7002,40 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/timeline-cross-referenced-event/source`. - public var source: Components.Schemas.timeline_hyphen_cross_hyphen_referenced_hyphen_event.sourcePayload - /// Creates a new `timeline_hyphen_cross_hyphen_referenced_hyphen_event`. + public var source: Components.Schemas.TimelineCrossReferencedEvent.SourcePayload + /// Creates a new `TimelineCrossReferencedEvent`. /// /// - Parameters: /// - event: /// - actor: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - source: public init( event: Swift.String, - actor: Components.Schemas.simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - source: Components.Schemas.timeline_hyphen_cross_hyphen_referenced_hyphen_event.sourcePayload + actor: Components.Schemas.SimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + source: Components.Schemas.TimelineCrossReferencedEvent.SourcePayload ) { self.event = event self.actor = actor - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.source = source } public enum CodingKeys: String, CodingKey { case event case actor - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case source } } /// Timeline Committed Event /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event`. - public struct timeline_hyphen_committed_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineCommittedEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-committed-event/event`. public var event: Swift.String? /// SHA for the commit @@ -7034,13 +7043,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/timeline-committed-event/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-committed-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-committed-event/url`. public var url: Swift.String /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// Timestamp of the commit /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author/date`. @@ -7053,7 +7062,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author/name`. public var name: Swift.String - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - date: Timestamp of the commit @@ -7077,11 +7086,11 @@ public enum Components { /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/author`. - public var author: Components.Schemas.timeline_hyphen_committed_hyphen_event.authorPayload + public var author: Components.Schemas.TimelineCommittedEvent.AuthorPayload /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// Timestamp of the commit /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer/date`. @@ -7094,7 +7103,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer/name`. public var name: Swift.String - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - date: Timestamp of the commit @@ -7118,20 +7127,20 @@ public enum Components { /// Identifying information for the git-user /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/committer`. - public var committer: Components.Schemas.timeline_hyphen_committed_hyphen_event.committerPayload + public var committer: Components.Schemas.TimelineCommittedEvent.CommitterPayload /// Message describing the purpose of the commit /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// SHA for the commit /// /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree/url`. public var url: Swift.String - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - sha: SHA for the commit @@ -7149,44 +7158,44 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/timeline-committed-event/tree`. - public var tree: Components.Schemas.timeline_hyphen_committed_hyphen_event.treePayload - /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { + public var tree: Components.Schemas.TimelineCommittedEvent.TreePayload + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { /// SHA for the commit /// - /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/sha`. + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/ParentsPayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/url`. + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/ParentsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parentsPayload/html_url`. - public var html_url: Swift.String - /// Creates a new `parentsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/timeline-committed-event/ParentsPayload/html_url`. + public var htmlUrl: Swift.String + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - sha: SHA for the commit /// - url: - /// - html_url: + /// - htmlUrl: public init( sha: Swift.String, url: Swift.String, - html_url: Swift.String + htmlUrl: Swift.String ) { self.sha = sha self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case sha case url - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parents`. - public typealias parentsPayload = [Components.Schemas.timeline_hyphen_committed_hyphen_event.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.TimelineCommittedEvent.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/timeline-committed-event/parents`. - public var parents: Components.Schemas.timeline_hyphen_committed_hyphen_event.parentsPayload + public var parents: Components.Schemas.TimelineCommittedEvent.ParentsPayload /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification`. - public struct verificationPayload: Codable, Hashable, Sendable { + public struct VerificationPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/reason`. @@ -7196,46 +7205,46 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/payload`. public var payload: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verificationPayload`. + public var verifiedAt: Swift.String? + /// Creates a new `VerificationPayload`. /// /// - Parameters: /// - verified: /// - reason: /// - signature: /// - payload: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, signature: Swift.String? = nil, payload: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.signature = signature self.payload = payload - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case signature case payload - case verified_at + case verifiedAt = "verified_at" } } /// - Remark: Generated from `#/components/schemas/timeline-committed-event/verification`. - public var verification: Components.Schemas.timeline_hyphen_committed_hyphen_event.verificationPayload + public var verification: Components.Schemas.TimelineCommittedEvent.VerificationPayload /// - Remark: Generated from `#/components/schemas/timeline-committed-event/html_url`. - public var html_url: Swift.String - /// Creates a new `timeline_hyphen_committed_hyphen_event`. + public var htmlUrl: Swift.String + /// Creates a new `TimelineCommittedEvent`. /// /// - Parameters: /// - event: /// - sha: SHA for the commit - /// - node_id: + /// - nodeId: /// - url: /// - author: Identifying information for the git-user /// - committer: Identifying information for the git-user @@ -7243,23 +7252,23 @@ public enum Components { /// - tree: /// - parents: /// - verification: - /// - html_url: + /// - htmlUrl: public init( event: Swift.String? = nil, sha: Swift.String, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - author: Components.Schemas.timeline_hyphen_committed_hyphen_event.authorPayload, - committer: Components.Schemas.timeline_hyphen_committed_hyphen_event.committerPayload, + author: Components.Schemas.TimelineCommittedEvent.AuthorPayload, + committer: Components.Schemas.TimelineCommittedEvent.CommitterPayload, message: Swift.String, - tree: Components.Schemas.timeline_hyphen_committed_hyphen_event.treePayload, - parents: Components.Schemas.timeline_hyphen_committed_hyphen_event.parentsPayload, - verification: Components.Schemas.timeline_hyphen_committed_hyphen_event.verificationPayload, - html_url: Swift.String + tree: Components.Schemas.TimelineCommittedEvent.TreePayload, + parents: Components.Schemas.TimelineCommittedEvent.ParentsPayload, + verification: Components.Schemas.TimelineCommittedEvent.VerificationPayload, + htmlUrl: Swift.String ) { self.event = event self.sha = sha - self.node_id = node_id + self.nodeId = nodeId self.url = url self.author = author self.committer = committer @@ -7267,12 +7276,12 @@ public enum Components { self.tree = tree self.parents = parents self.verification = verification - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case event case sha - case node_id + case nodeId = "node_id" case url case author case committer @@ -7280,13 +7289,13 @@ public enum Components { case tree case parents case verification - case html_url + case htmlUrl = "html_url" } } /// Timeline Reviewed Event /// /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event`. - public struct timeline_hyphen_reviewed_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineReviewedEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/event`. public var event: Swift.String /// Unique identifier of the review @@ -7294,9 +7303,9 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// The text of the review. /// /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body`. @@ -7304,16 +7313,16 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/pull_request_url`. - public var pull_request_url: Swift.String + public var pullRequestUrl: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html`. - public struct htmlPayload: Codable, Hashable, Sendable { + public struct HtmlPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html/href`. public var href: Swift.String - /// Creates a new `htmlPayload`. + /// Creates a new `HtmlPayload`. /// /// - Parameters: /// - href: @@ -7325,12 +7334,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/html`. - public var html: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload.htmlPayload + public var html: Components.Schemas.TimelineReviewedEvent._LinksPayload.HtmlPayload /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request/href`. public var href: Swift.String - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: /// - href: @@ -7342,107 +7351,107 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links/pull_request`. - public var pull_request: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload.pull_requestPayload - /// Creates a new `_linksPayload`. + public var pullRequest: Components.Schemas.TimelineReviewedEvent._LinksPayload.PullRequestPayload + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - html: - /// - pull_request: + /// - pullRequest: public init( - html: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload.htmlPayload, - pull_request: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload.pull_requestPayload + html: Components.Schemas.TimelineReviewedEvent._LinksPayload.HtmlPayload, + pullRequest: Components.Schemas.TimelineReviewedEvent._LinksPayload.PullRequestPayload ) { self.html = html - self.pull_request = pull_request + self.pullRequest = pullRequest } public enum CodingKeys: String, CodingKey { case html - case pull_request + case pullRequest = "pull_request" } } /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/_links`. - public var _links: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload + public var _links: Components.Schemas.TimelineReviewedEvent._LinksPayload /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/submitted_at`. - public var submitted_at: Foundation.Date? + public var submittedAt: Foundation.Date? /// A commit SHA for the review. /// /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-reviewed-event/author_association`. - public var author_association: Components.Schemas.author_hyphen_association - /// Creates a new `timeline_hyphen_reviewed_hyphen_event`. + public var authorAssociation: Components.Schemas.AuthorAssociation + /// Creates a new `TimelineReviewedEvent`. /// /// - Parameters: /// - event: /// - id: Unique identifier of the review - /// - node_id: + /// - nodeId: /// - user: /// - body: The text of the review. /// - state: - /// - html_url: - /// - pull_request_url: + /// - htmlUrl: + /// - pullRequestUrl: /// - _links: - /// - submitted_at: - /// - commit_id: A commit SHA for the review. - /// - body_html: - /// - body_text: - /// - author_association: + /// - submittedAt: + /// - commitId: A commit SHA for the review. + /// - bodyHtml: + /// - bodyText: + /// - authorAssociation: public init( event: Swift.String, id: Swift.Int, - node_id: Swift.String, - user: Components.Schemas.simple_hyphen_user, + nodeId: Swift.String, + user: Components.Schemas.SimpleUser, body: Swift.String? = nil, state: Swift.String, - html_url: Swift.String, - pull_request_url: Swift.String, - _links: Components.Schemas.timeline_hyphen_reviewed_hyphen_event._linksPayload, - submitted_at: Foundation.Date? = nil, - commit_id: Swift.String, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - author_association: Components.Schemas.author_hyphen_association + htmlUrl: Swift.String, + pullRequestUrl: Swift.String, + _links: Components.Schemas.TimelineReviewedEvent._LinksPayload, + submittedAt: Foundation.Date? = nil, + commitId: Swift.String, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + authorAssociation: Components.Schemas.AuthorAssociation ) { self.event = event self.id = id - self.node_id = node_id + self.nodeId = nodeId self.user = user self.body = body self.state = state - self.html_url = html_url - self.pull_request_url = pull_request_url + self.htmlUrl = htmlUrl + self.pullRequestUrl = pullRequestUrl self._links = _links - self.submitted_at = submitted_at - self.commit_id = commit_id - self.body_html = body_html - self.body_text = body_text - self.author_association = author_association + self.submittedAt = submittedAt + self.commitId = commitId + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.authorAssociation = authorAssociation } public enum CodingKeys: String, CodingKey { case event case id - case node_id + case nodeId = "node_id" case user case body case state - case html_url - case pull_request_url + case htmlUrl = "html_url" + case pullRequestUrl = "pull_request_url" case _links - case submitted_at - case commit_id - case body_html - case body_text - case author_association + case submittedAt = "submitted_at" + case commitId = "commit_id" + case bodyHtml = "body_html" + case bodyText = "body_text" + case authorAssociation = "author_association" } } /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment`. - public struct pull_hyphen_request_hyphen_review_hyphen_comment: Codable, Hashable, Sendable { + public struct PullRequestReviewComment: Codable, Hashable, Sendable { /// URL for the pull request review comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/url`. @@ -7450,7 +7459,7 @@ public enum Components { /// The ID of the pull request review to which the comment belongs. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int64? + public var pullRequestReviewId: Swift.Int64? /// The ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/id`. @@ -7458,11 +7467,11 @@ public enum Components { /// The node ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The diff of the line that the comment refers to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/diff_hunk`. - public var diff_hunk: Swift.String + public var diffHunk: Swift.String /// The relative path of the file to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/path`. @@ -7474,46 +7483,46 @@ public enum Components { /// The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_position`. - public var original_position: Swift.Int? + public var originalPosition: Swift.Int? /// The SHA of the commit to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// The SHA of the original commit to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_commit_id`. - public var original_commit_id: Swift.String + public var originalCommitId: Swift.String /// The comment ID to reply to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/in_reply_to_id`. - public var in_reply_to_id: Swift.Int? + public var inReplyToId: Swift.Int? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// The text of the comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// HTML URL for the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// URL for the pull request that the review comment belongs to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_url`. - public var pull_request_url: Swift.String + public var pullRequestUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self`. - public struct _selfPayload: Codable, Hashable, Sendable { + public struct _SelfPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self/href`. public var href: Swift.String - /// Creates a new `_selfPayload`. + /// Creates a new `_SelfPayload`. /// /// - Parameters: /// - href: @@ -7525,12 +7534,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self`. - public var _self: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload._selfPayload + public var _self: Components.Schemas.PullRequestReviewComment._LinksPayload._SelfPayload /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html`. - public struct htmlPayload: Codable, Hashable, Sendable { + public struct HtmlPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html/href`. public var href: Swift.String - /// Creates a new `htmlPayload`. + /// Creates a new `HtmlPayload`. /// /// - Parameters: /// - href: @@ -7542,12 +7551,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html`. - public var html: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.htmlPayload + public var html: Components.Schemas.PullRequestReviewComment._LinksPayload.HtmlPayload /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request/href`. public var href: Swift.String - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: /// - href: @@ -7559,49 +7568,49 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request`. - public var pull_request: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.pull_requestPayload - /// Creates a new `_linksPayload`. + public var pullRequest: Components.Schemas.PullRequestReviewComment._LinksPayload.PullRequestPayload + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - _self: /// - html: - /// - pull_request: + /// - pullRequest: public init( - _self: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload._selfPayload, - html: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.htmlPayload, - pull_request: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.pull_requestPayload + _self: Components.Schemas.PullRequestReviewComment._LinksPayload._SelfPayload, + html: Components.Schemas.PullRequestReviewComment._LinksPayload.HtmlPayload, + pullRequest: Components.Schemas.PullRequestReviewComment._LinksPayload.PullRequestPayload ) { self._self = _self self.html = html - self.pull_request = pull_request + self.pullRequest = pullRequest } public enum CodingKeys: String, CodingKey { case _self = "self" case html - case pull_request + case pullRequest = "pull_request" } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links`. - public var _links: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload + public var _links: Components.Schemas.PullRequestReviewComment._LinksPayload /// The first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_line`. - public var start_line: Swift.Int? + public var startLine: Swift.Int? /// The first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_start_line`. - public var original_start_line: Swift.Int? + public var originalStartLine: Swift.Int? /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_side`. - @frozen public enum start_sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum StartSidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_side`. - public var start_side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.start_sidePayload? + public var startSide: Components.Schemas.PullRequestReviewComment.StartSidePayload? /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/line`. @@ -7609,496 +7618,496 @@ public enum Components { /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_line`. - public var original_line: Swift.Int? + public var originalLine: Swift.Int? /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/side`. - @frozen public enum sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum SidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/side`. - public var side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.sidePayload? + public var side: Components.Schemas.PullRequestReviewComment.SidePayload? /// The level at which the comment is targeted, can be a diff line or a file. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/subject_type`. - @frozen public enum subject_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum SubjectTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case line = "line" case file = "file" } /// The level at which the comment is targeted, can be a diff line or a file. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/subject_type`. - public var subject_type: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.subject_typePayload? + public var subjectType: Components.Schemas.PullRequestReviewComment.SubjectTypePayload? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body_text`. - public var body_text: Swift.String? - /// Creates a new `pull_hyphen_request_hyphen_review_hyphen_comment`. + public var bodyText: Swift.String? + /// Creates a new `PullRequestReviewComment`. /// /// - Parameters: /// - url: URL for the pull request review comment - /// - pull_request_review_id: The ID of the pull request review to which the comment belongs. + /// - pullRequestReviewId: The ID of the pull request review to which the comment belongs. /// - id: The ID of the pull request review comment. - /// - node_id: The node ID of the pull request review comment. - /// - diff_hunk: The diff of the line that the comment refers to. + /// - nodeId: The node ID of the pull request review comment. + /// - diffHunk: The diff of the line that the comment refers to. /// - path: The relative path of the file to which the comment applies. /// - position: The line index in the diff to which the comment applies. This field is closing down; use `line` instead. - /// - original_position: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. - /// - commit_id: The SHA of the commit to which the comment applies. - /// - original_commit_id: The SHA of the original commit to which the comment applies. - /// - in_reply_to_id: The comment ID to reply to. + /// - originalPosition: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. + /// - commitId: The SHA of the commit to which the comment applies. + /// - originalCommitId: The SHA of the original commit to which the comment applies. + /// - inReplyToId: The comment ID to reply to. /// - user: /// - body: The text of the comment. - /// - created_at: - /// - updated_at: - /// - html_url: HTML URL for the pull request review comment. - /// - pull_request_url: URL for the pull request that the review comment belongs to. - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - htmlUrl: HTML URL for the pull request review comment. + /// - pullRequestUrl: URL for the pull request that the review comment belongs to. + /// - authorAssociation: /// - _links: - /// - start_line: The first line of the range for a multi-line comment. - /// - original_start_line: The first line of the range for a multi-line comment. - /// - start_side: The side of the first line of the range for a multi-line comment. + /// - startLine: The first line of the range for a multi-line comment. + /// - originalStartLine: The first line of the range for a multi-line comment. + /// - startSide: The side of the first line of the range for a multi-line comment. /// - line: The line of the blob to which the comment applies. The last line of the range for a multi-line comment - /// - original_line: The line of the blob to which the comment applies. The last line of the range for a multi-line comment + /// - originalLine: The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// - side: The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment - /// - subject_type: The level at which the comment is targeted, can be a diff line or a file. + /// - subjectType: The level at which the comment is targeted, can be a diff line or a file. /// - reactions: - /// - body_html: - /// - body_text: + /// - bodyHtml: + /// - bodyText: public init( url: Swift.String, - pull_request_review_id: Swift.Int64? = nil, + pullRequestReviewId: Swift.Int64? = nil, id: Swift.Int64, - node_id: Swift.String, - diff_hunk: Swift.String, + nodeId: Swift.String, + diffHunk: Swift.String, path: Swift.String, position: Swift.Int? = nil, - original_position: Swift.Int? = nil, - commit_id: Swift.String, - original_commit_id: Swift.String, - in_reply_to_id: Swift.Int? = nil, - user: Components.Schemas.simple_hyphen_user, + originalPosition: Swift.Int? = nil, + commitId: Swift.String, + originalCommitId: Swift.String, + inReplyToId: Swift.Int? = nil, + user: Components.Schemas.SimpleUser, body: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - html_url: Swift.String, - pull_request_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - _links: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload, - start_line: Swift.Int? = nil, - original_start_line: Swift.Int? = nil, - start_side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.start_sidePayload? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + htmlUrl: Swift.String, + pullRequestUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + _links: Components.Schemas.PullRequestReviewComment._LinksPayload, + startLine: Swift.Int? = nil, + originalStartLine: Swift.Int? = nil, + startSide: Components.Schemas.PullRequestReviewComment.StartSidePayload? = nil, line: Swift.Int? = nil, - original_line: Swift.Int? = nil, - side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.sidePayload? = nil, - subject_type: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.subject_typePayload? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil + originalLine: Swift.Int? = nil, + side: Components.Schemas.PullRequestReviewComment.SidePayload? = nil, + subjectType: Components.Schemas.PullRequestReviewComment.SubjectTypePayload? = nil, + reactions: Components.Schemas.ReactionRollup? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil ) { self.url = url - self.pull_request_review_id = pull_request_review_id + self.pullRequestReviewId = pullRequestReviewId self.id = id - self.node_id = node_id - self.diff_hunk = diff_hunk + self.nodeId = nodeId + self.diffHunk = diffHunk self.path = path self.position = position - self.original_position = original_position - self.commit_id = commit_id - self.original_commit_id = original_commit_id - self.in_reply_to_id = in_reply_to_id + self.originalPosition = originalPosition + self.commitId = commitId + self.originalCommitId = originalCommitId + self.inReplyToId = inReplyToId self.user = user self.body = body - self.created_at = created_at - self.updated_at = updated_at - self.html_url = html_url - self.pull_request_url = pull_request_url - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.htmlUrl = htmlUrl + self.pullRequestUrl = pullRequestUrl + self.authorAssociation = authorAssociation self._links = _links - self.start_line = start_line - self.original_start_line = original_start_line - self.start_side = start_side + self.startLine = startLine + self.originalStartLine = originalStartLine + self.startSide = startSide self.line = line - self.original_line = original_line + self.originalLine = originalLine self.side = side - self.subject_type = subject_type + self.subjectType = subjectType self.reactions = reactions - self.body_html = body_html - self.body_text = body_text + self.bodyHtml = bodyHtml + self.bodyText = bodyText } public enum CodingKeys: String, CodingKey { case url - case pull_request_review_id + case pullRequestReviewId = "pull_request_review_id" case id - case node_id - case diff_hunk + case nodeId = "node_id" + case diffHunk = "diff_hunk" case path case position - case original_position - case commit_id - case original_commit_id - case in_reply_to_id + case originalPosition = "original_position" + case commitId = "commit_id" + case originalCommitId = "original_commit_id" + case inReplyToId = "in_reply_to_id" case user case body - case created_at - case updated_at - case html_url - case pull_request_url - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case htmlUrl = "html_url" + case pullRequestUrl = "pull_request_url" + case authorAssociation = "author_association" case _links - case start_line - case original_start_line - case start_side + case startLine = "start_line" + case originalStartLine = "original_start_line" + case startSide = "start_side" case line - case original_line + case originalLine = "original_line" case side - case subject_type + case subjectType = "subject_type" case reactions - case body_html - case body_text + case bodyHtml = "body_html" + case bodyText = "body_text" } } /// Timeline Line Commented Event /// /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event`. - public struct timeline_hyphen_line_hyphen_commented_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineLineCommentedEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/event`. public var event: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-line-commented-event/comments`. - public var comments: [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment]? - /// Creates a new `timeline_hyphen_line_hyphen_commented_hyphen_event`. + public var comments: [Components.Schemas.PullRequestReviewComment]? + /// Creates a new `TimelineLineCommentedEvent`. /// /// - Parameters: /// - event: - /// - node_id: + /// - nodeId: /// - comments: public init( event: Swift.String? = nil, - node_id: Swift.String? = nil, - comments: [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment]? = nil + nodeId: Swift.String? = nil, + comments: [Components.Schemas.PullRequestReviewComment]? = nil ) { self.event = event - self.node_id = node_id + self.nodeId = nodeId self.comments = comments } public enum CodingKeys: String, CodingKey { case event - case node_id + case nodeId = "node_id" case comments } } /// Timeline Commit Commented Event /// /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event`. - public struct timeline_hyphen_commit_hyphen_commented_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineCommitCommentedEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/event`. public var event: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-commit-commented-event/comments`. - public var comments: [Components.Schemas.commit_hyphen_comment]? - /// Creates a new `timeline_hyphen_commit_hyphen_commented_hyphen_event`. + public var comments: [Components.Schemas.CommitComment]? + /// Creates a new `TimelineCommitCommentedEvent`. /// /// - Parameters: /// - event: - /// - node_id: - /// - commit_id: + /// - nodeId: + /// - commitId: /// - comments: public init( event: Swift.String? = nil, - node_id: Swift.String? = nil, - commit_id: Swift.String? = nil, - comments: [Components.Schemas.commit_hyphen_comment]? = nil + nodeId: Swift.String? = nil, + commitId: Swift.String? = nil, + comments: [Components.Schemas.CommitComment]? = nil ) { self.event = event - self.node_id = node_id - self.commit_id = commit_id + self.nodeId = nodeId + self.commitId = commitId self.comments = comments } public enum CodingKeys: String, CodingKey { case event - case node_id - case commit_id + case nodeId = "node_id" + case commitId = "commit_id" case comments } } /// Timeline Assigned Issue Event /// /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event`. - public struct timeline_hyphen_assigned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineAssignedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/timeline-assigned-issue-event/assignee`. - public var assignee: Components.Schemas.simple_hyphen_user - /// Creates a new `timeline_hyphen_assigned_hyphen_issue_hyphen_event`. + public var assignee: Components.Schemas.SimpleUser + /// Creates a new `TimelineAssignedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - assignee: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - assignee: Components.Schemas.simple_hyphen_user + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + assignee: Components.Schemas.SimpleUser ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.assignee = assignee } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case assignee } } /// Timeline Unassigned Issue Event /// /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event`. - public struct timeline_hyphen_unassigned_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct TimelineUnassignedIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/timeline-unassigned-issue-event/assignee`. - public var assignee: Components.Schemas.simple_hyphen_user - /// Creates a new `timeline_hyphen_unassigned_hyphen_issue_hyphen_event`. + public var assignee: Components.Schemas.SimpleUser + /// Creates a new `TimelineUnassignedIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: /// - assignee: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - assignee: Components.Schemas.simple_hyphen_user + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + assignee: Components.Schemas.SimpleUser ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp self.assignee = assignee } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" case assignee } } /// State Change Issue Event /// /// - Remark: Generated from `#/components/schemas/state-change-issue-event`. - public struct state_hyphen_change_hyphen_issue_hyphen_event: Codable, Hashable, Sendable { + public struct StateChangeIssueEvent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/state-change-issue-event/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/state-change-issue-event/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/state-change-issue-event/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/state-change-issue-event/actor`. - public var actor: Components.Schemas.simple_hyphen_user + public var actor: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/state-change-issue-event/event`. public var event: Swift.String /// - Remark: Generated from `#/components/schemas/state-change-issue-event/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/state-change-issue-event/commit_url`. - public var commit_url: Swift.String? + public var commitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/state-change-issue-event/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/state-change-issue-event/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/state-change-issue-event/state_reason`. - public var state_reason: Swift.String? - /// Creates a new `state_hyphen_change_hyphen_issue_hyphen_event`. + public var stateReason: Swift.String? + /// Creates a new `StateChangeIssueEvent`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - actor: /// - event: - /// - commit_id: - /// - commit_url: - /// - created_at: - /// - performed_via_github_app: - /// - state_reason: + /// - commitId: + /// - commitUrl: + /// - createdAt: + /// - performedViaGithubApp: + /// - stateReason: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - actor: Components.Schemas.simple_hyphen_user, + actor: Components.Schemas.SimpleUser, event: Swift.String, - commit_id: Swift.String? = nil, - commit_url: Swift.String? = nil, - created_at: Swift.String, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - state_reason: Swift.String? = nil + commitId: Swift.String? = nil, + commitUrl: Swift.String? = nil, + createdAt: Swift.String, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + stateReason: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.actor = actor self.event = event - self.commit_id = commit_id - self.commit_url = commit_url - self.created_at = created_at - self.performed_via_github_app = performed_via_github_app - self.state_reason = state_reason + self.commitId = commitId + self.commitUrl = commitUrl + self.createdAt = createdAt + self.performedViaGithubApp = performedViaGithubApp + self.stateReason = stateReason } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case actor case event - case commit_id - case commit_url - case created_at - case performed_via_github_app - case state_reason + case commitId = "commit_id" + case commitUrl = "commit_url" + case createdAt = "created_at" + case performedViaGithubApp = "performed_via_github_app" + case stateReason = "state_reason" } } /// Timeline Event /// /// - Remark: Generated from `#/components/schemas/timeline-issue-events`. - public struct timeline_hyphen_issue_hyphen_events: Codable, Hashable, Sendable { + public struct TimelineIssueEvents: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value1`. - public var value1: Components.Schemas.labeled_hyphen_issue_hyphen_event? + public var value1: Components.Schemas.LabeledIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value2`. - public var value2: Components.Schemas.unlabeled_hyphen_issue_hyphen_event? + public var value2: Components.Schemas.UnlabeledIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value3`. - public var value3: Components.Schemas.milestoned_hyphen_issue_hyphen_event? + public var value3: Components.Schemas.MilestonedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value4`. - public var value4: Components.Schemas.demilestoned_hyphen_issue_hyphen_event? + public var value4: Components.Schemas.DemilestonedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value5`. - public var value5: Components.Schemas.renamed_hyphen_issue_hyphen_event? + public var value5: Components.Schemas.RenamedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value6`. - public var value6: Components.Schemas.review_hyphen_requested_hyphen_issue_hyphen_event? + public var value6: Components.Schemas.ReviewRequestedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value7`. - public var value7: Components.Schemas.review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event? + public var value7: Components.Schemas.ReviewRequestRemovedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value8`. - public var value8: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event? + public var value8: Components.Schemas.ReviewDismissedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value9`. - public var value9: Components.Schemas.locked_hyphen_issue_hyphen_event? + public var value9: Components.Schemas.LockedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value10`. - public var value10: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event? + public var value10: Components.Schemas.AddedToProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value11`. - public var value11: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event? + public var value11: Components.Schemas.MovedColumnInProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value12`. - public var value12: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event? + public var value12: Components.Schemas.RemovedFromProjectIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value13`. - public var value13: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event? + public var value13: Components.Schemas.ConvertedNoteToIssueIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value14`. - public var value14: Components.Schemas.timeline_hyphen_comment_hyphen_event? + public var value14: Components.Schemas.TimelineCommentEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value15`. - public var value15: Components.Schemas.timeline_hyphen_cross_hyphen_referenced_hyphen_event? + public var value15: Components.Schemas.TimelineCrossReferencedEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value16`. - public var value16: Components.Schemas.timeline_hyphen_committed_hyphen_event? + public var value16: Components.Schemas.TimelineCommittedEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value17`. - public var value17: Components.Schemas.timeline_hyphen_reviewed_hyphen_event? + public var value17: Components.Schemas.TimelineReviewedEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value18`. - public var value18: Components.Schemas.timeline_hyphen_line_hyphen_commented_hyphen_event? + public var value18: Components.Schemas.TimelineLineCommentedEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value19`. - public var value19: Components.Schemas.timeline_hyphen_commit_hyphen_commented_hyphen_event? + public var value19: Components.Schemas.TimelineCommitCommentedEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value20`. - public var value20: Components.Schemas.timeline_hyphen_assigned_hyphen_issue_hyphen_event? + public var value20: Components.Schemas.TimelineAssignedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value21`. - public var value21: Components.Schemas.timeline_hyphen_unassigned_hyphen_issue_hyphen_event? + public var value21: Components.Schemas.TimelineUnassignedIssueEvent? /// - Remark: Generated from `#/components/schemas/timeline-issue-events/value22`. - public var value22: Components.Schemas.state_hyphen_change_hyphen_issue_hyphen_event? - /// Creates a new `timeline_hyphen_issue_hyphen_events`. + public var value22: Components.Schemas.StateChangeIssueEvent? + /// Creates a new `TimelineIssueEvents`. /// /// - Parameters: /// - value1: @@ -8124,28 +8133,28 @@ public enum Components { /// - value21: /// - value22: public init( - value1: Components.Schemas.labeled_hyphen_issue_hyphen_event? = nil, - value2: Components.Schemas.unlabeled_hyphen_issue_hyphen_event? = nil, - value3: Components.Schemas.milestoned_hyphen_issue_hyphen_event? = nil, - value4: Components.Schemas.demilestoned_hyphen_issue_hyphen_event? = nil, - value5: Components.Schemas.renamed_hyphen_issue_hyphen_event? = nil, - value6: Components.Schemas.review_hyphen_requested_hyphen_issue_hyphen_event? = nil, - value7: Components.Schemas.review_hyphen_request_hyphen_removed_hyphen_issue_hyphen_event? = nil, - value8: Components.Schemas.review_hyphen_dismissed_hyphen_issue_hyphen_event? = nil, - value9: Components.Schemas.locked_hyphen_issue_hyphen_event? = nil, - value10: Components.Schemas.added_hyphen_to_hyphen_project_hyphen_issue_hyphen_event? = nil, - value11: Components.Schemas.moved_hyphen_column_hyphen_in_hyphen_project_hyphen_issue_hyphen_event? = nil, - value12: Components.Schemas.removed_hyphen_from_hyphen_project_hyphen_issue_hyphen_event? = nil, - value13: Components.Schemas.converted_hyphen_note_hyphen_to_hyphen_issue_hyphen_issue_hyphen_event? = nil, - value14: Components.Schemas.timeline_hyphen_comment_hyphen_event? = nil, - value15: Components.Schemas.timeline_hyphen_cross_hyphen_referenced_hyphen_event? = nil, - value16: Components.Schemas.timeline_hyphen_committed_hyphen_event? = nil, - value17: Components.Schemas.timeline_hyphen_reviewed_hyphen_event? = nil, - value18: Components.Schemas.timeline_hyphen_line_hyphen_commented_hyphen_event? = nil, - value19: Components.Schemas.timeline_hyphen_commit_hyphen_commented_hyphen_event? = nil, - value20: Components.Schemas.timeline_hyphen_assigned_hyphen_issue_hyphen_event? = nil, - value21: Components.Schemas.timeline_hyphen_unassigned_hyphen_issue_hyphen_event? = nil, - value22: Components.Schemas.state_hyphen_change_hyphen_issue_hyphen_event? = nil + value1: Components.Schemas.LabeledIssueEvent? = nil, + value2: Components.Schemas.UnlabeledIssueEvent? = nil, + value3: Components.Schemas.MilestonedIssueEvent? = nil, + value4: Components.Schemas.DemilestonedIssueEvent? = nil, + value5: Components.Schemas.RenamedIssueEvent? = nil, + value6: Components.Schemas.ReviewRequestedIssueEvent? = nil, + value7: Components.Schemas.ReviewRequestRemovedIssueEvent? = nil, + value8: Components.Schemas.ReviewDismissedIssueEvent? = nil, + value9: Components.Schemas.LockedIssueEvent? = nil, + value10: Components.Schemas.AddedToProjectIssueEvent? = nil, + value11: Components.Schemas.MovedColumnInProjectIssueEvent? = nil, + value12: Components.Schemas.RemovedFromProjectIssueEvent? = nil, + value13: Components.Schemas.ConvertedNoteToIssueIssueEvent? = nil, + value14: Components.Schemas.TimelineCommentEvent? = nil, + value15: Components.Schemas.TimelineCrossReferencedEvent? = nil, + value16: Components.Schemas.TimelineCommittedEvent? = nil, + value17: Components.Schemas.TimelineReviewedEvent? = nil, + value18: Components.Schemas.TimelineLineCommentedEvent? = nil, + value19: Components.Schemas.TimelineCommitCommentedEvent? = nil, + value20: Components.Schemas.TimelineAssignedIssueEvent? = nil, + value21: Components.Schemas.TimelineUnassignedIssueEvent? = nil, + value22: Components.Schemas.StateChangeIssueEvent? = nil ) { self.value1 = value1 self.value2 = value2 @@ -8173,139 +8182,139 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } do { - value3 = try .init(from: decoder) + self.value3 = try .init(from: decoder) } catch { errors.append(error) } do { - value4 = try .init(from: decoder) + self.value4 = try .init(from: decoder) } catch { errors.append(error) } do { - value5 = try .init(from: decoder) + self.value5 = try .init(from: decoder) } catch { errors.append(error) } do { - value6 = try .init(from: decoder) + self.value6 = try .init(from: decoder) } catch { errors.append(error) } do { - value7 = try .init(from: decoder) + self.value7 = try .init(from: decoder) } catch { errors.append(error) } do { - value8 = try .init(from: decoder) + self.value8 = try .init(from: decoder) } catch { errors.append(error) } do { - value9 = try .init(from: decoder) + self.value9 = try .init(from: decoder) } catch { errors.append(error) } do { - value10 = try .init(from: decoder) + self.value10 = try .init(from: decoder) } catch { errors.append(error) } do { - value11 = try .init(from: decoder) + self.value11 = try .init(from: decoder) } catch { errors.append(error) } do { - value12 = try .init(from: decoder) + self.value12 = try .init(from: decoder) } catch { errors.append(error) } do { - value13 = try .init(from: decoder) + self.value13 = try .init(from: decoder) } catch { errors.append(error) } do { - value14 = try .init(from: decoder) + self.value14 = try .init(from: decoder) } catch { errors.append(error) } do { - value15 = try .init(from: decoder) + self.value15 = try .init(from: decoder) } catch { errors.append(error) } do { - value16 = try .init(from: decoder) + self.value16 = try .init(from: decoder) } catch { errors.append(error) } do { - value17 = try .init(from: decoder) + self.value17 = try .init(from: decoder) } catch { errors.append(error) } do { - value18 = try .init(from: decoder) + self.value18 = try .init(from: decoder) } catch { errors.append(error) } do { - value19 = try .init(from: decoder) + self.value19 = try .init(from: decoder) } catch { errors.append(error) } do { - value20 = try .init(from: decoder) + self.value20 = try .init(from: decoder) } catch { errors.append(error) } do { - value21 = try .init(from: decoder) + self.value21 = try .init(from: decoder) } catch { errors.append(error) } do { - value22 = try .init(from: decoder) + self.value22 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2, - value3, - value4, - value5, - value6, - value7, - value8, - value9, - value10, - value11, - value12, - value13, - value14, - value15, - value16, - value17, - value18, - value19, - value20, - value21, - value22 + self.value1, + self.value2, + self.value3, + self.value4, + self.value5, + self.value6, + self.value7, + self.value8, + self.value9, + self.value10, + self.value11, + self.value12, + self.value13, + self.value14, + self.value15, + self.value16, + self.value17, + self.value18, + self.value19, + self.value20, + self.value21, + self.value22 ], type: Self.self, codingPath: decoder.codingPath, @@ -8313,44 +8322,44 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) - try value3?.encode(to: encoder) - try value4?.encode(to: encoder) - try value5?.encode(to: encoder) - try value6?.encode(to: encoder) - try value7?.encode(to: encoder) - try value8?.encode(to: encoder) - try value9?.encode(to: encoder) - try value10?.encode(to: encoder) - try value11?.encode(to: encoder) - try value12?.encode(to: encoder) - try value13?.encode(to: encoder) - try value14?.encode(to: encoder) - try value15?.encode(to: encoder) - try value16?.encode(to: encoder) - try value17?.encode(to: encoder) - try value18?.encode(to: encoder) - try value19?.encode(to: encoder) - try value20?.encode(to: encoder) - try value21?.encode(to: encoder) - try value22?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) + try self.value3?.encode(to: encoder) + try self.value4?.encode(to: encoder) + try self.value5?.encode(to: encoder) + try self.value6?.encode(to: encoder) + try self.value7?.encode(to: encoder) + try self.value8?.encode(to: encoder) + try self.value9?.encode(to: encoder) + try self.value10?.encode(to: encoder) + try self.value11?.encode(to: encoder) + try self.value12?.encode(to: encoder) + try self.value13?.encode(to: encoder) + try self.value14?.encode(to: encoder) + try self.value15?.encode(to: encoder) + try self.value16?.encode(to: encoder) + try self.value17?.encode(to: encoder) + try self.value18?.encode(to: encoder) + try self.value19?.encode(to: encoder) + try self.value20?.encode(to: encoder) + try self.value21?.encode(to: encoder) + try self.value22?.encode(to: encoder) } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/milestone`. - public struct milestone: Codable, Hashable, Sendable { + public struct Milestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/milestone/number`. @@ -8358,14 +8367,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/milestone/state`. - public var state: Components.Schemas.milestone.statePayload + public var state: Components.Schemas.Milestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/milestone/title`. @@ -8373,90 +8382,90 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `Milestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.milestone.statePayload, + state: Components.Schemas.Milestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } } @@ -8465,72 +8474,72 @@ public enum Components { /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since`. - public typealias since = Foundation.Date + public typealias Since = Foundation.Date /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int64 + public typealias CommentId = Swift.Int64 /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/components/parameters/labels`. - public typealias labels = Swift.String + public typealias Labels = Swift.String /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The number that identifies the issue. /// /// - Remark: Generated from `#/components/parameters/issue-number`. - public typealias issue_hyphen_number = Swift.Int + public typealias IssueNumber = Swift.Int /// The number that identifies the milestone. /// /// - Remark: Generated from `#/components/parameters/milestone-number`. - public typealias milestone_hyphen_number = Swift.Int + public typealias MilestoneNumber = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -8540,25 +8549,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8568,25 +8577,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8600,15 +8609,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -8620,25 +8629,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -8648,29 +8657,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8680,54 +8689,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8737,25 +8746,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct moved_permanently: Sendable, Hashable { + public struct MovedPermanently: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8765,25 +8774,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.moved_permanently.Body - /// Creates a new `moved_permanently`. + public var body: Components.Responses.MovedPermanently.Body + /// Creates a new `MovedPermanently`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.moved_permanently.Body) { + public init(body: Components.Responses.MovedPermanently.Body) { self.body = body } } - public struct gone: Sendable, Hashable { + public struct Gone: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8793,12 +8802,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.gone.Body - /// Creates a new `gone`. + public var body: Components.Responses.Gone.Body + /// Creates a new `Gone`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.gone.Body) { + public init(body: Components.Responses.Gone.Body) { self.body = body } } @@ -8806,7 +8815,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -8830,13 +8839,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /issues`. /// - Remark: Generated from `#/paths//issues/get(issues/list)`. - public enum issues_sol_list { + public enum IssuesList { public static let id: Swift.String = "issues/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/issues/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/issues/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case assigned = "assigned" case created = "created" case mentioned = "mentioned" @@ -8847,9 +8856,9 @@ public enum Operations { /// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. /// /// - Remark: Generated from `#/paths/issues/GET/query/filter`. - public var filter: Operations.issues_sol_list.Input.Query.filterPayload? + public var filter: Operations.IssuesList.Input.Query.FilterPayload? /// - Remark: Generated from `#/paths/issues/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -8857,13 +8866,13 @@ public enum Operations { /// Indicates the state of the issues to return. /// /// - Remark: Generated from `#/paths/issues/GET/query/state`. - public var state: Operations.issues_sol_list.Input.Query.statePayload? + public var state: Operations.IssuesList.Input.Query.StatePayload? /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/paths/issues/GET/query/labels`. - public var labels: Components.Parameters.labels? + public var labels: Components.Parameters.Labels? /// - Remark: Generated from `#/paths/issues/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case comments = "comments" @@ -8871,20 +8880,20 @@ public enum Operations { /// What to sort results by. /// /// - Remark: Generated from `#/paths/issues/GET/query/sort`. - public var sort: Operations.issues_sol_list.Input.Query.sortPayload? + public var sort: Operations.IssuesList.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/issues/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/issues/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// - Remark: Generated from `#/paths/issues/GET/query/collab`. public var collab: Swift.Bool? /// - Remark: Generated from `#/paths/issues/GET/query/orgs`. @@ -8896,11 +8905,11 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -8914,21 +8923,21 @@ public enum Operations { /// - orgs: /// - owned: /// - pulls: - /// - 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)." + /// - perPage: 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)." public init( - filter: Operations.issues_sol_list.Input.Query.filterPayload? = nil, - state: Operations.issues_sol_list.Input.Query.statePayload? = nil, - labels: Components.Parameters.labels? = nil, - sort: Operations.issues_sol_list.Input.Query.sortPayload? = nil, - direction: Components.Parameters.direction? = nil, - since: Components.Parameters.since? = nil, + filter: Operations.IssuesList.Input.Query.FilterPayload? = nil, + state: Operations.IssuesList.Input.Query.StatePayload? = nil, + labels: Components.Parameters.Labels? = nil, + sort: Operations.IssuesList.Input.Query.SortPayload? = nil, + direction: Components.Parameters.Direction? = nil, + since: Components.Parameters.Since? = nil, collab: Swift.Bool? = nil, orgs: Swift.Bool? = nil, owned: Swift.Bool? = nil, pulls: Swift.Bool? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter self.state = state @@ -8940,31 +8949,31 @@ public enum Operations { self.orgs = orgs self.owned = owned self.pulls = pulls - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list.Input.Query + public var query: Operations.IssuesList.Input.Query /// - Remark: Generated from `#/paths/issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list.Input.Headers + public var headers: Operations.IssuesList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.issues_sol_list.Input.Query = .init(), - headers: Operations.issues_sol_list.Input.Headers = .init() + query: Operations.IssuesList.Input.Query = .init(), + headers: Operations.IssuesList.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8975,26 +8984,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/issues/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/issues/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list.Output.Ok.Headers + public var headers: Operations.IssuesList.Output.Ok.Headers /// - Remark: Generated from `#/paths/issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/issues/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue]) + case json([Components.Schemas.Issue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue] { + public var json: [Components.Schemas.Issue] { get throws { switch self { case let .json(body): @@ -9004,15 +9013,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list.Output.Ok.Body + public var body: Operations.IssuesList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list.Output.Ok.Body + headers: Operations.IssuesList.Output.Ok.Headers = .init(), + body: Operations.IssuesList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9023,12 +9032,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//issues/get(issues/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list.Output.Ok) + case ok(Operations.IssuesList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list.Output.Ok { + public var ok: Operations.IssuesList.Output.Ok { get throws { switch self { case let .ok(response): @@ -9046,12 +9055,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//issues/get(issues/list)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9069,12 +9078,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//issues/get(issues/list)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//issues/get(issues/list)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9092,12 +9109,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//issues/get(issues/list)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9157,7 +9174,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/issues`. /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)`. - public enum issues_sol_list_hyphen_for_hyphen_org { + public enum IssuesListForOrg { public static let id: Swift.String = "issues/list-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/path`. @@ -9165,20 +9182,20 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Path + public var path: Operations.IssuesListForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case assigned = "assigned" case created = "created" case mentioned = "mentioned" @@ -9189,9 +9206,9 @@ public enum Operations { /// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/filter`. - public var filter: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.filterPayload? + public var filter: Operations.IssuesListForOrg.Input.Query.FilterPayload? /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -9199,17 +9216,17 @@ public enum Operations { /// Indicates the state of the issues to return. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/state`. - public var state: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.statePayload? + public var state: Operations.IssuesListForOrg.Input.Query.StatePayload? /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/labels`. - public var labels: Components.Parameters.labels? + public var labels: Components.Parameters.Labels? /// Can be the name of an issue type. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/type`. public var _type: Swift.String? /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case comments = "comments" @@ -9217,28 +9234,28 @@ public enum Operations { /// What to sort results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/sort`. - public var sort: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.sortPayload? + public var sort: Operations.IssuesListForOrg.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -9249,18 +9266,18 @@ public enum Operations { /// - sort: What to sort results by. /// - direction: The direction to sort the results by. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - filter: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.filterPayload? = nil, - state: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.statePayload? = nil, - labels: Components.Parameters.labels? = nil, + filter: Operations.IssuesListForOrg.Input.Query.FilterPayload? = nil, + state: Operations.IssuesListForOrg.Input.Query.StatePayload? = nil, + labels: Components.Parameters.Labels? = nil, _type: Swift.String? = nil, - sort: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query.sortPayload? = nil, - direction: Components.Parameters.direction? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.IssuesListForOrg.Input.Query.SortPayload? = nil, + direction: Components.Parameters.Direction? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter self.state = state @@ -9269,23 +9286,23 @@ public enum Operations { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query + public var query: Operations.IssuesListForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.IssuesListForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9293,9 +9310,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.IssuesListForOrg.Input.Path, + query: Operations.IssuesListForOrg.Input.Query = .init(), + headers: Operations.IssuesListForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -9307,26 +9324,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.IssuesListForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issues/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue]) + case json([Components.Schemas.Issue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue] { + public var json: [Components.Schemas.Issue] { get throws { switch self { case let .json(body): @@ -9336,15 +9353,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.IssuesListForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.IssuesListForOrg.Output.Ok.Headers = .init(), + body: Operations.IssuesListForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9355,12 +9372,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.IssuesListForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.IssuesListForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -9378,12 +9395,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issues/get(issues/list-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9433,7 +9450,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)`. - public enum issues_sol_list_hyphen_assignees { + public enum IssuesListAssignees { public static let id: Swift.String = "issues/list-assignees" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/path`. @@ -9441,61 +9458,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_assignees.Input.Path + public var path: Operations.IssuesListAssignees.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_assignees.Input.Query + public var query: Operations.IssuesListAssignees.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_assignees.Input.Headers + public var headers: Operations.IssuesListAssignees.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9503,9 +9520,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_assignees.Input.Path, - query: Operations.issues_sol_list_hyphen_assignees.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_assignees.Input.Headers = .init() + path: Operations.IssuesListAssignees.Input.Path, + query: Operations.IssuesListAssignees.Input.Query = .init(), + headers: Operations.IssuesListAssignees.Input.Headers = .init() ) { self.path = path self.query = query @@ -9517,26 +9534,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Headers + public var headers: Operations.IssuesListAssignees.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -9546,15 +9563,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Body + public var body: Operations.IssuesListAssignees.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_assignees.Output.Ok.Body + headers: Operations.IssuesListAssignees.Output.Ok.Headers = .init(), + body: Operations.IssuesListAssignees.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9565,12 +9582,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_assignees.Output.Ok) + case ok(Operations.IssuesListAssignees.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_assignees.Output.Ok { + public var ok: Operations.IssuesListAssignees.Output.Ok { get throws { switch self { case let .ok(response): @@ -9588,12 +9605,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/get(issues/list-assignees)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9647,7 +9664,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)`. - public enum issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned { + public enum IssuesCheckUserCanBeAssigned { public static let id: Swift.String = "issues/check-user-can-be-assigned" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/path`. @@ -9655,11 +9672,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/path/assignee`. public var assignee: Swift.String /// Creates a new `Path`. @@ -9669,8 +9686,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - assignee: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, assignee: Swift.String ) { self.owner = owner @@ -9678,27 +9695,27 @@ public enum Operations { self.assignee = assignee } } - public var path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Path + public var path: Operations.IssuesCheckUserCanBeAssigned.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Headers + public var headers: Operations.IssuesCheckUserCanBeAssigned.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Path, - headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Input.Headers = .init() + path: Operations.IssuesCheckUserCanBeAssigned.Input.Path, + headers: Operations.IssuesCheckUserCanBeAssigned.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9714,12 +9731,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NoContent) + case noContent(Operations.IssuesCheckUserCanBeAssigned.Output.NoContent) + /// If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NoContent { + public var noContent: Operations.IssuesCheckUserCanBeAssigned.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9736,12 +9761,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/assignees/{assignee}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -9751,12 +9776,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NotFound.Body + public var body: Operations.IssuesCheckUserCanBeAssigned.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NotFound.Body) { + public init(body: Operations.IssuesCheckUserCanBeAssigned.Output.NotFound.Body) { self.body = body } } @@ -9765,12 +9790,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/assignees/{assignee}/get(issues/check-user-can-be-assigned)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NotFound) + case notFound(Operations.IssuesCheckUserCanBeAssigned.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned.Output.NotFound { + public var notFound: Operations.IssuesCheckUserCanBeAssigned.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9830,7 +9855,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)`. - public enum issues_sol_list_hyphen_for_hyphen_repo { + public enum IssuesListForRepo { public static let id: Swift.String = "issues/list-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/path`. @@ -9838,25 +9863,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.IssuesListForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query`. public struct Query: Sendable, Hashable { /// If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. @@ -9864,7 +9889,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/milestone`. public var milestone: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -9872,7 +9897,7 @@ public enum Operations { /// Indicates the state of the issues to return. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/state`. - public var state: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query.statePayload? + public var state: Operations.IssuesListForRepo.Input.Query.StatePayload? /// Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/assignee`. @@ -9892,9 +9917,9 @@ public enum Operations { /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/labels`. - public var labels: Components.Parameters.labels? + public var labels: Components.Parameters.Labels? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case comments = "comments" @@ -9902,28 +9927,28 @@ public enum Operations { /// What to sort results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/sort`. - public var sort: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query.sortPayload? + public var sort: Operations.IssuesListForRepo.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -9937,21 +9962,21 @@ public enum Operations { /// - sort: What to sort results by. /// - direction: The direction to sort the results by. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( milestone: Swift.String? = nil, - state: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query.statePayload? = nil, + state: Operations.IssuesListForRepo.Input.Query.StatePayload? = nil, assignee: Swift.String? = nil, _type: Swift.String? = nil, creator: Swift.String? = nil, mentioned: Swift.String? = nil, - labels: Components.Parameters.labels? = nil, - sort: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query.sortPayload? = nil, - direction: Components.Parameters.direction? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + labels: Components.Parameters.Labels? = nil, + sort: Operations.IssuesListForRepo.Input.Query.SortPayload? = nil, + direction: Components.Parameters.Direction? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.milestone = milestone self.state = state @@ -9963,23 +9988,23 @@ public enum Operations { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.IssuesListForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.IssuesListForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9987,9 +10012,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.IssuesListForRepo.Input.Path, + query: Operations.IssuesListForRepo.Input.Query = .init(), + headers: Operations.IssuesListForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -10001,26 +10026,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.IssuesListForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue]) + case json([Components.Schemas.Issue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue] { + public var json: [Components.Schemas.Issue] { get throws { switch self { case let .json(body): @@ -10030,15 +10055,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.IssuesListForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.IssuesListForRepo.Output.Ok.Headers = .init(), + body: Operations.IssuesListForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10049,12 +10074,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.IssuesListForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.IssuesListForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -10072,12 +10097,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -10095,12 +10120,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -10118,12 +10143,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/get(issues/list-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10183,7 +10208,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)`. - public enum issues_sol_create { + public enum IssuesCreate { public static let id: Swift.String = "issues/create" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/path`. @@ -10191,45 +10216,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_create.Input.Path + public var path: Operations.IssuesCreate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_create.Input.Headers + public var headers: Operations.IssuesCreate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/title`. - @frozen public enum titlePayload: Codable, Hashable, Sendable { + @frozen public enum TitlePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/title/case1`. case case1(Swift.String) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/title/case2`. @@ -10266,7 +10291,7 @@ public enum Operations { /// The title of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/title`. - public var title: Operations.issues_sol_create.Input.Body.jsonPayload.titlePayload + public var title: Operations.IssuesCreate.Input.Body.JsonPayload.TitlePayload /// The contents of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/body`. @@ -10276,7 +10301,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/assignee`. public var assignee: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/milestone`. - @frozen public enum milestonePayload: Codable, Hashable, Sendable { + @frozen public enum MilestonePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/milestone/case1`. case case1(Swift.String) /// The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ @@ -10313,20 +10338,20 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/milestone`. - public var milestone: Operations.issues_sol_create.Input.Body.jsonPayload.milestonePayload? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload`. - @frozen public enum labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case1`. + public var milestone: Operations.IssuesCreate.Input.Body.JsonPayload.MilestonePayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload`. + @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case1`. case case1(Swift.String) - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2`. public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2/id`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2/name`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2/name`. public var name: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2/description`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2/description`. public var description: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2/color`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2/color`. public var color: Swift.String? /// Creates a new `Case2Payload`. /// @@ -10353,8 +10378,8 @@ public enum Operations { case color } } - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labelsPayload/case2`. - case case2(Operations.issues_sol_create.Input.Body.jsonPayload.labelsPayloadPayload.Case2Payload) + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/LabelsPayload/case2`. + case case2(Operations.IssuesCreate.Input.Body.JsonPayload.LabelsPayloadPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -10387,11 +10412,11 @@ public enum Operations { /// Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labels`. - public typealias labelsPayload = [Operations.issues_sol_create.Input.Body.jsonPayload.labelsPayloadPayload] + public typealias LabelsPayload = [Operations.IssuesCreate.Input.Body.JsonPayload.LabelsPayloadPayload] /// Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/labels`. - public var labels: Operations.issues_sol_create.Input.Body.jsonPayload.labelsPayload? + public var labels: Operations.IssuesCreate.Input.Body.JsonPayload.LabelsPayload? /// Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/assignees`. @@ -10400,7 +10425,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/type`. public var _type: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the issue. @@ -10411,11 +10436,11 @@ public enum Operations { /// - assignees: Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ /// - _type: The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._ public init( - title: Operations.issues_sol_create.Input.Body.jsonPayload.titlePayload, + title: Operations.IssuesCreate.Input.Body.JsonPayload.TitlePayload, body: Swift.String? = nil, assignee: Swift.String? = nil, - milestone: Operations.issues_sol_create.Input.Body.jsonPayload.milestonePayload? = nil, - labels: Operations.issues_sol_create.Input.Body.jsonPayload.labelsPayload? = nil, + milestone: Operations.IssuesCreate.Input.Body.JsonPayload.MilestonePayload? = nil, + labels: Operations.IssuesCreate.Input.Body.JsonPayload.LabelsPayload? = nil, assignees: [Swift.String]? = nil, _type: Swift.String? = nil ) { @@ -10438,9 +10463,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_create.Input.Body.jsonPayload) + case json(Operations.IssuesCreate.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_create.Input.Body + public var body: Operations.IssuesCreate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -10448,9 +10473,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_create.Input.Path, - headers: Operations.issues_sol_create.Input.Headers = .init(), - body: Operations.issues_sol_create.Input.Body + path: Operations.IssuesCreate.Input.Path, + headers: Operations.IssuesCreate.Input.Headers = .init(), + body: Operations.IssuesCreate.Input.Body ) { self.path = path self.headers = headers @@ -10462,26 +10487,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_create.Output.Created.Headers + public var headers: Operations.IssuesCreate.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/responses/201/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -10491,15 +10516,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_create.Output.Created.Body + public var body: Operations.IssuesCreate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_create.Output.Created.Headers = .init(), - body: Operations.issues_sol_create.Output.Created.Body + headers: Operations.IssuesCreate.Output.Created.Headers = .init(), + body: Operations.IssuesCreate.Output.Created.Body ) { self.headers = headers self.body = body @@ -10510,12 +10535,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_create.Output.Created) + case created(Operations.IssuesCreate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_create.Output.Created { + public var created: Operations.IssuesCreate.Output.Created { get throws { switch self { case let .created(response): @@ -10533,12 +10558,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -10556,12 +10581,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10579,12 +10604,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -10602,12 +10627,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -10625,12 +10650,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10648,12 +10673,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/post(issues/create)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -10673,14 +10698,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -10691,14 +10716,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -10718,7 +10743,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)`. - public enum issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo { + public enum IssuesListCommentsForRepo { public static let id: Swift.String = "issues/list-comments-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/path`. @@ -10726,92 +10751,92 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.IssuesListCommentsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/sort`. - public var sort: Components.Parameters.sort? + public var sort: Components.Parameters.Sort? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// Either `asc` or `desc`. Ignored without the `sort` parameter. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/direction`. - public var direction: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.directionPayload? + public var direction: Operations.IssuesListCommentsForRepo.Input.Query.DirectionPayload? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. /// - direction: Either `asc` or `desc`. Ignored without the `sort` parameter. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort? = nil, - direction: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.directionPayload? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.Sort? = nil, + direction: Operations.IssuesListCommentsForRepo.Input.Query.DirectionPayload? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.IssuesListCommentsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.IssuesListCommentsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10819,9 +10844,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.IssuesListCommentsForRepo.Input.Path, + query: Operations.IssuesListCommentsForRepo.Input.Query = .init(), + headers: Operations.IssuesListCommentsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -10833,26 +10858,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.IssuesListCommentsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue_hyphen_comment]) + case json([Components.Schemas.IssueComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue_hyphen_comment] { + public var json: [Components.Schemas.IssueComment] { get throws { switch self { case let .json(body): @@ -10862,15 +10887,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.IssuesListCommentsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.IssuesListCommentsForRepo.Output.Ok.Headers = .init(), + body: Operations.IssuesListCommentsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10881,12 +10906,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.IssuesListCommentsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.IssuesListCommentsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -10904,12 +10929,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -10927,12 +10952,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/get(issues/list-comments-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10989,7 +11014,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)`. - public enum issues_sol_get_hyphen_comment { + public enum IssuesGetComment { public static let id: Swift.String = "issues/get-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/path`. @@ -10997,52 +11022,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.issues_sol_get_hyphen_comment.Input.Path + public var path: Operations.IssuesGetComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_get_hyphen_comment.Input.Headers + public var headers: Operations.IssuesGetComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_get_hyphen_comment.Input.Path, - headers: Operations.issues_sol_get_hyphen_comment.Input.Headers = .init() + path: Operations.IssuesGetComment.Input.Path, + headers: Operations.IssuesGetComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11053,12 +11078,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.issue_hyphen_comment) + case json(Components.Schemas.IssueComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_comment { + public var json: Components.Schemas.IssueComment { get throws { switch self { case let .json(body): @@ -11068,12 +11093,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_get_hyphen_comment.Output.Ok.Body + public var body: Operations.IssuesGetComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_get_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.IssuesGetComment.Output.Ok.Body) { self.body = body } } @@ -11082,12 +11107,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_get_hyphen_comment.Output.Ok) + case ok(Operations.IssuesGetComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_get_hyphen_comment.Output.Ok { + public var ok: Operations.IssuesGetComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -11105,12 +11130,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/get(issues/get-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11167,7 +11192,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)`. - public enum issues_sol_update_hyphen_comment { + public enum IssuesUpdateComment { public static let id: Swift.String = "issues/update-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/path`. @@ -11175,53 +11200,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.issues_sol_update_hyphen_comment.Input.Path + public var path: Operations.IssuesUpdateComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_update_hyphen_comment.Input.Headers + public var headers: Operations.IssuesUpdateComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The contents of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The contents of the comment. @@ -11233,9 +11258,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.issues_sol_update_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.IssuesUpdateComment.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_update_hyphen_comment.Input.Body + public var body: Operations.IssuesUpdateComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11243,9 +11268,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_update_hyphen_comment.Input.Path, - headers: Operations.issues_sol_update_hyphen_comment.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_comment.Input.Body + path: Operations.IssuesUpdateComment.Input.Path, + headers: Operations.IssuesUpdateComment.Input.Headers = .init(), + body: Operations.IssuesUpdateComment.Input.Body ) { self.path = path self.headers = headers @@ -11257,12 +11282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.issue_hyphen_comment) + case json(Components.Schemas.IssueComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_comment { + public var json: Components.Schemas.IssueComment { get throws { switch self { case let .json(body): @@ -11272,12 +11297,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_update_hyphen_comment.Output.Ok.Body + public var body: Operations.IssuesUpdateComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_update_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.IssuesUpdateComment.Output.Ok.Body) { self.body = body } } @@ -11286,12 +11311,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_update_hyphen_comment.Output.Ok) + case ok(Operations.IssuesUpdateComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_update_hyphen_comment.Output.Ok { + public var ok: Operations.IssuesUpdateComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -11309,12 +11334,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/patch(issues/update-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11364,7 +11389,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)`. - public enum issues_sol_delete_hyphen_comment { + public enum IssuesDeleteComment { public static let id: Swift.String = "issues/delete-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/DELETE/path`. @@ -11372,37 +11397,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.issues_sol_delete_hyphen_comment.Input.Path + public var path: Operations.IssuesDeleteComment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.issues_sol_delete_hyphen_comment.Input.Path) { + public init(path: Operations.IssuesDeleteComment.Input.Path) { self.path = path } } @@ -11416,12 +11441,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_delete_hyphen_comment.Output.NoContent) + case noContent(Operations.IssuesDeleteComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/delete(issues/delete-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_delete_hyphen_comment.Output.NoContent { + public var noContent: Operations.IssuesDeleteComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11446,7 +11479,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)`. - public enum issues_sol_list_hyphen_events_hyphen_for_hyphen_repo { + public enum IssuesListEventsForRepo { public static let id: Swift.String = "issues/list-events-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/path`. @@ -11454,61 +11487,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.IssuesListEventsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.IssuesListEventsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.IssuesListEventsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11516,9 +11549,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.IssuesListEventsForRepo.Input.Path, + query: Operations.IssuesListEventsForRepo.Input.Query = .init(), + headers: Operations.IssuesListEventsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -11530,26 +11563,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.IssuesListEventsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue_hyphen_event]) + case json([Components.Schemas.IssueEvent]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue_hyphen_event] { + public var json: [Components.Schemas.IssueEvent] { get throws { switch self { case let .json(body): @@ -11559,15 +11592,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.IssuesListEventsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.IssuesListEventsForRepo.Output.Ok.Headers = .init(), + body: Operations.IssuesListEventsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11578,12 +11611,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.IssuesListEventsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.IssuesListEventsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -11601,12 +11634,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/get(issues/list-events-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11656,7 +11689,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/events/{event_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)`. - public enum issues_sol_get_hyphen_event { + public enum IssuesGetEvent { public static let id: Swift.String = "issues/get-event" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/path`. @@ -11664,50 +11697,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/path/event_id`. - public var event_id: Swift.Int + public var eventId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - event_id: + /// - eventId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - event_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + eventId: Swift.Int ) { self.owner = owner self.repo = repo - self.event_id = event_id + self.eventId = eventId } } - public var path: Operations.issues_sol_get_hyphen_event.Input.Path + public var path: Operations.IssuesGetEvent.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_get_hyphen_event.Input.Headers + public var headers: Operations.IssuesGetEvent.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_get_hyphen_event.Input.Path, - headers: Operations.issues_sol_get_hyphen_event.Input.Headers = .init() + path: Operations.IssuesGetEvent.Input.Path, + headers: Operations.IssuesGetEvent.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11718,12 +11751,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/events/{event_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.issue_hyphen_event) + case json(Components.Schemas.IssueEvent) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_event { + public var json: Components.Schemas.IssueEvent { get throws { switch self { case let .json(body): @@ -11733,12 +11766,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_get_hyphen_event.Output.Ok.Body + public var body: Operations.IssuesGetEvent.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_get_hyphen_event.Output.Ok.Body) { + public init(body: Operations.IssuesGetEvent.Output.Ok.Body) { self.body = body } } @@ -11747,12 +11780,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_get_hyphen_event.Output.Ok) + case ok(Operations.IssuesGetEvent.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_get_hyphen_event.Output.Ok { + public var ok: Operations.IssuesGetEvent.Output.Ok { get throws { switch self { case let .ok(response): @@ -11770,12 +11803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11793,12 +11826,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -11816,12 +11849,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/events/{event_id}/get(issues/get-event)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11886,7 +11919,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)`. - public enum issues_sol_get { + public enum IssuesGet { public static let id: Swift.String = "issues/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/path`. @@ -11894,52 +11927,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_get.Input.Path + public var path: Operations.IssuesGet.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_get.Input.Headers + public var headers: Operations.IssuesGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_get.Input.Path, - headers: Operations.issues_sol_get.Input.Headers = .init() + path: Operations.IssuesGet.Input.Path, + headers: Operations.IssuesGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11950,12 +11983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -11965,12 +11998,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_get.Output.Ok.Body + public var body: Operations.IssuesGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_get.Output.Ok.Body) { + public init(body: Operations.IssuesGet.Output.Ok.Body) { self.body = body } } @@ -11979,12 +12012,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_get.Output.Ok) + case ok(Operations.IssuesGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_get.Output.Ok { + public var ok: Operations.IssuesGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -12002,12 +12035,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -12025,12 +12058,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -12048,12 +12081,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -12071,12 +12104,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/get(issues/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -12133,7 +12174,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)`. - public enum issues_sol_update { + public enum IssuesUpdate { public static let id: Swift.String = "issues/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/path`. @@ -12141,52 +12182,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_update.Input.Path + public var path: Operations.IssuesUpdate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_update.Input.Headers + public var headers: Operations.IssuesUpdate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/title`. - @frozen public enum titlePayload: Codable, Hashable, Sendable { + @frozen public enum TitlePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/title/case1`. case case1(Swift.String) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/title/case2`. @@ -12223,7 +12264,7 @@ public enum Operations { /// The title of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/title`. - public var title: Operations.issues_sol_update.Input.Body.jsonPayload.titlePayload? + public var title: Operations.IssuesUpdate.Input.Body.JsonPayload.TitlePayload? /// The contents of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/body`. @@ -12235,28 +12276,28 @@ public enum Operations { /// The open or closed state of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The open or closed state of the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/state`. - public var state: Operations.issues_sol_update.Input.Body.jsonPayload.statePayload? + public var state: Operations.IssuesUpdate.Input.Body.JsonPayload.StatePayload? /// The reason for the state change. Ignored unless `state` is changed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/state_reason`. - @frozen public enum state_reasonPayload: String, Codable, Hashable, Sendable { + @frozen public enum StateReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { case completed = "completed" - case not_planned = "not_planned" + case notPlanned = "not_planned" case reopened = "reopened" } /// The reason for the state change. Ignored unless `state` is changed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/state_reason`. - public var state_reason: Operations.issues_sol_update.Input.Body.jsonPayload.state_reasonPayload? + public var stateReason: Operations.IssuesUpdate.Input.Body.JsonPayload.StateReasonPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/milestone`. - @frozen public enum milestonePayload: Codable, Hashable, Sendable { + @frozen public enum MilestonePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/milestone/case1`. case case1(Swift.String) /// The `number` of the milestone to associate this issue with or use `null` to remove the current milestone. Only users with push access can set the milestone for issues. Without push access to the repository, milestone changes are silently dropped. @@ -12293,20 +12334,20 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/milestone`. - public var milestone: Operations.issues_sol_update.Input.Body.jsonPayload.milestonePayload? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload`. - @frozen public enum labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case1`. + public var milestone: Operations.IssuesUpdate.Input.Body.JsonPayload.MilestonePayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload`. + @frozen public enum LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case1`. case case1(Swift.String) - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2`. public struct Case2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2/id`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2/name`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2/name`. public var name: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2/description`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2/description`. public var description: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2/color`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2/color`. public var color: Swift.String? /// Creates a new `Case2Payload`. /// @@ -12333,8 +12374,8 @@ public enum Operations { case color } } - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labelsPayload/case2`. - case case2(Operations.issues_sol_update.Input.Body.jsonPayload.labelsPayloadPayload.Case2Payload) + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/LabelsPayload/case2`. + case case2(Operations.IssuesUpdate.Input.Body.JsonPayload.LabelsPayloadPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -12367,11 +12408,11 @@ public enum Operations { /// Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labels`. - public typealias labelsPayload = [Operations.issues_sol_update.Input.Body.jsonPayload.labelsPayloadPayload] + public typealias LabelsPayload = [Operations.IssuesUpdate.Input.Body.JsonPayload.LabelsPayloadPayload] /// Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/labels`. - public var labels: Operations.issues_sol_update.Input.Body.jsonPayload.labelsPayload? + public var labels: Operations.IssuesUpdate.Input.Body.JsonPayload.LabelsPayload? /// Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/assignees`. @@ -12380,26 +12421,26 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/type`. public var _type: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the issue. /// - body: The contents of the issue. /// - assignee: Username to assign to this issue. **This field is closing down.** /// - state: The open or closed state of the issue. - /// - state_reason: The reason for the state change. Ignored unless `state` is changed. + /// - stateReason: The reason for the state change. Ignored unless `state` is changed. /// - milestone: /// - labels: Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped. /// - assignees: Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped. /// - _type: The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped. public init( - title: Operations.issues_sol_update.Input.Body.jsonPayload.titlePayload? = nil, + title: Operations.IssuesUpdate.Input.Body.JsonPayload.TitlePayload? = nil, body: Swift.String? = nil, assignee: Swift.String? = nil, - state: Operations.issues_sol_update.Input.Body.jsonPayload.statePayload? = nil, - state_reason: Operations.issues_sol_update.Input.Body.jsonPayload.state_reasonPayload? = nil, - milestone: Operations.issues_sol_update.Input.Body.jsonPayload.milestonePayload? = nil, - labels: Operations.issues_sol_update.Input.Body.jsonPayload.labelsPayload? = nil, + state: Operations.IssuesUpdate.Input.Body.JsonPayload.StatePayload? = nil, + stateReason: Operations.IssuesUpdate.Input.Body.JsonPayload.StateReasonPayload? = nil, + milestone: Operations.IssuesUpdate.Input.Body.JsonPayload.MilestonePayload? = nil, + labels: Operations.IssuesUpdate.Input.Body.JsonPayload.LabelsPayload? = nil, assignees: [Swift.String]? = nil, _type: Swift.String? = nil ) { @@ -12407,7 +12448,7 @@ public enum Operations { self.body = body self.assignee = assignee self.state = state - self.state_reason = state_reason + self.stateReason = stateReason self.milestone = milestone self.labels = labels self.assignees = assignees @@ -12418,7 +12459,7 @@ public enum Operations { case body case assignee case state - case state_reason + case stateReason = "state_reason" case milestone case labels case assignees @@ -12426,9 +12467,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.issues_sol_update.Input.Body.jsonPayload) + case json(Operations.IssuesUpdate.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_update.Input.Body? + public var body: Operations.IssuesUpdate.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -12436,9 +12477,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_update.Input.Path, - headers: Operations.issues_sol_update.Input.Headers = .init(), - body: Operations.issues_sol_update.Input.Body? = nil + path: Operations.IssuesUpdate.Input.Path, + headers: Operations.IssuesUpdate.Input.Headers = .init(), + body: Operations.IssuesUpdate.Input.Body? = nil ) { self.path = path self.headers = headers @@ -12450,12 +12491,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -12465,12 +12506,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_update.Output.Ok.Body + public var body: Operations.IssuesUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_update.Output.Ok.Body) { + public init(body: Operations.IssuesUpdate.Output.Ok.Body) { self.body = body } } @@ -12479,12 +12520,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_update.Output.Ok) + case ok(Operations.IssuesUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_update.Output.Ok { + public var ok: Operations.IssuesUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -12502,12 +12543,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12525,12 +12566,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -12548,12 +12589,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -12571,12 +12612,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -12594,12 +12635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -12617,12 +12658,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/patch(issues/update)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -12672,7 +12713,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/post(issues/add-assignees)`. - public enum issues_sol_add_hyphen_assignees { + public enum IssuesAddAssignees { public static let id: Swift.String = "issues/add-assignees" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/path`. @@ -12680,53 +12721,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_add_hyphen_assignees.Input.Path + public var path: Operations.IssuesAddAssignees.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_add_hyphen_assignees.Input.Headers + public var headers: Operations.IssuesAddAssignees.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/requestBody/json/assignees`. public var assignees: [Swift.String]? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - assignees: Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ @@ -12738,9 +12779,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_add_hyphen_assignees.Input.Body.jsonPayload) + case json(Operations.IssuesAddAssignees.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_add_hyphen_assignees.Input.Body? + public var body: Operations.IssuesAddAssignees.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -12748,9 +12789,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_add_hyphen_assignees.Input.Path, - headers: Operations.issues_sol_add_hyphen_assignees.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_assignees.Input.Body? = nil + path: Operations.IssuesAddAssignees.Input.Path, + headers: Operations.IssuesAddAssignees.Input.Headers = .init(), + body: Operations.IssuesAddAssignees.Input.Body? = nil ) { self.path = path self.headers = headers @@ -12762,12 +12803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/POST/responses/201/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -12777,12 +12818,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_add_hyphen_assignees.Output.Created.Body + public var body: Operations.IssuesAddAssignees.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_add_hyphen_assignees.Output.Created.Body) { + public init(body: Operations.IssuesAddAssignees.Output.Created.Body) { self.body = body } } @@ -12791,12 +12832,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/post(issues/add-assignees)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_add_hyphen_assignees.Output.Created) + case created(Operations.IssuesAddAssignees.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_add_hyphen_assignees.Output.Created { + public var created: Operations.IssuesAddAssignees.Output.Created { get throws { switch self { case let .created(response): @@ -12846,7 +12887,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/delete(issues/remove-assignees)`. - public enum issues_sol_remove_hyphen_assignees { + public enum IssuesRemoveAssignees { public static let id: Swift.String = "issues/remove-assignees" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/path`. @@ -12854,53 +12895,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_remove_hyphen_assignees.Input.Path + public var path: Operations.IssuesRemoveAssignees.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_remove_hyphen_assignees.Input.Headers + public var headers: Operations.IssuesRemoveAssignees.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/requestBody/json/assignees`. public var assignees: [Swift.String]? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - assignees: Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ @@ -12912,9 +12953,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/requestBody/content/application\/json`. - case json(Operations.issues_sol_remove_hyphen_assignees.Input.Body.jsonPayload) + case json(Operations.IssuesRemoveAssignees.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_remove_hyphen_assignees.Input.Body? + public var body: Operations.IssuesRemoveAssignees.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -12922,9 +12963,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_remove_hyphen_assignees.Input.Path, - headers: Operations.issues_sol_remove_hyphen_assignees.Input.Headers = .init(), - body: Operations.issues_sol_remove_hyphen_assignees.Input.Body? = nil + path: Operations.IssuesRemoveAssignees.Input.Path, + headers: Operations.IssuesRemoveAssignees.Input.Headers = .init(), + body: Operations.IssuesRemoveAssignees.Input.Body? = nil ) { self.path = path self.headers = headers @@ -12936,12 +12977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -12951,12 +12992,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_remove_hyphen_assignees.Output.Ok.Body + public var body: Operations.IssuesRemoveAssignees.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_remove_hyphen_assignees.Output.Ok.Body) { + public init(body: Operations.IssuesRemoveAssignees.Output.Ok.Body) { self.body = body } } @@ -12965,12 +13006,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/delete(issues/remove-assignees)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_remove_hyphen_assignees.Output.Ok) + case ok(Operations.IssuesRemoveAssignees.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_remove_hyphen_assignees.Output.Ok { + public var ok: Operations.IssuesRemoveAssignees.Output.Ok { get throws { switch self { case let .ok(response): @@ -13024,7 +13065,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)`. - public enum issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue { + public enum IssuesCheckUserCanBeAssignedToIssue { public static let id: Swift.String = "issues/check-user-can-be-assigned-to-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/path`. @@ -13032,15 +13073,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/path/assignee`. public var assignee: Swift.String /// Creates a new `Path`. @@ -13048,41 +13089,41 @@ public enum Operations { /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. /// - assignee: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber, assignee: Swift.String ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber self.assignee = assignee } } - public var path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Path + public var path: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Headers + public var headers: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Path, - headers: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Input.Headers = .init() + path: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Path, + headers: Operations.IssuesCheckUserCanBeAssignedToIssue.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -13098,12 +13139,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NoContent) + case noContent(Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NoContent) + /// Response if `assignee` can be assigned to `issue_number` + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NoContent { + public var noContent: Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13120,12 +13169,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -13135,12 +13184,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NotFound.Body + public var body: Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NotFound.Body) { + public init(body: Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NotFound.Body) { self.body = body } } @@ -13149,12 +13198,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}/get(issues/check-user-can-be-assigned-to-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NotFound) + case notFound(Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.issues_sol_check_hyphen_user_hyphen_can_hyphen_be_hyphen_assigned_hyphen_to_hyphen_issue.Output.NotFound { + public var notFound: Operations.IssuesCheckUserCanBeAssignedToIssue.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -13213,7 +13262,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)`. - public enum issues_sol_list_hyphen_comments { + public enum IssuesListComments { public static let id: Swift.String = "issues/list-comments" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/path`. @@ -13221,75 +13270,75 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_list_hyphen_comments.Input.Path + public var path: Operations.IssuesListComments.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/query`. public struct Query: Sendable, Hashable { /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_comments.Input.Query + public var query: Operations.IssuesListComments.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_comments.Input.Headers + public var headers: Operations.IssuesListComments.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13297,9 +13346,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_comments.Input.Path, - query: Operations.issues_sol_list_hyphen_comments.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_comments.Input.Headers = .init() + path: Operations.IssuesListComments.Input.Path, + query: Operations.IssuesListComments.Input.Query = .init(), + headers: Operations.IssuesListComments.Input.Headers = .init() ) { self.path = path self.query = query @@ -13311,26 +13360,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_comments.Output.Ok.Headers + public var headers: Operations.IssuesListComments.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue_hyphen_comment]) + case json([Components.Schemas.IssueComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue_hyphen_comment] { + public var json: [Components.Schemas.IssueComment] { get throws { switch self { case let .json(body): @@ -13340,15 +13389,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_comments.Output.Ok.Body + public var body: Operations.IssuesListComments.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_comments.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_comments.Output.Ok.Body + headers: Operations.IssuesListComments.Output.Ok.Headers = .init(), + body: Operations.IssuesListComments.Output.Ok.Body ) { self.headers = headers self.body = body @@ -13359,12 +13408,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_comments.Output.Ok) + case ok(Operations.IssuesListComments.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_comments.Output.Ok { + public var ok: Operations.IssuesListComments.Output.Ok { get throws { switch self { case let .ok(response): @@ -13382,12 +13431,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13405,12 +13454,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/get(issues/list-comments)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -13472,7 +13521,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)`. - public enum issues_sol_create_hyphen_comment { + public enum IssuesCreateComment { public static let id: Swift.String = "issues/create-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/path`. @@ -13480,53 +13529,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_create_hyphen_comment.Input.Path + public var path: Operations.IssuesCreateComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_create_hyphen_comment.Input.Headers + public var headers: Operations.IssuesCreateComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The contents of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The contents of the comment. @@ -13538,9 +13587,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_create_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.IssuesCreateComment.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_create_hyphen_comment.Input.Body + public var body: Operations.IssuesCreateComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -13548,9 +13597,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_create_hyphen_comment.Input.Path, - headers: Operations.issues_sol_create_hyphen_comment.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_comment.Input.Body + path: Operations.IssuesCreateComment.Input.Path, + headers: Operations.IssuesCreateComment.Input.Headers = .init(), + body: Operations.IssuesCreateComment.Input.Body ) { self.path = path self.headers = headers @@ -13562,26 +13611,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_create_hyphen_comment.Output.Created.Headers + public var headers: Operations.IssuesCreateComment.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.issue_hyphen_comment) + case json(Components.Schemas.IssueComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_comment { + public var json: Components.Schemas.IssueComment { get throws { switch self { case let .json(body): @@ -13591,15 +13640,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_create_hyphen_comment.Output.Created.Body + public var body: Operations.IssuesCreateComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_create_hyphen_comment.Output.Created.Headers = .init(), - body: Operations.issues_sol_create_hyphen_comment.Output.Created.Body + headers: Operations.IssuesCreateComment.Output.Created.Headers = .init(), + body: Operations.IssuesCreateComment.Output.Created.Body ) { self.headers = headers self.body = body @@ -13610,12 +13659,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_create_hyphen_comment.Output.Created) + case created(Operations.IssuesCreateComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_create_hyphen_comment.Output.Created { + public var created: Operations.IssuesCreateComment.Output.Created { get throws { switch self { case let .created(response): @@ -13633,12 +13682,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -13656,12 +13705,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -13679,12 +13728,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -13702,12 +13751,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/comments/post(issues/create-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13757,7 +13806,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)`. - public enum issues_sol_list_hyphen_events { + public enum IssuesListEvents { public static let id: Swift.String = "issues/list-events" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/path`. @@ -13765,68 +13814,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_list_hyphen_events.Input.Path + public var path: Operations.IssuesListEvents.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_events.Input.Query + public var query: Operations.IssuesListEvents.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_events.Input.Headers + public var headers: Operations.IssuesListEvents.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13834,9 +13883,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_events.Input.Path, - query: Operations.issues_sol_list_hyphen_events.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events.Input.Headers = .init() + path: Operations.IssuesListEvents.Input.Path, + query: Operations.IssuesListEvents.Input.Query = .init(), + headers: Operations.IssuesListEvents.Input.Headers = .init() ) { self.path = path self.query = query @@ -13848,26 +13897,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_events.Output.Ok.Headers + public var headers: Operations.IssuesListEvents.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/events/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue_hyphen_event_hyphen_for_hyphen_issue]) + case json([Components.Schemas.IssueEventForIssue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue_hyphen_event_hyphen_for_hyphen_issue] { + public var json: [Components.Schemas.IssueEventForIssue] { get throws { switch self { case let .json(body): @@ -13877,15 +13926,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_events.Output.Ok.Body + public var body: Operations.IssuesListEvents.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_events.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_events.Output.Ok.Body + headers: Operations.IssuesListEvents.Output.Ok.Headers = .init(), + body: Operations.IssuesListEvents.Output.Ok.Body ) { self.headers = headers self.body = body @@ -13896,12 +13945,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_events.Output.Ok) + case ok(Operations.IssuesListEvents.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_events.Output.Ok { + public var ok: Operations.IssuesListEvents.Output.Ok { get throws { switch self { case let .ok(response): @@ -13919,12 +13968,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/events/get(issues/list-events)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -13974,7 +14023,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)`. - public enum issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue { + public enum IssuesListLabelsOnIssue { public static let id: Swift.String = "issues/list-labels-on-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/path`. @@ -13982,68 +14031,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Path + public var path: Operations.IssuesListLabelsOnIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Query + public var query: Operations.IssuesListLabelsOnIssue.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Headers + public var headers: Operations.IssuesListLabelsOnIssue.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14051,9 +14100,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Input.Headers = .init() + path: Operations.IssuesListLabelsOnIssue.Input.Path, + query: Operations.IssuesListLabelsOnIssue.Input.Query = .init(), + headers: Operations.IssuesListLabelsOnIssue.Input.Headers = .init() ) { self.path = path self.query = query @@ -14065,26 +14114,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Headers + public var headers: Operations.IssuesListLabelsOnIssue.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/GET/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -14094,15 +14143,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Body + public var body: Operations.IssuesListLabelsOnIssue.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok.Body + headers: Operations.IssuesListLabelsOnIssue.Output.Ok.Headers = .init(), + body: Operations.IssuesListLabelsOnIssue.Output.Ok.Body ) { self.headers = headers self.body = body @@ -14113,12 +14162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok) + case ok(Operations.IssuesListLabelsOnIssue.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_labels_hyphen_on_hyphen_issue.Output.Ok { + public var ok: Operations.IssuesListLabelsOnIssue.Output.Ok { get throws { switch self { case let .ok(response): @@ -14136,12 +14185,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -14159,12 +14208,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14182,12 +14231,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/get(issues/list-labels-on-issue)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -14237,7 +14286,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)`. - public enum issues_sol_add_hyphen_labels { + public enum IssuesAddLabels { public static let id: Swift.String = "issues/add-labels" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/path`. @@ -14245,48 +14294,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_add_hyphen_labels.Input.Path + public var path: Operations.IssuesAddLabels.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_add_hyphen_labels.Input.Headers + public var headers: Operations.IssuesAddLabels.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)." @@ -14305,16 +14354,16 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case1`. - case case1(Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.IssuesAddLabels.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case2`. case case2([Swift.String]) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3`. public struct Case3Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/labelsPayload/name`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/LabelsPayload/name`. public var name: Swift.String - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - name: @@ -14326,14 +14375,14 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/labels`. - public typealias labelsPayload = [Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayloadPayload] + public typealias LabelsPayload = [Operations.IssuesAddLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3/labels`. - public var labels: Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayload? + public var labels: Operations.IssuesAddLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayload? /// Creates a new `Case3Payload`. /// /// - Parameters: /// - labels: - public init(labels: Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayload? = nil) { + public init(labels: Operations.IssuesAddLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayload? = nil) { self.labels = labels } public enum CodingKeys: String, CodingKey { @@ -14341,7 +14390,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case3`. - case case3(Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case3Payload) + case case3(Operations.IssuesAddLabels.Input.Body.JsonPayload.Case3Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/Case4Payload`. public struct Case4PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/Case4Payload/name`. @@ -14358,9 +14407,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case4`. - public typealias Case4Payload = [Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case4PayloadPayload] + public typealias Case4Payload = [Operations.IssuesAddLabels.Input.Body.JsonPayload.Case4PayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case4`. - case case4(Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload.Case4Payload) + case case4(Operations.IssuesAddLabels.Input.Body.JsonPayload.Case4Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/json/case5`. case case5(Swift.String) public init(from decoder: any Decoder) throws { @@ -14417,9 +14466,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_add_hyphen_labels.Input.Body.jsonPayload) + case json(Operations.IssuesAddLabels.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_add_hyphen_labels.Input.Body? + public var body: Operations.IssuesAddLabels.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -14427,9 +14476,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_add_hyphen_labels.Input.Path, - headers: Operations.issues_sol_add_hyphen_labels.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_labels.Input.Body? = nil + path: Operations.IssuesAddLabels.Input.Path, + headers: Operations.IssuesAddLabels.Input.Headers = .init(), + body: Operations.IssuesAddLabels.Input.Body? = nil ) { self.path = path self.headers = headers @@ -14441,12 +14490,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/POST/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -14456,12 +14505,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_add_hyphen_labels.Output.Ok.Body + public var body: Operations.IssuesAddLabels.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_add_hyphen_labels.Output.Ok.Body) { + public init(body: Operations.IssuesAddLabels.Output.Ok.Body) { self.body = body } } @@ -14470,12 +14519,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_add_hyphen_labels.Output.Ok) + case ok(Operations.IssuesAddLabels.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_add_hyphen_labels.Output.Ok { + public var ok: Operations.IssuesAddLabels.Output.Ok { get throws { switch self { case let .ok(response): @@ -14493,12 +14542,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -14516,12 +14565,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14539,12 +14588,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -14562,12 +14611,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/post(issues/add-labels)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -14617,7 +14666,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)`. - public enum issues_sol_set_hyphen_labels { + public enum IssuesSetLabels { public static let id: Swift.String = "issues/set-labels" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/path`. @@ -14625,48 +14674,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_set_hyphen_labels.Input.Path + public var path: Operations.IssuesSetLabels.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_set_hyphen_labels.Input.Headers + public var headers: Operations.IssuesSetLabels.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)." @@ -14685,16 +14734,16 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case1`. - case case1(Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.IssuesSetLabels.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case2`. case case2([Swift.String]) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3`. public struct Case3Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/labelsPayload/name`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/LabelsPayload/name`. public var name: Swift.String - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - name: @@ -14706,14 +14755,14 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/labels`. - public typealias labelsPayload = [Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayloadPayload] + public typealias LabelsPayload = [Operations.IssuesSetLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3/labels`. - public var labels: Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayload? + public var labels: Operations.IssuesSetLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayload? /// Creates a new `Case3Payload`. /// /// - Parameters: /// - labels: - public init(labels: Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case3Payload.labelsPayload? = nil) { + public init(labels: Operations.IssuesSetLabels.Input.Body.JsonPayload.Case3Payload.LabelsPayload? = nil) { self.labels = labels } public enum CodingKeys: String, CodingKey { @@ -14721,7 +14770,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case3`. - case case3(Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case3Payload) + case case3(Operations.IssuesSetLabels.Input.Body.JsonPayload.Case3Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/Case4Payload`. public struct Case4PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/Case4Payload/name`. @@ -14738,9 +14787,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case4`. - public typealias Case4Payload = [Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case4PayloadPayload] + public typealias Case4Payload = [Operations.IssuesSetLabels.Input.Body.JsonPayload.Case4PayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case4`. - case case4(Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload.Case4Payload) + case case4(Operations.IssuesSetLabels.Input.Body.JsonPayload.Case4Payload) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/json/case5`. case case5(Swift.String) public init(from decoder: any Decoder) throws { @@ -14797,9 +14846,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/requestBody/content/application\/json`. - case json(Operations.issues_sol_set_hyphen_labels.Input.Body.jsonPayload) + case json(Operations.IssuesSetLabels.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_set_hyphen_labels.Input.Body? + public var body: Operations.IssuesSetLabels.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -14807,9 +14856,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_set_hyphen_labels.Input.Path, - headers: Operations.issues_sol_set_hyphen_labels.Input.Headers = .init(), - body: Operations.issues_sol_set_hyphen_labels.Input.Body? = nil + path: Operations.IssuesSetLabels.Input.Path, + headers: Operations.IssuesSetLabels.Input.Headers = .init(), + body: Operations.IssuesSetLabels.Input.Body? = nil ) { self.path = path self.headers = headers @@ -14821,12 +14870,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/PUT/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -14836,12 +14885,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_set_hyphen_labels.Output.Ok.Body + public var body: Operations.IssuesSetLabels.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_set_hyphen_labels.Output.Ok.Body) { + public init(body: Operations.IssuesSetLabels.Output.Ok.Body) { self.body = body } } @@ -14850,12 +14899,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_set_hyphen_labels.Output.Ok) + case ok(Operations.IssuesSetLabels.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_set_hyphen_labels.Output.Ok { + public var ok: Operations.IssuesSetLabels.Output.Ok { get throws { switch self { case let .ok(response): @@ -14873,12 +14922,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -14896,12 +14945,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14919,12 +14968,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -14942,12 +14991,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/put(issues/set-labels)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -14997,7 +15046,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)`. - public enum issues_sol_remove_hyphen_all_hyphen_labels { + public enum IssuesRemoveAllLabels { public static let id: Swift.String = "issues/remove-all-labels" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/DELETE/path`. @@ -15005,52 +15054,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Path + public var path: Operations.IssuesRemoveAllLabels.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Headers + public var headers: Operations.IssuesRemoveAllLabels.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Path, - headers: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Input.Headers = .init() + path: Operations.IssuesRemoveAllLabels.Input.Path, + headers: Operations.IssuesRemoveAllLabels.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15066,12 +15115,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_remove_hyphen_all_hyphen_labels.Output.NoContent) + case noContent(Operations.IssuesRemoveAllLabels.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_remove_hyphen_all_hyphen_labels.Output.NoContent { + public var noContent: Operations.IssuesRemoveAllLabels.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15089,12 +15146,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -15112,12 +15169,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15135,12 +15192,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/delete(issues/remove-all-labels)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -15190,7 +15247,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)`. - public enum issues_sol_remove_hyphen_label { + public enum IssuesRemoveLabel { public static let id: Swift.String = "issues/remove-label" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/path`. @@ -15198,15 +15255,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/path/name`. public var name: Swift.String /// Creates a new `Path`. @@ -15214,41 +15271,41 @@ public enum Operations { /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. /// - name: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber, name: Swift.String ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber self.name = name } } - public var path: Operations.issues_sol_remove_hyphen_label.Input.Path + public var path: Operations.IssuesRemoveLabel.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_remove_hyphen_label.Input.Headers + public var headers: Operations.IssuesRemoveLabel.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_remove_hyphen_label.Input.Path, - headers: Operations.issues_sol_remove_hyphen_label.Input.Headers = .init() + path: Operations.IssuesRemoveLabel.Input.Path, + headers: Operations.IssuesRemoveLabel.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15259,12 +15316,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/DELETE/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -15274,12 +15331,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_remove_hyphen_label.Output.Ok.Body + public var body: Operations.IssuesRemoveLabel.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_remove_hyphen_label.Output.Ok.Body) { + public init(body: Operations.IssuesRemoveLabel.Output.Ok.Body) { self.body = body } } @@ -15288,12 +15345,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_remove_hyphen_label.Output.Ok) + case ok(Operations.IssuesRemoveLabel.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_remove_hyphen_label.Output.Ok { + public var ok: Operations.IssuesRemoveLabel.Output.Ok { get throws { switch self { case let .ok(response): @@ -15311,12 +15368,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -15334,12 +15391,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15357,12 +15414,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/labels/{name}/delete(issues/remove-label)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -15414,7 +15471,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)`. - public enum issues_sol_lock { + public enum IssuesLock { public static let id: Swift.String = "issues/lock" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/path`. @@ -15422,48 +15479,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_lock.Input.Path + public var path: Operations.IssuesLock.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_lock.Input.Headers + public var headers: Operations.IssuesLock.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: /// * `off-topic` /// * `too heated` @@ -15471,9 +15528,9 @@ public enum Operations { /// * `spam` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/requestBody/json/lock_reason`. - @frozen public enum lock_reasonPayload: String, Codable, Hashable, Sendable { - case off_hyphen_topic = "off-topic" - case too_space_heated = "too heated" + @frozen public enum LockReasonPayload: String, Codable, Hashable, Sendable, CaseIterable { + case offTopic = "off-topic" + case tooHeated = "too heated" case resolved = "resolved" case spam = "spam" } @@ -15484,22 +15541,22 @@ public enum Operations { /// * `spam` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/requestBody/json/lock_reason`. - public var lock_reason: Operations.issues_sol_lock.Input.Body.jsonPayload.lock_reasonPayload? - /// Creates a new `jsonPayload`. + public var lockReason: Operations.IssuesLock.Input.Body.JsonPayload.LockReasonPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - lock_reason: The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: - public init(lock_reason: Operations.issues_sol_lock.Input.Body.jsonPayload.lock_reasonPayload? = nil) { - self.lock_reason = lock_reason + /// - lockReason: The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: + public init(lockReason: Operations.IssuesLock.Input.Body.JsonPayload.LockReasonPayload? = nil) { + self.lockReason = lockReason } public enum CodingKeys: String, CodingKey { - case lock_reason + case lockReason = "lock_reason" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/PUT/requestBody/content/application\/json`. - case json(Operations.issues_sol_lock.Input.Body.jsonPayload) + case json(Operations.IssuesLock.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_lock.Input.Body? + public var body: Operations.IssuesLock.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -15507,9 +15564,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_lock.Input.Path, - headers: Operations.issues_sol_lock.Input.Headers = .init(), - body: Operations.issues_sol_lock.Input.Body? = nil + path: Operations.IssuesLock.Input.Path, + headers: Operations.IssuesLock.Input.Headers = .init(), + body: Operations.IssuesLock.Input.Body? = nil ) { self.path = path self.headers = headers @@ -15526,12 +15583,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_lock.Output.NoContent) + case noContent(Operations.IssuesLock.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_lock.Output.NoContent { + public var noContent: Operations.IssuesLock.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15549,12 +15614,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15572,12 +15637,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -15595,12 +15660,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15618,12 +15683,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/put(issues/lock)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -15673,7 +15738,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)`. - public enum issues_sol_unlock { + public enum IssuesUnlock { public static let id: Swift.String = "issues/unlock" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/DELETE/path`. @@ -15681,52 +15746,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_unlock.Input.Path + public var path: Operations.IssuesUnlock.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/lock/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_unlock.Input.Headers + public var headers: Operations.IssuesUnlock.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_unlock.Input.Path, - headers: Operations.issues_sol_unlock.Input.Headers = .init() + path: Operations.IssuesUnlock.Input.Path, + headers: Operations.IssuesUnlock.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15742,12 +15807,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_unlock.Output.NoContent) + case noContent(Operations.IssuesUnlock.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_unlock.Output.NoContent { + public var noContent: Operations.IssuesUnlock.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15765,12 +15838,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15788,12 +15861,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/lock/delete(issues/unlock)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15851,7 +15924,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)`. - public enum issues_sol_remove_hyphen_sub_hyphen_issue { + public enum IssuesRemoveSubIssue { public static let id: Swift.String = "issues/remove-sub-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/path`. @@ -15859,67 +15932,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Path + public var path: Operations.IssuesRemoveSubIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Headers + public var headers: Operations.IssuesRemoveSubIssue.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The id of the sub-issue to remove /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/requestBody/json/sub_issue_id`. - public var sub_issue_id: Swift.Int - /// Creates a new `jsonPayload`. + public var subIssueId: Swift.Int + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - sub_issue_id: The id of the sub-issue to remove - public init(sub_issue_id: Swift.Int) { - self.sub_issue_id = sub_issue_id + /// - subIssueId: The id of the sub-issue to remove + public init(subIssueId: Swift.Int) { + self.subIssueId = subIssueId } public enum CodingKeys: String, CodingKey { - case sub_issue_id + case subIssueId = "sub_issue_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/requestBody/content/application\/json`. - case json(Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Body.jsonPayload) + case json(Operations.IssuesRemoveSubIssue.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Body + public var body: Operations.IssuesRemoveSubIssue.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -15927,9 +16000,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Input.Body + path: Operations.IssuesRemoveSubIssue.Input.Path, + headers: Operations.IssuesRemoveSubIssue.Input.Headers = .init(), + body: Operations.IssuesRemoveSubIssue.Input.Body ) { self.path = path self.headers = headers @@ -15941,26 +16014,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/responses/200/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Headers + public var headers: Operations.IssuesRemoveSubIssue.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issue/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -15970,15 +16043,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Body + public var body: Operations.IssuesRemoveSubIssue.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Headers = .init(), - body: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok.Body + headers: Operations.IssuesRemoveSubIssue.Output.Ok.Headers = .init(), + body: Operations.IssuesRemoveSubIssue.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15989,12 +16062,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok) + case ok(Operations.IssuesRemoveSubIssue.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_remove_hyphen_sub_hyphen_issue.Output.Ok { + public var ok: Operations.IssuesRemoveSubIssue.Output.Ok { get throws { switch self { case let .ok(response): @@ -16012,12 +16085,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -16035,12 +16108,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issue/delete(issues/remove-sub-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16060,14 +16133,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -16078,14 +16151,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -16103,7 +16176,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)`. - public enum issues_sol_list_hyphen_sub_hyphen_issues { + public enum IssuesListSubIssues { public static let id: Swift.String = "issues/list-sub-issues" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/path`. @@ -16111,68 +16184,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Path + public var path: Operations.IssuesListSubIssues.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Query + public var query: Operations.IssuesListSubIssues.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Headers + public var headers: Operations.IssuesListSubIssues.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -16180,9 +16253,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Path, - query: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Input.Headers = .init() + path: Operations.IssuesListSubIssues.Input.Path, + query: Operations.IssuesListSubIssues.Input.Query = .init(), + headers: Operations.IssuesListSubIssues.Input.Headers = .init() ) { self.path = path self.query = query @@ -16194,26 +16267,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Headers + public var headers: Operations.IssuesListSubIssues.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue]) + case json([Components.Schemas.Issue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue] { + public var json: [Components.Schemas.Issue] { get throws { switch self { case let .json(body): @@ -16223,15 +16296,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Body + public var body: Operations.IssuesListSubIssues.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok.Body + headers: Operations.IssuesListSubIssues.Output.Ok.Headers = .init(), + body: Operations.IssuesListSubIssues.Output.Ok.Body ) { self.headers = headers self.body = body @@ -16242,12 +16315,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok) + case ok(Operations.IssuesListSubIssues.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_sub_hyphen_issues.Output.Ok { + public var ok: Operations.IssuesListSubIssues.Output.Ok { get throws { switch self { case let .ok(response): @@ -16265,12 +16338,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16288,12 +16361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/get(issues/list-sub-issues)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -16354,7 +16427,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)`. - public enum issues_sol_add_hyphen_sub_hyphen_issue { + public enum IssuesAddSubIssue { public static let id: Swift.String = "issues/add-sub-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/path`. @@ -16362,77 +16435,77 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Path + public var path: Operations.IssuesAddSubIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Headers + public var headers: Operations.IssuesAddSubIssue.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/requestBody/json/sub_issue_id`. - public var sub_issue_id: Swift.Int + public var subIssueId: Swift.Int /// Option that, when true, instructs the operation to replace the sub-issues current parent issue /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/requestBody/json/replace_parent`. - public var replace_parent: Swift.Bool? - /// Creates a new `jsonPayload`. + public var replaceParent: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - sub_issue_id: The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue - /// - replace_parent: Option that, when true, instructs the operation to replace the sub-issues current parent issue + /// - subIssueId: The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue + /// - replaceParent: Option that, when true, instructs the operation to replace the sub-issues current parent issue public init( - sub_issue_id: Swift.Int, - replace_parent: Swift.Bool? = nil + subIssueId: Swift.Int, + replaceParent: Swift.Bool? = nil ) { - self.sub_issue_id = sub_issue_id - self.replace_parent = replace_parent + self.subIssueId = subIssueId + self.replaceParent = replaceParent } public enum CodingKeys: String, CodingKey { - case sub_issue_id - case replace_parent + case subIssueId = "sub_issue_id" + case replaceParent = "replace_parent" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Body.jsonPayload) + case json(Operations.IssuesAddSubIssue.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Body + public var body: Operations.IssuesAddSubIssue.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -16440,9 +16513,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Input.Body + path: Operations.IssuesAddSubIssue.Input.Path, + headers: Operations.IssuesAddSubIssue.Input.Headers = .init(), + body: Operations.IssuesAddSubIssue.Input.Body ) { self.path = path self.headers = headers @@ -16454,26 +16527,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Headers + public var headers: Operations.IssuesAddSubIssue.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/POST/responses/201/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -16483,15 +16556,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Body + public var body: Operations.IssuesAddSubIssue.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Headers = .init(), - body: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created.Body + headers: Operations.IssuesAddSubIssue.Output.Created.Headers = .init(), + body: Operations.IssuesAddSubIssue.Output.Created.Body ) { self.headers = headers self.body = body @@ -16502,12 +16575,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created) + case created(Operations.IssuesAddSubIssue.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_add_hyphen_sub_hyphen_issue.Output.Created { + public var created: Operations.IssuesAddSubIssue.Output.Created { get throws { switch self { case let .created(response): @@ -16525,12 +16598,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16548,12 +16621,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -16571,12 +16644,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -16594,12 +16667,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/post(issues/add-sub-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16649,7 +16722,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)`. - public enum issues_sol_reprioritize_hyphen_sub_hyphen_issue { + public enum IssuesReprioritizeSubIssue { public static let id: Swift.String = "issues/reprioritize-sub-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/path`. @@ -16657,85 +16730,85 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Path + public var path: Operations.IssuesReprioritizeSubIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Headers + public var headers: Operations.IssuesReprioritizeSubIssue.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The id of the sub-issue to reprioritize /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody/json/sub_issue_id`. - public var sub_issue_id: Swift.Int + public var subIssueId: Swift.Int /// The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody/json/after_id`. - public var after_id: Swift.Int? + public var afterId: Swift.Int? /// The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody/json/before_id`. - public var before_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var beforeId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - sub_issue_id: The id of the sub-issue to reprioritize - /// - after_id: The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). - /// - before_id: The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). + /// - subIssueId: The id of the sub-issue to reprioritize + /// - afterId: The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). + /// - beforeId: The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). public init( - sub_issue_id: Swift.Int, - after_id: Swift.Int? = nil, - before_id: Swift.Int? = nil + subIssueId: Swift.Int, + afterId: Swift.Int? = nil, + beforeId: Swift.Int? = nil ) { - self.sub_issue_id = sub_issue_id - self.after_id = after_id - self.before_id = before_id + self.subIssueId = subIssueId + self.afterId = afterId + self.beforeId = beforeId } public enum CodingKeys: String, CodingKey { - case sub_issue_id - case after_id - case before_id + case subIssueId = "sub_issue_id" + case afterId = "after_id" + case beforeId = "before_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/requestBody/content/application\/json`. - case json(Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Body.jsonPayload) + case json(Operations.IssuesReprioritizeSubIssue.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Body + public var body: Operations.IssuesReprioritizeSubIssue.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -16743,9 +16816,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Path, - headers: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Headers = .init(), - body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Input.Body + path: Operations.IssuesReprioritizeSubIssue.Input.Path, + headers: Operations.IssuesReprioritizeSubIssue.Input.Headers = .init(), + body: Operations.IssuesReprioritizeSubIssue.Input.Body ) { self.path = path self.headers = headers @@ -16757,12 +16830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.issue) + case json(Components.Schemas.Issue) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue { + public var json: Components.Schemas.Issue { get throws { switch self { case let .json(body): @@ -16772,12 +16845,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output.Ok.Body + public var body: Operations.IssuesReprioritizeSubIssue.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output.Ok.Body) { + public init(body: Operations.IssuesReprioritizeSubIssue.Output.Ok.Body) { self.body = body } } @@ -16786,12 +16859,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output.Ok) + case ok(Operations.IssuesReprioritizeSubIssue.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_reprioritize_hyphen_sub_hyphen_issue.Output.Ok { + public var ok: Operations.IssuesReprioritizeSubIssue.Output.Ok { get throws { switch self { case let .ok(response): @@ -16809,12 +16882,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16832,12 +16905,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16855,12 +16928,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -16878,12 +16951,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority/patch(issues/reprioritize-sub-issue)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -16933,7 +17006,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)`. - public enum issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline { + public enum IssuesListEventsForTimeline { public static let id: Swift.String = "issues/list-events-for-timeline" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path`. @@ -16941,68 +17014,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Path + public var path: Operations.IssuesListEventsForTimeline.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Query + public var query: Operations.IssuesListEventsForTimeline.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Headers + public var headers: Operations.IssuesListEventsForTimeline.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -17010,9 +17083,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Path, - query: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Input.Headers = .init() + path: Operations.IssuesListEventsForTimeline.Input.Path, + query: Operations.IssuesListEventsForTimeline.Input.Query = .init(), + headers: Operations.IssuesListEventsForTimeline.Input.Headers = .init() ) { self.path = path self.query = query @@ -17024,26 +17097,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Headers + public var headers: Operations.IssuesListEventsForTimeline.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/timeline/GET/responses/200/content/application\/json`. - case json([Components.Schemas.timeline_hyphen_issue_hyphen_events]) + case json([Components.Schemas.TimelineIssueEvents]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.timeline_hyphen_issue_hyphen_events] { + public var json: [Components.Schemas.TimelineIssueEvents] { get throws { switch self { case let .json(body): @@ -17053,15 +17126,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Body + public var body: Operations.IssuesListEventsForTimeline.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok.Body + headers: Operations.IssuesListEventsForTimeline.Output.Ok.Headers = .init(), + body: Operations.IssuesListEventsForTimeline.Output.Ok.Body ) { self.headers = headers self.body = body @@ -17072,12 +17145,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok) + case ok(Operations.IssuesListEventsForTimeline.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_events_hyphen_for_hyphen_timeline.Output.Ok { + public var ok: Operations.IssuesListEventsForTimeline.Output.Ok { get throws { switch self { case let .ok(response): @@ -17095,12 +17168,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17118,12 +17191,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/timeline/get(issues/list-events-for-timeline)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -17173,7 +17246,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)`. - public enum issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo { + public enum IssuesListLabelsForRepo { public static let id: Swift.String = "issues/list-labels-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/path`. @@ -17181,61 +17254,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.IssuesListLabelsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.IssuesListLabelsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.IssuesListLabelsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -17243,9 +17316,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.IssuesListLabelsForRepo.Input.Path, + query: Operations.IssuesListLabelsForRepo.Input.Query = .init(), + headers: Operations.IssuesListLabelsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -17257,26 +17330,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.IssuesListLabelsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/GET/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -17286,15 +17359,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.IssuesListLabelsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.IssuesListLabelsForRepo.Output.Ok.Headers = .init(), + body: Operations.IssuesListLabelsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -17305,12 +17378,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.IssuesListLabelsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.IssuesListLabelsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -17328,12 +17401,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/get(issues/list-labels-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17383,7 +17456,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)`. - public enum issues_sol_create_hyphen_label { + public enum IssuesCreateLabel { public static let id: Swift.String = "issues/create-label" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/path`. @@ -17391,41 +17464,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_create_hyphen_label.Input.Path + public var path: Operations.IssuesCreateLabel.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_create_hyphen_label.Input.Headers + public var headers: Operations.IssuesCreateLabel.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/requestBody/json/name`. @@ -17438,7 +17511,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/requestBody/json/description`. public var description: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)." @@ -17460,9 +17533,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_create_hyphen_label.Input.Body.jsonPayload) + case json(Operations.IssuesCreateLabel.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_create_hyphen_label.Input.Body + public var body: Operations.IssuesCreateLabel.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -17470,9 +17543,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_create_hyphen_label.Input.Path, - headers: Operations.issues_sol_create_hyphen_label.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_label.Input.Body + path: Operations.IssuesCreateLabel.Input.Path, + headers: Operations.IssuesCreateLabel.Input.Headers = .init(), + body: Operations.IssuesCreateLabel.Input.Body ) { self.path = path self.headers = headers @@ -17484,26 +17557,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_create_hyphen_label.Output.Created.Headers + public var headers: Operations.IssuesCreateLabel.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/POST/responses/201/content/application\/json`. - case json(Components.Schemas.label) + case json(Components.Schemas.Label) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.label { + public var json: Components.Schemas.Label { get throws { switch self { case let .json(body): @@ -17513,15 +17586,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_create_hyphen_label.Output.Created.Body + public var body: Operations.IssuesCreateLabel.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_create_hyphen_label.Output.Created.Headers = .init(), - body: Operations.issues_sol_create_hyphen_label.Output.Created.Body + headers: Operations.IssuesCreateLabel.Output.Created.Headers = .init(), + body: Operations.IssuesCreateLabel.Output.Created.Body ) { self.headers = headers self.body = body @@ -17532,12 +17605,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_create_hyphen_label.Output.Created) + case created(Operations.IssuesCreateLabel.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_create_hyphen_label.Output.Created { + public var created: Operations.IssuesCreateLabel.Output.Created { get throws { switch self { case let .created(response): @@ -17555,12 +17628,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -17578,12 +17651,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/post(issues/create-label)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17633,7 +17706,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)`. - public enum issues_sol_get_hyphen_label { + public enum IssuesGetLabel { public static let id: Swift.String = "issues/get-label" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/path`. @@ -17641,11 +17714,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/path/name`. public var name: Swift.String /// Creates a new `Path`. @@ -17655,8 +17728,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, name: Swift.String ) { self.owner = owner @@ -17664,27 +17737,27 @@ public enum Operations { self.name = name } } - public var path: Operations.issues_sol_get_hyphen_label.Input.Path + public var path: Operations.IssuesGetLabel.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_get_hyphen_label.Input.Headers + public var headers: Operations.IssuesGetLabel.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_get_hyphen_label.Input.Path, - headers: Operations.issues_sol_get_hyphen_label.Input.Headers = .init() + path: Operations.IssuesGetLabel.Input.Path, + headers: Operations.IssuesGetLabel.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17695,12 +17768,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.label) + case json(Components.Schemas.Label) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.label { + public var json: Components.Schemas.Label { get throws { switch self { case let .json(body): @@ -17710,12 +17783,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_get_hyphen_label.Output.Ok.Body + public var body: Operations.IssuesGetLabel.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_get_hyphen_label.Output.Ok.Body) { + public init(body: Operations.IssuesGetLabel.Output.Ok.Body) { self.body = body } } @@ -17724,12 +17797,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_get_hyphen_label.Output.Ok) + case ok(Operations.IssuesGetLabel.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_get_hyphen_label.Output.Ok { + public var ok: Operations.IssuesGetLabel.Output.Ok { get throws { switch self { case let .ok(response): @@ -17747,12 +17820,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/get(issues/get-label)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17802,7 +17875,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/patch(issues/update-label)`. - public enum issues_sol_update_hyphen_label { + public enum IssuesUpdateLabel { public static let id: Swift.String = "issues/update-label" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/path`. @@ -17810,11 +17883,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/path/name`. public var name: Swift.String /// Creates a new `Path`. @@ -17824,8 +17897,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, name: Swift.String ) { self.owner = owner @@ -17833,27 +17906,27 @@ public enum Operations { self.name = name } } - public var path: Operations.issues_sol_update_hyphen_label.Input.Path + public var path: Operations.IssuesUpdateLabel.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_update_hyphen_label.Input.Headers + public var headers: Operations.IssuesUpdateLabel.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody/json/new_name`. - public var new_name: Swift.String? + public var newName: Swift.String? /// The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody/json/color`. @@ -17862,31 +17935,31 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody/json/description`. public var description: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - new_name: The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)." + /// - newName: The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)." /// - color: The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. /// - description: A short description of the label. Must be 100 characters or fewer. public init( - new_name: Swift.String? = nil, + newName: Swift.String? = nil, color: Swift.String? = nil, description: Swift.String? = nil ) { - self.new_name = new_name + self.newName = newName self.color = color self.description = description } public enum CodingKeys: String, CodingKey { - case new_name + case newName = "new_name" case color case description } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/requestBody/content/application\/json`. - case json(Operations.issues_sol_update_hyphen_label.Input.Body.jsonPayload) + case json(Operations.IssuesUpdateLabel.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_update_hyphen_label.Input.Body? + public var body: Operations.IssuesUpdateLabel.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -17894,9 +17967,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_update_hyphen_label.Input.Path, - headers: Operations.issues_sol_update_hyphen_label.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_label.Input.Body? = nil + path: Operations.IssuesUpdateLabel.Input.Path, + headers: Operations.IssuesUpdateLabel.Input.Headers = .init(), + body: Operations.IssuesUpdateLabel.Input.Body? = nil ) { self.path = path self.headers = headers @@ -17908,12 +17981,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.label) + case json(Components.Schemas.Label) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.label { + public var json: Components.Schemas.Label { get throws { switch self { case let .json(body): @@ -17923,12 +17996,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_update_hyphen_label.Output.Ok.Body + public var body: Operations.IssuesUpdateLabel.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_update_hyphen_label.Output.Ok.Body) { + public init(body: Operations.IssuesUpdateLabel.Output.Ok.Body) { self.body = body } } @@ -17937,12 +18010,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/patch(issues/update-label)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_update_hyphen_label.Output.Ok) + case ok(Operations.IssuesUpdateLabel.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_update_hyphen_label.Output.Ok { + public var ok: Operations.IssuesUpdateLabel.Output.Ok { get throws { switch self { case let .ok(response): @@ -17992,7 +18065,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/labels/{name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)`. - public enum issues_sol_delete_hyphen_label { + public enum IssuesDeleteLabel { public static let id: Swift.String = "issues/delete-label" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/DELETE/path`. @@ -18000,11 +18073,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/labels/{name}/DELETE/path/name`. public var name: Swift.String /// Creates a new `Path`. @@ -18014,8 +18087,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - name: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, name: Swift.String ) { self.owner = owner @@ -18023,12 +18096,12 @@ public enum Operations { self.name = name } } - public var path: Operations.issues_sol_delete_hyphen_label.Input.Path + public var path: Operations.IssuesDeleteLabel.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.issues_sol_delete_hyphen_label.Input.Path) { + public init(path: Operations.IssuesDeleteLabel.Input.Path) { self.path = path } } @@ -18042,12 +18115,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_delete_hyphen_label.Output.NoContent) + case noContent(Operations.IssuesDeleteLabel.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/labels/{name}/delete(issues/delete-label)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_delete_hyphen_label.Output.NoContent { + public var noContent: Operations.IssuesDeleteLabel.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18072,7 +18153,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)`. - public enum issues_sol_list_hyphen_milestones { + public enum IssuesListMilestones { public static let id: Swift.String = "issues/list-milestones" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/path`. @@ -18080,29 +18161,29 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_list_hyphen_milestones.Input.Path + public var path: Operations.IssuesListMilestones.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -18110,68 +18191,68 @@ public enum Operations { /// The state of the milestone. Either `open`, `closed`, or `all`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/state`. - public var state: Operations.issues_sol_list_hyphen_milestones.Input.Query.statePayload? + public var state: Operations.IssuesListMilestones.Input.Query.StatePayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { - case due_on = "due_on" + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case dueOn = "due_on" case completeness = "completeness" } /// What to sort results by. Either `due_on` or `completeness`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/sort`. - public var sort: Operations.issues_sol_list_hyphen_milestones.Input.Query.sortPayload? + public var sort: Operations.IssuesListMilestones.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction of the sort. Either `asc` or `desc`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/direction`. - public var direction: Operations.issues_sol_list_hyphen_milestones.Input.Query.directionPayload? + public var direction: Operations.IssuesListMilestones.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - state: The state of the milestone. Either `open`, `closed`, or `all`. /// - sort: What to sort results by. Either `due_on` or `completeness`. /// - direction: The direction of the sort. Either `asc` or `desc`. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.issues_sol_list_hyphen_milestones.Input.Query.statePayload? = nil, - sort: Operations.issues_sol_list_hyphen_milestones.Input.Query.sortPayload? = nil, - direction: Operations.issues_sol_list_hyphen_milestones.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + state: Operations.IssuesListMilestones.Input.Query.StatePayload? = nil, + sort: Operations.IssuesListMilestones.Input.Query.SortPayload? = nil, + direction: Operations.IssuesListMilestones.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_milestones.Input.Query + public var query: Operations.IssuesListMilestones.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_milestones.Input.Headers + public var headers: Operations.IssuesListMilestones.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -18179,9 +18260,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_milestones.Input.Path, - query: Operations.issues_sol_list_hyphen_milestones.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_milestones.Input.Headers = .init() + path: Operations.IssuesListMilestones.Input.Path, + query: Operations.IssuesListMilestones.Input.Query = .init(), + headers: Operations.IssuesListMilestones.Input.Headers = .init() ) { self.path = path self.query = query @@ -18193,26 +18274,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Headers + public var headers: Operations.IssuesListMilestones.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/GET/responses/200/content/application\/json`. - case json([Components.Schemas.milestone]) + case json([Components.Schemas.Milestone]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.milestone] { + public var json: [Components.Schemas.Milestone] { get throws { switch self { case let .json(body): @@ -18222,15 +18303,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Body + public var body: Operations.IssuesListMilestones.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_milestones.Output.Ok.Body + headers: Operations.IssuesListMilestones.Output.Ok.Headers = .init(), + body: Operations.IssuesListMilestones.Output.Ok.Body ) { self.headers = headers self.body = body @@ -18241,12 +18322,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_milestones.Output.Ok) + case ok(Operations.IssuesListMilestones.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_milestones.Output.Ok { + public var ok: Operations.IssuesListMilestones.Output.Ok { get throws { switch self { case let .ok(response): @@ -18264,12 +18345,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/get(issues/list-milestones)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -18319,7 +18400,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/milestones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)`. - public enum issues_sol_create_hyphen_milestone { + public enum IssuesCreateMilestone { public static let id: Swift.String = "issues/create-milestone" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/path`. @@ -18327,41 +18408,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.issues_sol_create_hyphen_milestone.Input.Path + public var path: Operations.IssuesCreateMilestone.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_create_hyphen_milestone.Input.Headers + public var headers: Operations.IssuesCreateMilestone.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json/title`. @@ -18369,14 +18450,14 @@ public enum Operations { /// The state of the milestone. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json/state`. - public var state: Operations.issues_sol_create_hyphen_milestone.Input.Body.jsonPayload.statePayload? + public var state: Operations.IssuesCreateMilestone.Input.Body.JsonPayload.StatePayload? /// A description of the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json/description`. @@ -18384,36 +18465,36 @@ public enum Operations { /// The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/json/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `jsonPayload`. + public var dueOn: Foundation.Date? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the milestone. /// - state: The state of the milestone. Either `open` or `closed`. /// - description: A description of the milestone. - /// - due_on: The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - dueOn: The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( title: Swift.String, - state: Operations.issues_sol_create_hyphen_milestone.Input.Body.jsonPayload.statePayload? = nil, + state: Operations.IssuesCreateMilestone.Input.Body.JsonPayload.StatePayload? = nil, description: Swift.String? = nil, - due_on: Foundation.Date? = nil + dueOn: Foundation.Date? = nil ) { self.title = title self.state = state self.description = description - self.due_on = due_on + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case title case state case description - case due_on + case dueOn = "due_on" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/requestBody/content/application\/json`. - case json(Operations.issues_sol_create_hyphen_milestone.Input.Body.jsonPayload) + case json(Operations.IssuesCreateMilestone.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_create_hyphen_milestone.Input.Body + public var body: Operations.IssuesCreateMilestone.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -18421,9 +18502,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_create_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_create_hyphen_milestone.Input.Headers = .init(), - body: Operations.issues_sol_create_hyphen_milestone.Input.Body + path: Operations.IssuesCreateMilestone.Input.Path, + headers: Operations.IssuesCreateMilestone.Input.Headers = .init(), + body: Operations.IssuesCreateMilestone.Input.Body ) { self.path = path self.headers = headers @@ -18435,26 +18516,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.issues_sol_create_hyphen_milestone.Output.Created.Headers + public var headers: Operations.IssuesCreateMilestone.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/POST/responses/201/content/application\/json`. - case json(Components.Schemas.milestone) + case json(Components.Schemas.Milestone) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.milestone { + public var json: Components.Schemas.Milestone { get throws { switch self { case let .json(body): @@ -18464,15 +18545,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_create_hyphen_milestone.Output.Created.Body + public var body: Operations.IssuesCreateMilestone.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_create_hyphen_milestone.Output.Created.Headers = .init(), - body: Operations.issues_sol_create_hyphen_milestone.Output.Created.Body + headers: Operations.IssuesCreateMilestone.Output.Created.Headers = .init(), + body: Operations.IssuesCreateMilestone.Output.Created.Body ) { self.headers = headers self.body = body @@ -18483,12 +18564,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.issues_sol_create_hyphen_milestone.Output.Created) + case created(Operations.IssuesCreateMilestone.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.issues_sol_create_hyphen_milestone.Output.Created { + public var created: Operations.IssuesCreateMilestone.Output.Created { get throws { switch self { case let .created(response): @@ -18506,12 +18587,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -18529,12 +18610,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/post(issues/create-milestone)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -18584,7 +18665,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)`. - public enum issues_sol_get_hyphen_milestone { + public enum IssuesGetMilestone { public static let id: Swift.String = "issues/get-milestone" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/path`. @@ -18592,52 +18673,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/path/milestone_number`. - public var milestone_number: Components.Parameters.milestone_hyphen_number + public var milestoneNumber: Components.Parameters.MilestoneNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - milestone_number: The number that identifies the milestone. + /// - milestoneNumber: The number that identifies the milestone. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - milestone_number: Components.Parameters.milestone_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + milestoneNumber: Components.Parameters.MilestoneNumber ) { self.owner = owner self.repo = repo - self.milestone_number = milestone_number + self.milestoneNumber = milestoneNumber } } - public var path: Operations.issues_sol_get_hyphen_milestone.Input.Path + public var path: Operations.IssuesGetMilestone.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_get_hyphen_milestone.Input.Headers + public var headers: Operations.IssuesGetMilestone.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_get_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_get_hyphen_milestone.Input.Headers = .init() + path: Operations.IssuesGetMilestone.Input.Path, + headers: Operations.IssuesGetMilestone.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -18648,12 +18729,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.milestone) + case json(Components.Schemas.Milestone) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.milestone { + public var json: Components.Schemas.Milestone { get throws { switch self { case let .json(body): @@ -18663,12 +18744,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_get_hyphen_milestone.Output.Ok.Body + public var body: Operations.IssuesGetMilestone.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_get_hyphen_milestone.Output.Ok.Body) { + public init(body: Operations.IssuesGetMilestone.Output.Ok.Body) { self.body = body } } @@ -18677,12 +18758,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_get_hyphen_milestone.Output.Ok) + case ok(Operations.IssuesGetMilestone.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_get_hyphen_milestone.Output.Ok { + public var ok: Operations.IssuesGetMilestone.Output.Ok { get throws { switch self { case let .ok(response): @@ -18700,12 +18781,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/get(issues/get-milestone)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -18755,7 +18836,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/patch(issues/update-milestone)`. - public enum issues_sol_update_hyphen_milestone { + public enum IssuesUpdateMilestone { public static let id: Swift.String = "issues/update-milestone" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/path`. @@ -18763,48 +18844,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/path/milestone_number`. - public var milestone_number: Components.Parameters.milestone_hyphen_number + public var milestoneNumber: Components.Parameters.MilestoneNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - milestone_number: The number that identifies the milestone. + /// - milestoneNumber: The number that identifies the milestone. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - milestone_number: Components.Parameters.milestone_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + milestoneNumber: Components.Parameters.MilestoneNumber ) { self.owner = owner self.repo = repo - self.milestone_number = milestone_number + self.milestoneNumber = milestoneNumber } } - public var path: Operations.issues_sol_update_hyphen_milestone.Input.Path + public var path: Operations.IssuesUpdateMilestone.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_update_hyphen_milestone.Input.Headers + public var headers: Operations.IssuesUpdateMilestone.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json/title`. @@ -18812,14 +18893,14 @@ public enum Operations { /// The state of the milestone. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json/state`. - public var state: Operations.issues_sol_update_hyphen_milestone.Input.Body.jsonPayload.statePayload? + public var state: Operations.IssuesUpdateMilestone.Input.Body.JsonPayload.StatePayload? /// A description of the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json/description`. @@ -18827,36 +18908,36 @@ public enum Operations { /// The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/json/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `jsonPayload`. + public var dueOn: Foundation.Date? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the milestone. /// - state: The state of the milestone. Either `open` or `closed`. /// - description: A description of the milestone. - /// - due_on: The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - dueOn: The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( title: Swift.String? = nil, - state: Operations.issues_sol_update_hyphen_milestone.Input.Body.jsonPayload.statePayload? = nil, + state: Operations.IssuesUpdateMilestone.Input.Body.JsonPayload.StatePayload? = nil, description: Swift.String? = nil, - due_on: Foundation.Date? = nil + dueOn: Foundation.Date? = nil ) { self.title = title self.state = state self.description = description - self.due_on = due_on + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case title case state case description - case due_on + case dueOn = "due_on" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.issues_sol_update_hyphen_milestone.Input.Body.jsonPayload) + case json(Operations.IssuesUpdateMilestone.Input.Body.JsonPayload) } - public var body: Operations.issues_sol_update_hyphen_milestone.Input.Body? + public var body: Operations.IssuesUpdateMilestone.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -18864,9 +18945,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.issues_sol_update_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_update_hyphen_milestone.Input.Headers = .init(), - body: Operations.issues_sol_update_hyphen_milestone.Input.Body? = nil + path: Operations.IssuesUpdateMilestone.Input.Path, + headers: Operations.IssuesUpdateMilestone.Input.Headers = .init(), + body: Operations.IssuesUpdateMilestone.Input.Body? = nil ) { self.path = path self.headers = headers @@ -18878,12 +18959,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.milestone) + case json(Components.Schemas.Milestone) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.milestone { + public var json: Components.Schemas.Milestone { get throws { switch self { case let .json(body): @@ -18893,12 +18974,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_update_hyphen_milestone.Output.Ok.Body + public var body: Operations.IssuesUpdateMilestone.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.issues_sol_update_hyphen_milestone.Output.Ok.Body) { + public init(body: Operations.IssuesUpdateMilestone.Output.Ok.Body) { self.body = body } } @@ -18907,12 +18988,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/patch(issues/update-milestone)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_update_hyphen_milestone.Output.Ok) + case ok(Operations.IssuesUpdateMilestone.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_update_hyphen_milestone.Output.Ok { + public var ok: Operations.IssuesUpdateMilestone.Output.Ok { get throws { switch self { case let .ok(response): @@ -18962,7 +19043,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)`. - public enum issues_sol_delete_hyphen_milestone { + public enum IssuesDeleteMilestone { public static let id: Swift.String = "issues/delete-milestone" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/DELETE/path`. @@ -18970,52 +19051,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/DELETE/path/milestone_number`. - public var milestone_number: Components.Parameters.milestone_hyphen_number + public var milestoneNumber: Components.Parameters.MilestoneNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - milestone_number: The number that identifies the milestone. + /// - milestoneNumber: The number that identifies the milestone. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - milestone_number: Components.Parameters.milestone_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + milestoneNumber: Components.Parameters.MilestoneNumber ) { self.owner = owner self.repo = repo - self.milestone_number = milestone_number + self.milestoneNumber = milestoneNumber } } - public var path: Operations.issues_sol_delete_hyphen_milestone.Input.Path + public var path: Operations.IssuesDeleteMilestone.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_delete_hyphen_milestone.Input.Headers + public var headers: Operations.IssuesDeleteMilestone.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.issues_sol_delete_hyphen_milestone.Input.Path, - headers: Operations.issues_sol_delete_hyphen_milestone.Input.Headers = .init() + path: Operations.IssuesDeleteMilestone.Input.Path, + headers: Operations.IssuesDeleteMilestone.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -19031,12 +19112,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.issues_sol_delete_hyphen_milestone.Output.NoContent) + case noContent(Operations.IssuesDeleteMilestone.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.issues_sol_delete_hyphen_milestone.Output.NoContent { + public var noContent: Operations.IssuesDeleteMilestone.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19054,12 +19143,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/delete(issues/delete-milestone)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -19109,7 +19198,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/labels/get(issues/list-labels-for-milestone)`. - public enum issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone { + public enum IssuesListLabelsForMilestone { public static let id: Swift.String = "issues/list-labels-for-milestone" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/path`. @@ -19117,68 +19206,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the milestone. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/path/milestone_number`. - public var milestone_number: Components.Parameters.milestone_hyphen_number + public var milestoneNumber: Components.Parameters.MilestoneNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - milestone_number: The number that identifies the milestone. + /// - milestoneNumber: The number that identifies the milestone. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - milestone_number: Components.Parameters.milestone_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + milestoneNumber: Components.Parameters.MilestoneNumber ) { self.owner = owner self.repo = repo - self.milestone_number = milestone_number + self.milestoneNumber = milestoneNumber } } - public var path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Path + public var path: Operations.IssuesListLabelsForMilestone.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Query + public var query: Operations.IssuesListLabelsForMilestone.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Headers + public var headers: Operations.IssuesListLabelsForMilestone.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -19186,9 +19275,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Path, - query: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Input.Headers = .init() + path: Operations.IssuesListLabelsForMilestone.Input.Path, + query: Operations.IssuesListLabelsForMilestone.Input.Query = .init(), + headers: Operations.IssuesListLabelsForMilestone.Input.Headers = .init() ) { self.path = path self.query = query @@ -19200,26 +19289,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Headers + public var headers: Operations.IssuesListLabelsForMilestone.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/milestones/{milestone_number}/labels/GET/responses/200/content/application\/json`. - case json([Components.Schemas.label]) + case json([Components.Schemas.Label]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.label] { + public var json: [Components.Schemas.Label] { get throws { switch self { case let .json(body): @@ -19229,15 +19318,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Body + public var body: Operations.IssuesListLabelsForMilestone.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok.Body + headers: Operations.IssuesListLabelsForMilestone.Output.Ok.Headers = .init(), + body: Operations.IssuesListLabelsForMilestone.Output.Ok.Body ) { self.headers = headers self.body = body @@ -19248,12 +19337,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/milestones/{milestone_number}/labels/get(issues/list-labels-for-milestone)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok) + case ok(Operations.IssuesListLabelsForMilestone.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_labels_hyphen_for_hyphen_milestone.Output.Ok { + public var ok: Operations.IssuesListLabelsForMilestone.Output.Ok { get throws { switch self { case let .ok(response): @@ -19313,13 +19402,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/issues`. /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)`. - public enum issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum IssuesListForAuthenticatedUser { public static let id: Swift.String = "issues/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/issues/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/issues/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { case assigned = "assigned" case created = "created" case mentioned = "mentioned" @@ -19330,9 +19419,9 @@ public enum Operations { /// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. /// /// - Remark: Generated from `#/paths/user/issues/GET/query/filter`. - public var filter: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.filterPayload? + public var filter: Operations.IssuesListForAuthenticatedUser.Input.Query.FilterPayload? /// - Remark: Generated from `#/paths/user/issues/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -19340,13 +19429,13 @@ public enum Operations { /// Indicates the state of the issues to return. /// /// - Remark: Generated from `#/paths/user/issues/GET/query/state`. - public var state: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.statePayload? + public var state: Operations.IssuesListForAuthenticatedUser.Input.Query.StatePayload? /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/paths/user/issues/GET/query/labels`. - public var labels: Components.Parameters.labels? + public var labels: Components.Parameters.Labels? /// - Remark: Generated from `#/paths/user/issues/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case comments = "comments" @@ -19354,28 +19443,28 @@ public enum Operations { /// What to sort results by. /// /// - Remark: Generated from `#/paths/user/issues/GET/query/sort`. - public var sort: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.sortPayload? + public var sort: Operations.IssuesListForAuthenticatedUser.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/user/issues/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/user/issues/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/user/issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -19385,17 +19474,17 @@ public enum Operations { /// - sort: What to sort results by. /// - direction: The direction to sort the results by. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - filter: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.filterPayload? = nil, - state: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.statePayload? = nil, - labels: Components.Parameters.labels? = nil, - sort: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.sortPayload? = nil, - direction: Components.Parameters.direction? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + filter: Operations.IssuesListForAuthenticatedUser.Input.Query.FilterPayload? = nil, + state: Operations.IssuesListForAuthenticatedUser.Input.Query.StatePayload? = nil, + labels: Components.Parameters.Labels? = nil, + sort: Operations.IssuesListForAuthenticatedUser.Input.Query.SortPayload? = nil, + direction: Components.Parameters.Direction? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter self.state = state @@ -19403,31 +19492,31 @@ public enum Operations { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.IssuesListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.IssuesListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.IssuesListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.IssuesListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -19438,26 +19527,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/issues/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/issues/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.IssuesListForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/issues/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue]) + case json([Components.Schemas.Issue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue] { + public var json: [Components.Schemas.Issue] { get throws { switch self { case let .json(body): @@ -19467,15 +19556,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.IssuesListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.IssuesListForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.IssuesListForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -19486,12 +19575,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.IssuesListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.issues_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.IssuesListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -19509,12 +19598,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -19532,12 +19621,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/issues/get(issues/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): From 3f0d516e3a5a9e63e94f4cc30795568fee98b18e Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:02:35 -0700 Subject: [PATCH 17/46] Commit via running ake Sources/licenses --- Sources/licenses/Client.swift | 38 ++-- Sources/licenses/Types.swift | 391 ++++++++++++++++++---------------- 2 files changed, 227 insertions(+), 202 deletions(-) diff --git a/Sources/licenses/Client.swift b/Sources/licenses/Client.swift index eab6dc0264..0ca9179f00 100644 --- a/Sources/licenses/Client.swift +++ b/Sources/licenses/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /licenses`. /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)`. - public func licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used(_ input: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input) async throws -> Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output { + public func licensesGetAllCommonlyUsed(_ input: Operations.LicensesGetAllCommonlyUsed.Input) async throws -> Operations.LicensesGetAllCommonlyUsed.Output { try await client.send( input: input, - forOperation: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.id, + forOperation: Operations.LicensesGetAllCommonlyUsed.id, serializer: { input in let path = try converter.renderedPath( template: "/licenses", @@ -70,7 +70,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -89,7 +89,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output.Ok.Body + let body: Operations.LicensesGetAllCommonlyUsed.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -99,7 +99,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.license_hyphen_simple].self, + [Components.Schemas.LicenseSimple].self, from: responseBody, transforming: { value in .json(value) @@ -129,10 +129,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /licenses/{license}`. /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)`. - public func licenses_sol_get(_ input: Operations.licenses_sol_get.Input) async throws -> Operations.licenses_sol_get.Output { + public func licensesGet(_ input: Operations.LicensesGet.Input) async throws -> Operations.LicensesGet.Output { try await client.send( input: input, - forOperation: Operations.licenses_sol_get.id, + forOperation: Operations.LicensesGet.id, serializer: { input in let path = try converter.renderedPath( template: "/licenses/{}", @@ -155,7 +155,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.licenses_sol_get.Output.Ok.Body + let body: Operations.LicensesGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -165,7 +165,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.license.self, + Components.Schemas.License.self, from: responseBody, transforming: { value in .json(value) @@ -177,7 +177,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -187,7 +187,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -199,7 +199,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -209,7 +209,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -244,10 +244,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/license`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`. - public func licenses_sol_get_hyphen_for_hyphen_repo(_ input: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input) async throws -> Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output { + public func licensesGetForRepo(_ input: Operations.LicensesGetForRepo.Input) async throws -> Operations.LicensesGetForRepo.Output { try await client.send( input: input, - forOperation: Operations.licenses_sol_get_hyphen_for_hyphen_repo.id, + forOperation: Operations.LicensesGetForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/license", @@ -278,7 +278,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.LicensesGetForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -288,7 +288,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.license_hyphen_content.self, + Components.Schemas.LicenseContent.self, from: responseBody, transforming: { value in .json(value) @@ -300,7 +300,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -310,7 +310,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/licenses/Types.swift b/Sources/licenses/Types.swift index 7ef3d201e3..aa56044cc0 100644 --- a/Sources/licenses/Types.swift +++ b/Sources/licenses/Types.swift @@ -17,14 +17,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /licenses`. /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)`. - func licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used(_ input: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input) async throws -> Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output + func licensesGetAllCommonlyUsed(_ input: Operations.LicensesGetAllCommonlyUsed.Input) async throws -> Operations.LicensesGetAllCommonlyUsed.Output /// Get a license /// /// Gets information about a specific license. For more information, see "[Licensing a repository ](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)." /// /// - Remark: HTTP `GET /licenses/{license}`. /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)`. - func licenses_sol_get(_ input: Operations.licenses_sol_get.Input) async throws -> Operations.licenses_sol_get.Output + func licensesGet(_ input: Operations.LicensesGet.Input) async throws -> Operations.LicensesGet.Output /// Get the license for a repository /// /// This method returns the contents of the repository's license file, if one is detected. @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/license`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`. - func licenses_sol_get_hyphen_for_hyphen_repo(_ input: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input) async throws -> Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output + func licensesGetForRepo(_ input: Operations.LicensesGetForRepo.Input) async throws -> Operations.LicensesGetForRepo.Output } /// Convenience overloads for operation inputs. @@ -47,11 +47,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /licenses`. /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)`. - public func licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used( - query: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Query = .init(), - headers: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Headers = .init() - ) async throws -> Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output { - try await licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used(Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input( + public func licensesGetAllCommonlyUsed( + query: Operations.LicensesGetAllCommonlyUsed.Input.Query = .init(), + headers: Operations.LicensesGetAllCommonlyUsed.Input.Headers = .init() + ) async throws -> Operations.LicensesGetAllCommonlyUsed.Output { + try await licensesGetAllCommonlyUsed(Operations.LicensesGetAllCommonlyUsed.Input( query: query, headers: headers )) @@ -62,11 +62,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /licenses/{license}`. /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)`. - public func licenses_sol_get( - path: Operations.licenses_sol_get.Input.Path, - headers: Operations.licenses_sol_get.Input.Headers = .init() - ) async throws -> Operations.licenses_sol_get.Output { - try await licenses_sol_get(Operations.licenses_sol_get.Input( + public func licensesGet( + path: Operations.LicensesGet.Input.Path, + headers: Operations.LicensesGet.Input.Headers = .init() + ) async throws -> Operations.LicensesGet.Output { + try await licensesGet(Operations.LicensesGet.Input( path: path, headers: headers )) @@ -82,12 +82,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/license`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`. - public func licenses_sol_get_hyphen_for_hyphen_repo( - path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path, - query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output { - try await licenses_sol_get_hyphen_for_hyphen_repo(Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input( + public func licensesGetForRepo( + path: Operations.LicensesGetForRepo.Input.Path, + query: Operations.LicensesGetForRepo.Input.Query = .init(), + headers: Operations.LicensesGetForRepo.Input.Headers = .init() + ) async throws -> Operations.LicensesGetForRepo.Output { + try await licensesGetForRepo(Operations.LicensesGetForRepo.Input( path: path, query: query, headers: headers @@ -97,6 +97,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -112,36 +121,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -149,7 +158,7 @@ public enum Components { /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -157,48 +166,48 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/license-simple`. - public struct license_hyphen_simple: Codable, Hashable, Sendable { + public struct LicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/license-simple/name`. @@ -206,60 +215,60 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `LicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// License /// /// - Remark: Generated from `#/components/schemas/license`. - public struct license: Codable, Hashable, Sendable { + public struct License: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/license/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/license/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/license/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/license/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/license/description`. public var description: Swift.String /// - Remark: Generated from `#/components/schemas/license/implementation`. @@ -274,15 +283,15 @@ public enum Components { public var body: Swift.String /// - Remark: Generated from `#/components/schemas/license/featured`. public var featured: Swift.Bool - /// Creates a new `license`. + /// Creates a new `License`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: - /// - html_url: + /// - nodeId: + /// - htmlUrl: /// - description: /// - implementation: /// - permissions: @@ -293,10 +302,10 @@ public enum Components { public init( key: Swift.String, name: Swift.String, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String, + nodeId: Swift.String, + htmlUrl: Swift.String, description: Swift.String, implementation: Swift.String, permissions: [Swift.String], @@ -307,10 +316,10 @@ public enum Components { ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id - self.html_url = html_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl self.description = description self.implementation = implementation self.permissions = permissions @@ -322,10 +331,10 @@ public enum Components { public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id - case html_url + case nodeId = "node_id" + case htmlUrl = "html_url" case description case implementation case permissions @@ -339,11 +348,11 @@ public enum Components { /// `refs/heads/` or simply ``. /// /// - Remark: Generated from `#/components/schemas/code-scanning-ref`. - public typealias code_hyphen_scanning_hyphen_ref = Swift.String + public typealias CodeScanningRef = Swift.String /// License Content /// /// - Remark: Generated from `#/components/schemas/license-content`. - public struct license_hyphen_content: Codable, Hashable, Sendable { + public struct LicenseContent: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/license-content/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/license-content/path`. @@ -355,11 +364,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/license-content/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/license-content/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/license-content/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/license-content/download_url`. - public var download_url: Swift.String? + public var downloadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/license-content/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/license-content/content`. @@ -367,14 +376,14 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/license-content/encoding`. public var encoding: Swift.String /// - Remark: Generated from `#/components/schemas/license-content/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/license-content/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/license-content/_links/html`. public var html: Swift.String? /// - Remark: Generated from `#/components/schemas/license-content/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -396,10 +405,10 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/license-content/_links`. - public var _links: Components.Schemas.license_hyphen_content._linksPayload + public var _links: Components.Schemas.LicenseContent._LinksPayload /// - Remark: Generated from `#/components/schemas/license-content/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? - /// Creates a new `license_hyphen_content`. + public var license: Components.Schemas.NullableLicenseSimple? + /// Creates a new `LicenseContent`. /// /// - Parameters: /// - name: @@ -407,9 +416,9 @@ public enum Components { /// - sha: /// - size: /// - url: - /// - html_url: - /// - git_url: - /// - download_url: + /// - htmlUrl: + /// - gitUrl: + /// - downloadUrl: /// - _type: /// - content: /// - encoding: @@ -421,23 +430,23 @@ public enum Components { sha: Swift.String, size: Swift.Int, url: Swift.String, - html_url: Swift.String? = nil, - git_url: Swift.String? = nil, - download_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + gitUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, _type: Swift.String, content: Swift.String, encoding: Swift.String, - _links: Components.Schemas.license_hyphen_content._linksPayload, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil + _links: Components.Schemas.LicenseContent._LinksPayload, + license: Components.Schemas.NullableLicenseSimple? = nil ) { self.name = name self.path = path self.sha = sha self.size = size self.url = url - self.html_url = html_url - self.git_url = git_url - self.download_url = download_url + self.htmlUrl = htmlUrl + self.gitUrl = gitUrl + self.downloadUrl = downloadUrl self._type = _type self.content = content self.encoding = encoding @@ -450,9 +459,9 @@ public enum Components { case sha case size case url - case html_url - case git_url - case download_url + case htmlUrl = "html_url" + case gitUrl = "git_url" + case downloadUrl = "download_url" case _type = "type" case content case encoding @@ -466,38 +475,38 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/components/parameters/git-ref`. - public typealias git_hyphen_ref = Components.Schemas.code_hyphen_scanning_hyphen_ref + public typealias GitRef = Components.Schemas.CodeScanningRef } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -507,29 +516,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -539,12 +548,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } @@ -561,7 +570,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /licenses`. /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)`. - public enum licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used { + public enum LicensesGetAllCommonlyUsed { public static let id: Swift.String = "licenses/get-all-commonly-used" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/licenses/GET/query`. @@ -571,48 +580,48 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/licenses/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/licenses/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - featured: - /// - 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)." + /// - perPage: 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)." public init( featured: Swift.Bool? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.featured = featured - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Query + public var query: Operations.LicensesGetAllCommonlyUsed.Input.Query /// - Remark: Generated from `#/paths/licenses/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Headers + public var headers: Operations.LicensesGetAllCommonlyUsed.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Query = .init(), - headers: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Input.Headers = .init() + query: Operations.LicensesGetAllCommonlyUsed.Input.Query = .init(), + headers: Operations.LicensesGetAllCommonlyUsed.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -623,12 +632,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/licenses/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/licenses/GET/responses/200/content/application\/json`. - case json([Components.Schemas.license_hyphen_simple]) + case json([Components.Schemas.LicenseSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.license_hyphen_simple] { + public var json: [Components.Schemas.LicenseSimple] { get throws { switch self { case let .json(body): @@ -638,12 +647,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output.Ok.Body + public var body: Operations.LicensesGetAllCommonlyUsed.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output.Ok.Body) { + public init(body: Operations.LicensesGetAllCommonlyUsed.Output.Ok.Body) { self.body = body } } @@ -652,12 +661,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output.Ok) + case ok(Operations.LicensesGetAllCommonlyUsed.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.licenses_sol_get_hyphen_all_hyphen_commonly_hyphen_used.Output.Ok { + public var ok: Operations.LicensesGetAllCommonlyUsed.Output.Ok { get throws { switch self { case let .ok(response): @@ -675,12 +684,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//licenses/get(licenses/get-all-commonly-used)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -730,7 +747,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /licenses/{license}`. /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)`. - public enum licenses_sol_get { + public enum LicensesGet { public static let id: Swift.String = "licenses/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/licenses/{license}/GET/path`. @@ -745,27 +762,27 @@ public enum Operations { self.license = license } } - public var path: Operations.licenses_sol_get.Input.Path + public var path: Operations.LicensesGet.Input.Path /// - Remark: Generated from `#/paths/licenses/{license}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.licenses_sol_get.Input.Headers + public var headers: Operations.LicensesGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.licenses_sol_get.Input.Path, - headers: Operations.licenses_sol_get.Input.Headers = .init() + path: Operations.LicensesGet.Input.Path, + headers: Operations.LicensesGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -776,12 +793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/licenses/{license}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/licenses/{license}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.license) + case json(Components.Schemas.License) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.license { + public var json: Components.Schemas.License { get throws { switch self { case let .json(body): @@ -791,12 +808,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.licenses_sol_get.Output.Ok.Body + public var body: Operations.LicensesGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.licenses_sol_get.Output.Ok.Body) { + public init(body: Operations.LicensesGet.Output.Ok.Body) { self.body = body } } @@ -805,12 +822,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.licenses_sol_get.Output.Ok) + case ok(Operations.LicensesGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.licenses_sol_get.Output.Ok { + public var ok: Operations.LicensesGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -828,12 +845,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -851,12 +868,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -874,12 +891,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//licenses/{license}/get(licenses/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -934,7 +959,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/license`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`. - public enum licenses_sol_get_hyphen_for_hyphen_repo { + public enum LicensesGetForRepo { public static let id: Swift.String = "licenses/get-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/path`. @@ -942,52 +967,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.LicensesGetForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query`. public struct Query: Sendable, Hashable { /// The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/query/ref`. - public var ref: Components.Parameters.git_hyphen_ref? + public var ref: Components.Parameters.GitRef? /// Creates a new `Query`. /// /// - Parameters: /// - ref: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. - public init(ref: Components.Parameters.git_hyphen_ref? = nil) { + public init(ref: Components.Parameters.GitRef? = nil) { self.ref = ref } } - public var query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.LicensesGetForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.LicensesGetForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -995,9 +1020,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Path, - query: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.LicensesGetForRepo.Input.Path, + query: Operations.LicensesGetForRepo.Input.Query = .init(), + headers: Operations.LicensesGetForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -1009,12 +1034,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/license/GET/responses/200/content/application\/json`. - case json(Components.Schemas.license_hyphen_content) + case json(Components.Schemas.LicenseContent) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.license_hyphen_content { + public var json: Components.Schemas.LicenseContent { get throws { switch self { case let .json(body): @@ -1024,12 +1049,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.LicensesGetForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.LicensesGetForRepo.Output.Ok.Body) { self.body = body } } @@ -1038,12 +1063,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.LicensesGetForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.licenses_sol_get_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.LicensesGetForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -1061,12 +1086,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): From 52bfab201136dffd9040d00b2d191748e214b33e Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:02:48 -0700 Subject: [PATCH 18/46] Commit via running ake Sources/markdown --- Sources/markdown/Client.swift | 30 +++---- Sources/markdown/Types.swift | 163 ++++++++++++++++++++-------------- 2 files changed, 109 insertions(+), 84 deletions(-) diff --git a/Sources/markdown/Client.swift b/Sources/markdown/Client.swift index f4e21dd770..f86df8fee0 100644 --- a/Sources/markdown/Client.swift +++ b/Sources/markdown/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /markdown`. /// - Remark: Generated from `#/paths//markdown/post(markdown/render)`. - public func markdown_sol_render(_ input: Operations.markdown_sol_render.Input) async throws -> Operations.markdown_sol_render.Output { + public func markdownRender(_ input: Operations.MarkdownRender.Input) async throws -> Operations.MarkdownRender.Output { try await client.send( input: input, - forOperation: Operations.markdown_sol_render.id, + forOperation: Operations.MarkdownRender.id, serializer: { input in let path = try converter.renderedPath( template: "/markdown", @@ -76,25 +76,25 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.markdown_sol_render.Output.Ok.Headers = .init( - Content_hyphen_Type: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MarkdownRender.Output.Ok.Headers = .init( + contentType: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Content-Type", - as: Components.Headers.content_hyphen_type.self + as: Components.Headers.ContentType.self ), - Content_hyphen_Length: try converter.getOptionalHeaderFieldAsURI( + contentLength: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Content-Length", as: Swift.String.self ), - X_hyphen_CommonMarker_hyphen_Version: try converter.getOptionalHeaderFieldAsURI( + xCommonMarkerVersion: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "X-CommonMarker-Version", - as: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version.self + as: Components.Headers.XCommonMarkerVersion.self ) ) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.markdown_sol_render.Output.Ok.Body + let body: Operations.MarkdownRender.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -137,10 +137,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /markdown/raw`. /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)`. - public func markdown_sol_render_hyphen_raw(_ input: Operations.markdown_sol_render_hyphen_raw.Input) async throws -> Operations.markdown_sol_render_hyphen_raw.Output { + public func markdownRenderRaw(_ input: Operations.MarkdownRenderRaw.Input) async throws -> Operations.MarkdownRenderRaw.Output { try await client.send( input: input, - forOperation: Operations.markdown_sol_render_hyphen_raw.id, + forOperation: Operations.MarkdownRenderRaw.id, serializer: { input in let path = try converter.renderedPath( template: "/markdown/raw", @@ -165,7 +165,7 @@ public struct Client: APIProtocol { headerFields: &request.headerFields, contentType: "text/plain" ) - case let .text_x_hyphen_markdown(value): + case let .textXMarkdown(value): body = try converter.setOptionalRequestBodyAsBinary( value, headerFields: &request.headerFields, @@ -177,13 +177,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Headers = .init(X_hyphen_CommonMarker_hyphen_Version: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MarkdownRenderRaw.Output.Ok.Headers = .init(xCommonMarkerVersion: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "X-CommonMarker-Version", - as: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version.self + as: Components.Headers.XCommonMarkerVersion.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Body + let body: Operations.MarkdownRenderRaw.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ diff --git a/Sources/markdown/Types.swift b/Sources/markdown/Types.swift index ad04dde165..10f4f12ac1 100644 --- a/Sources/markdown/Types.swift +++ b/Sources/markdown/Types.swift @@ -17,14 +17,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /markdown`. /// - Remark: Generated from `#/paths//markdown/post(markdown/render)`. - func markdown_sol_render(_ input: Operations.markdown_sol_render.Input) async throws -> Operations.markdown_sol_render.Output + func markdownRender(_ input: Operations.MarkdownRender.Input) async throws -> Operations.MarkdownRender.Output /// Render a Markdown document in raw mode /// /// You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. /// /// - Remark: HTTP `POST /markdown/raw`. /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)`. - func markdown_sol_render_hyphen_raw(_ input: Operations.markdown_sol_render_hyphen_raw.Input) async throws -> Operations.markdown_sol_render_hyphen_raw.Output + func markdownRenderRaw(_ input: Operations.MarkdownRenderRaw.Input) async throws -> Operations.MarkdownRenderRaw.Output } /// Convenience overloads for operation inputs. @@ -35,11 +35,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /markdown`. /// - Remark: Generated from `#/paths//markdown/post(markdown/render)`. - public func markdown_sol_render( - headers: Operations.markdown_sol_render.Input.Headers = .init(), - body: Operations.markdown_sol_render.Input.Body - ) async throws -> Operations.markdown_sol_render.Output { - try await markdown_sol_render(Operations.markdown_sol_render.Input( + public func markdownRender( + headers: Operations.MarkdownRender.Input.Headers = .init(), + body: Operations.MarkdownRender.Input.Body + ) async throws -> Operations.MarkdownRender.Output { + try await markdownRender(Operations.MarkdownRender.Input( headers: headers, body: body )) @@ -50,11 +50,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /markdown/raw`. /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)`. - public func markdown_sol_render_hyphen_raw( - headers: Operations.markdown_sol_render_hyphen_raw.Input.Headers = .init(), - body: Operations.markdown_sol_render_hyphen_raw.Input.Body? = nil - ) async throws -> Operations.markdown_sol_render_hyphen_raw.Output { - try await markdown_sol_render_hyphen_raw(Operations.markdown_sol_render_hyphen_raw.Input( + public func markdownRenderRaw( + headers: Operations.MarkdownRenderRaw.Input.Headers = .init(), + body: Operations.MarkdownRenderRaw.Input.Body? = nil + ) async throws -> Operations.MarkdownRenderRaw.Output { + try await markdownRenderRaw(Operations.MarkdownRenderRaw.Input( headers: headers, body: body )) @@ -63,6 +63,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -81,17 +90,17 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/content-type`. - public typealias content_hyphen_type = Swift.String + public typealias ContentType = Swift.String /// - Remark: Generated from `#/components/headers/x-common-marker-version`. - public typealias x_hyphen_common_hyphen_marker_hyphen_version = Swift.String + public typealias XCommonMarkerVersion = Swift.String } } @@ -103,25 +112,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /markdown`. /// - Remark: Generated from `#/paths//markdown/post(markdown/render)`. - public enum markdown_sol_render { + public enum MarkdownRender { public static let id: Swift.String = "markdown/render" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.markdown_sol_render.Input.Headers + public var headers: Operations.MarkdownRender.Input.Headers /// - Remark: Generated from `#/paths/markdown/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The Markdown text to render in HTML. /// /// - Remark: Generated from `#/paths/markdown/POST/requestBody/json/text`. @@ -129,19 +138,19 @@ public enum Operations { /// The rendering mode. /// /// - Remark: Generated from `#/paths/markdown/POST/requestBody/json/mode`. - @frozen public enum modePayload: String, Codable, Hashable, Sendable { + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { case markdown = "markdown" case gfm = "gfm" } /// The rendering mode. /// /// - Remark: Generated from `#/paths/markdown/POST/requestBody/json/mode`. - public var mode: Operations.markdown_sol_render.Input.Body.jsonPayload.modePayload? + public var mode: Operations.MarkdownRender.Input.Body.JsonPayload.ModePayload? /// The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository. /// /// - Remark: Generated from `#/paths/markdown/POST/requestBody/json/context`. public var context: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - text: The Markdown text to render in HTML. @@ -149,7 +158,7 @@ public enum Operations { /// - context: The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository. public init( text: Swift.String, - mode: Operations.markdown_sol_render.Input.Body.jsonPayload.modePayload? = nil, + mode: Operations.MarkdownRender.Input.Body.JsonPayload.ModePayload? = nil, context: Swift.String? = nil ) { self.text = text @@ -163,17 +172,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/markdown/POST/requestBody/content/application\/json`. - case json(Operations.markdown_sol_render.Input.Body.jsonPayload) + case json(Operations.MarkdownRender.Input.Body.JsonPayload) } - public var body: Operations.markdown_sol_render.Input.Body + public var body: Operations.MarkdownRender.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.markdown_sol_render.Input.Headers = .init(), - body: Operations.markdown_sol_render.Input.Body + headers: Operations.MarkdownRender.Input.Headers = .init(), + body: Operations.MarkdownRender.Input.Body ) { self.headers = headers self.body = body @@ -184,29 +193,29 @@ public enum Operations { /// - Remark: Generated from `#/paths/markdown/POST/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/POST/responses/200/headers/Content-Type`. - public var Content_hyphen_Type: Components.Headers.content_hyphen_type? + public var contentType: Components.Headers.ContentType? /// - Remark: Generated from `#/paths/markdown/POST/responses/200/headers/Content-Length`. - public var Content_hyphen_Length: Swift.String? + public var contentLength: Swift.String? /// - Remark: Generated from `#/paths/markdown/POST/responses/200/headers/X-CommonMarker-Version`. - public var X_hyphen_CommonMarker_hyphen_Version: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version? + public var xCommonMarkerVersion: Components.Headers.XCommonMarkerVersion? /// Creates a new `Headers`. /// /// - Parameters: - /// - Content_hyphen_Type: - /// - Content_hyphen_Length: - /// - X_hyphen_CommonMarker_hyphen_Version: + /// - contentType: + /// - contentLength: + /// - xCommonMarkerVersion: public init( - Content_hyphen_Type: Components.Headers.content_hyphen_type? = nil, - Content_hyphen_Length: Swift.String? = nil, - X_hyphen_CommonMarker_hyphen_Version: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version? = nil + contentType: Components.Headers.ContentType? = nil, + contentLength: Swift.String? = nil, + xCommonMarkerVersion: Components.Headers.XCommonMarkerVersion? = nil ) { - self.Content_hyphen_Type = Content_hyphen_Type - self.Content_hyphen_Length = Content_hyphen_Length - self.X_hyphen_CommonMarker_hyphen_Version = X_hyphen_CommonMarker_hyphen_Version + self.contentType = contentType + self.contentLength = contentLength + self.xCommonMarkerVersion = xCommonMarkerVersion } } /// Received HTTP response headers - public var headers: Operations.markdown_sol_render.Output.Ok.Headers + public var headers: Operations.MarkdownRender.Output.Ok.Headers /// - Remark: Generated from `#/paths/markdown/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/POST/responses/200/content/text\/html`. @@ -225,15 +234,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.markdown_sol_render.Output.Ok.Body + public var body: Operations.MarkdownRender.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.markdown_sol_render.Output.Ok.Headers = .init(), - body: Operations.markdown_sol_render.Output.Ok.Body + headers: Operations.MarkdownRender.Output.Ok.Headers = .init(), + body: Operations.MarkdownRender.Output.Ok.Body ) { self.headers = headers self.body = body @@ -244,12 +253,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//markdown/post(markdown/render)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.markdown_sol_render.Output.Ok) + case ok(Operations.MarkdownRender.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.markdown_sol_render.Output.Ok { + public var ok: Operations.MarkdownRender.Output.Ok { get throws { switch self { case let .ok(response): @@ -267,12 +276,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//markdown/post(markdown/render)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//markdown/post(markdown/render)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -322,37 +339,37 @@ public enum Operations { /// /// - Remark: HTTP `POST /markdown/raw`. /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)`. - public enum markdown_sol_render_hyphen_raw { + public enum MarkdownRenderRaw { public static let id: Swift.String = "markdown/render-raw" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/raw/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.markdown_sol_render_hyphen_raw.Input.Headers + public var headers: Operations.MarkdownRenderRaw.Input.Headers /// - Remark: Generated from `#/paths/markdown/raw/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/raw/POST/requestBody/content/text\/plain`. case plainText(OpenAPIRuntime.HTTPBody) /// - Remark: Generated from `#/paths/markdown/raw/POST/requestBody/content/text\/x-markdown`. - case text_x_hyphen_markdown(OpenAPIRuntime.HTTPBody) + case textXMarkdown(OpenAPIRuntime.HTTPBody) } - public var body: Operations.markdown_sol_render_hyphen_raw.Input.Body? + public var body: Operations.MarkdownRenderRaw.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.markdown_sol_render_hyphen_raw.Input.Headers = .init(), - body: Operations.markdown_sol_render_hyphen_raw.Input.Body? = nil + headers: Operations.MarkdownRenderRaw.Input.Headers = .init(), + body: Operations.MarkdownRenderRaw.Input.Body? = nil ) { self.headers = headers self.body = body @@ -363,17 +380,17 @@ public enum Operations { /// - Remark: Generated from `#/paths/markdown/raw/POST/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/raw/POST/responses/200/headers/X-CommonMarker-Version`. - public var X_hyphen_CommonMarker_hyphen_Version: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version? + public var xCommonMarkerVersion: Components.Headers.XCommonMarkerVersion? /// Creates a new `Headers`. /// /// - Parameters: - /// - X_hyphen_CommonMarker_hyphen_Version: - public init(X_hyphen_CommonMarker_hyphen_Version: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version? = nil) { - self.X_hyphen_CommonMarker_hyphen_Version = X_hyphen_CommonMarker_hyphen_Version + /// - xCommonMarkerVersion: + public init(xCommonMarkerVersion: Components.Headers.XCommonMarkerVersion? = nil) { + self.xCommonMarkerVersion = xCommonMarkerVersion } } /// Received HTTP response headers - public var headers: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Headers + public var headers: Operations.MarkdownRenderRaw.Output.Ok.Headers /// - Remark: Generated from `#/paths/markdown/raw/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/markdown/raw/POST/responses/200/content/text\/html`. @@ -392,15 +409,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Body + public var body: Operations.MarkdownRenderRaw.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Headers = .init(), - body: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Body + headers: Operations.MarkdownRenderRaw.Output.Ok.Headers = .init(), + body: Operations.MarkdownRenderRaw.Output.Ok.Body ) { self.headers = headers self.body = body @@ -411,12 +428,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.markdown_sol_render_hyphen_raw.Output.Ok) + case ok(Operations.MarkdownRenderRaw.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.markdown_sol_render_hyphen_raw.Output.Ok { + public var ok: Operations.MarkdownRenderRaw.Output.Ok { get throws { switch self { case let .ok(response): @@ -434,12 +451,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): From 6e95cd2067009eb491da65a6ed3696a6166b2b3b Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:03:01 -0700 Subject: [PATCH 19/46] Commit via running ake Sources/merge-queue --- Sources/merge-queue/Types.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/merge-queue/Types.swift b/Sources/merge-queue/Types.swift index 2a210decbf..c3d1209ecf 100644 --- a/Sources/merge-queue/Types.swift +++ b/Sources/merge-queue/Types.swift @@ -18,6 +18,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", From f7298b3c722d3f532b91cf983be7b9c4e5a59e0e Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:03:15 -0700 Subject: [PATCH 20/46] Commit via running ake Sources/meta --- Sources/meta/Client.swift | 40 +-- Sources/meta/Types.swift | 711 +++++++++++++++++++------------------- 2 files changed, 384 insertions(+), 367 deletions(-) diff --git a/Sources/meta/Client.swift b/Sources/meta/Client.swift index b7f4ea34e9..299707169f 100644 --- a/Sources/meta/Client.swift +++ b/Sources/meta/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /`. /// - Remark: Generated from `#/paths///get(meta/root)`. - public func meta_sol_root(_ input: Operations.meta_sol_root.Input) async throws -> Operations.meta_sol_root.Output { + public func metaRoot(_ input: Operations.MetaRoot.Input) async throws -> Operations.MetaRoot.Output { try await client.send( input: input, - forOperation: Operations.meta_sol_root.id, + forOperation: Operations.MetaRoot.id, serializer: { input in let path = try converter.renderedPath( template: "/", @@ -68,7 +68,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.meta_sol_root.Output.Ok.Body + let body: Operations.MetaRoot.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -78,7 +78,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.root.self, + Components.Schemas.Root.self, from: responseBody, transforming: { value in .json(value) @@ -113,10 +113,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /meta`. /// - Remark: Generated from `#/paths//meta/get(meta/get)`. - public func meta_sol_get(_ input: Operations.meta_sol_get.Input) async throws -> Operations.meta_sol_get.Output { + public func metaGet(_ input: Operations.MetaGet.Input) async throws -> Operations.MetaGet.Output { try await client.send( input: input, - forOperation: Operations.meta_sol_get.id, + forOperation: Operations.MetaGet.id, serializer: { input in let path = try converter.renderedPath( template: "/meta", @@ -137,7 +137,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.meta_sol_get.Output.Ok.Body + let body: Operations.MetaGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -147,7 +147,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_overview.self, + Components.Schemas.ApiOverview.self, from: responseBody, transforming: { value in .json(value) @@ -177,10 +177,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /octocat`. /// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)`. - public func meta_sol_get_hyphen_octocat(_ input: Operations.meta_sol_get_hyphen_octocat.Input) async throws -> Operations.meta_sol_get_hyphen_octocat.Output { + public func metaGetOctocat(_ input: Operations.MetaGetOctocat.Input) async throws -> Operations.MetaGetOctocat.Output { try await client.send( input: input, - forOperation: Operations.meta_sol_get_hyphen_octocat.id, + forOperation: Operations.MetaGetOctocat.id, serializer: { input in let path = try converter.renderedPath( template: "/octocat", @@ -208,7 +208,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.meta_sol_get_hyphen_octocat.Output.Ok.Body + let body: Operations.MetaGetOctocat.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -221,7 +221,7 @@ public struct Client: APIProtocol { OpenAPIRuntime.HTTPBody.self, from: responseBody, transforming: { value in - .application_octocat_hyphen_stream(value) + .applicationOctocatStream(value) } ) default: @@ -246,10 +246,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /versions`. /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)`. - public func meta_sol_get_hyphen_all_hyphen_versions(_ input: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input) async throws -> Operations.meta_sol_get_hyphen_all_hyphen_versions.Output { + public func metaGetAllVersions(_ input: Operations.MetaGetAllVersions.Input) async throws -> Operations.MetaGetAllVersions.Output { try await client.send( input: input, - forOperation: Operations.meta_sol_get_hyphen_all_hyphen_versions.id, + forOperation: Operations.MetaGetAllVersions.id, serializer: { input in let path = try converter.renderedPath( template: "/versions", @@ -270,7 +270,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok.Body + let body: Operations.MetaGetAllVersions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -292,7 +292,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -302,7 +302,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -330,10 +330,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /zen`. /// - Remark: Generated from `#/paths//zen/get(meta/get-zen)`. - public func meta_sol_get_hyphen_zen(_ input: Operations.meta_sol_get_hyphen_zen.Input) async throws -> Operations.meta_sol_get_hyphen_zen.Output { + public func metaGetZen(_ input: Operations.MetaGetZen.Input) async throws -> Operations.MetaGetZen.Output { try await client.send( input: input, - forOperation: Operations.meta_sol_get_hyphen_zen.id, + forOperation: Operations.MetaGetZen.id, serializer: { input in let path = try converter.renderedPath( template: "/zen", @@ -354,7 +354,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.meta_sol_get_hyphen_zen.Output.Ok.Body + let body: Operations.MetaGetZen.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ diff --git a/Sources/meta/Types.swift b/Sources/meta/Types.swift index d62139f0f8..f5f5814481 100644 --- a/Sources/meta/Types.swift +++ b/Sources/meta/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /`. /// - Remark: Generated from `#/paths///get(meta/root)`. - func meta_sol_root(_ input: Operations.meta_sol_root.Input) async throws -> Operations.meta_sol_root.Output + func metaRoot(_ input: Operations.MetaRoot.Input) async throws -> Operations.MetaRoot.Output /// Get GitHub meta information /// /// Returns meta information about GitHub, including a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://docs.github.com/articles/about-github-s-ip-addresses/)." @@ -31,28 +31,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /meta`. /// - Remark: Generated from `#/paths//meta/get(meta/get)`. - func meta_sol_get(_ input: Operations.meta_sol_get.Input) async throws -> Operations.meta_sol_get.Output + func metaGet(_ input: Operations.MetaGet.Input) async throws -> Operations.MetaGet.Output /// Get Octocat /// /// Get the octocat as ASCII art /// /// - Remark: HTTP `GET /octocat`. /// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)`. - func meta_sol_get_hyphen_octocat(_ input: Operations.meta_sol_get_hyphen_octocat.Input) async throws -> Operations.meta_sol_get_hyphen_octocat.Output + func metaGetOctocat(_ input: Operations.MetaGetOctocat.Input) async throws -> Operations.MetaGetOctocat.Output /// Get all API versions /// /// Get all supported GitHub API versions. /// /// - Remark: HTTP `GET /versions`. /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)`. - func meta_sol_get_hyphen_all_hyphen_versions(_ input: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input) async throws -> Operations.meta_sol_get_hyphen_all_hyphen_versions.Output + func metaGetAllVersions(_ input: Operations.MetaGetAllVersions.Input) async throws -> Operations.MetaGetAllVersions.Output /// Get the Zen of GitHub /// /// Get a random sentence from the Zen of GitHub /// /// - Remark: HTTP `GET /zen`. /// - Remark: Generated from `#/paths//zen/get(meta/get-zen)`. - func meta_sol_get_hyphen_zen(_ input: Operations.meta_sol_get_hyphen_zen.Input) async throws -> Operations.meta_sol_get_hyphen_zen.Output + func metaGetZen(_ input: Operations.MetaGetZen.Input) async throws -> Operations.MetaGetZen.Output } /// Convenience overloads for operation inputs. @@ -63,8 +63,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /`. /// - Remark: Generated from `#/paths///get(meta/root)`. - public func meta_sol_root(headers: Operations.meta_sol_root.Input.Headers = .init()) async throws -> Operations.meta_sol_root.Output { - try await meta_sol_root(Operations.meta_sol_root.Input(headers: headers)) + public func metaRoot(headers: Operations.MetaRoot.Input.Headers = .init()) async throws -> Operations.MetaRoot.Output { + try await metaRoot(Operations.MetaRoot.Input(headers: headers)) } /// Get GitHub meta information /// @@ -79,8 +79,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /meta`. /// - Remark: Generated from `#/paths//meta/get(meta/get)`. - public func meta_sol_get(headers: Operations.meta_sol_get.Input.Headers = .init()) async throws -> Operations.meta_sol_get.Output { - try await meta_sol_get(Operations.meta_sol_get.Input(headers: headers)) + public func metaGet(headers: Operations.MetaGet.Input.Headers = .init()) async throws -> Operations.MetaGet.Output { + try await metaGet(Operations.MetaGet.Input(headers: headers)) } /// Get Octocat /// @@ -88,11 +88,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /octocat`. /// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)`. - public func meta_sol_get_hyphen_octocat( - query: Operations.meta_sol_get_hyphen_octocat.Input.Query = .init(), - headers: Operations.meta_sol_get_hyphen_octocat.Input.Headers = .init() - ) async throws -> Operations.meta_sol_get_hyphen_octocat.Output { - try await meta_sol_get_hyphen_octocat(Operations.meta_sol_get_hyphen_octocat.Input( + public func metaGetOctocat( + query: Operations.MetaGetOctocat.Input.Query = .init(), + headers: Operations.MetaGetOctocat.Input.Headers = .init() + ) async throws -> Operations.MetaGetOctocat.Output { + try await metaGetOctocat(Operations.MetaGetOctocat.Input( query: query, headers: headers )) @@ -103,8 +103,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /versions`. /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)`. - public func meta_sol_get_hyphen_all_hyphen_versions(headers: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input.Headers = .init()) async throws -> Operations.meta_sol_get_hyphen_all_hyphen_versions.Output { - try await meta_sol_get_hyphen_all_hyphen_versions(Operations.meta_sol_get_hyphen_all_hyphen_versions.Input(headers: headers)) + public func metaGetAllVersions(headers: Operations.MetaGetAllVersions.Input.Headers = .init()) async throws -> Operations.MetaGetAllVersions.Output { + try await metaGetAllVersions(Operations.MetaGetAllVersions.Input(headers: headers)) } /// Get the Zen of GitHub /// @@ -112,13 +112,22 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /zen`. /// - Remark: Generated from `#/paths//zen/get(meta/get-zen)`. - public func meta_sol_get_hyphen_zen(headers: Operations.meta_sol_get_hyphen_zen.Input.Headers = .init()) async throws -> Operations.meta_sol_get_hyphen_zen.Output { - try await meta_sol_get_hyphen_zen(Operations.meta_sol_get_hyphen_zen.Input(headers: headers)) + public func metaGetZen(headers: Operations.MetaGetZen.Input.Headers = .init()) async throws -> Operations.MetaGetZen.Output { + try await metaGetZen(Operations.MetaGetZen.Input(headers: headers)) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -132,248 +141,248 @@ public enum Components { /// Types generated from the `#/components/schemas` section of the OpenAPI document. public enum Schemas { /// - Remark: Generated from `#/components/schemas/root`. - public struct root: Codable, Hashable, Sendable { + public struct Root: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/root/current_user_url`. - public var current_user_url: Swift.String + public var currentUserUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/current_user_authorizations_html_url`. - public var current_user_authorizations_html_url: Swift.String + public var currentUserAuthorizationsHtmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/authorizations_url`. - public var authorizations_url: Swift.String + public var authorizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/code_search_url`. - public var code_search_url: Swift.String + public var codeSearchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/commit_search_url`. - public var commit_search_url: Swift.String + public var commitSearchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/emails_url`. - public var emails_url: Swift.String + public var emailsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/emojis_url`. - public var emojis_url: Swift.String + public var emojisUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/feeds_url`. - public var feeds_url: Swift.String + public var feedsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/hub_url`. @available(*, deprecated) - public var hub_url: Swift.String? + public var hubUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/root/issue_search_url`. - public var issue_search_url: Swift.String + public var issueSearchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/label_search_url`. - public var label_search_url: Swift.String + public var labelSearchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/organization_url`. - public var organization_url: Swift.String + public var organizationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/organization_repositories_url`. - public var organization_repositories_url: Swift.String + public var organizationRepositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/organization_teams_url`. - public var organization_teams_url: Swift.String + public var organizationTeamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/public_gists_url`. - public var public_gists_url: Swift.String + public var publicGistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/rate_limit_url`. - public var rate_limit_url: Swift.String + public var rateLimitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/repository_search_url`. - public var repository_search_url: Swift.String + public var repositorySearchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/current_user_repositories_url`. - public var current_user_repositories_url: Swift.String + public var currentUserRepositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/starred_gists_url`. - public var starred_gists_url: Swift.String + public var starredGistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/topic_search_url`. - public var topic_search_url: Swift.String? + public var topicSearchUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/root/user_url`. - public var user_url: Swift.String + public var userUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/user_organizations_url`. - public var user_organizations_url: Swift.String + public var userOrganizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/user_repositories_url`. - public var user_repositories_url: Swift.String + public var userRepositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/root/user_search_url`. - public var user_search_url: Swift.String - /// Creates a new `root`. + public var userSearchUrl: Swift.String + /// Creates a new `Root`. /// /// - Parameters: - /// - current_user_url: - /// - current_user_authorizations_html_url: - /// - authorizations_url: - /// - code_search_url: - /// - commit_search_url: - /// - emails_url: - /// - emojis_url: - /// - events_url: - /// - feeds_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - hub_url: - /// - issue_search_url: - /// - issues_url: - /// - keys_url: - /// - label_search_url: - /// - notifications_url: - /// - organization_url: - /// - organization_repositories_url: - /// - organization_teams_url: - /// - public_gists_url: - /// - rate_limit_url: - /// - repository_url: - /// - repository_search_url: - /// - current_user_repositories_url: - /// - starred_url: - /// - starred_gists_url: - /// - topic_search_url: - /// - user_url: - /// - user_organizations_url: - /// - user_repositories_url: - /// - user_search_url: + /// - currentUserUrl: + /// - currentUserAuthorizationsHtmlUrl: + /// - authorizationsUrl: + /// - codeSearchUrl: + /// - commitSearchUrl: + /// - emailsUrl: + /// - emojisUrl: + /// - eventsUrl: + /// - feedsUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - hubUrl: + /// - issueSearchUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelSearchUrl: + /// - notificationsUrl: + /// - organizationUrl: + /// - organizationRepositoriesUrl: + /// - organizationTeamsUrl: + /// - publicGistsUrl: + /// - rateLimitUrl: + /// - repositoryUrl: + /// - repositorySearchUrl: + /// - currentUserRepositoriesUrl: + /// - starredUrl: + /// - starredGistsUrl: + /// - topicSearchUrl: + /// - userUrl: + /// - userOrganizationsUrl: + /// - userRepositoriesUrl: + /// - userSearchUrl: public init( - current_user_url: Swift.String, - current_user_authorizations_html_url: Swift.String, - authorizations_url: Swift.String, - code_search_url: Swift.String, - commit_search_url: Swift.String, - emails_url: Swift.String, - emojis_url: Swift.String, - events_url: Swift.String, - feeds_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - hub_url: Swift.String? = nil, - issue_search_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - label_search_url: Swift.String, - notifications_url: Swift.String, - organization_url: Swift.String, - organization_repositories_url: Swift.String, - organization_teams_url: Swift.String, - public_gists_url: Swift.String, - rate_limit_url: Swift.String, - repository_url: Swift.String, - repository_search_url: Swift.String, - current_user_repositories_url: Swift.String, - starred_url: Swift.String, - starred_gists_url: Swift.String, - topic_search_url: Swift.String? = nil, - user_url: Swift.String, - user_organizations_url: Swift.String, - user_repositories_url: Swift.String, - user_search_url: Swift.String + currentUserUrl: Swift.String, + currentUserAuthorizationsHtmlUrl: Swift.String, + authorizationsUrl: Swift.String, + codeSearchUrl: Swift.String, + commitSearchUrl: Swift.String, + emailsUrl: Swift.String, + emojisUrl: Swift.String, + eventsUrl: Swift.String, + feedsUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + hubUrl: Swift.String? = nil, + issueSearchUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelSearchUrl: Swift.String, + notificationsUrl: Swift.String, + organizationUrl: Swift.String, + organizationRepositoriesUrl: Swift.String, + organizationTeamsUrl: Swift.String, + publicGistsUrl: Swift.String, + rateLimitUrl: Swift.String, + repositoryUrl: Swift.String, + repositorySearchUrl: Swift.String, + currentUserRepositoriesUrl: Swift.String, + starredUrl: Swift.String, + starredGistsUrl: Swift.String, + topicSearchUrl: Swift.String? = nil, + userUrl: Swift.String, + userOrganizationsUrl: Swift.String, + userRepositoriesUrl: Swift.String, + userSearchUrl: Swift.String ) { - self.current_user_url = current_user_url - self.current_user_authorizations_html_url = current_user_authorizations_html_url - self.authorizations_url = authorizations_url - self.code_search_url = code_search_url - self.commit_search_url = commit_search_url - self.emails_url = emails_url - self.emojis_url = emojis_url - self.events_url = events_url - self.feeds_url = feeds_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.hub_url = hub_url - self.issue_search_url = issue_search_url - self.issues_url = issues_url - self.keys_url = keys_url - self.label_search_url = label_search_url - self.notifications_url = notifications_url - self.organization_url = organization_url - self.organization_repositories_url = organization_repositories_url - self.organization_teams_url = organization_teams_url - self.public_gists_url = public_gists_url - self.rate_limit_url = rate_limit_url - self.repository_url = repository_url - self.repository_search_url = repository_search_url - self.current_user_repositories_url = current_user_repositories_url - self.starred_url = starred_url - self.starred_gists_url = starred_gists_url - self.topic_search_url = topic_search_url - self.user_url = user_url - self.user_organizations_url = user_organizations_url - self.user_repositories_url = user_repositories_url - self.user_search_url = user_search_url + self.currentUserUrl = currentUserUrl + self.currentUserAuthorizationsHtmlUrl = currentUserAuthorizationsHtmlUrl + self.authorizationsUrl = authorizationsUrl + self.codeSearchUrl = codeSearchUrl + self.commitSearchUrl = commitSearchUrl + self.emailsUrl = emailsUrl + self.emojisUrl = emojisUrl + self.eventsUrl = eventsUrl + self.feedsUrl = feedsUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.hubUrl = hubUrl + self.issueSearchUrl = issueSearchUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelSearchUrl = labelSearchUrl + self.notificationsUrl = notificationsUrl + self.organizationUrl = organizationUrl + self.organizationRepositoriesUrl = organizationRepositoriesUrl + self.organizationTeamsUrl = organizationTeamsUrl + self.publicGistsUrl = publicGistsUrl + self.rateLimitUrl = rateLimitUrl + self.repositoryUrl = repositoryUrl + self.repositorySearchUrl = repositorySearchUrl + self.currentUserRepositoriesUrl = currentUserRepositoriesUrl + self.starredUrl = starredUrl + self.starredGistsUrl = starredGistsUrl + self.topicSearchUrl = topicSearchUrl + self.userUrl = userUrl + self.userOrganizationsUrl = userOrganizationsUrl + self.userRepositoriesUrl = userRepositoriesUrl + self.userSearchUrl = userSearchUrl } public enum CodingKeys: String, CodingKey { - case current_user_url - case current_user_authorizations_html_url - case authorizations_url - case code_search_url - case commit_search_url - case emails_url - case emojis_url - case events_url - case feeds_url - case followers_url - case following_url - case gists_url - case hub_url - case issue_search_url - case issues_url - case keys_url - case label_search_url - case notifications_url - case organization_url - case organization_repositories_url - case organization_teams_url - case public_gists_url - case rate_limit_url - case repository_url - case repository_search_url - case current_user_repositories_url - case starred_url - case starred_gists_url - case topic_search_url - case user_url - case user_organizations_url - case user_repositories_url - case user_search_url + case currentUserUrl = "current_user_url" + case currentUserAuthorizationsHtmlUrl = "current_user_authorizations_html_url" + case authorizationsUrl = "authorizations_url" + case codeSearchUrl = "code_search_url" + case commitSearchUrl = "commit_search_url" + case emailsUrl = "emails_url" + case emojisUrl = "emojis_url" + case eventsUrl = "events_url" + case feedsUrl = "feeds_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case hubUrl = "hub_url" + case issueSearchUrl = "issue_search_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelSearchUrl = "label_search_url" + case notificationsUrl = "notifications_url" + case organizationUrl = "organization_url" + case organizationRepositoriesUrl = "organization_repositories_url" + case organizationTeamsUrl = "organization_teams_url" + case publicGistsUrl = "public_gists_url" + case rateLimitUrl = "rate_limit_url" + case repositoryUrl = "repository_url" + case repositorySearchUrl = "repository_search_url" + case currentUserRepositoriesUrl = "current_user_repositories_url" + case starredUrl = "starred_url" + case starredGistsUrl = "starred_gists_url" + case topicSearchUrl = "topic_search_url" + case userUrl = "user_url" + case userOrganizationsUrl = "user_organizations_url" + case userRepositoriesUrl = "user_repositories_url" + case userSearchUrl = "user_search_url" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -381,52 +390,52 @@ public enum Components { /// Api Overview /// /// - Remark: Generated from `#/components/schemas/api-overview`. - public struct api_hyphen_overview: Codable, Hashable, Sendable { + public struct ApiOverview: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/api-overview/verifiable_password_authentication`. - public var verifiable_password_authentication: Swift.Bool + public var verifiablePasswordAuthentication: Swift.Bool /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints`. - public struct ssh_key_fingerprintsPayload: Codable, Hashable, Sendable { + public struct SshKeyFingerprintsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints/SHA256_RSA`. - public var SHA256_RSA: Swift.String? + public var sha256Rsa: Swift.String? /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints/SHA256_DSA`. - public var SHA256_DSA: Swift.String? + public var sha256Dsa: Swift.String? /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints/SHA256_ECDSA`. - public var SHA256_ECDSA: Swift.String? + public var sha256Ecdsa: Swift.String? /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints/SHA256_ED25519`. - public var SHA256_ED25519: Swift.String? - /// Creates a new `ssh_key_fingerprintsPayload`. + public var sha256Ed25519: Swift.String? + /// Creates a new `SshKeyFingerprintsPayload`. /// /// - Parameters: - /// - SHA256_RSA: - /// - SHA256_DSA: - /// - SHA256_ECDSA: - /// - SHA256_ED25519: + /// - sha256Rsa: + /// - sha256Dsa: + /// - sha256Ecdsa: + /// - sha256Ed25519: public init( - SHA256_RSA: Swift.String? = nil, - SHA256_DSA: Swift.String? = nil, - SHA256_ECDSA: Swift.String? = nil, - SHA256_ED25519: Swift.String? = nil + sha256Rsa: Swift.String? = nil, + sha256Dsa: Swift.String? = nil, + sha256Ecdsa: Swift.String? = nil, + sha256Ed25519: Swift.String? = nil ) { - self.SHA256_RSA = SHA256_RSA - self.SHA256_DSA = SHA256_DSA - self.SHA256_ECDSA = SHA256_ECDSA - self.SHA256_ED25519 = SHA256_ED25519 + self.sha256Rsa = sha256Rsa + self.sha256Dsa = sha256Dsa + self.sha256Ecdsa = sha256Ecdsa + self.sha256Ed25519 = sha256Ed25519 } public enum CodingKeys: String, CodingKey { - case SHA256_RSA - case SHA256_DSA - case SHA256_ECDSA - case SHA256_ED25519 + case sha256Rsa = "SHA256_RSA" + case sha256Dsa = "SHA256_DSA" + case sha256Ecdsa = "SHA256_ECDSA" + case sha256Ed25519 = "SHA256_ED25519" } } /// - Remark: Generated from `#/components/schemas/api-overview/ssh_key_fingerprints`. - public var ssh_key_fingerprints: Components.Schemas.api_hyphen_overview.ssh_key_fingerprintsPayload? + public var sshKeyFingerprints: Components.Schemas.ApiOverview.SshKeyFingerprintsPayload? /// - Remark: Generated from `#/components/schemas/api-overview/ssh_keys`. - public var ssh_keys: [Swift.String]? + public var sshKeys: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/hooks`. public var hooks: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/github_enterprise_importer`. - public var github_enterprise_importer: [Swift.String]? + public var githubEnterpriseImporter: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/web`. public var web: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/api`. @@ -442,7 +451,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/api-overview/actions`. public var actions: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/actions_macos`. - public var actions_macos: [Swift.String]? + public var actionsMacos: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/codespaces`. public var codespaces: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/dependabot`. @@ -450,7 +459,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/api-overview/copilot`. public var copilot: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/domains`. - public struct domainsPayload: Codable, Hashable, Sendable { + public struct DomainsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/api-overview/domains/website`. public var website: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/domains/codespaces`. @@ -462,56 +471,56 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/api-overview/domains/actions`. public var actions: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/domains/actions_inbound`. - public struct actions_inboundPayload: Codable, Hashable, Sendable { + public struct ActionsInboundPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/api-overview/domains/actions_inbound/full_domains`. - public var full_domains: [Swift.String]? + public var fullDomains: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/domains/actions_inbound/wildcard_domains`. - public var wildcard_domains: [Swift.String]? - /// Creates a new `actions_inboundPayload`. + public var wildcardDomains: [Swift.String]? + /// Creates a new `ActionsInboundPayload`. /// /// - Parameters: - /// - full_domains: - /// - wildcard_domains: + /// - fullDomains: + /// - wildcardDomains: public init( - full_domains: [Swift.String]? = nil, - wildcard_domains: [Swift.String]? = nil + fullDomains: [Swift.String]? = nil, + wildcardDomains: [Swift.String]? = nil ) { - self.full_domains = full_domains - self.wildcard_domains = wildcard_domains + self.fullDomains = fullDomains + self.wildcardDomains = wildcardDomains } public enum CodingKeys: String, CodingKey { - case full_domains - case wildcard_domains + case fullDomains = "full_domains" + case wildcardDomains = "wildcard_domains" } } /// - Remark: Generated from `#/components/schemas/api-overview/domains/actions_inbound`. - public var actions_inbound: Components.Schemas.api_hyphen_overview.domainsPayload.actions_inboundPayload? + public var actionsInbound: Components.Schemas.ApiOverview.DomainsPayload.ActionsInboundPayload? /// - Remark: Generated from `#/components/schemas/api-overview/domains/artifact_attestations`. - public struct artifact_attestationsPayload: Codable, Hashable, Sendable { + public struct ArtifactAttestationsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/api-overview/domains/artifact_attestations/trust_domain`. - public var trust_domain: Swift.String? + public var trustDomain: Swift.String? /// - Remark: Generated from `#/components/schemas/api-overview/domains/artifact_attestations/services`. public var services: [Swift.String]? - /// Creates a new `artifact_attestationsPayload`. + /// Creates a new `ArtifactAttestationsPayload`. /// /// - Parameters: - /// - trust_domain: + /// - trustDomain: /// - services: public init( - trust_domain: Swift.String? = nil, + trustDomain: Swift.String? = nil, services: [Swift.String]? = nil ) { - self.trust_domain = trust_domain + self.trustDomain = trustDomain self.services = services } public enum CodingKeys: String, CodingKey { - case trust_domain + case trustDomain = "trust_domain" case services } } /// - Remark: Generated from `#/components/schemas/api-overview/domains/artifact_attestations`. - public var artifact_attestations: Components.Schemas.api_hyphen_overview.domainsPayload.artifact_attestationsPayload? - /// Creates a new `domainsPayload`. + public var artifactAttestations: Components.Schemas.ApiOverview.DomainsPayload.ArtifactAttestationsPayload? + /// Creates a new `DomainsPayload`. /// /// - Parameters: /// - website: @@ -519,24 +528,24 @@ public enum Components { /// - copilot: /// - packages: /// - actions: - /// - actions_inbound: - /// - artifact_attestations: + /// - actionsInbound: + /// - artifactAttestations: public init( website: [Swift.String]? = nil, codespaces: [Swift.String]? = nil, copilot: [Swift.String]? = nil, packages: [Swift.String]? = nil, actions: [Swift.String]? = nil, - actions_inbound: Components.Schemas.api_hyphen_overview.domainsPayload.actions_inboundPayload? = nil, - artifact_attestations: Components.Schemas.api_hyphen_overview.domainsPayload.artifact_attestationsPayload? = nil + actionsInbound: Components.Schemas.ApiOverview.DomainsPayload.ActionsInboundPayload? = nil, + artifactAttestations: Components.Schemas.ApiOverview.DomainsPayload.ArtifactAttestationsPayload? = nil ) { self.website = website self.codespaces = codespaces self.copilot = copilot self.packages = packages self.actions = actions - self.actions_inbound = actions_inbound - self.artifact_attestations = artifact_attestations + self.actionsInbound = actionsInbound + self.artifactAttestations = artifactAttestations } public enum CodingKeys: String, CodingKey { case website @@ -544,20 +553,20 @@ public enum Components { case copilot case packages case actions - case actions_inbound - case artifact_attestations + case actionsInbound = "actions_inbound" + case artifactAttestations = "artifact_attestations" } } /// - Remark: Generated from `#/components/schemas/api-overview/domains`. - public var domains: Components.Schemas.api_hyphen_overview.domainsPayload? - /// Creates a new `api_hyphen_overview`. + public var domains: Components.Schemas.ApiOverview.DomainsPayload? + /// Creates a new `ApiOverview`. /// /// - Parameters: - /// - verifiable_password_authentication: - /// - ssh_key_fingerprints: - /// - ssh_keys: + /// - verifiablePasswordAuthentication: + /// - sshKeyFingerprints: + /// - sshKeys: /// - hooks: - /// - github_enterprise_importer: + /// - githubEnterpriseImporter: /// - web: /// - api: /// - git: @@ -565,17 +574,17 @@ public enum Components { /// - pages: /// - importer: /// - actions: - /// - actions_macos: + /// - actionsMacos: /// - codespaces: /// - dependabot: /// - copilot: /// - domains: public init( - verifiable_password_authentication: Swift.Bool, - ssh_key_fingerprints: Components.Schemas.api_hyphen_overview.ssh_key_fingerprintsPayload? = nil, - ssh_keys: [Swift.String]? = nil, + verifiablePasswordAuthentication: Swift.Bool, + sshKeyFingerprints: Components.Schemas.ApiOverview.SshKeyFingerprintsPayload? = nil, + sshKeys: [Swift.String]? = nil, hooks: [Swift.String]? = nil, - github_enterprise_importer: [Swift.String]? = nil, + githubEnterpriseImporter: [Swift.String]? = nil, web: [Swift.String]? = nil, api: [Swift.String]? = nil, git: [Swift.String]? = nil, @@ -583,17 +592,17 @@ public enum Components { pages: [Swift.String]? = nil, importer: [Swift.String]? = nil, actions: [Swift.String]? = nil, - actions_macos: [Swift.String]? = nil, + actionsMacos: [Swift.String]? = nil, codespaces: [Swift.String]? = nil, dependabot: [Swift.String]? = nil, copilot: [Swift.String]? = nil, - domains: Components.Schemas.api_hyphen_overview.domainsPayload? = nil + domains: Components.Schemas.ApiOverview.DomainsPayload? = nil ) { - self.verifiable_password_authentication = verifiable_password_authentication - self.ssh_key_fingerprints = ssh_key_fingerprints - self.ssh_keys = ssh_keys + self.verifiablePasswordAuthentication = verifiablePasswordAuthentication + self.sshKeyFingerprints = sshKeyFingerprints + self.sshKeys = sshKeys self.hooks = hooks - self.github_enterprise_importer = github_enterprise_importer + self.githubEnterpriseImporter = githubEnterpriseImporter self.web = web self.api = api self.git = git @@ -601,18 +610,18 @@ public enum Components { self.pages = pages self.importer = importer self.actions = actions - self.actions_macos = actions_macos + self.actionsMacos = actionsMacos self.codespaces = codespaces self.dependabot = dependabot self.copilot = copilot self.domains = domains } public enum CodingKeys: String, CodingKey { - case verifiable_password_authentication - case ssh_key_fingerprints - case ssh_keys + case verifiablePasswordAuthentication = "verifiable_password_authentication" + case sshKeyFingerprints = "ssh_key_fingerprints" + case sshKeys = "ssh_keys" case hooks - case github_enterprise_importer + case githubEnterpriseImporter = "github_enterprise_importer" case web case api case git @@ -620,7 +629,7 @@ public enum Components { case pages case importer case actions - case actions_macos + case actionsMacos = "actions_macos" case codespaces case dependabot case copilot @@ -634,16 +643,16 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -653,17 +662,17 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } @@ -679,26 +688,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /`. /// - Remark: Generated from `#/paths///get(meta/root)`. - public enum meta_sol_root { + public enum MetaRoot { public static let id: Swift.String = "meta/root" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.meta_sol_root.Input.Headers + public var headers: Operations.MetaRoot.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.meta_sol_root.Input.Headers = .init()) { + public init(headers: Operations.MetaRoot.Input.Headers = .init()) { self.headers = headers } } @@ -707,12 +716,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/GET/responses/200/content/application\/json`. - case json(Components.Schemas.root) + case json(Components.Schemas.Root) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.root { + public var json: Components.Schemas.Root { get throws { switch self { case let .json(body): @@ -722,12 +731,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.meta_sol_root.Output.Ok.Body + public var body: Operations.MetaRoot.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.meta_sol_root.Output.Ok.Body) { + public init(body: Operations.MetaRoot.Output.Ok.Body) { self.body = body } } @@ -736,12 +745,12 @@ public enum Operations { /// - Remark: Generated from `#/paths///get(meta/root)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.meta_sol_root.Output.Ok) + case ok(Operations.MetaRoot.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.meta_sol_root.Output.Ok { + public var ok: Operations.MetaRoot.Output.Ok { get throws { switch self { case let .ok(response): @@ -798,26 +807,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /meta`. /// - Remark: Generated from `#/paths//meta/get(meta/get)`. - public enum meta_sol_get { + public enum MetaGet { public static let id: Swift.String = "meta/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/meta/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.meta_sol_get.Input.Headers + public var headers: Operations.MetaGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.meta_sol_get.Input.Headers = .init()) { + public init(headers: Operations.MetaGet.Input.Headers = .init()) { self.headers = headers } } @@ -826,12 +835,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/meta/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/meta/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_overview) + case json(Components.Schemas.ApiOverview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_overview { + public var json: Components.Schemas.ApiOverview { get throws { switch self { case let .json(body): @@ -841,12 +850,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.meta_sol_get.Output.Ok.Body + public var body: Operations.MetaGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.meta_sol_get.Output.Ok.Body) { + public init(body: Operations.MetaGet.Output.Ok.Body) { self.body = body } } @@ -855,12 +864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//meta/get(meta/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.meta_sol_get.Output.Ok) + case ok(Operations.MetaGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.meta_sol_get.Output.Ok { + public var ok: Operations.MetaGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -878,12 +887,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//meta/get(meta/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//meta/get(meta/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -933,7 +950,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /octocat`. /// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)`. - public enum meta_sol_get_hyphen_octocat { + public enum MetaGetOctocat { public static let id: Swift.String = "meta/get-octocat" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/octocat/GET/query`. @@ -950,27 +967,27 @@ public enum Operations { self.s = s } } - public var query: Operations.meta_sol_get_hyphen_octocat.Input.Query + public var query: Operations.MetaGetOctocat.Input.Query /// - Remark: Generated from `#/paths/octocat/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.meta_sol_get_hyphen_octocat.Input.Headers + public var headers: Operations.MetaGetOctocat.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.meta_sol_get_hyphen_octocat.Input.Query = .init(), - headers: Operations.meta_sol_get_hyphen_octocat.Input.Headers = .init() + query: Operations.MetaGetOctocat.Input.Query = .init(), + headers: Operations.MetaGetOctocat.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -981,27 +998,27 @@ public enum Operations { /// - Remark: Generated from `#/paths/octocat/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/octocat/GET/responses/200/content/application\/octocat-stream`. - case application_octocat_hyphen_stream(OpenAPIRuntime.HTTPBody) - /// The associated value of the enum case if `self` is `.application_octocat_hyphen_stream`. + case applicationOctocatStream(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationOctocatStream`. /// - /// - Throws: An error if `self` is not `.application_octocat_hyphen_stream`. - /// - SeeAlso: `.application_octocat_hyphen_stream`. - public var application_octocat_hyphen_stream: OpenAPIRuntime.HTTPBody { + /// - Throws: An error if `self` is not `.applicationOctocatStream`. + /// - SeeAlso: `.applicationOctocatStream`. + public var applicationOctocatStream: OpenAPIRuntime.HTTPBody { get throws { switch self { - case let .application_octocat_hyphen_stream(body): + case let .applicationOctocatStream(body): return body } } } } /// Received HTTP response body - public var body: Operations.meta_sol_get_hyphen_octocat.Output.Ok.Body + public var body: Operations.MetaGetOctocat.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.meta_sol_get_hyphen_octocat.Output.Ok.Body) { + public init(body: Operations.MetaGetOctocat.Output.Ok.Body) { self.body = body } } @@ -1010,12 +1027,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.meta_sol_get_hyphen_octocat.Output.Ok) + case ok(Operations.MetaGetOctocat.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.meta_sol_get_hyphen_octocat.Output.Ok { + public var ok: Operations.MetaGetOctocat.Output.Ok { get throws { switch self { case let .ok(response): @@ -1034,12 +1051,12 @@ public enum Operations { case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) } @frozen public enum AcceptableContentType: AcceptableProtocol { - case application_octocat_hyphen_stream + case applicationOctocatStream case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/octocat-stream": - self = .application_octocat_hyphen_stream + self = .applicationOctocatStream default: self = .other(rawValue) } @@ -1048,13 +1065,13 @@ public enum Operations { switch self { case let .other(string): return string - case .application_octocat_hyphen_stream: + case .applicationOctocatStream: return "application/octocat-stream" } } public static var allCases: [Self] { [ - .application_octocat_hyphen_stream + .applicationOctocatStream ] } } @@ -1065,26 +1082,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /versions`. /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)`. - public enum meta_sol_get_hyphen_all_hyphen_versions { + public enum MetaGetAllVersions { public static let id: Swift.String = "meta/get-all-versions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/versions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input.Headers + public var headers: Operations.MetaGetAllVersions.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input.Headers = .init()) { + public init(headers: Operations.MetaGetAllVersions.Input.Headers = .init()) { self.headers = headers } } @@ -1108,12 +1125,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok.Body + public var body: Operations.MetaGetAllVersions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok.Body) { + public init(body: Operations.MetaGetAllVersions.Output.Ok.Body) { self.body = body } } @@ -1122,12 +1139,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok) + case ok(Operations.MetaGetAllVersions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok { + public var ok: Operations.MetaGetAllVersions.Output.Ok { get throws { switch self { case let .ok(response): @@ -1145,12 +1162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1200,26 +1217,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /zen`. /// - Remark: Generated from `#/paths//zen/get(meta/get-zen)`. - public enum meta_sol_get_hyphen_zen { + public enum MetaGetZen { public static let id: Swift.String = "meta/get-zen" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/zen/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.meta_sol_get_hyphen_zen.Input.Headers + public var headers: Operations.MetaGetZen.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.meta_sol_get_hyphen_zen.Input.Headers = .init()) { + public init(headers: Operations.MetaGetZen.Input.Headers = .init()) { self.headers = headers } } @@ -1243,12 +1260,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.meta_sol_get_hyphen_zen.Output.Ok.Body + public var body: Operations.MetaGetZen.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.meta_sol_get_hyphen_zen.Output.Ok.Body) { + public init(body: Operations.MetaGetZen.Output.Ok.Body) { self.body = body } } @@ -1257,12 +1274,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//zen/get(meta/get-zen)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.meta_sol_get_hyphen_zen.Output.Ok) + case ok(Operations.MetaGetZen.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.meta_sol_get_hyphen_zen.Output.Ok { + public var ok: Operations.MetaGetZen.Output.Ok { get throws { switch self { case let .ok(response): From 6f5cf4678d8fd2c797feb0137a6a70e0875d246e Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:03:28 -0700 Subject: [PATCH 21/46] Commit via running ake Sources/migrations --- Sources/migrations/Client.swift | 356 +-- Sources/migrations/Types.swift | 4399 ++++++++++++++++--------------- 2 files changed, 2434 insertions(+), 2321 deletions(-) diff --git a/Sources/migrations/Client.swift b/Sources/migrations/Client.swift index 6b752e1335..72bf9c3764 100644 --- a/Sources/migrations/Client.swift +++ b/Sources/migrations/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/get(migrations/list-for-org)`. - public func migrations_sol_list_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_org.Output { + public func migrationsListForOrg(_ input: Operations.MigrationsListForOrg.Input) async throws -> Operations.MigrationsListForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_list_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsListForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations", @@ -67,7 +67,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -92,13 +92,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MigrationsListForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.MigrationsListForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -108,7 +108,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.migration].self, + [Components.Schemas.Migration].self, from: responseBody, transforming: { value in .json(value) @@ -139,10 +139,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)`. - public func migrations_sol_start_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_org.Output { + public func migrationsStartForOrg(_ input: Operations.MigrationsStartForOrg.Input) async throws -> Operations.MigrationsStartForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_start_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsStartForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations", @@ -174,7 +174,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.MigrationsStartForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -184,7 +184,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.migration.self, + Components.Schemas.Migration.self, from: responseBody, transforming: { value in .json(value) @@ -196,7 +196,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -206,7 +206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -218,7 +218,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -228,7 +228,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -263,16 +263,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)`. - public func migrations_sol_get_hyphen_status_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output { + public func migrationsGetStatusForOrg(_ input: Operations.MigrationsGetStatusForOrg.Input) async throws -> Operations.MigrationsGetStatusForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsGetStatusForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations/{}", parameters: [ input.path.org, - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -297,7 +297,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.MigrationsGetStatusForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -307,7 +307,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.migration.self, + Components.Schemas.Migration.self, from: responseBody, transforming: { value in .json(value) @@ -319,7 +319,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -329,7 +329,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -357,16 +357,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)`. - public func migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Output { + public func migrationsDownloadArchiveForOrg(_ input: Operations.MigrationsDownloadArchiveForOrg.Input) async throws -> Operations.MigrationsDownloadArchiveForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsDownloadArchiveForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations/{}/archive", parameters: [ input.path.org, - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -386,7 +386,7 @@ public struct Client: APIProtocol { return .found(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -424,16 +424,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)`. - public func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Output { + public func migrationsDeleteArchiveForOrg(_ input: Operations.MigrationsDeleteArchiveForOrg.Input) async throws -> Operations.MigrationsDeleteArchiveForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsDeleteArchiveForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations/{}/archive", parameters: [ input.path.org, - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -453,7 +453,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -463,7 +463,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -491,17 +491,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)`. - public func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Output { + public func migrationsUnlockRepoForOrg(_ input: Operations.MigrationsUnlockRepoForOrg.Input) async throws -> Operations.MigrationsUnlockRepoForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsUnlockRepoForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations/{}/repos/{}/lock", parameters: [ input.path.org, - input.path.migration_id, - input.path.repo_name + input.path.migrationId, + input.path.repoName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -521,7 +521,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -531,7 +531,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -559,16 +559,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)`. - public func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output { + public func migrationsListReposForOrg(_ input: Operations.MigrationsListReposForOrg.Input) async throws -> Operations.MigrationsListReposForOrg.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.id, + forOperation: Operations.MigrationsListReposForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/migrations/{}/repositories", parameters: [ input.path.org, - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -581,7 +581,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -599,13 +599,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MigrationsListReposForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.MigrationsListReposForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -615,7 +615,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -630,7 +630,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -640,7 +640,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -705,10 +705,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_import_hyphen_status(_ input: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input) async throws -> Operations.migrations_sol_get_hyphen_import_hyphen_status.Output { + public func migrationsGetImportStatus(_ input: Operations.MigrationsGetImportStatus.Input) async throws -> Operations.MigrationsGetImportStatus.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_import_hyphen_status.id, + forOperation: Operations.MigrationsGetImportStatus.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import", @@ -732,7 +732,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_get_hyphen_import_hyphen_status.Output.Ok.Body + let body: Operations.MigrationsGetImportStatus.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -742,7 +742,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas._import.self, + Components.Schemas.Import.self, from: responseBody, transforming: { value in .json(value) @@ -754,7 +754,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -764,7 +764,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -776,7 +776,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -786,7 +786,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -823,10 +823,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @available(*, deprecated) - public func migrations_sol_update_hyphen_import(_ input: Operations.migrations_sol_update_hyphen_import.Input) async throws -> Operations.migrations_sol_update_hyphen_import.Output { + public func migrationsUpdateImport(_ input: Operations.MigrationsUpdateImport.Input) async throws -> Operations.MigrationsUpdateImport.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_update_hyphen_import.id, + forOperation: Operations.MigrationsUpdateImport.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import", @@ -861,7 +861,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_update_hyphen_import.Output.Ok.Body + let body: Operations.MigrationsUpdateImport.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -871,7 +871,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas._import.self, + Components.Schemas.Import.self, from: responseBody, transforming: { value in .json(value) @@ -883,7 +883,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -893,7 +893,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -927,10 +927,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @available(*, deprecated) - public func migrations_sol_start_hyphen_import(_ input: Operations.migrations_sol_start_hyphen_import.Input) async throws -> Operations.migrations_sol_start_hyphen_import.Output { + public func migrationsStartImport(_ input: Operations.MigrationsStartImport.Input) async throws -> Operations.MigrationsStartImport.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_start_hyphen_import.id, + forOperation: Operations.MigrationsStartImport.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import", @@ -962,13 +962,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.migrations_sol_start_hyphen_import.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MigrationsStartImport.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_start_hyphen_import.Output.Created.Body + let body: Operations.MigrationsStartImport.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -978,7 +978,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas._import.self, + Components.Schemas.Import.self, from: responseBody, transforming: { value in .json(value) @@ -993,7 +993,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1003,7 +1003,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1015,7 +1015,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1025,7 +1025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1037,7 +1037,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1047,7 +1047,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1079,10 +1079,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @available(*, deprecated) - public func migrations_sol_cancel_hyphen_import(_ input: Operations.migrations_sol_cancel_hyphen_import.Input) async throws -> Operations.migrations_sol_cancel_hyphen_import.Output { + public func migrationsCancelImport(_ input: Operations.MigrationsCancelImport.Input) async throws -> Operations.MigrationsCancelImport.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_cancel_hyphen_import.id, + forOperation: Operations.MigrationsCancelImport.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import", @@ -1108,7 +1108,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1118,7 +1118,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1152,10 +1152,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_commit_hyphen_authors(_ input: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input) async throws -> Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output { + public func migrationsGetCommitAuthors(_ input: Operations.MigrationsGetCommitAuthors.Input) async throws -> Operations.MigrationsGetCommitAuthors.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.id, + forOperation: Operations.MigrationsGetCommitAuthors.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import/authors", @@ -1186,7 +1186,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output.Ok.Body + let body: Operations.MigrationsGetCommitAuthors.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1196,7 +1196,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.porter_hyphen_author].self, + [Components.Schemas.PorterAuthor].self, from: responseBody, transforming: { value in .json(value) @@ -1208,7 +1208,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1218,7 +1218,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1230,7 +1230,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1240,7 +1240,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1273,17 +1273,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @available(*, deprecated) - public func migrations_sol_map_hyphen_commit_hyphen_author(_ input: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input) async throws -> Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output { + public func migrationsMapCommitAuthor(_ input: Operations.MigrationsMapCommitAuthor.Input) async throws -> Operations.MigrationsMapCommitAuthor.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_map_hyphen_commit_hyphen_author.id, + forOperation: Operations.MigrationsMapCommitAuthor.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import/authors/{}", parameters: [ input.path.owner, input.path.repo, - input.path.author_id + input.path.authorId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1312,7 +1312,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output.Ok.Body + let body: Operations.MigrationsMapCommitAuthor.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1322,7 +1322,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.porter_hyphen_author.self, + Components.Schemas.PorterAuthor.self, from: responseBody, transforming: { value in .json(value) @@ -1334,7 +1334,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1344,7 +1344,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1356,7 +1356,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1366,7 +1366,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1378,7 +1378,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1388,7 +1388,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1420,10 +1420,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_large_hyphen_files(_ input: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input) async throws -> Operations.migrations_sol_get_hyphen_large_hyphen_files.Output { + public func migrationsGetLargeFiles(_ input: Operations.MigrationsGetLargeFiles.Input) async throws -> Operations.MigrationsGetLargeFiles.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_large_hyphen_files.id, + forOperation: Operations.MigrationsGetLargeFiles.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import/large_files", @@ -1447,7 +1447,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_get_hyphen_large_hyphen_files.Output.Ok.Body + let body: Operations.MigrationsGetLargeFiles.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1457,7 +1457,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.porter_hyphen_large_hyphen_file].self, + [Components.Schemas.PorterLargeFile].self, from: responseBody, transforming: { value in .json(value) @@ -1469,7 +1469,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1479,7 +1479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1515,10 +1515,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. @available(*, deprecated) - public func migrations_sol_set_hyphen_lfs_hyphen_preference(_ input: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input) async throws -> Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output { + public func migrationsSetLfsPreference(_ input: Operations.MigrationsSetLfsPreference.Input) async throws -> Operations.MigrationsSetLfsPreference.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.id, + forOperation: Operations.MigrationsSetLfsPreference.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/import/lfs", @@ -1551,7 +1551,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output.Ok.Body + let body: Operations.MigrationsSetLfsPreference.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1561,7 +1561,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas._import.self, + Components.Schemas.Import.self, from: responseBody, transforming: { value in .json(value) @@ -1573,7 +1573,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1583,7 +1583,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1595,7 +1595,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.porter_maintenance.Body + let body: Components.Responses.PorterMaintenance.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1605,7 +1605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1633,10 +1633,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)`. - public func migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsListForAuthenticatedUser(_ input: Operations.MigrationsListForAuthenticatedUser.Input) async throws -> Operations.MigrationsListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations", @@ -1652,7 +1652,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1670,13 +1670,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1686,7 +1686,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.migration].self, + [Components.Schemas.Migration].self, from: responseBody, transforming: { value in .json(value) @@ -1703,7 +1703,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1713,7 +1713,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1725,7 +1725,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1735,7 +1735,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1763,10 +1763,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)`. - public func migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsStartForAuthenticatedUser(_ input: Operations.MigrationsStartForAuthenticatedUser.Input) async throws -> Operations.MigrationsStartForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsStartForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations", @@ -1796,7 +1796,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.MigrationsStartForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1806,7 +1806,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.migration.self, + Components.Schemas.Migration.self, from: responseBody, transforming: { value in .json(value) @@ -1818,7 +1818,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1828,7 +1828,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1842,7 +1842,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1852,7 +1852,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1864,7 +1864,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1874,7 +1874,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1909,15 +1909,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)`. - public func migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsGetStatusForAuthenticatedUser(_ input: Operations.MigrationsGetStatusForAuthenticatedUser.Input) async throws -> Operations.MigrationsGetStatusForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsGetStatusForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations/{}", parameters: [ - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1942,7 +1942,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.MigrationsGetStatusForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1952,7 +1952,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.migration.self, + Components.Schemas.Migration.self, from: responseBody, transforming: { value in .json(value) @@ -1964,7 +1964,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1974,7 +1974,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1988,7 +1988,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1998,7 +1998,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2010,7 +2010,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2020,7 +2020,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2068,15 +2068,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)`. - public func migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsGetArchiveForAuthenticatedUser(_ input: Operations.MigrationsGetArchiveForAuthenticatedUser.Input) async throws -> Operations.MigrationsGetArchiveForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsGetArchiveForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations/{}/archive", parameters: [ - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2098,7 +2098,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2108,7 +2108,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2120,7 +2120,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2130,7 +2130,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2158,15 +2158,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)`. - public func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsDeleteArchiveForAuthenticatedUser(_ input: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input) async throws -> Operations.MigrationsDeleteArchiveForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsDeleteArchiveForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations/{}/archive", parameters: [ - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2186,7 +2186,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2196,7 +2196,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2210,7 +2210,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2220,7 +2220,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2232,7 +2232,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2242,7 +2242,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2270,16 +2270,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)`. - public func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsUnlockRepoForAuthenticatedUser(_ input: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input) async throws -> Operations.MigrationsUnlockRepoForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsUnlockRepoForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations/{}/repos/{}/lock", parameters: [ - input.path.migration_id, - input.path.repo_name + input.path.migrationId, + input.path.repoName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2301,7 +2301,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2311,7 +2311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2323,7 +2323,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2333,7 +2333,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2345,7 +2345,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2355,7 +2355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2383,15 +2383,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)`. - public func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func migrationsListReposForAuthenticatedUser(_ input: Operations.MigrationsListReposForAuthenticatedUser.Input) async throws -> Operations.MigrationsListReposForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.MigrationsListReposForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/migrations/{}/repositories", parameters: [ - input.path.migration_id + input.path.migrationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2404,7 +2404,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2422,13 +2422,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2438,7 +2438,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -2453,7 +2453,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2463,7 +2463,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/migrations/Types.swift b/Sources/migrations/Types.swift index aa2a758fac..96008a916e 100644 --- a/Sources/migrations/Types.swift +++ b/Sources/migrations/Types.swift @@ -19,14 +19,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/get(migrations/list-for-org)`. - func migrations_sol_list_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_org.Output + func migrationsListForOrg(_ input: Operations.MigrationsListForOrg.Input) async throws -> Operations.MigrationsListForOrg.Output /// Start an organization migration /// /// Initiates the generation of a migration archive. /// /// - Remark: HTTP `POST /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)`. - func migrations_sol_start_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_org.Output + func migrationsStartForOrg(_ input: Operations.MigrationsStartForOrg.Input) async throws -> Operations.MigrationsStartForOrg.Output /// Get an organization migration status /// /// Fetches the status of a migration. @@ -40,35 +40,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)`. - func migrations_sol_get_hyphen_status_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output + func migrationsGetStatusForOrg(_ input: Operations.MigrationsGetStatusForOrg.Input) async throws -> Operations.MigrationsGetStatusForOrg.Output /// Download an organization migration archive /// /// Fetches the URL to a migration archive. /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)`. - func migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Output + func migrationsDownloadArchiveForOrg(_ input: Operations.MigrationsDownloadArchiveForOrg.Input) async throws -> Operations.MigrationsDownloadArchiveForOrg.Output /// Delete an organization migration archive /// /// Deletes a previous migration archive. Migration archives are automatically deleted after seven days. /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)`. - func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Output + func migrationsDeleteArchiveForOrg(_ input: Operations.MigrationsDeleteArchiveForOrg.Input) async throws -> Operations.MigrationsDeleteArchiveForOrg.Output /// Unlock an organization repository /// /// Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/repos/repos#delete-a-repository) when the migration is complete and you no longer need the source data. /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)`. - func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Output + func migrationsUnlockRepoForOrg(_ input: Operations.MigrationsUnlockRepoForOrg.Input) async throws -> Operations.MigrationsUnlockRepoForOrg.Output /// List repositories in an organization migration /// /// List all the repositories for this organization migration. /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)`. - func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org(_ input: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output + func migrationsListReposForOrg(_ input: Operations.MigrationsListReposForOrg.Input) async throws -> Operations.MigrationsListReposForOrg.Output /// Get an import status /// /// View the progress of an import. @@ -112,7 +112,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)`. @available(*, deprecated) - func migrations_sol_get_hyphen_import_hyphen_status(_ input: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input) async throws -> Operations.migrations_sol_get_hyphen_import_hyphen_status.Output + func migrationsGetImportStatus(_ input: Operations.MigrationsGetImportStatus.Input) async throws -> Operations.MigrationsGetImportStatus.Output /// Update an import /// /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API @@ -128,7 +128,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @available(*, deprecated) - func migrations_sol_update_hyphen_import(_ input: Operations.migrations_sol_update_hyphen_import.Input) async throws -> Operations.migrations_sol_update_hyphen_import.Output + func migrationsUpdateImport(_ input: Operations.MigrationsUpdateImport.Input) async throws -> Operations.MigrationsUpdateImport.Output /// Start an import /// /// Start a source import to a GitHub repository using GitHub Importer. @@ -141,7 +141,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @available(*, deprecated) - func migrations_sol_start_hyphen_import(_ input: Operations.migrations_sol_start_hyphen_import.Input) async throws -> Operations.migrations_sol_start_hyphen_import.Output + func migrationsStartImport(_ input: Operations.MigrationsStartImport.Input) async throws -> Operations.MigrationsStartImport.Output /// Cancel an import /// /// Stop an import for a repository. @@ -152,7 +152,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @available(*, deprecated) - func migrations_sol_cancel_hyphen_import(_ input: Operations.migrations_sol_cancel_hyphen_import.Input) async throws -> Operations.migrations_sol_cancel_hyphen_import.Output + func migrationsCancelImport(_ input: Operations.MigrationsCancelImport.Input) async throws -> Operations.MigrationsCancelImport.Output /// Get commit authors /// /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `. @@ -165,7 +165,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @available(*, deprecated) - func migrations_sol_get_hyphen_commit_hyphen_authors(_ input: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input) async throws -> Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output + func migrationsGetCommitAuthors(_ input: Operations.MigrationsGetCommitAuthors.Input) async throws -> Operations.MigrationsGetCommitAuthors.Output /// Map a commit author /// /// Update an author's identity for the import. Your application can continue updating authors any time before you push @@ -177,7 +177,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @available(*, deprecated) - func migrations_sol_map_hyphen_commit_hyphen_author(_ input: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input) async throws -> Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output + func migrationsMapCommitAuthor(_ input: Operations.MigrationsMapCommitAuthor.Input) async throws -> Operations.MigrationsMapCommitAuthor.Output /// Get large files /// /// List files larger than 100MB found during the import @@ -188,7 +188,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @available(*, deprecated) - func migrations_sol_get_hyphen_large_hyphen_files(_ input: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input) async throws -> Operations.migrations_sol_get_hyphen_large_hyphen_files.Output + func migrationsGetLargeFiles(_ input: Operations.MigrationsGetLargeFiles.Input) async throws -> Operations.MigrationsGetLargeFiles.Output /// Update Git LFS preference /// /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability @@ -203,21 +203,21 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. @available(*, deprecated) - func migrations_sol_set_hyphen_lfs_hyphen_preference(_ input: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input) async throws -> Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output + func migrationsSetLfsPreference(_ input: Operations.MigrationsSetLfsPreference.Input) async throws -> Operations.MigrationsSetLfsPreference.Output /// List user migrations /// /// Lists all migrations a user has started. /// /// - Remark: HTTP `GET /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)`. - func migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsListForAuthenticatedUser(_ input: Operations.MigrationsListForAuthenticatedUser.Input) async throws -> Operations.MigrationsListForAuthenticatedUser.Output /// Start a user migration /// /// Initiates the generation of a user migration archive. /// /// - Remark: HTTP `POST /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)`. - func migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsStartForAuthenticatedUser(_ input: Operations.MigrationsStartForAuthenticatedUser.Input) async throws -> Operations.MigrationsStartForAuthenticatedUser.Output /// Get a user migration status /// /// Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: @@ -231,7 +231,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)`. - func migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsGetStatusForAuthenticatedUser(_ input: Operations.MigrationsGetStatusForAuthenticatedUser.Input) async throws -> Operations.MigrationsGetStatusForAuthenticatedUser.Output /// Download a user migration archive /// /// Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: @@ -258,28 +258,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)`. - func migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsGetArchiveForAuthenticatedUser(_ input: Operations.MigrationsGetArchiveForAuthenticatedUser.Input) async throws -> Operations.MigrationsGetArchiveForAuthenticatedUser.Output /// Delete a user migration archive /// /// Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/migrations/users#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/migrations/users#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted. /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)`. - func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsDeleteArchiveForAuthenticatedUser(_ input: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input) async throws -> Operations.MigrationsDeleteArchiveForAuthenticatedUser.Output /// Unlock a user repository /// /// Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/migrations/users#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/repos/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)`. - func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsUnlockRepoForAuthenticatedUser(_ input: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input) async throws -> Operations.MigrationsUnlockRepoForAuthenticatedUser.Output /// List repositories for a user migration /// /// Lists all the repositories for this user migration. /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)`. - func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output + func migrationsListReposForAuthenticatedUser(_ input: Operations.MigrationsListReposForAuthenticatedUser.Input) async throws -> Operations.MigrationsListReposForAuthenticatedUser.Output } /// Convenience overloads for operation inputs. @@ -292,12 +292,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/get(migrations/list-for-org)`. - public func migrations_sol_list_hyphen_for_hyphen_org( - path: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_org.Output { - try await migrations_sol_list_hyphen_for_hyphen_org(Operations.migrations_sol_list_hyphen_for_hyphen_org.Input( + public func migrationsListForOrg( + path: Operations.MigrationsListForOrg.Input.Path, + query: Operations.MigrationsListForOrg.Input.Query = .init(), + headers: Operations.MigrationsListForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsListForOrg.Output { + try await migrationsListForOrg(Operations.MigrationsListForOrg.Input( path: path, query: query, headers: headers @@ -309,12 +309,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)`. - public func migrations_sol_start_hyphen_for_hyphen_org( - path: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_org.Output { - try await migrations_sol_start_hyphen_for_hyphen_org(Operations.migrations_sol_start_hyphen_for_hyphen_org.Input( + public func migrationsStartForOrg( + path: Operations.MigrationsStartForOrg.Input.Path, + headers: Operations.MigrationsStartForOrg.Input.Headers = .init(), + body: Operations.MigrationsStartForOrg.Input.Body + ) async throws -> Operations.MigrationsStartForOrg.Output { + try await migrationsStartForOrg(Operations.MigrationsStartForOrg.Input( path: path, headers: headers, body: body @@ -333,12 +333,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)`. - public func migrations_sol_get_hyphen_status_hyphen_for_hyphen_org( - path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output { - try await migrations_sol_get_hyphen_status_hyphen_for_hyphen_org(Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input( + public func migrationsGetStatusForOrg( + path: Operations.MigrationsGetStatusForOrg.Input.Path, + query: Operations.MigrationsGetStatusForOrg.Input.Query = .init(), + headers: Operations.MigrationsGetStatusForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetStatusForOrg.Output { + try await migrationsGetStatusForOrg(Operations.MigrationsGetStatusForOrg.Input( path: path, query: query, headers: headers @@ -350,11 +350,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)`. - public func migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org( - path: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Output { - try await migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org(Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input( + public func migrationsDownloadArchiveForOrg( + path: Operations.MigrationsDownloadArchiveForOrg.Input.Path, + headers: Operations.MigrationsDownloadArchiveForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsDownloadArchiveForOrg.Output { + try await migrationsDownloadArchiveForOrg(Operations.MigrationsDownloadArchiveForOrg.Input( path: path, headers: headers )) @@ -365,11 +365,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)`. - public func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org( - path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Output { - try await migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org(Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input( + public func migrationsDeleteArchiveForOrg( + path: Operations.MigrationsDeleteArchiveForOrg.Input.Path, + headers: Operations.MigrationsDeleteArchiveForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsDeleteArchiveForOrg.Output { + try await migrationsDeleteArchiveForOrg(Operations.MigrationsDeleteArchiveForOrg.Input( path: path, headers: headers )) @@ -380,11 +380,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)`. - public func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org( - path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Output { - try await migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org(Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input( + public func migrationsUnlockRepoForOrg( + path: Operations.MigrationsUnlockRepoForOrg.Input.Path, + headers: Operations.MigrationsUnlockRepoForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsUnlockRepoForOrg.Output { + try await migrationsUnlockRepoForOrg(Operations.MigrationsUnlockRepoForOrg.Input( path: path, headers: headers )) @@ -395,12 +395,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)`. - public func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org( - path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output { - try await migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org(Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input( + public func migrationsListReposForOrg( + path: Operations.MigrationsListReposForOrg.Input.Path, + query: Operations.MigrationsListReposForOrg.Input.Query = .init(), + headers: Operations.MigrationsListReposForOrg.Input.Headers = .init() + ) async throws -> Operations.MigrationsListReposForOrg.Output { + try await migrationsListReposForOrg(Operations.MigrationsListReposForOrg.Input( path: path, query: query, headers: headers @@ -449,11 +449,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_import_hyphen_status( - path: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Path, - headers: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_import_hyphen_status.Output { - try await migrations_sol_get_hyphen_import_hyphen_status(Operations.migrations_sol_get_hyphen_import_hyphen_status.Input( + public func migrationsGetImportStatus( + path: Operations.MigrationsGetImportStatus.Input.Path, + headers: Operations.MigrationsGetImportStatus.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetImportStatus.Output { + try await migrationsGetImportStatus(Operations.MigrationsGetImportStatus.Input( path: path, headers: headers )) @@ -473,12 +473,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @available(*, deprecated) - public func migrations_sol_update_hyphen_import( - path: Operations.migrations_sol_update_hyphen_import.Input.Path, - headers: Operations.migrations_sol_update_hyphen_import.Input.Headers = .init(), - body: Operations.migrations_sol_update_hyphen_import.Input.Body? = nil - ) async throws -> Operations.migrations_sol_update_hyphen_import.Output { - try await migrations_sol_update_hyphen_import(Operations.migrations_sol_update_hyphen_import.Input( + public func migrationsUpdateImport( + path: Operations.MigrationsUpdateImport.Input.Path, + headers: Operations.MigrationsUpdateImport.Input.Headers = .init(), + body: Operations.MigrationsUpdateImport.Input.Body? = nil + ) async throws -> Operations.MigrationsUpdateImport.Output { + try await migrationsUpdateImport(Operations.MigrationsUpdateImport.Input( path: path, headers: headers, body: body @@ -496,12 +496,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @available(*, deprecated) - public func migrations_sol_start_hyphen_import( - path: Operations.migrations_sol_start_hyphen_import.Input.Path, - headers: Operations.migrations_sol_start_hyphen_import.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_import.Input.Body - ) async throws -> Operations.migrations_sol_start_hyphen_import.Output { - try await migrations_sol_start_hyphen_import(Operations.migrations_sol_start_hyphen_import.Input( + public func migrationsStartImport( + path: Operations.MigrationsStartImport.Input.Path, + headers: Operations.MigrationsStartImport.Input.Headers = .init(), + body: Operations.MigrationsStartImport.Input.Body + ) async throws -> Operations.MigrationsStartImport.Output { + try await migrationsStartImport(Operations.MigrationsStartImport.Input( path: path, headers: headers, body: body @@ -517,11 +517,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @available(*, deprecated) - public func migrations_sol_cancel_hyphen_import( - path: Operations.migrations_sol_cancel_hyphen_import.Input.Path, - headers: Operations.migrations_sol_cancel_hyphen_import.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_cancel_hyphen_import.Output { - try await migrations_sol_cancel_hyphen_import(Operations.migrations_sol_cancel_hyphen_import.Input( + public func migrationsCancelImport( + path: Operations.MigrationsCancelImport.Input.Path, + headers: Operations.MigrationsCancelImport.Input.Headers = .init() + ) async throws -> Operations.MigrationsCancelImport.Output { + try await migrationsCancelImport(Operations.MigrationsCancelImport.Input( path: path, headers: headers )) @@ -538,12 +538,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_commit_hyphen_authors( - path: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Path, - query: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output { - try await migrations_sol_get_hyphen_commit_hyphen_authors(Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input( + public func migrationsGetCommitAuthors( + path: Operations.MigrationsGetCommitAuthors.Input.Path, + query: Operations.MigrationsGetCommitAuthors.Input.Query = .init(), + headers: Operations.MigrationsGetCommitAuthors.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetCommitAuthors.Output { + try await migrationsGetCommitAuthors(Operations.MigrationsGetCommitAuthors.Input( path: path, query: query, headers: headers @@ -560,12 +560,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @available(*, deprecated) - public func migrations_sol_map_hyphen_commit_hyphen_author( - path: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Path, - headers: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Headers = .init(), - body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Body? = nil - ) async throws -> Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output { - try await migrations_sol_map_hyphen_commit_hyphen_author(Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input( + public func migrationsMapCommitAuthor( + path: Operations.MigrationsMapCommitAuthor.Input.Path, + headers: Operations.MigrationsMapCommitAuthor.Input.Headers = .init(), + body: Operations.MigrationsMapCommitAuthor.Input.Body? = nil + ) async throws -> Operations.MigrationsMapCommitAuthor.Output { + try await migrationsMapCommitAuthor(Operations.MigrationsMapCommitAuthor.Input( path: path, headers: headers, body: body @@ -581,11 +581,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @available(*, deprecated) - public func migrations_sol_get_hyphen_large_hyphen_files( - path: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Path, - headers: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_large_hyphen_files.Output { - try await migrations_sol_get_hyphen_large_hyphen_files(Operations.migrations_sol_get_hyphen_large_hyphen_files.Input( + public func migrationsGetLargeFiles( + path: Operations.MigrationsGetLargeFiles.Input.Path, + headers: Operations.MigrationsGetLargeFiles.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetLargeFiles.Output { + try await migrationsGetLargeFiles(Operations.MigrationsGetLargeFiles.Input( path: path, headers: headers )) @@ -604,12 +604,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. @available(*, deprecated) - public func migrations_sol_set_hyphen_lfs_hyphen_preference( - path: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Path, - headers: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Headers = .init(), - body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body - ) async throws -> Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output { - try await migrations_sol_set_hyphen_lfs_hyphen_preference(Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input( + public func migrationsSetLfsPreference( + path: Operations.MigrationsSetLfsPreference.Input.Path, + headers: Operations.MigrationsSetLfsPreference.Input.Headers = .init(), + body: Operations.MigrationsSetLfsPreference.Input.Body + ) async throws -> Operations.MigrationsSetLfsPreference.Output { + try await migrationsSetLfsPreference(Operations.MigrationsSetLfsPreference.Input( path: path, headers: headers, body: body @@ -621,11 +621,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)`. - public func migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsListForAuthenticatedUser( + query: Operations.MigrationsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsListForAuthenticatedUser.Output { + try await migrationsListForAuthenticatedUser(Operations.MigrationsListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -636,11 +636,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)`. - public func migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsStartForAuthenticatedUser( + headers: Operations.MigrationsStartForAuthenticatedUser.Input.Headers = .init(), + body: Operations.MigrationsStartForAuthenticatedUser.Input.Body + ) async throws -> Operations.MigrationsStartForAuthenticatedUser.Output { + try await migrationsStartForAuthenticatedUser(Operations.MigrationsStartForAuthenticatedUser.Input( headers: headers, body: body )) @@ -658,12 +658,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)`. - public func migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsGetStatusForAuthenticatedUser( + path: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Path, + query: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetStatusForAuthenticatedUser.Output { + try await migrationsGetStatusForAuthenticatedUser(Operations.MigrationsGetStatusForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -695,11 +695,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)`. - public func migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsGetArchiveForAuthenticatedUser( + path: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsGetArchiveForAuthenticatedUser.Output { + try await migrationsGetArchiveForAuthenticatedUser(Operations.MigrationsGetArchiveForAuthenticatedUser.Input( path: path, headers: headers )) @@ -710,11 +710,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)`. - public func migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsDeleteArchiveForAuthenticatedUser( + path: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsDeleteArchiveForAuthenticatedUser.Output { + try await migrationsDeleteArchiveForAuthenticatedUser(Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input( path: path, headers: headers )) @@ -725,11 +725,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)`. - public func migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsUnlockRepoForAuthenticatedUser( + path: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsUnlockRepoForAuthenticatedUser.Output { + try await migrationsUnlockRepoForAuthenticatedUser(Operations.MigrationsUnlockRepoForAuthenticatedUser.Input( path: path, headers: headers )) @@ -740,12 +740,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)`. - public func migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user(Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func migrationsListReposForAuthenticatedUser( + path: Operations.MigrationsListReposForAuthenticatedUser.Input.Path, + query: Operations.MigrationsListReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsListReposForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.MigrationsListReposForAuthenticatedUser.Output { + try await migrationsListReposForAuthenticatedUser(Operations.MigrationsListReposForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -755,6 +755,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -770,7 +779,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -780,171 +789,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -952,30 +961,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1014,9 +1023,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1031,7 +1040,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1050,34 +1059,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1087,142 +1096,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -1230,66 +1239,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -1300,7 +1309,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1330,15 +1339,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -1346,97 +1355,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -1444,38 +1453,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -1489,47 +1498,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -1537,7 +1546,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -1545,10 +1554,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -1557,16 +1566,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -1574,7 +1583,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -1582,10 +1591,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -1594,424 +1603,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -2021,52 +2030,52 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2074,21 +2083,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2096,27 +2105,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2126,21 +2135,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2148,21 +2157,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2170,21 +2179,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2192,21 +2201,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2214,62 +2223,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -2277,121 +2286,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -2399,13 +2408,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -2416,7 +2425,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2446,533 +2455,533 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// A migration. /// /// - Remark: Generated from `#/components/schemas/migration`. - public struct migration: Codable, Hashable, Sendable { + public struct Migration: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/migration/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/migration/owner`. - public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var owner: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/migration/guid`. public var guid: Swift.String /// - Remark: Generated from `#/components/schemas/migration/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/migration/lock_repositories`. - public var lock_repositories: Swift.Bool + public var lockRepositories: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/exclude_metadata`. - public var exclude_metadata: Swift.Bool + public var excludeMetadata: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/exclude_git_data`. - public var exclude_git_data: Swift.Bool + public var excludeGitData: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/exclude_attachments`. - public var exclude_attachments: Swift.Bool + public var excludeAttachments: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/exclude_releases`. - public var exclude_releases: Swift.Bool + public var excludeReleases: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/exclude_owner_projects`. - public var exclude_owner_projects: Swift.Bool + public var excludeOwnerProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/migration/org_metadata_only`. - public var org_metadata_only: Swift.Bool + public var orgMetadataOnly: Swift.Bool /// The repositories included in the migration. Only returned for export migrations. /// /// - Remark: Generated from `#/components/schemas/migration/repositories`. - public var repositories: [Components.Schemas.repository] + public var repositories: [Components.Schemas.Repository] /// - Remark: Generated from `#/components/schemas/migration/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/migration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/migration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/migration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/migration/archive_url`. - public var archive_url: Swift.String? + public var archiveUrl: Swift.String? /// Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`. /// /// - Remark: Generated from `#/components/schemas/migration/exclude`. public var exclude: [Swift.String]? - /// Creates a new `migration`. + /// Creates a new `Migration`. /// /// - Parameters: /// - id: /// - owner: /// - guid: /// - state: - /// - lock_repositories: - /// - exclude_metadata: - /// - exclude_git_data: - /// - exclude_attachments: - /// - exclude_releases: - /// - exclude_owner_projects: - /// - org_metadata_only: + /// - lockRepositories: + /// - excludeMetadata: + /// - excludeGitData: + /// - excludeAttachments: + /// - excludeReleases: + /// - excludeOwnerProjects: + /// - orgMetadataOnly: /// - repositories: The repositories included in the migration. Only returned for export migrations. /// - url: - /// - created_at: - /// - updated_at: - /// - node_id: - /// - archive_url: + /// - createdAt: + /// - updatedAt: + /// - nodeId: + /// - archiveUrl: /// - exclude: Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`. public init( id: Swift.Int64, - owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + owner: Components.Schemas.NullableSimpleUser? = nil, guid: Swift.String, state: Swift.String, - lock_repositories: Swift.Bool, - exclude_metadata: Swift.Bool, - exclude_git_data: Swift.Bool, - exclude_attachments: Swift.Bool, - exclude_releases: Swift.Bool, - exclude_owner_projects: Swift.Bool, - org_metadata_only: Swift.Bool, - repositories: [Components.Schemas.repository], + lockRepositories: Swift.Bool, + excludeMetadata: Swift.Bool, + excludeGitData: Swift.Bool, + excludeAttachments: Swift.Bool, + excludeReleases: Swift.Bool, + excludeOwnerProjects: Swift.Bool, + orgMetadataOnly: Swift.Bool, + repositories: [Components.Schemas.Repository], url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - node_id: Swift.String, - archive_url: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + nodeId: Swift.String, + archiveUrl: Swift.String? = nil, exclude: [Swift.String]? = nil ) { self.id = id self.owner = owner self.guid = guid self.state = state - self.lock_repositories = lock_repositories - self.exclude_metadata = exclude_metadata - self.exclude_git_data = exclude_git_data - self.exclude_attachments = exclude_attachments - self.exclude_releases = exclude_releases - self.exclude_owner_projects = exclude_owner_projects - self.org_metadata_only = org_metadata_only + self.lockRepositories = lockRepositories + self.excludeMetadata = excludeMetadata + self.excludeGitData = excludeGitData + self.excludeAttachments = excludeAttachments + self.excludeReleases = excludeReleases + self.excludeOwnerProjects = excludeOwnerProjects + self.orgMetadataOnly = orgMetadataOnly self.repositories = repositories self.url = url - self.created_at = created_at - self.updated_at = updated_at - self.node_id = node_id - self.archive_url = archive_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.nodeId = nodeId + self.archiveUrl = archiveUrl self.exclude = exclude } public enum CodingKeys: String, CodingKey { @@ -2980,235 +2989,235 @@ public enum Components { case owner case guid case state - case lock_repositories - case exclude_metadata - case exclude_git_data - case exclude_attachments - case exclude_releases - case exclude_owner_projects - case org_metadata_only + case lockRepositories = "lock_repositories" + case excludeMetadata = "exclude_metadata" + case excludeGitData = "exclude_git_data" + case excludeAttachments = "exclude_attachments" + case excludeReleases = "exclude_releases" + case excludeOwnerProjects = "exclude_owner_projects" + case orgMetadataOnly = "org_metadata_only" case repositories case url - case created_at - case updated_at - case node_id - case archive_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case nodeId = "node_id" + case archiveUrl = "archive_url" case exclude } } /// A repository import from an external source. /// /// - Remark: Generated from `#/components/schemas/import`. - public struct _import: Codable, Hashable, Sendable { + public struct Import: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/import/vcs`. public var vcs: Swift.String? /// - Remark: Generated from `#/components/schemas/import/use_lfs`. - public var use_lfs: Swift.Bool? + public var useLfs: Swift.Bool? /// The URL of the originating repository. /// /// - Remark: Generated from `#/components/schemas/import/vcs_url`. - public var vcs_url: Swift.String + public var vcsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/import/svc_root`. - public var svc_root: Swift.String? + public var svcRoot: Swift.String? /// - Remark: Generated from `#/components/schemas/import/tfvc_project`. - public var tfvc_project: Swift.String? + public var tfvcProject: Swift.String? /// - Remark: Generated from `#/components/schemas/import/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case auth = "auth" case error = "error" case none = "none" case detecting = "detecting" case choose = "choose" - case auth_failed = "auth_failed" + case authFailed = "auth_failed" case importing = "importing" case mapping = "mapping" - case waiting_to_push = "waiting_to_push" + case waitingToPush = "waiting_to_push" case pushing = "pushing" case complete = "complete" case setup = "setup" case unknown = "unknown" - case detection_found_multiple = "detection_found_multiple" - case detection_found_nothing = "detection_found_nothing" - case detection_needs_auth = "detection_needs_auth" + case detectionFoundMultiple = "detection_found_multiple" + case detectionFoundNothing = "detection_found_nothing" + case detectionNeedsAuth = "detection_needs_auth" } /// - Remark: Generated from `#/components/schemas/import/status`. - public var status: Components.Schemas._import.statusPayload + public var status: Components.Schemas.Import.StatusPayload /// - Remark: Generated from `#/components/schemas/import/status_text`. - public var status_text: Swift.String? + public var statusText: Swift.String? /// - Remark: Generated from `#/components/schemas/import/failed_step`. - public var failed_step: Swift.String? + public var failedStep: Swift.String? /// - Remark: Generated from `#/components/schemas/import/error_message`. - public var error_message: Swift.String? + public var errorMessage: Swift.String? /// - Remark: Generated from `#/components/schemas/import/import_percent`. - public var import_percent: Swift.Int? + public var importPercent: Swift.Int? /// - Remark: Generated from `#/components/schemas/import/commit_count`. - public var commit_count: Swift.Int? + public var commitCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/import/push_percent`. - public var push_percent: Swift.Int? + public var pushPercent: Swift.Int? /// - Remark: Generated from `#/components/schemas/import/has_large_files`. - public var has_large_files: Swift.Bool? + public var hasLargeFiles: Swift.Bool? /// - Remark: Generated from `#/components/schemas/import/large_files_size`. - public var large_files_size: Swift.Int? + public var largeFilesSize: Swift.Int? /// - Remark: Generated from `#/components/schemas/import/large_files_count`. - public var large_files_count: Swift.Int? - /// - Remark: Generated from `#/components/schemas/import/project_choicesPayload`. - public struct project_choicesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/import/project_choicesPayload/vcs`. + public var largeFilesCount: Swift.Int? + /// - Remark: Generated from `#/components/schemas/import/ProjectChoicesPayload`. + public struct ProjectChoicesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/import/ProjectChoicesPayload/vcs`. public var vcs: Swift.String? - /// - Remark: Generated from `#/components/schemas/import/project_choicesPayload/tfvc_project`. - public var tfvc_project: Swift.String? - /// - Remark: Generated from `#/components/schemas/import/project_choicesPayload/human_name`. - public var human_name: Swift.String? - /// Creates a new `project_choicesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/import/ProjectChoicesPayload/tfvc_project`. + public var tfvcProject: Swift.String? + /// - Remark: Generated from `#/components/schemas/import/ProjectChoicesPayload/human_name`. + public var humanName: Swift.String? + /// Creates a new `ProjectChoicesPayloadPayload`. /// /// - Parameters: /// - vcs: - /// - tfvc_project: - /// - human_name: + /// - tfvcProject: + /// - humanName: public init( vcs: Swift.String? = nil, - tfvc_project: Swift.String? = nil, - human_name: Swift.String? = nil + tfvcProject: Swift.String? = nil, + humanName: Swift.String? = nil ) { self.vcs = vcs - self.tfvc_project = tfvc_project - self.human_name = human_name + self.tfvcProject = tfvcProject + self.humanName = humanName } public enum CodingKeys: String, CodingKey { case vcs - case tfvc_project - case human_name + case tfvcProject = "tfvc_project" + case humanName = "human_name" } } /// - Remark: Generated from `#/components/schemas/import/project_choices`. - public typealias project_choicesPayload = [Components.Schemas._import.project_choicesPayloadPayload] + public typealias ProjectChoicesPayload = [Components.Schemas.Import.ProjectChoicesPayloadPayload] /// - Remark: Generated from `#/components/schemas/import/project_choices`. - public var project_choices: Components.Schemas._import.project_choicesPayload? + public var projectChoices: Components.Schemas.Import.ProjectChoicesPayload? /// - Remark: Generated from `#/components/schemas/import/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/import/authors_count`. - public var authors_count: Swift.Int? + public var authorsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/import/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/import/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/import/authors_url`. - public var authors_url: Swift.String + public var authorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/import/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/import/svn_root`. - public var svn_root: Swift.String? - /// Creates a new `_import`. + public var svnRoot: Swift.String? + /// Creates a new `Import`. /// /// - Parameters: /// - vcs: - /// - use_lfs: - /// - vcs_url: The URL of the originating repository. - /// - svc_root: - /// - tfvc_project: + /// - useLfs: + /// - vcsUrl: The URL of the originating repository. + /// - svcRoot: + /// - tfvcProject: /// - status: - /// - status_text: - /// - failed_step: - /// - error_message: - /// - import_percent: - /// - commit_count: - /// - push_percent: - /// - has_large_files: - /// - large_files_size: - /// - large_files_count: - /// - project_choices: + /// - statusText: + /// - failedStep: + /// - errorMessage: + /// - importPercent: + /// - commitCount: + /// - pushPercent: + /// - hasLargeFiles: + /// - largeFilesSize: + /// - largeFilesCount: + /// - projectChoices: /// - message: - /// - authors_count: + /// - authorsCount: /// - url: - /// - html_url: - /// - authors_url: - /// - repository_url: - /// - svn_root: + /// - htmlUrl: + /// - authorsUrl: + /// - repositoryUrl: + /// - svnRoot: public init( vcs: Swift.String? = nil, - use_lfs: Swift.Bool? = nil, - vcs_url: Swift.String, - svc_root: Swift.String? = nil, - tfvc_project: Swift.String? = nil, - status: Components.Schemas._import.statusPayload, - status_text: Swift.String? = nil, - failed_step: Swift.String? = nil, - error_message: Swift.String? = nil, - import_percent: Swift.Int? = nil, - commit_count: Swift.Int? = nil, - push_percent: Swift.Int? = nil, - has_large_files: Swift.Bool? = nil, - large_files_size: Swift.Int? = nil, - large_files_count: Swift.Int? = nil, - project_choices: Components.Schemas._import.project_choicesPayload? = nil, + useLfs: Swift.Bool? = nil, + vcsUrl: Swift.String, + svcRoot: Swift.String? = nil, + tfvcProject: Swift.String? = nil, + status: Components.Schemas.Import.StatusPayload, + statusText: Swift.String? = nil, + failedStep: Swift.String? = nil, + errorMessage: Swift.String? = nil, + importPercent: Swift.Int? = nil, + commitCount: Swift.Int? = nil, + pushPercent: Swift.Int? = nil, + hasLargeFiles: Swift.Bool? = nil, + largeFilesSize: Swift.Int? = nil, + largeFilesCount: Swift.Int? = nil, + projectChoices: Components.Schemas.Import.ProjectChoicesPayload? = nil, message: Swift.String? = nil, - authors_count: Swift.Int? = nil, + authorsCount: Swift.Int? = nil, url: Swift.String, - html_url: Swift.String, - authors_url: Swift.String, - repository_url: Swift.String, - svn_root: Swift.String? = nil + htmlUrl: Swift.String, + authorsUrl: Swift.String, + repositoryUrl: Swift.String, + svnRoot: Swift.String? = nil ) { self.vcs = vcs - self.use_lfs = use_lfs - self.vcs_url = vcs_url - self.svc_root = svc_root - self.tfvc_project = tfvc_project + self.useLfs = useLfs + self.vcsUrl = vcsUrl + self.svcRoot = svcRoot + self.tfvcProject = tfvcProject self.status = status - self.status_text = status_text - self.failed_step = failed_step - self.error_message = error_message - self.import_percent = import_percent - self.commit_count = commit_count - self.push_percent = push_percent - self.has_large_files = has_large_files - self.large_files_size = large_files_size - self.large_files_count = large_files_count - self.project_choices = project_choices + self.statusText = statusText + self.failedStep = failedStep + self.errorMessage = errorMessage + self.importPercent = importPercent + self.commitCount = commitCount + self.pushPercent = pushPercent + self.hasLargeFiles = hasLargeFiles + self.largeFilesSize = largeFilesSize + self.largeFilesCount = largeFilesCount + self.projectChoices = projectChoices self.message = message - self.authors_count = authors_count + self.authorsCount = authorsCount self.url = url - self.html_url = html_url - self.authors_url = authors_url - self.repository_url = repository_url - self.svn_root = svn_root + self.htmlUrl = htmlUrl + self.authorsUrl = authorsUrl + self.repositoryUrl = repositoryUrl + self.svnRoot = svnRoot } public enum CodingKeys: String, CodingKey { case vcs - case use_lfs - case vcs_url - case svc_root - case tfvc_project + case useLfs = "use_lfs" + case vcsUrl = "vcs_url" + case svcRoot = "svc_root" + case tfvcProject = "tfvc_project" case status - case status_text - case failed_step - case error_message - case import_percent - case commit_count - case push_percent - case has_large_files - case large_files_size - case large_files_count - case project_choices + case statusText = "status_text" + case failedStep = "failed_step" + case errorMessage = "error_message" + case importPercent = "import_percent" + case commitCount = "commit_count" + case pushPercent = "push_percent" + case hasLargeFiles = "has_large_files" + case largeFilesSize = "large_files_size" + case largeFilesCount = "large_files_count" + case projectChoices = "project_choices" case message - case authors_count + case authorsCount = "authors_count" case url - case html_url - case authors_url - case repository_url - case svn_root + case htmlUrl = "html_url" + case authorsUrl = "authors_url" + case repositoryUrl = "repository_url" + case svnRoot = "svn_root" } } /// Porter Author /// /// - Remark: Generated from `#/components/schemas/porter-author`. - public struct porter_hyphen_author: Codable, Hashable, Sendable { + public struct PorterAuthor: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/porter-author/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/porter-author/remote_id`. - public var remote_id: Swift.String + public var remoteId: Swift.String /// - Remark: Generated from `#/components/schemas/porter-author/remote_name`. - public var remote_name: Swift.String + public var remoteName: Swift.String /// - Remark: Generated from `#/components/schemas/porter-author/email`. public var email: Swift.String /// - Remark: Generated from `#/components/schemas/porter-author/name`. @@ -3216,76 +3225,76 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/porter-author/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/porter-author/import_url`. - public var import_url: Swift.String - /// Creates a new `porter_hyphen_author`. + public var importUrl: Swift.String + /// Creates a new `PorterAuthor`. /// /// - Parameters: /// - id: - /// - remote_id: - /// - remote_name: + /// - remoteId: + /// - remoteName: /// - email: /// - name: /// - url: - /// - import_url: + /// - importUrl: public init( id: Swift.Int, - remote_id: Swift.String, - remote_name: Swift.String, + remoteId: Swift.String, + remoteName: Swift.String, email: Swift.String, name: Swift.String, url: Swift.String, - import_url: Swift.String + importUrl: Swift.String ) { self.id = id - self.remote_id = remote_id - self.remote_name = remote_name + self.remoteId = remoteId + self.remoteName = remoteName self.email = email self.name = name self.url = url - self.import_url = import_url + self.importUrl = importUrl } public enum CodingKeys: String, CodingKey { case id - case remote_id - case remote_name + case remoteId = "remote_id" + case remoteName = "remote_name" case email case name case url - case import_url + case importUrl = "import_url" } } /// Porter Large File /// /// - Remark: Generated from `#/components/schemas/porter-large-file`. - public struct porter_hyphen_large_hyphen_file: Codable, Hashable, Sendable { + public struct PorterLargeFile: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/porter-large-file/ref_name`. - public var ref_name: Swift.String + public var refName: Swift.String /// - Remark: Generated from `#/components/schemas/porter-large-file/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/porter-large-file/oid`. public var oid: Swift.String /// - Remark: Generated from `#/components/schemas/porter-large-file/size`. public var size: Swift.Int - /// Creates a new `porter_hyphen_large_hyphen_file`. + /// Creates a new `PorterLargeFile`. /// /// - Parameters: - /// - ref_name: + /// - refName: /// - path: /// - oid: /// - size: public init( - ref_name: Swift.String, + refName: Swift.String, path: Swift.String, oid: Swift.String, size: Swift.Int ) { - self.ref_name = ref_name + self.refName = refName self.path = path self.oid = oid self.size = size } public enum CodingKeys: String, CodingKey { - case ref_name + case refName = "ref_name" case path case oid case size @@ -3297,50 +3306,50 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The unique identifier of the migration. /// /// - Remark: Generated from `#/components/parameters/migration-id`. - public typealias migration_hyphen_id = Swift.Int + public typealias MigrationId = Swift.Int /// repo_name parameter /// /// - Remark: Generated from `#/components/parameters/repo-name`. - public typealias repo_hyphen_name = Swift.String + public typealias RepoName = Swift.String /// A user ID. Only return users with an ID greater than this ID. /// /// - Remark: Generated from `#/components/parameters/since-user`. - public typealias since_hyphen_user = Swift.Int + public typealias SinceUser = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3350,25 +3359,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -3378,29 +3387,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3410,25 +3419,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3438,25 +3447,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct porter_maintenance: Sendable, Hashable { + public struct PorterMaintenance: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/porter_maintenance/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/porter_maintenance/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3466,12 +3475,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.porter_maintenance.Body - /// Creates a new `porter_maintenance`. + public var body: Components.Responses.PorterMaintenance.Body + /// Creates a new `PorterMaintenance`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.porter_maintenance.Body) { + public init(body: Components.Responses.PorterMaintenance.Body) { self.body = body } } @@ -3479,7 +3488,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -3493,7 +3502,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/get(migrations/list-for-org)`. - public enum migrations_sol_list_hyphen_for_hyphen_org { + public enum MigrationsListForOrg { public static let id: Swift.String = "migrations/list-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/path`. @@ -3501,67 +3510,67 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsListForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Allowed values that can be passed to the exclude param. /// - /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/excludePayload`. - @frozen public enum excludePayloadPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/ExcludePayload`. + @frozen public enum ExcludePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case repositories = "repositories" } /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/exclude`. - public typealias excludePayload = [Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query.excludePayloadPayload] + public typealias ExcludePayload = [Operations.MigrationsListForOrg.Input.Query.ExcludePayloadPayload] /// Exclude attributes from the API response to improve performance /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/query/exclude`. - public var exclude: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query.excludePayload? + public var exclude: Operations.MigrationsListForOrg.Input.Query.ExcludePayload? /// 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)." + /// - perPage: 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)." /// - exclude: Exclude attributes from the API response to improve performance public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - exclude: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query.excludePayload? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + exclude: Operations.MigrationsListForOrg.Input.Query.ExcludePayload? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.exclude = exclude } } - public var query: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query + public var query: Operations.MigrationsListForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsListForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3569,9 +3578,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsListForOrg.Input.Path, + query: Operations.MigrationsListForOrg.Input.Query = .init(), + headers: Operations.MigrationsListForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -3583,26 +3592,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.MigrationsListForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.migration]) + case json([Components.Schemas.Migration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.migration] { + public var json: [Components.Schemas.Migration] { get throws { switch self { case let .json(body): @@ -3612,15 +3621,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.MigrationsListForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.MigrationsListForOrg.Output.Ok.Headers = .init(), + body: Operations.MigrationsListForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3631,12 +3640,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/get(migrations/list-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.MigrationsListForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_list_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.MigrationsListForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -3686,7 +3695,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/migrations`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)`. - public enum migrations_sol_start_hyphen_for_hyphen_org { + public enum MigrationsStartForOrg { public static let id: Swift.String = "migrations/start-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/path`. @@ -3694,32 +3703,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsStartForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsStartForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A list of arrays indicating which repositories should be migrated. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/repositories`. @@ -3727,92 +3736,92 @@ public enum Operations { /// Indicates whether repositories should be locked (to prevent manipulation) while migrating data. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/lock_repositories`. - public var lock_repositories: Swift.Bool? + public var lockRepositories: Swift.Bool? /// Indicates whether metadata should be excluded and only git source should be included for the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude_metadata`. - public var exclude_metadata: Swift.Bool? + public var excludeMetadata: Swift.Bool? /// Indicates whether the repository git data should be excluded from the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude_git_data`. - public var exclude_git_data: Swift.Bool? + public var excludeGitData: Swift.Bool? /// Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude_attachments`. - public var exclude_attachments: Swift.Bool? + public var excludeAttachments: Swift.Bool? /// Indicates whether releases should be excluded from the migration (to reduce migration archive file size). /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude_releases`. - public var exclude_releases: Swift.Bool? + public var excludeReleases: Swift.Bool? /// Indicates whether projects owned by the organization or users should be excluded. from the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude_owner_projects`. - public var exclude_owner_projects: Swift.Bool? + public var excludeOwnerProjects: Swift.Bool? /// Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/org_metadata_only`. - public var org_metadata_only: Swift.Bool? - /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/excludePayload`. - @frozen public enum excludePayloadPayload: String, Codable, Hashable, Sendable { + public var orgMetadataOnly: Swift.Bool? + /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/ExcludePayload`. + @frozen public enum ExcludePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case repositories = "repositories" } /// Exclude related items from being returned in the response in order to improve performance of the request. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude`. - public typealias excludePayload = [Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body.jsonPayload.excludePayloadPayload] + public typealias ExcludePayload = [Operations.MigrationsStartForOrg.Input.Body.JsonPayload.ExcludePayloadPayload] /// Exclude related items from being returned in the response in order to improve performance of the request. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/json/exclude`. - public var exclude: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body.jsonPayload.excludePayload? - /// Creates a new `jsonPayload`. + public var exclude: Operations.MigrationsStartForOrg.Input.Body.JsonPayload.ExcludePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - repositories: A list of arrays indicating which repositories should be migrated. - /// - lock_repositories: Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - /// - exclude_metadata: Indicates whether metadata should be excluded and only git source should be included for the migration. - /// - exclude_git_data: Indicates whether the repository git data should be excluded from the migration. - /// - exclude_attachments: Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - /// - exclude_releases: Indicates whether releases should be excluded from the migration (to reduce migration archive file size). - /// - exclude_owner_projects: Indicates whether projects owned by the organization or users should be excluded. from the migration. - /// - org_metadata_only: Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). + /// - lockRepositories: Indicates whether repositories should be locked (to prevent manipulation) while migrating data. + /// - excludeMetadata: Indicates whether metadata should be excluded and only git source should be included for the migration. + /// - excludeGitData: Indicates whether the repository git data should be excluded from the migration. + /// - excludeAttachments: Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). + /// - excludeReleases: Indicates whether releases should be excluded from the migration (to reduce migration archive file size). + /// - excludeOwnerProjects: Indicates whether projects owned by the organization or users should be excluded. from the migration. + /// - orgMetadataOnly: Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). /// - exclude: Exclude related items from being returned in the response in order to improve performance of the request. public init( repositories: [Swift.String], - lock_repositories: Swift.Bool? = nil, - exclude_metadata: Swift.Bool? = nil, - exclude_git_data: Swift.Bool? = nil, - exclude_attachments: Swift.Bool? = nil, - exclude_releases: Swift.Bool? = nil, - exclude_owner_projects: Swift.Bool? = nil, - org_metadata_only: Swift.Bool? = nil, - exclude: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body.jsonPayload.excludePayload? = nil + lockRepositories: Swift.Bool? = nil, + excludeMetadata: Swift.Bool? = nil, + excludeGitData: Swift.Bool? = nil, + excludeAttachments: Swift.Bool? = nil, + excludeReleases: Swift.Bool? = nil, + excludeOwnerProjects: Swift.Bool? = nil, + orgMetadataOnly: Swift.Bool? = nil, + exclude: Operations.MigrationsStartForOrg.Input.Body.JsonPayload.ExcludePayload? = nil ) { self.repositories = repositories - self.lock_repositories = lock_repositories - self.exclude_metadata = exclude_metadata - self.exclude_git_data = exclude_git_data - self.exclude_attachments = exclude_attachments - self.exclude_releases = exclude_releases - self.exclude_owner_projects = exclude_owner_projects - self.org_metadata_only = org_metadata_only + self.lockRepositories = lockRepositories + self.excludeMetadata = excludeMetadata + self.excludeGitData = excludeGitData + self.excludeAttachments = excludeAttachments + self.excludeReleases = excludeReleases + self.excludeOwnerProjects = excludeOwnerProjects + self.orgMetadataOnly = orgMetadataOnly self.exclude = exclude } public enum CodingKeys: String, CodingKey { case repositories - case lock_repositories - case exclude_metadata - case exclude_git_data - case exclude_attachments - case exclude_releases - case exclude_owner_projects - case org_metadata_only + case lockRepositories = "lock_repositories" + case excludeMetadata = "exclude_metadata" + case excludeGitData = "exclude_git_data" + case excludeAttachments = "exclude_attachments" + case excludeReleases = "exclude_releases" + case excludeOwnerProjects = "exclude_owner_projects" + case orgMetadataOnly = "org_metadata_only" case exclude } } /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/requestBody/content/application\/json`. - case json(Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.MigrationsStartForOrg.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body + public var body: Operations.MigrationsStartForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3820,9 +3829,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Input.Body + path: Operations.MigrationsStartForOrg.Input.Path, + headers: Operations.MigrationsStartForOrg.Input.Headers = .init(), + body: Operations.MigrationsStartForOrg.Input.Body ) { self.path = path self.headers = headers @@ -3834,12 +3843,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.migration) + case json(Components.Schemas.Migration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.migration { + public var json: Components.Schemas.Migration { get throws { switch self { case let .json(body): @@ -3849,12 +3858,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.MigrationsStartForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_start_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.MigrationsStartForOrg.Output.Created.Body) { self.body = body } } @@ -3863,12 +3872,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.migrations_sol_start_hyphen_for_hyphen_org.Output.Created) + case created(Operations.MigrationsStartForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.migrations_sol_start_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.MigrationsStartForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -3886,12 +3895,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3909,12 +3918,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/post(migrations/start-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3971,7 +3980,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)`. - public enum migrations_sol_get_hyphen_status_hyphen_for_hyphen_org { + public enum MigrationsGetStatusForOrg { public static let id: Swift.String = "migrations/get-status-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/path`. @@ -3979,60 +3988,60 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - migration_id: The unique identifier of the migration. + /// - migrationId: The unique identifier of the migration. public init( - org: Components.Parameters.org, - migration_id: Components.Parameters.migration_hyphen_id + org: Components.Parameters.Org, + migrationId: Components.Parameters.MigrationId ) { self.org = org - self.migration_id = migration_id + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsGetStatusForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/query`. public struct Query: Sendable, Hashable { /// Allowed values that can be passed to the exclude param. /// - /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/query/excludePayload`. - @frozen public enum excludePayloadPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/query/ExcludePayload`. + @frozen public enum ExcludePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case repositories = "repositories" } /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/query/exclude`. - public typealias excludePayload = [Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query.excludePayloadPayload] + public typealias ExcludePayload = [Operations.MigrationsGetStatusForOrg.Input.Query.ExcludePayloadPayload] /// Exclude attributes from the API response to improve performance /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/query/exclude`. - public var exclude: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query.excludePayload? + public var exclude: Operations.MigrationsGetStatusForOrg.Input.Query.ExcludePayload? /// Creates a new `Query`. /// /// - Parameters: /// - exclude: Exclude attributes from the API response to improve performance - public init(exclude: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query.excludePayload? = nil) { + public init(exclude: Operations.MigrationsGetStatusForOrg.Input.Query.ExcludePayload? = nil) { self.exclude = exclude } } - public var query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query + public var query: Operations.MigrationsGetStatusForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsGetStatusForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4040,9 +4049,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsGetStatusForOrg.Input.Path, + query: Operations.MigrationsGetStatusForOrg.Input.Query = .init(), + headers: Operations.MigrationsGetStatusForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -4054,12 +4063,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.migration) + case json(Components.Schemas.Migration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.migration { + public var json: Components.Schemas.Migration { get throws { switch self { case let .json(body): @@ -4069,12 +4078,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.MigrationsGetStatusForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.MigrationsGetStatusForOrg.Output.Ok.Body) { self.body = body } } @@ -4086,12 +4095,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.MigrationsGetStatusForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.MigrationsGetStatusForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -4109,12 +4118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/get(migrations/get-status-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4164,7 +4173,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)`. - public enum migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org { + public enum MigrationsDownloadArchiveForOrg { public static let id: Swift.String = "migrations/download-archive-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/GET/path`. @@ -4172,45 +4181,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - migration_id: The unique identifier of the migration. + /// - migrationId: The unique identifier of the migration. public init( - org: Components.Parameters.org, - migration_id: Components.Parameters.migration_hyphen_id + org: Components.Parameters.Org, + migrationId: Components.Parameters.MigrationId ) { self.org = org - self.migration_id = migration_id + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsDownloadArchiveForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsDownloadArchiveForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsDownloadArchiveForOrg.Input.Path, + headers: Operations.MigrationsDownloadArchiveForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4226,12 +4235,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Output.Found) + case found(Operations.MigrationsDownloadArchiveForOrg.Output.Found) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)/responses/302`. + /// + /// HTTP response code: `302 found`. + public static var found: Self { + .found(.init()) + } /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.migrations_sol_download_hyphen_archive_hyphen_for_hyphen_org.Output.Found { + public var found: Operations.MigrationsDownloadArchiveForOrg.Output.Found { get throws { switch self { case let .found(response): @@ -4249,12 +4266,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/get(migrations/download-archive-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4304,7 +4321,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)`. - public enum migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org { + public enum MigrationsDeleteArchiveForOrg { public static let id: Swift.String = "migrations/delete-archive-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/DELETE/path`. @@ -4312,45 +4329,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/DELETE/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - migration_id: The unique identifier of the migration. + /// - migrationId: The unique identifier of the migration. public init( - org: Components.Parameters.org, - migration_id: Components.Parameters.migration_hyphen_id + org: Components.Parameters.Org, + migrationId: Components.Parameters.MigrationId ) { self.org = org - self.migration_id = migration_id + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsDeleteArchiveForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/archive/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsDeleteArchiveForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsDeleteArchiveForOrg.Input.Path, + headers: Operations.MigrationsDeleteArchiveForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4366,12 +4383,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.MigrationsDeleteArchiveForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.MigrationsDeleteArchiveForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4389,12 +4414,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4444,7 +4469,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)`. - public enum migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org { + public enum MigrationsUnlockRepoForOrg { public static let id: Swift.String = "migrations/unlock-repo-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path`. @@ -4452,52 +4477,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// repo_name parameter /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path/repo_name`. - public var repo_name: Components.Parameters.repo_hyphen_name + public var repoName: Components.Parameters.RepoName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - migration_id: The unique identifier of the migration. - /// - repo_name: repo_name parameter + /// - migrationId: The unique identifier of the migration. + /// - repoName: repo_name parameter public init( - org: Components.Parameters.org, - migration_id: Components.Parameters.migration_hyphen_id, - repo_name: Components.Parameters.repo_hyphen_name + org: Components.Parameters.Org, + migrationId: Components.Parameters.MigrationId, + repoName: Components.Parameters.RepoName ) { self.org = org - self.migration_id = migration_id - self.repo_name = repo_name + self.migrationId = migrationId + self.repoName = repoName } } - public var path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsUnlockRepoForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsUnlockRepoForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Path, - headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsUnlockRepoForOrg.Input.Path, + headers: Operations.MigrationsUnlockRepoForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4513,12 +4538,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.MigrationsUnlockRepoForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.MigrationsUnlockRepoForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4536,12 +4569,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4591,7 +4624,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)`. - public enum migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org { + public enum MigrationsListReposForOrg { public static let id: Swift.String = "migrations/list-repos-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/path`. @@ -4599,61 +4632,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - migration_id: The unique identifier of the migration. + /// - migrationId: The unique identifier of the migration. public init( - org: Components.Parameters.org, - migration_id: Components.Parameters.migration_hyphen_id + org: Components.Parameters.Org, + migrationId: Components.Parameters.MigrationId ) { self.org = org - self.migration_id = migration_id + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Path + public var path: Operations.MigrationsListReposForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Query + public var query: Operations.MigrationsListReposForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.MigrationsListReposForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4661,9 +4694,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Path, - query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.MigrationsListReposForOrg.Input.Path, + query: Operations.MigrationsListReposForOrg.Input.Query = .init(), + headers: Operations.MigrationsListReposForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -4675,26 +4708,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.MigrationsListReposForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/migrations/{migration_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -4704,15 +4737,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.MigrationsListReposForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.MigrationsListReposForOrg.Output.Ok.Headers = .init(), + body: Operations.MigrationsListReposForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4723,12 +4756,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.MigrationsListReposForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.MigrationsListReposForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -4746,12 +4779,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/migrations/{migration_id}/repositories/get(migrations/list-repos-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4837,7 +4870,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)`. - public enum migrations_sol_get_hyphen_import_hyphen_status { + public enum MigrationsGetImportStatus { public static let id: Swift.String = "migrations/get-import-status" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/path`. @@ -4845,45 +4878,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Path + public var path: Operations.MigrationsGetImportStatus.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Headers + public var headers: Operations.MigrationsGetImportStatus.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Path, - headers: Operations.migrations_sol_get_hyphen_import_hyphen_status.Input.Headers = .init() + path: Operations.MigrationsGetImportStatus.Input.Path, + headers: Operations.MigrationsGetImportStatus.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4894,12 +4927,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/GET/responses/200/content/application\/json`. - case json(Components.Schemas._import) + case json(Components.Schemas.Import) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas._import { + public var json: Components.Schemas.Import { get throws { switch self { case let .json(body): @@ -4909,12 +4942,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_get_hyphen_import_hyphen_status.Output.Ok.Body + public var body: Operations.MigrationsGetImportStatus.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_get_hyphen_import_hyphen_status.Output.Ok.Body) { + public init(body: Operations.MigrationsGetImportStatus.Output.Ok.Body) { self.body = body } } @@ -4923,12 +4956,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_get_hyphen_import_hyphen_status.Output.Ok) + case ok(Operations.MigrationsGetImportStatus.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_get_hyphen_import_hyphen_status.Output.Ok { + public var ok: Operations.MigrationsGetImportStatus.Output.Ok { get throws { switch self { case let .ok(response): @@ -4946,12 +4979,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4969,12 +5002,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/get(migrations/get-import-status)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -5032,7 +5065,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. - public enum migrations_sol_update_hyphen_import { + public enum MigrationsUpdateImport { public static let id: Swift.String = "migrations/update-import" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/path`. @@ -5040,53 +5073,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_update_hyphen_import.Input.Path + public var path: Operations.MigrationsUpdateImport.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_update_hyphen_import.Input.Headers + public var headers: Operations.MigrationsUpdateImport.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The username to provide to the originating repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json/vcs_username`. - public var vcs_username: Swift.String? + public var vcsUsername: Swift.String? /// The password to provide to the originating repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json/vcs_password`. - public var vcs_password: Swift.String? + public var vcsPassword: Swift.String? /// The type of version control system you are migrating from. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json/vcs`. - @frozen public enum vcsPayload: String, Codable, Hashable, Sendable { + @frozen public enum VcsPayload: String, Codable, Hashable, Sendable, CaseIterable { case subversion = "subversion" case tfvc = "tfvc" case git = "git" @@ -5095,40 +5128,40 @@ public enum Operations { /// The type of version control system you are migrating from. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json/vcs`. - public var vcs: Operations.migrations_sol_update_hyphen_import.Input.Body.jsonPayload.vcsPayload? + public var vcs: Operations.MigrationsUpdateImport.Input.Body.JsonPayload.VcsPayload? /// For a tfvc import, the name of the project that is being imported. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/json/tfvc_project`. - public var tfvc_project: Swift.String? - /// Creates a new `jsonPayload`. + public var tfvcProject: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - vcs_username: The username to provide to the originating repository. - /// - vcs_password: The password to provide to the originating repository. + /// - vcsUsername: The username to provide to the originating repository. + /// - vcsPassword: The password to provide to the originating repository. /// - vcs: The type of version control system you are migrating from. - /// - tfvc_project: For a tfvc import, the name of the project that is being imported. + /// - tfvcProject: For a tfvc import, the name of the project that is being imported. public init( - vcs_username: Swift.String? = nil, - vcs_password: Swift.String? = nil, - vcs: Operations.migrations_sol_update_hyphen_import.Input.Body.jsonPayload.vcsPayload? = nil, - tfvc_project: Swift.String? = nil + vcsUsername: Swift.String? = nil, + vcsPassword: Swift.String? = nil, + vcs: Operations.MigrationsUpdateImport.Input.Body.JsonPayload.VcsPayload? = nil, + tfvcProject: Swift.String? = nil ) { - self.vcs_username = vcs_username - self.vcs_password = vcs_password + self.vcsUsername = vcsUsername + self.vcsPassword = vcsPassword self.vcs = vcs - self.tfvc_project = tfvc_project + self.tfvcProject = tfvcProject } public enum CodingKeys: String, CodingKey { - case vcs_username - case vcs_password + case vcsUsername = "vcs_username" + case vcsPassword = "vcs_password" case vcs - case tfvc_project + case tfvcProject = "tfvc_project" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/requestBody/content/application\/json`. - case json(Operations.migrations_sol_update_hyphen_import.Input.Body.jsonPayload) + case json(Operations.MigrationsUpdateImport.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_update_hyphen_import.Input.Body? + public var body: Operations.MigrationsUpdateImport.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -5136,9 +5169,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.migrations_sol_update_hyphen_import.Input.Path, - headers: Operations.migrations_sol_update_hyphen_import.Input.Headers = .init(), - body: Operations.migrations_sol_update_hyphen_import.Input.Body? = nil + path: Operations.MigrationsUpdateImport.Input.Path, + headers: Operations.MigrationsUpdateImport.Input.Headers = .init(), + body: Operations.MigrationsUpdateImport.Input.Body? = nil ) { self.path = path self.headers = headers @@ -5150,12 +5183,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas._import) + case json(Components.Schemas.Import) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas._import { + public var json: Components.Schemas.Import { get throws { switch self { case let .json(body): @@ -5165,12 +5198,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_update_hyphen_import.Output.Ok.Body + public var body: Operations.MigrationsUpdateImport.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_update_hyphen_import.Output.Ok.Body) { + public init(body: Operations.MigrationsUpdateImport.Output.Ok.Body) { self.body = body } } @@ -5179,12 +5212,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_update_hyphen_import.Output.Ok) + case ok(Operations.MigrationsUpdateImport.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_update_hyphen_import.Output.Ok { + public var ok: Operations.MigrationsUpdateImport.Output.Ok { get throws { switch self { case let .ok(response): @@ -5202,12 +5235,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -5262,7 +5295,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. - public enum migrations_sol_start_hyphen_import { + public enum MigrationsStartImport { public static let id: Swift.String = "migrations/start-import" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/path`. @@ -5270,49 +5303,49 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_start_hyphen_import.Input.Path + public var path: Operations.MigrationsStartImport.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_start_hyphen_import.Input.Headers + public var headers: Operations.MigrationsStartImport.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The URL of the originating repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/vcs_url`. - public var vcs_url: Swift.String + public var vcsUrl: Swift.String /// The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/vcs`. - @frozen public enum vcsPayload: String, Codable, Hashable, Sendable { + @frozen public enum VcsPayload: String, Codable, Hashable, Sendable, CaseIterable { case subversion = "subversion" case git = "git" case mercurial = "mercurial" @@ -5321,52 +5354,52 @@ public enum Operations { /// The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/vcs`. - public var vcs: Operations.migrations_sol_start_hyphen_import.Input.Body.jsonPayload.vcsPayload? + public var vcs: Operations.MigrationsStartImport.Input.Body.JsonPayload.VcsPayload? /// If authentication is required, the username to provide to `vcs_url`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/vcs_username`. - public var vcs_username: Swift.String? + public var vcsUsername: Swift.String? /// If authentication is required, the password to provide to `vcs_url`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/vcs_password`. - public var vcs_password: Swift.String? + public var vcsPassword: Swift.String? /// For a tfvc import, the name of the project that is being imported. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/json/tfvc_project`. - public var tfvc_project: Swift.String? - /// Creates a new `jsonPayload`. + public var tfvcProject: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - vcs_url: The URL of the originating repository. + /// - vcsUrl: The URL of the originating repository. /// - vcs: The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - /// - vcs_username: If authentication is required, the username to provide to `vcs_url`. - /// - vcs_password: If authentication is required, the password to provide to `vcs_url`. - /// - tfvc_project: For a tfvc import, the name of the project that is being imported. + /// - vcsUsername: If authentication is required, the username to provide to `vcs_url`. + /// - vcsPassword: If authentication is required, the password to provide to `vcs_url`. + /// - tfvcProject: For a tfvc import, the name of the project that is being imported. public init( - vcs_url: Swift.String, - vcs: Operations.migrations_sol_start_hyphen_import.Input.Body.jsonPayload.vcsPayload? = nil, - vcs_username: Swift.String? = nil, - vcs_password: Swift.String? = nil, - tfvc_project: Swift.String? = nil + vcsUrl: Swift.String, + vcs: Operations.MigrationsStartImport.Input.Body.JsonPayload.VcsPayload? = nil, + vcsUsername: Swift.String? = nil, + vcsPassword: Swift.String? = nil, + tfvcProject: Swift.String? = nil ) { - self.vcs_url = vcs_url + self.vcsUrl = vcsUrl self.vcs = vcs - self.vcs_username = vcs_username - self.vcs_password = vcs_password - self.tfvc_project = tfvc_project + self.vcsUsername = vcsUsername + self.vcsPassword = vcsPassword + self.tfvcProject = tfvcProject } public enum CodingKeys: String, CodingKey { - case vcs_url + case vcsUrl = "vcs_url" case vcs - case vcs_username - case vcs_password - case tfvc_project + case vcsUsername = "vcs_username" + case vcsPassword = "vcs_password" + case tfvcProject = "tfvc_project" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/requestBody/content/application\/json`. - case json(Operations.migrations_sol_start_hyphen_import.Input.Body.jsonPayload) + case json(Operations.MigrationsStartImport.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_start_hyphen_import.Input.Body + public var body: Operations.MigrationsStartImport.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5374,9 +5407,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.migrations_sol_start_hyphen_import.Input.Path, - headers: Operations.migrations_sol_start_hyphen_import.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_import.Input.Body + path: Operations.MigrationsStartImport.Input.Path, + headers: Operations.MigrationsStartImport.Input.Headers = .init(), + body: Operations.MigrationsStartImport.Input.Body ) { self.path = path self.headers = headers @@ -5388,26 +5421,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.migrations_sol_start_hyphen_import.Output.Created.Headers + public var headers: Operations.MigrationsStartImport.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/PUT/responses/201/content/application\/json`. - case json(Components.Schemas._import) + case json(Components.Schemas.Import) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas._import { + public var json: Components.Schemas.Import { get throws { switch self { case let .json(body): @@ -5417,15 +5450,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_start_hyphen_import.Output.Created.Body + public var body: Operations.MigrationsStartImport.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.migrations_sol_start_hyphen_import.Output.Created.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_import.Output.Created.Body + headers: Operations.MigrationsStartImport.Output.Created.Headers = .init(), + body: Operations.MigrationsStartImport.Output.Created.Body ) { self.headers = headers self.body = body @@ -5436,12 +5469,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.migrations_sol_start_hyphen_import.Output.Created) + case created(Operations.MigrationsStartImport.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.migrations_sol_start_hyphen_import.Output.Created { + public var created: Operations.MigrationsStartImport.Output.Created { get throws { switch self { case let .created(response): @@ -5459,12 +5492,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5482,12 +5515,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5505,12 +5538,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -5563,7 +5596,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. - public enum migrations_sol_cancel_hyphen_import { + public enum MigrationsCancelImport { public static let id: Swift.String = "migrations/cancel-import" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/DELETE/path`. @@ -5571,45 +5604,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_cancel_hyphen_import.Input.Path + public var path: Operations.MigrationsCancelImport.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_cancel_hyphen_import.Input.Headers + public var headers: Operations.MigrationsCancelImport.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_cancel_hyphen_import.Input.Path, - headers: Operations.migrations_sol_cancel_hyphen_import.Input.Headers = .init() + path: Operations.MigrationsCancelImport.Input.Path, + headers: Operations.MigrationsCancelImport.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5625,12 +5658,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.migrations_sol_cancel_hyphen_import.Output.NoContent) + case noContent(Operations.MigrationsCancelImport.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.migrations_sol_cancel_hyphen_import.Output.NoContent { + public var noContent: Operations.MigrationsCancelImport.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5648,12 +5689,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -5708,7 +5749,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. - public enum migrations_sol_get_hyphen_commit_hyphen_authors { + public enum MigrationsGetCommitAuthors { public static let id: Swift.String = "migrations/get-commit-authors" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/path`. @@ -5716,52 +5757,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Path + public var path: Operations.MigrationsGetCommitAuthors.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/query`. public struct Query: Sendable, Hashable { /// A user ID. Only return users with an ID greater than this ID. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/query/since`. - public var since: Components.Parameters.since_hyphen_user? + public var since: Components.Parameters.SinceUser? /// Creates a new `Query`. /// /// - Parameters: /// - since: A user ID. Only return users with an ID greater than this ID. - public init(since: Components.Parameters.since_hyphen_user? = nil) { + public init(since: Components.Parameters.SinceUser? = nil) { self.since = since } } - public var query: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Query + public var query: Operations.MigrationsGetCommitAuthors.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Headers + public var headers: Operations.MigrationsGetCommitAuthors.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5769,9 +5810,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Path, - query: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Input.Headers = .init() + path: Operations.MigrationsGetCommitAuthors.Input.Path, + query: Operations.MigrationsGetCommitAuthors.Input.Query = .init(), + headers: Operations.MigrationsGetCommitAuthors.Input.Headers = .init() ) { self.path = path self.query = query @@ -5783,12 +5824,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/GET/responses/200/content/application\/json`. - case json([Components.Schemas.porter_hyphen_author]) + case json([Components.Schemas.PorterAuthor]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.porter_hyphen_author] { + public var json: [Components.Schemas.PorterAuthor] { get throws { switch self { case let .json(body): @@ -5798,12 +5839,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output.Ok.Body + public var body: Operations.MigrationsGetCommitAuthors.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output.Ok.Body) { + public init(body: Operations.MigrationsGetCommitAuthors.Output.Ok.Body) { self.body = body } } @@ -5812,12 +5853,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output.Ok) + case ok(Operations.MigrationsGetCommitAuthors.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_get_hyphen_commit_hyphen_authors.Output.Ok { + public var ok: Operations.MigrationsGetCommitAuthors.Output.Ok { get throws { switch self { case let .ok(response): @@ -5835,12 +5876,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5858,12 +5899,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -5917,7 +5958,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. - public enum migrations_sol_map_hyphen_commit_hyphen_author { + public enum MigrationsMapCommitAuthor { public static let id: Swift.String = "migrations/map-commit-author" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/path`. @@ -5925,46 +5966,46 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/path/author_id`. - public var author_id: Swift.Int + public var authorId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - author_id: + /// - authorId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - author_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + authorId: Swift.Int ) { self.owner = owner self.repo = repo - self.author_id = author_id + self.authorId = authorId } } - public var path: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Path + public var path: Operations.MigrationsMapCommitAuthor.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Headers + public var headers: Operations.MigrationsMapCommitAuthor.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The new Git author email. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/requestBody/json/email`. @@ -5973,7 +6014,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/requestBody/json/name`. public var name: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - email: The new Git author email. @@ -5991,11 +6032,11 @@ public enum Operations { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - email = try container.decodeIfPresent( + self.email = try container.decodeIfPresent( Swift.String.self, forKey: .email ) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) @@ -6006,9 +6047,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Body.jsonPayload) + case json(Operations.MigrationsMapCommitAuthor.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Body? + public var body: Operations.MigrationsMapCommitAuthor.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -6016,9 +6057,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Path, - headers: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Headers = .init(), - body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Input.Body? = nil + path: Operations.MigrationsMapCommitAuthor.Input.Path, + headers: Operations.MigrationsMapCommitAuthor.Input.Headers = .init(), + body: Operations.MigrationsMapCommitAuthor.Input.Body? = nil ) { self.path = path self.headers = headers @@ -6030,12 +6071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/authors/{author_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.porter_hyphen_author) + case json(Components.Schemas.PorterAuthor) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.porter_hyphen_author { + public var json: Components.Schemas.PorterAuthor { get throws { switch self { case let .json(body): @@ -6045,12 +6086,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output.Ok.Body + public var body: Operations.MigrationsMapCommitAuthor.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output.Ok.Body) { + public init(body: Operations.MigrationsMapCommitAuthor.Output.Ok.Body) { self.body = body } } @@ -6059,12 +6100,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output.Ok) + case ok(Operations.MigrationsMapCommitAuthor.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_map_hyphen_commit_hyphen_author.Output.Ok { + public var ok: Operations.MigrationsMapCommitAuthor.Output.Ok { get throws { switch self { case let .ok(response): @@ -6082,12 +6123,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6105,12 +6146,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6128,12 +6169,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -6186,7 +6227,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. - public enum migrations_sol_get_hyphen_large_hyphen_files { + public enum MigrationsGetLargeFiles { public static let id: Swift.String = "migrations/get-large-files" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/path`. @@ -6194,45 +6235,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Path + public var path: Operations.MigrationsGetLargeFiles.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Headers + public var headers: Operations.MigrationsGetLargeFiles.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Path, - headers: Operations.migrations_sol_get_hyphen_large_hyphen_files.Input.Headers = .init() + path: Operations.MigrationsGetLargeFiles.Input.Path, + headers: Operations.MigrationsGetLargeFiles.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6243,12 +6284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/large_files/GET/responses/200/content/application\/json`. - case json([Components.Schemas.porter_hyphen_large_hyphen_file]) + case json([Components.Schemas.PorterLargeFile]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.porter_hyphen_large_hyphen_file] { + public var json: [Components.Schemas.PorterLargeFile] { get throws { switch self { case let .json(body): @@ -6258,12 +6299,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_get_hyphen_large_hyphen_files.Output.Ok.Body + public var body: Operations.MigrationsGetLargeFiles.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_get_hyphen_large_hyphen_files.Output.Ok.Body) { + public init(body: Operations.MigrationsGetLargeFiles.Output.Ok.Body) { self.body = body } } @@ -6272,12 +6313,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_get_hyphen_large_hyphen_files.Output.Ok) + case ok(Operations.MigrationsGetLargeFiles.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_get_hyphen_large_hyphen_files.Output.Ok { + public var ok: Operations.MigrationsGetLargeFiles.Output.Ok { get throws { switch self { case let .ok(response): @@ -6295,12 +6336,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -6357,7 +6398,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. - public enum migrations_sol_set_hyphen_lfs_hyphen_preference { + public enum MigrationsSetLfsPreference { public static let id: Swift.String = "migrations/set-lfs-preference" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/path`. @@ -6365,67 +6406,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Path + public var path: Operations.MigrationsSetLfsPreference.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Headers + public var headers: Operations.MigrationsSetLfsPreference.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/requestBody/json/use_lfs`. - @frozen public enum use_lfsPayload: String, Codable, Hashable, Sendable { - case opt_in = "opt_in" - case opt_out = "opt_out" + @frozen public enum UseLfsPayload: String, Codable, Hashable, Sendable, CaseIterable { + case optIn = "opt_in" + case optOut = "opt_out" } /// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/requestBody/json/use_lfs`. - public var use_lfs: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body.jsonPayload.use_lfsPayload - /// Creates a new `jsonPayload`. + public var useLfs: Operations.MigrationsSetLfsPreference.Input.Body.JsonPayload.UseLfsPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - use_lfs: Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. - public init(use_lfs: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body.jsonPayload.use_lfsPayload) { - self.use_lfs = use_lfs + /// - useLfs: Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import. + public init(useLfs: Operations.MigrationsSetLfsPreference.Input.Body.JsonPayload.UseLfsPayload) { + self.useLfs = useLfs } public enum CodingKeys: String, CodingKey { - case use_lfs + case useLfs = "use_lfs" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/requestBody/content/application\/json`. - case json(Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body.jsonPayload) + case json(Operations.MigrationsSetLfsPreference.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body + public var body: Operations.MigrationsSetLfsPreference.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6433,9 +6474,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Path, - headers: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Headers = .init(), - body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Input.Body + path: Operations.MigrationsSetLfsPreference.Input.Path, + headers: Operations.MigrationsSetLfsPreference.Input.Headers = .init(), + body: Operations.MigrationsSetLfsPreference.Input.Body ) { self.path = path self.headers = headers @@ -6447,12 +6488,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/import/lfs/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas._import) + case json(Components.Schemas.Import) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas._import { + public var json: Components.Schemas.Import { get throws { switch self { case let .json(body): @@ -6462,12 +6503,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output.Ok.Body + public var body: Operations.MigrationsSetLfsPreference.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output.Ok.Body) { + public init(body: Operations.MigrationsSetLfsPreference.Output.Ok.Body) { self.body = body } } @@ -6476,12 +6517,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output.Ok) + case ok(Operations.MigrationsSetLfsPreference.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_set_hyphen_lfs_hyphen_preference.Output.Ok { + public var ok: Operations.MigrationsSetLfsPreference.Output.Ok { get throws { switch self { case let .ok(response): @@ -6499,12 +6540,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6522,12 +6563,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.porter_maintenance) + case serviceUnavailable(Components.Responses.PorterMaintenance) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.porter_maintenance { + public var serviceUnavailable: Components.Responses.PorterMaintenance { get throws { switch self { case let .serviceUnavailable(response): @@ -6577,7 +6618,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)`. - public enum migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsListForAuthenticatedUser { public static let id: Swift.String = "migrations/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/GET/query`. @@ -6585,45 +6626,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/migrations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/migrations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.MigrationsListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/migrations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.MigrationsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6634,26 +6675,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/migrations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/migrations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.migration]) + case json([Components.Schemas.Migration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.migration] { + public var json: [Components.Schemas.Migration] { get throws { switch self { case let .json(body): @@ -6663,15 +6704,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.MigrationsListForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6682,12 +6723,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.MigrationsListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.MigrationsListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6705,12 +6746,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6728,12 +6777,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6751,12 +6800,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/get(migrations/list-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6806,126 +6855,126 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/migrations`. /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)`. - public enum migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsStartForAuthenticatedUser { public static let id: Swift.String = "migrations/start-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsStartForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Lock the repositories being migrated at the start of the migration /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/lock_repositories`. - public var lock_repositories: Swift.Bool? + public var lockRepositories: Swift.Bool? /// Indicates whether metadata should be excluded and only git source should be included for the migration. /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude_metadata`. - public var exclude_metadata: Swift.Bool? + public var excludeMetadata: Swift.Bool? /// Indicates whether the repository git data should be excluded from the migration. /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude_git_data`. - public var exclude_git_data: Swift.Bool? + public var excludeGitData: Swift.Bool? /// Do not include attachments in the migration /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude_attachments`. - public var exclude_attachments: Swift.Bool? + public var excludeAttachments: Swift.Bool? /// Do not include releases in the migration /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude_releases`. - public var exclude_releases: Swift.Bool? + public var excludeReleases: Swift.Bool? /// Indicates whether projects owned by the organization or users should be excluded. /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude_owner_projects`. - public var exclude_owner_projects: Swift.Bool? + public var excludeOwnerProjects: Swift.Bool? /// Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/org_metadata_only`. - public var org_metadata_only: Swift.Bool? + public var orgMetadataOnly: Swift.Bool? /// Allowed values that can be passed to the exclude param. /// - /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/excludePayload`. - @frozen public enum excludePayloadPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/ExcludePayload`. + @frozen public enum ExcludePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case repositories = "repositories" } /// Exclude attributes from the API response to improve performance /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude`. - public typealias excludePayload = [Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.excludePayloadPayload] + public typealias ExcludePayload = [Operations.MigrationsStartForAuthenticatedUser.Input.Body.JsonPayload.ExcludePayloadPayload] /// Exclude attributes from the API response to improve performance /// /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/exclude`. - public var exclude: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.excludePayload? + public var exclude: Operations.MigrationsStartForAuthenticatedUser.Input.Body.JsonPayload.ExcludePayload? /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/json/repositories`. public var repositories: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - lock_repositories: Lock the repositories being migrated at the start of the migration - /// - exclude_metadata: Indicates whether metadata should be excluded and only git source should be included for the migration. - /// - exclude_git_data: Indicates whether the repository git data should be excluded from the migration. - /// - exclude_attachments: Do not include attachments in the migration - /// - exclude_releases: Do not include releases in the migration - /// - exclude_owner_projects: Indicates whether projects owned by the organization or users should be excluded. - /// - org_metadata_only: Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). + /// - lockRepositories: Lock the repositories being migrated at the start of the migration + /// - excludeMetadata: Indicates whether metadata should be excluded and only git source should be included for the migration. + /// - excludeGitData: Indicates whether the repository git data should be excluded from the migration. + /// - excludeAttachments: Do not include attachments in the migration + /// - excludeReleases: Do not include releases in the migration + /// - excludeOwnerProjects: Indicates whether projects owned by the organization or users should be excluded. + /// - orgMetadataOnly: Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). /// - exclude: Exclude attributes from the API response to improve performance /// - repositories: public init( - lock_repositories: Swift.Bool? = nil, - exclude_metadata: Swift.Bool? = nil, - exclude_git_data: Swift.Bool? = nil, - exclude_attachments: Swift.Bool? = nil, - exclude_releases: Swift.Bool? = nil, - exclude_owner_projects: Swift.Bool? = nil, - org_metadata_only: Swift.Bool? = nil, - exclude: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.excludePayload? = nil, + lockRepositories: Swift.Bool? = nil, + excludeMetadata: Swift.Bool? = nil, + excludeGitData: Swift.Bool? = nil, + excludeAttachments: Swift.Bool? = nil, + excludeReleases: Swift.Bool? = nil, + excludeOwnerProjects: Swift.Bool? = nil, + orgMetadataOnly: Swift.Bool? = nil, + exclude: Operations.MigrationsStartForAuthenticatedUser.Input.Body.JsonPayload.ExcludePayload? = nil, repositories: [Swift.String] ) { - self.lock_repositories = lock_repositories - self.exclude_metadata = exclude_metadata - self.exclude_git_data = exclude_git_data - self.exclude_attachments = exclude_attachments - self.exclude_releases = exclude_releases - self.exclude_owner_projects = exclude_owner_projects - self.org_metadata_only = org_metadata_only + self.lockRepositories = lockRepositories + self.excludeMetadata = excludeMetadata + self.excludeGitData = excludeGitData + self.excludeAttachments = excludeAttachments + self.excludeReleases = excludeReleases + self.excludeOwnerProjects = excludeOwnerProjects + self.orgMetadataOnly = orgMetadataOnly self.exclude = exclude self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case lock_repositories - case exclude_metadata - case exclude_git_data - case exclude_attachments - case exclude_releases - case exclude_owner_projects - case org_metadata_only + case lockRepositories = "lock_repositories" + case excludeMetadata = "exclude_metadata" + case excludeGitData = "exclude_git_data" + case excludeAttachments = "exclude_attachments" + case excludeReleases = "exclude_releases" + case excludeOwnerProjects = "exclude_owner_projects" + case orgMetadataOnly = "org_metadata_only" case exclude case repositories } } /// - Remark: Generated from `#/paths/user/migrations/POST/requestBody/content/application\/json`. - case json(Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.MigrationsStartForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.MigrationsStartForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.MigrationsStartForAuthenticatedUser.Input.Headers = .init(), + body: Operations.MigrationsStartForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -6936,12 +6985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/migrations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.migration) + case json(Components.Schemas.Migration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.migration { + public var json: Components.Schemas.Migration { get throws { switch self { case let .json(body): @@ -6951,12 +7000,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.MigrationsStartForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.MigrationsStartForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -6965,12 +7014,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.MigrationsStartForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.migrations_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.MigrationsStartForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -6988,12 +7037,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7011,12 +7060,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7034,12 +7091,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7057,12 +7114,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/post(migrations/start-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7119,7 +7176,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)`. - public enum migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsGetStatusForAuthenticatedUser { public static let id: Swift.String = "migrations/get-status-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/path`. @@ -7127,16 +7184,16 @@ public enum Operations { /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: - /// - migration_id: The unique identifier of the migration. - public init(migration_id: Components.Parameters.migration_hyphen_id) { - self.migration_id = migration_id + /// - migrationId: The unique identifier of the migration. + public init(migrationId: Components.Parameters.MigrationId) { + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/query/exclude`. @@ -7149,19 +7206,19 @@ public enum Operations { self.exclude = exclude } } - public var query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7169,9 +7226,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Path, + query: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsGetStatusForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -7183,12 +7240,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.migration) + case json(Components.Schemas.Migration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.migration { + public var json: Components.Schemas.Migration { get throws { switch self { case let .json(body): @@ -7198,12 +7255,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.MigrationsGetStatusForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.MigrationsGetStatusForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -7212,12 +7269,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.MigrationsGetStatusForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_get_hyphen_status_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.MigrationsGetStatusForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7235,12 +7292,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7258,12 +7315,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7281,12 +7346,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7304,12 +7369,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/get(migrations/get-status-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7379,7 +7444,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)`. - public enum migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsGetArchiveForAuthenticatedUser { public static let id: Swift.String = "migrations/get-archive-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/GET/path`. @@ -7387,36 +7452,36 @@ public enum Operations { /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: - /// - migration_id: The unique identifier of the migration. - public init(migration_id: Components.Parameters.migration_hyphen_id) { - self.migration_id = migration_id + /// - migrationId: The unique identifier of the migration. + public init(migrationId: Components.Parameters.MigrationId) { + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsGetArchiveForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7432,12 +7497,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output.Found) + case found(Operations.MigrationsGetArchiveForAuthenticatedUser.Output.Found) + /// Response + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/302`. + /// + /// HTTP response code: `302 found`. + public static var found: Self { + .found(.init()) + } /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.migrations_sol_get_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output.Found { + public var found: Operations.MigrationsGetArchiveForAuthenticatedUser.Output.Found { get throws { switch self { case let .found(response): @@ -7455,12 +7528,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7478,12 +7559,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7501,12 +7582,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/get(migrations/get-archive-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7556,7 +7637,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/archive`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)`. - public enum migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsDeleteArchiveForAuthenticatedUser { public static let id: Swift.String = "migrations/delete-archive-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/DELETE/path`. @@ -7564,36 +7645,36 @@ public enum Operations { /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/DELETE/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: - /// - migration_id: The unique identifier of the migration. - public init(migration_id: Components.Parameters.migration_hyphen_id) { - self.migration_id = migration_id + /// - migrationId: The unique identifier of the migration. + public init(migrationId: Components.Parameters.MigrationId) { + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/archive/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7609,12 +7690,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.MigrationsDeleteArchiveForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.migrations_sol_delete_hyphen_archive_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.MigrationsDeleteArchiveForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7632,12 +7721,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7655,12 +7744,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7678,12 +7775,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7701,12 +7798,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/archive/delete(migrations/delete-archive-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7756,7 +7853,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)`. - public enum migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsUnlockRepoForAuthenticatedUser { public static let id: Swift.String = "migrations/unlock-repo-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path`. @@ -7764,45 +7861,45 @@ public enum Operations { /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// repo_name parameter /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/path/repo_name`. - public var repo_name: Components.Parameters.repo_hyphen_name + public var repoName: Components.Parameters.RepoName /// Creates a new `Path`. /// /// - Parameters: - /// - migration_id: The unique identifier of the migration. - /// - repo_name: repo_name parameter + /// - migrationId: The unique identifier of the migration. + /// - repoName: repo_name parameter public init( - migration_id: Components.Parameters.migration_hyphen_id, - repo_name: Components.Parameters.repo_hyphen_name + migrationId: Components.Parameters.MigrationId, + repoName: Components.Parameters.RepoName ) { - self.migration_id = migration_id - self.repo_name = repo_name + self.migrationId = migrationId + self.repoName = repoName } } - public var path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repos/{repo_name}/lock/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Path, + headers: Operations.MigrationsUnlockRepoForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7818,12 +7915,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.MigrationsUnlockRepoForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.migrations_sol_unlock_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.MigrationsUnlockRepoForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7841,12 +7946,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7864,12 +7977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7887,12 +8000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7910,12 +8023,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repos/{repo_name}/lock/delete(migrations/unlock-repo-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7965,7 +8078,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/migrations/{migration_id}/repositories`. /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)`. - public enum migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user { + public enum MigrationsListReposForAuthenticatedUser { public static let id: Swift.String = "migrations/list-repos-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/path`. @@ -7973,52 +8086,52 @@ public enum Operations { /// The unique identifier of the migration. /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/path/migration_id`. - public var migration_id: Components.Parameters.migration_hyphen_id + public var migrationId: Components.Parameters.MigrationId /// Creates a new `Path`. /// /// - Parameters: - /// - migration_id: The unique identifier of the migration. - public init(migration_id: Components.Parameters.migration_hyphen_id) { - self.migration_id = migration_id + /// - migrationId: The unique identifier of the migration. + public init(migrationId: Components.Parameters.MigrationId) { + self.migrationId = migrationId } } - public var path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.MigrationsListReposForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.MigrationsListReposForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.MigrationsListReposForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8026,9 +8139,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.MigrationsListReposForAuthenticatedUser.Input.Path, + query: Operations.MigrationsListReposForAuthenticatedUser.Input.Query = .init(), + headers: Operations.MigrationsListReposForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -8040,26 +8153,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/migrations/{migration_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -8069,15 +8182,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8088,12 +8201,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.MigrationsListReposForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.migrations_sol_list_hyphen_repos_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.MigrationsListReposForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -8111,12 +8224,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/migrations/{migration_id}/repositories/get(migrations/list-repos-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): From 2039ad515ebb8b65870a7eae9b48313d3d79981d Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:03:41 -0700 Subject: [PATCH 22/46] Commit via running ake Sources/oidc --- Sources/oidc/Client.swift | 24 +++--- Sources/oidc/Types.swift | 167 ++++++++++++++++++++------------------ 2 files changed, 100 insertions(+), 91 deletions(-) diff --git a/Sources/oidc/Client.swift b/Sources/oidc/Client.swift index 6fb85531d4..9eb3f08e56 100644 --- a/Sources/oidc/Client.swift +++ b/Sources/oidc/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/get(oidc/get-oidc-custom-sub-template-for-org)`. - public func oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(_ input: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input) async throws -> Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output { + public func oidcGetOidcCustomSubTemplateForOrg(_ input: Operations.OidcGetOidcCustomSubTemplateForOrg.Input) async throws -> Operations.OidcGetOidcCustomSubTemplateForOrg.Output { try await client.send( input: input, - forOperation: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.id, + forOperation: Operations.OidcGetOidcCustomSubTemplateForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/oidc/customization/sub", @@ -72,7 +72,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.OidcGetOidcCustomSubTemplateForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -82,7 +82,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.oidc_hyphen_custom_hyphen_sub.self, + Components.Schemas.OidcCustomSub.self, from: responseBody, transforming: { value in .json(value) @@ -112,10 +112,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)`. - public func oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(_ input: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input) async throws -> Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output { + public func oidcUpdateOidcCustomSubTemplateForOrg(_ input: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input) async throws -> Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output { try await client.send( input: input, - forOperation: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.id, + forOperation: Operations.OidcUpdateOidcCustomSubTemplateForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/actions/oidc/customization/sub", @@ -147,7 +147,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -157,7 +157,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -169,7 +169,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -179,7 +179,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -191,7 +191,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -201,7 +201,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/oidc/Types.swift b/Sources/oidc/Types.swift index fe0bab05c2..3278892c11 100644 --- a/Sources/oidc/Types.swift +++ b/Sources/oidc/Types.swift @@ -19,7 +19,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/get(oidc/get-oidc-custom-sub-template-for-org)`. - func oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(_ input: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input) async throws -> Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output + func oidcGetOidcCustomSubTemplateForOrg(_ input: Operations.OidcGetOidcCustomSubTemplateForOrg.Input) async throws -> Operations.OidcGetOidcCustomSubTemplateForOrg.Output /// Set the customization template for an OIDC subject claim for an organization /// /// Creates or updates the customization template for an OpenID Connect (OIDC) subject claim. @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)`. - func oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(_ input: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input) async throws -> Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output + func oidcUpdateOidcCustomSubTemplateForOrg(_ input: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input) async throws -> Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output } /// Convenience overloads for operation inputs. @@ -41,11 +41,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/get(oidc/get-oidc-custom-sub-template-for-org)`. - public func oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org( - path: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path, - headers: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output { - try await oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input( + public func oidcGetOidcCustomSubTemplateForOrg( + path: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Path, + headers: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Headers = .init() + ) async throws -> Operations.OidcGetOidcCustomSubTemplateForOrg.Output { + try await oidcGetOidcCustomSubTemplateForOrg(Operations.OidcGetOidcCustomSubTemplateForOrg.Input( path: path, headers: headers )) @@ -58,12 +58,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)`. - public func oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org( - path: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path, - headers: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output { - try await oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org(Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input( + public func oidcUpdateOidcCustomSubTemplateForOrg( + path: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Path, + headers: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Headers = .init(), + body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Body + ) async throws -> Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output { + try await oidcUpdateOidcCustomSubTemplateForOrg(Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input( path: path, headers: headers, body: body @@ -73,6 +73,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -88,36 +97,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -125,27 +134,27 @@ public enum Components { /// Actions OIDC Subject customization /// /// - Remark: Generated from `#/components/schemas/oidc-custom-sub`. - public struct oidc_hyphen_custom_hyphen_sub: Codable, Hashable, Sendable { + public struct OidcCustomSub: Codable, Hashable, Sendable { /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. /// /// - Remark: Generated from `#/components/schemas/oidc-custom-sub/include_claim_keys`. - public var include_claim_keys: [Swift.String] - /// Creates a new `oidc_hyphen_custom_hyphen_sub`. + public var includeClaimKeys: [Swift.String] + /// Creates a new `OidcCustomSub`. /// /// - Parameters: - /// - include_claim_keys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. - public init(include_claim_keys: [Swift.String]) { - self.include_claim_keys = include_claim_keys + /// - includeClaimKeys: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. + public init(includeClaimKeys: [Swift.String]) { + self.includeClaimKeys = includeClaimKeys } public enum CodingKeys: String, CodingKey { - case include_claim_keys + case includeClaimKeys = "include_claim_keys" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -157,22 +166,22 @@ public enum Components { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -182,25 +191,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -210,12 +219,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } @@ -234,7 +243,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/get(oidc/get-oidc-custom-sub-template-for-org)`. - public enum oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org { + public enum OidcGetOidcCustomSubTemplateForOrg { public static let id: Swift.String = "oidc/get-oidc-custom-sub-template-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/GET/path`. @@ -242,36 +251,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path + public var path: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path, - headers: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Path, + headers: Operations.OidcGetOidcCustomSubTemplateForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -282,12 +291,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/GET/responses/200/content/application\/json`. - case json(Components.Schemas.oidc_hyphen_custom_hyphen_sub) + case json(Components.Schemas.OidcCustomSub) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.oidc_hyphen_custom_hyphen_sub { + public var json: Components.Schemas.OidcCustomSub { get throws { switch self { case let .json(body): @@ -297,12 +306,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.OidcGetOidcCustomSubTemplateForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.OidcGetOidcCustomSubTemplateForOrg.Output.Ok.Body) { self.body = body } } @@ -311,12 +320,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/get(oidc/get-oidc-custom-sub-template-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.OidcGetOidcCustomSubTemplateForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.oidc_sol_get_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.OidcGetOidcCustomSubTemplateForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -368,7 +377,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/actions/oidc/customization/sub`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)`. - public enum oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org { + public enum OidcUpdateOidcCustomSubTemplateForOrg { public static let id: Swift.String = "oidc/update-oidc-custom-sub-template-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/path`. @@ -376,34 +385,34 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path + public var path: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.oidc_hyphen_custom_hyphen_sub) + case json(Components.Schemas.OidcCustomSub) } - public var body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Body + public var body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -411,9 +420,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Path, - headers: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Input.Body + path: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Path, + headers: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Headers = .init(), + body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Input.Body ) { self.path = path self.headers = headers @@ -425,12 +434,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/actions/oidc/customization/sub/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -440,12 +449,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output.Created.Body) { self.body = body } } @@ -454,12 +463,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Created) + case created(Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.oidc_sol_update_hyphen_oidc_hyphen_custom_hyphen_sub_hyphen_template_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.OidcUpdateOidcCustomSubTemplateForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -477,12 +486,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -500,12 +509,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/actions/oidc/customization/sub/put(oidc/update-oidc-custom-sub-template-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): From 853b3ee75b7b5d8a97c6edf437338026fe240b3b Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:03:55 -0700 Subject: [PATCH 23/46] Commit via running ake Sources/orgs --- Sources/orgs/Client.swift | 1328 ++--- Sources/orgs/Types.swift | 11363 +++++++++++++++++++----------------- 2 files changed, 6523 insertions(+), 6168 deletions(-) diff --git a/Sources/orgs/Client.swift b/Sources/orgs/Client.swift index 76e0658908..aea79cd7d8 100644 --- a/Sources/orgs/Client.swift +++ b/Sources/orgs/Client.swift @@ -47,10 +47,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /organizations`. /// - Remark: Generated from `#/paths//organizations/get(orgs/list)`. - public func orgs_sol_list(_ input: Operations.orgs_sol_list.Input) async throws -> Operations.orgs_sol_list.Output { + public func orgsList(_ input: Operations.OrgsList.Input) async throws -> Operations.OrgsList.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list.id, + forOperation: Operations.OrgsList.id, serializer: { input in let path = try converter.renderedPath( template: "/organizations", @@ -73,7 +73,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -84,13 +84,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list.Output.Ok.Body + let body: Operations.OrgsList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -100,7 +100,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_simple].self, + [Components.Schemas.OrganizationSimple].self, from: responseBody, transforming: { value in .json(value) @@ -141,10 +141,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)`. - public func orgs_sol_get(_ input: Operations.orgs_sol_get.Input) async throws -> Operations.orgs_sol_get.Output { + public func orgsGet(_ input: Operations.OrgsGet.Input) async throws -> Operations.OrgsGet.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get.id, + forOperation: Operations.OrgsGet.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}", @@ -167,7 +167,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get.Output.Ok.Body + let body: Operations.OrgsGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -177,7 +177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_full.self, + Components.Schemas.OrganizationFull.self, from: responseBody, transforming: { value in .json(value) @@ -189,7 +189,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -199,7 +199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -237,10 +237,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)`. - public func orgs_sol_update(_ input: Operations.orgs_sol_update.Input) async throws -> Operations.orgs_sol_update.Output { + public func orgsUpdate(_ input: Operations.OrgsUpdate.Input) async throws -> Operations.OrgsUpdate.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update.id, + forOperation: Operations.OrgsUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}", @@ -274,7 +274,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update.Output.Ok.Body + let body: Operations.OrgsUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -284,7 +284,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_full.self, + Components.Schemas.OrganizationFull.self, from: responseBody, transforming: { value in .json(value) @@ -296,7 +296,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update.Output.UnprocessableContent.Body + let body: Operations.OrgsUpdate.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -306,7 +306,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_update.Output.UnprocessableContent.Body.jsonPayload.self, + Operations.OrgsUpdate.Output.UnprocessableContent.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -318,7 +318,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -328,7 +328,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -362,10 +362,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)`. - public func orgs_sol_delete(_ input: Operations.orgs_sol_delete.Input) async throws -> Operations.orgs_sol_delete.Output { + public func orgsDelete(_ input: Operations.OrgsDelete.Input) async throws -> Operations.OrgsDelete.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_delete.id, + forOperation: Operations.OrgsDelete.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}", @@ -388,7 +388,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -410,7 +410,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -420,7 +420,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -432,7 +432,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -442,7 +442,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -474,16 +474,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//orgs/{org}/attestations/{subject_digest}/get(orgs/list-attestations)`. - public func orgs_sol_list_hyphen_attestations(_ input: Operations.orgs_sol_list_hyphen_attestations.Input) async throws -> Operations.orgs_sol_list_hyphen_attestations.Output { + public func orgsListAttestations(_ input: Operations.OrgsListAttestations.Input) async throws -> Operations.OrgsListAttestations.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_attestations.id, + forOperation: Operations.OrgsListAttestations.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/attestations/{}", parameters: [ input.path.org, - input.path.subject_digest + input.path.subjectDigest ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -496,7 +496,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -517,7 +517,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "predicate_type", - value: input.query.predicate_type + value: input.query.predicateType ) converter.setAcceptHeader( in: &request.headerFields, @@ -529,7 +529,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body + let body: Operations.OrgsListAttestations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -539,7 +539,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.self, + Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -567,10 +567,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/blocks`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/get(orgs/list-blocked-users)`. - public func orgs_sol_list_hyphen_blocked_hyphen_users(_ input: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input) async throws -> Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output { + public func orgsListBlockedUsers(_ input: Operations.OrgsListBlockedUsers.Input) async throws -> Operations.OrgsListBlockedUsers.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.id, + forOperation: Operations.OrgsListBlockedUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/blocks", @@ -588,7 +588,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -607,7 +607,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output.Ok.Body + let body: Operations.OrgsListBlockedUsers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -617,7 +617,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -645,10 +645,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)`. - public func orgs_sol_check_hyphen_blocked_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output { + public func orgsCheckBlockedUser(_ input: Operations.OrgsCheckBlockedUser.Input) async throws -> Operations.OrgsCheckBlockedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.id, + forOperation: Operations.OrgsCheckBlockedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/blocks/{}", @@ -674,7 +674,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NotFound.Body + let body: Operations.OrgsCheckBlockedUser.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -684,7 +684,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -712,10 +712,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)`. - public func orgs_sol_block_hyphen_user(_ input: Operations.orgs_sol_block_hyphen_user.Input) async throws -> Operations.orgs_sol_block_hyphen_user.Output { + public func orgsBlockUser(_ input: Operations.OrgsBlockUser.Input) async throws -> Operations.OrgsBlockUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_block_hyphen_user.id, + forOperation: Operations.OrgsBlockUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/blocks/{}", @@ -741,7 +741,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -751,7 +751,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -779,10 +779,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)`. - public func orgs_sol_unblock_hyphen_user(_ input: Operations.orgs_sol_unblock_hyphen_user.Input) async throws -> Operations.orgs_sol_unblock_hyphen_user.Output { + public func orgsUnblockUser(_ input: Operations.OrgsUnblockUser.Input) async throws -> Operations.OrgsUnblockUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_unblock_hyphen_user.id, + forOperation: Operations.OrgsUnblockUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/blocks/{}", @@ -820,10 +820,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/failed_invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)`. - public func orgs_sol_list_hyphen_failed_hyphen_invitations(_ input: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input) async throws -> Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output { + public func orgsListFailedInvitations(_ input: Operations.OrgsListFailedInvitations.Input) async throws -> Operations.OrgsListFailedInvitations.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.id, + forOperation: Operations.OrgsListFailedInvitations.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/failed_invitations", @@ -841,7 +841,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -859,13 +859,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListFailedInvitations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Body + let body: Operations.OrgsListFailedInvitations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -875,7 +875,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_invitation].self, + [Components.Schemas.OrganizationInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -890,7 +890,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -900,7 +900,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -933,10 +933,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)`. - public func orgs_sol_list_hyphen_webhooks(_ input: Operations.orgs_sol_list_hyphen_webhooks.Input) async throws -> Operations.orgs_sol_list_hyphen_webhooks.Output { + public func orgsListWebhooks(_ input: Operations.OrgsListWebhooks.Input) async throws -> Operations.OrgsListWebhooks.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_webhooks.id, + forOperation: Operations.OrgsListWebhooks.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks", @@ -954,7 +954,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -972,13 +972,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListWebhooks.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Body + let body: Operations.OrgsListWebhooks.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -988,7 +988,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.org_hyphen_hook].self, + [Components.Schemas.OrgHook].self, from: responseBody, transforming: { value in .json(value) @@ -1003,7 +1003,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1013,7 +1013,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1046,10 +1046,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)`. - public func orgs_sol_create_hyphen_webhook(_ input: Operations.orgs_sol_create_hyphen_webhook.Input) async throws -> Operations.orgs_sol_create_hyphen_webhook.Output { + public func orgsCreateWebhook(_ input: Operations.OrgsCreateWebhook.Input) async throws -> Operations.OrgsCreateWebhook.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_webhook.id, + forOperation: Operations.OrgsCreateWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks", @@ -1080,13 +1080,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsCreateWebhook.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Body + let body: Operations.OrgsCreateWebhook.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1096,7 +1096,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_hook.self, + Components.Schemas.OrgHook.self, from: responseBody, transforming: { value in .json(value) @@ -1111,7 +1111,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1121,7 +1121,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1133,7 +1133,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1143,7 +1143,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1177,16 +1177,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)`. - public func orgs_sol_get_hyphen_webhook(_ input: Operations.orgs_sol_get_hyphen_webhook.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook.Output { + public func orgsGetWebhook(_ input: Operations.OrgsGetWebhook.Input) async throws -> Operations.OrgsGetWebhook.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_webhook.id, + forOperation: Operations.OrgsGetWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1204,7 +1204,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_webhook.Output.Ok.Body + let body: Operations.OrgsGetWebhook.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1214,7 +1214,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_hook.self, + Components.Schemas.OrgHook.self, from: responseBody, transforming: { value in .json(value) @@ -1226,7 +1226,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1236,7 +1236,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1273,16 +1273,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)`. - public func orgs_sol_update_hyphen_webhook(_ input: Operations.orgs_sol_update_hyphen_webhook.Input) async throws -> Operations.orgs_sol_update_hyphen_webhook.Output { + public func orgsUpdateWebhook(_ input: Operations.OrgsUpdateWebhook.Input) async throws -> Operations.OrgsUpdateWebhook.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_webhook.id, + forOperation: Operations.OrgsUpdateWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1311,7 +1311,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update_hyphen_webhook.Output.Ok.Body + let body: Operations.OrgsUpdateWebhook.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1321,7 +1321,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_hook.self, + Components.Schemas.OrgHook.self, from: responseBody, transforming: { value in .json(value) @@ -1333,7 +1333,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1343,7 +1343,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1355,7 +1355,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1365,7 +1365,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1398,16 +1398,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)`. - public func orgs_sol_delete_hyphen_webhook(_ input: Operations.orgs_sol_delete_hyphen_webhook.Input) async throws -> Operations.orgs_sol_delete_hyphen_webhook.Output { + public func orgsDeleteWebhook(_ input: Operations.OrgsDeleteWebhook.Input) async throws -> Operations.OrgsDeleteWebhook.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_delete_hyphen_webhook.id, + forOperation: Operations.OrgsDeleteWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1427,7 +1427,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1437,7 +1437,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1470,16 +1470,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)`. - public func orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(_ input: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output { + public func orgsGetWebhookConfigForOrg(_ input: Operations.OrgsGetWebhookConfigForOrg.Input) async throws -> Operations.OrgsGetWebhookConfigForOrg.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.id, + forOperation: Operations.OrgsGetWebhookConfigForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/config", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1497,7 +1497,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.OrgsGetWebhookConfigForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1507,7 +1507,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -1540,16 +1540,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/patch(orgs/update-webhook-config-for-org)`. - public func orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(_ input: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input) async throws -> Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output { + public func orgsUpdateWebhookConfigForOrg(_ input: Operations.OrgsUpdateWebhookConfigForOrg.Input) async throws -> Operations.OrgsUpdateWebhookConfigForOrg.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.id, + forOperation: Operations.OrgsUpdateWebhookConfigForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/config", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1578,7 +1578,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.OrgsUpdateWebhookConfigForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1588,7 +1588,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -1621,16 +1621,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)`. - public func orgs_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output { + public func orgsListWebhookDeliveries(_ input: Operations.OrgsListWebhookDeliveries.Input) async throws -> Operations.OrgsListWebhookDeliveries.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.id, + forOperation: Operations.OrgsListWebhookDeliveries.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/deliveries", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1643,7 +1643,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1662,7 +1662,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + let body: Operations.OrgsListWebhookDeliveries.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1672,7 +1672,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.hook_hyphen_delivery_hyphen_item].self, + [Components.Schemas.HookDeliveryItem].self, from: responseBody, transforming: { value in .json(value) @@ -1684,7 +1684,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1695,7 +1695,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1703,10 +1703,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1715,7 +1715,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1725,7 +1725,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1758,17 +1758,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)`. - public func orgs_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output { + public func orgsGetWebhookDelivery(_ input: Operations.OrgsGetWebhookDelivery.Input) async throws -> Operations.OrgsGetWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.OrgsGetWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/deliveries/{}", parameters: [ input.path.org, - input.path.hook_id, - input.path.delivery_id + input.path.hookId, + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1786,7 +1786,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + let body: Operations.OrgsGetWebhookDelivery.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1796,7 +1796,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook_hyphen_delivery.self, + Components.Schemas.HookDelivery.self, from: responseBody, transforming: { value in .json(value) @@ -1808,7 +1808,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1819,7 +1819,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1827,10 +1827,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1839,7 +1839,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1849,7 +1849,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1882,17 +1882,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)`. - public func orgs_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { + public func orgsRedeliverWebhookDelivery(_ input: Operations.OrgsRedeliverWebhookDelivery.Input) async throws -> Operations.OrgsRedeliverWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.OrgsRedeliverWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/deliveries/{}/attempts", parameters: [ input.path.org, - input.path.hook_id, - input.path.delivery_id + input.path.hookId, + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1910,7 +1910,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1932,7 +1932,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1943,7 +1943,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1951,10 +1951,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1963,7 +1963,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1973,7 +1973,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2007,16 +2007,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)`. - public func orgs_sol_ping_hyphen_webhook(_ input: Operations.orgs_sol_ping_hyphen_webhook.Input) async throws -> Operations.orgs_sol_ping_hyphen_webhook.Output { + public func orgsPingWebhook(_ input: Operations.OrgsPingWebhook.Input) async throws -> Operations.OrgsPingWebhook.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_ping_hyphen_webhook.id, + forOperation: Operations.OrgsPingWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/hooks/{}/pings", parameters: [ input.path.org, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2036,7 +2036,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2046,7 +2046,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2074,17 +2074,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/get(api-insights/get-route-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output { + public func apiInsightsGetRouteStatsByActor(_ input: Operations.ApiInsightsGetRouteStatsByActor.Input) async throws -> Operations.ApiInsightsGetRouteStatsByActor.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.id, + forOperation: Operations.ApiInsightsGetRouteStatsByActor.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/route-stats/{}/{}", parameters: [ input.path.org, - input.path.actor_type, - input.path.actor_id + input.path.actorType, + input.path.actorId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2097,14 +2097,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, @@ -2118,7 +2118,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2139,7 +2139,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "api_route_substring", - value: input.query.api_route_substring + value: input.query.apiRouteSubstring ) converter.setAcceptHeader( in: &request.headerFields, @@ -2151,7 +2151,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + let body: Operations.ApiInsightsGetRouteStatsByActor.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2161,7 +2161,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_route_hyphen_stats.self, + Components.Schemas.ApiInsightsRouteStats.self, from: responseBody, transforming: { value in .json(value) @@ -2189,10 +2189,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/subject-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/subject-stats/get(api-insights/get-subject-stats)`. - public func api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output { + public func apiInsightsGetSubjectStats(_ input: Operations.ApiInsightsGetSubjectStats.Input) async throws -> Operations.ApiInsightsGetSubjectStats.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.id, + forOperation: Operations.ApiInsightsGetSubjectStats.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/subject-stats", @@ -2210,14 +2210,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, @@ -2231,7 +2231,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2252,7 +2252,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "subject_name_substring", - value: input.query.subject_name_substring + value: input.query.subjectNameSubstring ) converter.setAcceptHeader( in: &request.headerFields, @@ -2264,7 +2264,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output.Ok.Body + let body: Operations.ApiInsightsGetSubjectStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2274,7 +2274,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_subject_hyphen_stats.self, + Components.Schemas.ApiInsightsSubjectStats.self, from: responseBody, transforming: { value in .json(value) @@ -2302,10 +2302,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/get(api-insights/get-summary-stats)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output { + public func apiInsightsGetSummaryStats(_ input: Operations.ApiInsightsGetSummaryStats.Input) async throws -> Operations.ApiInsightsGetSummaryStats.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.id, + forOperation: Operations.ApiInsightsGetSummaryStats.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/summary-stats", @@ -2323,14 +2323,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) converter.setAcceptHeader( in: &request.headerFields, @@ -2342,7 +2342,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output.Ok.Body + let body: Operations.ApiInsightsGetSummaryStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2352,7 +2352,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats.self, + Components.Schemas.ApiInsightsSummaryStats.self, from: responseBody, transforming: { value in .json(value) @@ -2380,16 +2380,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/users/{user_id}/get(api-insights/get-summary-stats-by-user)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output { + public func apiInsightsGetSummaryStatsByUser(_ input: Operations.ApiInsightsGetSummaryStatsByUser.Input) async throws -> Operations.ApiInsightsGetSummaryStatsByUser.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.id, + forOperation: Operations.ApiInsightsGetSummaryStatsByUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/summary-stats/users/{}", parameters: [ input.path.org, - input.path.user_id + input.path.userId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2402,14 +2402,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) converter.setAcceptHeader( in: &request.headerFields, @@ -2421,7 +2421,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body + let body: Operations.ApiInsightsGetSummaryStatsByUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2431,7 +2431,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats.self, + Components.Schemas.ApiInsightsSummaryStats.self, from: responseBody, transforming: { value in .json(value) @@ -2459,17 +2459,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/get(api-insights/get-summary-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output { + public func apiInsightsGetSummaryStatsByActor(_ input: Operations.ApiInsightsGetSummaryStatsByActor.Input) async throws -> Operations.ApiInsightsGetSummaryStatsByActor.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.id, + forOperation: Operations.ApiInsightsGetSummaryStatsByActor.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/summary-stats/{}/{}", parameters: [ input.path.org, - input.path.actor_type, - input.path.actor_id + input.path.actorType, + input.path.actorId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2482,14 +2482,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) converter.setAcceptHeader( in: &request.headerFields, @@ -2501,7 +2501,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + let body: Operations.ApiInsightsGetSummaryStatsByActor.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2511,7 +2511,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats.self, + Components.Schemas.ApiInsightsSummaryStats.self, from: responseBody, transforming: { value in .json(value) @@ -2539,10 +2539,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/get(api-insights/get-time-stats)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output { + public func apiInsightsGetTimeStats(_ input: Operations.ApiInsightsGetTimeStats.Input) async throws -> Operations.ApiInsightsGetTimeStats.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.id, + forOperation: Operations.ApiInsightsGetTimeStats.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/time-stats", @@ -2560,21 +2560,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "timestamp_increment", - value: input.query.timestamp_increment + value: input.query.timestampIncrement ) converter.setAcceptHeader( in: &request.headerFields, @@ -2586,7 +2586,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output.Ok.Body + let body: Operations.ApiInsightsGetTimeStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2596,7 +2596,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats.self, + Components.Schemas.ApiInsightsTimeStats.self, from: responseBody, transforming: { value in .json(value) @@ -2624,16 +2624,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/users/{user_id}/get(api-insights/get-time-stats-by-user)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output { + public func apiInsightsGetTimeStatsByUser(_ input: Operations.ApiInsightsGetTimeStatsByUser.Input) async throws -> Operations.ApiInsightsGetTimeStatsByUser.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.id, + forOperation: Operations.ApiInsightsGetTimeStatsByUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/time-stats/users/{}", parameters: [ input.path.org, - input.path.user_id + input.path.userId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2646,21 +2646,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "timestamp_increment", - value: input.query.timestamp_increment + value: input.query.timestampIncrement ) converter.setAcceptHeader( in: &request.headerFields, @@ -2672,7 +2672,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body + let body: Operations.ApiInsightsGetTimeStatsByUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2682,7 +2682,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats.self, + Components.Schemas.ApiInsightsTimeStats.self, from: responseBody, transforming: { value in .json(value) @@ -2710,17 +2710,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/get(api-insights/get-time-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output { + public func apiInsightsGetTimeStatsByActor(_ input: Operations.ApiInsightsGetTimeStatsByActor.Input) async throws -> Operations.ApiInsightsGetTimeStatsByActor.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.id, + forOperation: Operations.ApiInsightsGetTimeStatsByActor.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/time-stats/{}/{}", parameters: [ input.path.org, - input.path.actor_type, - input.path.actor_id + input.path.actorType, + input.path.actorId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2733,21 +2733,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "timestamp_increment", - value: input.query.timestamp_increment + value: input.query.timestampIncrement ) converter.setAcceptHeader( in: &request.headerFields, @@ -2759,7 +2759,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + let body: Operations.ApiInsightsGetTimeStatsByActor.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2769,7 +2769,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats.self, + Components.Schemas.ApiInsightsTimeStats.self, from: responseBody, transforming: { value in .json(value) @@ -2797,16 +2797,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/user-stats/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/user-stats/{user_id}/get(api-insights/get-user-stats)`. - public func api_hyphen_insights_sol_get_hyphen_user_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output { + public func apiInsightsGetUserStats(_ input: Operations.ApiInsightsGetUserStats.Input) async throws -> Operations.ApiInsightsGetUserStats.Output { try await client.send( input: input, - forOperation: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.id, + forOperation: Operations.ApiInsightsGetUserStats.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/insights/api/user-stats/{}", parameters: [ input.path.org, - input.path.user_id + input.path.userId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2819,14 +2819,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "min_timestamp", - value: input.query.min_timestamp + value: input.query.minTimestamp ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "max_timestamp", - value: input.query.max_timestamp + value: input.query.maxTimestamp ) try converter.setQueryItemAsURI( in: &request, @@ -2840,7 +2840,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2861,7 +2861,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "actor_name_substring", - value: input.query.actor_name_substring + value: input.query.actorNameSubstring ) converter.setAcceptHeader( in: &request.headerFields, @@ -2873,7 +2873,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output.Ok.Body + let body: Operations.ApiInsightsGetUserStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2883,7 +2883,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.api_hyphen_insights_hyphen_user_hyphen_stats.self, + Components.Schemas.ApiInsightsUserStats.self, from: responseBody, transforming: { value in .json(value) @@ -2916,10 +2916,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/installations`. /// - Remark: Generated from `#/paths//orgs/{org}/installations/get(orgs/list-app-installations)`. - public func orgs_sol_list_hyphen_app_hyphen_installations(_ input: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input) async throws -> Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output { + public func orgsListAppInstallations(_ input: Operations.OrgsListAppInstallations.Input) async throws -> Operations.OrgsListAppInstallations.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_app_hyphen_installations.id, + forOperation: Operations.OrgsListAppInstallations.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/installations", @@ -2937,7 +2937,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2955,13 +2955,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListAppInstallations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body + let body: Operations.OrgsListAppInstallations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2971,7 +2971,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body.jsonPayload.self, + Operations.OrgsListAppInstallations.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3005,10 +3005,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`. - public func orgs_sol_list_hyphen_pending_hyphen_invitations(_ input: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input) async throws -> Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output { + public func orgsListPendingInvitations(_ input: Operations.OrgsListPendingInvitations.Input) async throws -> Operations.OrgsListPendingInvitations.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.id, + forOperation: Operations.OrgsListPendingInvitations.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/invitations", @@ -3026,7 +3026,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3047,7 +3047,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "invitation_source", - value: input.query.invitation_source + value: input.query.invitationSource ) converter.setAcceptHeader( in: &request.headerFields, @@ -3058,13 +3058,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPendingInvitations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Body + let body: Operations.OrgsListPendingInvitations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3074,7 +3074,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_invitation].self, + [Components.Schemas.OrganizationInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -3089,7 +3089,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3099,7 +3099,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3130,10 +3130,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)`. - public func orgs_sol_create_hyphen_invitation(_ input: Operations.orgs_sol_create_hyphen_invitation.Input) async throws -> Operations.orgs_sol_create_hyphen_invitation.Output { + public func orgsCreateInvitation(_ input: Operations.OrgsCreateInvitation.Input) async throws -> Operations.OrgsCreateInvitation.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_invitation.id, + forOperation: Operations.OrgsCreateInvitation.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/invitations", @@ -3167,7 +3167,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_create_hyphen_invitation.Output.Created.Body + let body: Operations.OrgsCreateInvitation.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3177,7 +3177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_invitation.self, + Components.Schemas.OrganizationInvitation.self, from: responseBody, transforming: { value in .json(value) @@ -3189,7 +3189,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3199,7 +3199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3211,7 +3211,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3221,7 +3221,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3251,16 +3251,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)`. - public func orgs_sol_cancel_hyphen_invitation(_ input: Operations.orgs_sol_cancel_hyphen_invitation.Input) async throws -> Operations.orgs_sol_cancel_hyphen_invitation.Output { + public func orgsCancelInvitation(_ input: Operations.OrgsCancelInvitation.Input) async throws -> Operations.OrgsCancelInvitation.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_cancel_hyphen_invitation.id, + forOperation: Operations.OrgsCancelInvitation.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/invitations/{}", parameters: [ input.path.org, - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3280,7 +3280,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3290,7 +3290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3302,7 +3302,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3312,7 +3312,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3340,16 +3340,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/invitations/{invitation_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)`. - public func orgs_sol_list_hyphen_invitation_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output { + public func orgsListInvitationTeams(_ input: Operations.OrgsListInvitationTeams.Input) async throws -> Operations.OrgsListInvitationTeams.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.id, + forOperation: Operations.OrgsListInvitationTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/invitations/{}/teams", parameters: [ input.path.org, - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3362,7 +3362,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3380,13 +3380,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListInvitationTeams.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Body + let body: Operations.OrgsListInvitationTeams.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3396,7 +3396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -3411,7 +3411,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3421,7 +3421,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3449,10 +3449,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)`. - public func orgs_sol_list_hyphen_issue_hyphen_types(_ input: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input) async throws -> Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output { + public func orgsListIssueTypes(_ input: Operations.OrgsListIssueTypes.Input) async throws -> Operations.OrgsListIssueTypes.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_issue_hyphen_types.id, + forOperation: Operations.OrgsListIssueTypes.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/issue-types", @@ -3475,7 +3475,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output.Ok.Body + let body: Operations.OrgsListIssueTypes.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3485,7 +3485,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.issue_hyphen_type].self, + [Components.Schemas.IssueType].self, from: responseBody, transforming: { value in .json(value) @@ -3497,7 +3497,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3507,7 +3507,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3540,10 +3540,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)`. - public func orgs_sol_create_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output { + public func orgsCreateIssueType(_ input: Operations.OrgsCreateIssueType.Input) async throws -> Operations.OrgsCreateIssueType.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_issue_hyphen_type.id, + forOperation: Operations.OrgsCreateIssueType.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/issue-types", @@ -3575,7 +3575,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output.Ok.Body + let body: Operations.OrgsCreateIssueType.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3585,7 +3585,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_type.self, + Components.Schemas.IssueType.self, from: responseBody, transforming: { value in .json(value) @@ -3597,7 +3597,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3607,7 +3607,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3619,7 +3619,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3629,7 +3629,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3662,16 +3662,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)`. - public func orgs_sol_update_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output { + public func orgsUpdateIssueType(_ input: Operations.OrgsUpdateIssueType.Input) async throws -> Operations.OrgsUpdateIssueType.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_issue_hyphen_type.id, + forOperation: Operations.OrgsUpdateIssueType.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/issue-types/{}", parameters: [ input.path.org, - input.path.issue_type_id + input.path.issueTypeId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3698,7 +3698,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output.Ok.Body + let body: Operations.OrgsUpdateIssueType.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3708,7 +3708,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.issue_hyphen_type.self, + Components.Schemas.IssueType.self, from: responseBody, transforming: { value in .json(value) @@ -3720,7 +3720,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3730,7 +3730,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3742,7 +3742,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3752,7 +3752,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3785,16 +3785,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)`. - public func orgs_sol_delete_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Output { + public func orgsDeleteIssueType(_ input: Operations.OrgsDeleteIssueType.Input) async throws -> Operations.OrgsDeleteIssueType.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.id, + forOperation: Operations.OrgsDeleteIssueType.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/issue-types/{}", parameters: [ input.path.org, - input.path.issue_type_id + input.path.issueTypeId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3814,7 +3814,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3824,7 +3824,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3836,7 +3836,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3846,7 +3846,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3874,10 +3874,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)`. - public func orgs_sol_list_hyphen_members(_ input: Operations.orgs_sol_list_hyphen_members.Input) async throws -> Operations.orgs_sol_list_hyphen_members.Output { + public func orgsListMembers(_ input: Operations.OrgsListMembers.Input) async throws -> Operations.OrgsListMembers.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_members.id, + forOperation: Operations.OrgsListMembers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members", @@ -3909,7 +3909,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3927,13 +3927,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_members.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListMembers.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_members.Output.Ok.Body + let body: Operations.OrgsListMembers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3943,7 +3943,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -3958,7 +3958,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3968,7 +3968,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3996,10 +3996,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)`. - public func orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output { + public func orgsCheckMembershipForUser(_ input: Operations.OrgsCheckMembershipForUser.Input) async throws -> Operations.OrgsCheckMembershipForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsCheckMembershipForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}", @@ -4020,7 +4020,7 @@ public struct Client: APIProtocol { case 204: return .noContent(.init()) case 302: - let headers: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsCheckMembershipForUser.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -4046,10 +4046,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`. - public func orgs_sol_remove_hyphen_member(_ input: Operations.orgs_sol_remove_hyphen_member.Input) async throws -> Operations.orgs_sol_remove_hyphen_member.Output { + public func orgsRemoveMember(_ input: Operations.OrgsRemoveMember.Input) async throws -> Operations.OrgsRemoveMember.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_member.id, + forOperation: Operations.OrgsRemoveMember.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}", @@ -4075,7 +4075,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4085,7 +4085,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4113,10 +4113,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)`. - public func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output { + public func orgsGetMembershipForUser(_ input: Operations.OrgsGetMembershipForUser.Input) async throws -> Operations.OrgsGetMembershipForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsGetMembershipForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/memberships/{}", @@ -4140,7 +4140,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.OrgsGetMembershipForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4150,7 +4150,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_membership.self, + Components.Schemas.OrgMembership.self, from: responseBody, transforming: { value in .json(value) @@ -4162,7 +4162,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4172,7 +4172,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4184,7 +4184,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4194,7 +4194,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4230,10 +4230,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)`. - public func orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output { + public func orgsSetMembershipForUser(_ input: Operations.OrgsSetMembershipForUser.Input) async throws -> Operations.OrgsSetMembershipForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsSetMembershipForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/memberships/{}", @@ -4268,7 +4268,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.OrgsSetMembershipForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4278,7 +4278,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_membership.self, + Components.Schemas.OrgMembership.self, from: responseBody, transforming: { value in .json(value) @@ -4290,7 +4290,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4300,7 +4300,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4312,7 +4312,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4322,7 +4322,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4352,10 +4352,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`. - public func orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Output { + public func orgsRemoveMembershipForUser(_ input: Operations.OrgsRemoveMembershipForUser.Input) async throws -> Operations.OrgsRemoveMembershipForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsRemoveMembershipForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/memberships/{}", @@ -4381,7 +4381,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4391,7 +4391,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4403,7 +4403,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4413,7 +4413,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4448,10 +4448,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)`. - public func orgs_sol_list_hyphen_org_hyphen_roles(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output { + public func orgsListOrgRoles(_ input: Operations.OrgsListOrgRoles.Input) async throws -> Operations.OrgsListOrgRoles.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_org_hyphen_roles.id, + forOperation: Operations.OrgsListOrgRoles.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles", @@ -4474,7 +4474,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body + let body: Operations.OrgsListOrgRoles.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4484,7 +4484,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body.jsonPayload.self, + Operations.OrgsListOrgRoles.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4496,7 +4496,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4506,7 +4506,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4518,7 +4518,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4528,7 +4528,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4560,16 +4560,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)`. - public func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team(_ input: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Output { + public func orgsRevokeAllOrgRolesTeam(_ input: Operations.OrgsRevokeAllOrgRolesTeam.Input) async throws -> Operations.OrgsRevokeAllOrgRolesTeam.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.id, + forOperation: Operations.OrgsRevokeAllOrgRolesTeam.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4605,17 +4605,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)`. - public func orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output { + public func orgsAssignTeamToOrgRole(_ input: Operations.OrgsAssignTeamToOrgRole.Input) async throws -> Operations.OrgsAssignTeamToOrgRole.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.id, + forOperation: Operations.OrgsAssignTeamToOrgRole.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/teams/{}/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.role_id + input.path.teamSlug, + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4655,17 +4655,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)`. - public func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team(_ input: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Output { + public func orgsRevokeOrgRoleTeam(_ input: Operations.OrgsRevokeOrgRoleTeam.Input) async throws -> Operations.OrgsRevokeOrgRoleTeam.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.id, + forOperation: Operations.OrgsRevokeOrgRoleTeam.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/teams/{}/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.role_id + input.path.teamSlug, + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4701,10 +4701,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)`. - public func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user(_ input: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Output { + public func orgsRevokeAllOrgRolesUser(_ input: Operations.OrgsRevokeAllOrgRolesUser.Input) async throws -> Operations.OrgsRevokeAllOrgRolesUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.id, + forOperation: Operations.OrgsRevokeAllOrgRolesUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/users/{}", @@ -4746,17 +4746,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)`. - public func orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output { + public func orgsAssignUserToOrgRole(_ input: Operations.OrgsAssignUserToOrgRole.Input) async throws -> Operations.OrgsAssignUserToOrgRole.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.id, + forOperation: Operations.OrgsAssignUserToOrgRole.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/users/{}/{}", parameters: [ input.path.org, input.path.username, - input.path.role_id + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4796,17 +4796,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)`. - public func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user(_ input: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Output { + public func orgsRevokeOrgRoleUser(_ input: Operations.OrgsRevokeOrgRoleUser.Input) async throws -> Operations.OrgsRevokeOrgRoleUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.id, + forOperation: Operations.OrgsRevokeOrgRoleUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/users/{}/{}", parameters: [ input.path.org, input.path.username, - input.path.role_id + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4845,16 +4845,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)`. - public func orgs_sol_get_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_role.Output { + public func orgsGetOrgRole(_ input: Operations.OrgsGetOrgRole.Input) async throws -> Operations.OrgsGetOrgRole.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_org_hyphen_role.id, + forOperation: Operations.OrgsGetOrgRole.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/{}", parameters: [ input.path.org, - input.path.role_id + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4872,7 +4872,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_org_hyphen_role.Output.Ok.Body + let body: Operations.OrgsGetOrgRole.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4882,7 +4882,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.organization_hyphen_role.self, + Components.Schemas.OrganizationRole.self, from: responseBody, transforming: { value in .json(value) @@ -4894,7 +4894,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4904,7 +4904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4916,7 +4916,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4926,7 +4926,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4958,16 +4958,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)`. - public func orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output { + public func orgsListOrgRoleTeams(_ input: Operations.OrgsListOrgRoleTeams.Input) async throws -> Operations.OrgsListOrgRoleTeams.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.id, + forOperation: Operations.OrgsListOrgRoleTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/{}/teams", parameters: [ input.path.org, - input.path.role_id + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4980,7 +4980,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4998,13 +4998,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListOrgRoleTeams.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Body + let body: Operations.OrgsListOrgRoleTeams.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5014,7 +5014,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_role_hyphen_assignment].self, + [Components.Schemas.TeamRoleAssignment].self, from: responseBody, transforming: { value in .json(value) @@ -5053,16 +5053,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/users`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)`. - public func orgs_sol_list_hyphen_org_hyphen_role_hyphen_users(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output { + public func orgsListOrgRoleUsers(_ input: Operations.OrgsListOrgRoleUsers.Input) async throws -> Operations.OrgsListOrgRoleUsers.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.id, + forOperation: Operations.OrgsListOrgRoleUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/organization-roles/{}/users", parameters: [ input.path.org, - input.path.role_id + input.path.roleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5075,7 +5075,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5093,13 +5093,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListOrgRoleUsers.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Body + let body: Operations.OrgsListOrgRoleUsers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5109,7 +5109,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.user_hyphen_role_hyphen_assignment].self, + [Components.Schemas.UserRoleAssignment].self, from: responseBody, transforming: { value in .json(value) @@ -5144,10 +5144,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/outside_collaborators`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/get(orgs/list-outside-collaborators)`. - public func orgs_sol_list_hyphen_outside_hyphen_collaborators(_ input: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input) async throws -> Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output { + public func orgsListOutsideCollaborators(_ input: Operations.OrgsListOutsideCollaborators.Input) async throws -> Operations.OrgsListOutsideCollaborators.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.id, + forOperation: Operations.OrgsListOutsideCollaborators.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/outside_collaborators", @@ -5172,7 +5172,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5190,13 +5190,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListOutsideCollaborators.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Body + let body: Operations.OrgsListOutsideCollaborators.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5206,7 +5206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -5237,10 +5237,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)`. - public func orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator(_ input: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input) async throws -> Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output { + public func orgsConvertMemberToOutsideCollaborator(_ input: Operations.OrgsConvertMemberToOutsideCollaborator.Input) async throws -> Operations.OrgsConvertMemberToOutsideCollaborator.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.id, + forOperation: Operations.OrgsConvertMemberToOutsideCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/outside_collaborators/{}", @@ -5275,7 +5275,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body + let body: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5285,7 +5285,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body.jsonPayload.self, + Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -5301,7 +5301,7 @@ public struct Client: APIProtocol { return .forbidden(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5311,7 +5311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5339,10 +5339,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)`. - public func orgs_sol_remove_hyphen_outside_hyphen_collaborator(_ input: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input) async throws -> Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output { + public func orgsRemoveOutsideCollaborator(_ input: Operations.OrgsRemoveOutsideCollaborator.Input) async throws -> Operations.OrgsRemoveOutsideCollaborator.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.id, + forOperation: Operations.OrgsRemoveOutsideCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/outside_collaborators/{}", @@ -5368,7 +5368,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body + let body: Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5378,7 +5378,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body.jsonPayload.self, + Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -5408,10 +5408,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output { + public func orgsListPatGrantRequests(_ input: Operations.OrgsListPatGrantRequests.Input) async throws -> Operations.OrgsListPatGrantRequests.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.id, + forOperation: Operations.OrgsListPatGrantRequests.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-token-requests", @@ -5429,7 +5429,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5478,21 +5478,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "last_used_before", - value: input.query.last_used_before + value: input.query.lastUsedBefore ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "last_used_after", - value: input.query.last_used_after + value: input.query.lastUsedAfter ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "token_id", - value: input.query.token_id + value: input.query.tokenId ) converter.setAcceptHeader( in: &request.headerFields, @@ -5504,7 +5504,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5514,7 +5514,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5526,7 +5526,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5536,7 +5536,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5548,7 +5548,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5558,7 +5558,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5570,7 +5570,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5580,7 +5580,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5591,13 +5591,13 @@ public struct Client: APIProtocol { } return .forbidden(.init(body: body)) case 200: - let headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPatGrantRequests.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Body + let body: Operations.OrgsListPatGrantRequests.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5607,7 +5607,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request].self, + [Components.Schemas.OrganizationProgrammaticAccessGrantRequest].self, from: responseBody, transforming: { value in .json(value) @@ -5640,10 +5640,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)`. - public func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk(_ input: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Output { + public func orgsReviewPatGrantRequestsInBulk(_ input: Operations.OrgsReviewPatGrantRequestsInBulk.Input) async throws -> Operations.OrgsReviewPatGrantRequestsInBulk.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.id, + forOperation: Operations.OrgsReviewPatGrantRequestsInBulk.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-token-requests", @@ -5675,7 +5675,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5685,7 +5685,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5697,7 +5697,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5707,7 +5707,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5719,7 +5719,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5729,7 +5729,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5741,7 +5741,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5751,7 +5751,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5763,7 +5763,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5803,16 +5803,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)`. - public func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request(_ input: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Output { + public func orgsReviewPatGrantRequest(_ input: Operations.OrgsReviewPatGrantRequest.Input) async throws -> Operations.OrgsReviewPatGrantRequest.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.id, + forOperation: Operations.OrgsReviewPatGrantRequest.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-token-requests/{}", parameters: [ input.path.org, - input.path.pat_request_id + input.path.patRequestId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5839,7 +5839,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5849,7 +5849,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5861,7 +5861,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5871,7 +5871,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5883,7 +5883,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5893,7 +5893,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5905,7 +5905,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5915,7 +5915,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5947,16 +5947,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output { + public func orgsListPatGrantRequestRepositories(_ input: Operations.OrgsListPatGrantRequestRepositories.Input) async throws -> Operations.OrgsListPatGrantRequestRepositories.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.id, + forOperation: Operations.OrgsListPatGrantRequestRepositories.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-token-requests/{}/repositories", parameters: [ input.path.org, - input.path.pat_request_id + input.path.patRequestId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5969,7 +5969,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5988,7 +5988,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5998,7 +5998,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6010,7 +6010,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6020,7 +6020,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6032,7 +6032,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6042,7 +6042,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6053,13 +6053,13 @@ public struct Client: APIProtocol { } return .forbidden(.init(body: body)) case 200: - let headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Body + let body: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6069,7 +6069,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -6102,10 +6102,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)`. - public func orgs_sol_list_hyphen_pat_hyphen_grants(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output { + public func orgsListPatGrants(_ input: Operations.OrgsListPatGrants.Input) async throws -> Operations.OrgsListPatGrants.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.id, + forOperation: Operations.OrgsListPatGrants.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-tokens", @@ -6123,7 +6123,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -6172,21 +6172,21 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "last_used_before", - value: input.query.last_used_before + value: input.query.lastUsedBefore ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "last_used_after", - value: input.query.last_used_after + value: input.query.lastUsedAfter ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "token_id", - value: input.query.token_id + value: input.query.tokenId ) converter.setAcceptHeader( in: &request.headerFields, @@ -6198,7 +6198,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6208,7 +6208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6220,7 +6220,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6230,7 +6230,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -6242,7 +6242,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6252,7 +6252,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6264,7 +6264,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6274,7 +6274,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6285,13 +6285,13 @@ public struct Client: APIProtocol { } return .forbidden(.init(body: body)) case 200: - let headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPatGrants.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Body + let body: Operations.OrgsListPatGrants.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6301,7 +6301,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant].self, + [Components.Schemas.OrganizationProgrammaticAccessGrant].self, from: responseBody, transforming: { value in .json(value) @@ -6334,10 +6334,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)`. - public func orgs_sol_update_hyphen_pat_hyphen_accesses(_ input: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Output { + public func orgsUpdatePatAccesses(_ input: Operations.OrgsUpdatePatAccesses.Input) async throws -> Operations.OrgsUpdatePatAccesses.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.id, + forOperation: Operations.OrgsUpdatePatAccesses.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-tokens", @@ -6369,7 +6369,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6379,7 +6379,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6391,7 +6391,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6401,7 +6401,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6413,7 +6413,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6435,7 +6435,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6445,7 +6445,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6457,7 +6457,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6467,7 +6467,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -6497,16 +6497,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens/{pat_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)`. - public func orgs_sol_update_hyphen_pat_hyphen_access(_ input: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_access.Output { + public func orgsUpdatePatAccess(_ input: Operations.OrgsUpdatePatAccess.Input) async throws -> Operations.OrgsUpdatePatAccess.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_pat_hyphen_access.id, + forOperation: Operations.OrgsUpdatePatAccess.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-tokens/{}", parameters: [ input.path.org, - input.path.pat_id + input.path.patId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6533,7 +6533,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6543,7 +6543,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6555,7 +6555,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6565,7 +6565,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6579,7 +6579,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6589,7 +6589,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6601,7 +6601,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6611,7 +6611,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -6641,16 +6641,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output { + public func orgsListPatGrantRepositories(_ input: Operations.OrgsListPatGrantRepositories.Input) async throws -> Operations.OrgsListPatGrantRepositories.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.id, + forOperation: Operations.OrgsListPatGrantRepositories.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/personal-access-tokens/{}/repositories", parameters: [ input.path.org, - input.path.pat_id + input.path.patId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6663,7 +6663,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -6682,7 +6682,7 @@ public struct Client: APIProtocol { switch response.status.code { case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6692,7 +6692,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6704,7 +6704,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6714,7 +6714,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6726,7 +6726,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6736,7 +6736,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6747,13 +6747,13 @@ public struct Client: APIProtocol { } return .forbidden(.init(body: body)) case 200: - let headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPatGrantRepositories.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Body + let body: Operations.OrgsListPatGrantRepositories.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6763,7 +6763,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -6795,10 +6795,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)`. - public func orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties(_ input: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input) async throws -> Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output { + public func orgsGetAllCustomProperties(_ input: Operations.OrgsGetAllCustomProperties.Input) async throws -> Operations.OrgsGetAllCustomProperties.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.id, + forOperation: Operations.OrgsGetAllCustomProperties.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/schema", @@ -6821,7 +6821,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output.Ok.Body + let body: Operations.OrgsGetAllCustomProperties.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6831,7 +6831,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.custom_hyphen_property].self, + [Components.Schemas.CustomProperty].self, from: responseBody, transforming: { value in .json(value) @@ -6843,7 +6843,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6853,7 +6853,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6865,7 +6865,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6875,7 +6875,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6911,10 +6911,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output { + public func orgsCreateOrUpdateCustomProperties(_ input: Operations.OrgsCreateOrUpdateCustomProperties.Input) async throws -> Operations.OrgsCreateOrUpdateCustomProperties.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.id, + forOperation: Operations.OrgsCreateOrUpdateCustomProperties.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/schema", @@ -6946,7 +6946,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output.Ok.Body + let body: Operations.OrgsCreateOrUpdateCustomProperties.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6956,7 +6956,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.custom_hyphen_property].self, + [Components.Schemas.CustomProperty].self, from: responseBody, transforming: { value in .json(value) @@ -6968,7 +6968,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6978,7 +6978,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6990,7 +6990,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7000,7 +7000,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7029,16 +7029,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)`. - public func orgs_sol_get_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output { + public func orgsGetCustomProperty(_ input: Operations.OrgsGetCustomProperty.Input) async throws -> Operations.OrgsGetCustomProperty.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_custom_hyphen_property.id, + forOperation: Operations.OrgsGetCustomProperty.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/schema/{}", parameters: [ input.path.org, - input.path.custom_property_name + input.path.customPropertyName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7056,7 +7056,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output.Ok.Body + let body: Operations.OrgsGetCustomProperty.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7066,7 +7066,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.custom_hyphen_property.self, + Components.Schemas.CustomProperty.self, from: responseBody, transforming: { value in .json(value) @@ -7078,7 +7078,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7088,7 +7088,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7100,7 +7100,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7110,7 +7110,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7142,16 +7142,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output { + public func orgsCreateOrUpdateCustomProperty(_ input: Operations.OrgsCreateOrUpdateCustomProperty.Input) async throws -> Operations.OrgsCreateOrUpdateCustomProperty.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.id, + forOperation: Operations.OrgsCreateOrUpdateCustomProperty.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/schema/{}", parameters: [ input.path.org, - input.path.custom_property_name + input.path.customPropertyName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7178,7 +7178,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output.Ok.Body + let body: Operations.OrgsCreateOrUpdateCustomProperty.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7188,7 +7188,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.custom_hyphen_property.self, + Components.Schemas.CustomProperty.self, from: responseBody, transforming: { value in .json(value) @@ -7200,7 +7200,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7210,7 +7210,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7222,7 +7222,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7232,7 +7232,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7264,16 +7264,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)`. - public func orgs_sol_remove_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Output { + public func orgsRemoveCustomProperty(_ input: Operations.OrgsRemoveCustomProperty.Input) async throws -> Operations.OrgsRemoveCustomProperty.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.id, + forOperation: Operations.OrgsRemoveCustomProperty.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/schema/{}", parameters: [ input.path.org, - input.path.custom_property_name + input.path.customPropertyName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7293,7 +7293,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7303,7 +7303,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7315,7 +7315,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7325,7 +7325,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7354,10 +7354,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)`. - public func orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(_ input: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input) async throws -> Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output { + public func orgsListCustomPropertiesValuesForRepos(_ input: Operations.OrgsListCustomPropertiesValuesForRepos.Input) async throws -> Operations.OrgsListCustomPropertiesValuesForRepos.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.id, + forOperation: Operations.OrgsListCustomPropertiesValuesForRepos.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/values", @@ -7375,7 +7375,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7389,7 +7389,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "repository_query", - value: input.query.repository_query + value: input.query.repositoryQuery ) converter.setAcceptHeader( in: &request.headerFields, @@ -7400,13 +7400,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Body + let body: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7416,7 +7416,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.org_hyphen_repo_hyphen_custom_hyphen_property_hyphen_values].self, + [Components.Schemas.OrgRepoCustomPropertyValues].self, from: responseBody, transforming: { value in .json(value) @@ -7431,7 +7431,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7441,7 +7441,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7453,7 +7453,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7463,7 +7463,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7500,10 +7500,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output { + public func orgsCreateOrUpdateCustomPropertiesValuesForRepos(_ input: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input) async throws -> Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.id, + forOperation: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/properties/values", @@ -7537,7 +7537,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7547,7 +7547,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7559,7 +7559,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7569,7 +7569,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7581,7 +7581,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7591,7 +7591,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -7619,10 +7619,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/public_members`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/get(orgs/list-public-members)`. - public func orgs_sol_list_hyphen_public_hyphen_members(_ input: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input) async throws -> Operations.orgs_sol_list_hyphen_public_hyphen_members.Output { + public func orgsListPublicMembers(_ input: Operations.OrgsListPublicMembers.Input) async throws -> Operations.OrgsListPublicMembers.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_public_hyphen_members.id, + forOperation: Operations.OrgsListPublicMembers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/public_members", @@ -7640,7 +7640,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7658,13 +7658,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListPublicMembers.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Body + let body: Operations.OrgsListPublicMembers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7674,7 +7674,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -7705,10 +7705,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)`. - public func orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output { + public func orgsCheckPublicMembershipForUser(_ input: Operations.OrgsCheckPublicMembershipForUser.Input) async throws -> Operations.OrgsCheckPublicMembershipForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsCheckPublicMembershipForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/public_members/{}", @@ -7750,10 +7750,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)`. - public func orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsSetPublicMembershipForAuthenticatedUser(_ input: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsSetPublicMembershipForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsSetPublicMembershipForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/public_members/{}", @@ -7779,7 +7779,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7789,7 +7789,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7817,10 +7817,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)`. - public func orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsRemovePublicMembershipForAuthenticatedUser(_ input: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/public_members/{}", @@ -7858,16 +7858,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)`. - public func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output { + public func orgsGetOrgRulesetHistory(_ input: Operations.OrgsGetOrgRulesetHistory.Input) async throws -> Operations.OrgsGetOrgRulesetHistory.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.id, + forOperation: Operations.OrgsGetOrgRulesetHistory.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/{}/history", parameters: [ input.path.org, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7880,7 +7880,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7899,7 +7899,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output.Ok.Body + let body: Operations.OrgsGetOrgRulesetHistory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7909,7 +7909,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.ruleset_hyphen_version].self, + [Components.Schemas.RulesetVersion].self, from: responseBody, transforming: { value in .json(value) @@ -7921,7 +7921,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7931,7 +7931,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7943,7 +7943,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7953,7 +7953,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7981,17 +7981,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)`. - public func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output { + public func orgsGetOrgRulesetVersion(_ input: Operations.OrgsGetOrgRulesetVersion.Input) async throws -> Operations.OrgsGetOrgRulesetVersion.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.id, + forOperation: Operations.OrgsGetOrgRulesetVersion.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/{}/history/{}", parameters: [ input.path.org, - input.path.ruleset_id, - input.path.version_id + input.path.rulesetId, + input.path.versionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8009,7 +8009,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output.Ok.Body + let body: Operations.OrgsGetOrgRulesetVersion.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8019,7 +8019,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.self, + Components.Schemas.RulesetVersionWithState.self, from: responseBody, transforming: { value in .json(value) @@ -8031,7 +8031,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8041,7 +8041,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8053,7 +8053,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8063,7 +8063,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8093,10 +8093,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/security-managers`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/get(orgs/list-security-manager-teams)`. @available(*, deprecated) - public func orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output { + public func orgsListSecurityManagerTeams(_ input: Operations.OrgsListSecurityManagerTeams.Input) async throws -> Operations.OrgsListSecurityManagerTeams.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.id, + forOperation: Operations.OrgsListSecurityManagerTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/security-managers", @@ -8119,7 +8119,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output.Ok.Body + let body: Operations.OrgsListSecurityManagerTeams.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8129,7 +8129,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_simple].self, + [Components.Schemas.TeamSimple].self, from: responseBody, transforming: { value in .json(value) @@ -8159,16 +8159,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)`. @available(*, deprecated) - public func orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team(_ input: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input) async throws -> Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Output { + public func orgsAddSecurityManagerTeam(_ input: Operations.OrgsAddSecurityManagerTeam.Input) async throws -> Operations.OrgsAddSecurityManagerTeam.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.id, + forOperation: Operations.OrgsAddSecurityManagerTeam.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/security-managers/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8202,16 +8202,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)`. @available(*, deprecated) - public func orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team(_ input: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input) async throws -> Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Output { + public func orgsRemoveSecurityManagerTeam(_ input: Operations.OrgsRemoveSecurityManagerTeam.Input) async throws -> Operations.OrgsRemoveSecurityManagerTeam.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.id, + forOperation: Operations.OrgsRemoveSecurityManagerTeam.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/security-managers/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -8251,16 +8251,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/{security_product}/{enablement}`. /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)`. @available(*, deprecated) - public func orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos(_ input: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input) async throws -> Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output { + public func orgsEnableOrDisableSecurityProductOnAllOrgRepos(_ input: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input) async throws -> Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.id, + forOperation: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/{}/{}", parameters: [ input.path.org, - input.path.security_product, + input.path.securityProduct, input.path.enablement ] ) @@ -8306,10 +8306,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/memberships/orgs`. /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)`. - public func orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsListMembershipsForAuthenticatedUser(_ input: Operations.OrgsListMembershipsForAuthenticatedUser.Input) async throws -> Operations.OrgsListMembershipsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsListMembershipsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/memberships/orgs", @@ -8332,7 +8332,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8350,13 +8350,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8366,7 +8366,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.org_hyphen_membership].self, + [Components.Schemas.OrgMembership].self, from: responseBody, transforming: { value in .json(value) @@ -8383,7 +8383,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8393,7 +8393,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8405,7 +8405,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8415,7 +8415,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8427,7 +8427,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8437,7 +8437,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -8465,10 +8465,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)`. - public func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsGetMembershipForAuthenticatedUser(_ input: Operations.OrgsGetMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsGetMembershipForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsGetMembershipForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/memberships/orgs/{}", @@ -8491,7 +8491,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.OrgsGetMembershipForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8501,7 +8501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_membership.self, + Components.Schemas.OrgMembership.self, from: responseBody, transforming: { value in .json(value) @@ -8513,7 +8513,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8523,7 +8523,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8535,7 +8535,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8545,7 +8545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8573,10 +8573,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)`. - public func orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsUpdateMembershipForAuthenticatedUser(_ input: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsUpdateMembershipForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsUpdateMembershipForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/memberships/orgs/{}", @@ -8608,7 +8608,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8618,7 +8618,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_membership.self, + Components.Schemas.OrgMembership.self, from: responseBody, transforming: { value in .json(value) @@ -8630,7 +8630,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8640,7 +8640,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8652,7 +8652,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8662,7 +8662,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8674,7 +8674,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8684,7 +8684,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -8717,10 +8717,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/orgs`. /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`. - public func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func orgsListForAuthenticatedUser(_ input: Operations.OrgsListForAuthenticatedUser.Input) async throws -> Operations.OrgsListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.OrgsListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/orgs", @@ -8736,7 +8736,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8754,13 +8754,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.OrgsListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8770,7 +8770,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_simple].self, + [Components.Schemas.OrganizationSimple].self, from: responseBody, transforming: { value in .json(value) @@ -8787,7 +8787,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8797,7 +8797,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8809,7 +8809,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8819,7 +8819,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8849,10 +8849,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/orgs`. /// - Remark: Generated from `#/paths//users/{username}/orgs/get(orgs/list-for-user)`. - public func orgs_sol_list_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_user.Output { + public func orgsListForUser(_ input: Operations.OrgsListForUser.Input) async throws -> Operations.OrgsListForUser.Output { try await client.send( input: input, - forOperation: Operations.orgs_sol_list_hyphen_for_hyphen_user.id, + forOperation: Operations.OrgsListForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/orgs", @@ -8870,7 +8870,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8888,13 +8888,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.OrgsListForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.OrgsListForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8904,7 +8904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_simple].self, + [Components.Schemas.OrganizationSimple].self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index ec68e9f9b4..a540655a4b 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -20,7 +20,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /organizations`. /// - Remark: Generated from `#/paths//organizations/get(orgs/list)`. - func orgs_sol_list(_ input: Operations.orgs_sol_list.Input) async throws -> Operations.orgs_sol_list.Output + func orgsList(_ input: Operations.OrgsList.Input) async throws -> Operations.OrgsList.Output /// Get an organization /// /// Gets information about an organization. @@ -35,7 +35,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)`. - func orgs_sol_get(_ input: Operations.orgs_sol_get.Input) async throws -> Operations.orgs_sol_get.Output + func orgsGet(_ input: Operations.OrgsGet.Input) async throws -> Operations.OrgsGet.Output /// Update an organization /// /// > [!WARNING] @@ -52,7 +52,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)`. - func orgs_sol_update(_ input: Operations.orgs_sol_update.Input) async throws -> Operations.orgs_sol_update.Output + func orgsUpdate(_ input: Operations.OrgsUpdate.Input) async throws -> Operations.OrgsUpdate.Output /// Delete an organization /// /// Deletes an organization and all its repositories. @@ -65,7 +65,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)`. - func orgs_sol_delete(_ input: Operations.orgs_sol_delete.Input) async throws -> Operations.orgs_sol_delete.Output + func orgsDelete(_ input: Operations.OrgsDelete.Input) async throws -> Operations.OrgsDelete.Output /// List attestations /// /// List a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization. @@ -76,42 +76,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//orgs/{org}/attestations/{subject_digest}/get(orgs/list-attestations)`. - func orgs_sol_list_hyphen_attestations(_ input: Operations.orgs_sol_list_hyphen_attestations.Input) async throws -> Operations.orgs_sol_list_hyphen_attestations.Output + func orgsListAttestations(_ input: Operations.OrgsListAttestations.Input) async throws -> Operations.OrgsListAttestations.Output /// List users blocked by an organization /// /// List the users blocked by an organization. /// /// - Remark: HTTP `GET /orgs/{org}/blocks`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/get(orgs/list-blocked-users)`. - func orgs_sol_list_hyphen_blocked_hyphen_users(_ input: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input) async throws -> Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output + func orgsListBlockedUsers(_ input: Operations.OrgsListBlockedUsers.Input) async throws -> Operations.OrgsListBlockedUsers.Output /// Check if a user is blocked by an organization /// /// Returns a 204 if the given user is blocked by the given organization. Returns a 404 if the organization is not blocking the user, or if the user account has been identified as spam by GitHub. /// /// - Remark: HTTP `GET /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)`. - func orgs_sol_check_hyphen_blocked_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output + func orgsCheckBlockedUser(_ input: Operations.OrgsCheckBlockedUser.Input) async throws -> Operations.OrgsCheckBlockedUser.Output /// Block a user from an organization /// /// Blocks the given user on behalf of the specified organization and returns a 204. If the organization cannot block the given user a 422 is returned. /// /// - Remark: HTTP `PUT /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)`. - func orgs_sol_block_hyphen_user(_ input: Operations.orgs_sol_block_hyphen_user.Input) async throws -> Operations.orgs_sol_block_hyphen_user.Output + func orgsBlockUser(_ input: Operations.OrgsBlockUser.Input) async throws -> Operations.OrgsBlockUser.Output /// Unblock a user from an organization /// /// Unblocks the given user on behalf of the specified organization. /// /// - Remark: HTTP `DELETE /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)`. - func orgs_sol_unblock_hyphen_user(_ input: Operations.orgs_sol_unblock_hyphen_user.Input) async throws -> Operations.orgs_sol_unblock_hyphen_user.Output + func orgsUnblockUser(_ input: Operations.OrgsUnblockUser.Input) async throws -> Operations.OrgsUnblockUser.Output /// List failed organization invitations /// /// The return hash contains `failed_at` and `failed_reason` fields which represent the time at which the invitation failed and the reason for the failure. /// /// - Remark: HTTP `GET /orgs/{org}/failed_invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)`. - func orgs_sol_list_hyphen_failed_hyphen_invitations(_ input: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input) async throws -> Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output + func orgsListFailedInvitations(_ input: Operations.OrgsListFailedInvitations.Input) async throws -> Operations.OrgsListFailedInvitations.Output /// List organization webhooks /// /// List webhooks for an organization. @@ -123,7 +123,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)`. - func orgs_sol_list_hyphen_webhooks(_ input: Operations.orgs_sol_list_hyphen_webhooks.Input) async throws -> Operations.orgs_sol_list_hyphen_webhooks.Output + func orgsListWebhooks(_ input: Operations.OrgsListWebhooks.Input) async throws -> Operations.OrgsListWebhooks.Output /// Create an organization webhook /// /// Create a hook that posts payloads in JSON format. @@ -135,7 +135,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)`. - func orgs_sol_create_hyphen_webhook(_ input: Operations.orgs_sol_create_hyphen_webhook.Input) async throws -> Operations.orgs_sol_create_hyphen_webhook.Output + func orgsCreateWebhook(_ input: Operations.OrgsCreateWebhook.Input) async throws -> Operations.OrgsCreateWebhook.Output /// Get an organization webhook /// /// Returns a webhook configured in an organization. To get only the webhook @@ -148,7 +148,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)`. - func orgs_sol_get_hyphen_webhook(_ input: Operations.orgs_sol_get_hyphen_webhook.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook.Output + func orgsGetWebhook(_ input: Operations.OrgsGetWebhook.Input) async throws -> Operations.OrgsGetWebhook.Output /// Update an organization webhook /// /// Updates a webhook configured in an organization. When you update a webhook, @@ -164,7 +164,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)`. - func orgs_sol_update_hyphen_webhook(_ input: Operations.orgs_sol_update_hyphen_webhook.Input) async throws -> Operations.orgs_sol_update_hyphen_webhook.Output + func orgsUpdateWebhook(_ input: Operations.OrgsUpdateWebhook.Input) async throws -> Operations.OrgsUpdateWebhook.Output /// Delete an organization webhook /// /// Delete a webhook for an organization. @@ -176,7 +176,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)`. - func orgs_sol_delete_hyphen_webhook(_ input: Operations.orgs_sol_delete_hyphen_webhook.Input) async throws -> Operations.orgs_sol_delete_hyphen_webhook.Output + func orgsDeleteWebhook(_ input: Operations.OrgsDeleteWebhook.Input) async throws -> Operations.OrgsDeleteWebhook.Output /// Get a webhook configuration for an organization /// /// Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook)." @@ -188,7 +188,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)`. - func orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(_ input: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output + func orgsGetWebhookConfigForOrg(_ input: Operations.OrgsGetWebhookConfigForOrg.Input) async throws -> Operations.OrgsGetWebhookConfigForOrg.Output /// Update a webhook configuration for an organization /// /// Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook)." @@ -200,7 +200,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/patch(orgs/update-webhook-config-for-org)`. - func orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(_ input: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input) async throws -> Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output + func orgsUpdateWebhookConfigForOrg(_ input: Operations.OrgsUpdateWebhookConfigForOrg.Input) async throws -> Operations.OrgsUpdateWebhookConfigForOrg.Output /// List deliveries for an organization webhook /// /// Returns a list of webhook deliveries for a webhook configured in an organization. @@ -212,7 +212,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)`. - func orgs_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output + func orgsListWebhookDeliveries(_ input: Operations.OrgsListWebhookDeliveries.Input) async throws -> Operations.OrgsListWebhookDeliveries.Output /// Get a webhook delivery for an organization webhook /// /// Returns a delivery for a webhook configured in an organization. @@ -224,7 +224,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)`. - func orgs_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output + func orgsGetWebhookDelivery(_ input: Operations.OrgsGetWebhookDelivery.Input) async throws -> Operations.OrgsGetWebhookDelivery.Output /// Redeliver a delivery for an organization webhook /// /// Redeliver a delivery for a webhook configured in an organization. @@ -236,7 +236,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)`. - func orgs_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Output + func orgsRedeliverWebhookDelivery(_ input: Operations.OrgsRedeliverWebhookDelivery.Input) async throws -> Operations.OrgsRedeliverWebhookDelivery.Output /// Ping an organization webhook /// /// This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) @@ -249,70 +249,70 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)`. - func orgs_sol_ping_hyphen_webhook(_ input: Operations.orgs_sol_ping_hyphen_webhook.Input) async throws -> Operations.orgs_sol_ping_hyphen_webhook.Output + func orgsPingWebhook(_ input: Operations.OrgsPingWebhook.Input) async throws -> Operations.OrgsPingWebhook.Output /// Get route stats by actor /// /// Get API request count statistics for an actor broken down by route within a specified time frame. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/get(api-insights/get-route-stats-by-actor)`. - func api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output + func apiInsightsGetRouteStatsByActor(_ input: Operations.ApiInsightsGetRouteStatsByActor.Input) async throws -> Operations.ApiInsightsGetRouteStatsByActor.Output /// Get subject stats /// /// Get API request statistics for all subjects within an organization within a specified time frame. Subjects can be users or GitHub Apps. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/subject-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/subject-stats/get(api-insights/get-subject-stats)`. - func api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output + func apiInsightsGetSubjectStats(_ input: Operations.ApiInsightsGetSubjectStats.Input) async throws -> Operations.ApiInsightsGetSubjectStats.Output /// Get summary stats /// /// Get overall statistics of API requests made within an organization by all users and apps within a specified time frame. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/get(api-insights/get-summary-stats)`. - func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output + func apiInsightsGetSummaryStats(_ input: Operations.ApiInsightsGetSummaryStats.Input) async throws -> Operations.ApiInsightsGetSummaryStats.Output /// Get summary stats by user /// /// Get overall statistics of API requests within the organization for a user. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/users/{user_id}/get(api-insights/get-summary-stats-by-user)`. - func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output + func apiInsightsGetSummaryStatsByUser(_ input: Operations.ApiInsightsGetSummaryStatsByUser.Input) async throws -> Operations.ApiInsightsGetSummaryStatsByUser.Output /// Get summary stats by actor /// /// Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/get(api-insights/get-summary-stats-by-actor)`. - func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output + func apiInsightsGetSummaryStatsByActor(_ input: Operations.ApiInsightsGetSummaryStatsByActor.Input) async throws -> Operations.ApiInsightsGetSummaryStatsByActor.Output /// Get time stats /// /// Get the number of API requests and rate-limited requests made within an organization over a specified time period. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/get(api-insights/get-time-stats)`. - func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output + func apiInsightsGetTimeStats(_ input: Operations.ApiInsightsGetTimeStats.Input) async throws -> Operations.ApiInsightsGetTimeStats.Output /// Get time stats by user /// /// Get the number of API requests and rate-limited requests made within an organization by a specific user over a specified time period. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/users/{user_id}/get(api-insights/get-time-stats-by-user)`. - func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output + func apiInsightsGetTimeStatsByUser(_ input: Operations.ApiInsightsGetTimeStatsByUser.Input) async throws -> Operations.ApiInsightsGetTimeStatsByUser.Output /// Get time stats by actor /// /// Get the number of API requests and rate-limited requests made within an organization by a specific actor within a specified time period. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/get(api-insights/get-time-stats-by-actor)`. - func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor(_ input: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output + func apiInsightsGetTimeStatsByActor(_ input: Operations.ApiInsightsGetTimeStatsByActor.Input) async throws -> Operations.ApiInsightsGetTimeStatsByActor.Output /// Get user stats /// /// Get API usage statistics within an organization for a user broken down by the type of access. /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/user-stats/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/user-stats/{user_id}/get(api-insights/get-user-stats)`. - func api_hyphen_insights_sol_get_hyphen_user_hyphen_stats(_ input: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output + func apiInsightsGetUserStats(_ input: Operations.ApiInsightsGetUserStats.Input) async throws -> Operations.ApiInsightsGetUserStats.Output /// List app installations for an organization /// /// Lists all GitHub Apps in an organization. The installation count includes @@ -324,7 +324,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/installations`. /// - Remark: Generated from `#/paths//orgs/{org}/installations/get(orgs/list-app-installations)`. - func orgs_sol_list_hyphen_app_hyphen_installations(_ input: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input) async throws -> Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output + func orgsListAppInstallations(_ input: Operations.OrgsListAppInstallations.Input) async throws -> Operations.OrgsListAppInstallations.Output /// List pending organization invitations /// /// The return hash contains a `role` field which refers to the Organization @@ -334,7 +334,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`. - func orgs_sol_list_hyphen_pending_hyphen_invitations(_ input: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input) async throws -> Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output + func orgsListPendingInvitations(_ input: Operations.OrgsListPendingInvitations.Input) async throws -> Operations.OrgsListPendingInvitations.Output /// Create an organization invitation /// /// Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. @@ -344,7 +344,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)`. - func orgs_sol_create_hyphen_invitation(_ input: Operations.orgs_sol_create_hyphen_invitation.Input) async throws -> Operations.orgs_sol_create_hyphen_invitation.Output + func orgsCreateInvitation(_ input: Operations.OrgsCreateInvitation.Input) async throws -> Operations.OrgsCreateInvitation.Output /// Cancel an organization invitation /// /// Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner. @@ -353,21 +353,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)`. - func orgs_sol_cancel_hyphen_invitation(_ input: Operations.orgs_sol_cancel_hyphen_invitation.Input) async throws -> Operations.orgs_sol_cancel_hyphen_invitation.Output + func orgsCancelInvitation(_ input: Operations.OrgsCancelInvitation.Input) async throws -> Operations.OrgsCancelInvitation.Output /// List organization invitation teams /// /// List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. /// /// - Remark: HTTP `GET /orgs/{org}/invitations/{invitation_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)`. - func orgs_sol_list_hyphen_invitation_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output + func orgsListInvitationTeams(_ input: Operations.OrgsListInvitationTeams.Input) async throws -> Operations.OrgsListInvitationTeams.Output /// List issue types for an organization /// /// Lists all issue types for an organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint. /// /// - Remark: HTTP `GET /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)`. - func orgs_sol_list_hyphen_issue_hyphen_types(_ input: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input) async throws -> Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output + func orgsListIssueTypes(_ input: Operations.OrgsListIssueTypes.Input) async throws -> Operations.OrgsListIssueTypes.Output /// Create issue type for an organization /// /// Create a new issue type for an organization. @@ -379,7 +379,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)`. - func orgs_sol_create_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output + func orgsCreateIssueType(_ input: Operations.OrgsCreateIssueType.Input) async throws -> Operations.OrgsCreateIssueType.Output /// Update issue type for an organization /// /// Updates an issue type for an organization. @@ -391,7 +391,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)`. - func orgs_sol_update_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output + func orgsUpdateIssueType(_ input: Operations.OrgsUpdateIssueType.Input) async throws -> Operations.OrgsUpdateIssueType.Output /// Delete issue type for an organization /// /// Deletes an issue type for an organization. @@ -403,35 +403,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)`. - func orgs_sol_delete_hyphen_issue_hyphen_type(_ input: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input) async throws -> Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Output + func orgsDeleteIssueType(_ input: Operations.OrgsDeleteIssueType.Input) async throws -> Operations.OrgsDeleteIssueType.Output /// List organization members /// /// List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. /// /// - Remark: HTTP `GET /orgs/{org}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)`. - func orgs_sol_list_hyphen_members(_ input: Operations.orgs_sol_list_hyphen_members.Input) async throws -> Operations.orgs_sol_list_hyphen_members.Output + func orgsListMembers(_ input: Operations.OrgsListMembers.Input) async throws -> Operations.OrgsListMembers.Output /// Check organization membership for a user /// /// Check if a user is, publicly or privately, a member of the organization. /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)`. - func orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output + func orgsCheckMembershipForUser(_ input: Operations.OrgsCheckMembershipForUser.Input) async throws -> Operations.OrgsCheckMembershipForUser.Output /// Remove an organization member /// /// Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`. - func orgs_sol_remove_hyphen_member(_ input: Operations.orgs_sol_remove_hyphen_member.Input) async throws -> Operations.orgs_sol_remove_hyphen_member.Output + func orgsRemoveMember(_ input: Operations.OrgsRemoveMember.Input) async throws -> Operations.OrgsRemoveMember.Output /// Get organization membership for a user /// /// In order to get a user's membership with an organization, the authenticated user must be an organization member. The `state` parameter in the response can be used to identify the user's membership status. /// /// - Remark: HTTP `GET /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)`. - func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output + func orgsGetMembershipForUser(_ input: Operations.OrgsGetMembershipForUser.Input) async throws -> Operations.OrgsGetMembershipForUser.Output /// Set organization membership for a user /// /// Only authenticated organization owners can add a member to the organization or update the member's role. @@ -446,7 +446,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)`. - func orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output + func orgsSetMembershipForUser(_ input: Operations.OrgsSetMembershipForUser.Input) async throws -> Operations.OrgsSetMembershipForUser.Output /// Remove organization membership for a user /// /// In order to remove a user's membership with an organization, the authenticated user must be an organization owner. @@ -455,7 +455,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`. - func orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Output + func orgsRemoveMembershipForUser(_ input: Operations.OrgsRemoveMembershipForUser.Input) async throws -> Operations.OrgsRemoveMembershipForUser.Output /// Get all organization roles for an organization /// /// Lists the organization roles available in this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -469,7 +469,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)`. - func orgs_sol_list_hyphen_org_hyphen_roles(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output + func orgsListOrgRoles(_ input: Operations.OrgsListOrgRoles.Input) async throws -> Operations.OrgsListOrgRoles.Output /// Remove all organization roles for a team /// /// Removes all assigned organization roles from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -480,7 +480,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)`. - func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team(_ input: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Output + func orgsRevokeAllOrgRolesTeam(_ input: Operations.OrgsRevokeAllOrgRolesTeam.Input) async throws -> Operations.OrgsRevokeAllOrgRolesTeam.Output /// Assign an organization role to a team /// /// Assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -491,7 +491,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)`. - func orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output + func orgsAssignTeamToOrgRole(_ input: Operations.OrgsAssignTeamToOrgRole.Input) async throws -> Operations.OrgsAssignTeamToOrgRole.Output /// Remove an organization role from a team /// /// Removes an organization role from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -502,7 +502,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)`. - func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team(_ input: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Output + func orgsRevokeOrgRoleTeam(_ input: Operations.OrgsRevokeOrgRoleTeam.Input) async throws -> Operations.OrgsRevokeOrgRoleTeam.Output /// Remove all organization roles for a user /// /// Revokes all assigned organization roles from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -513,7 +513,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)`. - func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user(_ input: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Output + func orgsRevokeAllOrgRolesUser(_ input: Operations.OrgsRevokeAllOrgRolesUser.Input) async throws -> Operations.OrgsRevokeAllOrgRolesUser.Output /// Assign an organization role to a user /// /// Assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -524,7 +524,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)`. - func orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output + func orgsAssignUserToOrgRole(_ input: Operations.OrgsAssignUserToOrgRole.Input) async throws -> Operations.OrgsAssignUserToOrgRole.Output /// Remove an organization role from a user /// /// Remove an organization role from a user. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -535,7 +535,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)`. - func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user(_ input: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Output + func orgsRevokeOrgRoleUser(_ input: Operations.OrgsRevokeOrgRoleUser.Input) async throws -> Operations.OrgsRevokeOrgRoleUser.Output /// Get an organization role /// /// Gets an organization role that is available to this organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -549,7 +549,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)`. - func orgs_sol_get_hyphen_org_hyphen_role(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_role.Output + func orgsGetOrgRole(_ input: Operations.OrgsGetOrgRole.Input) async throws -> Operations.OrgsGetOrgRole.Output /// List teams that are assigned to an organization role /// /// Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -560,7 +560,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)`. - func orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output + func orgsListOrgRoleTeams(_ input: Operations.OrgsListOrgRoleTeams.Input) async throws -> Operations.OrgsListOrgRoleTeams.Output /// List users that are assigned to an organization role /// /// Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)." @@ -571,28 +571,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/users`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)`. - func orgs_sol_list_hyphen_org_hyphen_role_hyphen_users(_ input: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output + func orgsListOrgRoleUsers(_ input: Operations.OrgsListOrgRoleUsers.Input) async throws -> Operations.OrgsListOrgRoleUsers.Output /// List outside collaborators for an organization /// /// List all users who are outside collaborators of an organization. /// /// - Remark: HTTP `GET /orgs/{org}/outside_collaborators`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/get(orgs/list-outside-collaborators)`. - func orgs_sol_list_hyphen_outside_hyphen_collaborators(_ input: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input) async throws -> Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output + func orgsListOutsideCollaborators(_ input: Operations.OrgsListOutsideCollaborators.Input) async throws -> Operations.OrgsListOutsideCollaborators.Output /// Convert an organization member to outside collaborator /// /// When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://docs.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". Converting an organization member to an outside collaborator may be restricted by enterprise administrators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)." /// /// - Remark: HTTP `PUT /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)`. - func orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator(_ input: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input) async throws -> Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output + func orgsConvertMemberToOutsideCollaborator(_ input: Operations.OrgsConvertMemberToOutsideCollaborator.Input) async throws -> Operations.OrgsConvertMemberToOutsideCollaborator.Output /// Remove outside collaborator from an organization /// /// Removing a user from this list will remove them from all the organization's repositories. /// /// - Remark: HTTP `DELETE /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)`. - func orgs_sol_remove_hyphen_outside_hyphen_collaborator(_ input: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input) async throws -> Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output + func orgsRemoveOutsideCollaborator(_ input: Operations.OrgsRemoveOutsideCollaborator.Input) async throws -> Operations.OrgsRemoveOutsideCollaborator.Output /// List requests to access organization resources with fine-grained personal access tokens /// /// Lists requests from organization members to access organization resources with a fine-grained personal access token. @@ -601,7 +601,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)`. - func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output + func orgsListPatGrantRequests(_ input: Operations.OrgsListPatGrantRequests.Input) async throws -> Operations.OrgsListPatGrantRequests.Output /// Review requests to access organization resources with fine-grained personal access tokens /// /// Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token. @@ -610,7 +610,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)`. - func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk(_ input: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Output + func orgsReviewPatGrantRequestsInBulk(_ input: Operations.OrgsReviewPatGrantRequestsInBulk.Input) async throws -> Operations.OrgsReviewPatGrantRequestsInBulk.Output /// Review a request to access organization resources with a fine-grained personal access token /// /// Approves or denies a pending request to access organization resources via a fine-grained personal access token. @@ -619,7 +619,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)`. - func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request(_ input: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Output + func orgsReviewPatGrantRequest(_ input: Operations.OrgsReviewPatGrantRequest.Input) async throws -> Operations.OrgsReviewPatGrantRequest.Output /// List repositories requested to be accessed by a fine-grained personal access token /// /// Lists the repositories a fine-grained personal access token request is requesting access to. @@ -628,7 +628,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)`. - func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output + func orgsListPatGrantRequestRepositories(_ input: Operations.OrgsListPatGrantRequestRepositories.Input) async throws -> Operations.OrgsListPatGrantRequestRepositories.Output /// List fine-grained personal access tokens with access to organization resources /// /// Lists approved fine-grained personal access tokens owned by organization members that can access organization resources. @@ -637,7 +637,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)`. - func orgs_sol_list_hyphen_pat_hyphen_grants(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output + func orgsListPatGrants(_ input: Operations.OrgsListPatGrants.Input) async throws -> Operations.OrgsListPatGrants.Output /// Update the access to organization resources via fine-grained personal access tokens /// /// Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access. @@ -646,7 +646,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)`. - func orgs_sol_update_hyphen_pat_hyphen_accesses(_ input: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Output + func orgsUpdatePatAccesses(_ input: Operations.OrgsUpdatePatAccesses.Input) async throws -> Operations.OrgsUpdatePatAccesses.Output /// Update the access a fine-grained personal access token has to organization resources /// /// Updates the access an organization member has to organization resources via a fine-grained personal access token. Limited to revoking the token's existing access. Limited to revoking a token's existing access. @@ -655,7 +655,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens/{pat_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)`. - func orgs_sol_update_hyphen_pat_hyphen_access(_ input: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_access.Output + func orgsUpdatePatAccess(_ input: Operations.OrgsUpdatePatAccess.Input) async throws -> Operations.OrgsUpdatePatAccess.Output /// List repositories a fine-grained personal access token has access to /// /// Lists the repositories a fine-grained personal access token has access to. @@ -664,7 +664,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)`. - func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories(_ input: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output + func orgsListPatGrantRepositories(_ input: Operations.OrgsListPatGrantRepositories.Input) async throws -> Operations.OrgsListPatGrantRepositories.Output /// Get all custom properties for an organization /// /// Gets all custom properties defined for an organization. @@ -672,7 +672,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)`. - func orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties(_ input: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input) async throws -> Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output + func orgsGetAllCustomProperties(_ input: Operations.OrgsGetAllCustomProperties.Input) async throws -> Operations.OrgsGetAllCustomProperties.Output /// Create or update custom properties for an organization /// /// Creates new or updates existing custom properties defined for an organization in a batch. @@ -687,7 +687,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)`. - func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output + func orgsCreateOrUpdateCustomProperties(_ input: Operations.OrgsCreateOrUpdateCustomProperties.Input) async throws -> Operations.OrgsCreateOrUpdateCustomProperties.Output /// Get a custom property for an organization /// /// Gets a custom property that is defined for an organization. @@ -695,7 +695,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)`. - func orgs_sol_get_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output + func orgsGetCustomProperty(_ input: Operations.OrgsGetCustomProperty.Input) async throws -> Operations.OrgsGetCustomProperty.Output /// Create or update a custom property for an organization /// /// Creates a new or updates an existing custom property that is defined for an organization. @@ -706,7 +706,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)`. - func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output + func orgsCreateOrUpdateCustomProperty(_ input: Operations.OrgsCreateOrUpdateCustomProperty.Input) async throws -> Operations.OrgsCreateOrUpdateCustomProperty.Output /// Remove a custom property for an organization /// /// Removes a custom property that is defined for an organization. @@ -717,7 +717,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)`. - func orgs_sol_remove_hyphen_custom_hyphen_property(_ input: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input) async throws -> Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Output + func orgsRemoveCustomProperty(_ input: Operations.OrgsRemoveCustomProperty.Input) async throws -> Operations.OrgsRemoveCustomProperty.Output /// List custom property values for organization repositories /// /// Lists organization repositories with all of their custom property values. @@ -725,7 +725,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)`. - func orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(_ input: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input) async throws -> Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output + func orgsListCustomPropertiesValuesForRepos(_ input: Operations.OrgsListCustomPropertiesValuesForRepos.Input) async throws -> Operations.OrgsListCustomPropertiesValuesForRepos.Output /// Create or update custom property values for organization repositories /// /// Create new or update existing custom property values for repositories in a batch that belong to an organization. @@ -741,21 +741,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)`. - func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(_ input: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output + func orgsCreateOrUpdateCustomPropertiesValuesForRepos(_ input: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input) async throws -> Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Output /// List public organization members /// /// Members of an organization can choose to have their membership publicized or not. /// /// - Remark: HTTP `GET /orgs/{org}/public_members`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/get(orgs/list-public-members)`. - func orgs_sol_list_hyphen_public_hyphen_members(_ input: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input) async throws -> Operations.orgs_sol_list_hyphen_public_hyphen_members.Output + func orgsListPublicMembers(_ input: Operations.OrgsListPublicMembers.Input) async throws -> Operations.OrgsListPublicMembers.Output /// Check public organization membership for a user /// /// Check if the provided user is a public member of the organization. /// /// - Remark: HTTP `GET /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)`. - func orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output + func orgsCheckPublicMembershipForUser(_ input: Operations.OrgsCheckPublicMembershipForUser.Input) async throws -> Operations.OrgsCheckPublicMembershipForUser.Output /// Set public organization membership for the authenticated user /// /// The user can publicize their own membership. (A user cannot publicize the membership for another user.) @@ -764,28 +764,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)`. - func orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsSetPublicMembershipForAuthenticatedUser(_ input: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsSetPublicMembershipForAuthenticatedUser.Output /// Remove public organization membership for the authenticated user /// /// Removes the public membership for the authenticated user from the specified organization, unless public visibility is enforced by default. /// /// - Remark: HTTP `DELETE /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)`. - func orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsRemovePublicMembershipForAuthenticatedUser(_ input: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Output /// Get organization ruleset history /// /// Get the history of an organization ruleset. /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)`. - func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output + func orgsGetOrgRulesetHistory(_ input: Operations.OrgsGetOrgRulesetHistory.Input) async throws -> Operations.OrgsGetOrgRulesetHistory.Output /// Get organization ruleset version /// /// Get a version of an organization ruleset. /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)`. - func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version(_ input: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output + func orgsGetOrgRulesetVersion(_ input: Operations.OrgsGetOrgRulesetVersion.Input) async throws -> Operations.OrgsGetOrgRulesetVersion.Output /// List security manager teams /// /// > [!WARNING] @@ -794,7 +794,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /orgs/{org}/security-managers`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/get(orgs/list-security-manager-teams)`. @available(*, deprecated) - func orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams(_ input: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input) async throws -> Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output + func orgsListSecurityManagerTeams(_ input: Operations.OrgsListSecurityManagerTeams.Input) async throws -> Operations.OrgsListSecurityManagerTeams.Output /// Add a security manager team /// /// > [!WARNING] @@ -803,7 +803,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)`. @available(*, deprecated) - func orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team(_ input: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input) async throws -> Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Output + func orgsAddSecurityManagerTeam(_ input: Operations.OrgsAddSecurityManagerTeam.Input) async throws -> Operations.OrgsAddSecurityManagerTeam.Output /// Remove a security manager team /// /// > [!WARNING] @@ -812,7 +812,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)`. @available(*, deprecated) - func orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team(_ input: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input) async throws -> Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Output + func orgsRemoveSecurityManagerTeam(_ input: Operations.OrgsRemoveSecurityManagerTeam.Input) async throws -> Operations.OrgsRemoveSecurityManagerTeam.Output /// Enable or disable a security feature for an organization /// /// > [!WARNING] @@ -827,28 +827,28 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /orgs/{org}/{security_product}/{enablement}`. /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)`. @available(*, deprecated) - func orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos(_ input: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input) async throws -> Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output + func orgsEnableOrDisableSecurityProductOnAllOrgRepos(_ input: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input) async throws -> Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output /// List organization memberships for the authenticated user /// /// Lists all of the authenticated user's organization memberships. /// /// - Remark: HTTP `GET /user/memberships/orgs`. /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)`. - func orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsListMembershipsForAuthenticatedUser(_ input: Operations.OrgsListMembershipsForAuthenticatedUser.Input) async throws -> Operations.OrgsListMembershipsForAuthenticatedUser.Output /// Get an organization membership for the authenticated user /// /// If the authenticated user is an active or pending member of the organization, this endpoint will return the user's membership. If the authenticated user is not affiliated with the organization, a `404` is returned. This endpoint will return a `403` if the request is made by a GitHub App that is blocked by the organization. /// /// - Remark: HTTP `GET /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)`. - func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsGetMembershipForAuthenticatedUser(_ input: Operations.OrgsGetMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsGetMembershipForAuthenticatedUser.Output /// Update an organization membership for the authenticated user /// /// Converts the authenticated user to an active member of the organization, if that user has a pending invitation from the organization. /// /// - Remark: HTTP `PATCH /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)`. - func orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsUpdateMembershipForAuthenticatedUser(_ input: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input) async throws -> Operations.OrgsUpdateMembershipForAuthenticatedUser.Output /// List organizations for the authenticated user /// /// List organizations for the authenticated user. @@ -860,7 +860,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/orgs`. /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`. - func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func orgsListForAuthenticatedUser(_ input: Operations.OrgsListForAuthenticatedUser.Input) async throws -> Operations.OrgsListForAuthenticatedUser.Output /// List organizations for a user /// /// List [public organization memberships](https://docs.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user. @@ -869,7 +869,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/orgs`. /// - Remark: Generated from `#/paths//users/{username}/orgs/get(orgs/list-for-user)`. - func orgs_sol_list_hyphen_for_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_user.Output + func orgsListForUser(_ input: Operations.OrgsListForUser.Input) async throws -> Operations.OrgsListForUser.Output } /// Convenience overloads for operation inputs. @@ -883,11 +883,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /organizations`. /// - Remark: Generated from `#/paths//organizations/get(orgs/list)`. - public func orgs_sol_list( - query: Operations.orgs_sol_list.Input.Query = .init(), - headers: Operations.orgs_sol_list.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list.Output { - try await orgs_sol_list(Operations.orgs_sol_list.Input( + public func orgsList( + query: Operations.OrgsList.Input.Query = .init(), + headers: Operations.OrgsList.Input.Headers = .init() + ) async throws -> Operations.OrgsList.Output { + try await orgsList(Operations.OrgsList.Input( query: query, headers: headers )) @@ -906,11 +906,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)`. - public func orgs_sol_get( - path: Operations.orgs_sol_get.Input.Path, - headers: Operations.orgs_sol_get.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get.Output { - try await orgs_sol_get(Operations.orgs_sol_get.Input( + public func orgsGet( + path: Operations.OrgsGet.Input.Path, + headers: Operations.OrgsGet.Input.Headers = .init() + ) async throws -> Operations.OrgsGet.Output { + try await orgsGet(Operations.OrgsGet.Input( path: path, headers: headers )) @@ -931,12 +931,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)`. - public func orgs_sol_update( - path: Operations.orgs_sol_update.Input.Path, - headers: Operations.orgs_sol_update.Input.Headers = .init(), - body: Operations.orgs_sol_update.Input.Body? = nil - ) async throws -> Operations.orgs_sol_update.Output { - try await orgs_sol_update(Operations.orgs_sol_update.Input( + public func orgsUpdate( + path: Operations.OrgsUpdate.Input.Path, + headers: Operations.OrgsUpdate.Input.Headers = .init(), + body: Operations.OrgsUpdate.Input.Body? = nil + ) async throws -> Operations.OrgsUpdate.Output { + try await orgsUpdate(Operations.OrgsUpdate.Input( path: path, headers: headers, body: body @@ -954,11 +954,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)`. - public func orgs_sol_delete( - path: Operations.orgs_sol_delete.Input.Path, - headers: Operations.orgs_sol_delete.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_delete.Output { - try await orgs_sol_delete(Operations.orgs_sol_delete.Input( + public func orgsDelete( + path: Operations.OrgsDelete.Input.Path, + headers: Operations.OrgsDelete.Input.Headers = .init() + ) async throws -> Operations.OrgsDelete.Output { + try await orgsDelete(Operations.OrgsDelete.Input( path: path, headers: headers )) @@ -973,12 +973,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//orgs/{org}/attestations/{subject_digest}/get(orgs/list-attestations)`. - public func orgs_sol_list_hyphen_attestations( - path: Operations.orgs_sol_list_hyphen_attestations.Input.Path, - query: Operations.orgs_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_attestations.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_attestations.Output { - try await orgs_sol_list_hyphen_attestations(Operations.orgs_sol_list_hyphen_attestations.Input( + public func orgsListAttestations( + path: Operations.OrgsListAttestations.Input.Path, + query: Operations.OrgsListAttestations.Input.Query = .init(), + headers: Operations.OrgsListAttestations.Input.Headers = .init() + ) async throws -> Operations.OrgsListAttestations.Output { + try await orgsListAttestations(Operations.OrgsListAttestations.Input( path: path, query: query, headers: headers @@ -990,12 +990,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/blocks`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/get(orgs/list-blocked-users)`. - public func orgs_sol_list_hyphen_blocked_hyphen_users( - path: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Path, - query: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output { - try await orgs_sol_list_hyphen_blocked_hyphen_users(Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input( + public func orgsListBlockedUsers( + path: Operations.OrgsListBlockedUsers.Input.Path, + query: Operations.OrgsListBlockedUsers.Input.Query = .init(), + headers: Operations.OrgsListBlockedUsers.Input.Headers = .init() + ) async throws -> Operations.OrgsListBlockedUsers.Output { + try await orgsListBlockedUsers(Operations.OrgsListBlockedUsers.Input( path: path, query: query, headers: headers @@ -1007,11 +1007,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)`. - public func orgs_sol_check_hyphen_blocked_hyphen_user( - path: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Path, - headers: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output { - try await orgs_sol_check_hyphen_blocked_hyphen_user(Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input( + public func orgsCheckBlockedUser( + path: Operations.OrgsCheckBlockedUser.Input.Path, + headers: Operations.OrgsCheckBlockedUser.Input.Headers = .init() + ) async throws -> Operations.OrgsCheckBlockedUser.Output { + try await orgsCheckBlockedUser(Operations.OrgsCheckBlockedUser.Input( path: path, headers: headers )) @@ -1022,11 +1022,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)`. - public func orgs_sol_block_hyphen_user( - path: Operations.orgs_sol_block_hyphen_user.Input.Path, - headers: Operations.orgs_sol_block_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_block_hyphen_user.Output { - try await orgs_sol_block_hyphen_user(Operations.orgs_sol_block_hyphen_user.Input( + public func orgsBlockUser( + path: Operations.OrgsBlockUser.Input.Path, + headers: Operations.OrgsBlockUser.Input.Headers = .init() + ) async throws -> Operations.OrgsBlockUser.Output { + try await orgsBlockUser(Operations.OrgsBlockUser.Input( path: path, headers: headers )) @@ -1037,8 +1037,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)`. - public func orgs_sol_unblock_hyphen_user(path: Operations.orgs_sol_unblock_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_unblock_hyphen_user.Output { - try await orgs_sol_unblock_hyphen_user(Operations.orgs_sol_unblock_hyphen_user.Input(path: path)) + public func orgsUnblockUser(path: Operations.OrgsUnblockUser.Input.Path) async throws -> Operations.OrgsUnblockUser.Output { + try await orgsUnblockUser(Operations.OrgsUnblockUser.Input(path: path)) } /// List failed organization invitations /// @@ -1046,12 +1046,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/failed_invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)`. - public func orgs_sol_list_hyphen_failed_hyphen_invitations( - path: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Path, - query: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output { - try await orgs_sol_list_hyphen_failed_hyphen_invitations(Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input( + public func orgsListFailedInvitations( + path: Operations.OrgsListFailedInvitations.Input.Path, + query: Operations.OrgsListFailedInvitations.Input.Query = .init(), + headers: Operations.OrgsListFailedInvitations.Input.Headers = .init() + ) async throws -> Operations.OrgsListFailedInvitations.Output { + try await orgsListFailedInvitations(Operations.OrgsListFailedInvitations.Input( path: path, query: query, headers: headers @@ -1068,12 +1068,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)`. - public func orgs_sol_list_hyphen_webhooks( - path: Operations.orgs_sol_list_hyphen_webhooks.Input.Path, - query: Operations.orgs_sol_list_hyphen_webhooks.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_webhooks.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_webhooks.Output { - try await orgs_sol_list_hyphen_webhooks(Operations.orgs_sol_list_hyphen_webhooks.Input( + public func orgsListWebhooks( + path: Operations.OrgsListWebhooks.Input.Path, + query: Operations.OrgsListWebhooks.Input.Query = .init(), + headers: Operations.OrgsListWebhooks.Input.Headers = .init() + ) async throws -> Operations.OrgsListWebhooks.Output { + try await orgsListWebhooks(Operations.OrgsListWebhooks.Input( path: path, query: query, headers: headers @@ -1090,12 +1090,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)`. - public func orgs_sol_create_hyphen_webhook( - path: Operations.orgs_sol_create_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_create_hyphen_webhook.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_webhook.Input.Body - ) async throws -> Operations.orgs_sol_create_hyphen_webhook.Output { - try await orgs_sol_create_hyphen_webhook(Operations.orgs_sol_create_hyphen_webhook.Input( + public func orgsCreateWebhook( + path: Operations.OrgsCreateWebhook.Input.Path, + headers: Operations.OrgsCreateWebhook.Input.Headers = .init(), + body: Operations.OrgsCreateWebhook.Input.Body + ) async throws -> Operations.OrgsCreateWebhook.Output { + try await orgsCreateWebhook(Operations.OrgsCreateWebhook.Input( path: path, headers: headers, body: body @@ -1113,11 +1113,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)`. - public func orgs_sol_get_hyphen_webhook( - path: Operations.orgs_sol_get_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_webhook.Output { - try await orgs_sol_get_hyphen_webhook(Operations.orgs_sol_get_hyphen_webhook.Input( + public func orgsGetWebhook( + path: Operations.OrgsGetWebhook.Input.Path, + headers: Operations.OrgsGetWebhook.Input.Headers = .init() + ) async throws -> Operations.OrgsGetWebhook.Output { + try await orgsGetWebhook(Operations.OrgsGetWebhook.Input( path: path, headers: headers )) @@ -1137,12 +1137,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)`. - public func orgs_sol_update_hyphen_webhook( - path: Operations.orgs_sol_update_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_update_hyphen_webhook.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_webhook.Input.Body? = nil - ) async throws -> Operations.orgs_sol_update_hyphen_webhook.Output { - try await orgs_sol_update_hyphen_webhook(Operations.orgs_sol_update_hyphen_webhook.Input( + public func orgsUpdateWebhook( + path: Operations.OrgsUpdateWebhook.Input.Path, + headers: Operations.OrgsUpdateWebhook.Input.Headers = .init(), + body: Operations.OrgsUpdateWebhook.Input.Body? = nil + ) async throws -> Operations.OrgsUpdateWebhook.Output { + try await orgsUpdateWebhook(Operations.OrgsUpdateWebhook.Input( path: path, headers: headers, body: body @@ -1159,11 +1159,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)`. - public func orgs_sol_delete_hyphen_webhook( - path: Operations.orgs_sol_delete_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_delete_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_delete_hyphen_webhook.Output { - try await orgs_sol_delete_hyphen_webhook(Operations.orgs_sol_delete_hyphen_webhook.Input( + public func orgsDeleteWebhook( + path: Operations.OrgsDeleteWebhook.Input.Path, + headers: Operations.OrgsDeleteWebhook.Input.Headers = .init() + ) async throws -> Operations.OrgsDeleteWebhook.Output { + try await orgsDeleteWebhook(Operations.OrgsDeleteWebhook.Input( path: path, headers: headers )) @@ -1179,11 +1179,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)`. - public func orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org( - path: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output { - try await orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input( + public func orgsGetWebhookConfigForOrg( + path: Operations.OrgsGetWebhookConfigForOrg.Input.Path, + headers: Operations.OrgsGetWebhookConfigForOrg.Input.Headers = .init() + ) async throws -> Operations.OrgsGetWebhookConfigForOrg.Output { + try await orgsGetWebhookConfigForOrg(Operations.OrgsGetWebhookConfigForOrg.Input( path: path, headers: headers )) @@ -1199,12 +1199,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/patch(orgs/update-webhook-config-for-org)`. - public func orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org( - path: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path, - headers: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Body? = nil - ) async throws -> Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output { - try await orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org(Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input( + public func orgsUpdateWebhookConfigForOrg( + path: Operations.OrgsUpdateWebhookConfigForOrg.Input.Path, + headers: Operations.OrgsUpdateWebhookConfigForOrg.Input.Headers = .init(), + body: Operations.OrgsUpdateWebhookConfigForOrg.Input.Body? = nil + ) async throws -> Operations.OrgsUpdateWebhookConfigForOrg.Output { + try await orgsUpdateWebhookConfigForOrg(Operations.OrgsUpdateWebhookConfigForOrg.Input( path: path, headers: headers, body: body @@ -1221,12 +1221,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)`. - public func orgs_sol_list_hyphen_webhook_hyphen_deliveries( - path: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path, - query: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output { - try await orgs_sol_list_hyphen_webhook_hyphen_deliveries(Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input( + public func orgsListWebhookDeliveries( + path: Operations.OrgsListWebhookDeliveries.Input.Path, + query: Operations.OrgsListWebhookDeliveries.Input.Query = .init(), + headers: Operations.OrgsListWebhookDeliveries.Input.Headers = .init() + ) async throws -> Operations.OrgsListWebhookDeliveries.Output { + try await orgsListWebhookDeliveries(Operations.OrgsListWebhookDeliveries.Input( path: path, query: query, headers: headers @@ -1243,11 +1243,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)`. - public func orgs_sol_get_hyphen_webhook_hyphen_delivery( - path: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output { - try await orgs_sol_get_hyphen_webhook_hyphen_delivery(Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input( + public func orgsGetWebhookDelivery( + path: Operations.OrgsGetWebhookDelivery.Input.Path, + headers: Operations.OrgsGetWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.OrgsGetWebhookDelivery.Output { + try await orgsGetWebhookDelivery(Operations.OrgsGetWebhookDelivery.Input( path: path, headers: headers )) @@ -1263,11 +1263,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)`. - public func orgs_sol_redeliver_hyphen_webhook_hyphen_delivery( - path: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { - try await orgs_sol_redeliver_hyphen_webhook_hyphen_delivery(Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input( + public func orgsRedeliverWebhookDelivery( + path: Operations.OrgsRedeliverWebhookDelivery.Input.Path, + headers: Operations.OrgsRedeliverWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.OrgsRedeliverWebhookDelivery.Output { + try await orgsRedeliverWebhookDelivery(Operations.OrgsRedeliverWebhookDelivery.Input( path: path, headers: headers )) @@ -1284,11 +1284,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)`. - public func orgs_sol_ping_hyphen_webhook( - path: Operations.orgs_sol_ping_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_ping_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_ping_hyphen_webhook.Output { - try await orgs_sol_ping_hyphen_webhook(Operations.orgs_sol_ping_hyphen_webhook.Input( + public func orgsPingWebhook( + path: Operations.OrgsPingWebhook.Input.Path, + headers: Operations.OrgsPingWebhook.Input.Headers = .init() + ) async throws -> Operations.OrgsPingWebhook.Output { + try await orgsPingWebhook(Operations.OrgsPingWebhook.Input( path: path, headers: headers )) @@ -1299,12 +1299,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/get(api-insights/get-route-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor( - path: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output { - try await api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor(Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input( + public func apiInsightsGetRouteStatsByActor( + path: Operations.ApiInsightsGetRouteStatsByActor.Input.Path, + query: Operations.ApiInsightsGetRouteStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetRouteStatsByActor.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetRouteStatsByActor.Output { + try await apiInsightsGetRouteStatsByActor(Operations.ApiInsightsGetRouteStatsByActor.Input( path: path, query: query, headers: headers @@ -1316,12 +1316,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/subject-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/subject-stats/get(api-insights/get-subject-stats)`. - public func api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats( - path: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output { - try await api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats(Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input( + public func apiInsightsGetSubjectStats( + path: Operations.ApiInsightsGetSubjectStats.Input.Path, + query: Operations.ApiInsightsGetSubjectStats.Input.Query, + headers: Operations.ApiInsightsGetSubjectStats.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetSubjectStats.Output { + try await apiInsightsGetSubjectStats(Operations.ApiInsightsGetSubjectStats.Input( path: path, query: query, headers: headers @@ -1333,12 +1333,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/get(api-insights/get-summary-stats)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output { - try await api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input( + public func apiInsightsGetSummaryStats( + path: Operations.ApiInsightsGetSummaryStats.Input.Path, + query: Operations.ApiInsightsGetSummaryStats.Input.Query, + headers: Operations.ApiInsightsGetSummaryStats.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetSummaryStats.Output { + try await apiInsightsGetSummaryStats(Operations.ApiInsightsGetSummaryStats.Input( path: path, query: query, headers: headers @@ -1350,12 +1350,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/users/{user_id}/get(api-insights/get-summary-stats-by-user)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output { - try await api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input( + public func apiInsightsGetSummaryStatsByUser( + path: Operations.ApiInsightsGetSummaryStatsByUser.Input.Path, + query: Operations.ApiInsightsGetSummaryStatsByUser.Input.Query, + headers: Operations.ApiInsightsGetSummaryStatsByUser.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetSummaryStatsByUser.Output { + try await apiInsightsGetSummaryStatsByUser(Operations.ApiInsightsGetSummaryStatsByUser.Input( path: path, query: query, headers: headers @@ -1367,12 +1367,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/get(api-insights/get-summary-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output { - try await api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input( + public func apiInsightsGetSummaryStatsByActor( + path: Operations.ApiInsightsGetSummaryStatsByActor.Input.Path, + query: Operations.ApiInsightsGetSummaryStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetSummaryStatsByActor.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetSummaryStatsByActor.Output { + try await apiInsightsGetSummaryStatsByActor(Operations.ApiInsightsGetSummaryStatsByActor.Input( path: path, query: query, headers: headers @@ -1384,12 +1384,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/get(api-insights/get-time-stats)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output { - try await api_hyphen_insights_sol_get_hyphen_time_hyphen_stats(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input( + public func apiInsightsGetTimeStats( + path: Operations.ApiInsightsGetTimeStats.Input.Path, + query: Operations.ApiInsightsGetTimeStats.Input.Query, + headers: Operations.ApiInsightsGetTimeStats.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetTimeStats.Output { + try await apiInsightsGetTimeStats(Operations.ApiInsightsGetTimeStats.Input( path: path, query: query, headers: headers @@ -1401,12 +1401,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/users/{user_id}/get(api-insights/get-time-stats-by-user)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output { - try await api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input( + public func apiInsightsGetTimeStatsByUser( + path: Operations.ApiInsightsGetTimeStatsByUser.Input.Path, + query: Operations.ApiInsightsGetTimeStatsByUser.Input.Query, + headers: Operations.ApiInsightsGetTimeStatsByUser.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetTimeStatsByUser.Output { + try await apiInsightsGetTimeStatsByUser(Operations.ApiInsightsGetTimeStatsByUser.Input( path: path, query: query, headers: headers @@ -1418,12 +1418,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/get(api-insights/get-time-stats-by-actor)`. - public func api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output { - try await api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input( + public func apiInsightsGetTimeStatsByActor( + path: Operations.ApiInsightsGetTimeStatsByActor.Input.Path, + query: Operations.ApiInsightsGetTimeStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetTimeStatsByActor.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetTimeStatsByActor.Output { + try await apiInsightsGetTimeStatsByActor(Operations.ApiInsightsGetTimeStatsByActor.Input( path: path, query: query, headers: headers @@ -1435,12 +1435,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/user-stats/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/user-stats/{user_id}/get(api-insights/get-user-stats)`. - public func api_hyphen_insights_sol_get_hyphen_user_hyphen_stats( - path: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output { - try await api_hyphen_insights_sol_get_hyphen_user_hyphen_stats(Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input( + public func apiInsightsGetUserStats( + path: Operations.ApiInsightsGetUserStats.Input.Path, + query: Operations.ApiInsightsGetUserStats.Input.Query, + headers: Operations.ApiInsightsGetUserStats.Input.Headers = .init() + ) async throws -> Operations.ApiInsightsGetUserStats.Output { + try await apiInsightsGetUserStats(Operations.ApiInsightsGetUserStats.Input( path: path, query: query, headers: headers @@ -1457,12 +1457,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/installations`. /// - Remark: Generated from `#/paths//orgs/{org}/installations/get(orgs/list-app-installations)`. - public func orgs_sol_list_hyphen_app_hyphen_installations( - path: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Path, - query: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output { - try await orgs_sol_list_hyphen_app_hyphen_installations(Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input( + public func orgsListAppInstallations( + path: Operations.OrgsListAppInstallations.Input.Path, + query: Operations.OrgsListAppInstallations.Input.Query = .init(), + headers: Operations.OrgsListAppInstallations.Input.Headers = .init() + ) async throws -> Operations.OrgsListAppInstallations.Output { + try await orgsListAppInstallations(Operations.OrgsListAppInstallations.Input( path: path, query: query, headers: headers @@ -1477,12 +1477,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`. - public func orgs_sol_list_hyphen_pending_hyphen_invitations( - path: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Path, - query: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output { - try await orgs_sol_list_hyphen_pending_hyphen_invitations(Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input( + public func orgsListPendingInvitations( + path: Operations.OrgsListPendingInvitations.Input.Path, + query: Operations.OrgsListPendingInvitations.Input.Query = .init(), + headers: Operations.OrgsListPendingInvitations.Input.Headers = .init() + ) async throws -> Operations.OrgsListPendingInvitations.Output { + try await orgsListPendingInvitations(Operations.OrgsListPendingInvitations.Input( path: path, query: query, headers: headers @@ -1497,12 +1497,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)`. - public func orgs_sol_create_hyphen_invitation( - path: Operations.orgs_sol_create_hyphen_invitation.Input.Path, - headers: Operations.orgs_sol_create_hyphen_invitation.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_invitation.Input.Body? = nil - ) async throws -> Operations.orgs_sol_create_hyphen_invitation.Output { - try await orgs_sol_create_hyphen_invitation(Operations.orgs_sol_create_hyphen_invitation.Input( + public func orgsCreateInvitation( + path: Operations.OrgsCreateInvitation.Input.Path, + headers: Operations.OrgsCreateInvitation.Input.Headers = .init(), + body: Operations.OrgsCreateInvitation.Input.Body? = nil + ) async throws -> Operations.OrgsCreateInvitation.Output { + try await orgsCreateInvitation(Operations.OrgsCreateInvitation.Input( path: path, headers: headers, body: body @@ -1516,11 +1516,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)`. - public func orgs_sol_cancel_hyphen_invitation( - path: Operations.orgs_sol_cancel_hyphen_invitation.Input.Path, - headers: Operations.orgs_sol_cancel_hyphen_invitation.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_cancel_hyphen_invitation.Output { - try await orgs_sol_cancel_hyphen_invitation(Operations.orgs_sol_cancel_hyphen_invitation.Input( + public func orgsCancelInvitation( + path: Operations.OrgsCancelInvitation.Input.Path, + headers: Operations.OrgsCancelInvitation.Input.Headers = .init() + ) async throws -> Operations.OrgsCancelInvitation.Output { + try await orgsCancelInvitation(Operations.OrgsCancelInvitation.Input( path: path, headers: headers )) @@ -1531,12 +1531,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/invitations/{invitation_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)`. - public func orgs_sol_list_hyphen_invitation_hyphen_teams( - path: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Path, - query: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output { - try await orgs_sol_list_hyphen_invitation_hyphen_teams(Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input( + public func orgsListInvitationTeams( + path: Operations.OrgsListInvitationTeams.Input.Path, + query: Operations.OrgsListInvitationTeams.Input.Query = .init(), + headers: Operations.OrgsListInvitationTeams.Input.Headers = .init() + ) async throws -> Operations.OrgsListInvitationTeams.Output { + try await orgsListInvitationTeams(Operations.OrgsListInvitationTeams.Input( path: path, query: query, headers: headers @@ -1548,11 +1548,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)`. - public func orgs_sol_list_hyphen_issue_hyphen_types( - path: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Path, - headers: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output { - try await orgs_sol_list_hyphen_issue_hyphen_types(Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input( + public func orgsListIssueTypes( + path: Operations.OrgsListIssueTypes.Input.Path, + headers: Operations.OrgsListIssueTypes.Input.Headers = .init() + ) async throws -> Operations.OrgsListIssueTypes.Output { + try await orgsListIssueTypes(Operations.OrgsListIssueTypes.Input( path: path, headers: headers )) @@ -1568,12 +1568,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)`. - public func orgs_sol_create_hyphen_issue_hyphen_type( - path: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Body - ) async throws -> Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output { - try await orgs_sol_create_hyphen_issue_hyphen_type(Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input( + public func orgsCreateIssueType( + path: Operations.OrgsCreateIssueType.Input.Path, + headers: Operations.OrgsCreateIssueType.Input.Headers = .init(), + body: Operations.OrgsCreateIssueType.Input.Body + ) async throws -> Operations.OrgsCreateIssueType.Output { + try await orgsCreateIssueType(Operations.OrgsCreateIssueType.Input( path: path, headers: headers, body: body @@ -1590,12 +1590,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)`. - public func orgs_sol_update_hyphen_issue_hyphen_type( - path: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Body - ) async throws -> Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output { - try await orgs_sol_update_hyphen_issue_hyphen_type(Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input( + public func orgsUpdateIssueType( + path: Operations.OrgsUpdateIssueType.Input.Path, + headers: Operations.OrgsUpdateIssueType.Input.Headers = .init(), + body: Operations.OrgsUpdateIssueType.Input.Body + ) async throws -> Operations.OrgsUpdateIssueType.Output { + try await orgsUpdateIssueType(Operations.OrgsUpdateIssueType.Input( path: path, headers: headers, body: body @@ -1612,11 +1612,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)`. - public func orgs_sol_delete_hyphen_issue_hyphen_type( - path: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Output { - try await orgs_sol_delete_hyphen_issue_hyphen_type(Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input( + public func orgsDeleteIssueType( + path: Operations.OrgsDeleteIssueType.Input.Path, + headers: Operations.OrgsDeleteIssueType.Input.Headers = .init() + ) async throws -> Operations.OrgsDeleteIssueType.Output { + try await orgsDeleteIssueType(Operations.OrgsDeleteIssueType.Input( path: path, headers: headers )) @@ -1627,12 +1627,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)`. - public func orgs_sol_list_hyphen_members( - path: Operations.orgs_sol_list_hyphen_members.Input.Path, - query: Operations.orgs_sol_list_hyphen_members.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_members.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_members.Output { - try await orgs_sol_list_hyphen_members(Operations.orgs_sol_list_hyphen_members.Input( + public func orgsListMembers( + path: Operations.OrgsListMembers.Input.Path, + query: Operations.OrgsListMembers.Input.Query = .init(), + headers: Operations.OrgsListMembers.Input.Headers = .init() + ) async throws -> Operations.OrgsListMembers.Output { + try await orgsListMembers(Operations.OrgsListMembers.Input( path: path, query: query, headers: headers @@ -1644,8 +1644,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)`. - public func orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user(path: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output { - try await orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user(Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input(path: path)) + public func orgsCheckMembershipForUser(path: Operations.OrgsCheckMembershipForUser.Input.Path) async throws -> Operations.OrgsCheckMembershipForUser.Output { + try await orgsCheckMembershipForUser(Operations.OrgsCheckMembershipForUser.Input(path: path)) } /// Remove an organization member /// @@ -1653,11 +1653,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`. - public func orgs_sol_remove_hyphen_member( - path: Operations.orgs_sol_remove_hyphen_member.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_member.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_remove_hyphen_member.Output { - try await orgs_sol_remove_hyphen_member(Operations.orgs_sol_remove_hyphen_member.Input( + public func orgsRemoveMember( + path: Operations.OrgsRemoveMember.Input.Path, + headers: Operations.OrgsRemoveMember.Input.Headers = .init() + ) async throws -> Operations.OrgsRemoveMember.Output { + try await orgsRemoveMember(Operations.OrgsRemoveMember.Input( path: path, headers: headers )) @@ -1668,11 +1668,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)`. - public func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user( - path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output { - try await orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user(Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input( + public func orgsGetMembershipForUser( + path: Operations.OrgsGetMembershipForUser.Input.Path, + headers: Operations.OrgsGetMembershipForUser.Input.Headers = .init() + ) async throws -> Operations.OrgsGetMembershipForUser.Output { + try await orgsGetMembershipForUser(Operations.OrgsGetMembershipForUser.Input( path: path, headers: headers )) @@ -1691,12 +1691,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)`. - public func orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user( - path: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init(), - body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body? = nil - ) async throws -> Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output { - try await orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user(Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input( + public func orgsSetMembershipForUser( + path: Operations.OrgsSetMembershipForUser.Input.Path, + headers: Operations.OrgsSetMembershipForUser.Input.Headers = .init(), + body: Operations.OrgsSetMembershipForUser.Input.Body? = nil + ) async throws -> Operations.OrgsSetMembershipForUser.Output { + try await orgsSetMembershipForUser(Operations.OrgsSetMembershipForUser.Input( path: path, headers: headers, body: body @@ -1710,11 +1710,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`. - public func orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user( - path: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Output { - try await orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user(Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input( + public func orgsRemoveMembershipForUser( + path: Operations.OrgsRemoveMembershipForUser.Input.Path, + headers: Operations.OrgsRemoveMembershipForUser.Input.Headers = .init() + ) async throws -> Operations.OrgsRemoveMembershipForUser.Output { + try await orgsRemoveMembershipForUser(Operations.OrgsRemoveMembershipForUser.Input( path: path, headers: headers )) @@ -1732,11 +1732,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)`. - public func orgs_sol_list_hyphen_org_hyphen_roles( - path: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Path, - headers: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output { - try await orgs_sol_list_hyphen_org_hyphen_roles(Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input( + public func orgsListOrgRoles( + path: Operations.OrgsListOrgRoles.Input.Path, + headers: Operations.OrgsListOrgRoles.Input.Headers = .init() + ) async throws -> Operations.OrgsListOrgRoles.Output { + try await orgsListOrgRoles(Operations.OrgsListOrgRoles.Input( path: path, headers: headers )) @@ -1751,8 +1751,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)`. - public func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team(path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input.Path) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Output { - try await orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team(Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input(path: path)) + public func orgsRevokeAllOrgRolesTeam(path: Operations.OrgsRevokeAllOrgRolesTeam.Input.Path) async throws -> Operations.OrgsRevokeAllOrgRolesTeam.Output { + try await orgsRevokeAllOrgRolesTeam(Operations.OrgsRevokeAllOrgRolesTeam.Input(path: path)) } /// Assign an organization role to a team /// @@ -1764,8 +1764,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)`. - public func orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role(path: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input.Path) async throws -> Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output { - try await orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role(Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input(path: path)) + public func orgsAssignTeamToOrgRole(path: Operations.OrgsAssignTeamToOrgRole.Input.Path) async throws -> Operations.OrgsAssignTeamToOrgRole.Output { + try await orgsAssignTeamToOrgRole(Operations.OrgsAssignTeamToOrgRole.Input(path: path)) } /// Remove an organization role from a team /// @@ -1777,8 +1777,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)`. - public func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team(path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input.Path) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Output { - try await orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team(Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input(path: path)) + public func orgsRevokeOrgRoleTeam(path: Operations.OrgsRevokeOrgRoleTeam.Input.Path) async throws -> Operations.OrgsRevokeOrgRoleTeam.Output { + try await orgsRevokeOrgRoleTeam(Operations.OrgsRevokeOrgRoleTeam.Input(path: path)) } /// Remove all organization roles for a user /// @@ -1790,8 +1790,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)`. - public func orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user(path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Output { - try await orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user(Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input(path: path)) + public func orgsRevokeAllOrgRolesUser(path: Operations.OrgsRevokeAllOrgRolesUser.Input.Path) async throws -> Operations.OrgsRevokeAllOrgRolesUser.Output { + try await orgsRevokeAllOrgRolesUser(Operations.OrgsRevokeAllOrgRolesUser.Input(path: path)) } /// Assign an organization role to a user /// @@ -1803,8 +1803,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)`. - public func orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role(path: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input.Path) async throws -> Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output { - try await orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role(Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input(path: path)) + public func orgsAssignUserToOrgRole(path: Operations.OrgsAssignUserToOrgRole.Input.Path) async throws -> Operations.OrgsAssignUserToOrgRole.Output { + try await orgsAssignUserToOrgRole(Operations.OrgsAssignUserToOrgRole.Input(path: path)) } /// Remove an organization role from a user /// @@ -1816,8 +1816,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)`. - public func orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user(path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Output { - try await orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user(Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input(path: path)) + public func orgsRevokeOrgRoleUser(path: Operations.OrgsRevokeOrgRoleUser.Input.Path) async throws -> Operations.OrgsRevokeOrgRoleUser.Output { + try await orgsRevokeOrgRoleUser(Operations.OrgsRevokeOrgRoleUser.Input(path: path)) } /// Get an organization role /// @@ -1832,11 +1832,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)`. - public func orgs_sol_get_hyphen_org_hyphen_role( - path: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Path, - headers: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_role.Output { - try await orgs_sol_get_hyphen_org_hyphen_role(Operations.orgs_sol_get_hyphen_org_hyphen_role.Input( + public func orgsGetOrgRole( + path: Operations.OrgsGetOrgRole.Input.Path, + headers: Operations.OrgsGetOrgRole.Input.Headers = .init() + ) async throws -> Operations.OrgsGetOrgRole.Output { + try await orgsGetOrgRole(Operations.OrgsGetOrgRole.Input( path: path, headers: headers )) @@ -1851,12 +1851,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)`. - public func orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams( - path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Path, - query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output { - try await orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input( + public func orgsListOrgRoleTeams( + path: Operations.OrgsListOrgRoleTeams.Input.Path, + query: Operations.OrgsListOrgRoleTeams.Input.Query = .init(), + headers: Operations.OrgsListOrgRoleTeams.Input.Headers = .init() + ) async throws -> Operations.OrgsListOrgRoleTeams.Output { + try await orgsListOrgRoleTeams(Operations.OrgsListOrgRoleTeams.Input( path: path, query: query, headers: headers @@ -1872,12 +1872,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/users`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)`. - public func orgs_sol_list_hyphen_org_hyphen_role_hyphen_users( - path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Path, - query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output { - try await orgs_sol_list_hyphen_org_hyphen_role_hyphen_users(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input( + public func orgsListOrgRoleUsers( + path: Operations.OrgsListOrgRoleUsers.Input.Path, + query: Operations.OrgsListOrgRoleUsers.Input.Query = .init(), + headers: Operations.OrgsListOrgRoleUsers.Input.Headers = .init() + ) async throws -> Operations.OrgsListOrgRoleUsers.Output { + try await orgsListOrgRoleUsers(Operations.OrgsListOrgRoleUsers.Input( path: path, query: query, headers: headers @@ -1889,12 +1889,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/outside_collaborators`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/get(orgs/list-outside-collaborators)`. - public func orgs_sol_list_hyphen_outside_hyphen_collaborators( - path: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Path, - query: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output { - try await orgs_sol_list_hyphen_outside_hyphen_collaborators(Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input( + public func orgsListOutsideCollaborators( + path: Operations.OrgsListOutsideCollaborators.Input.Path, + query: Operations.OrgsListOutsideCollaborators.Input.Query = .init(), + headers: Operations.OrgsListOutsideCollaborators.Input.Headers = .init() + ) async throws -> Operations.OrgsListOutsideCollaborators.Output { + try await orgsListOutsideCollaborators(Operations.OrgsListOutsideCollaborators.Input( path: path, query: query, headers: headers @@ -1906,12 +1906,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)`. - public func orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator( - path: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Path, - headers: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Headers = .init(), - body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Body? = nil - ) async throws -> Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output { - try await orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input( + public func orgsConvertMemberToOutsideCollaborator( + path: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Path, + headers: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Headers = .init(), + body: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Body? = nil + ) async throws -> Operations.OrgsConvertMemberToOutsideCollaborator.Output { + try await orgsConvertMemberToOutsideCollaborator(Operations.OrgsConvertMemberToOutsideCollaborator.Input( path: path, headers: headers, body: body @@ -1923,11 +1923,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)`. - public func orgs_sol_remove_hyphen_outside_hyphen_collaborator( - path: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output { - try await orgs_sol_remove_hyphen_outside_hyphen_collaborator(Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input( + public func orgsRemoveOutsideCollaborator( + path: Operations.OrgsRemoveOutsideCollaborator.Input.Path, + headers: Operations.OrgsRemoveOutsideCollaborator.Input.Headers = .init() + ) async throws -> Operations.OrgsRemoveOutsideCollaborator.Output { + try await orgsRemoveOutsideCollaborator(Operations.OrgsRemoveOutsideCollaborator.Input( path: path, headers: headers )) @@ -1940,12 +1940,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output { - try await orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input( + public func orgsListPatGrantRequests( + path: Operations.OrgsListPatGrantRequests.Input.Path, + query: Operations.OrgsListPatGrantRequests.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRequests.Input.Headers = .init() + ) async throws -> Operations.OrgsListPatGrantRequests.Output { + try await orgsListPatGrantRequests(Operations.OrgsListPatGrantRequests.Input( path: path, query: query, headers: headers @@ -1959,12 +1959,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)`. - public func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk( - path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Path, - headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Headers = .init(), - body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body - ) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Output { - try await orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk(Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input( + public func orgsReviewPatGrantRequestsInBulk( + path: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Path, + headers: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Headers = .init(), + body: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body + ) async throws -> Operations.OrgsReviewPatGrantRequestsInBulk.Output { + try await orgsReviewPatGrantRequestsInBulk(Operations.OrgsReviewPatGrantRequestsInBulk.Input( path: path, headers: headers, body: body @@ -1978,12 +1978,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)`. - public func orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request( - path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Path, - headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Headers = .init(), - body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body - ) async throws -> Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Output { - try await orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request(Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input( + public func orgsReviewPatGrantRequest( + path: Operations.OrgsReviewPatGrantRequest.Input.Path, + headers: Operations.OrgsReviewPatGrantRequest.Input.Headers = .init(), + body: Operations.OrgsReviewPatGrantRequest.Input.Body + ) async throws -> Operations.OrgsReviewPatGrantRequest.Output { + try await orgsReviewPatGrantRequest(Operations.OrgsReviewPatGrantRequest.Input( path: path, headers: headers, body: body @@ -1997,12 +1997,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output { - try await orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input( + public func orgsListPatGrantRequestRepositories( + path: Operations.OrgsListPatGrantRequestRepositories.Input.Path, + query: Operations.OrgsListPatGrantRequestRepositories.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRequestRepositories.Input.Headers = .init() + ) async throws -> Operations.OrgsListPatGrantRequestRepositories.Output { + try await orgsListPatGrantRequestRepositories(Operations.OrgsListPatGrantRequestRepositories.Input( path: path, query: query, headers: headers @@ -2016,12 +2016,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)`. - public func orgs_sol_list_hyphen_pat_hyphen_grants( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output { - try await orgs_sol_list_hyphen_pat_hyphen_grants(Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input( + public func orgsListPatGrants( + path: Operations.OrgsListPatGrants.Input.Path, + query: Operations.OrgsListPatGrants.Input.Query = .init(), + headers: Operations.OrgsListPatGrants.Input.Headers = .init() + ) async throws -> Operations.OrgsListPatGrants.Output { + try await orgsListPatGrants(Operations.OrgsListPatGrants.Input( path: path, query: query, headers: headers @@ -2035,12 +2035,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)`. - public func orgs_sol_update_hyphen_pat_hyphen_accesses( - path: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Path, - headers: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body - ) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Output { - try await orgs_sol_update_hyphen_pat_hyphen_accesses(Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input( + public func orgsUpdatePatAccesses( + path: Operations.OrgsUpdatePatAccesses.Input.Path, + headers: Operations.OrgsUpdatePatAccesses.Input.Headers = .init(), + body: Operations.OrgsUpdatePatAccesses.Input.Body + ) async throws -> Operations.OrgsUpdatePatAccesses.Output { + try await orgsUpdatePatAccesses(Operations.OrgsUpdatePatAccesses.Input( path: path, headers: headers, body: body @@ -2054,12 +2054,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens/{pat_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)`. - public func orgs_sol_update_hyphen_pat_hyphen_access( - path: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Path, - headers: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body - ) async throws -> Operations.orgs_sol_update_hyphen_pat_hyphen_access.Output { - try await orgs_sol_update_hyphen_pat_hyphen_access(Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input( + public func orgsUpdatePatAccess( + path: Operations.OrgsUpdatePatAccess.Input.Path, + headers: Operations.OrgsUpdatePatAccess.Input.Headers = .init(), + body: Operations.OrgsUpdatePatAccess.Input.Body + ) async throws -> Operations.OrgsUpdatePatAccess.Output { + try await orgsUpdatePatAccess(Operations.OrgsUpdatePatAccess.Input( path: path, headers: headers, body: body @@ -2073,12 +2073,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)`. - public func orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output { - try await orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input( + public func orgsListPatGrantRepositories( + path: Operations.OrgsListPatGrantRepositories.Input.Path, + query: Operations.OrgsListPatGrantRepositories.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRepositories.Input.Headers = .init() + ) async throws -> Operations.OrgsListPatGrantRepositories.Output { + try await orgsListPatGrantRepositories(Operations.OrgsListPatGrantRepositories.Input( path: path, query: query, headers: headers @@ -2091,11 +2091,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)`. - public func orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties( - path: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Path, - headers: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output { - try await orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties(Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input( + public func orgsGetAllCustomProperties( + path: Operations.OrgsGetAllCustomProperties.Input.Path, + headers: Operations.OrgsGetAllCustomProperties.Input.Headers = .init() + ) async throws -> Operations.OrgsGetAllCustomProperties.Output { + try await orgsGetAllCustomProperties(Operations.OrgsGetAllCustomProperties.Input( path: path, headers: headers )) @@ -2114,12 +2114,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Body - ) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output { - try await orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input( + public func orgsCreateOrUpdateCustomProperties( + path: Operations.OrgsCreateOrUpdateCustomProperties.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomProperties.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomProperties.Input.Body + ) async throws -> Operations.OrgsCreateOrUpdateCustomProperties.Output { + try await orgsCreateOrUpdateCustomProperties(Operations.OrgsCreateOrUpdateCustomProperties.Input( path: path, headers: headers, body: body @@ -2132,11 +2132,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)`. - public func orgs_sol_get_hyphen_custom_hyphen_property( - path: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output { - try await orgs_sol_get_hyphen_custom_hyphen_property(Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input( + public func orgsGetCustomProperty( + path: Operations.OrgsGetCustomProperty.Input.Path, + headers: Operations.OrgsGetCustomProperty.Input.Headers = .init() + ) async throws -> Operations.OrgsGetCustomProperty.Output { + try await orgsGetCustomProperty(Operations.OrgsGetCustomProperty.Input( path: path, headers: headers )) @@ -2151,12 +2151,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Body - ) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output { - try await orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input( + public func orgsCreateOrUpdateCustomProperty( + path: Operations.OrgsCreateOrUpdateCustomProperty.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomProperty.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomProperty.Input.Body + ) async throws -> Operations.OrgsCreateOrUpdateCustomProperty.Output { + try await orgsCreateOrUpdateCustomProperty(Operations.OrgsCreateOrUpdateCustomProperty.Input( path: path, headers: headers, body: body @@ -2172,11 +2172,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)`. - public func orgs_sol_remove_hyphen_custom_hyphen_property( - path: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Output { - try await orgs_sol_remove_hyphen_custom_hyphen_property(Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input( + public func orgsRemoveCustomProperty( + path: Operations.OrgsRemoveCustomProperty.Input.Path, + headers: Operations.OrgsRemoveCustomProperty.Input.Headers = .init() + ) async throws -> Operations.OrgsRemoveCustomProperty.Output { + try await orgsRemoveCustomProperty(Operations.OrgsRemoveCustomProperty.Input( path: path, headers: headers )) @@ -2188,12 +2188,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)`. - public func orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos( - path: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path, - query: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output { - try await orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input( + public func orgsListCustomPropertiesValuesForRepos( + path: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Path, + query: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Query = .init(), + headers: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Headers = .init() + ) async throws -> Operations.OrgsListCustomPropertiesValuesForRepos.Output { + try await orgsListCustomPropertiesValuesForRepos(Operations.OrgsListCustomPropertiesValuesForRepos.Input( path: path, query: query, headers: headers @@ -2214,12 +2214,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)`. - public func orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Body - ) async throws -> Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output { - try await orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input( + public func orgsCreateOrUpdateCustomPropertiesValuesForRepos( + path: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Body + ) async throws -> Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Output { + try await orgsCreateOrUpdateCustomPropertiesValuesForRepos(Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input( path: path, headers: headers, body: body @@ -2231,12 +2231,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/public_members`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/get(orgs/list-public-members)`. - public func orgs_sol_list_hyphen_public_hyphen_members( - path: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Path, - query: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_public_hyphen_members.Output { - try await orgs_sol_list_hyphen_public_hyphen_members(Operations.orgs_sol_list_hyphen_public_hyphen_members.Input( + public func orgsListPublicMembers( + path: Operations.OrgsListPublicMembers.Input.Path, + query: Operations.OrgsListPublicMembers.Input.Query = .init(), + headers: Operations.OrgsListPublicMembers.Input.Headers = .init() + ) async throws -> Operations.OrgsListPublicMembers.Output { + try await orgsListPublicMembers(Operations.OrgsListPublicMembers.Input( path: path, query: query, headers: headers @@ -2248,8 +2248,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)`. - public func orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user(path: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output { - try await orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user(Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input(path: path)) + public func orgsCheckPublicMembershipForUser(path: Operations.OrgsCheckPublicMembershipForUser.Input.Path) async throws -> Operations.OrgsCheckPublicMembershipForUser.Output { + try await orgsCheckPublicMembershipForUser(Operations.OrgsCheckPublicMembershipForUser.Input(path: path)) } /// Set public organization membership for the authenticated user /// @@ -2259,11 +2259,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)`. - public func orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func orgsSetPublicMembershipForAuthenticatedUser( + path: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.OrgsSetPublicMembershipForAuthenticatedUser.Output { + try await orgsSetPublicMembershipForAuthenticatedUser(Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input( path: path, headers: headers )) @@ -2274,8 +2274,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)`. - public func orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(path: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path) async throws -> Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input(path: path)) + public func orgsRemovePublicMembershipForAuthenticatedUser(path: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input.Path) async throws -> Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Output { + try await orgsRemovePublicMembershipForAuthenticatedUser(Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input(path: path)) } /// Get organization ruleset history /// @@ -2283,12 +2283,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)`. - public func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history( - path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Path, - query: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Query = .init(), - headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output { - try await orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history(Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input( + public func orgsGetOrgRulesetHistory( + path: Operations.OrgsGetOrgRulesetHistory.Input.Path, + query: Operations.OrgsGetOrgRulesetHistory.Input.Query = .init(), + headers: Operations.OrgsGetOrgRulesetHistory.Input.Headers = .init() + ) async throws -> Operations.OrgsGetOrgRulesetHistory.Output { + try await orgsGetOrgRulesetHistory(Operations.OrgsGetOrgRulesetHistory.Input( path: path, query: query, headers: headers @@ -2300,11 +2300,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)`. - public func orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version( - path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Path, - headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output { - try await orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version(Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input( + public func orgsGetOrgRulesetVersion( + path: Operations.OrgsGetOrgRulesetVersion.Input.Path, + headers: Operations.OrgsGetOrgRulesetVersion.Input.Headers = .init() + ) async throws -> Operations.OrgsGetOrgRulesetVersion.Output { + try await orgsGetOrgRulesetVersion(Operations.OrgsGetOrgRulesetVersion.Input( path: path, headers: headers )) @@ -2317,11 +2317,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/security-managers`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/get(orgs/list-security-manager-teams)`. @available(*, deprecated) - public func orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams( - path: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Path, - headers: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output { - try await orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams(Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input( + public func orgsListSecurityManagerTeams( + path: Operations.OrgsListSecurityManagerTeams.Input.Path, + headers: Operations.OrgsListSecurityManagerTeams.Input.Headers = .init() + ) async throws -> Operations.OrgsListSecurityManagerTeams.Output { + try await orgsListSecurityManagerTeams(Operations.OrgsListSecurityManagerTeams.Input( path: path, headers: headers )) @@ -2334,8 +2334,8 @@ extension APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)`. @available(*, deprecated) - public func orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team(path: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input.Path) async throws -> Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Output { - try await orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team(Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input(path: path)) + public func orgsAddSecurityManagerTeam(path: Operations.OrgsAddSecurityManagerTeam.Input.Path) async throws -> Operations.OrgsAddSecurityManagerTeam.Output { + try await orgsAddSecurityManagerTeam(Operations.OrgsAddSecurityManagerTeam.Input(path: path)) } /// Remove a security manager team /// @@ -2345,8 +2345,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)`. @available(*, deprecated) - public func orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team(path: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input.Path) async throws -> Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Output { - try await orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team(Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input(path: path)) + public func orgsRemoveSecurityManagerTeam(path: Operations.OrgsRemoveSecurityManagerTeam.Input.Path) async throws -> Operations.OrgsRemoveSecurityManagerTeam.Output { + try await orgsRemoveSecurityManagerTeam(Operations.OrgsRemoveSecurityManagerTeam.Input(path: path)) } /// Enable or disable a security feature for an organization /// @@ -2362,11 +2362,11 @@ extension APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/{security_product}/{enablement}`. /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)`. @available(*, deprecated) - public func orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos( - path: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Path, - body: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body? = nil - ) async throws -> Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output { - try await orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos(Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input( + public func orgsEnableOrDisableSecurityProductOnAllOrgRepos( + path: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Path, + body: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body? = nil + ) async throws -> Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output { + try await orgsEnableOrDisableSecurityProductOnAllOrgRepos(Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input( path: path, body: body )) @@ -2377,11 +2377,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/memberships/orgs`. /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)`. - public func orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func orgsListMembershipsForAuthenticatedUser( + query: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.OrgsListMembershipsForAuthenticatedUser.Output { + try await orgsListMembershipsForAuthenticatedUser(Operations.OrgsListMembershipsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -2392,11 +2392,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)`. - public func orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func orgsGetMembershipForAuthenticatedUser( + path: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.OrgsGetMembershipForAuthenticatedUser.Output { + try await orgsGetMembershipForAuthenticatedUser(Operations.OrgsGetMembershipForAuthenticatedUser.Input( path: path, headers: headers )) @@ -2407,12 +2407,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)`. - public func orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func orgsUpdateMembershipForAuthenticatedUser( + path: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Headers = .init(), + body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body + ) async throws -> Operations.OrgsUpdateMembershipForAuthenticatedUser.Output { + try await orgsUpdateMembershipForAuthenticatedUser(Operations.OrgsUpdateMembershipForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -2429,11 +2429,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/orgs`. /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`. - public func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func orgsListForAuthenticatedUser( + query: Operations.OrgsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.OrgsListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.OrgsListForAuthenticatedUser.Output { + try await orgsListForAuthenticatedUser(Operations.OrgsListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -2446,12 +2446,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/orgs`. /// - Remark: Generated from `#/paths//users/{username}/orgs/get(orgs/list-for-user)`. - public func orgs_sol_list_hyphen_for_hyphen_user( - path: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_user.Output { - try await orgs_sol_list_hyphen_for_hyphen_user(Operations.orgs_sol_list_hyphen_for_hyphen_user.Input( + public func orgsListForUser( + path: Operations.OrgsListForUser.Input.Path, + query: Operations.OrgsListForUser.Input.Query = .init(), + headers: Operations.OrgsListForUser.Input.Headers = .init() + ) async throws -> Operations.OrgsListForUser.Output { + try await orgsListForUser(Operations.OrgsListForUser.Input( path: path, query: query, headers: headers @@ -2461,6 +2461,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -2476,7 +2485,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -2486,171 +2495,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -2658,54 +2667,54 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -2715,74 +2724,74 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// The URL to which the payloads will be delivered. /// /// - Remark: Generated from `#/components/schemas/webhook-config-url`. - public typealias webhook_hyphen_config_hyphen_url = Swift.String + public typealias WebhookConfigUrl = Swift.String /// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. /// /// - Remark: Generated from `#/components/schemas/webhook-config-content-type`. - public typealias webhook_hyphen_config_hyphen_content_hyphen_type = Swift.String + public typealias WebhookConfigContentType = Swift.String /// If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). /// /// - Remark: Generated from `#/components/schemas/webhook-config-secret`. - public typealias webhook_hyphen_config_hyphen_secret = Swift.String + public typealias WebhookConfigSecret = Swift.String /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl`. - @frozen public enum webhook_hyphen_config_hyphen_insecure_hyphen_ssl: Codable, Hashable, Sendable { + @frozen public enum WebhookConfigInsecureSsl: Codable, Hashable, Sendable { /// Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** /// /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl/case1`. @@ -2821,44 +2830,44 @@ public enum Components { /// Configuration object of the webhook /// /// - Remark: Generated from `#/components/schemas/webhook-config`. - public struct webhook_hyphen_config: Codable, Hashable, Sendable { + public struct WebhookConfig: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/webhook-config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/components/schemas/webhook-config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/components/schemas/webhook-config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/components/schemas/webhook-config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `webhook_hyphen_config`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `WebhookConfig`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// Delivery made by a webhook, without request and response information. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item`. - public struct hook_hyphen_delivery_hyphen_item: Codable, Hashable, Sendable { + public struct HookDeliveryItem: Codable, Hashable, Sendable { /// Unique identifier of the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/id`. @@ -2870,7 +2879,7 @@ public enum Components { /// Time when the webhook delivery occurred. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the webhook delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/redelivery`. @@ -2886,7 +2895,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/event`. @@ -2898,80 +2907,80 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/installation_id`. - public var installation_id: Swift.Int64? + public var installationId: Swift.Int64? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/repository_id`. - public var repository_id: Swift.Int64? + public var repositoryId: Swift.Int64? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/throttled_at`. - public var throttled_at: Foundation.Date? - /// Creates a new `hook_hyphen_delivery_hyphen_item`. + public var throttledAt: Foundation.Date? + /// Creates a new `HookDeliveryItem`. /// /// - Parameters: /// - id: Unique identifier of the webhook delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the webhook delivery occurred. + /// - deliveredAt: Time when the webhook delivery occurred. /// - redelivery: Whether the webhook delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Describes the response returned after attempting the delivery. - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. public init( id: Swift.Int64, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int64? = nil, - repository_id: Swift.Int64? = nil, - throttled_at: Foundation.Date? = nil + installationId: Swift.Int64? = nil, + repositoryId: Swift.Int64? = nil, + throttledAt: Foundation.Date? = nil ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt } public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -2980,25 +2989,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -3006,7 +3015,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -3016,30 +3025,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -3078,9 +3087,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -3095,7 +3104,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -3114,34 +3123,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Delivery made by a webhook. /// /// - Remark: Generated from `#/components/schemas/hook-delivery`. - public struct hook_hyphen_delivery: Codable, Hashable, Sendable { + public struct HookDelivery: Codable, Hashable, Sendable { /// Unique identifier of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/id`. @@ -3153,7 +3162,7 @@ public enum Components { /// Time when the delivery was delivered. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/redelivery`. @@ -3169,7 +3178,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/event`. @@ -3181,28 +3190,28 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/installation_id`. - public var installation_id: Swift.Int? + public var installationId: Swift.Int? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/repository_id`. - public var repository_id: Swift.Int? + public var repositoryId: Swift.Int? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/throttled_at`. - public var throttled_at: Foundation.Date? + public var throttledAt: Foundation.Date? /// The URL target of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public struct requestPayload: Codable, Hashable, Sendable { + public struct RequestPayload: Codable, Hashable, Sendable { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -3219,14 +3228,14 @@ public enum Components { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public struct payloadPayload: Codable, Hashable, Sendable { + public struct PayloadPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `payloadPayload`. + /// Creates a new `PayloadPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -3243,15 +3252,15 @@ public enum Components { /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public var payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? - /// Creates a new `requestPayload`. + public var payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? + /// Creates a new `RequestPayload`. /// /// - Parameters: /// - headers: The request headers sent with the webhook delivery. /// - payload: The webhook payload. public init( - headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? = nil, - payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? = nil + headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? = nil, + payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? = nil ) { self.headers = headers self.payload = payload @@ -3262,16 +3271,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public var request: Components.Schemas.hook_hyphen_delivery.requestPayload + public var request: Components.Schemas.HookDelivery.RequestPayload /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public struct responsePayload: Codable, Hashable, Sendable { + public struct ResponsePayload: Codable, Hashable, Sendable { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -3288,18 +3297,18 @@ public enum Components { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? /// The response payload received. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/payload`. public var payload: Swift.String? - /// Creates a new `responsePayload`. + /// Creates a new `ResponsePayload`. /// /// - Parameters: /// - headers: The response headers received when the delivery was made. /// - payload: The response payload received. public init( - headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? = nil, + headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? = nil, payload: Swift.String? = nil ) { self.headers = headers @@ -3311,54 +3320,54 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public var response: Components.Schemas.hook_hyphen_delivery.responsePayload - /// Creates a new `hook_hyphen_delivery`. + public var response: Components.Schemas.HookDelivery.ResponsePayload + /// Creates a new `HookDelivery`. /// /// - Parameters: /// - id: Unique identifier of the delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the delivery was delivered. + /// - deliveredAt: Time when the delivery was delivered. /// - redelivery: Whether the delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Description of the status of the attempted delivery - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. /// - url: The URL target of the delivery. /// - request: /// - response: public init( id: Swift.Int, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int? = nil, - repository_id: Swift.Int? = nil, - throttled_at: Foundation.Date? = nil, + installationId: Swift.Int? = nil, + repositoryId: Swift.Int? = nil, + throttledAt: Foundation.Date? = nil, url: Swift.String? = nil, - request: Components.Schemas.hook_hyphen_delivery.requestPayload, - response: Components.Schemas.hook_hyphen_delivery.responsePayload + request: Components.Schemas.HookDelivery.RequestPayload, + response: Components.Schemas.HookDelivery.ResponsePayload ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt self.url = url self.request = request self.response = response @@ -3366,16 +3375,16 @@ public enum Components { public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" case url case request case response @@ -3384,176 +3393,176 @@ public enum Components { /// The permissions granted to the user access token. /// /// - Remark: Generated from `#/components/schemas/app-permissions`. - public struct app_hyphen_permissions: Codable, Hashable, Sendable { + public struct AppPermissions: Codable, Hashable, Sendable { /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/actions`. - @frozen public enum actionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/actions`. - public var actions: Components.Schemas.app_hyphen_permissions.actionsPayload? + public var actions: Components.Schemas.AppPermissions.ActionsPayload? /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// /// - Remark: Generated from `#/components/schemas/app-permissions/administration`. - @frozen public enum administrationPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdministrationPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// /// - Remark: Generated from `#/components/schemas/app-permissions/administration`. - public var administration: Components.Schemas.app_hyphen_permissions.administrationPayload? + public var administration: Components.Schemas.AppPermissions.AdministrationPayload? /// The level of permission to grant the access token for checks on code. /// /// - Remark: Generated from `#/components/schemas/app-permissions/checks`. - @frozen public enum checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum ChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for checks on code. /// /// - Remark: Generated from `#/components/schemas/app-permissions/checks`. - public var checks: Components.Schemas.app_hyphen_permissions.checksPayload? + public var checks: Components.Schemas.AppPermissions.ChecksPayload? /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// /// - Remark: Generated from `#/components/schemas/app-permissions/codespaces`. - @frozen public enum codespacesPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodespacesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// /// - Remark: Generated from `#/components/schemas/app-permissions/codespaces`. - public var codespaces: Components.Schemas.app_hyphen_permissions.codespacesPayload? + public var codespaces: Components.Schemas.AppPermissions.CodespacesPayload? /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/contents`. - @frozen public enum contentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/contents`. - public var contents: Components.Schemas.app_hyphen_permissions.contentsPayload? + public var contents: Components.Schemas.AppPermissions.ContentsPayload? /// The level of permission to grant the access token to manage Dependabot secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/dependabot_secrets`. - @frozen public enum dependabot_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage Dependabot secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/dependabot_secrets`. - public var dependabot_secrets: Components.Schemas.app_hyphen_permissions.dependabot_secretsPayload? + public var dependabotSecrets: Components.Schemas.AppPermissions.DependabotSecretsPayload? /// The level of permission to grant the access token for deployments and deployment statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/deployments`. - @frozen public enum deploymentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DeploymentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for deployments and deployment statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/deployments`. - public var deployments: Components.Schemas.app_hyphen_permissions.deploymentsPayload? + public var deployments: Components.Schemas.AppPermissions.DeploymentsPayload? /// The level of permission to grant the access token for managing repository environments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/environments`. - @frozen public enum environmentsPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnvironmentsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for managing repository environments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/environments`. - public var environments: Components.Schemas.app_hyphen_permissions.environmentsPayload? + public var environments: Components.Schemas.AppPermissions.EnvironmentsPayload? /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// /// - Remark: Generated from `#/components/schemas/app-permissions/issues`. - @frozen public enum issuesPayload: String, Codable, Hashable, Sendable { + @frozen public enum IssuesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// /// - Remark: Generated from `#/components/schemas/app-permissions/issues`. - public var issues: Components.Schemas.app_hyphen_permissions.issuesPayload? + public var issues: Components.Schemas.AppPermissions.IssuesPayload? /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// /// - Remark: Generated from `#/components/schemas/app-permissions/metadata`. - @frozen public enum metadataPayload: String, Codable, Hashable, Sendable { + @frozen public enum MetadataPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// /// - Remark: Generated from `#/components/schemas/app-permissions/metadata`. - public var metadata: Components.Schemas.app_hyphen_permissions.metadataPayload? + public var metadata: Components.Schemas.AppPermissions.MetadataPayload? /// The level of permission to grant the access token for packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/packages`. - @frozen public enum packagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum PackagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/packages`. - public var packages: Components.Schemas.app_hyphen_permissions.packagesPayload? + public var packages: Components.Schemas.AppPermissions.PackagesPayload? /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pages`. - @frozen public enum pagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum PagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pages`. - public var pages: Components.Schemas.app_hyphen_permissions.pagesPayload? + public var pages: Components.Schemas.AppPermissions.PagesPayload? /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pull_requests`. - @frozen public enum pull_requestsPayload: String, Codable, Hashable, Sendable { + @frozen public enum PullRequestsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// /// - Remark: Generated from `#/components/schemas/app-permissions/pull_requests`. - public var pull_requests: Components.Schemas.app_hyphen_permissions.pull_requestsPayload? + public var pullRequests: Components.Schemas.AppPermissions.PullRequestsPayload? /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_custom_properties`. - @frozen public enum repository_custom_propertiesPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryCustomPropertiesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_custom_properties`. - public var repository_custom_properties: Components.Schemas.app_hyphen_permissions.repository_custom_propertiesPayload? + public var repositoryCustomProperties: Components.Schemas.AppPermissions.RepositoryCustomPropertiesPayload? /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_hooks`. - @frozen public enum repository_hooksPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryHooksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_hooks`. - public var repository_hooks: Components.Schemas.app_hyphen_permissions.repository_hooksPayload? + public var repositoryHooks: Components.Schemas.AppPermissions.RepositoryHooksPayload? /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_projects`. - @frozen public enum repository_projectsPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryProjectsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -3561,131 +3570,131 @@ public enum Components { /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// /// - Remark: Generated from `#/components/schemas/app-permissions/repository_projects`. - public var repository_projects: Components.Schemas.app_hyphen_permissions.repository_projectsPayload? + public var repositoryProjects: Components.Schemas.AppPermissions.RepositoryProjectsPayload? /// The level of permission to grant the access token to view and manage secret scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secret_scanning_alerts`. - @frozen public enum secret_scanning_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage secret scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secret_scanning_alerts`. - public var secret_scanning_alerts: Components.Schemas.app_hyphen_permissions.secret_scanning_alertsPayload? + public var secretScanningAlerts: Components.Schemas.AppPermissions.SecretScanningAlertsPayload? /// The level of permission to grant the access token to manage repository secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secrets`. - @frozen public enum secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage repository secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/secrets`. - public var secrets: Components.Schemas.app_hyphen_permissions.secretsPayload? + public var secrets: Components.Schemas.AppPermissions.SecretsPayload? /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/security_events`. - @frozen public enum security_eventsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecurityEventsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/security_events`. - public var security_events: Components.Schemas.app_hyphen_permissions.security_eventsPayload? + public var securityEvents: Components.Schemas.AppPermissions.SecurityEventsPayload? /// The level of permission to grant the access token to manage just a single file. /// /// - Remark: Generated from `#/components/schemas/app-permissions/single_file`. - @frozen public enum single_filePayload: String, Codable, Hashable, Sendable { + @frozen public enum SingleFilePayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage just a single file. /// /// - Remark: Generated from `#/components/schemas/app-permissions/single_file`. - public var single_file: Components.Schemas.app_hyphen_permissions.single_filePayload? + public var singleFile: Components.Schemas.AppPermissions.SingleFilePayload? /// The level of permission to grant the access token for commit statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/statuses`. - @frozen public enum statusesPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for commit statuses. /// /// - Remark: Generated from `#/components/schemas/app-permissions/statuses`. - public var statuses: Components.Schemas.app_hyphen_permissions.statusesPayload? + public var statuses: Components.Schemas.AppPermissions.StatusesPayload? /// The level of permission to grant the access token to manage Dependabot alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/vulnerability_alerts`. - @frozen public enum vulnerability_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum VulnerabilityAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage Dependabot alerts. /// /// - Remark: Generated from `#/components/schemas/app-permissions/vulnerability_alerts`. - public var vulnerability_alerts: Components.Schemas.app_hyphen_permissions.vulnerability_alertsPayload? + public var vulnerabilityAlerts: Components.Schemas.AppPermissions.VulnerabilityAlertsPayload? /// The level of permission to grant the access token to update GitHub Actions workflow files. /// /// - Remark: Generated from `#/components/schemas/app-permissions/workflows`. - @frozen public enum workflowsPayload: String, Codable, Hashable, Sendable { + @frozen public enum WorkflowsPayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token to update GitHub Actions workflow files. /// /// - Remark: Generated from `#/components/schemas/app-permissions/workflows`. - public var workflows: Components.Schemas.app_hyphen_permissions.workflowsPayload? + public var workflows: Components.Schemas.AppPermissions.WorkflowsPayload? /// The level of permission to grant the access token for organization teams and members. /// /// - Remark: Generated from `#/components/schemas/app-permissions/members`. - @frozen public enum membersPayload: String, Codable, Hashable, Sendable { + @frozen public enum MembersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for organization teams and members. /// /// - Remark: Generated from `#/components/schemas/app-permissions/members`. - public var members: Components.Schemas.app_hyphen_permissions.membersPayload? + public var members: Components.Schemas.AppPermissions.MembersPayload? /// The level of permission to grant the access token to manage access to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_administration`. - @frozen public enum organization_administrationPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationAdministrationPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage access to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_administration`. - public var organization_administration: Components.Schemas.app_hyphen_permissions.organization_administrationPayload? + public var organizationAdministration: Components.Schemas.AppPermissions.OrganizationAdministrationPayload? /// The level of permission to grant the access token for custom repository roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_roles`. - @frozen public enum organization_custom_rolesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomRolesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for custom repository roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_roles`. - public var organization_custom_roles: Components.Schemas.app_hyphen_permissions.organization_custom_rolesPayload? + public var organizationCustomRoles: Components.Schemas.AppPermissions.OrganizationCustomRolesPayload? /// The level of permission to grant the access token for custom organization roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_org_roles`. - @frozen public enum organization_custom_org_rolesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomOrgRolesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for custom organization roles management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_org_roles`. - public var organization_custom_org_roles: Components.Schemas.app_hyphen_permissions.organization_custom_org_rolesPayload? + public var organizationCustomOrgRoles: Components.Schemas.AppPermissions.OrganizationCustomOrgRolesPayload? /// The level of permission to grant the access token for custom property management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. - @frozen public enum organization_custom_propertiesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCustomPropertiesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -3693,85 +3702,85 @@ public enum Components { /// The level of permission to grant the access token for custom property management. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. - public var organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? + public var organizationCustomProperties: Components.Schemas.AppPermissions.OrganizationCustomPropertiesPayload? /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. - @frozen public enum organization_copilot_seat_managementPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationCopilotSeatManagementPayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. - public var organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? + public var organizationCopilotSeatManagement: Components.Schemas.AppPermissions.OrganizationCopilotSeatManagementPayload? /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_announcement_banners`. - @frozen public enum organization_announcement_bannersPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationAnnouncementBannersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_announcement_banners`. - public var organization_announcement_banners: Components.Schemas.app_hyphen_permissions.organization_announcement_bannersPayload? + public var organizationAnnouncementBanners: Components.Schemas.AppPermissions.OrganizationAnnouncementBannersPayload? /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_events`. - @frozen public enum organization_eventsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationEventsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" } /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_events`. - public var organization_events: Components.Schemas.app_hyphen_permissions.organization_eventsPayload? + public var organizationEvents: Components.Schemas.AppPermissions.OrganizationEventsPayload? /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_hooks`. - @frozen public enum organization_hooksPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationHooksPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_hooks`. - public var organization_hooks: Components.Schemas.app_hyphen_permissions.organization_hooksPayload? + public var organizationHooks: Components.Schemas.AppPermissions.OrganizationHooksPayload? /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_tokens`. - @frozen public enum organization_personal_access_tokensPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPersonalAccessTokensPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_tokens`. - public var organization_personal_access_tokens: Components.Schemas.app_hyphen_permissions.organization_personal_access_tokensPayload? + public var organizationPersonalAccessTokens: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokensPayload? /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_token_requests`. - @frozen public enum organization_personal_access_token_requestsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPersonalAccessTokenRequestsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_personal_access_token_requests`. - public var organization_personal_access_token_requests: Components.Schemas.app_hyphen_permissions.organization_personal_access_token_requestsPayload? + public var organizationPersonalAccessTokenRequests: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokenRequestsPayload? /// The level of permission to grant the access token for viewing an organization's plan. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. - @frozen public enum organization_planPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPlanPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" } /// The level of permission to grant the access token for viewing an organization's plan. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. - public var organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? + public var organizationPlan: Components.Schemas.AppPermissions.OrganizationPlanPayload? /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. - @frozen public enum organization_projectsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationProjectsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -3779,139 +3788,139 @@ public enum Components { /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. - public var organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? + public var organizationProjects: Components.Schemas.AppPermissions.OrganizationProjectsPayload? /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_packages`. - @frozen public enum organization_packagesPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPackagesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_packages`. - public var organization_packages: Components.Schemas.app_hyphen_permissions.organization_packagesPayload? + public var organizationPackages: Components.Schemas.AppPermissions.OrganizationPackagesPayload? /// The level of permission to grant the access token to manage organization secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_secrets`. - @frozen public enum organization_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage organization secrets. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_secrets`. - public var organization_secrets: Components.Schemas.app_hyphen_permissions.organization_secretsPayload? + public var organizationSecrets: Components.Schemas.AppPermissions.OrganizationSecretsPayload? /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_self_hosted_runners`. - @frozen public enum organization_self_hosted_runnersPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationSelfHostedRunnersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_self_hosted_runners`. - public var organization_self_hosted_runners: Components.Schemas.app_hyphen_permissions.organization_self_hosted_runnersPayload? + public var organizationSelfHostedRunners: Components.Schemas.AppPermissions.OrganizationSelfHostedRunnersPayload? /// The level of permission to grant the access token to view and manage users blocked by the organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_user_blocking`. - @frozen public enum organization_user_blockingPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationUserBlockingPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage users blocked by the organization. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_user_blocking`. - public var organization_user_blocking: Components.Schemas.app_hyphen_permissions.organization_user_blockingPayload? + public var organizationUserBlocking: Components.Schemas.AppPermissions.OrganizationUserBlockingPayload? /// The level of permission to grant the access token to manage team discussions and related comments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/team_discussions`. - @frozen public enum team_discussionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum TeamDiscussionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage team discussions and related comments. /// /// - Remark: Generated from `#/components/schemas/app-permissions/team_discussions`. - public var team_discussions: Components.Schemas.app_hyphen_permissions.team_discussionsPayload? + public var teamDiscussions: Components.Schemas.AppPermissions.TeamDiscussionsPayload? /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/email_addresses`. - @frozen public enum email_addressesPayload: String, Codable, Hashable, Sendable { + @frozen public enum EmailAddressesPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/email_addresses`. - public var email_addresses: Components.Schemas.app_hyphen_permissions.email_addressesPayload? + public var emailAddresses: Components.Schemas.AppPermissions.EmailAddressesPayload? /// The level of permission to grant the access token to manage the followers belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/followers`. - @frozen public enum followersPayload: String, Codable, Hashable, Sendable { + @frozen public enum FollowersPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage the followers belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/followers`. - public var followers: Components.Schemas.app_hyphen_permissions.followersPayload? + public var followers: Components.Schemas.AppPermissions.FollowersPayload? /// The level of permission to grant the access token to manage git SSH keys. /// /// - Remark: Generated from `#/components/schemas/app-permissions/git_ssh_keys`. - @frozen public enum git_ssh_keysPayload: String, Codable, Hashable, Sendable { + @frozen public enum GitSshKeysPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to manage git SSH keys. /// /// - Remark: Generated from `#/components/schemas/app-permissions/git_ssh_keys`. - public var git_ssh_keys: Components.Schemas.app_hyphen_permissions.git_ssh_keysPayload? + public var gitSshKeys: Components.Schemas.AppPermissions.GitSshKeysPayload? /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/gpg_keys`. - @frozen public enum gpg_keysPayload: String, Codable, Hashable, Sendable { + @frozen public enum GpgKeysPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/gpg_keys`. - public var gpg_keys: Components.Schemas.app_hyphen_permissions.gpg_keysPayload? + public var gpgKeys: Components.Schemas.AppPermissions.GpgKeysPayload? /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/interaction_limits`. - @frozen public enum interaction_limitsPayload: String, Codable, Hashable, Sendable { + @frozen public enum InteractionLimitsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// /// - Remark: Generated from `#/components/schemas/app-permissions/interaction_limits`. - public var interaction_limits: Components.Schemas.app_hyphen_permissions.interaction_limitsPayload? + public var interactionLimits: Components.Schemas.AppPermissions.InteractionLimitsPayload? /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/profile`. - @frozen public enum profilePayload: String, Codable, Hashable, Sendable { + @frozen public enum ProfilePayload: String, Codable, Hashable, Sendable, CaseIterable { case write = "write" } /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// /// - Remark: Generated from `#/components/schemas/app-permissions/profile`. - public var profile: Components.Schemas.app_hyphen_permissions.profilePayload? + public var profile: Components.Schemas.AppPermissions.ProfilePayload? /// The level of permission to grant the access token to list and manage repositories a user is starring. /// /// - Remark: Generated from `#/components/schemas/app-permissions/starring`. - @frozen public enum starringPayload: String, Codable, Hashable, Sendable { + @frozen public enum StarringPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" } /// The level of permission to grant the access token to list and manage repositories a user is starring. /// /// - Remark: Generated from `#/components/schemas/app-permissions/starring`. - public var starring: Components.Schemas.app_hyphen_permissions.starringPayload? - /// Creates a new `app_hyphen_permissions`. + public var starring: Components.Schemas.AppPermissions.StarringPayload? + /// Creates a new `AppPermissions`. /// /// - Parameters: /// - actions: The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. @@ -3919,145 +3928,145 @@ public enum Components { /// - checks: The level of permission to grant the access token for checks on code. /// - codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// - contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - /// - dependabot_secrets: The level of permission to grant the access token to manage Dependabot secrets. + /// - dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets. /// - deployments: The level of permission to grant the access token for deployments and deployment statuses. /// - environments: The level of permission to grant the access token for managing repository environments. /// - issues: The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// - metadata: The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// - packages: The level of permission to grant the access token for packages published to GitHub Packages. /// - pages: The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. - /// - pull_requests: The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. - /// - repository_custom_properties: The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. - /// - repository_hooks: The level of permission to grant the access token to manage the post-receive hooks for a repository. - /// - repository_projects: The level of permission to grant the access token to manage repository projects, columns, and cards. - /// - secret_scanning_alerts: The level of permission to grant the access token to view and manage secret scanning alerts. + /// - pullRequests: The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. + /// - repositoryCustomProperties: The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. + /// - repositoryHooks: The level of permission to grant the access token to manage the post-receive hooks for a repository. + /// - repositoryProjects: The level of permission to grant the access token to manage repository projects, columns, and cards. + /// - secretScanningAlerts: The level of permission to grant the access token to view and manage secret scanning alerts. /// - secrets: The level of permission to grant the access token to manage repository secrets. - /// - security_events: The level of permission to grant the access token to view and manage security events like code scanning alerts. - /// - single_file: The level of permission to grant the access token to manage just a single file. + /// - securityEvents: The level of permission to grant the access token to view and manage security events like code scanning alerts. + /// - singleFile: The level of permission to grant the access token to manage just a single file. /// - statuses: The level of permission to grant the access token for commit statuses. - /// - vulnerability_alerts: The level of permission to grant the access token to manage Dependabot alerts. + /// - vulnerabilityAlerts: The level of permission to grant the access token to manage Dependabot alerts. /// - workflows: The level of permission to grant the access token to update GitHub Actions workflow files. /// - members: The level of permission to grant the access token for organization teams and members. - /// - organization_administration: The level of permission to grant the access token to manage access to an organization. - /// - organization_custom_roles: The level of permission to grant the access token for custom repository roles management. - /// - organization_custom_org_roles: The level of permission to grant the access token for custom organization roles management. - /// - organization_custom_properties: The level of permission to grant the access token for custom property management. - /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. - /// - organization_announcement_banners: The level of permission to grant the access token to view and manage announcement banners for an organization. - /// - organization_events: The level of permission to grant the access token to view events triggered by an activity in an organization. - /// - organization_hooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. - /// - organization_personal_access_tokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. - /// - organization_personal_access_token_requests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. - /// - organization_plan: The level of permission to grant the access token for viewing an organization's plan. - /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). - /// - organization_packages: The level of permission to grant the access token for organization packages published to GitHub Packages. - /// - organization_secrets: The level of permission to grant the access token to manage organization secrets. - /// - organization_self_hosted_runners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. - /// - organization_user_blocking: The level of permission to grant the access token to view and manage users blocked by the organization. - /// - team_discussions: The level of permission to grant the access token to manage team discussions and related comments. - /// - email_addresses: The level of permission to grant the access token to manage the email addresses belonging to a user. + /// - organizationAdministration: The level of permission to grant the access token to manage access to an organization. + /// - organizationCustomRoles: The level of permission to grant the access token for custom repository roles management. + /// - organizationCustomOrgRoles: The level of permission to grant the access token for custom organization roles management. + /// - organizationCustomProperties: The level of permission to grant the access token for custom property management. + /// - organizationCopilotSeatManagement: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. + /// - organizationAnnouncementBanners: The level of permission to grant the access token to view and manage announcement banners for an organization. + /// - organizationEvents: The level of permission to grant the access token to view events triggered by an activity in an organization. + /// - organizationHooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. + /// - organizationPersonalAccessTokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. + /// - organizationPersonalAccessTokenRequests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. + /// - organizationPlan: The level of permission to grant the access token for viewing an organization's plan. + /// - organizationProjects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). + /// - organizationPackages: The level of permission to grant the access token for organization packages published to GitHub Packages. + /// - organizationSecrets: The level of permission to grant the access token to manage organization secrets. + /// - organizationSelfHostedRunners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. + /// - organizationUserBlocking: The level of permission to grant the access token to view and manage users blocked by the organization. + /// - teamDiscussions: The level of permission to grant the access token to manage team discussions and related comments. + /// - emailAddresses: The level of permission to grant the access token to manage the email addresses belonging to a user. /// - followers: The level of permission to grant the access token to manage the followers belonging to a user. - /// - git_ssh_keys: The level of permission to grant the access token to manage git SSH keys. - /// - gpg_keys: The level of permission to grant the access token to view and manage GPG keys belonging to a user. - /// - interaction_limits: The level of permission to grant the access token to view and manage interaction limits on a repository. + /// - gitSshKeys: The level of permission to grant the access token to manage git SSH keys. + /// - gpgKeys: The level of permission to grant the access token to view and manage GPG keys belonging to a user. + /// - interactionLimits: The level of permission to grant the access token to view and manage interaction limits on a repository. /// - profile: The level of permission to grant the access token to manage the profile settings belonging to a user. /// - starring: The level of permission to grant the access token to list and manage repositories a user is starring. public init( - actions: Components.Schemas.app_hyphen_permissions.actionsPayload? = nil, - administration: Components.Schemas.app_hyphen_permissions.administrationPayload? = nil, - checks: Components.Schemas.app_hyphen_permissions.checksPayload? = nil, - codespaces: Components.Schemas.app_hyphen_permissions.codespacesPayload? = nil, - contents: Components.Schemas.app_hyphen_permissions.contentsPayload? = nil, - dependabot_secrets: Components.Schemas.app_hyphen_permissions.dependabot_secretsPayload? = nil, - deployments: Components.Schemas.app_hyphen_permissions.deploymentsPayload? = nil, - environments: Components.Schemas.app_hyphen_permissions.environmentsPayload? = nil, - issues: Components.Schemas.app_hyphen_permissions.issuesPayload? = nil, - metadata: Components.Schemas.app_hyphen_permissions.metadataPayload? = nil, - packages: Components.Schemas.app_hyphen_permissions.packagesPayload? = nil, - pages: Components.Schemas.app_hyphen_permissions.pagesPayload? = nil, - pull_requests: Components.Schemas.app_hyphen_permissions.pull_requestsPayload? = nil, - repository_custom_properties: Components.Schemas.app_hyphen_permissions.repository_custom_propertiesPayload? = nil, - repository_hooks: Components.Schemas.app_hyphen_permissions.repository_hooksPayload? = nil, - repository_projects: Components.Schemas.app_hyphen_permissions.repository_projectsPayload? = nil, - secret_scanning_alerts: Components.Schemas.app_hyphen_permissions.secret_scanning_alertsPayload? = nil, - secrets: Components.Schemas.app_hyphen_permissions.secretsPayload? = nil, - security_events: Components.Schemas.app_hyphen_permissions.security_eventsPayload? = nil, - single_file: Components.Schemas.app_hyphen_permissions.single_filePayload? = nil, - statuses: Components.Schemas.app_hyphen_permissions.statusesPayload? = nil, - vulnerability_alerts: Components.Schemas.app_hyphen_permissions.vulnerability_alertsPayload? = nil, - workflows: Components.Schemas.app_hyphen_permissions.workflowsPayload? = nil, - members: Components.Schemas.app_hyphen_permissions.membersPayload? = nil, - organization_administration: Components.Schemas.app_hyphen_permissions.organization_administrationPayload? = nil, - organization_custom_roles: Components.Schemas.app_hyphen_permissions.organization_custom_rolesPayload? = nil, - organization_custom_org_roles: Components.Schemas.app_hyphen_permissions.organization_custom_org_rolesPayload? = nil, - organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? = nil, - organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? = nil, - organization_announcement_banners: Components.Schemas.app_hyphen_permissions.organization_announcement_bannersPayload? = nil, - organization_events: Components.Schemas.app_hyphen_permissions.organization_eventsPayload? = nil, - organization_hooks: Components.Schemas.app_hyphen_permissions.organization_hooksPayload? = nil, - organization_personal_access_tokens: Components.Schemas.app_hyphen_permissions.organization_personal_access_tokensPayload? = nil, - organization_personal_access_token_requests: Components.Schemas.app_hyphen_permissions.organization_personal_access_token_requestsPayload? = nil, - organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? = nil, - organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? = nil, - organization_packages: Components.Schemas.app_hyphen_permissions.organization_packagesPayload? = nil, - organization_secrets: Components.Schemas.app_hyphen_permissions.organization_secretsPayload? = nil, - organization_self_hosted_runners: Components.Schemas.app_hyphen_permissions.organization_self_hosted_runnersPayload? = nil, - organization_user_blocking: Components.Schemas.app_hyphen_permissions.organization_user_blockingPayload? = nil, - team_discussions: Components.Schemas.app_hyphen_permissions.team_discussionsPayload? = nil, - email_addresses: Components.Schemas.app_hyphen_permissions.email_addressesPayload? = nil, - followers: Components.Schemas.app_hyphen_permissions.followersPayload? = nil, - git_ssh_keys: Components.Schemas.app_hyphen_permissions.git_ssh_keysPayload? = nil, - gpg_keys: Components.Schemas.app_hyphen_permissions.gpg_keysPayload? = nil, - interaction_limits: Components.Schemas.app_hyphen_permissions.interaction_limitsPayload? = nil, - profile: Components.Schemas.app_hyphen_permissions.profilePayload? = nil, - starring: Components.Schemas.app_hyphen_permissions.starringPayload? = nil + actions: Components.Schemas.AppPermissions.ActionsPayload? = nil, + administration: Components.Schemas.AppPermissions.AdministrationPayload? = nil, + checks: Components.Schemas.AppPermissions.ChecksPayload? = nil, + codespaces: Components.Schemas.AppPermissions.CodespacesPayload? = nil, + contents: Components.Schemas.AppPermissions.ContentsPayload? = nil, + dependabotSecrets: Components.Schemas.AppPermissions.DependabotSecretsPayload? = nil, + deployments: Components.Schemas.AppPermissions.DeploymentsPayload? = nil, + environments: Components.Schemas.AppPermissions.EnvironmentsPayload? = nil, + issues: Components.Schemas.AppPermissions.IssuesPayload? = nil, + metadata: Components.Schemas.AppPermissions.MetadataPayload? = nil, + packages: Components.Schemas.AppPermissions.PackagesPayload? = nil, + pages: Components.Schemas.AppPermissions.PagesPayload? = nil, + pullRequests: Components.Schemas.AppPermissions.PullRequestsPayload? = nil, + repositoryCustomProperties: Components.Schemas.AppPermissions.RepositoryCustomPropertiesPayload? = nil, + repositoryHooks: Components.Schemas.AppPermissions.RepositoryHooksPayload? = nil, + repositoryProjects: Components.Schemas.AppPermissions.RepositoryProjectsPayload? = nil, + secretScanningAlerts: Components.Schemas.AppPermissions.SecretScanningAlertsPayload? = nil, + secrets: Components.Schemas.AppPermissions.SecretsPayload? = nil, + securityEvents: Components.Schemas.AppPermissions.SecurityEventsPayload? = nil, + singleFile: Components.Schemas.AppPermissions.SingleFilePayload? = nil, + statuses: Components.Schemas.AppPermissions.StatusesPayload? = nil, + vulnerabilityAlerts: Components.Schemas.AppPermissions.VulnerabilityAlertsPayload? = nil, + workflows: Components.Schemas.AppPermissions.WorkflowsPayload? = nil, + members: Components.Schemas.AppPermissions.MembersPayload? = nil, + organizationAdministration: Components.Schemas.AppPermissions.OrganizationAdministrationPayload? = nil, + organizationCustomRoles: Components.Schemas.AppPermissions.OrganizationCustomRolesPayload? = nil, + organizationCustomOrgRoles: Components.Schemas.AppPermissions.OrganizationCustomOrgRolesPayload? = nil, + organizationCustomProperties: Components.Schemas.AppPermissions.OrganizationCustomPropertiesPayload? = nil, + organizationCopilotSeatManagement: Components.Schemas.AppPermissions.OrganizationCopilotSeatManagementPayload? = nil, + organizationAnnouncementBanners: Components.Schemas.AppPermissions.OrganizationAnnouncementBannersPayload? = nil, + organizationEvents: Components.Schemas.AppPermissions.OrganizationEventsPayload? = nil, + organizationHooks: Components.Schemas.AppPermissions.OrganizationHooksPayload? = nil, + organizationPersonalAccessTokens: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokensPayload? = nil, + organizationPersonalAccessTokenRequests: Components.Schemas.AppPermissions.OrganizationPersonalAccessTokenRequestsPayload? = nil, + organizationPlan: Components.Schemas.AppPermissions.OrganizationPlanPayload? = nil, + organizationProjects: Components.Schemas.AppPermissions.OrganizationProjectsPayload? = nil, + organizationPackages: Components.Schemas.AppPermissions.OrganizationPackagesPayload? = nil, + organizationSecrets: Components.Schemas.AppPermissions.OrganizationSecretsPayload? = nil, + organizationSelfHostedRunners: Components.Schemas.AppPermissions.OrganizationSelfHostedRunnersPayload? = nil, + organizationUserBlocking: Components.Schemas.AppPermissions.OrganizationUserBlockingPayload? = nil, + teamDiscussions: Components.Schemas.AppPermissions.TeamDiscussionsPayload? = nil, + emailAddresses: Components.Schemas.AppPermissions.EmailAddressesPayload? = nil, + followers: Components.Schemas.AppPermissions.FollowersPayload? = nil, + gitSshKeys: Components.Schemas.AppPermissions.GitSshKeysPayload? = nil, + gpgKeys: Components.Schemas.AppPermissions.GpgKeysPayload? = nil, + interactionLimits: Components.Schemas.AppPermissions.InteractionLimitsPayload? = nil, + profile: Components.Schemas.AppPermissions.ProfilePayload? = nil, + starring: Components.Schemas.AppPermissions.StarringPayload? = nil ) { self.actions = actions self.administration = administration self.checks = checks self.codespaces = codespaces self.contents = contents - self.dependabot_secrets = dependabot_secrets + self.dependabotSecrets = dependabotSecrets self.deployments = deployments self.environments = environments self.issues = issues self.metadata = metadata self.packages = packages self.pages = pages - self.pull_requests = pull_requests - self.repository_custom_properties = repository_custom_properties - self.repository_hooks = repository_hooks - self.repository_projects = repository_projects - self.secret_scanning_alerts = secret_scanning_alerts + self.pullRequests = pullRequests + self.repositoryCustomProperties = repositoryCustomProperties + self.repositoryHooks = repositoryHooks + self.repositoryProjects = repositoryProjects + self.secretScanningAlerts = secretScanningAlerts self.secrets = secrets - self.security_events = security_events - self.single_file = single_file + self.securityEvents = securityEvents + self.singleFile = singleFile self.statuses = statuses - self.vulnerability_alerts = vulnerability_alerts + self.vulnerabilityAlerts = vulnerabilityAlerts self.workflows = workflows self.members = members - self.organization_administration = organization_administration - self.organization_custom_roles = organization_custom_roles - self.organization_custom_org_roles = organization_custom_org_roles - self.organization_custom_properties = organization_custom_properties - self.organization_copilot_seat_management = organization_copilot_seat_management - self.organization_announcement_banners = organization_announcement_banners - self.organization_events = organization_events - self.organization_hooks = organization_hooks - self.organization_personal_access_tokens = organization_personal_access_tokens - self.organization_personal_access_token_requests = organization_personal_access_token_requests - self.organization_plan = organization_plan - self.organization_projects = organization_projects - self.organization_packages = organization_packages - self.organization_secrets = organization_secrets - self.organization_self_hosted_runners = organization_self_hosted_runners - self.organization_user_blocking = organization_user_blocking - self.team_discussions = team_discussions - self.email_addresses = email_addresses + self.organizationAdministration = organizationAdministration + self.organizationCustomRoles = organizationCustomRoles + self.organizationCustomOrgRoles = organizationCustomOrgRoles + self.organizationCustomProperties = organizationCustomProperties + self.organizationCopilotSeatManagement = organizationCopilotSeatManagement + self.organizationAnnouncementBanners = organizationAnnouncementBanners + self.organizationEvents = organizationEvents + self.organizationHooks = organizationHooks + self.organizationPersonalAccessTokens = organizationPersonalAccessTokens + self.organizationPersonalAccessTokenRequests = organizationPersonalAccessTokenRequests + self.organizationPlan = organizationPlan + self.organizationProjects = organizationProjects + self.organizationPackages = organizationPackages + self.organizationSecrets = organizationSecrets + self.organizationSelfHostedRunners = organizationSelfHostedRunners + self.organizationUserBlocking = organizationUserBlocking + self.teamDiscussions = teamDiscussions + self.emailAddresses = emailAddresses self.followers = followers - self.git_ssh_keys = git_ssh_keys - self.gpg_keys = gpg_keys - self.interaction_limits = interaction_limits + self.gitSshKeys = gitSshKeys + self.gpgKeys = gpgKeys + self.interactionLimits = interactionLimits self.profile = profile self.starring = starring } @@ -4067,47 +4076,47 @@ public enum Components { case checks case codespaces case contents - case dependabot_secrets + case dependabotSecrets = "dependabot_secrets" case deployments case environments case issues case metadata case packages case pages - case pull_requests - case repository_custom_properties - case repository_hooks - case repository_projects - case secret_scanning_alerts + case pullRequests = "pull_requests" + case repositoryCustomProperties = "repository_custom_properties" + case repositoryHooks = "repository_hooks" + case repositoryProjects = "repository_projects" + case secretScanningAlerts = "secret_scanning_alerts" case secrets - case security_events - case single_file + case securityEvents = "security_events" + case singleFile = "single_file" case statuses - case vulnerability_alerts + case vulnerabilityAlerts = "vulnerability_alerts" case workflows case members - case organization_administration - case organization_custom_roles - case organization_custom_org_roles - case organization_custom_properties - case organization_copilot_seat_management - case organization_announcement_banners - case organization_events - case organization_hooks - case organization_personal_access_tokens - case organization_personal_access_token_requests - case organization_plan - case organization_projects - case organization_packages - case organization_secrets - case organization_self_hosted_runners - case organization_user_blocking - case team_discussions - case email_addresses + case organizationAdministration = "organization_administration" + case organizationCustomRoles = "organization_custom_roles" + case organizationCustomOrgRoles = "organization_custom_org_roles" + case organizationCustomProperties = "organization_custom_properties" + case organizationCopilotSeatManagement = "organization_copilot_seat_management" + case organizationAnnouncementBanners = "organization_announcement_banners" + case organizationEvents = "organization_events" + case organizationHooks = "organization_hooks" + case organizationPersonalAccessTokens = "organization_personal_access_tokens" + case organizationPersonalAccessTokenRequests = "organization_personal_access_token_requests" + case organizationPlan = "organization_plan" + case organizationProjects = "organization_projects" + case organizationPackages = "organization_packages" + case organizationSecrets = "organization_secrets" + case organizationSelfHostedRunners = "organization_self_hosted_runners" + case organizationUserBlocking = "organization_user_blocking" + case teamDiscussions = "team_discussions" + case emailAddresses = "email_addresses" case followers - case git_ssh_keys - case gpg_keys - case interaction_limits + case gitSshKeys = "git_ssh_keys" + case gpgKeys = "gpg_keys" + case interactionLimits = "interaction_limits" case profile case starring } @@ -4115,7 +4124,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -4125,160 +4134,160 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Installation /// /// - Remark: Generated from `#/components/schemas/installation`. - public struct installation: Codable, Hashable, Sendable { + public struct Installation: Codable, Hashable, Sendable { /// The ID of the installation. /// /// - Remark: Generated from `#/components/schemas/installation/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/installation/account`. - public struct accountPayload: Codable, Hashable, Sendable { + public struct AccountPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/installation/account/value1`. - public var value1: Components.Schemas.simple_hyphen_user? + public var value1: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/components/schemas/installation/account/value2`. - public var value2: Components.Schemas.enterprise? - /// Creates a new `accountPayload`. + public var value2: Components.Schemas.Enterprise? + /// Creates a new `AccountPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.simple_hyphen_user? = nil, - value2: Components.Schemas.enterprise? = nil + value1: Components.Schemas.SimpleUser? = nil, + value2: Components.Schemas.Enterprise? = nil ) { self.value1 = value1 self.value2 = value2 @@ -4286,19 +4295,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -4306,152 +4315,152 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/installation/account`. - public var account: Components.Schemas.installation.accountPayload? + public var account: Components.Schemas.Installation.AccountPayload? /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/installation/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case selected = "selected" } /// Describe whether all repositories have been selected or there's a selection involved /// /// - Remark: Generated from `#/components/schemas/installation/repository_selection`. - public var repository_selection: Components.Schemas.installation.repository_selectionPayload + public var repositorySelection: Components.Schemas.Installation.RepositorySelectionPayload /// - Remark: Generated from `#/components/schemas/installation/access_tokens_url`. - public var access_tokens_url: Swift.String + public var accessTokensUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/installation/app_id`. - public var app_id: Swift.Int + public var appId: Swift.Int /// The ID of the user or organization this token is being scoped to. /// /// - Remark: Generated from `#/components/schemas/installation/target_id`. - public var target_id: Swift.Int + public var targetId: Swift.Int /// - Remark: Generated from `#/components/schemas/installation/target_type`. - public var target_type: Swift.String + public var targetType: Swift.String /// - Remark: Generated from `#/components/schemas/installation/permissions`. - public var permissions: Components.Schemas.app_hyphen_permissions + public var permissions: Components.Schemas.AppPermissions /// - Remark: Generated from `#/components/schemas/installation/events`. public var events: [Swift.String] /// - Remark: Generated from `#/components/schemas/installation/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/installation/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/installation/single_file_name`. - public var single_file_name: Swift.String? + public var singleFileName: Swift.String? /// - Remark: Generated from `#/components/schemas/installation/has_multiple_single_files`. - public var has_multiple_single_files: Swift.Bool? + public var hasMultipleSingleFiles: Swift.Bool? /// - Remark: Generated from `#/components/schemas/installation/single_file_paths`. - public var single_file_paths: [Swift.String]? + public var singleFilePaths: [Swift.String]? /// - Remark: Generated from `#/components/schemas/installation/app_slug`. - public var app_slug: Swift.String + public var appSlug: Swift.String /// - Remark: Generated from `#/components/schemas/installation/suspended_by`. - public var suspended_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var suspendedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/installation/suspended_at`. - public var suspended_at: Foundation.Date? + public var suspendedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/installation/contact_email`. - public var contact_email: Swift.String? - /// Creates a new `installation`. + public var contactEmail: Swift.String? + /// Creates a new `Installation`. /// /// - Parameters: /// - id: The ID of the installation. /// - account: - /// - repository_selection: Describe whether all repositories have been selected or there's a selection involved - /// - access_tokens_url: - /// - repositories_url: - /// - html_url: - /// - app_id: - /// - target_id: The ID of the user or organization this token is being scoped to. - /// - target_type: + /// - repositorySelection: Describe whether all repositories have been selected or there's a selection involved + /// - accessTokensUrl: + /// - repositoriesUrl: + /// - htmlUrl: + /// - appId: + /// - targetId: The ID of the user or organization this token is being scoped to. + /// - targetType: /// - permissions: /// - events: - /// - created_at: - /// - updated_at: - /// - single_file_name: - /// - has_multiple_single_files: - /// - single_file_paths: - /// - app_slug: - /// - suspended_by: - /// - suspended_at: - /// - contact_email: + /// - createdAt: + /// - updatedAt: + /// - singleFileName: + /// - hasMultipleSingleFiles: + /// - singleFilePaths: + /// - appSlug: + /// - suspendedBy: + /// - suspendedAt: + /// - contactEmail: public init( id: Swift.Int, - account: Components.Schemas.installation.accountPayload? = nil, - repository_selection: Components.Schemas.installation.repository_selectionPayload, - access_tokens_url: Swift.String, - repositories_url: Swift.String, - html_url: Swift.String, - app_id: Swift.Int, - target_id: Swift.Int, - target_type: Swift.String, - permissions: Components.Schemas.app_hyphen_permissions, + account: Components.Schemas.Installation.AccountPayload? = nil, + repositorySelection: Components.Schemas.Installation.RepositorySelectionPayload, + accessTokensUrl: Swift.String, + repositoriesUrl: Swift.String, + htmlUrl: Swift.String, + appId: Swift.Int, + targetId: Swift.Int, + targetType: Swift.String, + permissions: Components.Schemas.AppPermissions, events: [Swift.String], - created_at: Foundation.Date, - updated_at: Foundation.Date, - single_file_name: Swift.String? = nil, - has_multiple_single_files: Swift.Bool? = nil, - single_file_paths: [Swift.String]? = nil, - app_slug: Swift.String, - suspended_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - suspended_at: Foundation.Date? = nil, - contact_email: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + singleFileName: Swift.String? = nil, + hasMultipleSingleFiles: Swift.Bool? = nil, + singleFilePaths: [Swift.String]? = nil, + appSlug: Swift.String, + suspendedBy: Components.Schemas.NullableSimpleUser? = nil, + suspendedAt: Foundation.Date? = nil, + contactEmail: Swift.String? = nil ) { self.id = id self.account = account - self.repository_selection = repository_selection - self.access_tokens_url = access_tokens_url - self.repositories_url = repositories_url - self.html_url = html_url - self.app_id = app_id - self.target_id = target_id - self.target_type = target_type + self.repositorySelection = repositorySelection + self.accessTokensUrl = accessTokensUrl + self.repositoriesUrl = repositoriesUrl + self.htmlUrl = htmlUrl + self.appId = appId + self.targetId = targetId + self.targetType = targetType self.permissions = permissions self.events = events - self.created_at = created_at - self.updated_at = updated_at - self.single_file_name = single_file_name - self.has_multiple_single_files = has_multiple_single_files - self.single_file_paths = single_file_paths - self.app_slug = app_slug - self.suspended_by = suspended_by - self.suspended_at = suspended_at - self.contact_email = contact_email + self.createdAt = createdAt + self.updatedAt = updatedAt + self.singleFileName = singleFileName + self.hasMultipleSingleFiles = hasMultipleSingleFiles + self.singleFilePaths = singleFilePaths + self.appSlug = appSlug + self.suspendedBy = suspendedBy + self.suspendedAt = suspendedAt + self.contactEmail = contactEmail } public enum CodingKeys: String, CodingKey { case id case account - case repository_selection - case access_tokens_url - case repositories_url - case html_url - case app_id - case target_id - case target_type + case repositorySelection = "repository_selection" + case accessTokensUrl = "access_tokens_url" + case repositoriesUrl = "repositories_url" + case htmlUrl = "html_url" + case appId = "app_id" + case targetId = "target_id" + case targetType = "target_type" case permissions case events - case created_at - case updated_at - case single_file_name - case has_multiple_single_files - case single_file_paths - case app_slug - case suspended_by - case suspended_at - case contact_email + case createdAt = "created_at" + case updatedAt = "updated_at" + case singleFileName = "single_file_name" + case hasMultipleSingleFiles = "has_multiple_single_files" + case singleFilePaths = "single_file_paths" + case appSlug = "app_slug" + case suspendedBy = "suspended_by" + case suspendedAt = "suspended_at" + case contactEmail = "contact_email" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -4461,40 +4470,40 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// The type of issue. /// /// - Remark: Generated from `#/components/schemas/issue-type`. - public struct issue_hyphen_type: Codable, Hashable, Sendable { + public struct IssueType: Codable, Hashable, Sendable { /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/id`. @@ -4502,7 +4511,7 @@ public enum Components { /// The node identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/name`. @@ -4514,7 +4523,7 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -4527,76 +4536,76 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - public var color: Components.Schemas.issue_hyphen_type.colorPayload? + public var color: Components.Schemas.IssueType.ColorPayload? /// The time the issue type created. /// /// - Remark: Generated from `#/components/schemas/issue-type/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The time the issue type last updated. /// /// - Remark: Generated from `#/components/schemas/issue-type/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The enabled state of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/is_enabled`. - public var is_enabled: Swift.Bool? - /// Creates a new `issue_hyphen_type`. + public var isEnabled: Swift.Bool? + /// Creates a new `IssueType`. /// /// - Parameters: /// - id: The unique identifier of the issue type. - /// - node_id: The node identifier of the issue type. + /// - nodeId: The node identifier of the issue type. /// - name: The name of the issue type. /// - description: The description of the issue type. /// - color: The color of the issue type. - /// - created_at: The time the issue type created. - /// - updated_at: The time the issue type last updated. - /// - is_enabled: The enabled state of the issue type. + /// - createdAt: The time the issue type created. + /// - updatedAt: The time the issue type last updated. + /// - isEnabled: The enabled state of the issue type. public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, description: Swift.String? = nil, - color: Components.Schemas.issue_hyphen_type.colorPayload? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - is_enabled: Swift.Bool? = nil + color: Components.Schemas.IssueType.ColorPayload? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + isEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.description = description self.color = color - self.created_at = created_at - self.updated_at = updated_at - self.is_enabled = is_enabled + self.createdAt = createdAt + self.updatedAt = updatedAt + self.isEnabled = isEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case description case color - case created_at - case updated_at - case is_enabled + case createdAt = "created_at" + case updatedAt = "updated_at" + case isEnabled = "is_enabled" } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4604,21 +4613,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4626,27 +4635,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4656,21 +4665,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4678,21 +4687,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4700,21 +4709,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4722,21 +4731,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -4744,62 +4753,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -4807,121 +4816,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -4929,13 +4938,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -4946,7 +4955,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4976,542 +4985,542 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// A GitHub organization. /// /// - Remark: Generated from `#/components/schemas/organization-simple`. - public struct organization_hyphen_simple: Codable, Hashable, Sendable { + public struct OrganizationSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-simple/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/public_members_url`. - public var public_members_url: Swift.String + public var publicMembersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-simple/description`. public var description: Swift.String? - /// Creates a new `organization_hyphen_simple`. + /// Creates a new `OrganizationSimple`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - repos_url: - /// - events_url: - /// - hooks_url: - /// - issues_url: - /// - members_url: - /// - public_members_url: - /// - avatar_url: + /// - reposUrl: + /// - eventsUrl: + /// - hooksUrl: + /// - issuesUrl: + /// - membersUrl: + /// - publicMembersUrl: + /// - avatarUrl: /// - description: public init( login: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - hooks_url: Swift.String, - issues_url: Swift.String, - members_url: Swift.String, - public_members_url: Swift.String, - avatar_url: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + hooksUrl: Swift.String, + issuesUrl: Swift.String, + membersUrl: Swift.String, + publicMembersUrl: Swift.String, + avatarUrl: Swift.String, description: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repos_url = repos_url - self.events_url = events_url - self.hooks_url = hooks_url - self.issues_url = issues_url - self.members_url = members_url - self.public_members_url = public_members_url - self.avatar_url = avatar_url + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.hooksUrl = hooksUrl + self.issuesUrl = issuesUrl + self.membersUrl = membersUrl + self.publicMembersUrl = publicMembersUrl + self.avatarUrl = avatarUrl self.description = description } public enum CodingKeys: String, CodingKey { case login case id - case node_id + case nodeId = "node_id" case url - case repos_url - case events_url - case hooks_url - case issues_url - case members_url - case public_members_url - case avatar_url + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case hooksUrl = "hooks_url" + case issuesUrl = "issues_url" + case membersUrl = "members_url" + case publicMembersUrl = "public_members_url" + case avatarUrl = "avatar_url" case description } } /// Organization Full /// /// - Remark: Generated from `#/components/schemas/organization-full`. - public struct organization_hyphen_full: Codable, Hashable, Sendable { + public struct OrganizationFull: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-full/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/public_members_url`. - public var public_members_url: Swift.String + public var publicMembersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/name`. @@ -5525,33 +5534,33 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/is_verified`. - public var is_verified: Swift.Bool? + public var isVerified: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/has_organization_projects`. - public var has_organization_projects: Swift.Bool + public var hasOrganizationProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/organization-full/has_repository_projects`. - public var has_repository_projects: Swift.Bool + public var hasRepositoryProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/organization-full/public_repos`. - public var public_repos: Swift.Int + public var publicRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/public_gists`. - public var public_gists: Swift.Int + public var publicGists: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/followers`. public var followers: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/following`. public var following: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/total_private_repos`. - public var total_private_repos: Swift.Int? + public var totalPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/owned_private_repos`. - public var owned_private_repos: Swift.Int? + public var ownedPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/private_gists`. - public var private_gists: Swift.Int? + public var privateGists: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/disk_usage`. - public var disk_usage: Swift.Int? + public var diskUsage: Swift.Int? /// The number of collaborators on private repositories. /// /// This field may be null if the number of private repositories is over 50,000. @@ -5559,74 +5568,74 @@ public enum Components { /// - 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? + public var billingEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/plan`. - public struct planPayload: Codable, Hashable, Sendable { + public struct PlanPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-full/plan/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/organization-full/plan/space`. public var space: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/plan/private_repos`. - public var private_repos: Swift.Int + public var privateRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-full/plan/filled_seats`. - public var filled_seats: Swift.Int? + public var filledSeats: Swift.Int? /// - Remark: Generated from `#/components/schemas/organization-full/plan/seats`. public var seats: Swift.Int? - /// Creates a new `planPayload`. + /// Creates a new `PlanPayload`. /// /// - Parameters: /// - name: /// - space: - /// - private_repos: - /// - filled_seats: + /// - privateRepos: + /// - filledSeats: /// - seats: public init( name: Swift.String, space: Swift.Int, - private_repos: Swift.Int, - filled_seats: Swift.Int? = nil, + privateRepos: Swift.Int, + filledSeats: Swift.Int? = nil, seats: Swift.Int? = nil ) { self.name = name self.space = space - self.private_repos = private_repos - self.filled_seats = filled_seats + self.privateRepos = privateRepos + self.filledSeats = filledSeats self.seats = seats } public enum CodingKeys: String, CodingKey { case name case space - case private_repos - case filled_seats + case privateRepos = "private_repos" + case filledSeats = "filled_seats" case seats } } /// - Remark: Generated from `#/components/schemas/organization-full/plan`. - public var plan: Components.Schemas.organization_hyphen_full.planPayload? + public var plan: Components.Schemas.OrganizationFull.PlanPayload? /// - Remark: Generated from `#/components/schemas/organization-full/default_repository_permission`. - public var default_repository_permission: Swift.String? + public var defaultRepositoryPermission: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_repositories`. - public var members_can_create_repositories: Swift.Bool? + public var membersCanCreateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/two_factor_requirement_enabled`. - public var two_factor_requirement_enabled: Swift.Bool? + public var twoFactorRequirementEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_allowed_repository_creation_type`. - public var members_allowed_repository_creation_type: Swift.String? + public var membersAllowedRepositoryCreationType: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_public_repositories`. - public var members_can_create_public_repositories: Swift.Bool? + public var membersCanCreatePublicRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_private_repositories`. - public var members_can_create_private_repositories: Swift.Bool? + public var membersCanCreatePrivateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_internal_repositories`. - public var members_can_create_internal_repositories: Swift.Bool? + public var membersCanCreateInternalRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_pages`. - public var members_can_create_pages: Swift.Bool? + public var membersCanCreatePages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_public_pages`. - public var members_can_create_public_pages: Swift.Bool? + public var membersCanCreatePublicPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_create_private_pages`. - public var members_can_create_private_pages: Swift.Bool? + public var membersCanCreatePrivatePages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/members_can_fork_private_repositories`. - public var members_can_fork_private_repositories: Swift.Bool? + public var membersCanForkPrivateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization. @@ -5635,7 +5644,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/advanced_security_enabled_for_new_repositories`. @available(*, deprecated) - public var advanced_security_enabled_for_new_repositories: Swift.Bool? + public var advancedSecurityEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization. @@ -5644,7 +5653,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/dependabot_alerts_enabled_for_new_repositories`. @available(*, deprecated) - public var dependabot_alerts_enabled_for_new_repositories: Swift.Bool? + public var dependabotAlertsEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization. @@ -5653,7 +5662,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/dependabot_security_updates_enabled_for_new_repositories`. @available(*, deprecated) - public var dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? + public var dependabotSecurityUpdatesEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization. @@ -5662,7 +5671,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/dependency_graph_enabled_for_new_repositories`. @available(*, deprecated) - public var dependency_graph_enabled_for_new_repositories: Swift.Bool? + public var dependencyGraphEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning is automatically enabled for new repositories and repositories transferred to this organization. @@ -5671,7 +5680,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/secret_scanning_enabled_for_new_repositories`. @available(*, deprecated) - public var secret_scanning_enabled_for_new_repositories: Swift.Bool? + public var secretScanningEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization. @@ -5680,282 +5689,282 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-full/secret_scanning_push_protection_enabled_for_new_repositories`. @available(*, deprecated) - public var secret_scanning_push_protection_enabled_for_new_repositories: Swift.Bool? + public var secretScanningPushProtectionEnabledForNewRepositories: Swift.Bool? /// Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. /// /// - Remark: Generated from `#/components/schemas/organization-full/secret_scanning_push_protection_custom_link_enabled`. - public var secret_scanning_push_protection_custom_link_enabled: Swift.Bool? + public var secretScanningPushProtectionCustomLinkEnabled: Swift.Bool? /// An optional URL string to display to contributors who are blocked from pushing a secret. /// /// - Remark: Generated from `#/components/schemas/organization-full/secret_scanning_push_protection_custom_link`. - public var secret_scanning_push_protection_custom_link: Swift.String? + public var secretScanningPushProtectionCustomLink: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-full/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/organization-full/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/organization-full/archived_at`. - public var archived_at: Foundation.Date? + public var archivedAt: Foundation.Date? /// Controls whether or not deploy keys may be added and used for repositories in the organization. /// /// - Remark: Generated from `#/components/schemas/organization-full/deploy_keys_enabled_for_repositories`. - public var deploy_keys_enabled_for_repositories: Swift.Bool? - /// Creates a new `organization_hyphen_full`. + public var deployKeysEnabledForRepositories: Swift.Bool? + /// Creates a new `OrganizationFull`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - repos_url: - /// - events_url: - /// - hooks_url: - /// - issues_url: - /// - members_url: - /// - public_members_url: - /// - avatar_url: + /// - reposUrl: + /// - eventsUrl: + /// - hooksUrl: + /// - issuesUrl: + /// - membersUrl: + /// - publicMembersUrl: + /// - avatarUrl: /// - description: /// - name: /// - company: /// - blog: /// - location: /// - email: - /// - twitter_username: - /// - is_verified: - /// - has_organization_projects: - /// - has_repository_projects: - /// - public_repos: - /// - public_gists: + /// - twitterUsername: + /// - isVerified: + /// - hasOrganizationProjects: + /// - hasRepositoryProjects: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - html_url: + /// - htmlUrl: /// - _type: - /// - total_private_repos: - /// - owned_private_repos: - /// - private_gists: - /// - disk_usage: + /// - totalPrivateRepos: + /// - ownedPrivateRepos: + /// - privateGists: + /// - diskUsage: /// - collaborators: The number of collaborators on private repositories. - /// - billing_email: + /// - billingEmail: /// - plan: - /// - default_repository_permission: - /// - members_can_create_repositories: - /// - two_factor_requirement_enabled: - /// - members_allowed_repository_creation_type: - /// - members_can_create_public_repositories: - /// - members_can_create_private_repositories: - /// - members_can_create_internal_repositories: - /// - members_can_create_pages: - /// - members_can_create_public_pages: - /// - members_can_create_private_pages: - /// - members_can_fork_private_repositories: - /// - web_commit_signoff_required: - /// - advanced_security_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_alerts_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_security_updates_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependency_graph_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_custom_link_enabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. - /// - secret_scanning_push_protection_custom_link: An optional URL string to display to contributors who are blocked from pushing a secret. - /// - created_at: - /// - updated_at: - /// - archived_at: - /// - deploy_keys_enabled_for_repositories: Controls whether or not deploy keys may be added and used for repositories in the organization. + /// - defaultRepositoryPermission: + /// - membersCanCreateRepositories: + /// - twoFactorRequirementEnabled: + /// - membersAllowedRepositoryCreationType: + /// - membersCanCreatePublicRepositories: + /// - membersCanCreatePrivateRepositories: + /// - membersCanCreateInternalRepositories: + /// - membersCanCreatePages: + /// - membersCanCreatePublicPages: + /// - membersCanCreatePrivatePages: + /// - membersCanForkPrivateRepositories: + /// - webCommitSignoffRequired: + /// - advancedSecurityEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabotAlertsEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabotSecurityUpdatesEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependencyGraphEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningPushProtectionEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningPushProtectionCustomLinkEnabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. + /// - secretScanningPushProtectionCustomLink: An optional URL string to display to contributors who are blocked from pushing a secret. + /// - createdAt: + /// - updatedAt: + /// - archivedAt: + /// - deployKeysEnabledForRepositories: Controls whether or not deploy keys may be added and used for repositories in the organization. public init( login: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - hooks_url: Swift.String, - issues_url: Swift.String, - members_url: Swift.String, - public_members_url: Swift.String, - avatar_url: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + hooksUrl: Swift.String, + issuesUrl: Swift.String, + membersUrl: Swift.String, + publicMembersUrl: Swift.String, + avatarUrl: Swift.String, description: Swift.String? = nil, name: Swift.String? = nil, company: Swift.String? = nil, blog: Swift.String? = nil, location: Swift.String? = nil, email: Swift.String? = nil, - twitter_username: Swift.String? = nil, - is_verified: Swift.Bool? = nil, - has_organization_projects: Swift.Bool, - has_repository_projects: Swift.Bool, - public_repos: Swift.Int, - public_gists: Swift.Int, + twitterUsername: Swift.String? = nil, + isVerified: Swift.Bool? = nil, + hasOrganizationProjects: Swift.Bool, + hasRepositoryProjects: Swift.Bool, + publicRepos: Swift.Int, + publicGists: Swift.Int, followers: Swift.Int, following: Swift.Int, - html_url: Swift.String, + htmlUrl: Swift.String, _type: Swift.String, - total_private_repos: Swift.Int? = nil, - owned_private_repos: Swift.Int? = nil, - private_gists: Swift.Int? = nil, - disk_usage: Swift.Int? = nil, + totalPrivateRepos: Swift.Int? = nil, + ownedPrivateRepos: Swift.Int? = nil, + privateGists: Swift.Int? = nil, + diskUsage: 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, - members_can_create_repositories: Swift.Bool? = nil, - two_factor_requirement_enabled: Swift.Bool? = nil, - members_allowed_repository_creation_type: Swift.String? = nil, - members_can_create_public_repositories: Swift.Bool? = nil, - members_can_create_private_repositories: Swift.Bool? = nil, - members_can_create_internal_repositories: Swift.Bool? = nil, - members_can_create_pages: Swift.Bool? = nil, - members_can_create_public_pages: Swift.Bool? = nil, - members_can_create_private_pages: Swift.Bool? = nil, - members_can_fork_private_repositories: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - advanced_security_enabled_for_new_repositories: Swift.Bool? = nil, - dependabot_alerts_enabled_for_new_repositories: Swift.Bool? = nil, - dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? = nil, - dependency_graph_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_push_protection_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_push_protection_custom_link_enabled: Swift.Bool? = nil, - secret_scanning_push_protection_custom_link: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - archived_at: Foundation.Date? = nil, - deploy_keys_enabled_for_repositories: Swift.Bool? = nil + billingEmail: Swift.String? = nil, + plan: Components.Schemas.OrganizationFull.PlanPayload? = nil, + defaultRepositoryPermission: Swift.String? = nil, + membersCanCreateRepositories: Swift.Bool? = nil, + twoFactorRequirementEnabled: Swift.Bool? = nil, + membersAllowedRepositoryCreationType: Swift.String? = nil, + membersCanCreatePublicRepositories: Swift.Bool? = nil, + membersCanCreatePrivateRepositories: Swift.Bool? = nil, + membersCanCreateInternalRepositories: Swift.Bool? = nil, + membersCanCreatePages: Swift.Bool? = nil, + membersCanCreatePublicPages: Swift.Bool? = nil, + membersCanCreatePrivatePages: Swift.Bool? = nil, + membersCanForkPrivateRepositories: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + advancedSecurityEnabledForNewRepositories: Swift.Bool? = nil, + dependabotAlertsEnabledForNewRepositories: Swift.Bool? = nil, + dependabotSecurityUpdatesEnabledForNewRepositories: Swift.Bool? = nil, + dependencyGraphEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningPushProtectionEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningPushProtectionCustomLinkEnabled: Swift.Bool? = nil, + secretScanningPushProtectionCustomLink: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + archivedAt: Foundation.Date? = nil, + deployKeysEnabledForRepositories: Swift.Bool? = nil ) { self.login = login self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repos_url = repos_url - self.events_url = events_url - self.hooks_url = hooks_url - self.issues_url = issues_url - self.members_url = members_url - self.public_members_url = public_members_url - self.avatar_url = avatar_url + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.hooksUrl = hooksUrl + self.issuesUrl = issuesUrl + self.membersUrl = membersUrl + self.publicMembersUrl = publicMembersUrl + self.avatarUrl = avatarUrl self.description = description self.name = name self.company = company self.blog = blog self.location = location self.email = email - self.twitter_username = twitter_username - self.is_verified = is_verified - self.has_organization_projects = has_organization_projects - self.has_repository_projects = has_repository_projects - self.public_repos = public_repos - self.public_gists = public_gists + self.twitterUsername = twitterUsername + self.isVerified = isVerified + self.hasOrganizationProjects = hasOrganizationProjects + self.hasRepositoryProjects = hasRepositoryProjects + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.html_url = html_url + self.htmlUrl = htmlUrl self._type = _type - self.total_private_repos = total_private_repos - self.owned_private_repos = owned_private_repos - self.private_gists = private_gists - self.disk_usage = disk_usage + self.totalPrivateRepos = totalPrivateRepos + self.ownedPrivateRepos = ownedPrivateRepos + self.privateGists = privateGists + self.diskUsage = diskUsage self.collaborators = collaborators - self.billing_email = billing_email + self.billingEmail = billingEmail self.plan = plan - self.default_repository_permission = default_repository_permission - self.members_can_create_repositories = members_can_create_repositories - self.two_factor_requirement_enabled = two_factor_requirement_enabled - self.members_allowed_repository_creation_type = members_allowed_repository_creation_type - self.members_can_create_public_repositories = members_can_create_public_repositories - self.members_can_create_private_repositories = members_can_create_private_repositories - self.members_can_create_internal_repositories = members_can_create_internal_repositories - self.members_can_create_pages = members_can_create_pages - self.members_can_create_public_pages = members_can_create_public_pages - self.members_can_create_private_pages = members_can_create_private_pages - self.members_can_fork_private_repositories = members_can_fork_private_repositories - self.web_commit_signoff_required = web_commit_signoff_required - self.advanced_security_enabled_for_new_repositories = advanced_security_enabled_for_new_repositories - self.dependabot_alerts_enabled_for_new_repositories = dependabot_alerts_enabled_for_new_repositories - self.dependabot_security_updates_enabled_for_new_repositories = dependabot_security_updates_enabled_for_new_repositories - self.dependency_graph_enabled_for_new_repositories = dependency_graph_enabled_for_new_repositories - self.secret_scanning_enabled_for_new_repositories = secret_scanning_enabled_for_new_repositories - self.secret_scanning_push_protection_enabled_for_new_repositories = secret_scanning_push_protection_enabled_for_new_repositories - self.secret_scanning_push_protection_custom_link_enabled = secret_scanning_push_protection_custom_link_enabled - self.secret_scanning_push_protection_custom_link = secret_scanning_push_protection_custom_link - self.created_at = created_at - self.updated_at = updated_at - self.archived_at = archived_at - self.deploy_keys_enabled_for_repositories = deploy_keys_enabled_for_repositories + self.defaultRepositoryPermission = defaultRepositoryPermission + self.membersCanCreateRepositories = membersCanCreateRepositories + self.twoFactorRequirementEnabled = twoFactorRequirementEnabled + self.membersAllowedRepositoryCreationType = membersAllowedRepositoryCreationType + self.membersCanCreatePublicRepositories = membersCanCreatePublicRepositories + self.membersCanCreatePrivateRepositories = membersCanCreatePrivateRepositories + self.membersCanCreateInternalRepositories = membersCanCreateInternalRepositories + self.membersCanCreatePages = membersCanCreatePages + self.membersCanCreatePublicPages = membersCanCreatePublicPages + self.membersCanCreatePrivatePages = membersCanCreatePrivatePages + self.membersCanForkPrivateRepositories = membersCanForkPrivateRepositories + self.webCommitSignoffRequired = webCommitSignoffRequired + self.advancedSecurityEnabledForNewRepositories = advancedSecurityEnabledForNewRepositories + self.dependabotAlertsEnabledForNewRepositories = dependabotAlertsEnabledForNewRepositories + self.dependabotSecurityUpdatesEnabledForNewRepositories = dependabotSecurityUpdatesEnabledForNewRepositories + self.dependencyGraphEnabledForNewRepositories = dependencyGraphEnabledForNewRepositories + self.secretScanningEnabledForNewRepositories = secretScanningEnabledForNewRepositories + self.secretScanningPushProtectionEnabledForNewRepositories = secretScanningPushProtectionEnabledForNewRepositories + self.secretScanningPushProtectionCustomLinkEnabled = secretScanningPushProtectionCustomLinkEnabled + self.secretScanningPushProtectionCustomLink = secretScanningPushProtectionCustomLink + self.createdAt = createdAt + self.updatedAt = updatedAt + self.archivedAt = archivedAt + self.deployKeysEnabledForRepositories = deployKeysEnabledForRepositories } public enum CodingKeys: String, CodingKey { case login case id - case node_id + case nodeId = "node_id" case url - case repos_url - case events_url - case hooks_url - case issues_url - case members_url - case public_members_url - case avatar_url + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case hooksUrl = "hooks_url" + case issuesUrl = "issues_url" + case membersUrl = "members_url" + case publicMembersUrl = "public_members_url" + case avatarUrl = "avatar_url" case description case name case company case blog case location case email - case twitter_username - case is_verified - case has_organization_projects - case has_repository_projects - case public_repos - case public_gists + case twitterUsername = "twitter_username" + case isVerified = "is_verified" + case hasOrganizationProjects = "has_organization_projects" + case hasRepositoryProjects = "has_repository_projects" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case html_url + case htmlUrl = "html_url" case _type = "type" - case total_private_repos - case owned_private_repos - case private_gists - case disk_usage + case totalPrivateRepos = "total_private_repos" + case ownedPrivateRepos = "owned_private_repos" + case privateGists = "private_gists" + case diskUsage = "disk_usage" case collaborators - case billing_email + case billingEmail = "billing_email" case plan - case default_repository_permission - case members_can_create_repositories - case two_factor_requirement_enabled - case members_allowed_repository_creation_type - case members_can_create_public_repositories - case members_can_create_private_repositories - case members_can_create_internal_repositories - case members_can_create_pages - case members_can_create_public_pages - case members_can_create_private_pages - case members_can_fork_private_repositories - case web_commit_signoff_required - case advanced_security_enabled_for_new_repositories - case dependabot_alerts_enabled_for_new_repositories - case dependabot_security_updates_enabled_for_new_repositories - case dependency_graph_enabled_for_new_repositories - case secret_scanning_enabled_for_new_repositories - case secret_scanning_push_protection_enabled_for_new_repositories - case secret_scanning_push_protection_custom_link_enabled - case secret_scanning_push_protection_custom_link - case created_at - case updated_at - case archived_at - case deploy_keys_enabled_for_repositories + case defaultRepositoryPermission = "default_repository_permission" + case membersCanCreateRepositories = "members_can_create_repositories" + case twoFactorRequirementEnabled = "two_factor_requirement_enabled" + case membersAllowedRepositoryCreationType = "members_allowed_repository_creation_type" + case membersCanCreatePublicRepositories = "members_can_create_public_repositories" + case membersCanCreatePrivateRepositories = "members_can_create_private_repositories" + case membersCanCreateInternalRepositories = "members_can_create_internal_repositories" + case membersCanCreatePages = "members_can_create_pages" + case membersCanCreatePublicPages = "members_can_create_public_pages" + case membersCanCreatePrivatePages = "members_can_create_private_pages" + case membersCanForkPrivateRepositories = "members_can_fork_private_repositories" + case webCommitSignoffRequired = "web_commit_signoff_required" + case advancedSecurityEnabledForNewRepositories = "advanced_security_enabled_for_new_repositories" + case dependabotAlertsEnabledForNewRepositories = "dependabot_alerts_enabled_for_new_repositories" + case dependabotSecurityUpdatesEnabledForNewRepositories = "dependabot_security_updates_enabled_for_new_repositories" + case dependencyGraphEnabledForNewRepositories = "dependency_graph_enabled_for_new_repositories" + case secretScanningEnabledForNewRepositories = "secret_scanning_enabled_for_new_repositories" + case secretScanningPushProtectionEnabledForNewRepositories = "secret_scanning_push_protection_enabled_for_new_repositories" + case secretScanningPushProtectionCustomLinkEnabled = "secret_scanning_push_protection_custom_link_enabled" + case secretScanningPushProtectionCustomLink = "secret_scanning_push_protection_custom_link" + case createdAt = "created_at" + case updatedAt = "updated_at" + case archivedAt = "archived_at" + case deployKeysEnabledForRepositories = "deploy_keys_enabled_for_repositories" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -5975,86 +5984,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -6064,11 +6073,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -6079,7 +6088,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -6109,86 +6118,86 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Organization Invitation /// /// - Remark: Generated from `#/components/schemas/organization-invitation`. - public struct organization_hyphen_invitation: Codable, Hashable, Sendable { + public struct OrganizationInvitation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-invitation/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/organization-invitation/login`. @@ -6198,90 +6207,90 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-invitation/role`. public var role: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/failed_at`. - public var failed_at: Swift.String? + public var failedAt: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-invitation/failed_reason`. - public var failed_reason: Swift.String? + public var failedReason: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-invitation/inviter`. - public var inviter: Components.Schemas.simple_hyphen_user + public var inviter: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/organization-invitation/team_count`. - public var team_count: Swift.Int + public var teamCount: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-invitation/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/invitation_teams_url`. - public var invitation_teams_url: Swift.String + public var invitationTeamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/invitation_source`. - public var invitation_source: Swift.String? - /// Creates a new `organization_hyphen_invitation`. + public var invitationSource: Swift.String? + /// Creates a new `OrganizationInvitation`. /// /// - Parameters: /// - id: /// - login: /// - email: /// - role: - /// - created_at: - /// - failed_at: - /// - failed_reason: + /// - createdAt: + /// - failedAt: + /// - failedReason: /// - inviter: - /// - team_count: - /// - node_id: - /// - invitation_teams_url: - /// - invitation_source: + /// - teamCount: + /// - nodeId: + /// - invitationTeamsUrl: + /// - invitationSource: public init( id: Swift.Int64, login: Swift.String? = nil, email: Swift.String? = nil, role: Swift.String, - created_at: Swift.String, - failed_at: Swift.String? = nil, - failed_reason: Swift.String? = nil, - inviter: Components.Schemas.simple_hyphen_user, - team_count: Swift.Int, - node_id: Swift.String, - invitation_teams_url: Swift.String, - invitation_source: Swift.String? = nil + createdAt: Swift.String, + failedAt: Swift.String? = nil, + failedReason: Swift.String? = nil, + inviter: Components.Schemas.SimpleUser, + teamCount: Swift.Int, + nodeId: Swift.String, + invitationTeamsUrl: Swift.String, + invitationSource: Swift.String? = nil ) { self.id = id self.login = login self.email = email self.role = role - self.created_at = created_at - self.failed_at = failed_at - self.failed_reason = failed_reason + self.createdAt = createdAt + self.failedAt = failedAt + self.failedReason = failedReason self.inviter = inviter - self.team_count = team_count - self.node_id = node_id - self.invitation_teams_url = invitation_teams_url - self.invitation_source = invitation_source + self.teamCount = teamCount + self.nodeId = nodeId + self.invitationTeamsUrl = invitationTeamsUrl + self.invitationSource = invitationSource } public enum CodingKeys: String, CodingKey { case id case login case email case role - case created_at - case failed_at - case failed_reason + case createdAt = "created_at" + case failedAt = "failed_at" + case failedReason = "failed_reason" case inviter - case team_count - case node_id - case invitation_teams_url - case invitation_source + case teamCount = "team_count" + case nodeId = "node_id" + case invitationTeamsUrl = "invitation_teams_url" + case invitationSource = "invitation_source" } } /// Org Hook /// /// - Remark: Generated from `#/components/schemas/org-hook`. - public struct org_hyphen_hook: Codable, Hashable, Sendable { + public struct OrgHook: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-hook/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/org-hook/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/org-hook/ping_url`. - public var ping_url: Swift.String + public var pingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/org-hook/deliveries_url`. - public var deliveries_url: Swift.String? + public var deliveriesUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/org-hook/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/org-hook/events`. @@ -6289,350 +6298,350 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/org-hook/active`. public var active: Swift.Bool /// - Remark: Generated from `#/components/schemas/org-hook/config`. - public struct configPayload: Codable, Hashable, Sendable { + public struct ConfigPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-hook/config/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/org-hook/config/insecure_ssl`. - public var insecure_ssl: Swift.String? + public var insecureSsl: Swift.String? /// - Remark: Generated from `#/components/schemas/org-hook/config/content_type`. - public var content_type: Swift.String? + public var contentType: Swift.String? /// - Remark: Generated from `#/components/schemas/org-hook/config/secret`. public var secret: Swift.String? - /// Creates a new `configPayload`. + /// Creates a new `ConfigPayload`. /// /// - Parameters: /// - url: - /// - insecure_ssl: - /// - content_type: + /// - insecureSsl: + /// - contentType: /// - secret: public init( url: Swift.String? = nil, - insecure_ssl: Swift.String? = nil, - content_type: Swift.String? = nil, + insecureSsl: Swift.String? = nil, + contentType: Swift.String? = nil, secret: Swift.String? = nil ) { self.url = url - self.insecure_ssl = insecure_ssl - self.content_type = content_type + self.insecureSsl = insecureSsl + self.contentType = contentType self.secret = secret } public enum CodingKeys: String, CodingKey { case url - case insecure_ssl - case content_type + case insecureSsl = "insecure_ssl" + case contentType = "content_type" case secret } } /// - Remark: Generated from `#/components/schemas/org-hook/config`. - public var config: Components.Schemas.org_hyphen_hook.configPayload + public var config: Components.Schemas.OrgHook.ConfigPayload /// - Remark: Generated from `#/components/schemas/org-hook/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/org-hook/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/org-hook/type`. public var _type: Swift.String - /// Creates a new `org_hyphen_hook`. + /// Creates a new `OrgHook`. /// /// - Parameters: /// - id: /// - url: - /// - ping_url: - /// - deliveries_url: + /// - pingUrl: + /// - deliveriesUrl: /// - name: /// - events: /// - active: /// - config: - /// - updated_at: - /// - created_at: + /// - updatedAt: + /// - createdAt: /// - _type: public init( id: Swift.Int, url: Swift.String, - ping_url: Swift.String, - deliveries_url: Swift.String? = nil, + pingUrl: Swift.String, + deliveriesUrl: Swift.String? = nil, name: Swift.String, events: [Swift.String], active: Swift.Bool, - config: Components.Schemas.org_hyphen_hook.configPayload, - updated_at: Foundation.Date, - created_at: Foundation.Date, + config: Components.Schemas.OrgHook.ConfigPayload, + updatedAt: Foundation.Date, + createdAt: Foundation.Date, _type: Swift.String ) { self.id = id self.url = url - self.ping_url = ping_url - self.deliveries_url = deliveries_url + self.pingUrl = pingUrl + self.deliveriesUrl = deliveriesUrl self.name = name self.events = events self.active = active self.config = config - self.updated_at = updated_at - self.created_at = created_at + self.updatedAt = updatedAt + self.createdAt = createdAt self._type = _type } public enum CodingKeys: String, CodingKey { case id case url - case ping_url - case deliveries_url + case pingUrl = "ping_url" + case deliveriesUrl = "deliveries_url" case name case events case active case config - case updated_at - case created_at + case updatedAt = "updated_at" + case createdAt = "created_at" case _type = "type" } } - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats`. - public struct api_hyphen_insights_hyphen_route_hyphen_statsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats`. + public struct ApiInsightsRouteStatsPayload: Codable, Hashable, Sendable { /// The HTTP method /// - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/http_method`. - public var http_method: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/http_method`. + public var httpMethod: Swift.String? /// The API path's route template /// - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/api_route`. - public var api_route: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/api_route`. + public var apiRoute: Swift.String? /// The total number of requests within the queried time period /// - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/total_request_count`. - public var total_request_count: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/total_request_count`. + public var totalRequestCount: Swift.Int64? /// The total number of requests that were rate limited within the queried time period /// - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/rate_limited_request_count`. - public var rate_limited_request_count: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/last_rate_limited_timestamp`. - public var last_rate_limited_timestamp: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_route_hyphen_stats/last_request_timestamp`. - public var last_request_timestamp: Swift.String? - /// Creates a new `api_hyphen_insights_hyphen_route_hyphen_statsPayload`. + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/rate_limited_request_count`. + public var rateLimitedRequestCount: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/last_rate_limited_timestamp`. + public var lastRateLimitedTimestamp: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsRouteStats/last_request_timestamp`. + public var lastRequestTimestamp: Swift.String? + /// Creates a new `ApiInsightsRouteStatsPayload`. /// /// - Parameters: - /// - http_method: The HTTP method - /// - api_route: The API path's route template - /// - total_request_count: The total number of requests within the queried time period - /// - rate_limited_request_count: The total number of requests that were rate limited within the queried time period - /// - last_rate_limited_timestamp: - /// - last_request_timestamp: + /// - httpMethod: The HTTP method + /// - apiRoute: The API path's route template + /// - totalRequestCount: The total number of requests within the queried time period + /// - rateLimitedRequestCount: The total number of requests that were rate limited within the queried time period + /// - lastRateLimitedTimestamp: + /// - lastRequestTimestamp: public init( - http_method: Swift.String? = nil, - api_route: Swift.String? = nil, - total_request_count: Swift.Int64? = nil, - rate_limited_request_count: Swift.Int64? = nil, - last_rate_limited_timestamp: Swift.String? = nil, - last_request_timestamp: Swift.String? = nil + httpMethod: Swift.String? = nil, + apiRoute: Swift.String? = nil, + totalRequestCount: Swift.Int64? = nil, + rateLimitedRequestCount: Swift.Int64? = nil, + lastRateLimitedTimestamp: Swift.String? = nil, + lastRequestTimestamp: Swift.String? = nil ) { - self.http_method = http_method - self.api_route = api_route - self.total_request_count = total_request_count - self.rate_limited_request_count = rate_limited_request_count - self.last_rate_limited_timestamp = last_rate_limited_timestamp - self.last_request_timestamp = last_request_timestamp + self.httpMethod = httpMethod + self.apiRoute = apiRoute + self.totalRequestCount = totalRequestCount + self.rateLimitedRequestCount = rateLimitedRequestCount + self.lastRateLimitedTimestamp = lastRateLimitedTimestamp + self.lastRequestTimestamp = lastRequestTimestamp } public enum CodingKeys: String, CodingKey { - case http_method - case api_route - case total_request_count - case rate_limited_request_count - case last_rate_limited_timestamp - case last_request_timestamp + case httpMethod = "http_method" + case apiRoute = "api_route" + case totalRequestCount = "total_request_count" + case rateLimitedRequestCount = "rate_limited_request_count" + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" } } /// API Insights usage route stats for an actor /// /// - Remark: Generated from `#/components/schemas/api-insights-route-stats`. - public typealias api_hyphen_insights_hyphen_route_hyphen_stats = [Components.Schemas.api_hyphen_insights_hyphen_route_hyphen_statsPayload] - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats`. - public struct api_hyphen_insights_hyphen_subject_hyphen_statsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/subject_type`. - public var subject_type: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/subject_name`. - public var subject_name: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/subject_id`. - public var subject_id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/total_request_count`. - public var total_request_count: Swift.Int? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/rate_limited_request_count`. - public var rate_limited_request_count: Swift.Int? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/last_rate_limited_timestamp`. - public var last_rate_limited_timestamp: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_subject_hyphen_stats/last_request_timestamp`. - public var last_request_timestamp: Swift.String? - /// Creates a new `api_hyphen_insights_hyphen_subject_hyphen_statsPayload`. + public typealias ApiInsightsRouteStats = [Components.Schemas.ApiInsightsRouteStatsPayload] + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats`. + public struct ApiInsightsSubjectStatsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/subject_type`. + public var subjectType: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/subject_name`. + public var subjectName: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/subject_id`. + public var subjectId: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/total_request_count`. + public var totalRequestCount: Swift.Int? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/rate_limited_request_count`. + public var rateLimitedRequestCount: Swift.Int? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/last_rate_limited_timestamp`. + public var lastRateLimitedTimestamp: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsSubjectStats/last_request_timestamp`. + public var lastRequestTimestamp: Swift.String? + /// Creates a new `ApiInsightsSubjectStatsPayload`. /// /// - Parameters: - /// - subject_type: - /// - subject_name: - /// - subject_id: - /// - total_request_count: - /// - rate_limited_request_count: - /// - last_rate_limited_timestamp: - /// - last_request_timestamp: + /// - subjectType: + /// - subjectName: + /// - subjectId: + /// - totalRequestCount: + /// - rateLimitedRequestCount: + /// - lastRateLimitedTimestamp: + /// - lastRequestTimestamp: public init( - subject_type: Swift.String? = nil, - subject_name: Swift.String? = nil, - subject_id: Swift.Int64? = nil, - total_request_count: Swift.Int? = nil, - rate_limited_request_count: Swift.Int? = nil, - last_rate_limited_timestamp: Swift.String? = nil, - last_request_timestamp: Swift.String? = nil + subjectType: Swift.String? = nil, + subjectName: Swift.String? = nil, + subjectId: Swift.Int64? = nil, + totalRequestCount: Swift.Int? = nil, + rateLimitedRequestCount: Swift.Int? = nil, + lastRateLimitedTimestamp: Swift.String? = nil, + lastRequestTimestamp: Swift.String? = nil ) { - self.subject_type = subject_type - self.subject_name = subject_name - self.subject_id = subject_id - self.total_request_count = total_request_count - self.rate_limited_request_count = rate_limited_request_count - self.last_rate_limited_timestamp = last_rate_limited_timestamp - self.last_request_timestamp = last_request_timestamp + self.subjectType = subjectType + self.subjectName = subjectName + self.subjectId = subjectId + self.totalRequestCount = totalRequestCount + self.rateLimitedRequestCount = rateLimitedRequestCount + self.lastRateLimitedTimestamp = lastRateLimitedTimestamp + self.lastRequestTimestamp = lastRequestTimestamp } public enum CodingKeys: String, CodingKey { - case subject_type - case subject_name - case subject_id - case total_request_count - case rate_limited_request_count - case last_rate_limited_timestamp - case last_request_timestamp + case subjectType = "subject_type" + case subjectName = "subject_name" + case subjectId = "subject_id" + case totalRequestCount = "total_request_count" + case rateLimitedRequestCount = "rate_limited_request_count" + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" } } /// API Insights usage subject stats for an organization /// /// - Remark: Generated from `#/components/schemas/api-insights-subject-stats`. - public typealias api_hyphen_insights_hyphen_subject_hyphen_stats = [Components.Schemas.api_hyphen_insights_hyphen_subject_hyphen_statsPayload] + public typealias ApiInsightsSubjectStats = [Components.Schemas.ApiInsightsSubjectStatsPayload] /// API Insights usage summary stats for an organization /// /// - Remark: Generated from `#/components/schemas/api-insights-summary-stats`. - public struct api_hyphen_insights_hyphen_summary_hyphen_stats: Codable, Hashable, Sendable { + public struct ApiInsightsSummaryStats: Codable, Hashable, Sendable { /// The total number of requests within the queried time period /// /// - Remark: Generated from `#/components/schemas/api-insights-summary-stats/total_request_count`. - public var total_request_count: Swift.Int64? + public var totalRequestCount: Swift.Int64? /// The total number of requests that were rate limited within the queried time period /// /// - Remark: Generated from `#/components/schemas/api-insights-summary-stats/rate_limited_request_count`. - public var rate_limited_request_count: Swift.Int64? - /// Creates a new `api_hyphen_insights_hyphen_summary_hyphen_stats`. + public var rateLimitedRequestCount: Swift.Int64? + /// Creates a new `ApiInsightsSummaryStats`. /// /// - Parameters: - /// - total_request_count: The total number of requests within the queried time period - /// - rate_limited_request_count: The total number of requests that were rate limited within the queried time period + /// - totalRequestCount: The total number of requests within the queried time period + /// - rateLimitedRequestCount: The total number of requests that were rate limited within the queried time period public init( - total_request_count: Swift.Int64? = nil, - rate_limited_request_count: Swift.Int64? = nil + totalRequestCount: Swift.Int64? = nil, + rateLimitedRequestCount: Swift.Int64? = nil ) { - self.total_request_count = total_request_count - self.rate_limited_request_count = rate_limited_request_count + self.totalRequestCount = totalRequestCount + self.rateLimitedRequestCount = rateLimitedRequestCount } public enum CodingKeys: String, CodingKey { - case total_request_count - case rate_limited_request_count + case totalRequestCount = "total_request_count" + case rateLimitedRequestCount = "rate_limited_request_count" } } - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_time_hyphen_stats`. - public struct api_hyphen_insights_hyphen_time_hyphen_statsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_time_hyphen_stats/timestamp`. + /// - Remark: Generated from `#/components/schemas/ApiInsightsTimeStats`. + public struct ApiInsightsTimeStatsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ApiInsightsTimeStats/timestamp`. public var timestamp: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_time_hyphen_stats/total_request_count`. - public var total_request_count: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_time_hyphen_stats/rate_limited_request_count`. - public var rate_limited_request_count: Swift.Int64? - /// Creates a new `api_hyphen_insights_hyphen_time_hyphen_statsPayload`. + /// - Remark: Generated from `#/components/schemas/ApiInsightsTimeStats/total_request_count`. + public var totalRequestCount: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsTimeStats/rate_limited_request_count`. + public var rateLimitedRequestCount: Swift.Int64? + /// Creates a new `ApiInsightsTimeStatsPayload`. /// /// - Parameters: /// - timestamp: - /// - total_request_count: - /// - rate_limited_request_count: + /// - totalRequestCount: + /// - rateLimitedRequestCount: public init( timestamp: Swift.String? = nil, - total_request_count: Swift.Int64? = nil, - rate_limited_request_count: Swift.Int64? = nil + totalRequestCount: Swift.Int64? = nil, + rateLimitedRequestCount: Swift.Int64? = nil ) { self.timestamp = timestamp - self.total_request_count = total_request_count - self.rate_limited_request_count = rate_limited_request_count + self.totalRequestCount = totalRequestCount + self.rateLimitedRequestCount = rateLimitedRequestCount } public enum CodingKeys: String, CodingKey { case timestamp - case total_request_count - case rate_limited_request_count + case totalRequestCount = "total_request_count" + case rateLimitedRequestCount = "rate_limited_request_count" } } /// API Insights usage time stats for an organization /// /// - Remark: Generated from `#/components/schemas/api-insights-time-stats`. - public typealias api_hyphen_insights_hyphen_time_hyphen_stats = [Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_statsPayload] - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats`. - public struct api_hyphen_insights_hyphen_user_hyphen_statsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/actor_type`. - public var actor_type: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/actor_name`. - public var actor_name: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/actor_id`. - public var actor_id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/integration_id`. - public var integration_id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/oauth_application_id`. - public var oauth_application_id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/total_request_count`. - public var total_request_count: Swift.Int? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/rate_limited_request_count`. - public var rate_limited_request_count: Swift.Int? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/last_rate_limited_timestamp`. - public var last_rate_limited_timestamp: Swift.String? - /// - Remark: Generated from `#/components/schemas/api_hyphen_insights_hyphen_user_hyphen_stats/last_request_timestamp`. - public var last_request_timestamp: Swift.String? - /// Creates a new `api_hyphen_insights_hyphen_user_hyphen_statsPayload`. + public typealias ApiInsightsTimeStats = [Components.Schemas.ApiInsightsTimeStatsPayload] + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats`. + public struct ApiInsightsUserStatsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/actor_type`. + public var actorType: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/actor_name`. + public var actorName: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/actor_id`. + public var actorId: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/integration_id`. + public var integrationId: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/oauth_application_id`. + public var oauthApplicationId: Swift.Int64? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/total_request_count`. + public var totalRequestCount: Swift.Int? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/rate_limited_request_count`. + public var rateLimitedRequestCount: Swift.Int? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/last_rate_limited_timestamp`. + public var lastRateLimitedTimestamp: Swift.String? + /// - Remark: Generated from `#/components/schemas/ApiInsightsUserStats/last_request_timestamp`. + public var lastRequestTimestamp: Swift.String? + /// Creates a new `ApiInsightsUserStatsPayload`. /// /// - Parameters: - /// - actor_type: - /// - actor_name: - /// - actor_id: - /// - integration_id: - /// - oauth_application_id: - /// - total_request_count: - /// - rate_limited_request_count: - /// - last_rate_limited_timestamp: - /// - last_request_timestamp: + /// - actorType: + /// - actorName: + /// - actorId: + /// - integrationId: + /// - oauthApplicationId: + /// - totalRequestCount: + /// - rateLimitedRequestCount: + /// - lastRateLimitedTimestamp: + /// - lastRequestTimestamp: public init( - actor_type: Swift.String? = nil, - actor_name: Swift.String? = nil, - actor_id: Swift.Int64? = nil, - integration_id: Swift.Int64? = nil, - oauth_application_id: Swift.Int64? = nil, - total_request_count: Swift.Int? = nil, - rate_limited_request_count: Swift.Int? = nil, - last_rate_limited_timestamp: Swift.String? = nil, - last_request_timestamp: Swift.String? = nil + actorType: Swift.String? = nil, + actorName: Swift.String? = nil, + actorId: Swift.Int64? = nil, + integrationId: Swift.Int64? = nil, + oauthApplicationId: Swift.Int64? = nil, + totalRequestCount: Swift.Int? = nil, + rateLimitedRequestCount: Swift.Int? = nil, + lastRateLimitedTimestamp: Swift.String? = nil, + lastRequestTimestamp: Swift.String? = nil ) { - self.actor_type = actor_type - self.actor_name = actor_name - self.actor_id = actor_id - self.integration_id = integration_id - self.oauth_application_id = oauth_application_id - self.total_request_count = total_request_count - self.rate_limited_request_count = rate_limited_request_count - self.last_rate_limited_timestamp = last_rate_limited_timestamp - self.last_request_timestamp = last_request_timestamp + self.actorType = actorType + self.actorName = actorName + self.actorId = actorId + self.integrationId = integrationId + self.oauthApplicationId = oauthApplicationId + self.totalRequestCount = totalRequestCount + self.rateLimitedRequestCount = rateLimitedRequestCount + self.lastRateLimitedTimestamp = lastRateLimitedTimestamp + self.lastRequestTimestamp = lastRequestTimestamp } public enum CodingKeys: String, CodingKey { - case actor_type - case actor_name - case actor_id - case integration_id - case oauth_application_id - case total_request_count - case rate_limited_request_count - case last_rate_limited_timestamp - case last_request_timestamp + case actorType = "actor_type" + case actorName = "actor_name" + case actorId = "actor_id" + case integrationId = "integration_id" + case oauthApplicationId = "oauth_application_id" + case totalRequestCount = "total_request_count" + case rateLimitedRequestCount = "rate_limited_request_count" + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" } } /// API Insights usage stats for a user /// /// - Remark: Generated from `#/components/schemas/api-insights-user-stats`. - public typealias api_hyphen_insights_hyphen_user_hyphen_stats = [Components.Schemas.api_hyphen_insights_hyphen_user_hyphen_statsPayload] + public typealias ApiInsightsUserStats = [Components.Schemas.ApiInsightsUserStatsPayload] /// - Remark: Generated from `#/components/schemas/organization-create-issue-type`. - public struct organization_hyphen_create_hyphen_issue_hyphen_type: Codable, Hashable, Sendable { + public struct OrganizationCreateIssueType: Codable, Hashable, Sendable { /// Name of the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-create-issue-type/name`. @@ -6640,7 +6649,7 @@ public enum Components { /// Whether or not the issue type is enabled at the organization level. /// /// - Remark: Generated from `#/components/schemas/organization-create-issue-type/is_enabled`. - public var is_enabled: Swift.Bool + public var isEnabled: Swift.Bool /// Description of the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-create-issue-type/description`. @@ -6648,7 +6657,7 @@ public enum Components { /// Color for the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-create-issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -6661,34 +6670,34 @@ public enum Components { /// Color for the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-create-issue-type/color`. - public var color: Components.Schemas.organization_hyphen_create_hyphen_issue_hyphen_type.colorPayload? - /// Creates a new `organization_hyphen_create_hyphen_issue_hyphen_type`. + public var color: Components.Schemas.OrganizationCreateIssueType.ColorPayload? + /// Creates a new `OrganizationCreateIssueType`. /// /// - Parameters: /// - name: Name of the issue type. - /// - is_enabled: Whether or not the issue type is enabled at the organization level. + /// - isEnabled: Whether or not the issue type is enabled at the organization level. /// - description: Description of the issue type. /// - color: Color for the issue type. public init( name: Swift.String, - is_enabled: Swift.Bool, + isEnabled: Swift.Bool, description: Swift.String? = nil, - color: Components.Schemas.organization_hyphen_create_hyphen_issue_hyphen_type.colorPayload? = nil + color: Components.Schemas.OrganizationCreateIssueType.ColorPayload? = nil ) { self.name = name - self.is_enabled = is_enabled + self.isEnabled = isEnabled self.description = description self.color = color } public enum CodingKeys: String, CodingKey { case name - case is_enabled + case isEnabled = "is_enabled" case description case color } } /// - Remark: Generated from `#/components/schemas/organization-update-issue-type`. - public struct organization_hyphen_update_hyphen_issue_hyphen_type: Codable, Hashable, Sendable { + public struct OrganizationUpdateIssueType: Codable, Hashable, Sendable { /// Name of the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-update-issue-type/name`. @@ -6696,7 +6705,7 @@ public enum Components { /// Whether or not the issue type is enabled at the organization level. /// /// - Remark: Generated from `#/components/schemas/organization-update-issue-type/is_enabled`. - public var is_enabled: Swift.Bool + public var isEnabled: Swift.Bool /// Description of the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-update-issue-type/description`. @@ -6704,7 +6713,7 @@ public enum Components { /// Color for the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-update-issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -6717,28 +6726,28 @@ public enum Components { /// Color for the issue type. /// /// - Remark: Generated from `#/components/schemas/organization-update-issue-type/color`. - public var color: Components.Schemas.organization_hyphen_update_hyphen_issue_hyphen_type.colorPayload? - /// Creates a new `organization_hyphen_update_hyphen_issue_hyphen_type`. + public var color: Components.Schemas.OrganizationUpdateIssueType.ColorPayload? + /// Creates a new `OrganizationUpdateIssueType`. /// /// - Parameters: /// - name: Name of the issue type. - /// - is_enabled: Whether or not the issue type is enabled at the organization level. + /// - isEnabled: Whether or not the issue type is enabled at the organization level. /// - description: Description of the issue type. /// - color: Color for the issue type. public init( name: Swift.String, - is_enabled: Swift.Bool, + isEnabled: Swift.Bool, description: Swift.String? = nil, - color: Components.Schemas.organization_hyphen_update_hyphen_issue_hyphen_type.colorPayload? = nil + color: Components.Schemas.OrganizationUpdateIssueType.ColorPayload? = nil ) { self.name = name - self.is_enabled = is_enabled + self.isEnabled = isEnabled self.description = description self.color = color } public enum CodingKeys: String, CodingKey { case name - case is_enabled + case isEnabled = "is_enabled" case description case color } @@ -6746,78 +6755,78 @@ public enum Components { /// Org Membership /// /// - Remark: Generated from `#/components/schemas/org-membership`. - public struct org_hyphen_membership: Codable, Hashable, Sendable { + public struct OrgMembership: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-membership/url`. public var url: Swift.String /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. /// /// - Remark: Generated from `#/components/schemas/org-membership/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case pending = "pending" } /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. /// /// - Remark: Generated from `#/components/schemas/org-membership/state`. - public var state: Components.Schemas.org_hyphen_membership.statePayload + public var state: Components.Schemas.OrgMembership.StatePayload /// The user's membership type in the organization. /// /// - Remark: Generated from `#/components/schemas/org-membership/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case admin = "admin" case member = "member" - case billing_manager = "billing_manager" + case billingManager = "billing_manager" } /// The user's membership type in the organization. /// /// - Remark: Generated from `#/components/schemas/org-membership/role`. - public var role: Components.Schemas.org_hyphen_membership.rolePayload + public var role: Components.Schemas.OrgMembership.RolePayload /// - Remark: Generated from `#/components/schemas/org-membership/organization_url`. - public var organization_url: Swift.String + public var organizationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/org-membership/organization`. - public var organization: Components.Schemas.organization_hyphen_simple + public var organization: Components.Schemas.OrganizationSimple /// - Remark: Generated from `#/components/schemas/org-membership/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/org-membership/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-membership/permissions/can_create_repository`. - public var can_create_repository: Swift.Bool - /// Creates a new `permissionsPayload`. + public var canCreateRepository: Swift.Bool + /// Creates a new `PermissionsPayload`. /// /// - Parameters: - /// - can_create_repository: - public init(can_create_repository: Swift.Bool) { - self.can_create_repository = can_create_repository + /// - canCreateRepository: + public init(canCreateRepository: Swift.Bool) { + self.canCreateRepository = canCreateRepository } public enum CodingKeys: String, CodingKey { - case can_create_repository + case canCreateRepository = "can_create_repository" } } /// - Remark: Generated from `#/components/schemas/org-membership/permissions`. - public var permissions: Components.Schemas.org_hyphen_membership.permissionsPayload? - /// Creates a new `org_hyphen_membership`. + public var permissions: Components.Schemas.OrgMembership.PermissionsPayload? + /// Creates a new `OrgMembership`. /// /// - Parameters: /// - url: /// - state: The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. /// - role: The user's membership type in the organization. - /// - organization_url: + /// - organizationUrl: /// - organization: /// - user: /// - permissions: public init( url: Swift.String, - state: Components.Schemas.org_hyphen_membership.statePayload, - role: Components.Schemas.org_hyphen_membership.rolePayload, - organization_url: Swift.String, - organization: Components.Schemas.organization_hyphen_simple, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - permissions: Components.Schemas.org_hyphen_membership.permissionsPayload? = nil + state: Components.Schemas.OrgMembership.StatePayload, + role: Components.Schemas.OrgMembership.RolePayload, + organizationUrl: Swift.String, + organization: Components.Schemas.OrganizationSimple, + user: Components.Schemas.NullableSimpleUser? = nil, + permissions: Components.Schemas.OrgMembership.PermissionsPayload? = nil ) { self.url = url self.state = state self.role = role - self.organization_url = organization_url + self.organizationUrl = organizationUrl self.organization = organization self.user = user self.permissions = permissions @@ -6826,7 +6835,7 @@ public enum Components { case url case state case role - case organization_url + case organizationUrl = "organization_url" case organization case user case permissions @@ -6835,7 +6844,7 @@ public enum Components { /// Organization roles /// /// - Remark: Generated from `#/components/schemas/organization-role`. - public struct organization_hyphen_role: Codable, Hashable, Sendable { + public struct OrganizationRole: Codable, Hashable, Sendable { /// The unique identifier of the role. /// /// - Remark: Generated from `#/components/schemas/organization-role/id`. @@ -6851,7 +6860,7 @@ public enum Components { /// The system role from which this role inherits permissions. /// /// - Remark: Generated from `#/components/schemas/organization-role/base_role`. - @frozen public enum base_rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum BaseRolePayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case triage = "triage" case write = "write" @@ -6861,86 +6870,86 @@ public enum Components { /// The system role from which this role inherits permissions. /// /// - Remark: Generated from `#/components/schemas/organization-role/base_role`. - public var base_role: Components.Schemas.organization_hyphen_role.base_rolePayload? + public var baseRole: Components.Schemas.OrganizationRole.BaseRolePayload? /// Source answers the question, "where did this role come from?" /// /// - Remark: Generated from `#/components/schemas/organization-role/source`. - @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { - case Organization = "Organization" - case Enterprise = "Enterprise" - case Predefined = "Predefined" + @frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable { + case organization = "Organization" + case enterprise = "Enterprise" + case predefined = "Predefined" } /// Source answers the question, "where did this role come from?" /// /// - Remark: Generated from `#/components/schemas/organization-role/source`. - public var source: Components.Schemas.organization_hyphen_role.sourcePayload? + public var source: Components.Schemas.OrganizationRole.SourcePayload? /// A list of permissions included in this role. /// /// - Remark: Generated from `#/components/schemas/organization-role/permissions`. public var permissions: [Swift.String] /// - Remark: Generated from `#/components/schemas/organization-role/organization`. - public var organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var organization: Components.Schemas.NullableSimpleUser? /// The date and time the role was created. /// /// - Remark: Generated from `#/components/schemas/organization-role/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time the role was last updated. /// /// - Remark: Generated from `#/components/schemas/organization-role/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `organization_hyphen_role`. + public var updatedAt: Foundation.Date + /// Creates a new `OrganizationRole`. /// /// - Parameters: /// - id: The unique identifier of the role. /// - name: The name of the role. /// - description: A short description about who this role is for or what permissions it grants. - /// - base_role: The system role from which this role inherits permissions. + /// - baseRole: The system role from which this role inherits permissions. /// - source: Source answers the question, "where did this role come from?" /// - permissions: A list of permissions included in this role. /// - organization: - /// - created_at: The date and time the role was created. - /// - updated_at: The date and time the role was last updated. + /// - createdAt: The date and time the role was created. + /// - updatedAt: The date and time the role was last updated. public init( id: Swift.Int64, name: Swift.String, description: Swift.String? = nil, - base_role: Components.Schemas.organization_hyphen_role.base_rolePayload? = nil, - source: Components.Schemas.organization_hyphen_role.sourcePayload? = nil, + baseRole: Components.Schemas.OrganizationRole.BaseRolePayload? = nil, + source: Components.Schemas.OrganizationRole.SourcePayload? = nil, permissions: [Swift.String], - organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date + organization: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.id = id self.name = name self.description = description - self.base_role = base_role + self.baseRole = baseRole self.source = source self.permissions = permissions self.organization = organization - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name case description - case base_role + case baseRole = "base_role" case source case permissions case organization - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// The Relationship a Team has with a role. /// /// - Remark: Generated from `#/components/schemas/team-role-assignment`. - public struct team_hyphen_role_hyphen_assignment: Codable, Hashable, Sendable { + public struct TeamRoleAssignment: Codable, Hashable, Sendable { /// Determines if the team has a direct, indirect, or mixed relationship to a role /// /// - Remark: Generated from `#/components/schemas/team-role-assignment/assignment`. - @frozen public enum assignmentPayload: String, Codable, Hashable, Sendable { + @frozen public enum AssignmentPayload: String, Codable, Hashable, Sendable, CaseIterable { case direct = "direct" case indirect = "indirect" case mixed = "mixed" @@ -6948,11 +6957,11 @@ public enum Components { /// Determines if the team has a direct, indirect, or mixed relationship to a role /// /// - Remark: Generated from `#/components/schemas/team-role-assignment/assignment`. - public var assignment: Components.Schemas.team_hyphen_role_hyphen_assignment.assignmentPayload? + public var assignment: Components.Schemas.TeamRoleAssignment.AssignmentPayload? /// - Remark: Generated from `#/components/schemas/team-role-assignment/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-role-assignment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/slug`. @@ -6962,11 +6971,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-role-assignment/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team-role-assignment/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team-role-assignment/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-role-assignment/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-role-assignment/permissions/triage`. @@ -6977,7 +6986,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-role-assignment/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -7007,102 +7016,102 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team-role-assignment/permissions`. - public var permissions: Components.Schemas.team_hyphen_role_hyphen_assignment.permissionsPayload? + public var permissions: Components.Schemas.TeamRoleAssignment.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team-role-assignment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-role-assignment/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team_hyphen_role_hyphen_assignment`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `TeamRoleAssignment`. /// /// - Parameters: /// - assignment: Determines if the team has a direct, indirect, or mixed relationship to a role /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( - assignment: Components.Schemas.team_hyphen_role_hyphen_assignment.assignmentPayload? = nil, + assignment: Components.Schemas.TeamRoleAssignment.AssignmentPayload? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team_hyphen_role_hyphen_assignment.permissionsPayload? = nil, + permissions: Components.Schemas.TeamRoleAssignment.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.assignment = assignment self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case assignment case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team-simple`. - public struct team_hyphen_simple: Codable, Hashable, Sendable { + public struct TeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/team-simple/name`. @@ -7122,86 +7131,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `TeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// The Relationship a User has with a role. /// /// - Remark: Generated from `#/components/schemas/user-role-assignment`. - public struct user_hyphen_role_hyphen_assignment: Codable, Hashable, Sendable { + public struct UserRoleAssignment: Codable, Hashable, Sendable { /// Determines if the user has a direct, indirect, or mixed relationship to a role /// /// - Remark: Generated from `#/components/schemas/user-role-assignment/assignment`. - @frozen public enum assignmentPayload: String, Codable, Hashable, Sendable { + @frozen public enum AssignmentPayload: String, Codable, Hashable, Sendable, CaseIterable { case direct = "direct" case indirect = "indirect" case mixed = "mixed" @@ -7209,11 +7218,11 @@ public enum Components { /// Determines if the user has a direct, indirect, or mixed relationship to a role /// /// - Remark: Generated from `#/components/schemas/user-role-assignment/assignment`. - public var assignment: Components.Schemas.user_hyphen_role_hyphen_assignment.assignmentPayload? + public var assignment: Components.Schemas.UserRoleAssignment.AssignmentPayload? /// Team the user has gotten the role through /// /// - Remark: Generated from `#/components/schemas/user-role-assignment/inherited_from`. - public var inherited_from: [Components.Schemas.team_hyphen_simple]? + public var inheritedFrom: [Components.Schemas.TeamSimple]? /// - Remark: Generated from `#/components/schemas/user-role-assignment/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/user-role-assignment/email`. @@ -7223,150 +7232,150 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/user-role-assignment/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/user-role-assignment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/user-role-assignment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/user-role-assignment/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/user-role-assignment/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/user-role-assignment/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `user_hyphen_role_hyphen_assignment`. + public var userViewType: Swift.String? + /// Creates a new `UserRoleAssignment`. /// /// - Parameters: /// - assignment: Determines if the user has a direct, indirect, or mixed relationship to a role - /// - inherited_from: Team the user has gotten the role through + /// - inheritedFrom: Team the user has gotten the role through /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( - assignment: Components.Schemas.user_hyphen_role_hyphen_assignment.assignmentPayload? = nil, - inherited_from: [Components.Schemas.team_hyphen_simple]? = nil, + assignment: Components.Schemas.UserRoleAssignment.AssignmentPayload? = nil, + inheritedFrom: [Components.Schemas.TeamSimple]? = nil, name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.assignment = assignment - self.inherited_from = inherited_from + self.inheritedFrom = inheritedFrom self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case assignment - case inherited_from + case inheritedFrom = "inherited_from" case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Minimal representation of an organization programmatic access grant request for enumerations /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request`. - public struct organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request: Codable, Hashable, Sendable { + public struct OrganizationProgrammaticAccessGrantRequest: Codable, Hashable, Sendable { /// Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/id`. @@ -7376,11 +7385,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Type of repository selection requested. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case all = "all" case subset = "subset" @@ -7388,20 +7397,20 @@ public enum Components { /// Type of repository selection requested. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/repository_selection`. - public var repository_selection: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.repository_selectionPayload + public var repositorySelection: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.RepositorySelectionPayload /// URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// Permissions requested, categorized by type of permission. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/organization`. - public struct organizationPayload: Codable, Hashable, Sendable { + public struct OrganizationPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `organizationPayload`. + /// Creates a new `OrganizationPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7416,12 +7425,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/organization`. - public var organization: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.organizationPayload? + public var organization: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.OrganizationPayload? /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/repository`. - public struct repositoryPayload: Codable, Hashable, Sendable { + public struct RepositoryPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `repositoryPayload`. + /// Creates a new `RepositoryPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7436,12 +7445,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/repository`. - public var repository: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.repositoryPayload? + public var repository: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.RepositoryPayload? /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/other`. - public struct otherPayload: Codable, Hashable, Sendable { + public struct OtherPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `otherPayload`. + /// Creates a new `OtherPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7456,17 +7465,17 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions/other`. - public var other: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.otherPayload? - /// Creates a new `permissionsPayload`. + public var other: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.OtherPayload? + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - organization: /// - repository: /// - other: public init( - organization: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.organizationPayload? = nil, - repository: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.repositoryPayload? = nil, - other: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload.otherPayload? = nil + organization: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.OrganizationPayload? = nil, + repository: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.RepositoryPayload? = nil, + other: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload.OtherPayload? = nil ) { self.organization = organization self.repository = repository @@ -7481,102 +7490,102 @@ public enum Components { /// Permissions requested, categorized by type of permission. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/permissions`. - public var permissions: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload + public var permissions: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload /// Date and time when the request for access was created. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/token_id`. - public var token_id: Swift.Int + public var tokenId: Swift.Int /// The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/token_name`. - public var token_name: Swift.String + public var tokenName: Swift.String /// Whether the associated fine-grained personal access token has expired. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/token_expired`. - public var token_expired: Swift.Bool + public var tokenExpired: Swift.Bool /// Date and time when the associated fine-grained personal access token expires. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/token_expires_at`. - public var token_expires_at: Swift.String? + public var tokenExpiresAt: Swift.String? /// Date and time when the associated fine-grained personal access token was last used for authentication. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant-request/token_last_used_at`. - public var token_last_used_at: Swift.String? - /// Creates a new `organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request`. + public var tokenLastUsedAt: Swift.String? + /// Creates a new `OrganizationProgrammaticAccessGrantRequest`. /// /// - Parameters: /// - id: Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests. /// - reason: Reason for requesting access. /// - owner: - /// - repository_selection: Type of repository selection requested. - /// - repositories_url: URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`. + /// - repositorySelection: Type of repository selection requested. + /// - repositoriesUrl: URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`. /// - permissions: Permissions requested, categorized by type of permission. - /// - created_at: Date and time when the request for access was created. - /// - token_id: Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. - /// - token_name: The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. - /// - token_expired: Whether the associated fine-grained personal access token has expired. - /// - token_expires_at: Date and time when the associated fine-grained personal access token expires. - /// - token_last_used_at: Date and time when the associated fine-grained personal access token was last used for authentication. + /// - createdAt: Date and time when the request for access was created. + /// - tokenId: Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. + /// - tokenName: The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. + /// - tokenExpired: Whether the associated fine-grained personal access token has expired. + /// - tokenExpiresAt: Date and time when the associated fine-grained personal access token expires. + /// - tokenLastUsedAt: Date and time when the associated fine-grained personal access token was last used for authentication. public init( id: Swift.Int, reason: Swift.String? = nil, - owner: Components.Schemas.simple_hyphen_user, - repository_selection: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.repository_selectionPayload, - repositories_url: Swift.String, - permissions: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request.permissionsPayload, - created_at: Swift.String, - token_id: Swift.Int, - token_name: Swift.String, - token_expired: Swift.Bool, - token_expires_at: Swift.String? = nil, - token_last_used_at: Swift.String? = nil + owner: Components.Schemas.SimpleUser, + repositorySelection: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.RepositorySelectionPayload, + repositoriesUrl: Swift.String, + permissions: Components.Schemas.OrganizationProgrammaticAccessGrantRequest.PermissionsPayload, + createdAt: Swift.String, + tokenId: Swift.Int, + tokenName: Swift.String, + tokenExpired: Swift.Bool, + tokenExpiresAt: Swift.String? = nil, + tokenLastUsedAt: Swift.String? = nil ) { self.id = id self.reason = reason self.owner = owner - self.repository_selection = repository_selection - self.repositories_url = repositories_url + self.repositorySelection = repositorySelection + self.repositoriesUrl = repositoriesUrl self.permissions = permissions - self.created_at = created_at - self.token_id = token_id - self.token_name = token_name - self.token_expired = token_expired - self.token_expires_at = token_expires_at - self.token_last_used_at = token_last_used_at + self.createdAt = createdAt + self.tokenId = tokenId + self.tokenName = tokenName + self.tokenExpired = tokenExpired + self.tokenExpiresAt = tokenExpiresAt + self.tokenLastUsedAt = tokenLastUsedAt } public enum CodingKeys: String, CodingKey { case id case reason case owner - case repository_selection - case repositories_url + case repositorySelection = "repository_selection" + case repositoriesUrl = "repositories_url" case permissions - case created_at - case token_id - case token_name - case token_expired - case token_expires_at - case token_last_used_at + case createdAt = "created_at" + case tokenId = "token_id" + case tokenName = "token_name" + case tokenExpired = "token_expired" + case tokenExpiresAt = "token_expires_at" + case tokenLastUsedAt = "token_last_used_at" } } /// Minimal representation of an organization programmatic access grant for enumerations /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant`. - public struct organization_hyphen_programmatic_hyphen_access_hyphen_grant: Codable, Hashable, Sendable { + public struct OrganizationProgrammaticAccessGrant: Codable, Hashable, Sendable { /// Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Type of repository selection requested. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/repository_selection`. - @frozen public enum repository_selectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum RepositorySelectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case all = "all" case subset = "subset" @@ -7584,20 +7593,20 @@ public enum Components { /// Type of repository selection requested. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/repository_selection`. - public var repository_selection: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.repository_selectionPayload + public var repositorySelection: Components.Schemas.OrganizationProgrammaticAccessGrant.RepositorySelectionPayload /// URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// Permissions requested, categorized by type of permission. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/organization`. - public struct organizationPayload: Codable, Hashable, Sendable { + public struct OrganizationPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `organizationPayload`. + /// Creates a new `OrganizationPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7612,12 +7621,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/organization`. - public var organization: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.organizationPayload? + public var organization: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.OrganizationPayload? /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/repository`. - public struct repositoryPayload: Codable, Hashable, Sendable { + public struct RepositoryPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `repositoryPayload`. + /// Creates a new `RepositoryPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7632,12 +7641,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/repository`. - public var repository: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.repositoryPayload? + public var repository: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.RepositoryPayload? /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/other`. - public struct otherPayload: Codable, Hashable, Sendable { + public struct OtherPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `otherPayload`. + /// Creates a new `OtherPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7652,17 +7661,17 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions/other`. - public var other: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.otherPayload? - /// Creates a new `permissionsPayload`. + public var other: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.OtherPayload? + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - organization: /// - repository: /// - other: public init( - organization: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.organizationPayload? = nil, - repository: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.repositoryPayload? = nil, - other: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload.otherPayload? = nil + organization: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.OrganizationPayload? = nil, + repository: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.RepositoryPayload? = nil, + other: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload.OtherPayload? = nil ) { self.organization = organization self.repository = repository @@ -7677,92 +7686,92 @@ public enum Components { /// Permissions requested, categorized by type of permission. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/permissions`. - public var permissions: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload + public var permissions: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload /// Date and time when the fine-grained personal access token was approved to access the organization. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/access_granted_at`. - public var access_granted_at: Swift.String + public var accessGrantedAt: Swift.String /// Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/token_id`. - public var token_id: Swift.Int + public var tokenId: Swift.Int /// The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/token_name`. - public var token_name: Swift.String + public var tokenName: Swift.String /// Whether the associated fine-grained personal access token has expired. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/token_expired`. - public var token_expired: Swift.Bool + public var tokenExpired: Swift.Bool /// Date and time when the associated fine-grained personal access token expires. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/token_expires_at`. - public var token_expires_at: Swift.String? + public var tokenExpiresAt: Swift.String? /// Date and time when the associated fine-grained personal access token was last used for authentication. /// /// - Remark: Generated from `#/components/schemas/organization-programmatic-access-grant/token_last_used_at`. - public var token_last_used_at: Swift.String? - /// Creates a new `organization_hyphen_programmatic_hyphen_access_hyphen_grant`. + public var tokenLastUsedAt: Swift.String? + /// Creates a new `OrganizationProgrammaticAccessGrant`. /// /// - Parameters: /// - id: Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token. /// - owner: - /// - repository_selection: Type of repository selection requested. - /// - repositories_url: URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`. + /// - repositorySelection: Type of repository selection requested. + /// - repositoriesUrl: URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`. /// - permissions: Permissions requested, categorized by type of permission. - /// - access_granted_at: Date and time when the fine-grained personal access token was approved to access the organization. - /// - token_id: Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. - /// - token_name: The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. - /// - token_expired: Whether the associated fine-grained personal access token has expired. - /// - token_expires_at: Date and time when the associated fine-grained personal access token expires. - /// - token_last_used_at: Date and time when the associated fine-grained personal access token was last used for authentication. + /// - accessGrantedAt: Date and time when the fine-grained personal access token was approved to access the organization. + /// - tokenId: Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants. + /// - tokenName: The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. + /// - tokenExpired: Whether the associated fine-grained personal access token has expired. + /// - tokenExpiresAt: Date and time when the associated fine-grained personal access token expires. + /// - tokenLastUsedAt: Date and time when the associated fine-grained personal access token was last used for authentication. public init( id: Swift.Int, - owner: Components.Schemas.simple_hyphen_user, - repository_selection: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.repository_selectionPayload, - repositories_url: Swift.String, - permissions: Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant.permissionsPayload, - access_granted_at: Swift.String, - token_id: Swift.Int, - token_name: Swift.String, - token_expired: Swift.Bool, - token_expires_at: Swift.String? = nil, - token_last_used_at: Swift.String? = nil + owner: Components.Schemas.SimpleUser, + repositorySelection: Components.Schemas.OrganizationProgrammaticAccessGrant.RepositorySelectionPayload, + repositoriesUrl: Swift.String, + permissions: Components.Schemas.OrganizationProgrammaticAccessGrant.PermissionsPayload, + accessGrantedAt: Swift.String, + tokenId: Swift.Int, + tokenName: Swift.String, + tokenExpired: Swift.Bool, + tokenExpiresAt: Swift.String? = nil, + tokenLastUsedAt: Swift.String? = nil ) { self.id = id self.owner = owner - self.repository_selection = repository_selection - self.repositories_url = repositories_url + self.repositorySelection = repositorySelection + self.repositoriesUrl = repositoriesUrl self.permissions = permissions - self.access_granted_at = access_granted_at - self.token_id = token_id - self.token_name = token_name - self.token_expired = token_expired - self.token_expires_at = token_expires_at - self.token_last_used_at = token_last_used_at + self.accessGrantedAt = accessGrantedAt + self.tokenId = tokenId + self.tokenName = tokenName + self.tokenExpired = tokenExpired + self.tokenExpiresAt = tokenExpiresAt + self.tokenLastUsedAt = tokenLastUsedAt } public enum CodingKeys: String, CodingKey { case id case owner - case repository_selection - case repositories_url + case repositorySelection = "repository_selection" + case repositoriesUrl = "repositories_url" case permissions - case access_granted_at - case token_id - case token_name - case token_expired - case token_expires_at - case token_last_used_at + case accessGrantedAt = "access_granted_at" + case tokenId = "token_id" + case tokenName = "token_name" + case tokenExpired = "token_expired" + case tokenExpiresAt = "token_expires_at" + case tokenLastUsedAt = "token_last_used_at" } } /// Custom property defined on an organization /// /// - Remark: Generated from `#/components/schemas/custom-property`. - public struct custom_hyphen_property: Codable, Hashable, Sendable { + public struct CustomProperty: Codable, Hashable, Sendable { /// The name of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/property_name`. - public var property_name: Swift.String + public var propertyName: Swift.String /// The URL that can be used to fetch, update, or delete info about this property via the API. /// /// - Remark: Generated from `#/components/schemas/custom-property/url`. @@ -7770,27 +7779,27 @@ public enum Components { /// The source type of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/source_type`. - @frozen public enum source_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum SourceTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case organization = "organization" case enterprise = "enterprise" } /// The source type of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/source_type`. - public var source_type: Components.Schemas.custom_hyphen_property.source_typePayload? + public var sourceType: Components.Schemas.CustomProperty.SourceTypePayload? /// The type of the value for the property /// /// - Remark: Generated from `#/components/schemas/custom-property/value_type`. - @frozen public enum value_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum ValueTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case string = "string" - case single_select = "single_select" - case multi_select = "multi_select" - case true_false = "true_false" + case singleSelect = "single_select" + case multiSelect = "multi_select" + case trueFalse = "true_false" } /// The type of the value for the property /// /// - Remark: Generated from `#/components/schemas/custom-property/value_type`. - public var value_type: Components.Schemas.custom_hyphen_property.value_typePayload + public var valueType: Components.Schemas.CustomProperty.ValueTypePayload /// Whether the property is required. /// /// - Remark: Generated from `#/components/schemas/custom-property/required`. @@ -7798,7 +7807,7 @@ public enum Components { /// Default value of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/default_value`. - @frozen public enum default_valuePayload: Codable, Hashable, Sendable { + @frozen public enum DefaultValuePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/custom-property/default_value/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/schemas/custom-property/default_value/case2`. @@ -7835,7 +7844,7 @@ public enum Components { /// Default value of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/default_value`. - public var default_value: Components.Schemas.custom_hyphen_property.default_valuePayload? + public var defaultValue: Components.Schemas.CustomProperty.DefaultValuePayload? /// Short description of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/description`. @@ -7844,80 +7853,80 @@ public enum Components { /// The property can have up to 200 allowed values. /// /// - Remark: Generated from `#/components/schemas/custom-property/allowed_values`. - public var allowed_values: [Swift.String]? + public var allowedValues: [Swift.String]? /// Who can edit the values of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/values_editable_by`. - @frozen public enum values_editable_byPayload: String, Codable, Hashable, Sendable { - case org_actors = "org_actors" - case org_and_repo_actors = "org_and_repo_actors" + @frozen public enum ValuesEditableByPayload: String, Codable, Hashable, Sendable, CaseIterable { + case orgActors = "org_actors" + case orgAndRepoActors = "org_and_repo_actors" } /// Who can edit the values of the property /// /// - Remark: Generated from `#/components/schemas/custom-property/values_editable_by`. - public var values_editable_by: Components.Schemas.custom_hyphen_property.values_editable_byPayload? - /// Creates a new `custom_hyphen_property`. + public var valuesEditableBy: Components.Schemas.CustomProperty.ValuesEditableByPayload? + /// Creates a new `CustomProperty`. /// /// - Parameters: - /// - property_name: The name of the property + /// - propertyName: The name of the property /// - url: The URL that can be used to fetch, update, or delete info about this property via the API. - /// - source_type: The source type of the property - /// - value_type: The type of the value for the property + /// - sourceType: The source type of the property + /// - valueType: The type of the value for the property /// - required: Whether the property is required. - /// - default_value: Default value of the property + /// - defaultValue: Default value of the property /// - description: Short description of the property - /// - allowed_values: An ordered list of the allowed values of the property. - /// - values_editable_by: Who can edit the values of the property + /// - allowedValues: An ordered list of the allowed values of the property. + /// - valuesEditableBy: Who can edit the values of the property public init( - property_name: Swift.String, + propertyName: Swift.String, url: Swift.String? = nil, - source_type: Components.Schemas.custom_hyphen_property.source_typePayload? = nil, - value_type: Components.Schemas.custom_hyphen_property.value_typePayload, + sourceType: Components.Schemas.CustomProperty.SourceTypePayload? = nil, + valueType: Components.Schemas.CustomProperty.ValueTypePayload, required: Swift.Bool? = nil, - default_value: Components.Schemas.custom_hyphen_property.default_valuePayload? = nil, + defaultValue: Components.Schemas.CustomProperty.DefaultValuePayload? = nil, description: Swift.String? = nil, - allowed_values: [Swift.String]? = nil, - values_editable_by: Components.Schemas.custom_hyphen_property.values_editable_byPayload? = nil + allowedValues: [Swift.String]? = nil, + valuesEditableBy: Components.Schemas.CustomProperty.ValuesEditableByPayload? = nil ) { - self.property_name = property_name + self.propertyName = propertyName self.url = url - self.source_type = source_type - self.value_type = value_type + self.sourceType = sourceType + self.valueType = valueType self.required = required - self.default_value = default_value + self.defaultValue = defaultValue self.description = description - self.allowed_values = allowed_values - self.values_editable_by = values_editable_by + self.allowedValues = allowedValues + self.valuesEditableBy = valuesEditableBy } public enum CodingKeys: String, CodingKey { - case property_name + case propertyName = "property_name" case url - case source_type - case value_type + case sourceType = "source_type" + case valueType = "value_type" case required - case default_value + case defaultValue = "default_value" case description - case allowed_values - case values_editable_by + case allowedValues = "allowed_values" + case valuesEditableBy = "values_editable_by" } } /// Custom property set payload /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload`. - public struct custom_hyphen_property_hyphen_set_hyphen_payload: Codable, Hashable, Sendable { + public struct CustomPropertySetPayload: Codable, Hashable, Sendable { /// The type of the value for the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/value_type`. - @frozen public enum value_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum ValueTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case string = "string" - case single_select = "single_select" - case multi_select = "multi_select" - case true_false = "true_false" + case singleSelect = "single_select" + case multiSelect = "multi_select" + case trueFalse = "true_false" } /// The type of the value for the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/value_type`. - public var value_type: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.value_typePayload + public var valueType: Components.Schemas.CustomPropertySetPayload.ValueTypePayload /// Whether the property is required. /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/required`. @@ -7925,7 +7934,7 @@ public enum Components { /// Default value of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/default_value`. - @frozen public enum default_valuePayload: Codable, Hashable, Sendable { + @frozen public enum DefaultValuePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/default_value/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/default_value/case2`. @@ -7962,7 +7971,7 @@ public enum Components { /// Default value of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/default_value`. - public var default_value: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.default_valuePayload? + public var defaultValue: Components.Schemas.CustomPropertySetPayload.DefaultValuePayload? /// Short description of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/description`. @@ -7971,63 +7980,63 @@ public enum Components { /// The property can have up to 200 allowed values. /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/allowed_values`. - public var allowed_values: [Swift.String]? + public var allowedValues: [Swift.String]? /// Who can edit the values of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/values_editable_by`. - @frozen public enum values_editable_byPayload: String, Codable, Hashable, Sendable { - case org_actors = "org_actors" - case org_and_repo_actors = "org_and_repo_actors" + @frozen public enum ValuesEditableByPayload: String, Codable, Hashable, Sendable, CaseIterable { + case orgActors = "org_actors" + case orgAndRepoActors = "org_and_repo_actors" } /// Who can edit the values of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-set-payload/values_editable_by`. - public var values_editable_by: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.values_editable_byPayload? - /// Creates a new `custom_hyphen_property_hyphen_set_hyphen_payload`. + public var valuesEditableBy: Components.Schemas.CustomPropertySetPayload.ValuesEditableByPayload? + /// Creates a new `CustomPropertySetPayload`. /// /// - Parameters: - /// - value_type: The type of the value for the property + /// - valueType: The type of the value for the property /// - required: Whether the property is required. - /// - default_value: Default value of the property + /// - defaultValue: Default value of the property /// - description: Short description of the property - /// - allowed_values: An ordered list of the allowed values of the property. - /// - values_editable_by: Who can edit the values of the property + /// - allowedValues: An ordered list of the allowed values of the property. + /// - valuesEditableBy: Who can edit the values of the property public init( - value_type: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.value_typePayload, + valueType: Components.Schemas.CustomPropertySetPayload.ValueTypePayload, required: Swift.Bool? = nil, - default_value: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.default_valuePayload? = nil, + defaultValue: Components.Schemas.CustomPropertySetPayload.DefaultValuePayload? = nil, description: Swift.String? = nil, - allowed_values: [Swift.String]? = nil, - values_editable_by: Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload.values_editable_byPayload? = nil + allowedValues: [Swift.String]? = nil, + valuesEditableBy: Components.Schemas.CustomPropertySetPayload.ValuesEditableByPayload? = nil ) { - self.value_type = value_type + self.valueType = valueType self.required = required - self.default_value = default_value + self.defaultValue = defaultValue self.description = description - self.allowed_values = allowed_values - self.values_editable_by = values_editable_by + self.allowedValues = allowedValues + self.valuesEditableBy = valuesEditableBy } public enum CodingKeys: String, CodingKey { - case value_type + case valueType = "value_type" case required - case default_value + case defaultValue = "default_value" case description - case allowed_values - case values_editable_by + case allowedValues = "allowed_values" + case valuesEditableBy = "values_editable_by" } } /// Custom property name and associated value /// /// - Remark: Generated from `#/components/schemas/custom-property-value`. - public struct custom_hyphen_property_hyphen_value: Codable, Hashable, Sendable { + public struct CustomPropertyValue: Codable, Hashable, Sendable { /// The name of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/property_name`. - public var property_name: Swift.String + public var propertyName: Swift.String /// The value assigned to the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { + @frozen public enum ValuePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/custom-property-value/value/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/schemas/custom-property-value/value/case2`. @@ -8064,80 +8073,80 @@ public enum Components { /// The value assigned to the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/value`. - public var value: Components.Schemas.custom_hyphen_property_hyphen_value.valuePayload? - /// Creates a new `custom_hyphen_property_hyphen_value`. + public var value: Components.Schemas.CustomPropertyValue.ValuePayload? + /// Creates a new `CustomPropertyValue`. /// /// - Parameters: - /// - property_name: The name of the property + /// - propertyName: The name of the property /// - value: The value assigned to the property public init( - property_name: Swift.String, - value: Components.Schemas.custom_hyphen_property_hyphen_value.valuePayload? = nil + propertyName: Swift.String, + value: Components.Schemas.CustomPropertyValue.ValuePayload? = nil ) { - self.property_name = property_name + self.propertyName = propertyName self.value = value } public enum CodingKeys: String, CodingKey { - case property_name + case propertyName = "property_name" case value } } /// List of custom property values for a repository /// /// - Remark: Generated from `#/components/schemas/org-repo-custom-property-values`. - public struct org_hyphen_repo_hyphen_custom_hyphen_property_hyphen_values: Codable, Hashable, Sendable { + public struct OrgRepoCustomPropertyValues: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-repo-custom-property-values/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// - Remark: Generated from `#/components/schemas/org-repo-custom-property-values/repository_name`. - public var repository_name: Swift.String + public var repositoryName: Swift.String /// - Remark: Generated from `#/components/schemas/org-repo-custom-property-values/repository_full_name`. - public var repository_full_name: Swift.String + public var repositoryFullName: Swift.String /// List of custom property names and associated values /// /// - Remark: Generated from `#/components/schemas/org-repo-custom-property-values/properties`. - public var properties: [Components.Schemas.custom_hyphen_property_hyphen_value] - /// Creates a new `org_hyphen_repo_hyphen_custom_hyphen_property_hyphen_values`. + public var properties: [Components.Schemas.CustomPropertyValue] + /// Creates a new `OrgRepoCustomPropertyValues`. /// /// - Parameters: - /// - repository_id: - /// - repository_name: - /// - repository_full_name: + /// - repositoryId: + /// - repositoryName: + /// - repositoryFullName: /// - properties: List of custom property names and associated values public init( - repository_id: Swift.Int, - repository_name: Swift.String, - repository_full_name: Swift.String, - properties: [Components.Schemas.custom_hyphen_property_hyphen_value] + repositoryId: Swift.Int, + repositoryName: Swift.String, + repositoryFullName: Swift.String, + properties: [Components.Schemas.CustomPropertyValue] ) { - self.repository_id = repository_id - self.repository_name = repository_name - self.repository_full_name = repository_full_name + self.repositoryId = repositoryId + self.repositoryName = repositoryName + self.repositoryFullName = repositoryFullName self.properties = properties } public enum CodingKeys: String, CodingKey { - case repository_id - case repository_name - case repository_full_name + case repositoryId = "repository_id" + case repositoryName = "repository_name" + case repositoryFullName = "repository_full_name" case properties } } /// The historical version of a ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version`. - public struct ruleset_hyphen_version: Codable, Hashable, Sendable { + public struct RulesetVersion: Codable, Hashable, Sendable { /// The ID of the previous version of the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/version_id`. - public var version_id: Swift.Int + public var versionId: Swift.Int /// The actor who updated the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/actor`. - public struct actorPayload: Codable, Hashable, Sendable { + public struct ActorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/ruleset-version/actor/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/ruleset-version/actor/type`. public var _type: Swift.String? - /// Creates a new `actorPayload`. + /// Creates a new `ActorPayload`. /// /// - Parameters: /// - id: @@ -8157,34 +8166,34 @@ public enum Components { /// The actor who updated the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/actor`. - public var actor: Components.Schemas.ruleset_hyphen_version.actorPayload + public var actor: Components.Schemas.RulesetVersion.ActorPayload /// - Remark: Generated from `#/components/schemas/ruleset-version/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `ruleset_hyphen_version`. + public var updatedAt: Foundation.Date + /// Creates a new `RulesetVersion`. /// /// - Parameters: - /// - version_id: The ID of the previous version of the ruleset + /// - versionId: The ID of the previous version of the ruleset /// - actor: The actor who updated the ruleset - /// - updated_at: + /// - updatedAt: public init( - version_id: Swift.Int, - actor: Components.Schemas.ruleset_hyphen_version.actorPayload, - updated_at: Foundation.Date + versionId: Swift.Int, + actor: Components.Schemas.RulesetVersion.ActorPayload, + updatedAt: Foundation.Date ) { - self.version_id = version_id + self.versionId = versionId self.actor = actor - self.updated_at = updated_at + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { - case version_id + case versionId = "version_id" case actor - case updated_at + case updatedAt = "updated_at" } } /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state`. - public struct ruleset_hyphen_version_hyphen_with_hyphen_state: Codable, Hashable, Sendable { + public struct RulesetVersionWithState: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value1`. - public var value1: Components.Schemas.ruleset_hyphen_version + public var value1: Components.Schemas.RulesetVersion /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// The state of the ruleset version @@ -8203,26 +8212,26 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value2`. - public var value2: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.Value2Payload - /// Creates a new `ruleset_hyphen_version_hyphen_with_hyphen_state`. + public var value2: Components.Schemas.RulesetVersionWithState.Value2Payload + /// Creates a new `RulesetVersionWithState`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.ruleset_hyphen_version, - value2: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.Value2Payload + value1: Components.Schemas.RulesetVersion, + value2: Components.Schemas.RulesetVersionWithState.Value2Payload ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } } @@ -8231,180 +8240,180 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/components/parameters/cursor`. - public typealias cursor = Swift.String + public typealias Cursor = Swift.String /// - Remark: Generated from `#/components/parameters/delivery-id`. - public typealias delivery_hyphen_id = Swift.Int + public typealias DeliveryId = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// An organization ID. Only return organizations with an ID greater than this ID. /// /// - Remark: Generated from `#/components/parameters/since-org`. - public typealias since_hyphen_org = Swift.Int + public typealias SinceOrg = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/components/parameters/hook-id`. - public typealias hook_hyphen_id = Swift.Int + public typealias HookId = Swift.Int /// The type of the actor /// /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. - @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum ApiInsightsActorType: String, Codable, Hashable, Sendable, CaseIterable { case installation = "installation" - case classic_pat = "classic_pat" - case fine_grained_pat = "fine_grained_pat" - case oauth_app = "oauth_app" - case github_app_user_to_server = "github_app_user_to_server" + case classicPat = "classic_pat" + case fineGrainedPat = "fine_grained_pat" + case oauthApp = "oauth_app" + case githubAppUserToServer = "github_app_user_to_server" } /// The ID of the actor /// /// - Remark: Generated from `#/components/parameters/api-insights-actor-id`. - public typealias api_hyphen_insights_hyphen_actor_hyphen_id = Swift.Int + public typealias ApiInsightsActorId = Swift.Int /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/api-insights-min-timestamp`. - public typealias api_hyphen_insights_hyphen_min_hyphen_timestamp = Swift.String + public typealias ApiInsightsMinTimestamp = Swift.String /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/api-insights-max-timestamp`. - public typealias api_hyphen_insights_hyphen_max_hyphen_timestamp = Swift.String - /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort`. - @frozen public enum api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload: String, Codable, Hashable, Sendable { - case last_rate_limited_timestamp = "last_rate_limited_timestamp" - case last_request_timestamp = "last_request_timestamp" - case rate_limited_request_count = "rate_limited_request_count" - case http_method = "http_method" - case api_route = "api_route" - case total_request_count = "total_request_count" + public typealias ApiInsightsMaxTimestamp = Swift.String + /// - Remark: Generated from `#/components/parameters/ApiInsightsRouteStatsSort`. + @frozen public enum ApiInsightsRouteStatsSortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" + case rateLimitedRequestCount = "rate_limited_request_count" + case httpMethod = "http_method" + case apiRoute = "api_route" + case totalRequestCount = "total_request_count" } /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/api-insights-route-stats-sort`. - public typealias api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload] + public typealias ApiInsightsRouteStatsSort = [Components.Parameters.ApiInsightsRouteStatsSortPayload] /// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/components/parameters/api-insights-api-route-substring`. - public typealias api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring = Swift.String - /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_sort`. - @frozen public enum api_hyphen_insights_hyphen_sortPayload: String, Codable, Hashable, Sendable { - case last_rate_limited_timestamp = "last_rate_limited_timestamp" - case last_request_timestamp = "last_request_timestamp" - case rate_limited_request_count = "rate_limited_request_count" - case subject_name = "subject_name" - case total_request_count = "total_request_count" + public typealias ApiInsightsApiRouteSubstring = Swift.String + /// - Remark: Generated from `#/components/parameters/ApiInsightsSort`. + @frozen public enum ApiInsightsSortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" + case rateLimitedRequestCount = "rate_limited_request_count" + case subjectName = "subject_name" + case totalRequestCount = "total_request_count" } /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/api-insights-sort`. - public typealias api_hyphen_insights_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_sortPayload] + public typealias ApiInsightsSort = [Components.Parameters.ApiInsightsSortPayload] /// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/components/parameters/api-insights-subject-name-substring`. - public typealias api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring = Swift.String + public typealias ApiInsightsSubjectNameSubstring = Swift.String /// The ID of the user to query for stats /// /// - Remark: Generated from `#/components/parameters/api-insights-user-id`. - public typealias api_hyphen_insights_hyphen_user_hyphen_id = Swift.String + public typealias ApiInsightsUserId = Swift.String /// The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) /// /// - Remark: Generated from `#/components/parameters/api-insights-timestamp-increment`. - public typealias api_hyphen_insights_hyphen_timestamp_hyphen_increment = Swift.String + public typealias ApiInsightsTimestampIncrement = Swift.String /// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/components/parameters/api-insights-actor-name-substring`. - public typealias api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring = Swift.String + public typealias ApiInsightsActorNameSubstring = Swift.String /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/components/parameters/invitation-id`. - public typealias invitation_hyphen_id = Swift.Int + public typealias InvitationId = Swift.Int /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/components/parameters/issue-type-id`. - public typealias issue_hyphen_type_hyphen_id = Swift.Int + public typealias IssueTypeId = Swift.Int /// The slug of the team name. /// /// - Remark: Generated from `#/components/parameters/team-slug`. - public typealias team_hyphen_slug = Swift.String + public typealias TeamSlug = Swift.String /// The unique identifier of the role. /// /// - Remark: Generated from `#/components/parameters/role-id`. - public typealias role_hyphen_id = Swift.Int + public typealias RoleId = Swift.Int /// The property by which to sort the results. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-sort`. - @frozen public enum personal_hyphen_access_hyphen_token_hyphen_sort: String, Codable, Hashable, Sendable { - case created_at = "created_at" + @frozen public enum PersonalAccessTokenSort: String, Codable, Hashable, Sendable, CaseIterable { + case createdAt = "created_at" } /// A list of owner usernames to use to filter the results. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-owner`. - public typealias personal_hyphen_access_hyphen_token_hyphen_owner = [Swift.String] + public typealias PersonalAccessTokenOwner = [Swift.String] /// The name of the repository to use to filter the results. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-repository`. - public typealias personal_hyphen_access_hyphen_token_hyphen_repository = Swift.String + public typealias PersonalAccessTokenRepository = Swift.String /// The permission to use to filter the results. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-permission`. - public typealias personal_hyphen_access_hyphen_token_hyphen_permission = Swift.String + public typealias PersonalAccessTokenPermission = Swift.String /// Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-before`. - public typealias personal_hyphen_access_hyphen_token_hyphen_before = Foundation.Date + public typealias PersonalAccessTokenBefore = Foundation.Date /// Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/personal-access-token-after`. - public typealias personal_hyphen_access_hyphen_token_hyphen_after = Foundation.Date + public typealias PersonalAccessTokenAfter = Foundation.Date /// The ID of the token /// /// - Remark: Generated from `#/components/parameters/personal-access-token-token-id`. - public typealias personal_hyphen_access_hyphen_token_hyphen_token_hyphen_id = [Swift.String] + public typealias PersonalAccessTokenTokenId = [Swift.String] /// The unique identifier of the fine-grained personal access token. /// /// - Remark: Generated from `#/components/parameters/fine-grained-personal-access-token-id`. - public typealias fine_hyphen_grained_hyphen_personal_hyphen_access_hyphen_token_hyphen_id = Swift.Int + public typealias FineGrainedPersonalAccessTokenId = Swift.Int /// The custom property name /// /// - Remark: Generated from `#/components/parameters/custom-property-name`. - public typealias custom_hyphen_property_hyphen_name = Swift.String + public typealias CustomPropertyName = Swift.String /// The security feature to enable or disable. /// /// - Remark: Generated from `#/components/parameters/security-product`. - @frozen public enum security_hyphen_product: String, Codable, Hashable, Sendable { - case dependency_graph = "dependency_graph" - case dependabot_alerts = "dependabot_alerts" - case dependabot_security_updates = "dependabot_security_updates" - case advanced_security = "advanced_security" - case code_scanning_default_setup = "code_scanning_default_setup" - case secret_scanning = "secret_scanning" - case secret_scanning_push_protection = "secret_scanning_push_protection" + @frozen public enum SecurityProduct: String, Codable, Hashable, Sendable, CaseIterable { + case dependencyGraph = "dependency_graph" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case advancedSecurity = "advanced_security" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" } /// The action to take. /// @@ -8412,25 +8421,25 @@ public enum Components { /// `disable_all` means to disable the specified security feature for all repositories in the organization. /// /// - Remark: Generated from `#/components/parameters/org-security-product-enablement`. - @frozen public enum org_hyphen_security_hyphen_product_hyphen_enablement: String, Codable, Hashable, Sendable { - case enable_all = "enable_all" - case disable_all = "disable_all" + @frozen public enum OrgSecurityProductEnablement: String, Codable, Hashable, Sendable, CaseIterable { + case enableAll = "enable_all" + case disableAll = "disable_all" } } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -8440,25 +8449,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8468,25 +8477,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8500,15 +8509,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -8520,25 +8529,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -8548,16 +8557,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -8576,29 +8585,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8608,25 +8617,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8636,25 +8645,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/conflict/content`. + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8664,29 +8673,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct no_content: Sendable, Hashable { - /// Creates a new `no_content`. - public init() {} - } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. + public struct Conflict: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -8696,20 +8701,24 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } } /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -8724,7 +8733,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /organizations`. /// - Remark: Generated from `#/paths//organizations/get(orgs/list)`. - public enum orgs_sol_list { + public enum OrgsList { public static let id: Swift.String = "orgs/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/organizations/GET/query`. @@ -8732,45 +8741,45 @@ public enum Operations { /// An organization ID. Only return organizations with an ID greater than this ID. /// /// - Remark: Generated from `#/paths/organizations/GET/query/since`. - public var since: Components.Parameters.since_hyphen_org? + public var since: Components.Parameters.SinceOrg? /// 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)." /// /// - Remark: Generated from `#/paths/organizations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - since: An organization ID. Only return organizations with an ID greater than this ID. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since_hyphen_org? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + since: Components.Parameters.SinceOrg? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.orgs_sol_list.Input.Query + public var query: Operations.OrgsList.Input.Query /// - Remark: Generated from `#/paths/organizations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list.Input.Headers + public var headers: Operations.OrgsList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.orgs_sol_list.Input.Query = .init(), - headers: Operations.orgs_sol_list.Input.Headers = .init() + query: Operations.OrgsList.Input.Query = .init(), + headers: Operations.OrgsList.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8781,26 +8790,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/organizations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/organizations/GET/responses/200/headers/Link`. - public var Link: Swift.String? + public var link: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Swift.String? = nil) { - self.Link = Link + /// - link: + public init(link: Swift.String? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list.Output.Ok.Headers + public var headers: Operations.OrgsList.Output.Ok.Headers /// - Remark: Generated from `#/paths/organizations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/organizations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_simple]) + case json([Components.Schemas.OrganizationSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_simple] { + public var json: [Components.Schemas.OrganizationSimple] { get throws { switch self { case let .json(body): @@ -8810,15 +8819,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list.Output.Ok.Body + public var body: Operations.OrgsList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list.Output.Ok.Body + headers: Operations.OrgsList.Output.Ok.Headers = .init(), + body: Operations.OrgsList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8829,12 +8838,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/get(orgs/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list.Output.Ok) + case ok(Operations.OrgsList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list.Output.Ok { + public var ok: Operations.OrgsList.Output.Ok { get throws { switch self { case let .ok(response): @@ -8852,12 +8861,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//organizations/get(orgs/list)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//organizations/get(orgs/list)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8915,7 +8932,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)`. - public enum orgs_sol_get { + public enum OrgsGet { public static let id: Swift.String = "orgs/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/GET/path`. @@ -8923,36 +8940,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_get.Input.Path + public var path: Operations.OrgsGet.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get.Input.Headers + public var headers: Operations.OrgsGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get.Input.Path, - headers: Operations.orgs_sol_get.Input.Headers = .init() + path: Operations.OrgsGet.Input.Path, + headers: Operations.OrgsGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8963,12 +8980,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_full) + case json(Components.Schemas.OrganizationFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_full { + public var json: Components.Schemas.OrganizationFull { get throws { switch self { case let .json(body): @@ -8978,12 +8995,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get.Output.Ok.Body + public var body: Operations.OrgsGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get.Output.Ok.Body) { + public init(body: Operations.OrgsGet.Output.Ok.Body) { self.body = body } } @@ -8992,12 +9009,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get.Output.Ok) + case ok(Operations.OrgsGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get.Output.Ok { + public var ok: Operations.OrgsGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -9015,12 +9032,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/get(orgs/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9080,7 +9097,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)`. - public enum orgs_sol_update { + public enum OrgsUpdate { public static let id: Swift.String = "orgs/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/path`. @@ -9088,36 +9105,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_update.Input.Path + public var path: Operations.OrgsUpdate.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update.Input.Headers + public var headers: Operations.OrgsUpdate.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Billing email address. This address is not publicized. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/billing_email`. - public var billing_email: Swift.String? + public var billingEmail: Swift.String? /// The company name. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/company`. @@ -9129,7 +9146,7 @@ public enum Operations { /// The Twitter username of the company. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// The location. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/location`. @@ -9145,15 +9162,15 @@ public enum Operations { /// Whether an organization can use organization projects. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/has_organization_projects`. - public var has_organization_projects: Swift.Bool? + public var hasOrganizationProjects: Swift.Bool? /// Whether repositories that belong to the organization can use repository projects. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/has_repository_projects`. - public var has_repository_projects: Swift.Bool? + public var hasRepositoryProjects: Swift.Bool? /// Default permission level members have for organization repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/default_repository_permission`. - @frozen public enum default_repository_permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DefaultRepositoryPermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -9162,28 +9179,28 @@ public enum Operations { /// Default permission level members have for organization repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/default_repository_permission`. - public var default_repository_permission: Operations.orgs_sol_update.Input.Body.jsonPayload.default_repository_permissionPayload? + public var defaultRepositoryPermission: Operations.OrgsUpdate.Input.Body.JsonPayload.DefaultRepositoryPermissionPayload? /// Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_repositories`. - public var members_can_create_repositories: Swift.Bool? + public var membersCanCreateRepositories: Swift.Bool? /// Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_internal_repositories`. - public var members_can_create_internal_repositories: Swift.Bool? + public var membersCanCreateInternalRepositories: Swift.Bool? /// Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_private_repositories`. - public var members_can_create_private_repositories: Swift.Bool? + public var membersCanCreatePrivateRepositories: Swift.Bool? /// Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_public_repositories`. - public var members_can_create_public_repositories: Swift.Bool? + public var membersCanCreatePublicRepositories: Swift.Bool? /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. /// **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_allowed_repository_creation_type`. - @frozen public enum members_allowed_repository_creation_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum MembersAllowedRepositoryCreationTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case none = "none" @@ -9192,27 +9209,27 @@ public enum Operations { /// **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_allowed_repository_creation_type`. - public var members_allowed_repository_creation_type: Operations.orgs_sol_update.Input.Body.jsonPayload.members_allowed_repository_creation_typePayload? + public var membersAllowedRepositoryCreationType: Operations.OrgsUpdate.Input.Body.JsonPayload.MembersAllowedRepositoryCreationTypePayload? /// Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_pages`. - public var members_can_create_pages: Swift.Bool? + public var membersCanCreatePages: Swift.Bool? /// Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_public_pages`. - public var members_can_create_public_pages: Swift.Bool? + public var membersCanCreatePublicPages: Swift.Bool? /// Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_private_pages`. - public var members_can_create_private_pages: Swift.Bool? + public var membersCanCreatePrivatePages: Swift.Bool? /// Whether organization members can fork private organization repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_fork_private_repositories`. - public var members_can_fork_private_repositories: Swift.Bool? + public var membersCanForkPrivateRepositories: Swift.Bool? /// Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/blog`. public var blog: Swift.String? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. @@ -9225,7 +9242,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/advanced_security_enabled_for_new_repositories`. @available(*, deprecated) - public var advanced_security_enabled_for_new_repositories: Swift.Bool? + public var advancedSecurityEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization. @@ -9236,7 +9253,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependabot_alerts_enabled_for_new_repositories`. @available(*, deprecated) - public var dependabot_alerts_enabled_for_new_repositories: Swift.Bool? + public var dependabotAlertsEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization. @@ -9247,7 +9264,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependabot_security_updates_enabled_for_new_repositories`. @available(*, deprecated) - public var dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? + public var dependabotSecurityUpdatesEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization. @@ -9258,7 +9275,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependency_graph_enabled_for_new_repositories`. @available(*, deprecated) - public var dependency_graph_enabled_for_new_repositories: Swift.Bool? + public var dependencyGraphEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning is automatically enabled for new repositories and repositories transferred to this organization. @@ -9269,7 +9286,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/secret_scanning_enabled_for_new_repositories`. @available(*, deprecated) - public var secret_scanning_enabled_for_new_repositories: Swift.Bool? + public var secretScanningEnabledForNewRepositories: Swift.Bool? /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization. @@ -9280,152 +9297,152 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/secret_scanning_push_protection_enabled_for_new_repositories`. @available(*, deprecated) - public var secret_scanning_push_protection_enabled_for_new_repositories: Swift.Bool? + public var secretScanningPushProtectionEnabledForNewRepositories: Swift.Bool? /// Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/secret_scanning_push_protection_custom_link_enabled`. - public var secret_scanning_push_protection_custom_link_enabled: Swift.Bool? + public var secretScanningPushProtectionCustomLinkEnabled: Swift.Bool? /// If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/secret_scanning_push_protection_custom_link`. - public var secret_scanning_push_protection_custom_link: Swift.String? + public var secretScanningPushProtectionCustomLink: Swift.String? /// Controls whether or not deploy keys may be added and used for repositories in the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/deploy_keys_enabled_for_repositories`. - public var deploy_keys_enabled_for_repositories: Swift.Bool? - /// Creates a new `jsonPayload`. + public var deployKeysEnabledForRepositories: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - billing_email: Billing email address. This address is not publicized. + /// - billingEmail: Billing email address. This address is not publicized. /// - company: The company name. /// - email: The publicly visible email address. - /// - twitter_username: The Twitter username of the company. + /// - twitterUsername: The Twitter username of the company. /// - location: The location. /// - name: The shorthand name of the company. /// - description: The description of the company. The maximum size is 160 characters. - /// - has_organization_projects: Whether an organization can use organization projects. - /// - has_repository_projects: Whether repositories that belong to the organization can use repository projects. - /// - default_repository_permission: Default permission level members have for organization repositories. - /// - members_can_create_repositories: Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. - /// - members_can_create_internal_repositories: Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. - /// - members_can_create_private_repositories: Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. - /// - members_can_create_public_repositories: Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. - /// - members_allowed_repository_creation_type: Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. - /// - members_can_create_pages: Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted. - /// - members_can_create_public_pages: Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted. - /// - members_can_create_private_pages: Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted. - /// - members_can_fork_private_repositories: Whether organization members can fork private organization repositories. - /// - web_commit_signoff_required: Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface. + /// - hasOrganizationProjects: Whether an organization can use organization projects. + /// - hasRepositoryProjects: Whether repositories that belong to the organization can use repository projects. + /// - defaultRepositoryPermission: Default permission level members have for organization repositories. + /// - membersCanCreateRepositories: Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. + /// - membersCanCreateInternalRepositories: Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + /// - membersCanCreatePrivateRepositories: Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + /// - membersCanCreatePublicRepositories: Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + /// - membersAllowedRepositoryCreationType: Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. + /// - membersCanCreatePages: Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted. + /// - membersCanCreatePublicPages: Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted. + /// - membersCanCreatePrivatePages: Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted. + /// - membersCanForkPrivateRepositories: Whether organization members can fork private organization repositories. + /// - webCommitSignoffRequired: Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface. /// - blog: - /// - advanced_security_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_alerts_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_security_updates_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependency_graph_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_custom_link_enabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. - /// - secret_scanning_push_protection_custom_link: If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret. - /// - deploy_keys_enabled_for_repositories: Controls whether or not deploy keys may be added and used for repositories in the organization. + /// - advancedSecurityEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabotAlertsEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabotSecurityUpdatesEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependencyGraphEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningPushProtectionEnabledForNewRepositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secretScanningPushProtectionCustomLinkEnabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. + /// - secretScanningPushProtectionCustomLink: If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret. + /// - deployKeysEnabledForRepositories: Controls whether or not deploy keys may be added and used for repositories in the organization. public init( - billing_email: Swift.String? = nil, + billingEmail: Swift.String? = nil, company: Swift.String? = nil, email: Swift.String? = nil, - twitter_username: Swift.String? = nil, + twitterUsername: Swift.String? = nil, location: Swift.String? = nil, name: Swift.String? = nil, description: Swift.String? = nil, - has_organization_projects: Swift.Bool? = nil, - has_repository_projects: Swift.Bool? = nil, - default_repository_permission: Operations.orgs_sol_update.Input.Body.jsonPayload.default_repository_permissionPayload? = nil, - members_can_create_repositories: Swift.Bool? = nil, - members_can_create_internal_repositories: Swift.Bool? = nil, - members_can_create_private_repositories: Swift.Bool? = nil, - members_can_create_public_repositories: Swift.Bool? = nil, - members_allowed_repository_creation_type: Operations.orgs_sol_update.Input.Body.jsonPayload.members_allowed_repository_creation_typePayload? = nil, - members_can_create_pages: Swift.Bool? = nil, - members_can_create_public_pages: Swift.Bool? = nil, - members_can_create_private_pages: Swift.Bool? = nil, - members_can_fork_private_repositories: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, + hasOrganizationProjects: Swift.Bool? = nil, + hasRepositoryProjects: Swift.Bool? = nil, + defaultRepositoryPermission: Operations.OrgsUpdate.Input.Body.JsonPayload.DefaultRepositoryPermissionPayload? = nil, + membersCanCreateRepositories: Swift.Bool? = nil, + membersCanCreateInternalRepositories: Swift.Bool? = nil, + membersCanCreatePrivateRepositories: Swift.Bool? = nil, + membersCanCreatePublicRepositories: Swift.Bool? = nil, + membersAllowedRepositoryCreationType: Operations.OrgsUpdate.Input.Body.JsonPayload.MembersAllowedRepositoryCreationTypePayload? = nil, + membersCanCreatePages: Swift.Bool? = nil, + membersCanCreatePublicPages: Swift.Bool? = nil, + membersCanCreatePrivatePages: Swift.Bool? = nil, + membersCanForkPrivateRepositories: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, blog: Swift.String? = nil, - advanced_security_enabled_for_new_repositories: Swift.Bool? = nil, - dependabot_alerts_enabled_for_new_repositories: Swift.Bool? = nil, - dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? = nil, - dependency_graph_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_push_protection_enabled_for_new_repositories: Swift.Bool? = nil, - secret_scanning_push_protection_custom_link_enabled: Swift.Bool? = nil, - secret_scanning_push_protection_custom_link: Swift.String? = nil, - deploy_keys_enabled_for_repositories: Swift.Bool? = nil + advancedSecurityEnabledForNewRepositories: Swift.Bool? = nil, + dependabotAlertsEnabledForNewRepositories: Swift.Bool? = nil, + dependabotSecurityUpdatesEnabledForNewRepositories: Swift.Bool? = nil, + dependencyGraphEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningPushProtectionEnabledForNewRepositories: Swift.Bool? = nil, + secretScanningPushProtectionCustomLinkEnabled: Swift.Bool? = nil, + secretScanningPushProtectionCustomLink: Swift.String? = nil, + deployKeysEnabledForRepositories: Swift.Bool? = nil ) { - self.billing_email = billing_email + self.billingEmail = billingEmail self.company = company self.email = email - self.twitter_username = twitter_username + self.twitterUsername = twitterUsername self.location = location self.name = name self.description = description - self.has_organization_projects = has_organization_projects - self.has_repository_projects = has_repository_projects - self.default_repository_permission = default_repository_permission - self.members_can_create_repositories = members_can_create_repositories - self.members_can_create_internal_repositories = members_can_create_internal_repositories - self.members_can_create_private_repositories = members_can_create_private_repositories - self.members_can_create_public_repositories = members_can_create_public_repositories - self.members_allowed_repository_creation_type = members_allowed_repository_creation_type - self.members_can_create_pages = members_can_create_pages - self.members_can_create_public_pages = members_can_create_public_pages - self.members_can_create_private_pages = members_can_create_private_pages - self.members_can_fork_private_repositories = members_can_fork_private_repositories - self.web_commit_signoff_required = web_commit_signoff_required + self.hasOrganizationProjects = hasOrganizationProjects + self.hasRepositoryProjects = hasRepositoryProjects + self.defaultRepositoryPermission = defaultRepositoryPermission + self.membersCanCreateRepositories = membersCanCreateRepositories + self.membersCanCreateInternalRepositories = membersCanCreateInternalRepositories + self.membersCanCreatePrivateRepositories = membersCanCreatePrivateRepositories + self.membersCanCreatePublicRepositories = membersCanCreatePublicRepositories + self.membersAllowedRepositoryCreationType = membersAllowedRepositoryCreationType + self.membersCanCreatePages = membersCanCreatePages + self.membersCanCreatePublicPages = membersCanCreatePublicPages + self.membersCanCreatePrivatePages = membersCanCreatePrivatePages + self.membersCanForkPrivateRepositories = membersCanForkPrivateRepositories + self.webCommitSignoffRequired = webCommitSignoffRequired self.blog = blog - self.advanced_security_enabled_for_new_repositories = advanced_security_enabled_for_new_repositories - self.dependabot_alerts_enabled_for_new_repositories = dependabot_alerts_enabled_for_new_repositories - self.dependabot_security_updates_enabled_for_new_repositories = dependabot_security_updates_enabled_for_new_repositories - self.dependency_graph_enabled_for_new_repositories = dependency_graph_enabled_for_new_repositories - self.secret_scanning_enabled_for_new_repositories = secret_scanning_enabled_for_new_repositories - self.secret_scanning_push_protection_enabled_for_new_repositories = secret_scanning_push_protection_enabled_for_new_repositories - self.secret_scanning_push_protection_custom_link_enabled = secret_scanning_push_protection_custom_link_enabled - self.secret_scanning_push_protection_custom_link = secret_scanning_push_protection_custom_link - self.deploy_keys_enabled_for_repositories = deploy_keys_enabled_for_repositories + self.advancedSecurityEnabledForNewRepositories = advancedSecurityEnabledForNewRepositories + self.dependabotAlertsEnabledForNewRepositories = dependabotAlertsEnabledForNewRepositories + self.dependabotSecurityUpdatesEnabledForNewRepositories = dependabotSecurityUpdatesEnabledForNewRepositories + self.dependencyGraphEnabledForNewRepositories = dependencyGraphEnabledForNewRepositories + self.secretScanningEnabledForNewRepositories = secretScanningEnabledForNewRepositories + self.secretScanningPushProtectionEnabledForNewRepositories = secretScanningPushProtectionEnabledForNewRepositories + self.secretScanningPushProtectionCustomLinkEnabled = secretScanningPushProtectionCustomLinkEnabled + self.secretScanningPushProtectionCustomLink = secretScanningPushProtectionCustomLink + self.deployKeysEnabledForRepositories = deployKeysEnabledForRepositories } public enum CodingKeys: String, CodingKey { - case billing_email + case billingEmail = "billing_email" case company case email - case twitter_username + case twitterUsername = "twitter_username" case location case name case description - case has_organization_projects - case has_repository_projects - case default_repository_permission - case members_can_create_repositories - case members_can_create_internal_repositories - case members_can_create_private_repositories - case members_can_create_public_repositories - case members_allowed_repository_creation_type - case members_can_create_pages - case members_can_create_public_pages - case members_can_create_private_pages - case members_can_fork_private_repositories - case web_commit_signoff_required + case hasOrganizationProjects = "has_organization_projects" + case hasRepositoryProjects = "has_repository_projects" + case defaultRepositoryPermission = "default_repository_permission" + case membersCanCreateRepositories = "members_can_create_repositories" + case membersCanCreateInternalRepositories = "members_can_create_internal_repositories" + case membersCanCreatePrivateRepositories = "members_can_create_private_repositories" + case membersCanCreatePublicRepositories = "members_can_create_public_repositories" + case membersAllowedRepositoryCreationType = "members_allowed_repository_creation_type" + case membersCanCreatePages = "members_can_create_pages" + case membersCanCreatePublicPages = "members_can_create_public_pages" + case membersCanCreatePrivatePages = "members_can_create_private_pages" + case membersCanForkPrivateRepositories = "members_can_fork_private_repositories" + case webCommitSignoffRequired = "web_commit_signoff_required" case blog - case advanced_security_enabled_for_new_repositories - case dependabot_alerts_enabled_for_new_repositories - case dependabot_security_updates_enabled_for_new_repositories - case dependency_graph_enabled_for_new_repositories - case secret_scanning_enabled_for_new_repositories - case secret_scanning_push_protection_enabled_for_new_repositories - case secret_scanning_push_protection_custom_link_enabled - case secret_scanning_push_protection_custom_link - case deploy_keys_enabled_for_repositories + case advancedSecurityEnabledForNewRepositories = "advanced_security_enabled_for_new_repositories" + case dependabotAlertsEnabledForNewRepositories = "dependabot_alerts_enabled_for_new_repositories" + case dependabotSecurityUpdatesEnabledForNewRepositories = "dependabot_security_updates_enabled_for_new_repositories" + case dependencyGraphEnabledForNewRepositories = "dependency_graph_enabled_for_new_repositories" + case secretScanningEnabledForNewRepositories = "secret_scanning_enabled_for_new_repositories" + case secretScanningPushProtectionEnabledForNewRepositories = "secret_scanning_push_protection_enabled_for_new_repositories" + case secretScanningPushProtectionCustomLinkEnabled = "secret_scanning_push_protection_custom_link_enabled" + case secretScanningPushProtectionCustomLink = "secret_scanning_push_protection_custom_link" + case deployKeysEnabledForRepositories = "deploy_keys_enabled_for_repositories" } } /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update.Input.Body.jsonPayload) + case json(Operations.OrgsUpdate.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update.Input.Body? + public var body: Operations.OrgsUpdate.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -9433,9 +9450,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update.Input.Path, - headers: Operations.orgs_sol_update.Input.Headers = .init(), - body: Operations.orgs_sol_update.Input.Body? = nil + path: Operations.OrgsUpdate.Input.Path, + headers: Operations.OrgsUpdate.Input.Headers = .init(), + body: Operations.OrgsUpdate.Input.Body? = nil ) { self.path = path self.headers = headers @@ -9447,12 +9464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_full) + case json(Components.Schemas.OrganizationFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_full { + public var json: Components.Schemas.OrganizationFull { get throws { switch self { case let .json(body): @@ -9462,12 +9479,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update.Output.Ok.Body + public var body: Operations.OrgsUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update.Output.Ok.Body) { + public init(body: Operations.OrgsUpdate.Output.Ok.Body) { self.body = body } } @@ -9476,12 +9493,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_update.Output.Ok) + case ok(Operations.OrgsUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_update.Output.Ok { + public var ok: Operations.OrgsUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -9498,21 +9515,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/422/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/422/content/json/case1`. - case validation_hyphen_error(Components.Schemas.validation_hyphen_error) + case ValidationError(Components.Schemas.ValidationError) /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/422/content/json/case2`. - case validation_hyphen_error_hyphen_simple(Components.Schemas.validation_hyphen_error_hyphen_simple) + case ValidationErrorSimple(Components.Schemas.ValidationErrorSimple) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .validation_hyphen_error(try .init(from: decoder)) + self = .ValidationError(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .validation_hyphen_error_hyphen_simple(try .init(from: decoder)) + self = .ValidationErrorSimple(try .init(from: decoder)) return } catch { errors.append(error) @@ -9525,20 +9542,20 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { switch self { - case let .validation_hyphen_error(value): + case let .ValidationError(value): try value.encode(to: encoder) - case let .validation_hyphen_error_hyphen_simple(value): + case let .ValidationErrorSimple(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/responses/422/content/application\/json`. - case json(Operations.orgs_sol_update.Output.UnprocessableContent.Body.jsonPayload) + case json(Operations.OrgsUpdate.Output.UnprocessableContent.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_update.Output.UnprocessableContent.Body.jsonPayload { + public var json: Operations.OrgsUpdate.Output.UnprocessableContent.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -9548,12 +9565,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update.Output.UnprocessableContent.Body + public var body: Operations.OrgsUpdate.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update.Output.UnprocessableContent.Body) { + public init(body: Operations.OrgsUpdate.Output.UnprocessableContent.Body) { self.body = body } } @@ -9562,12 +9579,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_update.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsUpdate.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_update.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsUpdate.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -9585,12 +9602,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/patch(orgs/update)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -9646,7 +9663,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}`. /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)`. - public enum orgs_sol_delete { + public enum OrgsDelete { public static let id: Swift.String = "orgs/delete" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/DELETE/path`. @@ -9654,36 +9671,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_delete.Input.Path + public var path: Operations.OrgsDelete.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_delete.Input.Headers + public var headers: Operations.OrgsDelete.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_delete.Input.Path, - headers: Operations.orgs_sol_delete.Input.Headers = .init() + path: Operations.OrgsDelete.Input.Path, + headers: Operations.OrgsDelete.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9695,12 +9712,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -9718,12 +9735,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9741,12 +9758,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/delete(orgs/delete)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9800,7 +9817,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//orgs/{org}/attestations/{subject_digest}/get(orgs/list-attestations)`. - public enum orgs_sol_list_hyphen_attestations { + public enum OrgsListAttestations { public static let id: Swift.String = "orgs/list-attestations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/path`. @@ -9808,76 +9825,76 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/path/subject_digest`. - public var subject_digest: Swift.String + public var subjectDigest: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - subject_digest: The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. + /// - subjectDigest: The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. public init( - org: Components.Parameters.org, - subject_digest: Swift.String + org: Components.Parameters.Org, + subjectDigest: Swift.String ) { self.org = org - self.subject_digest = subject_digest + self.subjectDigest = subjectDigest } } - public var path: Operations.orgs_sol_list_hyphen_attestations.Input.Path + public var path: Operations.OrgsListAttestations.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// Optional filter for fetching attestations with a given predicate type. /// This option accepts `provenance`, `sbom`, or freeform text for custom predicate types. /// /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/query/predicate_type`. - public var predicate_type: Swift.String? + public var predicateType: Swift.String? /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - predicate_type: Optional filter for fetching attestations with a given predicate type. + /// - predicateType: Optional filter for fetching attestations with a given predicate type. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - predicate_type: Swift.String? = nil + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + predicateType: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after - self.predicate_type = predicate_type + self.predicateType = predicateType } } - public var query: Operations.orgs_sol_list_hyphen_attestations.Input.Query + public var query: Operations.OrgsListAttestations.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_attestations.Input.Headers + public var headers: Operations.OrgsListAttestations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9885,9 +9902,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_attestations.Input.Path, - query: Operations.orgs_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_attestations.Input.Headers = .init() + path: Operations.OrgsListAttestations.Input.Path, + query: Operations.OrgsListAttestations.Input.Query = .init(), + headers: Operations.OrgsListAttestations.Input.Headers = .init() ) { self.path = path self.query = query @@ -9899,21 +9916,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload`. - public struct attestationsPayloadPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload`. + public struct AttestationsPayloadPayload: Codable, Hashable, Sendable { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public struct bundlePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/mediaType`. + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public struct BundlePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/mediaType`. public var mediaType: Swift.String? - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public struct verificationMaterialPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public struct VerificationMaterialPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `verificationMaterialPayload`. + /// Creates a new `VerificationMaterialPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -9927,13 +9944,13 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public var verificationMaterial: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public struct dsseEnvelopePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public var verificationMaterial: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public struct DsseEnvelopePayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `dsseEnvelopePayload`. + /// Creates a new `DsseEnvelopePayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -9947,9 +9964,9 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public var dsseEnvelope: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? - /// Creates a new `bundlePayload`. + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public var dsseEnvelope: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? + /// Creates a new `BundlePayload`. /// /// - Parameters: /// - mediaType: @@ -9957,8 +9974,8 @@ public enum Operations { /// - dsseEnvelope: public init( mediaType: Swift.String? = nil, - verificationMaterial: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? = nil, - dsseEnvelope: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? = nil + verificationMaterial: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? = nil, + dsseEnvelope: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? = nil ) { self.mediaType = mediaType self.verificationMaterial = verificationMaterial @@ -9973,42 +9990,42 @@ public enum Operations { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public var bundle: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/repository_id`. - public var repository_id: Swift.Int? - /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle_url`. - public var bundle_url: Swift.String? - /// Creates a new `attestationsPayloadPayload`. + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public var bundle: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/repository_id`. + public var repositoryId: Swift.Int? + /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`. + public var bundleUrl: Swift.String? + /// Creates a new `AttestationsPayloadPayload`. /// /// - Parameters: /// - bundle: The attestation's Sigstore Bundle. - /// - repository_id: - /// - bundle_url: + /// - repositoryId: + /// - bundleUrl: public init( - bundle: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? = nil, - repository_id: Swift.Int? = nil, - bundle_url: Swift.String? = nil + bundle: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil, + repositoryId: Swift.Int? = nil, + bundleUrl: Swift.String? = nil ) { self.bundle = bundle - self.repository_id = repository_id - self.bundle_url = bundle_url + self.repositoryId = repositoryId + self.bundleUrl = bundleUrl } public enum CodingKeys: String, CodingKey { case bundle - case repository_id - case bundle_url + case repositoryId = "repository_id" + case bundleUrl = "bundle_url" } } /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public typealias attestationsPayload = [Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload] + public typealias AttestationsPayload = [Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload] /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public var attestations: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? - /// Creates a new `jsonPayload`. + public var attestations: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - attestations: - public init(attestations: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? = nil) { + public init(attestations: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? = nil) { self.attestations = attestations } public enum CodingKeys: String, CodingKey { @@ -10016,12 +10033,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/attestations/{subject_digest}/GET/responses/200/content/application\/json`. - case json(Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload) + case json(Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload { + public var json: Operations.OrgsListAttestations.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10031,12 +10048,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body + public var body: Operations.OrgsListAttestations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_attestations.Output.Ok.Body) { + public init(body: Operations.OrgsListAttestations.Output.Ok.Body) { self.body = body } } @@ -10045,12 +10062,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/attestations/{subject_digest}/get(orgs/list-attestations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_attestations.Output.Ok) + case ok(Operations.OrgsListAttestations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_attestations.Output.Ok { + public var ok: Operations.OrgsListAttestations.Output.Ok { get throws { switch self { case let .ok(response): @@ -10100,7 +10117,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/blocks`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/get(orgs/list-blocked-users)`. - public enum orgs_sol_list_hyphen_blocked_hyphen_users { + public enum OrgsListBlockedUsers { public static let id: Swift.String = "orgs/list-blocked-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/path`. @@ -10108,52 +10125,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Path + public var path: Operations.OrgsListBlockedUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Query + public var query: Operations.OrgsListBlockedUsers.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Headers + public var headers: Operations.OrgsListBlockedUsers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10161,9 +10178,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Path, - query: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Input.Headers = .init() + path: Operations.OrgsListBlockedUsers.Input.Path, + query: Operations.OrgsListBlockedUsers.Input.Query = .init(), + headers: Operations.OrgsListBlockedUsers.Input.Headers = .init() ) { self.path = path self.query = query @@ -10175,12 +10192,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -10190,12 +10207,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output.Ok.Body + public var body: Operations.OrgsListBlockedUsers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output.Ok.Body) { + public init(body: Operations.OrgsListBlockedUsers.Output.Ok.Body) { self.body = body } } @@ -10204,12 +10221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/get(orgs/list-blocked-users)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output.Ok) + case ok(Operations.OrgsListBlockedUsers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_blocked_hyphen_users.Output.Ok { + public var ok: Operations.OrgsListBlockedUsers.Output.Ok { get throws { switch self { case let .ok(response): @@ -10259,7 +10276,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)`. - public enum orgs_sol_check_hyphen_blocked_hyphen_user { + public enum OrgsCheckBlockedUser { public static let id: Swift.String = "orgs/check-blocked-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/path`. @@ -10267,45 +10284,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Path + public var path: Operations.OrgsCheckBlockedUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Headers + public var headers: Operations.OrgsCheckBlockedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Path, - headers: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Input.Headers = .init() + path: Operations.OrgsCheckBlockedUser.Input.Path, + headers: Operations.OrgsCheckBlockedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10321,12 +10338,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsCheckBlockedUser.Output.NoContent) + /// If the user is blocked + /// + /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsCheckBlockedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10343,12 +10368,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -10358,12 +10383,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NotFound.Body + public var body: Operations.OrgsCheckBlockedUser.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NotFound.Body) { + public init(body: Operations.OrgsCheckBlockedUser.Output.NotFound.Body) { self.body = body } } @@ -10372,12 +10397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/get(orgs/check-blocked-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NotFound) + case notFound(Operations.OrgsCheckBlockedUser.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_check_hyphen_blocked_hyphen_user.Output.NotFound { + public var notFound: Operations.OrgsCheckBlockedUser.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -10427,7 +10452,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)`. - public enum orgs_sol_block_hyphen_user { + public enum OrgsBlockUser { public static let id: Swift.String = "orgs/block-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/PUT/path`. @@ -10435,45 +10460,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_block_hyphen_user.Input.Path + public var path: Operations.OrgsBlockUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_block_hyphen_user.Input.Headers + public var headers: Operations.OrgsBlockUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_block_hyphen_user.Input.Path, - headers: Operations.orgs_sol_block_hyphen_user.Input.Headers = .init() + path: Operations.OrgsBlockUser.Input.Path, + headers: Operations.OrgsBlockUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10489,12 +10514,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_block_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsBlockUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_block_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsBlockUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10512,12 +10545,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/put(orgs/block-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -10567,7 +10600,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/blocks/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)`. - public enum orgs_sol_unblock_hyphen_user { + public enum OrgsUnblockUser { public static let id: Swift.String = "orgs/unblock-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/DELETE/path`. @@ -10575,30 +10608,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/blocks/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_unblock_hyphen_user.Input.Path + public var path: Operations.OrgsUnblockUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_unblock_hyphen_user.Input.Path) { + public init(path: Operations.OrgsUnblockUser.Input.Path) { self.path = path } } @@ -10612,12 +10645,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_unblock_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsUnblockUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/blocks/{username}/delete(orgs/unblock-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_unblock_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsUnblockUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10642,7 +10683,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/failed_invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)`. - public enum orgs_sol_list_hyphen_failed_hyphen_invitations { + public enum OrgsListFailedInvitations { public static let id: Swift.String = "orgs/list-failed-invitations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/path`. @@ -10650,52 +10691,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Path + public var path: Operations.OrgsListFailedInvitations.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Query + public var query: Operations.OrgsListFailedInvitations.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Headers + public var headers: Operations.OrgsListFailedInvitations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10703,9 +10744,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Path, - query: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Input.Headers = .init() + path: Operations.OrgsListFailedInvitations.Input.Path, + query: Operations.OrgsListFailedInvitations.Input.Query = .init(), + headers: Operations.OrgsListFailedInvitations.Input.Headers = .init() ) { self.path = path self.query = query @@ -10717,26 +10758,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Headers + public var headers: Operations.OrgsListFailedInvitations.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/failed_invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_invitation]) + case json([Components.Schemas.OrganizationInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_invitation] { + public var json: [Components.Schemas.OrganizationInvitation] { get throws { switch self { case let .json(body): @@ -10746,15 +10787,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Body + public var body: Operations.OrgsListFailedInvitations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok.Body + headers: Operations.OrgsListFailedInvitations.Output.Ok.Headers = .init(), + body: Operations.OrgsListFailedInvitations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10765,12 +10806,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok) + case ok(Operations.OrgsListFailedInvitations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_failed_hyphen_invitations.Output.Ok { + public var ok: Operations.OrgsListFailedInvitations.Output.Ok { get throws { switch self { case let .ok(response): @@ -10788,12 +10829,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/failed_invitations/get(orgs/list-failed-invitations)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10848,7 +10889,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)`. - public enum orgs_sol_list_hyphen_webhooks { + public enum OrgsListWebhooks { public static let id: Swift.String = "orgs/list-webhooks" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/path`. @@ -10856,52 +10897,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_webhooks.Input.Path + public var path: Operations.OrgsListWebhooks.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_webhooks.Input.Query + public var query: Operations.OrgsListWebhooks.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_webhooks.Input.Headers + public var headers: Operations.OrgsListWebhooks.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10909,9 +10950,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_webhooks.Input.Path, - query: Operations.orgs_sol_list_hyphen_webhooks.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_webhooks.Input.Headers = .init() + path: Operations.OrgsListWebhooks.Input.Path, + query: Operations.OrgsListWebhooks.Input.Query = .init(), + headers: Operations.OrgsListWebhooks.Input.Headers = .init() ) { self.path = path self.query = query @@ -10923,26 +10964,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Headers + public var headers: Operations.OrgsListWebhooks.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.org_hyphen_hook]) + case json([Components.Schemas.OrgHook]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.org_hyphen_hook] { + public var json: [Components.Schemas.OrgHook] { get throws { switch self { case let .json(body): @@ -10952,15 +10993,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Body + public var body: Operations.OrgsListWebhooks.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok.Body + headers: Operations.OrgsListWebhooks.Output.Ok.Headers = .init(), + body: Operations.OrgsListWebhooks.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10971,12 +11012,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_webhooks.Output.Ok) + case ok(Operations.OrgsListWebhooks.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_webhooks.Output.Ok { + public var ok: Operations.OrgsListWebhooks.Output.Ok { get throws { switch self { case let .ok(response): @@ -10994,12 +11035,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/get(orgs/list-webhooks)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11054,7 +11095,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/hooks`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)`. - public enum orgs_sol_create_hyphen_webhook { + public enum OrgsCreateWebhook { public static let id: Swift.String = "orgs/create-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/path`. @@ -11062,32 +11103,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_create_hyphen_webhook.Input.Path + public var path: Operations.OrgsCreateWebhook.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_webhook.Input.Headers + public var headers: Operations.OrgsCreateWebhook.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Must be passed as "web". /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/name`. @@ -11095,48 +11136,48 @@ public enum Operations { /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config`. - public struct configPayload: Codable, Hashable, Sendable { + public struct ConfigPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url + public var url: Components.Schemas.WebhookConfigUrl /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/username`. public var username: Swift.String? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config/password`. public var password: Swift.String? - /// Creates a new `configPayload`. + /// Creates a new `ConfigPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: /// - username: /// - password: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil, + url: Components.Schemas.WebhookConfigUrl, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil, username: Swift.String? = nil, password: Swift.String? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl self.username = username self.password = password } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" case username case password } @@ -11144,7 +11185,7 @@ public enum Operations { /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/config`. - public var config: Operations.orgs_sol_create_hyphen_webhook.Input.Body.jsonPayload.configPayload + public var config: Operations.OrgsCreateWebhook.Input.Body.JsonPayload.ConfigPayload /// Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/events`. @@ -11153,7 +11194,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/json/active`. public var active: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Must be passed as "web". @@ -11162,7 +11203,7 @@ public enum Operations { /// - active: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. public init( name: Swift.String, - config: Operations.orgs_sol_create_hyphen_webhook.Input.Body.jsonPayload.configPayload, + config: Operations.OrgsCreateWebhook.Input.Body.JsonPayload.ConfigPayload, events: [Swift.String]? = nil, active: Swift.Bool? = nil ) { @@ -11179,9 +11220,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_create_hyphen_webhook.Input.Body.jsonPayload) + case json(Operations.OrgsCreateWebhook.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_create_hyphen_webhook.Input.Body + public var body: Operations.OrgsCreateWebhook.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11189,9 +11230,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_create_hyphen_webhook.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_webhook.Input.Body + path: Operations.OrgsCreateWebhook.Input.Path, + headers: Operations.OrgsCreateWebhook.Input.Headers = .init(), + body: Operations.OrgsCreateWebhook.Input.Body ) { self.path = path self.headers = headers @@ -11203,26 +11244,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Headers + public var headers: Operations.OrgsCreateWebhook.Output.Created.Headers /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/POST/responses/201/content/application\/json`. - case json(Components.Schemas.org_hyphen_hook) + case json(Components.Schemas.OrgHook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_hook { + public var json: Components.Schemas.OrgHook { get throws { switch self { case let .json(body): @@ -11232,15 +11273,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Body + public var body: Operations.OrgsCreateWebhook.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_webhook.Output.Created.Body + headers: Operations.OrgsCreateWebhook.Output.Created.Headers = .init(), + body: Operations.OrgsCreateWebhook.Output.Created.Body ) { self.headers = headers self.body = body @@ -11251,12 +11292,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.orgs_sol_create_hyphen_webhook.Output.Created) + case created(Operations.OrgsCreateWebhook.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.orgs_sol_create_hyphen_webhook.Output.Created { + public var created: Operations.OrgsCreateWebhook.Output.Created { get throws { switch self { case let .created(response): @@ -11274,12 +11315,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11297,12 +11338,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11358,7 +11399,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)`. - public enum orgs_sol_get_hyphen_webhook { + public enum OrgsGetWebhook { public static let id: Swift.String = "orgs/get-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/path`. @@ -11366,45 +11407,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_get_hyphen_webhook.Input.Path + public var path: Operations.OrgsGetWebhook.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_webhook.Input.Headers + public var headers: Operations.OrgsGetWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook.Input.Headers = .init() + path: Operations.OrgsGetWebhook.Input.Path, + headers: Operations.OrgsGetWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11415,12 +11456,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_hook) + case json(Components.Schemas.OrgHook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_hook { + public var json: Components.Schemas.OrgHook { get throws { switch self { case let .json(body): @@ -11430,12 +11471,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_webhook.Output.Ok.Body + public var body: Operations.OrgsGetWebhook.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_webhook.Output.Ok.Body) { + public init(body: Operations.OrgsGetWebhook.Output.Ok.Body) { self.body = body } } @@ -11444,12 +11485,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_webhook.Output.Ok) + case ok(Operations.OrgsGetWebhook.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_webhook.Output.Ok { + public var ok: Operations.OrgsGetWebhook.Output.Ok { get throws { switch self { case let .ok(response): @@ -11467,12 +11508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11531,7 +11572,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)`. - public enum orgs_sol_update_hyphen_webhook { + public enum OrgsUpdateWebhook { public static let id: Swift.String = "orgs/update-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/path`. @@ -11539,82 +11580,82 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_update_hyphen_webhook.Input.Path + public var path: Operations.OrgsUpdateWebhook.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_webhook.Input.Headers + public var headers: Operations.OrgsUpdateWebhook.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config`. - public struct configPayload: Codable, Hashable, Sendable { + public struct ConfigPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url + public var url: Components.Schemas.WebhookConfigUrl /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `configPayload`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `ConfigPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/config`. - public var config: Operations.orgs_sol_update_hyphen_webhook.Input.Body.jsonPayload.configPayload? + public var config: Operations.OrgsUpdateWebhook.Input.Body.JsonPayload.ConfigPayload? /// Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/events`. @@ -11625,7 +11666,7 @@ public enum Operations { public var active: Swift.Bool? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/json/name`. public var name: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - config: Key/value pairs to provide settings for this webhook. @@ -11633,7 +11674,7 @@ public enum Operations { /// - active: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. /// - name: public init( - config: Operations.orgs_sol_update_hyphen_webhook.Input.Body.jsonPayload.configPayload? = nil, + config: Operations.OrgsUpdateWebhook.Input.Body.JsonPayload.ConfigPayload? = nil, events: [Swift.String]? = nil, active: Swift.Bool? = nil, name: Swift.String? = nil @@ -11651,9 +11692,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update_hyphen_webhook.Input.Body.jsonPayload) + case json(Operations.OrgsUpdateWebhook.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update_hyphen_webhook.Input.Body? + public var body: Operations.OrgsUpdateWebhook.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -11661,9 +11702,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_update_hyphen_webhook.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_webhook.Input.Body? = nil + path: Operations.OrgsUpdateWebhook.Input.Path, + headers: Operations.OrgsUpdateWebhook.Input.Headers = .init(), + body: Operations.OrgsUpdateWebhook.Input.Body? = nil ) { self.path = path self.headers = headers @@ -11675,12 +11716,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_hook) + case json(Components.Schemas.OrgHook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_hook { + public var json: Components.Schemas.OrgHook { get throws { switch self { case let .json(body): @@ -11690,12 +11731,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update_hyphen_webhook.Output.Ok.Body + public var body: Operations.OrgsUpdateWebhook.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update_hyphen_webhook.Output.Ok.Body) { + public init(body: Operations.OrgsUpdateWebhook.Output.Ok.Body) { self.body = body } } @@ -11704,12 +11745,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_update_hyphen_webhook.Output.Ok) + case ok(Operations.OrgsUpdateWebhook.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_update_hyphen_webhook.Output.Ok { + public var ok: Operations.OrgsUpdateWebhook.Output.Ok { get throws { switch self { case let .ok(response): @@ -11727,12 +11768,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11750,12 +11791,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/patch(orgs/update-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11810,7 +11851,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)`. - public enum orgs_sol_delete_hyphen_webhook { + public enum OrgsDeleteWebhook { public static let id: Swift.String = "orgs/delete-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/DELETE/path`. @@ -11818,45 +11859,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/DELETE/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_delete_hyphen_webhook.Input.Path + public var path: Operations.OrgsDeleteWebhook.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_delete_hyphen_webhook.Input.Headers + public var headers: Operations.OrgsDeleteWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_delete_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_delete_hyphen_webhook.Input.Headers = .init() + path: Operations.OrgsDeleteWebhook.Input.Path, + headers: Operations.OrgsDeleteWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11872,12 +11913,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_delete_hyphen_webhook.Output.NoContent) + case noContent(Operations.OrgsDeleteWebhook.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_delete_hyphen_webhook.Output.NoContent { + public var noContent: Operations.OrgsDeleteWebhook.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11895,12 +11944,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/delete(orgs/delete-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11955,7 +12004,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)`. - public enum orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org { + public enum OrgsGetWebhookConfigForOrg { public static let id: Swift.String = "orgs/get-webhook-config-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/path`. @@ -11963,45 +12012,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path + public var path: Operations.OrgsGetWebhookConfigForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.OrgsGetWebhookConfigForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.OrgsGetWebhookConfigForOrg.Input.Path, + headers: Operations.OrgsGetWebhookConfigForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12012,12 +12061,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/GET/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -12027,12 +12076,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.OrgsGetWebhookConfigForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.OrgsGetWebhookConfigForOrg.Output.Ok.Body) { self.body = body } } @@ -12041,12 +12090,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.OrgsGetWebhookConfigForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.OrgsGetWebhookConfigForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12101,7 +12150,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/patch(orgs/update-webhook-config-for-org)`. - public enum orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org { + public enum OrgsUpdateWebhookConfigForOrg { public static let id: Swift.String = "orgs/update-webhook-config-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/path`. @@ -12109,78 +12158,78 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path + public var path: Operations.OrgsUpdateWebhookConfigForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.OrgsUpdateWebhookConfigForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/json/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/json/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/json/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/json/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `jsonPayload`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.OrgsUpdateWebhookConfigForOrg.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Body? + public var body: Operations.OrgsUpdateWebhookConfigForOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -12188,9 +12237,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Path, - headers: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Input.Body? = nil + path: Operations.OrgsUpdateWebhookConfigForOrg.Input.Path, + headers: Operations.OrgsUpdateWebhookConfigForOrg.Input.Headers = .init(), + body: Operations.OrgsUpdateWebhookConfigForOrg.Input.Body? = nil ) { self.path = path self.headers = headers @@ -12202,12 +12251,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/config/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -12217,12 +12266,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.OrgsUpdateWebhookConfigForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.OrgsUpdateWebhookConfigForOrg.Output.Ok.Body) { self.body = body } } @@ -12231,12 +12280,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/patch(orgs/update-webhook-config-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.OrgsUpdateWebhookConfigForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.OrgsUpdateWebhookConfigForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -12291,7 +12340,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)`. - public enum orgs_sol_list_hyphen_webhook_hyphen_deliveries { + public enum OrgsListWebhookDeliveries { public static let id: Swift.String = "orgs/list-webhook-deliveries" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/path`. @@ -12299,61 +12348,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path + public var path: Operations.OrgsListWebhookDeliveries.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/query/cursor`. - public var cursor: Components.Parameters.cursor? + public var cursor: Components.Parameters.Cursor? /// 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)." + /// - perPage: 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)." /// - cursor: Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - cursor: Components.Parameters.cursor? = nil + perPage: Components.Parameters.PerPage? = nil, + cursor: Components.Parameters.Cursor? = nil ) { - self.per_page = per_page + self.perPage = perPage self.cursor = cursor } } - public var query: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query + public var query: Operations.OrgsListWebhookDeliveries.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers + public var headers: Operations.OrgsListWebhookDeliveries.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12361,9 +12410,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path, - query: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() + path: Operations.OrgsListWebhookDeliveries.Input.Path, + query: Operations.OrgsListWebhookDeliveries.Input.Query = .init(), + headers: Operations.OrgsListWebhookDeliveries.Input.Headers = .init() ) { self.path = path self.query = query @@ -12375,12 +12424,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/GET/responses/200/content/application\/json`. - case json([Components.Schemas.hook_hyphen_delivery_hyphen_item]) + case json([Components.Schemas.HookDeliveryItem]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.hook_hyphen_delivery_hyphen_item] { + public var json: [Components.Schemas.HookDeliveryItem] { get throws { switch self { case let .json(body): @@ -12390,12 +12439,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + public var body: Operations.OrgsListWebhookDeliveries.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body) { + public init(body: Operations.OrgsListWebhookDeliveries.Output.Ok.Body) { self.body = body } } @@ -12404,12 +12453,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok) + case ok(Operations.OrgsListWebhookDeliveries.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok { + public var ok: Operations.OrgsListWebhookDeliveries.Output.Ok { get throws { switch self { case let .ok(response): @@ -12427,12 +12476,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -12450,12 +12499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/get(orgs/list-webhook-deliveries)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12475,14 +12524,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -12493,14 +12542,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -12516,7 +12565,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)`. - public enum orgs_sol_get_hyphen_webhook_hyphen_delivery { + public enum OrgsGetWebhookDelivery { public static let id: Swift.String = "orgs/get-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path`. @@ -12524,50 +12573,50 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// - delivery_id: + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - deliveryId: public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id, - delivery_id: Components.Parameters.delivery_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId, + deliveryId: Components.Parameters.DeliveryId ) { self.org = org - self.hook_id = hook_id - self.delivery_id = delivery_id + self.hookId = hookId + self.deliveryId = deliveryId } } - public var path: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.OrgsGetWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.OrgsGetWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.OrgsGetWebhookDelivery.Input.Path, + headers: Operations.OrgsGetWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12578,12 +12627,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.hook_hyphen_delivery) + case json(Components.Schemas.HookDelivery) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook_hyphen_delivery { + public var json: Components.Schemas.HookDelivery { get throws { switch self { case let .json(body): @@ -12593,12 +12642,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + public var body: Operations.OrgsGetWebhookDelivery.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body) { + public init(body: Operations.OrgsGetWebhookDelivery.Output.Ok.Body) { self.body = body } } @@ -12607,12 +12656,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok) + case ok(Operations.OrgsGetWebhookDelivery.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok { + public var ok: Operations.OrgsGetWebhookDelivery.Output.Ok { get throws { switch self { case let .ok(response): @@ -12630,12 +12679,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -12653,12 +12702,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/get(orgs/get-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12678,14 +12727,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -12696,14 +12745,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -12719,7 +12768,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)`. - public enum orgs_sol_redeliver_hyphen_webhook_hyphen_delivery { + public enum OrgsRedeliverWebhookDelivery { public static let id: Swift.String = "orgs/redeliver-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path`. @@ -12727,50 +12776,50 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// - delivery_id: + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - deliveryId: public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id, - delivery_id: Components.Parameters.delivery_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId, + deliveryId: Components.Parameters.DeliveryId ) { self.org = org - self.hook_id = hook_id - self.delivery_id = delivery_id + self.hookId = hookId + self.deliveryId = deliveryId } } - public var path: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.OrgsRedeliverWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.OrgsRedeliverWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.orgs_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.OrgsRedeliverWebhookDelivery.Input.Path, + headers: Operations.OrgsRedeliverWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12782,12 +12831,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -12805,12 +12854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -12828,12 +12877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(orgs/redeliver-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12853,14 +12902,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -12871,14 +12920,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -12895,7 +12944,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)`. - public enum orgs_sol_ping_hyphen_webhook { + public enum OrgsPingWebhook { public static let id: Swift.String = "orgs/ping-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/pings/POST/path`. @@ -12903,45 +12952,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/pings/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/pings/POST/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - org: Components.Parameters.org, - hook_id: Components.Parameters.hook_hyphen_id + org: Components.Parameters.Org, + hookId: Components.Parameters.HookId ) { self.org = org - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.orgs_sol_ping_hyphen_webhook.Input.Path + public var path: Operations.OrgsPingWebhook.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/hooks/{hook_id}/pings/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_ping_hyphen_webhook.Input.Headers + public var headers: Operations.OrgsPingWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_ping_hyphen_webhook.Input.Path, - headers: Operations.orgs_sol_ping_hyphen_webhook.Input.Headers = .init() + path: Operations.OrgsPingWebhook.Input.Path, + headers: Operations.OrgsPingWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12957,12 +13006,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_ping_hyphen_webhook.Output.NoContent) + case noContent(Operations.OrgsPingWebhook.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_ping_hyphen_webhook.Output.NoContent { + public var noContent: Operations.OrgsPingWebhook.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -12980,12 +13037,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/pings/post(orgs/ping-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13035,7 +13092,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/get(api-insights/get-route-stats-by-actor)`. - public enum api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor { + public enum ApiInsightsGetRouteStatsByActor { public static let id: Swift.String = "api-insights/get-route-stats-by-actor" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/path`. @@ -13043,127 +13100,127 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. - @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum ApiInsightsActorType: String, Codable, Hashable, Sendable, CaseIterable { case installation = "installation" - case classic_pat = "classic_pat" - case fine_grained_pat = "fine_grained_pat" - case oauth_app = "oauth_app" - case github_app_user_to_server = "github_app_user_to_server" + case classicPat = "classic_pat" + case fineGrainedPat = "fine_grained_pat" + case oauthApp = "oauth_app" + case githubAppUserToServer = "github_app_user_to_server" } /// The type of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/path/actor_type`. - public var actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type + public var actorType: Components.Parameters.ApiInsightsActorType /// The ID of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/path/actor_id`. - public var actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + public var actorId: Components.Parameters.ApiInsightsActorId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - actor_type: The type of the actor - /// - actor_id: The ID of the actor + /// - actorType: The type of the actor + /// - actorId: The ID of the actor public init( - org: Components.Parameters.org, - actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type, - actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + org: Components.Parameters.Org, + actorType: Components.Parameters.ApiInsightsActorType, + actorId: Components.Parameters.ApiInsightsActorId ) { self.org = org - self.actor_type = actor_type - self.actor_id = actor_id + self.actorType = actorType + self.actorId = actorId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Path + public var path: Operations.ApiInsightsGetRouteStatsByActor.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/direction`. - public var direction: Components.Parameters.direction? - /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort`. - @frozen public enum api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload: String, Codable, Hashable, Sendable { - case last_rate_limited_timestamp = "last_rate_limited_timestamp" - case last_request_timestamp = "last_request_timestamp" - case rate_limited_request_count = "rate_limited_request_count" - case http_method = "http_method" - case api_route = "api_route" - case total_request_count = "total_request_count" + public var direction: Components.Parameters.Direction? + /// - Remark: Generated from `#/components/parameters/ApiInsightsRouteStatsSort`. + @frozen public enum ApiInsightsRouteStatsSortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" + case rateLimitedRequestCount = "rate_limited_request_count" + case httpMethod = "http_method" + case apiRoute = "api_route" + case totalRequestCount = "total_request_count" } /// - Remark: Generated from `#/components/parameters/api-insights-route-stats-sort`. - public typealias api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload] + public typealias ApiInsightsRouteStatsSort = [Components.Parameters.ApiInsightsRouteStatsSortPayload] /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/sort`. - public var sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? + public var sort: Components.Parameters.ApiInsightsRouteStatsSort? /// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/api_route_substring`. - public var api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring? + public var apiRouteSubstring: Components.Parameters.ApiInsightsApiRouteSubstring? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. - /// - api_route_substring: Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. + /// - apiRouteSubstring: Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? = nil, - api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + direction: Components.Parameters.Direction? = nil, + sort: Components.Parameters.ApiInsightsRouteStatsSort? = nil, + apiRouteSubstring: Components.Parameters.ApiInsightsApiRouteSubstring? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp self.page = page - self.per_page = per_page + self.perPage = perPage self.direction = direction self.sort = sort - self.api_route_substring = api_route_substring + self.apiRouteSubstring = apiRouteSubstring } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Query + public var query: Operations.ApiInsightsGetRouteStatsByActor.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers + public var headers: Operations.ApiInsightsGetRouteStatsByActor.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13171,9 +13228,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() + path: Operations.ApiInsightsGetRouteStatsByActor.Input.Path, + query: Operations.ApiInsightsGetRouteStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetRouteStatsByActor.Input.Headers = .init() ) { self.path = path self.query = query @@ -13185,12 +13242,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_route_hyphen_stats) + case json(Components.Schemas.ApiInsightsRouteStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_route_hyphen_stats { + public var json: Components.Schemas.ApiInsightsRouteStats { get throws { switch self { case let .json(body): @@ -13200,12 +13257,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + public var body: Operations.ApiInsightsGetRouteStatsByActor.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetRouteStatsByActor.Output.Ok.Body) { self.body = body } } @@ -13214,12 +13271,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/get(api-insights/get-route-stats-by-actor)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok) + case ok(Operations.ApiInsightsGetRouteStatsByActor.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok { + public var ok: Operations.ApiInsightsGetRouteStatsByActor.Output.Ok { get throws { switch self { case let .ok(response): @@ -13269,7 +13326,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/subject-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/subject-stats/get(api-insights/get-subject-stats)`. - public enum api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats { + public enum ApiInsightsGetSubjectStats { public static let id: Swift.String = "api-insights/get-subject-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/path`. @@ -13277,102 +13334,102 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Path + public var path: Operations.ApiInsightsGetSubjectStats.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/direction`. - public var direction: Components.Parameters.direction? - /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_sort`. - @frozen public enum api_hyphen_insights_hyphen_sortPayload: String, Codable, Hashable, Sendable { - case last_rate_limited_timestamp = "last_rate_limited_timestamp" - case last_request_timestamp = "last_request_timestamp" - case rate_limited_request_count = "rate_limited_request_count" - case subject_name = "subject_name" - case total_request_count = "total_request_count" + public var direction: Components.Parameters.Direction? + /// - Remark: Generated from `#/components/parameters/ApiInsightsSort`. + @frozen public enum ApiInsightsSortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" + case rateLimitedRequestCount = "rate_limited_request_count" + case subjectName = "subject_name" + case totalRequestCount = "total_request_count" } /// - Remark: Generated from `#/components/parameters/api-insights-sort`. - public typealias api_hyphen_insights_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_sortPayload] + public typealias ApiInsightsSort = [Components.Parameters.ApiInsightsSortPayload] /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/sort`. - public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort? + public var sort: Components.Parameters.ApiInsightsSort? /// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/subject_name_substring`. - public var subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring? + public var subjectNameSubstring: Components.Parameters.ApiInsightsSubjectNameSubstring? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. - /// - subject_name_substring: Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. + /// - subjectNameSubstring: Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil, - subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + direction: Components.Parameters.Direction? = nil, + sort: Components.Parameters.ApiInsightsSort? = nil, + subjectNameSubstring: Components.Parameters.ApiInsightsSubjectNameSubstring? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp self.page = page - self.per_page = per_page + self.perPage = perPage self.direction = direction self.sort = sort - self.subject_name_substring = subject_name_substring + self.subjectNameSubstring = subjectNameSubstring } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Query + public var query: Operations.ApiInsightsGetSubjectStats.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Headers + public var headers: Operations.ApiInsightsGetSubjectStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13380,9 +13437,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Headers = .init() + path: Operations.ApiInsightsGetSubjectStats.Input.Path, + query: Operations.ApiInsightsGetSubjectStats.Input.Query, + headers: Operations.ApiInsightsGetSubjectStats.Input.Headers = .init() ) { self.path = path self.query = query @@ -13394,12 +13451,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_subject_hyphen_stats) + case json(Components.Schemas.ApiInsightsSubjectStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_subject_hyphen_stats { + public var json: Components.Schemas.ApiInsightsSubjectStats { get throws { switch self { case let .json(body): @@ -13409,12 +13466,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output.Ok.Body + public var body: Operations.ApiInsightsGetSubjectStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetSubjectStats.Output.Ok.Body) { self.body = body } } @@ -13423,12 +13480,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/subject-stats/get(api-insights/get-subject-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output.Ok) + case ok(Operations.ApiInsightsGetSubjectStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Output.Ok { + public var ok: Operations.ApiInsightsGetSubjectStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -13478,7 +13535,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/get(api-insights/get-summary-stats)`. - public enum api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats { + public enum ApiInsightsGetSummaryStats { public static let id: Swift.String = "api-insights/get-summary-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/path`. @@ -13486,52 +13543,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Path + public var path: Operations.ApiInsightsGetSummaryStats.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Query + public var query: Operations.ApiInsightsGetSummaryStats.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Headers + public var headers: Operations.ApiInsightsGetSummaryStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13539,9 +13596,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Input.Headers = .init() + path: Operations.ApiInsightsGetSummaryStats.Input.Path, + query: Operations.ApiInsightsGetSummaryStats.Input.Query, + headers: Operations.ApiInsightsGetSummaryStats.Input.Headers = .init() ) { self.path = path self.query = query @@ -13553,12 +13610,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats) + case json(Components.Schemas.ApiInsightsSummaryStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats { + public var json: Components.Schemas.ApiInsightsSummaryStats { get throws { switch self { case let .json(body): @@ -13568,12 +13625,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output.Ok.Body + public var body: Operations.ApiInsightsGetSummaryStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetSummaryStats.Output.Ok.Body) { self.body = body } } @@ -13582,12 +13639,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/get(api-insights/get-summary-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output.Ok) + case ok(Operations.ApiInsightsGetSummaryStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats.Output.Ok { + public var ok: Operations.ApiInsightsGetSummaryStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -13637,7 +13694,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/users/{user_id}/get(api-insights/get-summary-stats-by-user)`. - public enum api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user { + public enum ApiInsightsGetSummaryStatsByUser { public static let id: Swift.String = "api-insights/get-summary-stats-by-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/path`. @@ -13645,61 +13702,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the user to query for stats /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/path/user_id`. - public var user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + public var userId: Components.Parameters.ApiInsightsUserId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - user_id: The ID of the user to query for stats + /// - userId: The ID of the user to query for stats public init( - org: Components.Parameters.org, - user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + org: Components.Parameters.Org, + userId: Components.Parameters.ApiInsightsUserId ) { self.org = org - self.user_id = user_id + self.userId = userId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Path + public var path: Operations.ApiInsightsGetSummaryStatsByUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Query + public var query: Operations.ApiInsightsGetSummaryStatsByUser.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Headers + public var headers: Operations.ApiInsightsGetSummaryStatsByUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13707,9 +13764,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Input.Headers = .init() + path: Operations.ApiInsightsGetSummaryStatsByUser.Input.Path, + query: Operations.ApiInsightsGetSummaryStatsByUser.Input.Query, + headers: Operations.ApiInsightsGetSummaryStatsByUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -13721,12 +13778,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/users/{user_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats) + case json(Components.Schemas.ApiInsightsSummaryStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats { + public var json: Components.Schemas.ApiInsightsSummaryStats { get throws { switch self { case let .json(body): @@ -13736,12 +13793,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body + public var body: Operations.ApiInsightsGetSummaryStatsByUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetSummaryStatsByUser.Output.Ok.Body) { self.body = body } } @@ -13750,12 +13807,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/users/{user_id}/get(api-insights/get-summary-stats-by-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output.Ok) + case ok(Operations.ApiInsightsGetSummaryStatsByUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_user.Output.Ok { + public var ok: Operations.ApiInsightsGetSummaryStatsByUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -13805,7 +13862,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/get(api-insights/get-summary-stats-by-actor)`. - public enum api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor { + public enum ApiInsightsGetSummaryStatsByActor { public static let id: Swift.String = "api-insights/get-summary-stats-by-actor" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/path`. @@ -13813,76 +13870,76 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. - @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum ApiInsightsActorType: String, Codable, Hashable, Sendable, CaseIterable { case installation = "installation" - case classic_pat = "classic_pat" - case fine_grained_pat = "fine_grained_pat" - case oauth_app = "oauth_app" - case github_app_user_to_server = "github_app_user_to_server" + case classicPat = "classic_pat" + case fineGrainedPat = "fine_grained_pat" + case oauthApp = "oauth_app" + case githubAppUserToServer = "github_app_user_to_server" } /// The type of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/path/actor_type`. - public var actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type + public var actorType: Components.Parameters.ApiInsightsActorType /// The ID of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/path/actor_id`. - public var actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + public var actorId: Components.Parameters.ApiInsightsActorId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - actor_type: The type of the actor - /// - actor_id: The ID of the actor + /// - actorType: The type of the actor + /// - actorId: The ID of the actor public init( - org: Components.Parameters.org, - actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type, - actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + org: Components.Parameters.Org, + actorType: Components.Parameters.ApiInsightsActorType, + actorId: Components.Parameters.ApiInsightsActorId ) { self.org = org - self.actor_type = actor_type - self.actor_id = actor_id + self.actorType = actorType + self.actorId = actorId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Path + public var path: Operations.ApiInsightsGetSummaryStatsByActor.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Query + public var query: Operations.ApiInsightsGetSummaryStatsByActor.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers + public var headers: Operations.ApiInsightsGetSummaryStatsByActor.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13890,9 +13947,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() + path: Operations.ApiInsightsGetSummaryStatsByActor.Input.Path, + query: Operations.ApiInsightsGetSummaryStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetSummaryStatsByActor.Input.Headers = .init() ) { self.path = path self.query = query @@ -13904,12 +13961,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats) + case json(Components.Schemas.ApiInsightsSummaryStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_summary_hyphen_stats { + public var json: Components.Schemas.ApiInsightsSummaryStats { get throws { switch self { case let .json(body): @@ -13919,12 +13976,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + public var body: Operations.ApiInsightsGetSummaryStatsByActor.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetSummaryStatsByActor.Output.Ok.Body) { self.body = body } } @@ -13933,12 +13990,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}/get(api-insights/get-summary-stats-by-actor)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok) + case ok(Operations.ApiInsightsGetSummaryStatsByActor.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_summary_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok { + public var ok: Operations.ApiInsightsGetSummaryStatsByActor.Output.Ok { get throws { switch self { case let .ok(response): @@ -13988,7 +14045,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/get(api-insights/get-time-stats)`. - public enum api_hyphen_insights_sol_get_hyphen_time_hyphen_stats { + public enum ApiInsightsGetTimeStats { public static let id: Swift.String = "api-insights/get-time-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/path`. @@ -13996,59 +14053,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Path + public var path: Operations.ApiInsightsGetTimeStats.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/query/timestamp_increment`. - public var timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + public var timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - timestamp_increment: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - timestampIncrement: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp - self.timestamp_increment = timestamp_increment + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp + self.timestampIncrement = timestampIncrement } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Query + public var query: Operations.ApiInsightsGetTimeStats.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Headers + public var headers: Operations.ApiInsightsGetTimeStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14056,9 +14113,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Input.Headers = .init() + path: Operations.ApiInsightsGetTimeStats.Input.Path, + query: Operations.ApiInsightsGetTimeStats.Input.Query, + headers: Operations.ApiInsightsGetTimeStats.Input.Headers = .init() ) { self.path = path self.query = query @@ -14070,12 +14127,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats) + case json(Components.Schemas.ApiInsightsTimeStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats { + public var json: Components.Schemas.ApiInsightsTimeStats { get throws { switch self { case let .json(body): @@ -14085,12 +14142,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output.Ok.Body + public var body: Operations.ApiInsightsGetTimeStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetTimeStats.Output.Ok.Body) { self.body = body } } @@ -14099,12 +14156,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/get(api-insights/get-time-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output.Ok) + case ok(Operations.ApiInsightsGetTimeStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats.Output.Ok { + public var ok: Operations.ApiInsightsGetTimeStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -14154,7 +14211,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/users/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/users/{user_id}/get(api-insights/get-time-stats-by-user)`. - public enum api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user { + public enum ApiInsightsGetTimeStatsByUser { public static let id: Swift.String = "api-insights/get-time-stats-by-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/path`. @@ -14162,68 +14219,68 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the user to query for stats /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/path/user_id`. - public var user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + public var userId: Components.Parameters.ApiInsightsUserId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - user_id: The ID of the user to query for stats + /// - userId: The ID of the user to query for stats public init( - org: Components.Parameters.org, - user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + org: Components.Parameters.Org, + userId: Components.Parameters.ApiInsightsUserId ) { self.org = org - self.user_id = user_id + self.userId = userId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Path + public var path: Operations.ApiInsightsGetTimeStatsByUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/query/timestamp_increment`. - public var timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + public var timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - timestamp_increment: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - timestampIncrement: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp - self.timestamp_increment = timestamp_increment + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp + self.timestampIncrement = timestampIncrement } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Query + public var query: Operations.ApiInsightsGetTimeStatsByUser.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Headers + public var headers: Operations.ApiInsightsGetTimeStatsByUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14231,9 +14288,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Input.Headers = .init() + path: Operations.ApiInsightsGetTimeStatsByUser.Input.Path, + query: Operations.ApiInsightsGetTimeStatsByUser.Input.Query, + headers: Operations.ApiInsightsGetTimeStatsByUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -14245,12 +14302,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/users/{user_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats) + case json(Components.Schemas.ApiInsightsTimeStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats { + public var json: Components.Schemas.ApiInsightsTimeStats { get throws { switch self { case let .json(body): @@ -14260,12 +14317,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body + public var body: Operations.ApiInsightsGetTimeStatsByUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetTimeStatsByUser.Output.Ok.Body) { self.body = body } } @@ -14274,12 +14331,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/users/{user_id}/get(api-insights/get-time-stats-by-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output.Ok) + case ok(Operations.ApiInsightsGetTimeStatsByUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_user.Output.Ok { + public var ok: Operations.ApiInsightsGetTimeStatsByUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -14329,7 +14386,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/get(api-insights/get-time-stats-by-actor)`. - public enum api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor { + public enum ApiInsightsGetTimeStatsByActor { public static let id: Swift.String = "api-insights/get-time-stats-by-actor" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/path`. @@ -14337,83 +14394,83 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// - Remark: Generated from `#/components/parameters/api-insights-actor-type`. - @frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum ApiInsightsActorType: String, Codable, Hashable, Sendable, CaseIterable { case installation = "installation" - case classic_pat = "classic_pat" - case fine_grained_pat = "fine_grained_pat" - case oauth_app = "oauth_app" - case github_app_user_to_server = "github_app_user_to_server" + case classicPat = "classic_pat" + case fineGrainedPat = "fine_grained_pat" + case oauthApp = "oauth_app" + case githubAppUserToServer = "github_app_user_to_server" } /// The type of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/path/actor_type`. - public var actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type + public var actorType: Components.Parameters.ApiInsightsActorType /// The ID of the actor /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/path/actor_id`. - public var actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + public var actorId: Components.Parameters.ApiInsightsActorId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - actor_type: The type of the actor - /// - actor_id: The ID of the actor + /// - actorType: The type of the actor + /// - actorId: The ID of the actor public init( - org: Components.Parameters.org, - actor_type: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_type, - actor_id: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_id + org: Components.Parameters.Org, + actorType: Components.Parameters.ApiInsightsActorType, + actorId: Components.Parameters.ApiInsightsActorId ) { self.org = org - self.actor_type = actor_type - self.actor_id = actor_id + self.actorType = actorType + self.actorId = actorId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Path + public var path: Operations.ApiInsightsGetTimeStatsByActor.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/query/timestamp_increment`. - public var timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + public var timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - timestamp_increment: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - timestampIncrement: The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - timestamp_increment: Components.Parameters.api_hyphen_insights_hyphen_timestamp_hyphen_increment + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + timestampIncrement: Components.Parameters.ApiInsightsTimestampIncrement ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp - self.timestamp_increment = timestamp_increment + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp + self.timestampIncrement = timestampIncrement } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Query + public var query: Operations.ApiInsightsGetTimeStatsByActor.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers + public var headers: Operations.ApiInsightsGetTimeStatsByActor.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14421,9 +14478,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Input.Headers = .init() + path: Operations.ApiInsightsGetTimeStatsByActor.Input.Path, + query: Operations.ApiInsightsGetTimeStatsByActor.Input.Query, + headers: Operations.ApiInsightsGetTimeStatsByActor.Input.Headers = .init() ) { self.path = path self.query = query @@ -14435,12 +14492,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats) + case json(Components.Schemas.ApiInsightsTimeStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_time_hyphen_stats { + public var json: Components.Schemas.ApiInsightsTimeStats { get throws { switch self { case let .json(body): @@ -14450,12 +14507,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body + public var body: Operations.ApiInsightsGetTimeStatsByActor.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetTimeStatsByActor.Output.Ok.Body) { self.body = body } } @@ -14464,12 +14521,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}/get(api-insights/get-time-stats-by-actor)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok) + case ok(Operations.ApiInsightsGetTimeStatsByActor.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_time_hyphen_stats_hyphen_by_hyphen_actor.Output.Ok { + public var ok: Operations.ApiInsightsGetTimeStatsByActor.Output.Ok { get throws { switch self { case let .ok(response): @@ -14519,7 +14576,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/insights/api/user-stats/{user_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/user-stats/{user_id}/get(api-insights/get-user-stats)`. - public enum api_hyphen_insights_sol_get_hyphen_user_hyphen_stats { + public enum ApiInsightsGetUserStats { public static let id: Swift.String = "api-insights/get-user-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/path`. @@ -14527,111 +14584,111 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the user to query for stats /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/path/user_id`. - public var user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + public var userId: Components.Parameters.ApiInsightsUserId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - user_id: The ID of the user to query for stats + /// - userId: The ID of the user to query for stats public init( - org: Components.Parameters.org, - user_id: Components.Parameters.api_hyphen_insights_hyphen_user_hyphen_id + org: Components.Parameters.Org, + userId: Components.Parameters.ApiInsightsUserId ) { self.org = org - self.user_id = user_id + self.userId = userId } } - public var path: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Path + public var path: Operations.ApiInsightsGetUserStats.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query`. public struct Query: Sendable, Hashable { /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/min_timestamp`. - public var min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp + public var minTimestamp: Components.Parameters.ApiInsightsMinTimestamp /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/max_timestamp`. - public var max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? + public var maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/direction`. - public var direction: Components.Parameters.direction? - /// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_sort`. - @frozen public enum api_hyphen_insights_hyphen_sortPayload: String, Codable, Hashable, Sendable { - case last_rate_limited_timestamp = "last_rate_limited_timestamp" - case last_request_timestamp = "last_request_timestamp" - case rate_limited_request_count = "rate_limited_request_count" - case subject_name = "subject_name" - case total_request_count = "total_request_count" + public var direction: Components.Parameters.Direction? + /// - Remark: Generated from `#/components/parameters/ApiInsightsSort`. + @frozen public enum ApiInsightsSortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case lastRateLimitedTimestamp = "last_rate_limited_timestamp" + case lastRequestTimestamp = "last_request_timestamp" + case rateLimitedRequestCount = "rate_limited_request_count" + case subjectName = "subject_name" + case totalRequestCount = "total_request_count" } /// - Remark: Generated from `#/components/parameters/api-insights-sort`. - public typealias api_hyphen_insights_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_sortPayload] + public typealias ApiInsightsSort = [Components.Parameters.ApiInsightsSortPayload] /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/sort`. - public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort? + public var sort: Components.Parameters.ApiInsightsSort? /// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. /// /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/actor_name_substring`. - public var actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring? + public var actorNameSubstring: Components.Parameters.ApiInsightsActorNameSubstring? /// Creates a new `Query`. /// /// - Parameters: - /// - min_timestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - max_timestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - minTimestamp: The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - maxTimestamp: The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - direction: The direction to sort the results by. /// - sort: The property to sort the results by. - /// - actor_name_substring: Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. + /// - actorNameSubstring: Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search. public init( - min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp, - max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - direction: Components.Parameters.direction? = nil, - sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil, - actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring? = nil + minTimestamp: Components.Parameters.ApiInsightsMinTimestamp, + maxTimestamp: Components.Parameters.ApiInsightsMaxTimestamp? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + direction: Components.Parameters.Direction? = nil, + sort: Components.Parameters.ApiInsightsSort? = nil, + actorNameSubstring: Components.Parameters.ApiInsightsActorNameSubstring? = nil ) { - self.min_timestamp = min_timestamp - self.max_timestamp = max_timestamp + self.minTimestamp = minTimestamp + self.maxTimestamp = maxTimestamp self.page = page - self.per_page = per_page + self.perPage = perPage self.direction = direction self.sort = sort - self.actor_name_substring = actor_name_substring + self.actorNameSubstring = actorNameSubstring } } - public var query: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Query + public var query: Operations.ApiInsightsGetUserStats.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Headers + public var headers: Operations.ApiInsightsGetUserStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14639,9 +14696,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Path, - query: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Query, - headers: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Headers = .init() + path: Operations.ApiInsightsGetUserStats.Input.Path, + query: Operations.ApiInsightsGetUserStats.Input.Query, + headers: Operations.ApiInsightsGetUserStats.Input.Headers = .init() ) { self.path = path self.query = query @@ -14653,12 +14710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.api_hyphen_insights_hyphen_user_hyphen_stats) + case json(Components.Schemas.ApiInsightsUserStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.api_hyphen_insights_hyphen_user_hyphen_stats { + public var json: Components.Schemas.ApiInsightsUserStats { get throws { switch self { case let .json(body): @@ -14668,12 +14725,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output.Ok.Body + public var body: Operations.ApiInsightsGetUserStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ApiInsightsGetUserStats.Output.Ok.Body) { self.body = body } } @@ -14682,12 +14739,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/insights/api/user-stats/{user_id}/get(api-insights/get-user-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output.Ok) + case ok(Operations.ApiInsightsGetUserStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Output.Ok { + public var ok: Operations.ApiInsightsGetUserStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -14742,7 +14799,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/installations`. /// - Remark: Generated from `#/paths//orgs/{org}/installations/get(orgs/list-app-installations)`. - public enum orgs_sol_list_hyphen_app_hyphen_installations { + public enum OrgsListAppInstallations { public static let id: Swift.String = "orgs/list-app-installations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/path`. @@ -14750,52 +14807,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Path + public var path: Operations.OrgsListAppInstallations.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Query + public var query: Operations.OrgsListAppInstallations.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Headers + public var headers: Operations.OrgsListAppInstallations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14803,9 +14860,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Path, - query: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Input.Headers = .init() + path: Operations.OrgsListAppInstallations.Input.Path, + query: Operations.OrgsListAppInstallations.Input.Query = .init(), + headers: Operations.OrgsListAppInstallations.Input.Headers = .init() ) { self.path = path self.query = query @@ -14817,49 +14874,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Headers + public var headers: Operations.OrgsListAppInstallations.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/content/json/installations`. - public var installations: [Components.Schemas.installation] - /// Creates a new `jsonPayload`. + public var installations: [Components.Schemas.Installation] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - installations: public init( - total_count: Swift.Int, - installations: [Components.Schemas.installation] + totalCount: Swift.Int, + installations: [Components.Schemas.Installation] ) { - self.total_count = total_count + self.totalCount = totalCount self.installations = installations } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case installations } } /// - Remark: Generated from `#/paths/orgs/{org}/installations/GET/responses/200/content/application\/json`. - case json(Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body.jsonPayload) + case json(Operations.OrgsListAppInstallations.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body.jsonPayload { + public var json: Operations.OrgsListAppInstallations.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -14869,15 +14926,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body + public var body: Operations.OrgsListAppInstallations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok.Body + headers: Operations.OrgsListAppInstallations.Output.Ok.Headers = .init(), + body: Operations.OrgsListAppInstallations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -14888,12 +14945,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/installations/get(orgs/list-app-installations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok) + case ok(Operations.OrgsListAppInstallations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_app_hyphen_installations.Output.Ok { + public var ok: Operations.OrgsListAppInstallations.Output.Ok { get throws { switch self { case let .ok(response): @@ -14946,7 +15003,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)`. - public enum orgs_sol_list_hyphen_pending_hyphen_invitations { + public enum OrgsListPendingInvitations { public static let id: Swift.String = "orgs/list-pending-invitations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/path`. @@ -14954,40 +15011,40 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Path + public var path: Operations.OrgsListPendingInvitations.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case admin = "admin" - case direct_member = "direct_member" - case billing_manager = "billing_manager" - case hiring_manager = "hiring_manager" + case directMember = "direct_member" + case billingManager = "billing_manager" + case hiringManager = "hiring_manager" } /// Filter invitations by their member role. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/role`. - public var role: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query.rolePayload? + public var role: Operations.OrgsListPendingInvitations.Input.Query.RolePayload? /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/invitation_source`. - @frozen public enum invitation_sourcePayload: String, Codable, Hashable, Sendable { + @frozen public enum InvitationSourcePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case member = "member" case scim = "scim" @@ -14995,39 +15052,39 @@ public enum Operations { /// Filter invitations by their invitation source. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/query/invitation_source`. - public var invitation_source: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query.invitation_sourcePayload? + public var invitationSource: Operations.OrgsListPendingInvitations.Input.Query.InvitationSourcePayload? /// 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)." + /// - perPage: 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)." /// - role: Filter invitations by their member role. - /// - invitation_source: Filter invitations by their invitation source. + /// - invitationSource: Filter invitations by their invitation source. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - role: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query.rolePayload? = nil, - invitation_source: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query.invitation_sourcePayload? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + role: Operations.OrgsListPendingInvitations.Input.Query.RolePayload? = nil, + invitationSource: Operations.OrgsListPendingInvitations.Input.Query.InvitationSourcePayload? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.role = role - self.invitation_source = invitation_source + self.invitationSource = invitationSource } } - public var query: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query + public var query: Operations.OrgsListPendingInvitations.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Headers + public var headers: Operations.OrgsListPendingInvitations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15035,9 +15092,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Path, - query: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Input.Headers = .init() + path: Operations.OrgsListPendingInvitations.Input.Path, + query: Operations.OrgsListPendingInvitations.Input.Query = .init(), + headers: Operations.OrgsListPendingInvitations.Input.Headers = .init() ) { self.path = path self.query = query @@ -15049,26 +15106,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Headers + public var headers: Operations.OrgsListPendingInvitations.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_invitation]) + case json([Components.Schemas.OrganizationInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_invitation] { + public var json: [Components.Schemas.OrganizationInvitation] { get throws { switch self { case let .json(body): @@ -15078,15 +15135,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Body + public var body: Operations.OrgsListPendingInvitations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok.Body + headers: Operations.OrgsListPendingInvitations.Output.Ok.Headers = .init(), + body: Operations.OrgsListPendingInvitations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15097,12 +15154,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok) + case ok(Operations.OrgsListPendingInvitations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_pending_hyphen_invitations.Output.Ok { + public var ok: Operations.OrgsListPendingInvitations.Output.Ok { get throws { switch self { case let .ok(response): @@ -15120,12 +15177,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/get(orgs/list-pending-invitations)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15178,7 +15235,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)`. - public enum orgs_sol_create_hyphen_invitation { + public enum OrgsCreateInvitation { public static let id: Swift.String = "orgs/create-invitation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/path`. @@ -15186,36 +15243,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_create_hyphen_invitation.Input.Path + public var path: Operations.OrgsCreateInvitation.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_invitation.Input.Headers + public var headers: Operations.OrgsCreateInvitation.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// **Required unless you provide `email`**. GitHub user ID for the person you are inviting. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json/invitee_id`. - public var invitee_id: Swift.Int? + public var inviteeId: Swift.Int? /// **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json/email`. @@ -15227,10 +15284,10 @@ public enum Operations { /// * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case admin = "admin" - case direct_member = "direct_member" - case billing_manager = "billing_manager" + case directMember = "direct_member" + case billingManager = "billing_manager" case reinstate = "reinstate" } /// The role for the new member. @@ -15240,40 +15297,40 @@ public enum Operations { /// * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json/role`. - public var role: Operations.orgs_sol_create_hyphen_invitation.Input.Body.jsonPayload.rolePayload? + public var role: Operations.OrgsCreateInvitation.Input.Body.JsonPayload.RolePayload? /// Specify IDs for the teams you want to invite new members to. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/json/team_ids`. - public var team_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var teamIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - invitee_id: **Required unless you provide `email`**. GitHub user ID for the person you are inviting. + /// - inviteeId: **Required unless you provide `email`**. GitHub user ID for the person you are inviting. /// - email: **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. /// - role: The role for the new member. - /// - team_ids: Specify IDs for the teams you want to invite new members to. + /// - teamIds: Specify IDs for the teams you want to invite new members to. public init( - invitee_id: Swift.Int? = nil, + inviteeId: Swift.Int? = nil, email: Swift.String? = nil, - role: Operations.orgs_sol_create_hyphen_invitation.Input.Body.jsonPayload.rolePayload? = nil, - team_ids: [Swift.Int]? = nil + role: Operations.OrgsCreateInvitation.Input.Body.JsonPayload.RolePayload? = nil, + teamIds: [Swift.Int]? = nil ) { - self.invitee_id = invitee_id + self.inviteeId = inviteeId self.email = email self.role = role - self.team_ids = team_ids + self.teamIds = teamIds } public enum CodingKeys: String, CodingKey { - case invitee_id + case inviteeId = "invitee_id" case email case role - case team_ids + case teamIds = "team_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_create_hyphen_invitation.Input.Body.jsonPayload) + case json(Operations.OrgsCreateInvitation.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_create_hyphen_invitation.Input.Body? + public var body: Operations.OrgsCreateInvitation.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -15281,9 +15338,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_invitation.Input.Path, - headers: Operations.orgs_sol_create_hyphen_invitation.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_invitation.Input.Body? = nil + path: Operations.OrgsCreateInvitation.Input.Path, + headers: Operations.OrgsCreateInvitation.Input.Headers = .init(), + body: Operations.OrgsCreateInvitation.Input.Body? = nil ) { self.path = path self.headers = headers @@ -15295,12 +15352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.organization_hyphen_invitation) + case json(Components.Schemas.OrganizationInvitation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_invitation { + public var json: Components.Schemas.OrganizationInvitation { get throws { switch self { case let .json(body): @@ -15310,12 +15367,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_create_hyphen_invitation.Output.Created.Body + public var body: Operations.OrgsCreateInvitation.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_create_hyphen_invitation.Output.Created.Body) { + public init(body: Operations.OrgsCreateInvitation.Output.Created.Body) { self.body = body } } @@ -15324,12 +15381,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.orgs_sol_create_hyphen_invitation.Output.Created) + case created(Operations.OrgsCreateInvitation.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.orgs_sol_create_hyphen_invitation.Output.Created { + public var created: Operations.OrgsCreateInvitation.Output.Created { get throws { switch self { case let .created(response): @@ -15347,12 +15404,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -15370,12 +15427,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/post(orgs/create-invitation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15427,7 +15484,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)`. - public enum orgs_sol_cancel_hyphen_invitation { + public enum OrgsCancelInvitation { public static let id: Swift.String = "orgs/cancel-invitation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/DELETE/path`. @@ -15435,45 +15492,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/DELETE/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - invitation_id: The unique identifier of the invitation. + /// - invitationId: The unique identifier of the invitation. public init( - org: Components.Parameters.org, - invitation_id: Components.Parameters.invitation_hyphen_id + org: Components.Parameters.Org, + invitationId: Components.Parameters.InvitationId ) { self.org = org - self.invitation_id = invitation_id + self.invitationId = invitationId } } - public var path: Operations.orgs_sol_cancel_hyphen_invitation.Input.Path + public var path: Operations.OrgsCancelInvitation.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_cancel_hyphen_invitation.Input.Headers + public var headers: Operations.OrgsCancelInvitation.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_cancel_hyphen_invitation.Input.Path, - headers: Operations.orgs_sol_cancel_hyphen_invitation.Input.Headers = .init() + path: Operations.OrgsCancelInvitation.Input.Path, + headers: Operations.OrgsCancelInvitation.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15489,12 +15546,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_cancel_hyphen_invitation.Output.NoContent) + case noContent(Operations.OrgsCancelInvitation.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_cancel_hyphen_invitation.Output.NoContent { + public var noContent: Operations.OrgsCancelInvitation.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15512,12 +15577,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -15535,12 +15600,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/delete(orgs/cancel-invitation)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15590,7 +15655,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/invitations/{invitation_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)`. - public enum orgs_sol_list_hyphen_invitation_hyphen_teams { + public enum OrgsListInvitationTeams { public static let id: Swift.String = "orgs/list-invitation-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/path`. @@ -15598,61 +15663,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - invitation_id: The unique identifier of the invitation. + /// - invitationId: The unique identifier of the invitation. public init( - org: Components.Parameters.org, - invitation_id: Components.Parameters.invitation_hyphen_id + org: Components.Parameters.Org, + invitationId: Components.Parameters.InvitationId ) { self.org = org - self.invitation_id = invitation_id + self.invitationId = invitationId } } - public var path: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Path + public var path: Operations.OrgsListInvitationTeams.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Query + public var query: Operations.OrgsListInvitationTeams.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Headers + public var headers: Operations.OrgsListInvitationTeams.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15660,9 +15725,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Path, - query: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Input.Headers = .init() + path: Operations.OrgsListInvitationTeams.Input.Path, + query: Operations.OrgsListInvitationTeams.Input.Query = .init(), + headers: Operations.OrgsListInvitationTeams.Input.Headers = .init() ) { self.path = path self.query = query @@ -15674,26 +15739,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Headers + public var headers: Operations.OrgsListInvitationTeams.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/invitations/{invitation_id}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -15703,15 +15768,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Body + public var body: Operations.OrgsListInvitationTeams.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok.Body + headers: Operations.OrgsListInvitationTeams.Output.Ok.Headers = .init(), + body: Operations.OrgsListInvitationTeams.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15722,12 +15787,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok) + case ok(Operations.OrgsListInvitationTeams.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_invitation_hyphen_teams.Output.Ok { + public var ok: Operations.OrgsListInvitationTeams.Output.Ok { get throws { switch self { case let .ok(response): @@ -15745,12 +15810,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/invitations/{invitation_id}/teams/get(orgs/list-invitation-teams)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15800,7 +15865,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)`. - public enum orgs_sol_list_hyphen_issue_hyphen_types { + public enum OrgsListIssueTypes { public static let id: Swift.String = "orgs/list-issue-types" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/GET/path`. @@ -15808,36 +15873,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Path + public var path: Operations.OrgsListIssueTypes.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Headers + public var headers: Operations.OrgsListIssueTypes.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Path, - headers: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Input.Headers = .init() + path: Operations.OrgsListIssueTypes.Input.Path, + headers: Operations.OrgsListIssueTypes.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15848,12 +15913,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/GET/responses/200/content/application\/json`. - case json([Components.Schemas.issue_hyphen_type]) + case json([Components.Schemas.IssueType]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.issue_hyphen_type] { + public var json: [Components.Schemas.IssueType] { get throws { switch self { case let .json(body): @@ -15863,12 +15928,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output.Ok.Body + public var body: Operations.OrgsListIssueTypes.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output.Ok.Body) { + public init(body: Operations.OrgsListIssueTypes.Output.Ok.Body) { self.body = body } } @@ -15877,12 +15942,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output.Ok) + case ok(Operations.OrgsListIssueTypes.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_issue_hyphen_types.Output.Ok { + public var ok: Operations.OrgsListIssueTypes.Output.Ok { get throws { switch self { case let .ok(response): @@ -15900,12 +15965,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/get(orgs/list-issue-types)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15960,7 +16025,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/issue-types`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)`. - public enum orgs_sol_create_hyphen_issue_hyphen_type { + public enum OrgsCreateIssueType { public static let id: Swift.String = "orgs/create-issue-type" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/path`. @@ -15968,34 +16033,34 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Path + public var path: Operations.OrgsCreateIssueType.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Headers + public var headers: Operations.OrgsCreateIssueType.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/requestBody/content/application\/json`. - case json(Components.Schemas.organization_hyphen_create_hyphen_issue_hyphen_type) + case json(Components.Schemas.OrganizationCreateIssueType) } - public var body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Body + public var body: Operations.OrgsCreateIssueType.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -16003,9 +16068,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Input.Body + path: Operations.OrgsCreateIssueType.Input.Path, + headers: Operations.OrgsCreateIssueType.Input.Headers = .init(), + body: Operations.OrgsCreateIssueType.Input.Body ) { self.path = path self.headers = headers @@ -16017,12 +16082,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/POST/responses/200/content/application\/json`. - case json(Components.Schemas.issue_hyphen_type) + case json(Components.Schemas.IssueType) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_type { + public var json: Components.Schemas.IssueType { get throws { switch self { case let .json(body): @@ -16032,12 +16097,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output.Ok.Body + public var body: Operations.OrgsCreateIssueType.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output.Ok.Body) { + public init(body: Operations.OrgsCreateIssueType.Output.Ok.Body) { self.body = body } } @@ -16046,12 +16111,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output.Ok) + case ok(Operations.OrgsCreateIssueType.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_create_hyphen_issue_hyphen_type.Output.Ok { + public var ok: Operations.OrgsCreateIssueType.Output.Ok { get throws { switch self { case let .ok(response): @@ -16069,12 +16134,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16092,12 +16157,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/post(orgs/create-issue-type)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -16152,7 +16217,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)`. - public enum orgs_sol_update_hyphen_issue_hyphen_type { + public enum OrgsUpdateIssueType { public static let id: Swift.String = "orgs/update-issue-type" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/path`. @@ -16160,43 +16225,43 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/path/issue_type_id`. - public var issue_type_id: Components.Parameters.issue_hyphen_type_hyphen_id + public var issueTypeId: Components.Parameters.IssueTypeId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - issue_type_id: The unique identifier of the issue type. + /// - issueTypeId: The unique identifier of the issue type. public init( - org: Components.Parameters.org, - issue_type_id: Components.Parameters.issue_hyphen_type_hyphen_id + org: Components.Parameters.Org, + issueTypeId: Components.Parameters.IssueTypeId ) { self.org = org - self.issue_type_id = issue_type_id + self.issueTypeId = issueTypeId } } - public var path: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Path + public var path: Operations.OrgsUpdateIssueType.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Headers + public var headers: Operations.OrgsUpdateIssueType.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.organization_hyphen_update_hyphen_issue_hyphen_type) + case json(Components.Schemas.OrganizationUpdateIssueType) } - public var body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Body + public var body: Operations.OrgsUpdateIssueType.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -16204,9 +16269,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Input.Body + path: Operations.OrgsUpdateIssueType.Input.Path, + headers: Operations.OrgsUpdateIssueType.Input.Headers = .init(), + body: Operations.OrgsUpdateIssueType.Input.Body ) { self.path = path self.headers = headers @@ -16218,12 +16283,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.issue_hyphen_type) + case json(Components.Schemas.IssueType) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.issue_hyphen_type { + public var json: Components.Schemas.IssueType { get throws { switch self { case let .json(body): @@ -16233,12 +16298,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output.Ok.Body + public var body: Operations.OrgsUpdateIssueType.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output.Ok.Body) { + public init(body: Operations.OrgsUpdateIssueType.Output.Ok.Body) { self.body = body } } @@ -16247,12 +16312,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output.Ok) + case ok(Operations.OrgsUpdateIssueType.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_update_hyphen_issue_hyphen_type.Output.Ok { + public var ok: Operations.OrgsUpdateIssueType.Output.Ok { get throws { switch self { case let .ok(response): @@ -16270,12 +16335,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16293,12 +16358,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/put(orgs/update-issue-type)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -16353,7 +16418,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/issue-types/{issue_type_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)`. - public enum orgs_sol_delete_hyphen_issue_hyphen_type { + public enum OrgsDeleteIssueType { public static let id: Swift.String = "orgs/delete-issue-type" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/DELETE/path`. @@ -16361,45 +16426,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/DELETE/path/issue_type_id`. - public var issue_type_id: Components.Parameters.issue_hyphen_type_hyphen_id + public var issueTypeId: Components.Parameters.IssueTypeId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - issue_type_id: The unique identifier of the issue type. + /// - issueTypeId: The unique identifier of the issue type. public init( - org: Components.Parameters.org, - issue_type_id: Components.Parameters.issue_hyphen_type_hyphen_id + org: Components.Parameters.Org, + issueTypeId: Components.Parameters.IssueTypeId ) { self.org = org - self.issue_type_id = issue_type_id + self.issueTypeId = issueTypeId } } - public var path: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Path + public var path: Operations.OrgsDeleteIssueType.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/issue-types/{issue_type_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Headers + public var headers: Operations.OrgsDeleteIssueType.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Path, - headers: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Input.Headers = .init() + path: Operations.OrgsDeleteIssueType.Input.Path, + headers: Operations.OrgsDeleteIssueType.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16415,12 +16480,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Output.NoContent) + case noContent(Operations.OrgsDeleteIssueType.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_delete_hyphen_issue_hyphen_type.Output.NoContent { + public var noContent: Operations.OrgsDeleteIssueType.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -16438,12 +16511,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -16461,12 +16534,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/issue-types/{issue_type_id}/delete(orgs/delete-issue-type)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16516,7 +16589,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)`. - public enum orgs_sol_list_hyphen_members { + public enum OrgsListMembers { public static let id: Swift.String = "orgs/list-members" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/path`. @@ -16524,29 +16597,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_members.Input.Path + public var path: Operations.OrgsListMembers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { - case _2fa_disabled = "2fa_disabled" + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { + case _2faDisabled = "2fa_disabled" + case _2faInsecure = "2fa_insecure" case all = "all" } - /// Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. This options is only available for organization owners. + /// Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only members with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. These options are only available for organization owners. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/filter`. - public var filter: Operations.orgs_sol_list_hyphen_members.Input.Query.filterPayload? + public var filter: Operations.OrgsListMembers.Input.Query.FilterPayload? /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case admin = "admin" case member = "member" @@ -16554,47 +16628,47 @@ public enum Operations { /// Filter members returned by their role. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/role`. - public var role: Operations.orgs_sol_list_hyphen_members.Input.Query.rolePayload? + public var role: Operations.OrgsListMembers.Input.Query.RolePayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - filter: Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. This options is only available for organization owners. + /// - filter: Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only members with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. These options are only available for organization owners. /// - role: Filter members returned by their role. - /// - 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)." + /// - perPage: 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)." public init( - filter: Operations.orgs_sol_list_hyphen_members.Input.Query.filterPayload? = nil, - role: Operations.orgs_sol_list_hyphen_members.Input.Query.rolePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + filter: Operations.OrgsListMembers.Input.Query.FilterPayload? = nil, + role: Operations.OrgsListMembers.Input.Query.RolePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter self.role = role - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_members.Input.Query + public var query: Operations.OrgsListMembers.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_members.Input.Headers + public var headers: Operations.OrgsListMembers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -16602,9 +16676,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_members.Input.Path, - query: Operations.orgs_sol_list_hyphen_members.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_members.Input.Headers = .init() + path: Operations.OrgsListMembers.Input.Path, + query: Operations.OrgsListMembers.Input.Query = .init(), + headers: Operations.OrgsListMembers.Input.Headers = .init() ) { self.path = path self.query = query @@ -16616,26 +16690,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_members.Output.Ok.Headers + public var headers: Operations.OrgsListMembers.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -16645,15 +16719,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_members.Output.Ok.Body + public var body: Operations.OrgsListMembers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_members.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_members.Output.Ok.Body + headers: Operations.OrgsListMembers.Output.Ok.Headers = .init(), + body: Operations.OrgsListMembers.Output.Ok.Body ) { self.headers = headers self.body = body @@ -16664,12 +16738,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_members.Output.Ok) + case ok(Operations.OrgsListMembers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_members.Output.Ok { + public var ok: Operations.OrgsListMembers.Output.Ok { get throws { switch self { case let .ok(response): @@ -16687,12 +16761,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/get(orgs/list-members)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -16742,7 +16816,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)`. - public enum orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user { + public enum OrgsCheckMembershipForUser { public static let id: Swift.String = "orgs/check-membership-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/GET/path`. @@ -16750,30 +16824,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsCheckMembershipForUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Input.Path) { + public init(path: Operations.OrgsCheckMembershipForUser.Input.Path) { self.path = path } } @@ -16787,12 +16861,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsCheckMembershipForUser.Output.NoContent) + /// Response if requester is an organization member and user is a member + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsCheckMembershipForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -16809,22 +16891,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.Found.Headers + public var headers: Operations.OrgsCheckMembershipForUser.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.Found.Headers = .init()) { + public init(headers: Operations.OrgsCheckMembershipForUser.Output.Found.Headers = .init()) { self.headers = headers } } @@ -16833,12 +16915,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.Found) + case found(Operations.OrgsCheckMembershipForUser.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.Found { + public var found: Operations.OrgsCheckMembershipForUser.Output.Found { get throws { switch self { case let .found(response): @@ -16860,12 +16942,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.NotFound) + case notFound(Operations.OrgsCheckMembershipForUser.Output.NotFound) + /// Not Found if requester is an organization member and user is not a member + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/get(orgs/check-membership-for-user)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_check_hyphen_membership_hyphen_for_hyphen_user.Output.NotFound { + public var notFound: Operations.OrgsCheckMembershipForUser.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -16890,7 +16980,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`. - public enum orgs_sol_remove_hyphen_member { + public enum OrgsRemoveMember { public static let id: Swift.String = "orgs/remove-member" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/DELETE/path`. @@ -16898,45 +16988,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_remove_hyphen_member.Input.Path + public var path: Operations.OrgsRemoveMember.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_remove_hyphen_member.Input.Headers + public var headers: Operations.OrgsRemoveMember.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_remove_hyphen_member.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_member.Input.Headers = .init() + path: Operations.OrgsRemoveMember.Input.Path, + headers: Operations.OrgsRemoveMember.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16952,12 +17042,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_remove_hyphen_member.Output.NoContent) + case noContent(Operations.OrgsRemoveMember.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_remove_hyphen_member.Output.NoContent { + public var noContent: Operations.OrgsRemoveMember.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -16975,12 +17073,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17030,7 +17128,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)`. - public enum orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user { + public enum OrgsGetMembershipForUser { public static let id: Swift.String = "orgs/get-membership-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/path`. @@ -17038,45 +17136,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsGetMembershipForUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.OrgsGetMembershipForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.OrgsGetMembershipForUser.Input.Path, + headers: Operations.OrgsGetMembershipForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17087,12 +17185,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_membership) + case json(Components.Schemas.OrgMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_membership { + public var json: Components.Schemas.OrgMembership { get throws { switch self { case let .json(body): @@ -17102,12 +17200,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsGetMembershipForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.OrgsGetMembershipForUser.Output.Ok.Body) { self.body = body } } @@ -17116,12 +17214,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.OrgsGetMembershipForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.OrgsGetMembershipForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -17139,12 +17237,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17162,12 +17260,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/get(orgs/get-membership-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17225,7 +17323,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)`. - public enum orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user { + public enum OrgsSetMembershipForUser { public static let id: Swift.String = "orgs/set-membership-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/path`. @@ -17233,47 +17331,47 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsSetMembershipForUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.OrgsSetMembershipForUser.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The role to give the user in the organization. Can be one of: /// * `admin` - The user will become an owner of the organization. /// * `member` - The user will become a non-owner member of the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/requestBody/json/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case admin = "admin" case member = "member" } @@ -17282,12 +17380,12 @@ public enum Operations { /// * `member` - The user will become a non-owner member of the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/requestBody/json/role`. - public var role: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body.jsonPayload.rolePayload? - /// Creates a new `jsonPayload`. + public var role: Operations.OrgsSetMembershipForUser.Input.Body.JsonPayload.RolePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - role: The role to give the user in the organization. Can be one of: - public init(role: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body.jsonPayload.rolePayload? = nil) { + public init(role: Operations.OrgsSetMembershipForUser.Input.Body.JsonPayload.RolePayload? = nil) { self.role = role } public enum CodingKeys: String, CodingKey { @@ -17295,9 +17393,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body.jsonPayload) + case json(Operations.OrgsSetMembershipForUser.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body? + public var body: Operations.OrgsSetMembershipForUser.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -17305,9 +17403,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init(), - body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Input.Body? = nil + path: Operations.OrgsSetMembershipForUser.Input.Path, + headers: Operations.OrgsSetMembershipForUser.Input.Headers = .init(), + body: Operations.OrgsSetMembershipForUser.Input.Body? = nil ) { self.path = path self.headers = headers @@ -17319,12 +17417,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_membership) + case json(Components.Schemas.OrgMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_membership { + public var json: Components.Schemas.OrgMembership { get throws { switch self { case let .json(body): @@ -17334,12 +17432,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsSetMembershipForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.OrgsSetMembershipForUser.Output.Ok.Body) { self.body = body } } @@ -17348,12 +17446,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.OrgsSetMembershipForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_set_hyphen_membership_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.OrgsSetMembershipForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -17371,12 +17469,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -17394,12 +17492,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/put(orgs/set-membership-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17451,7 +17549,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`. - public enum orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user { + public enum OrgsRemoveMembershipForUser { public static let id: Swift.String = "orgs/remove-membership-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/DELETE/path`. @@ -17459,45 +17557,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsRemoveMembershipForUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/memberships/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.OrgsRemoveMembershipForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.OrgsRemoveMembershipForUser.Input.Path, + headers: Operations.OrgsRemoveMembershipForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17513,12 +17611,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsRemoveMembershipForUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_remove_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsRemoveMembershipForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -17536,12 +17642,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17559,12 +17665,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17621,7 +17727,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)`. - public enum orgs_sol_list_hyphen_org_hyphen_roles { + public enum OrgsListOrgRoles { public static let id: Swift.String = "orgs/list-org-roles" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/path`. @@ -17629,36 +17735,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Path + public var path: Operations.OrgsListOrgRoles.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Headers + public var headers: Operations.OrgsListOrgRoles.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Path, - headers: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Input.Headers = .init() + path: Operations.OrgsListOrgRoles.Input.Path, + headers: Operations.OrgsListOrgRoles.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17669,39 +17775,39 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The total number of organization roles available to the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int? + public var totalCount: Swift.Int? /// The list of organization roles available to the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/responses/200/content/json/roles`. - public var roles: [Components.Schemas.organization_hyphen_role]? - /// Creates a new `jsonPayload`. + public var roles: [Components.Schemas.OrganizationRole]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: The total number of organization roles available to the organization. + /// - totalCount: The total number of organization roles available to the organization. /// - roles: The list of organization roles available to the organization. public init( - total_count: Swift.Int? = nil, - roles: [Components.Schemas.organization_hyphen_role]? = nil + totalCount: Swift.Int? = nil, + roles: [Components.Schemas.OrganizationRole]? = nil ) { - self.total_count = total_count + self.totalCount = totalCount self.roles = roles } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case roles } } /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/GET/responses/200/content/application\/json`. - case json(Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body.jsonPayload) + case json(Operations.OrgsListOrgRoles.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body.jsonPayload { + public var json: Operations.OrgsListOrgRoles.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -17711,12 +17817,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body + public var body: Operations.OrgsListOrgRoles.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok.Body) { + public init(body: Operations.OrgsListOrgRoles.Output.Ok.Body) { self.body = body } } @@ -17725,12 +17831,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok) + case ok(Operations.OrgsListOrgRoles.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_org_hyphen_roles.Output.Ok { + public var ok: Operations.OrgsListOrgRoles.Output.Ok { get throws { switch self { case let .ok(response): @@ -17748,12 +17854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17771,12 +17877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/get(orgs/list-org-roles)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -17830,7 +17936,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)`. - public enum orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team { + public enum OrgsRevokeAllOrgRolesTeam { public static let id: Swift.String = "orgs/revoke-all-org-roles-team" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/DELETE/path`. @@ -17838,30 +17944,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input.Path + public var path: Operations.OrgsRevokeAllOrgRolesTeam.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Input.Path) { + public init(path: Operations.OrgsRevokeAllOrgRolesTeam.Input.Path) { self.path = path } } @@ -17875,12 +17981,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Output.NoContent) + case noContent(Operations.OrgsRevokeAllOrgRolesTeam.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/delete(orgs/revoke-all-org-roles-team)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_team.Output.NoContent { + public var noContent: Operations.OrgsRevokeAllOrgRolesTeam.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -17909,7 +18023,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)`. - public enum orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role { + public enum OrgsAssignTeamToOrgRole { public static let id: Swift.String = "orgs/assign-team-to-org-role" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/PUT/path`. @@ -17917,37 +18031,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/PUT/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/PUT/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - role_id: The unique identifier of the role. + /// - teamSlug: The slug of the team name. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + roleId: Components.Parameters.RoleId ) { self.org = org - self.team_slug = team_slug - self.role_id = role_id + self.teamSlug = teamSlug + self.roleId = roleId } } - public var path: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input.Path + public var path: Operations.OrgsAssignTeamToOrgRole.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Input.Path) { + public init(path: Operations.OrgsAssignTeamToOrgRole.Input.Path) { self.path = path } } @@ -17961,12 +18075,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.NoContent) + case noContent(Operations.OrgsAssignTeamToOrgRole.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.NoContent { + public var noContent: Operations.OrgsAssignTeamToOrgRole.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -17988,12 +18110,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.NotFound) + case notFound(Operations.OrgsAssignTeamToOrgRole.Output.NotFound) + /// Response if the organization, team or role does not exist. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.NotFound { + public var notFound: Operations.OrgsAssignTeamToOrgRole.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -18015,12 +18145,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsAssignTeamToOrgRole.Output.UnprocessableContent) + /// Response if the organization roles feature is not enabled for the organization, or validation failed. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/put(orgs/assign-team-to-org-role)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_assign_hyphen_team_hyphen_to_hyphen_org_hyphen_role.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsAssignTeamToOrgRole.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -18049,7 +18187,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)`. - public enum orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team { + public enum OrgsRevokeOrgRoleTeam { public static let id: Swift.String = "orgs/revoke-org-role-team" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/DELETE/path`. @@ -18057,37 +18195,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/DELETE/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - role_id: The unique identifier of the role. + /// - teamSlug: The slug of the team name. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + roleId: Components.Parameters.RoleId ) { self.org = org - self.team_slug = team_slug - self.role_id = role_id + self.teamSlug = teamSlug + self.roleId = roleId } } - public var path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input.Path + public var path: Operations.OrgsRevokeOrgRoleTeam.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Input.Path) { + public init(path: Operations.OrgsRevokeOrgRoleTeam.Input.Path) { self.path = path } } @@ -18101,12 +18239,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Output.NoContent) + case noContent(Operations.OrgsRevokeOrgRoleTeam.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/teams/{team_slug}/{role_id}/delete(orgs/revoke-org-role-team)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_team.Output.NoContent { + public var noContent: Operations.OrgsRevokeOrgRoleTeam.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18135,7 +18281,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)`. - public enum orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user { + public enum OrgsRevokeAllOrgRolesUser { public static let id: Swift.String = "orgs/revoke-all-org-roles-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/DELETE/path`. @@ -18143,30 +18289,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input.Path + public var path: Operations.OrgsRevokeAllOrgRolesUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Input.Path) { + public init(path: Operations.OrgsRevokeAllOrgRolesUser.Input.Path) { self.path = path } } @@ -18180,12 +18326,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsRevokeAllOrgRolesUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/delete(orgs/revoke-all-org-roles-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_revoke_hyphen_all_hyphen_org_hyphen_roles_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsRevokeAllOrgRolesUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18214,7 +18368,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)`. - public enum orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role { + public enum OrgsAssignUserToOrgRole { public static let id: Swift.String = "orgs/assign-user-to-org-role" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/PUT/path`. @@ -18222,37 +18376,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/PUT/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. - /// - role_id: The unique identifier of the role. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - username: Components.Parameters.username, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + username: Components.Parameters.Username, + roleId: Components.Parameters.RoleId ) { self.org = org self.username = username - self.role_id = role_id + self.roleId = roleId } } - public var path: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input.Path + public var path: Operations.OrgsAssignUserToOrgRole.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Input.Path) { + public init(path: Operations.OrgsAssignUserToOrgRole.Input.Path) { self.path = path } } @@ -18266,12 +18420,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.NoContent) + case noContent(Operations.OrgsAssignUserToOrgRole.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.NoContent { + public var noContent: Operations.OrgsAssignUserToOrgRole.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18293,12 +18455,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.NotFound) + case notFound(Operations.OrgsAssignUserToOrgRole.Output.NotFound) + /// Response if the organization, user or role does not exist. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.NotFound { + public var notFound: Operations.OrgsAssignUserToOrgRole.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -18320,12 +18490,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsAssignUserToOrgRole.Output.UnprocessableContent) + /// Response if the organization roles feature is not enabled enabled for the organization, the validation failed, or the user is not an organization member. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/put(orgs/assign-user-to-org-role)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_assign_hyphen_user_hyphen_to_hyphen_org_hyphen_role.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsAssignUserToOrgRole.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -18354,7 +18532,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)`. - public enum orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user { + public enum OrgsRevokeOrgRoleUser { public static let id: Swift.String = "orgs/revoke-org-role-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/DELETE/path`. @@ -18362,37 +18540,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/users/{username}/{role_id}/DELETE/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. - /// - role_id: The unique identifier of the role. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - username: Components.Parameters.username, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + username: Components.Parameters.Username, + roleId: Components.Parameters.RoleId ) { self.org = org self.username = username - self.role_id = role_id + self.roleId = roleId } } - public var path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input.Path + public var path: Operations.OrgsRevokeOrgRoleUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Input.Path) { + public init(path: Operations.OrgsRevokeOrgRoleUser.Input.Path) { self.path = path } } @@ -18406,12 +18584,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsRevokeOrgRoleUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/users/{username}/{role_id}/delete(orgs/revoke-org-role-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_revoke_hyphen_org_hyphen_role_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsRevokeOrgRoleUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -18443,7 +18629,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)`. - public enum orgs_sol_get_hyphen_org_hyphen_role { + public enum OrgsGetOrgRole { public static let id: Swift.String = "orgs/get-org-role" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/path`. @@ -18451,45 +18637,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - role_id: The unique identifier of the role. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + roleId: Components.Parameters.RoleId ) { self.org = org - self.role_id = role_id + self.roleId = roleId } } - public var path: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Path + public var path: Operations.OrgsGetOrgRole.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Headers + public var headers: Operations.OrgsGetOrgRole.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Path, - headers: Operations.orgs_sol_get_hyphen_org_hyphen_role.Input.Headers = .init() + path: Operations.OrgsGetOrgRole.Input.Path, + headers: Operations.OrgsGetOrgRole.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -18500,12 +18686,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.organization_hyphen_role) + case json(Components.Schemas.OrganizationRole) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.organization_hyphen_role { + public var json: Components.Schemas.OrganizationRole { get throws { switch self { case let .json(body): @@ -18515,12 +18701,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_org_hyphen_role.Output.Ok.Body + public var body: Operations.OrgsGetOrgRole.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_org_hyphen_role.Output.Ok.Body) { + public init(body: Operations.OrgsGetOrgRole.Output.Ok.Body) { self.body = body } } @@ -18529,12 +18715,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_org_hyphen_role.Output.Ok) + case ok(Operations.OrgsGetOrgRole.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_org_hyphen_role.Output.Ok { + public var ok: Operations.OrgsGetOrgRole.Output.Ok { get throws { switch self { case let .ok(response): @@ -18552,12 +18738,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -18575,12 +18761,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/get(orgs/get-org-role)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -18634,7 +18820,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)`. - public enum orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams { + public enum OrgsListOrgRoleTeams { public static let id: Swift.String = "orgs/list-org-role-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/path`. @@ -18642,61 +18828,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - role_id: The unique identifier of the role. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + roleId: Components.Parameters.RoleId ) { self.org = org - self.role_id = role_id + self.roleId = roleId } } - public var path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Path + public var path: Operations.OrgsListOrgRoleTeams.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Query + public var query: Operations.OrgsListOrgRoleTeams.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Headers + public var headers: Operations.OrgsListOrgRoleTeams.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -18704,9 +18890,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Path, - query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Input.Headers = .init() + path: Operations.OrgsListOrgRoleTeams.Input.Path, + query: Operations.OrgsListOrgRoleTeams.Input.Query = .init(), + headers: Operations.OrgsListOrgRoleTeams.Input.Headers = .init() ) { self.path = path self.query = query @@ -18718,26 +18904,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Headers + public var headers: Operations.OrgsListOrgRoleTeams.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_role_hyphen_assignment]) + case json([Components.Schemas.TeamRoleAssignment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_role_hyphen_assignment] { + public var json: [Components.Schemas.TeamRoleAssignment] { get throws { switch self { case let .json(body): @@ -18747,15 +18933,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Body + public var body: Operations.OrgsListOrgRoleTeams.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok.Body + headers: Operations.OrgsListOrgRoleTeams.Output.Ok.Headers = .init(), + body: Operations.OrgsListOrgRoleTeams.Output.Ok.Body ) { self.headers = headers self.body = body @@ -18766,12 +18952,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok) + case ok(Operations.OrgsListOrgRoleTeams.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.Ok { + public var ok: Operations.OrgsListOrgRoleTeams.Output.Ok { get throws { switch self { case let .ok(response): @@ -18793,12 +18979,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.NotFound) + case notFound(Operations.OrgsListOrgRoleTeams.Output.NotFound) + /// Response if the organization or role does not exist. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.NotFound { + public var notFound: Operations.OrgsListOrgRoleTeams.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -18820,12 +19014,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsListOrgRoleTeams.Output.UnprocessableContent) + /// Response if the organization roles feature is not enabled or validation failed. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/teams/get(orgs/list-org-role-teams)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_teams.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsListOrgRoleTeams.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -18879,7 +19081,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/organization-roles/{role_id}/users`. /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)`. - public enum orgs_sol_list_hyphen_org_hyphen_role_hyphen_users { + public enum OrgsListOrgRoleUsers { public static let id: Swift.String = "orgs/list-org-role-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/path`. @@ -18887,61 +19089,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the role. /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/path/role_id`. - public var role_id: Components.Parameters.role_hyphen_id + public var roleId: Components.Parameters.RoleId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - role_id: The unique identifier of the role. + /// - roleId: The unique identifier of the role. public init( - org: Components.Parameters.org, - role_id: Components.Parameters.role_hyphen_id + org: Components.Parameters.Org, + roleId: Components.Parameters.RoleId ) { self.org = org - self.role_id = role_id + self.roleId = roleId } } - public var path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Path + public var path: Operations.OrgsListOrgRoleUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Query + public var query: Operations.OrgsListOrgRoleUsers.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Headers + public var headers: Operations.OrgsListOrgRoleUsers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -18949,9 +19151,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Path, - query: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Input.Headers = .init() + path: Operations.OrgsListOrgRoleUsers.Input.Path, + query: Operations.OrgsListOrgRoleUsers.Input.Query = .init(), + headers: Operations.OrgsListOrgRoleUsers.Input.Headers = .init() ) { self.path = path self.query = query @@ -18963,26 +19165,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Headers + public var headers: Operations.OrgsListOrgRoleUsers.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/organization-roles/{role_id}/users/GET/responses/200/content/application\/json`. - case json([Components.Schemas.user_hyphen_role_hyphen_assignment]) + case json([Components.Schemas.UserRoleAssignment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.user_hyphen_role_hyphen_assignment] { + public var json: [Components.Schemas.UserRoleAssignment] { get throws { switch self { case let .json(body): @@ -18992,15 +19194,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Body + public var body: Operations.OrgsListOrgRoleUsers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok.Body + headers: Operations.OrgsListOrgRoleUsers.Output.Ok.Headers = .init(), + body: Operations.OrgsListOrgRoleUsers.Output.Ok.Body ) { self.headers = headers self.body = body @@ -19011,12 +19213,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok) + case ok(Operations.OrgsListOrgRoleUsers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.Ok { + public var ok: Operations.OrgsListOrgRoleUsers.Output.Ok { get throws { switch self { case let .ok(response): @@ -19038,12 +19240,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.NotFound) + case notFound(Operations.OrgsListOrgRoleUsers.Output.NotFound) + /// Response if the organization or role does not exist. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.NotFound { + public var notFound: Operations.OrgsListOrgRoleUsers.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -19065,12 +19275,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsListOrgRoleUsers.Output.UnprocessableContent) + /// Response if the organization roles feature is not enabled or validation failed. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/organization-roles/{role_id}/users/get(orgs/list-org-role-users)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_list_hyphen_org_hyphen_role_hyphen_users.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsListOrgRoleUsers.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -19120,7 +19338,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/outside_collaborators`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/get(orgs/list-outside-collaborators)`. - public enum orgs_sol_list_hyphen_outside_hyphen_collaborators { + public enum OrgsListOutsideCollaborators { public static let id: Swift.String = "orgs/list-outside-collaborators" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/path`. @@ -19128,64 +19346,65 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Path + public var path: Operations.OrgsListOutsideCollaborators.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/query/filter`. - @frozen public enum filterPayload: String, Codable, Hashable, Sendable { - case _2fa_disabled = "2fa_disabled" + @frozen public enum FilterPayload: String, Codable, Hashable, Sendable, CaseIterable { + case _2faDisabled = "2fa_disabled" + case _2faInsecure = "2fa_insecure" case all = "all" } - /// Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. + /// Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only outside collaborators with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/query/filter`. - public var filter: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Query.filterPayload? + public var filter: Operations.OrgsListOutsideCollaborators.Input.Query.FilterPayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - filter: Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. - /// - 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)." + /// - filter: Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only outside collaborators with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. + /// - perPage: 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)." public init( - filter: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Query.filterPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + filter: Operations.OrgsListOutsideCollaborators.Input.Query.FilterPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.filter = filter - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Query + public var query: Operations.OrgsListOutsideCollaborators.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Headers + public var headers: Operations.OrgsListOutsideCollaborators.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -19193,9 +19412,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Path, - query: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Input.Headers = .init() + path: Operations.OrgsListOutsideCollaborators.Input.Path, + query: Operations.OrgsListOutsideCollaborators.Input.Query = .init(), + headers: Operations.OrgsListOutsideCollaborators.Input.Headers = .init() ) { self.path = path self.query = query @@ -19207,26 +19426,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Headers + public var headers: Operations.OrgsListOutsideCollaborators.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -19236,15 +19455,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Body + public var body: Operations.OrgsListOutsideCollaborators.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok.Body + headers: Operations.OrgsListOutsideCollaborators.Output.Ok.Headers = .init(), + body: Operations.OrgsListOutsideCollaborators.Output.Ok.Body ) { self.headers = headers self.body = body @@ -19255,12 +19474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/get(orgs/list-outside-collaborators)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok) + case ok(Operations.OrgsListOutsideCollaborators.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_outside_hyphen_collaborators.Output.Ok { + public var ok: Operations.OrgsListOutsideCollaborators.Output.Ok { get throws { switch self { case let .ok(response): @@ -19310,7 +19529,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)`. - public enum orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator { + public enum OrgsConvertMemberToOutsideCollaborator { public static let id: Swift.String = "orgs/convert-member-to-outside-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/path`. @@ -19318,46 +19537,46 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Path + public var path: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Headers + public var headers: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/requestBody/json/async`. public var async: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - async: When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued. @@ -19369,9 +19588,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Body.jsonPayload) + case json(Operations.OrgsConvertMemberToOutsideCollaborator.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Body? + public var body: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -19379,9 +19598,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Path, - headers: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Headers = .init(), - body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Input.Body? = nil + path: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Path, + headers: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Headers = .init(), + body: Operations.OrgsConvertMemberToOutsideCollaborator.Input.Body? = nil ) { self.path = path self.headers = headers @@ -19393,20 +19612,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/responses/202/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// Creates a new `jsonPayload`. + public struct JsonPayload: Codable, Hashable, Sendable { + /// Creates a new `JsonPayload`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/PUT/responses/202/content/application\/json`. - case json(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body.jsonPayload) + case json(Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body.jsonPayload { + public var json: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -19416,12 +19635,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body + public var body: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted.Body) { + public init(body: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted.Body) { self.body = body } } @@ -19430,12 +19649,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted) + case accepted(Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Accepted { + public var accepted: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -19457,12 +19676,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.NoContent) + case noContent(Operations.OrgsConvertMemberToOutsideCollaborator.Output.NoContent) + /// User was converted + /// + /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.OrgsConvertMemberToOutsideCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19484,12 +19711,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Forbidden) + case forbidden(Operations.OrgsConvertMemberToOutsideCollaborator.Output.Forbidden) + /// Forbidden if user is the last owner of the organization, not a member of the organization, or if the enterprise enforces a policy for inviting outside collaborators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)." + /// + /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.orgs_sol_convert_hyphen_member_hyphen_to_hyphen_outside_hyphen_collaborator.Output.Forbidden { + public var forbidden: Operations.OrgsConvertMemberToOutsideCollaborator.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -19507,12 +19742,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/put(orgs/convert-member-to-outside-collaborator)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -19562,7 +19797,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/outside_collaborators/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)`. - public enum orgs_sol_remove_hyphen_outside_hyphen_collaborator { + public enum OrgsRemoveOutsideCollaborator { public static let id: Swift.String = "orgs/remove-outside-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/path`. @@ -19570,45 +19805,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Path + public var path: Operations.OrgsRemoveOutsideCollaborator.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Headers + public var headers: Operations.OrgsRemoveOutsideCollaborator.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Input.Headers = .init() + path: Operations.OrgsRemoveOutsideCollaborator.Input.Path, + headers: Operations.OrgsRemoveOutsideCollaborator.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -19624,12 +19859,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.NoContent) + case noContent(Operations.OrgsRemoveOutsideCollaborator.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.OrgsRemoveOutsideCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -19646,35 +19889,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/responses/422/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/responses/422/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/responses/422/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/orgs/{org}/outside_collaborators/{username}/DELETE/responses/422/content/application\/json`. - case json(Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body.jsonPayload) + case json(Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body.jsonPayload { + public var json: Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -19684,12 +19927,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body + public var body: Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent.Body) { + public init(body: Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent.Body) { self.body = body } } @@ -19698,12 +19941,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/outside_collaborators/{username}/delete(orgs/remove-outside-collaborator)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_remove_hyphen_outside_hyphen_collaborator.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsRemoveOutsideCollaborator.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -19755,7 +19998,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)`. - public enum orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests { + public enum OrgsListPatGrantRequests { public static let id: Swift.String = "orgs/list-pat-grant-requests" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/path`. @@ -19763,117 +20006,117 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Path + public var path: Operations.OrgsListPatGrantRequests.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// - Remark: Generated from `#/components/parameters/personal-access-token-sort`. - @frozen public enum personal_hyphen_access_hyphen_token_hyphen_sort: String, Codable, Hashable, Sendable { - case created_at = "created_at" + @frozen public enum PersonalAccessTokenSort: String, Codable, Hashable, Sendable, CaseIterable { + case createdAt = "created_at" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/sort`. - public var sort: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_sort? + public var sort: Components.Parameters.PersonalAccessTokenSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// A list of owner usernames to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/owner`. - public var owner: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_owner? + public var owner: Components.Parameters.PersonalAccessTokenOwner? /// The name of the repository to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/repository`. - public var repository: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_repository? + public var repository: Components.Parameters.PersonalAccessTokenRepository? /// The permission to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/permission`. - public var permission: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_permission? + public var permission: Components.Parameters.PersonalAccessTokenPermission? /// Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/last_used_before`. - public var last_used_before: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_before? + public var lastUsedBefore: Components.Parameters.PersonalAccessTokenBefore? /// Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/last_used_after`. - public var last_used_after: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_after? + public var lastUsedAfter: Components.Parameters.PersonalAccessTokenAfter? /// The ID of the token /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/query/token_id`. - public var token_id: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_token_hyphen_id? + public var tokenId: Components.Parameters.PersonalAccessTokenTokenId? /// 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)." + /// - perPage: 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)." /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. /// - owner: A list of owner usernames to use to filter the results. /// - repository: The name of the repository to use to filter the results. /// - permission: The permission to use to filter the results. - /// - last_used_before: Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - last_used_after: Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - token_id: The ID of the token + /// - lastUsedBefore: Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - lastUsedAfter: Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - tokenId: The ID of the token public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - sort: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - owner: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_owner? = nil, - repository: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_repository? = nil, - permission: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_permission? = nil, - last_used_before: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_before? = nil, - last_used_after: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_after? = nil, - token_id: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_token_hyphen_id? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + sort: Components.Parameters.PersonalAccessTokenSort? = nil, + direction: Components.Parameters.Direction? = nil, + owner: Components.Parameters.PersonalAccessTokenOwner? = nil, + repository: Components.Parameters.PersonalAccessTokenRepository? = nil, + permission: Components.Parameters.PersonalAccessTokenPermission? = nil, + lastUsedBefore: Components.Parameters.PersonalAccessTokenBefore? = nil, + lastUsedAfter: Components.Parameters.PersonalAccessTokenAfter? = nil, + tokenId: Components.Parameters.PersonalAccessTokenTokenId? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.sort = sort self.direction = direction self.owner = owner self.repository = repository self.permission = permission - self.last_used_before = last_used_before - self.last_used_after = last_used_after - self.token_id = token_id + self.lastUsedBefore = lastUsedBefore + self.lastUsedAfter = lastUsedAfter + self.tokenId = tokenId } } - public var query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Query + public var query: Operations.OrgsListPatGrantRequests.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Headers + public var headers: Operations.OrgsListPatGrantRequests.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -19881,9 +20124,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Input.Headers = .init() + path: Operations.OrgsListPatGrantRequests.Input.Path, + query: Operations.OrgsListPatGrantRequests.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRequests.Input.Headers = .init() ) { self.path = path self.query = query @@ -19896,12 +20139,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -19919,12 +20162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -19942,12 +20185,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -19965,12 +20208,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -19987,26 +20230,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Headers + public var headers: Operations.OrgsListPatGrantRequests.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request]) + case json([Components.Schemas.OrganizationProgrammaticAccessGrantRequest]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant_hyphen_request] { + public var json: [Components.Schemas.OrganizationProgrammaticAccessGrantRequest] { get throws { switch self { case let .json(body): @@ -20016,15 +20259,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Body + public var body: Operations.OrgsListPatGrantRequests.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok.Body + headers: Operations.OrgsListPatGrantRequests.Output.Ok.Headers = .init(), + body: Operations.OrgsListPatGrantRequests.Output.Ok.Body ) { self.headers = headers self.body = body @@ -20035,12 +20278,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/get(orgs/list-pat-grant-requests)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok) + case ok(Operations.OrgsListPatGrantRequests.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_requests.Output.Ok { + public var ok: Operations.OrgsListPatGrantRequests.Output.Ok { get throws { switch self { case let .ok(response): @@ -20092,7 +20335,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)`. - public enum orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk { + public enum OrgsReviewPatGrantRequestsInBulk { public static let id: Swift.String = "orgs/review-pat-grant-requests-in-bulk" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/path`. @@ -20100,76 +20343,76 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Path + public var path: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Headers + public var headers: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/json/pat_request_ids`. - public var pat_request_ids: [Swift.Int]? + public var patRequestIds: [Swift.Int]? /// Action to apply to the requests. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/json/action`. - @frozen public enum actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case approve = "approve" case deny = "deny" } /// Action to apply to the requests. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/json/action`. - public var action: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body.jsonPayload.actionPayload + public var action: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body.JsonPayload.ActionPayload /// Reason for approving or denying the requests. Max 1024 characters. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/json/reason`. public var reason: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - pat_request_ids: Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values. + /// - patRequestIds: Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values. /// - action: Action to apply to the requests. /// - reason: Reason for approving or denying the requests. Max 1024 characters. public init( - pat_request_ids: [Swift.Int]? = nil, - action: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body.jsonPayload.actionPayload, + patRequestIds: [Swift.Int]? = nil, + action: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body.JsonPayload.ActionPayload, reason: Swift.String? = nil ) { - self.pat_request_ids = pat_request_ids + self.patRequestIds = patRequestIds self.action = action self.reason = reason } public enum CodingKeys: String, CodingKey { - case pat_request_ids + case patRequestIds = "pat_request_ids" case action case reason } } /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body.jsonPayload) + case json(Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body + public var body: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -20177,9 +20420,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Path, - headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Headers = .init(), - body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_requests_hyphen_in_hyphen_bulk.Input.Body + path: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Path, + headers: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Headers = .init(), + body: Operations.OrgsReviewPatGrantRequestsInBulk.Input.Body ) { self.path = path self.headers = headers @@ -20192,12 +20435,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -20215,12 +20458,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -20238,12 +20481,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -20261,12 +20504,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -20284,12 +20527,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/post(orgs/review-pat-grant-requests-in-bulk)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -20341,7 +20584,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)`. - public enum orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request { + public enum OrgsReviewPatGrantRequest { public static let id: Swift.String = "orgs/review-pat-grant-request" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/path`. @@ -20349,63 +20592,63 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the request for access via fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/path/pat_request_id`. - public var pat_request_id: Swift.Int + public var patRequestId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - pat_request_id: Unique identifier of the request for access via fine-grained personal access token. + /// - patRequestId: Unique identifier of the request for access via fine-grained personal access token. public init( - org: Components.Parameters.org, - pat_request_id: Swift.Int + org: Components.Parameters.Org, + patRequestId: Swift.Int ) { self.org = org - self.pat_request_id = pat_request_id + self.patRequestId = patRequestId } } - public var path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Path + public var path: Operations.OrgsReviewPatGrantRequest.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Headers + public var headers: Operations.OrgsReviewPatGrantRequest.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Action to apply to the request. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody/json/action`. - @frozen public enum actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case approve = "approve" case deny = "deny" } /// Action to apply to the request. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody/json/action`. - public var action: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body.jsonPayload.actionPayload + public var action: Operations.OrgsReviewPatGrantRequest.Input.Body.JsonPayload.ActionPayload /// Reason for approving or denying the request. Max 1024 characters. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody/json/reason`. public var reason: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - action: Action to apply to the request. /// - reason: Reason for approving or denying the request. Max 1024 characters. public init( - action: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body.jsonPayload.actionPayload, + action: Operations.OrgsReviewPatGrantRequest.Input.Body.JsonPayload.ActionPayload, reason: Swift.String? = nil ) { self.action = action @@ -20417,9 +20660,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body.jsonPayload) + case json(Operations.OrgsReviewPatGrantRequest.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body + public var body: Operations.OrgsReviewPatGrantRequest.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -20427,9 +20670,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Path, - headers: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Headers = .init(), - body: Operations.orgs_sol_review_hyphen_pat_hyphen_grant_hyphen_request.Input.Body + path: Operations.OrgsReviewPatGrantRequest.Input.Path, + headers: Operations.OrgsReviewPatGrantRequest.Input.Headers = .init(), + body: Operations.OrgsReviewPatGrantRequest.Input.Body ) { self.path = path self.headers = headers @@ -20442,12 +20685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -20465,12 +20708,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -20488,12 +20731,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -20511,12 +20754,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -20534,12 +20777,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/post(orgs/review-pat-grant-request)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -20591,7 +20842,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)`. - public enum orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories { + public enum OrgsListPatGrantRequestRepositories { public static let id: Swift.String = "orgs/list-pat-grant-request-repositories" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/path`. @@ -20599,61 +20850,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the request for access via fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/path/pat_request_id`. - public var pat_request_id: Swift.Int + public var patRequestId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - pat_request_id: Unique identifier of the request for access via fine-grained personal access token. + /// - patRequestId: Unique identifier of the request for access via fine-grained personal access token. public init( - org: Components.Parameters.org, - pat_request_id: Swift.Int + org: Components.Parameters.Org, + patRequestId: Swift.Int ) { self.org = org - self.pat_request_id = pat_request_id + self.patRequestId = patRequestId } } - public var path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Path + public var path: Operations.OrgsListPatGrantRequestRepositories.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Query + public var query: Operations.OrgsListPatGrantRequestRepositories.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Headers + public var headers: Operations.OrgsListPatGrantRequestRepositories.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -20661,9 +20912,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Input.Headers = .init() + path: Operations.OrgsListPatGrantRequestRepositories.Input.Path, + query: Operations.OrgsListPatGrantRequestRepositories.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRequestRepositories.Input.Headers = .init() ) { self.path = path self.query = query @@ -20676,12 +20927,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -20699,12 +20950,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -20722,12 +20973,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -20744,26 +20995,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Headers + public var headers: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -20773,15 +21024,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Body + public var body: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok.Body + headers: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Headers = .init(), + body: Operations.OrgsListPatGrantRequestRepositories.Output.Ok.Body ) { self.headers = headers self.body = body @@ -20792,12 +21043,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories/get(orgs/list-pat-grant-request-repositories)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok) + case ok(Operations.OrgsListPatGrantRequestRepositories.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_request_hyphen_repositories.Output.Ok { + public var ok: Operations.OrgsListPatGrantRequestRepositories.Output.Ok { get throws { switch self { case let .ok(response): @@ -20849,7 +21100,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)`. - public enum orgs_sol_list_hyphen_pat_hyphen_grants { + public enum OrgsListPatGrants { public static let id: Swift.String = "orgs/list-pat-grants" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/path`. @@ -20857,117 +21108,117 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Path + public var path: Operations.OrgsListPatGrants.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// - Remark: Generated from `#/components/parameters/personal-access-token-sort`. - @frozen public enum personal_hyphen_access_hyphen_token_hyphen_sort: String, Codable, Hashable, Sendable { - case created_at = "created_at" + @frozen public enum PersonalAccessTokenSort: String, Codable, Hashable, Sendable, CaseIterable { + case createdAt = "created_at" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/sort`. - public var sort: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_sort? + public var sort: Components.Parameters.PersonalAccessTokenSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// A list of owner usernames to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/owner`. - public var owner: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_owner? + public var owner: Components.Parameters.PersonalAccessTokenOwner? /// The name of the repository to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/repository`. - public var repository: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_repository? + public var repository: Components.Parameters.PersonalAccessTokenRepository? /// The permission to use to filter the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/permission`. - public var permission: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_permission? + public var permission: Components.Parameters.PersonalAccessTokenPermission? /// Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/last_used_before`. - public var last_used_before: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_before? + public var lastUsedBefore: Components.Parameters.PersonalAccessTokenBefore? /// Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/last_used_after`. - public var last_used_after: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_after? + public var lastUsedAfter: Components.Parameters.PersonalAccessTokenAfter? /// The ID of the token /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/query/token_id`. - public var token_id: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_token_hyphen_id? + public var tokenId: Components.Parameters.PersonalAccessTokenTokenId? /// 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)." + /// - perPage: 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)." /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. /// - owner: A list of owner usernames to use to filter the results. /// - repository: The name of the repository to use to filter the results. /// - permission: The permission to use to filter the results. - /// - last_used_before: Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - last_used_after: Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - token_id: The ID of the token + /// - lastUsedBefore: Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - lastUsedAfter: Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - tokenId: The ID of the token public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - sort: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - owner: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_owner? = nil, - repository: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_repository? = nil, - permission: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_permission? = nil, - last_used_before: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_before? = nil, - last_used_after: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_after? = nil, - token_id: Components.Parameters.personal_hyphen_access_hyphen_token_hyphen_token_hyphen_id? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + sort: Components.Parameters.PersonalAccessTokenSort? = nil, + direction: Components.Parameters.Direction? = nil, + owner: Components.Parameters.PersonalAccessTokenOwner? = nil, + repository: Components.Parameters.PersonalAccessTokenRepository? = nil, + permission: Components.Parameters.PersonalAccessTokenPermission? = nil, + lastUsedBefore: Components.Parameters.PersonalAccessTokenBefore? = nil, + lastUsedAfter: Components.Parameters.PersonalAccessTokenAfter? = nil, + tokenId: Components.Parameters.PersonalAccessTokenTokenId? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.sort = sort self.direction = direction self.owner = owner self.repository = repository self.permission = permission - self.last_used_before = last_used_before - self.last_used_after = last_used_after - self.token_id = token_id + self.lastUsedBefore = lastUsedBefore + self.lastUsedAfter = lastUsedAfter + self.tokenId = tokenId } } - public var query: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Query + public var query: Operations.OrgsListPatGrants.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Headers + public var headers: Operations.OrgsListPatGrants.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -20975,9 +21226,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Input.Headers = .init() + path: Operations.OrgsListPatGrants.Input.Path, + query: Operations.OrgsListPatGrants.Input.Query = .init(), + headers: Operations.OrgsListPatGrants.Input.Headers = .init() ) { self.path = path self.query = query @@ -20990,12 +21241,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -21013,12 +21264,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -21036,12 +21287,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -21059,12 +21310,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -21081,26 +21332,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Headers + public var headers: Operations.OrgsListPatGrants.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant]) + case json([Components.Schemas.OrganizationProgrammaticAccessGrant]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_programmatic_hyphen_access_hyphen_grant] { + public var json: [Components.Schemas.OrganizationProgrammaticAccessGrant] { get throws { switch self { case let .json(body): @@ -21110,15 +21361,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Body + public var body: Operations.OrgsListPatGrants.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok.Body + headers: Operations.OrgsListPatGrants.Output.Ok.Headers = .init(), + body: Operations.OrgsListPatGrants.Output.Ok.Body ) { self.headers = headers self.body = body @@ -21129,12 +21380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/get(orgs/list-pat-grants)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok) + case ok(Operations.OrgsListPatGrants.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_pat_hyphen_grants.Output.Ok { + public var ok: Operations.OrgsListPatGrants.Output.Ok { get throws { switch self { case let .ok(response): @@ -21186,7 +21437,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)`. - public enum orgs_sol_update_hyphen_pat_hyphen_accesses { + public enum OrgsUpdatePatAccesses { public static let id: Swift.String = "orgs/update-pat-accesses" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/path`. @@ -21194,67 +21445,67 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Path + public var path: Operations.OrgsUpdatePatAccesses.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Headers + public var headers: Operations.OrgsUpdatePatAccesses.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Action to apply to the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody/json/action`. - @frozen public enum actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case revoke = "revoke" } /// Action to apply to the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody/json/action`. - public var action: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body.jsonPayload.actionPayload + public var action: Operations.OrgsUpdatePatAccesses.Input.Body.JsonPayload.ActionPayload /// The IDs of the fine-grained personal access tokens. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody/json/pat_ids`. - public var pat_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var patIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - action: Action to apply to the fine-grained personal access token. - /// - pat_ids: The IDs of the fine-grained personal access tokens. + /// - patIds: The IDs of the fine-grained personal access tokens. public init( - action: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body.jsonPayload.actionPayload, - pat_ids: [Swift.Int] + action: Operations.OrgsUpdatePatAccesses.Input.Body.JsonPayload.ActionPayload, + patIds: [Swift.Int] ) { self.action = action - self.pat_ids = pat_ids + self.patIds = patIds } public enum CodingKeys: String, CodingKey { case action - case pat_ids + case patIds = "pat_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body.jsonPayload) + case json(Operations.OrgsUpdatePatAccesses.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body + public var body: Operations.OrgsUpdatePatAccesses.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -21262,9 +21513,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Path, - headers: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_pat_hyphen_accesses.Input.Body + path: Operations.OrgsUpdatePatAccesses.Input.Path, + headers: Operations.OrgsUpdatePatAccesses.Input.Headers = .init(), + body: Operations.OrgsUpdatePatAccesses.Input.Body ) { self.path = path self.headers = headers @@ -21277,12 +21528,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -21300,12 +21551,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -21323,12 +21574,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -21346,12 +21597,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -21369,12 +21620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/post(orgs/update-pat-accesses)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -21426,7 +21677,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/personal-access-tokens/{pat_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)`. - public enum orgs_sol_update_hyphen_pat_hyphen_access { + public enum OrgsUpdatePatAccess { public static let id: Swift.String = "orgs/update-pat-access" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/path`. @@ -21434,56 +21685,56 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/path/pat_id`. - public var pat_id: Components.Parameters.fine_hyphen_grained_hyphen_personal_hyphen_access_hyphen_token_hyphen_id + public var patId: Components.Parameters.FineGrainedPersonalAccessTokenId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - pat_id: The unique identifier of the fine-grained personal access token. + /// - patId: The unique identifier of the fine-grained personal access token. public init( - org: Components.Parameters.org, - pat_id: Components.Parameters.fine_hyphen_grained_hyphen_personal_hyphen_access_hyphen_token_hyphen_id + org: Components.Parameters.Org, + patId: Components.Parameters.FineGrainedPersonalAccessTokenId ) { self.org = org - self.pat_id = pat_id + self.patId = patId } } - public var path: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Path + public var path: Operations.OrgsUpdatePatAccess.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Headers + public var headers: Operations.OrgsUpdatePatAccess.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Action to apply to the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/requestBody/json/action`. - @frozen public enum actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum ActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case revoke = "revoke" } /// Action to apply to the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/requestBody/json/action`. - public var action: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body.jsonPayload.actionPayload - /// Creates a new `jsonPayload`. + public var action: Operations.OrgsUpdatePatAccess.Input.Body.JsonPayload.ActionPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - action: Action to apply to the fine-grained personal access token. - public init(action: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body.jsonPayload.actionPayload) { + public init(action: Operations.OrgsUpdatePatAccess.Input.Body.JsonPayload.ActionPayload) { self.action = action } public enum CodingKeys: String, CodingKey { @@ -21491,9 +21742,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body.jsonPayload) + case json(Operations.OrgsUpdatePatAccess.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body + public var body: Operations.OrgsUpdatePatAccess.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -21501,9 +21752,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Path, - headers: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_pat_hyphen_access.Input.Body + path: Operations.OrgsUpdatePatAccess.Input.Path, + headers: Operations.OrgsUpdatePatAccess.Input.Headers = .init(), + body: Operations.OrgsUpdatePatAccess.Input.Body ) { self.path = path self.headers = headers @@ -21516,12 +21767,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -21539,12 +21790,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -21562,12 +21813,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -21585,12 +21844,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -21608,12 +21867,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/post(orgs/update-pat-access)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -21665,7 +21924,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)`. - public enum orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories { + public enum OrgsListPatGrantRepositories { public static let id: Swift.String = "orgs/list-pat-grant-repositories" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/path`. @@ -21673,61 +21932,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the fine-grained personal access token. /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/path/pat_id`. - public var pat_id: Swift.Int + public var patId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - pat_id: Unique identifier of the fine-grained personal access token. + /// - patId: Unique identifier of the fine-grained personal access token. public init( - org: Components.Parameters.org, - pat_id: Swift.Int + org: Components.Parameters.Org, + patId: Swift.Int ) { self.org = org - self.pat_id = pat_id + self.patId = patId } } - public var path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Path + public var path: Operations.OrgsListPatGrantRepositories.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Query + public var query: Operations.OrgsListPatGrantRepositories.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Headers + public var headers: Operations.OrgsListPatGrantRepositories.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -21735,9 +21994,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Path, - query: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Input.Headers = .init() + path: Operations.OrgsListPatGrantRepositories.Input.Path, + query: Operations.OrgsListPatGrantRepositories.Input.Query = .init(), + headers: Operations.OrgsListPatGrantRepositories.Input.Headers = .init() ) { self.path = path self.query = query @@ -21750,12 +22009,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -21773,12 +22032,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -21796,12 +22055,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -21818,26 +22077,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Headers + public var headers: Operations.OrgsListPatGrantRepositories.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/personal-access-tokens/{pat_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -21847,15 +22106,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Body + public var body: Operations.OrgsListPatGrantRepositories.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok.Body + headers: Operations.OrgsListPatGrantRepositories.Output.Ok.Headers = .init(), + body: Operations.OrgsListPatGrantRepositories.Output.Ok.Body ) { self.headers = headers self.body = body @@ -21866,12 +22125,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/personal-access-tokens/{pat_id}/repositories/get(orgs/list-pat-grant-repositories)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok) + case ok(Operations.OrgsListPatGrantRepositories.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_pat_hyphen_grant_hyphen_repositories.Output.Ok { + public var ok: Operations.OrgsListPatGrantRepositories.Output.Ok { get throws { switch self { case let .ok(response): @@ -21922,7 +22181,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)`. - public enum orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties { + public enum OrgsGetAllCustomProperties { public static let id: Swift.String = "orgs/get-all-custom-properties" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/path`. @@ -21930,36 +22189,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Path + public var path: Operations.OrgsGetAllCustomProperties.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Headers + public var headers: Operations.OrgsGetAllCustomProperties.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Path, - headers: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Input.Headers = .init() + path: Operations.OrgsGetAllCustomProperties.Input.Path, + headers: Operations.OrgsGetAllCustomProperties.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -21970,12 +22229,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/responses/200/content/application\/json`. - case json([Components.Schemas.custom_hyphen_property]) + case json([Components.Schemas.CustomProperty]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.custom_hyphen_property] { + public var json: [Components.Schemas.CustomProperty] { get throws { switch self { case let .json(body): @@ -21985,12 +22244,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output.Ok.Body + public var body: Operations.OrgsGetAllCustomProperties.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output.Ok.Body) { + public init(body: Operations.OrgsGetAllCustomProperties.Output.Ok.Body) { self.body = body } } @@ -21999,12 +22258,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output.Ok) + case ok(Operations.OrgsGetAllCustomProperties.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_all_hyphen_custom_hyphen_properties.Output.Ok { + public var ok: Operations.OrgsGetAllCustomProperties.Output.Ok { get throws { switch self { case let .ok(response): @@ -22022,12 +22281,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22045,12 +22304,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/get(orgs/get-all-custom-properties)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22108,7 +22367,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/schema`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)`. - public enum orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties { + public enum OrgsCreateOrUpdateCustomProperties { public static let id: Swift.String = "orgs/create-or-update-custom-properties" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/path`. @@ -22116,41 +22375,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Path + public var path: Operations.OrgsCreateOrUpdateCustomProperties.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Headers + public var headers: Operations.OrgsCreateOrUpdateCustomProperties.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The array of custom properties to create or update. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/requestBody/json/properties`. - public var properties: [Components.Schemas.custom_hyphen_property] - /// Creates a new `jsonPayload`. + public var properties: [Components.Schemas.CustomProperty] + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - properties: The array of custom properties to create or update. - public init(properties: [Components.Schemas.custom_hyphen_property]) { + public init(properties: [Components.Schemas.CustomProperty]) { self.properties = properties } public enum CodingKeys: String, CodingKey { @@ -22158,9 +22417,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Body.jsonPayload) + case json(Operations.OrgsCreateOrUpdateCustomProperties.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Body + public var body: Operations.OrgsCreateOrUpdateCustomProperties.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -22168,9 +22427,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Input.Body + path: Operations.OrgsCreateOrUpdateCustomProperties.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomProperties.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomProperties.Input.Body ) { self.path = path self.headers = headers @@ -22182,12 +22441,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/responses/200/content/application\/json`. - case json([Components.Schemas.custom_hyphen_property]) + case json([Components.Schemas.CustomProperty]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.custom_hyphen_property] { + public var json: [Components.Schemas.CustomProperty] { get throws { switch self { case let .json(body): @@ -22197,12 +22456,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output.Ok.Body + public var body: Operations.OrgsCreateOrUpdateCustomProperties.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output.Ok.Body) { + public init(body: Operations.OrgsCreateOrUpdateCustomProperties.Output.Ok.Body) { self.body = body } } @@ -22211,12 +22470,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output.Ok) + case ok(Operations.OrgsCreateOrUpdateCustomProperties.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties.Output.Ok { + public var ok: Operations.OrgsCreateOrUpdateCustomProperties.Output.Ok { get throws { switch self { case let .ok(response): @@ -22234,12 +22493,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22257,12 +22516,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/patch(orgs/create-or-update-custom-properties)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22313,7 +22572,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)`. - public enum orgs_sol_get_hyphen_custom_hyphen_property { + public enum OrgsGetCustomProperty { public static let id: Swift.String = "orgs/get-custom-property" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path`. @@ -22321,45 +22580,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/path/custom_property_name`. - public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + public var customPropertyName: Components.Parameters.CustomPropertyName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name + /// - customPropertyName: The custom property name public init( - org: Components.Parameters.org, - custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + org: Components.Parameters.Org, + customPropertyName: Components.Parameters.CustomPropertyName ) { self.org = org - self.custom_property_name = custom_property_name + self.customPropertyName = customPropertyName } } - public var path: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Path + public var path: Operations.OrgsGetCustomProperty.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Headers + public var headers: Operations.OrgsGetCustomProperty.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Input.Headers = .init() + path: Operations.OrgsGetCustomProperty.Input.Path, + headers: Operations.OrgsGetCustomProperty.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -22370,12 +22629,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.custom_hyphen_property) + case json(Components.Schemas.CustomProperty) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.custom_hyphen_property { + public var json: Components.Schemas.CustomProperty { get throws { switch self { case let .json(body): @@ -22385,12 +22644,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output.Ok.Body + public var body: Operations.OrgsGetCustomProperty.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output.Ok.Body) { + public init(body: Operations.OrgsGetCustomProperty.Output.Ok.Body) { self.body = body } } @@ -22399,12 +22658,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output.Ok) + case ok(Operations.OrgsGetCustomProperty.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_custom_hyphen_property.Output.Ok { + public var ok: Operations.OrgsGetCustomProperty.Output.Ok { get throws { switch self { case let .ok(response): @@ -22422,12 +22681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22445,12 +22704,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/get(orgs/get-custom-property)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22504,7 +22763,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)`. - public enum orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property { + public enum OrgsCreateOrUpdateCustomProperty { public static let id: Swift.String = "orgs/create-or-update-custom-property" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path`. @@ -22512,43 +22771,43 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/path/custom_property_name`. - public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + public var customPropertyName: Components.Parameters.CustomPropertyName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name + /// - customPropertyName: The custom property name public init( - org: Components.Parameters.org, - custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + org: Components.Parameters.Org, + customPropertyName: Components.Parameters.CustomPropertyName ) { self.org = org - self.custom_property_name = custom_property_name + self.customPropertyName = customPropertyName } } - public var path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Path + public var path: Operations.OrgsCreateOrUpdateCustomProperty.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Headers + public var headers: Operations.OrgsCreateOrUpdateCustomProperty.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.custom_hyphen_property_hyphen_set_hyphen_payload) + case json(Components.Schemas.CustomPropertySetPayload) } - public var body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Body + public var body: Operations.OrgsCreateOrUpdateCustomProperty.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -22556,9 +22815,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Input.Body + path: Operations.OrgsCreateOrUpdateCustomProperty.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomProperty.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomProperty.Input.Body ) { self.path = path self.headers = headers @@ -22570,12 +22829,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.custom_hyphen_property) + case json(Components.Schemas.CustomProperty) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.custom_hyphen_property { + public var json: Components.Schemas.CustomProperty { get throws { switch self { case let .json(body): @@ -22585,12 +22844,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output.Ok.Body + public var body: Operations.OrgsCreateOrUpdateCustomProperty.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output.Ok.Body) { + public init(body: Operations.OrgsCreateOrUpdateCustomProperty.Output.Ok.Body) { self.body = body } } @@ -22599,12 +22858,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output.Ok) + case ok(Operations.OrgsCreateOrUpdateCustomProperty.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_property.Output.Ok { + public var ok: Operations.OrgsCreateOrUpdateCustomProperty.Output.Ok { get throws { switch self { case let .ok(response): @@ -22622,12 +22881,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22645,12 +22904,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/put(orgs/create-or-update-custom-property)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22704,7 +22963,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/properties/schema/{custom_property_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)`. - public enum orgs_sol_remove_hyphen_custom_hyphen_property { + public enum OrgsRemoveCustomProperty { public static let id: Swift.String = "orgs/remove-custom-property" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path`. @@ -22712,45 +22971,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The custom property name /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/path/custom_property_name`. - public var custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + public var customPropertyName: Components.Parameters.CustomPropertyName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - custom_property_name: The custom property name + /// - customPropertyName: The custom property name public init( - org: Components.Parameters.org, - custom_property_name: Components.Parameters.custom_hyphen_property_hyphen_name + org: Components.Parameters.Org, + customPropertyName: Components.Parameters.CustomPropertyName ) { self.org = org - self.custom_property_name = custom_property_name + self.customPropertyName = customPropertyName } } - public var path: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Path + public var path: Operations.OrgsRemoveCustomProperty.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Headers + public var headers: Operations.OrgsRemoveCustomProperty.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Path, - headers: Operations.orgs_sol_remove_hyphen_custom_hyphen_property.Input.Headers = .init() + path: Operations.OrgsRemoveCustomProperty.Input.Path, + headers: Operations.OrgsRemoveCustomProperty.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -22762,12 +23021,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -22785,12 +23052,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -22808,12 +23075,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/schema/{custom_property_name}/delete(orgs/remove-custom-property)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -22864,7 +23131,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)`. - public enum orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos { + public enum OrgsListCustomPropertiesValuesForRepos { public static let id: Swift.String = "orgs/list-custom-properties-values-for-repos" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/path`. @@ -22872,59 +23139,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path + public var path: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Finds repositories in the organization with a query containing one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/query/repository_query`. - public var repository_query: Swift.String? + public var repositoryQuery: Swift.String? /// 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)." + /// - perPage: 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)." - /// - repository_query: Finds repositories in the organization with a query containing one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. + /// - repositoryQuery: Finds repositories in the organization with a query containing one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - repository_query: Swift.String? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + repositoryQuery: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page - self.repository_query = repository_query + self.repositoryQuery = repositoryQuery } } - public var query: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Query + public var query: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers + public var headers: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -22932,9 +23199,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path, - query: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers = .init() + path: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Path, + query: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Query = .init(), + headers: Operations.OrgsListCustomPropertiesValuesForRepos.Input.Headers = .init() ) { self.path = path self.query = query @@ -22946,26 +23213,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Headers + public var headers: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/GET/responses/200/content/application\/json`. - case json([Components.Schemas.org_hyphen_repo_hyphen_custom_hyphen_property_hyphen_values]) + case json([Components.Schemas.OrgRepoCustomPropertyValues]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.org_hyphen_repo_hyphen_custom_hyphen_property_hyphen_values] { + public var json: [Components.Schemas.OrgRepoCustomPropertyValues] { get throws { switch self { case let .json(body): @@ -22975,15 +23242,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Body + public var body: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok.Body + headers: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Headers = .init(), + body: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok.Body ) { self.headers = headers self.body = body @@ -22994,12 +23261,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok) + case ok(Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.Ok { + public var ok: Operations.OrgsListCustomPropertiesValuesForRepos.Output.Ok { get throws { switch self { case let .ok(response): @@ -23017,12 +23284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -23040,12 +23307,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/get(orgs/list-custom-properties-values-for-repos)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -23104,7 +23371,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/properties/values`. /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)`. - public enum orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos { + public enum OrgsCreateOrUpdateCustomPropertiesValuesForRepos { public static let id: Swift.String = "orgs/create-or-update-custom-properties-values-for-repos" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/path`. @@ -23112,61 +23379,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path + public var path: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers + public var headers: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of repositories that the custom property values will be applied to. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/requestBody/json/repository_names`. - public var repository_names: [Swift.String] + public var repositoryNames: [Swift.String] /// List of custom property names and associated values to apply to the repositories. /// /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/requestBody/json/properties`. - public var properties: [Components.Schemas.custom_hyphen_property_hyphen_value] - /// Creates a new `jsonPayload`. + public var properties: [Components.Schemas.CustomPropertyValue] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - repository_names: The names of repositories that the custom property values will be applied to. + /// - repositoryNames: The names of repositories that the custom property values will be applied to. /// - properties: List of custom property names and associated values to apply to the repositories. public init( - repository_names: [Swift.String], - properties: [Components.Schemas.custom_hyphen_property_hyphen_value] + repositoryNames: [Swift.String], + properties: [Components.Schemas.CustomPropertyValue] ) { - self.repository_names = repository_names + self.repositoryNames = repositoryNames self.properties = properties } public enum CodingKeys: String, CodingKey { - case repository_names + case repositoryNames = "repository_names" case properties } } /// - Remark: Generated from `#/paths/orgs/{org}/properties/values/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Body.jsonPayload) + case json(Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Body + public var body: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -23174,9 +23441,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Path, - headers: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Headers = .init(), - body: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Input.Body + path: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Path, + headers: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Headers = .init(), + body: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Input.Body ) { self.path = path self.headers = headers @@ -23193,12 +23460,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.NoContent) + case noContent(Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Output.NoContent) + /// No Content when custom property values are successfully created or updated + /// + /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values_hyphen_for_hyphen_repos.Output.NoContent { + public var noContent: Operations.OrgsCreateOrUpdateCustomPropertiesValuesForRepos.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23216,12 +23491,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -23239,12 +23514,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -23262,12 +23537,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/properties/values/patch(orgs/create-or-update-custom-properties-values-for-repos)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -23317,7 +23592,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/public_members`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/get(orgs/list-public-members)`. - public enum orgs_sol_list_hyphen_public_hyphen_members { + public enum OrgsListPublicMembers { public static let id: Swift.String = "orgs/list-public-members" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/path`. @@ -23325,52 +23600,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Path + public var path: Operations.OrgsListPublicMembers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Query + public var query: Operations.OrgsListPublicMembers.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Headers + public var headers: Operations.OrgsListPublicMembers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -23378,9 +23653,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Path, - query: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Input.Headers = .init() + path: Operations.OrgsListPublicMembers.Input.Path, + query: Operations.OrgsListPublicMembers.Input.Query = .init(), + headers: Operations.OrgsListPublicMembers.Input.Headers = .init() ) { self.path = path self.query = query @@ -23392,26 +23667,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Headers + public var headers: Operations.OrgsListPublicMembers.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -23421,15 +23696,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Body + public var body: Operations.OrgsListPublicMembers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok.Body + headers: Operations.OrgsListPublicMembers.Output.Ok.Headers = .init(), + body: Operations.OrgsListPublicMembers.Output.Ok.Body ) { self.headers = headers self.body = body @@ -23440,12 +23715,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/get(orgs/list-public-members)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok) + case ok(Operations.OrgsListPublicMembers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_public_hyphen_members.Output.Ok { + public var ok: Operations.OrgsListPublicMembers.Output.Ok { get throws { switch self { case let .ok(response): @@ -23495,7 +23770,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)`. - public enum orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user { + public enum OrgsCheckPublicMembershipForUser { public static let id: Swift.String = "orgs/check-public-membership-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/GET/path`. @@ -23503,30 +23778,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsCheckPublicMembershipForUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Input.Path) { + public init(path: Operations.OrgsCheckPublicMembershipForUser.Input.Path) { self.path = path } } @@ -23540,12 +23815,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsCheckPublicMembershipForUser.Output.NoContent) + /// Response if user is a public member + /// + /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsCheckPublicMembershipForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23567,12 +23850,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output.NotFound) + case notFound(Operations.OrgsCheckPublicMembershipForUser.Output.NotFound) + /// Not Found if user is not a public member + /// + /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/get(orgs/check-public-membership-for-user)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.orgs_sol_check_hyphen_public_hyphen_membership_hyphen_for_hyphen_user.Output.NotFound { + public var notFound: Operations.OrgsCheckPublicMembershipForUser.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -23599,7 +23890,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)`. - public enum orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsSetPublicMembershipForAuthenticatedUser { public static let id: Swift.String = "orgs/set-public-membership-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/PUT/path`. @@ -23607,45 +23898,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -23661,12 +23952,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsSetPublicMembershipForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_set_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsSetPublicMembershipForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23684,12 +23983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/put(orgs/set-public-membership-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -23739,7 +24038,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/public_members/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)`. - public enum orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsRemovePublicMembershipForAuthenticatedUser { public static let id: Swift.String = "orgs/remove-public-membership-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/DELETE/path`. @@ -23747,30 +24046,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/public_members/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path) { + public init(path: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Input.Path) { self.path = path } } @@ -23784,12 +24083,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/public_members/{username}/delete(orgs/remove-public-membership-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_remove_hyphen_public_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.OrgsRemovePublicMembershipForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -23814,7 +24121,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)`. - public enum orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history { + public enum OrgsGetOrgRulesetHistory { public static let id: Swift.String = "orgs/get-org-ruleset-history" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/path`. @@ -23822,61 +24129,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - org: Components.Parameters.org, - ruleset_id: Swift.Int + org: Components.Parameters.Org, + rulesetId: Swift.Int ) { self.org = org - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Path + public var path: Operations.OrgsGetOrgRulesetHistory.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Query + public var query: Operations.OrgsGetOrgRulesetHistory.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Headers + public var headers: Operations.OrgsGetOrgRulesetHistory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -23884,9 +24191,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Path, - query: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Query = .init(), - headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Input.Headers = .init() + path: Operations.OrgsGetOrgRulesetHistory.Input.Path, + query: Operations.OrgsGetOrgRulesetHistory.Input.Query = .init(), + headers: Operations.OrgsGetOrgRulesetHistory.Input.Headers = .init() ) { self.path = path self.query = query @@ -23898,12 +24205,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/GET/responses/200/content/application\/json`. - case json([Components.Schemas.ruleset_hyphen_version]) + case json([Components.Schemas.RulesetVersion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.ruleset_hyphen_version] { + public var json: [Components.Schemas.RulesetVersion] { get throws { switch self { case let .json(body): @@ -23913,12 +24220,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output.Ok.Body + public var body: Operations.OrgsGetOrgRulesetHistory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output.Ok.Body) { + public init(body: Operations.OrgsGetOrgRulesetHistory.Output.Ok.Body) { self.body = body } } @@ -23927,12 +24234,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output.Ok) + case ok(Operations.OrgsGetOrgRulesetHistory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_history.Output.Ok { + public var ok: Operations.OrgsGetOrgRulesetHistory.Output.Ok { get throws { switch self { case let .ok(response): @@ -23950,12 +24257,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -23973,12 +24280,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/get(orgs/get-org-ruleset-history)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24028,7 +24335,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)`. - public enum orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version { + public enum OrgsGetOrgRulesetVersion { public static let id: Swift.String = "orgs/get-org-ruleset-version" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/path`. @@ -24036,52 +24343,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// The ID of the version /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/path/version_id`. - public var version_id: Swift.Int + public var versionId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. - /// - version_id: The ID of the version + /// - rulesetId: The ID of the ruleset. + /// - versionId: The ID of the version public init( - org: Components.Parameters.org, - ruleset_id: Swift.Int, - version_id: Swift.Int + org: Components.Parameters.Org, + rulesetId: Swift.Int, + versionId: Swift.Int ) { self.org = org - self.ruleset_id = ruleset_id - self.version_id = version_id + self.rulesetId = rulesetId + self.versionId = versionId } } - public var path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Path + public var path: Operations.OrgsGetOrgRulesetVersion.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Headers + public var headers: Operations.OrgsGetOrgRulesetVersion.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Path, - headers: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Input.Headers = .init() + path: Operations.OrgsGetOrgRulesetVersion.Input.Path, + headers: Operations.OrgsGetOrgRulesetVersion.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24092,12 +24399,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state) + case json(Components.Schemas.RulesetVersionWithState) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state { + public var json: Components.Schemas.RulesetVersionWithState { get throws { switch self { case let .json(body): @@ -24107,12 +24414,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output.Ok.Body + public var body: Operations.OrgsGetOrgRulesetVersion.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output.Ok.Body) { + public init(body: Operations.OrgsGetOrgRulesetVersion.Output.Ok.Body) { self.body = body } } @@ -24121,12 +24428,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output.Ok) + case ok(Operations.OrgsGetOrgRulesetVersion.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_org_hyphen_ruleset_hyphen_version.Output.Ok { + public var ok: Operations.OrgsGetOrgRulesetVersion.Output.Ok { get throws { switch self { case let .ok(response): @@ -24144,12 +24451,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24167,12 +24474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/history/{version_id}/get(orgs/get-org-ruleset-version)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24223,7 +24530,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/security-managers`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/get(orgs/list-security-manager-teams)`. - public enum orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams { + public enum OrgsListSecurityManagerTeams { public static let id: Swift.String = "orgs/list-security-manager-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/GET/path`. @@ -24231,36 +24538,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Path + public var path: Operations.OrgsListSecurityManagerTeams.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Headers + public var headers: Operations.OrgsListSecurityManagerTeams.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Path, - headers: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Input.Headers = .init() + path: Operations.OrgsListSecurityManagerTeams.Input.Path, + headers: Operations.OrgsListSecurityManagerTeams.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24271,12 +24578,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_simple]) + case json([Components.Schemas.TeamSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_simple] { + public var json: [Components.Schemas.TeamSimple] { get throws { switch self { case let .json(body): @@ -24286,12 +24593,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output.Ok.Body + public var body: Operations.OrgsListSecurityManagerTeams.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output.Ok.Body) { + public init(body: Operations.OrgsListSecurityManagerTeams.Output.Ok.Body) { self.body = body } } @@ -24300,12 +24607,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/get(orgs/list-security-manager-teams)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output.Ok) + case ok(Operations.OrgsListSecurityManagerTeams.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_security_hyphen_manager_hyphen_teams.Output.Ok { + public var ok: Operations.OrgsListSecurityManagerTeams.Output.Ok { get throws { switch self { case let .ok(response): @@ -24356,7 +24663,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)`. - public enum orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team { + public enum OrgsAddSecurityManagerTeam { public static let id: Swift.String = "orgs/add-security-manager-team" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/PUT/path`. @@ -24364,30 +24671,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/PUT/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input.Path + public var path: Operations.OrgsAddSecurityManagerTeam.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Input.Path) { + public init(path: Operations.OrgsAddSecurityManagerTeam.Input.Path) { self.path = path } } @@ -24401,12 +24708,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Output.NoContent) + case noContent(Operations.OrgsAddSecurityManagerTeam.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/put(orgs/add-security-manager-team)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_add_hyphen_security_hyphen_manager_hyphen_team.Output.NoContent { + public var noContent: Operations.OrgsAddSecurityManagerTeam.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -24432,7 +24747,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/security-managers/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)`. - public enum orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team { + public enum OrgsRemoveSecurityManagerTeam { public static let id: Swift.String = "orgs/remove-security-manager-team" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/DELETE/path`. @@ -24440,30 +24755,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-managers/teams/{team_slug}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input.Path + public var path: Operations.OrgsRemoveSecurityManagerTeam.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Input.Path) { + public init(path: Operations.OrgsRemoveSecurityManagerTeam.Input.Path) { self.path = path } } @@ -24477,12 +24792,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Output.NoContent) + case noContent(Operations.OrgsRemoveSecurityManagerTeam.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/security-managers/teams/{team_slug}/delete(orgs/remove-security-manager-team)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_remove_hyphen_security_hyphen_manager_hyphen_team.Output.NoContent { + public var noContent: Operations.OrgsRemoveSecurityManagerTeam.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -24514,7 +24837,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/{security_product}/{enablement}`. /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)`. - public enum orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos { + public enum OrgsEnableOrDisableSecurityProductOnAllOrgRepos { public static let id: Swift.String = "orgs/enable-or-disable-security-product-on-all-org-repos" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/path`. @@ -24522,25 +24845,25 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// - Remark: Generated from `#/components/parameters/security-product`. - @frozen public enum security_hyphen_product: String, Codable, Hashable, Sendable { - case dependency_graph = "dependency_graph" - case dependabot_alerts = "dependabot_alerts" - case dependabot_security_updates = "dependabot_security_updates" - case advanced_security = "advanced_security" - case code_scanning_default_setup = "code_scanning_default_setup" - case secret_scanning = "secret_scanning" - case secret_scanning_push_protection = "secret_scanning_push_protection" + @frozen public enum SecurityProduct: String, Codable, Hashable, Sendable, CaseIterable { + case dependencyGraph = "dependency_graph" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case advancedSecurity = "advanced_security" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" } /// The security feature to enable or disable. /// /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/path/security_product`. - public var security_product: Components.Parameters.security_hyphen_product + public var securityProduct: Components.Parameters.SecurityProduct /// - Remark: Generated from `#/components/parameters/org-security-product-enablement`. - @frozen public enum org_hyphen_security_hyphen_product_hyphen_enablement: String, Codable, Hashable, Sendable { - case enable_all = "enable_all" - case disable_all = "disable_all" + @frozen public enum OrgSecurityProductEnablement: String, Codable, Hashable, Sendable, CaseIterable { + case enableAll = "enable_all" + case disableAll = "disable_all" } /// The action to take. /// @@ -24548,33 +24871,33 @@ public enum Operations { /// `disable_all` means to disable the specified security feature for all repositories in the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/path/enablement`. - public var enablement: Components.Parameters.org_hyphen_security_hyphen_product_hyphen_enablement + public var enablement: Components.Parameters.OrgSecurityProductEnablement /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - security_product: The security feature to enable or disable. + /// - securityProduct: The security feature to enable or disable. /// - enablement: The action to take. public init( - org: Components.Parameters.org, - security_product: Components.Parameters.security_hyphen_product, - enablement: Components.Parameters.org_hyphen_security_hyphen_product_hyphen_enablement + org: Components.Parameters.Org, + securityProduct: Components.Parameters.SecurityProduct, + enablement: Components.Parameters.OrgSecurityProductEnablement ) { self.org = org - self.security_product = security_product + self.securityProduct = securityProduct self.enablement = enablement } } - public var path: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Path + public var path: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured. /// If you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied. /// /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/requestBody/json/query_suite`. - @frozen public enum query_suitePayload: String, Codable, Hashable, Sendable { + @frozen public enum QuerySuitePayload: String, Codable, Hashable, Sendable, CaseIterable { case _default = "default" case extended = "extended" } @@ -24582,30 +24905,30 @@ public enum Operations { /// If you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied. /// /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/requestBody/json/query_suite`. - public var query_suite: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body.jsonPayload.query_suitePayload? - /// Creates a new `jsonPayload`. + public var querySuite: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body.JsonPayload.QuerySuitePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - query_suite: CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured. - public init(query_suite: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body.jsonPayload.query_suitePayload? = nil) { - self.query_suite = query_suite + /// - querySuite: CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured. + public init(querySuite: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body.JsonPayload.QuerySuitePayload? = nil) { + self.querySuite = querySuite } public enum CodingKeys: String, CodingKey { - case query_suite + case querySuite = "query_suite" } } /// - Remark: Generated from `#/paths/orgs/{org}/{security_product}/{enablement}/POST/requestBody/content/application\/json`. - case json(Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body.jsonPayload) + case json(Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body? + public var body: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Path, - body: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Input.Body? = nil + path: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Path, + body: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Input.Body? = nil ) { self.path = path self.body = body @@ -24621,12 +24944,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output.NoContent) + case noContent(Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output.NoContent) + /// Action started + /// + /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output.NoContent { + public var noContent: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -24648,12 +24979,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output.UnprocessableContent) + case unprocessableContent(Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output.UnprocessableContent) + /// The action could not be taken due to an in progress enablement, or a policy is preventing enablement + /// + /// - Remark: Generated from `#/paths//orgs/{org}/{security_product}/{enablement}/post(orgs/enable-or-disable-security-product-on-all-org-repos)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.orgs_sol_enable_hyphen_or_hyphen_disable_hyphen_security_hyphen_product_hyphen_on_hyphen_all_hyphen_org_hyphen_repos.Output.UnprocessableContent { + public var unprocessableContent: Operations.OrgsEnableOrDisableSecurityProductOnAllOrgRepos.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -24678,65 +25017,65 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/memberships/orgs`. /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)`. - public enum orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsListMembershipsForAuthenticatedUser { public static let id: Swift.String = "orgs/list-memberships-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case pending = "pending" } /// Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships. /// /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/query/state`. - public var state: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.statePayload? + public var state: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Query.StatePayload? /// 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)." /// /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - state: Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.statePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + state: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Query.StatePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.OrgsListMembershipsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -24747,26 +25086,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/GET/responses/200/content/application\/json`. - case json([Components.Schemas.org_hyphen_membership]) + case json([Components.Schemas.OrgMembership]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.org_hyphen_membership] { + public var json: [Components.Schemas.OrgMembership] { get throws { switch self { case let .json(body): @@ -24776,15 +25115,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -24795,12 +25134,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_memberships_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.OrgsListMembershipsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -24818,12 +25157,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -24841,12 +25188,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -24864,12 +25211,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -24887,12 +25234,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/get(orgs/list-memberships-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -24942,7 +25289,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)`. - public enum orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsGetMembershipForAuthenticatedUser { public static let id: Swift.String = "orgs/get-membership-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/GET/path`. @@ -24950,36 +25297,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsGetMembershipForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24990,12 +25337,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_membership) + case json(Components.Schemas.OrgMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_membership { + public var json: Components.Schemas.OrgMembership { get throws { switch self { case let .json(body): @@ -25005,12 +25352,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsGetMembershipForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.OrgsGetMembershipForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -25019,12 +25366,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.OrgsGetMembershipForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_get_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.OrgsGetMembershipForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -25042,12 +25389,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -25065,12 +25412,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/get(orgs/get-membership-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25120,7 +25467,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /user/memberships/orgs/{org}`. /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)`. - public enum orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsUpdateMembershipForAuthenticatedUser { public static let id: Swift.String = "orgs/update-membership-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/path`. @@ -25128,47 +25475,47 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The state that the membership should be in. Only `"active"` will be accepted. /// /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" } /// The state that the membership should be in. Only `"active"` will be accepted. /// /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/requestBody/json/state`. - public var state: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.statePayload - /// Creates a new `jsonPayload`. + public var state: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body.JsonPayload.StatePayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: The state that the membership should be in. Only `"active"` will be accepted. - public init(state: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.statePayload) { + public init(state: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body.JsonPayload.StatePayload) { self.state = state } public enum CodingKeys: String, CodingKey { @@ -25176,9 +25523,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/requestBody/content/application\/json`. - case json(Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -25186,9 +25533,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Path, + headers: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Headers = .init(), + body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -25200,12 +25547,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/memberships/orgs/{org}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_membership) + case json(Components.Schemas.OrgMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_membership { + public var json: Components.Schemas.OrgMembership { get throws { switch self { case let .json(body): @@ -25215,12 +25562,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.OrgsUpdateMembershipForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -25229,12 +25576,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.OrgsUpdateMembershipForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_update_hyphen_membership_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.OrgsUpdateMembershipForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -25252,12 +25599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -25275,12 +25622,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25298,12 +25645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/memberships/orgs/{org}/patch(orgs/update-membership-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -25358,7 +25705,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/orgs`. /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`. - public enum orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum OrgsListForAuthenticatedUser { public static let id: Swift.String = "orgs/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/orgs/GET/query`. @@ -25366,45 +25713,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/orgs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/orgs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.OrgsListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/orgs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.OrgsListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.OrgsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.OrgsListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -25415,26 +25762,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/orgs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/orgs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.OrgsListForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/orgs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/orgs/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_simple]) + case json([Components.Schemas.OrganizationSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_simple] { + public var json: [Components.Schemas.OrganizationSimple] { get throws { switch self { case let .json(body): @@ -25444,15 +25791,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.OrgsListForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.OrgsListForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -25463,12 +25810,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.OrgsListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.OrgsListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -25486,12 +25833,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -25509,12 +25864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -25532,12 +25887,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -25589,7 +25944,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/orgs`. /// - Remark: Generated from `#/paths//users/{username}/orgs/get(orgs/list-for-user)`. - public enum orgs_sol_list_hyphen_for_hyphen_user { + public enum OrgsListForUser { public static let id: Swift.String = "orgs/list-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/path`. @@ -25597,52 +25952,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Path + public var path: Operations.OrgsListForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Query + public var query: Operations.OrgsListForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.OrgsListForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -25650,9 +26005,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.OrgsListForUser.Input.Path, + query: Operations.OrgsListForUser.Input.Query = .init(), + headers: Operations.OrgsListForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -25664,26 +26019,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.OrgsListForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/orgs/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_simple]) + case json([Components.Schemas.OrganizationSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_simple] { + public var json: [Components.Schemas.OrganizationSimple] { get throws { switch self { case let .json(body): @@ -25693,15 +26048,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.OrgsListForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.OrgsListForUser.Output.Ok.Headers = .init(), + body: Operations.OrgsListForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -25712,12 +26067,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/orgs/get(orgs/list-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.OrgsListForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.orgs_sol_list_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.OrgsListForUser.Output.Ok { get throws { switch self { case let .ok(response): From b92e764717407c7e86f5167e977f07f13feb56aa Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:04:08 -0700 Subject: [PATCH 24/46] Commit via running ake Sources/packages --- Sources/packages/Client.swift | 498 ++--- Sources/packages/Types.swift | 3403 +++++++++++++++++---------------- 2 files changed, 2015 insertions(+), 1886 deletions(-) diff --git a/Sources/packages/Client.swift b/Sources/packages/Client.swift index e504665306..a249f3bb07 100644 --- a/Sources/packages/Client.swift +++ b/Sources/packages/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/docker/conflicts`. /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output { + public func packagesListDockerMigrationConflictingPackagesForOrganization(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.id, + forOperation: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/docker/conflicts", @@ -72,7 +72,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body + let body: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -82,7 +82,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -94,7 +94,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -104,7 +104,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -116,7 +116,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -126,7 +126,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -156,10 +156,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output { + public func packagesListPackagesForOrganization(_ input: Operations.PackagesListPackagesForOrganization.Input) async throws -> Operations.PackagesListPackagesForOrganization.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.id, + forOperation: Operations.PackagesListPackagesForOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages", @@ -177,7 +177,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "package_type", - value: input.query.package_type + value: input.query.packageType ) try converter.setQueryItemAsURI( in: &request, @@ -198,7 +198,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -210,7 +210,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body + let body: Operations.PackagesListPackagesForOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -220,7 +220,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -232,7 +232,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -242,7 +242,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -254,7 +254,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -264,7 +264,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -296,17 +296,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/get(packages/get-package-for-organization)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output { + public func packagesGetPackageForOrganization(_ input: Operations.PackagesGetPackageForOrganization.Input) async throws -> Operations.PackagesGetPackageForOrganization.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.id, + forOperation: Operations.PackagesGetPackageForOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -324,7 +324,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output.Ok.Body + let body: Operations.PackagesGetPackageForOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -334,7 +334,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package.self, + Components.Schemas.Package.self, from: responseBody, transforming: { value in .json(value) @@ -366,17 +366,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_org(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Output { + public func packagesDeletePackageForOrg(_ input: Operations.PackagesDeletePackageForOrg.Input) async throws -> Operations.PackagesDeletePackageForOrg.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.id, + forOperation: Operations.PackagesDeletePackageForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -396,7 +396,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -406,7 +406,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -418,7 +418,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -428,7 +428,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -440,7 +440,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -450,7 +450,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -486,17 +486,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_org(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Output { + public func packagesRestorePackageForOrg(_ input: Operations.PackagesRestorePackageForOrg.Input) async throws -> Operations.PackagesRestorePackageForOrg.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.id, + forOperation: Operations.PackagesRestorePackageForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}/restore", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -523,7 +523,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -533,7 +533,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -545,7 +545,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -555,7 +555,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -567,7 +567,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -577,7 +577,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -607,17 +607,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output { + public func packagesGetAllPackageVersionsForPackageOwnedByOrg(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.id, + forOperation: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}/versions", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -637,7 +637,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -656,7 +656,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output.Ok.Body + let body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -666,7 +666,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package_hyphen_version].self, + [Components.Schemas.PackageVersion].self, from: responseBody, transforming: { value in .json(value) @@ -678,7 +678,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -688,7 +688,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -700,7 +700,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -710,7 +710,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -722,7 +722,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -732,7 +732,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -762,18 +762,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-organization)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output { + public func packagesGetPackageVersionForOrganization(_ input: Operations.PackagesGetPackageVersionForOrganization.Input) async throws -> Operations.PackagesGetPackageVersionForOrganization.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.id, + forOperation: Operations.PackagesGetPackageVersionForOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}/versions/{}", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -791,7 +791,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output.Ok.Body + let body: Operations.PackagesGetPackageVersionForOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -801,7 +801,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package_hyphen_version.self, + Components.Schemas.PackageVersion.self, from: responseBody, transforming: { value in .json(value) @@ -833,18 +833,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output { + public func packagesDeletePackageVersionForOrg(_ input: Operations.PackagesDeletePackageVersionForOrg.Input) async throws -> Operations.PackagesDeletePackageVersionForOrg.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.id, + forOperation: Operations.PackagesDeletePackageVersionForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}/versions/{}", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -864,7 +864,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -874,7 +874,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -886,7 +886,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -896,7 +896,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -908,7 +908,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -918,7 +918,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -954,18 +954,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output { + public func packagesRestorePackageVersionForOrg(_ input: Operations.PackagesRestorePackageVersionForOrg.Input) async throws -> Operations.PackagesRestorePackageVersionForOrg.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.id, + forOperation: Operations.PackagesRestorePackageVersionForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/packages/{}/{}/versions/{}/restore", parameters: [ input.path.org, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -985,7 +985,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -995,7 +995,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1007,7 +1007,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1017,7 +1017,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1029,7 +1029,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1039,7 +1039,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1069,10 +1069,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/docker/conflicts`. /// - Remark: Generated from `#/paths//user/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-authenticated-user)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesListDockerMigrationConflictingPackagesForAuthenticatedUser(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/docker/conflicts", @@ -1093,7 +1093,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1103,7 +1103,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -1133,10 +1133,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/packages`. /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesListPackagesForAuthenticatedUser(_ input: Operations.PackagesListPackagesForAuthenticatedUser.Input) async throws -> Operations.PackagesListPackagesForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesListPackagesForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages", @@ -1152,7 +1152,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "package_type", - value: input.query.package_type + value: input.query.packageType ) try converter.setQueryItemAsURI( in: &request, @@ -1173,7 +1173,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -1185,7 +1185,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.PackagesListPackagesForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1195,7 +1195,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -1227,16 +1227,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/get(packages/get-package-for-authenticated-user)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesGetPackageForAuthenticatedUser(_ input: Operations.PackagesGetPackageForAuthenticatedUser.Input) async throws -> Operations.PackagesGetPackageForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesGetPackageForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}", parameters: [ - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1254,7 +1254,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetPackageForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1264,7 +1264,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package.self, + Components.Schemas.Package.self, from: responseBody, transforming: { value in .json(value) @@ -1294,16 +1294,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesDeletePackageForAuthenticatedUser(_ input: Operations.PackagesDeletePackageForAuthenticatedUser.Input) async throws -> Operations.PackagesDeletePackageForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesDeletePackageForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}", parameters: [ - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1323,7 +1323,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1333,7 +1333,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1355,7 +1355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1367,7 +1367,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1377,7 +1377,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1411,16 +1411,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesRestorePackageForAuthenticatedUser(_ input: Operations.PackagesRestorePackageForAuthenticatedUser.Input) async throws -> Operations.PackagesRestorePackageForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesRestorePackageForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}/restore", parameters: [ - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1447,7 +1447,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1457,7 +1457,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1469,7 +1469,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1479,7 +1479,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1491,7 +1491,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1501,7 +1501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1531,16 +1531,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output { + public func packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}/versions", parameters: [ - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1560,7 +1560,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1579,7 +1579,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1589,7 +1589,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package_hyphen_version].self, + [Components.Schemas.PackageVersion].self, from: responseBody, transforming: { value in .json(value) @@ -1601,7 +1601,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1611,7 +1611,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1623,7 +1623,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1633,7 +1633,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1645,7 +1645,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1655,7 +1655,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1685,17 +1685,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-authenticated-user)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesGetPackageVersionForAuthenticatedUser(_ input: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesGetPackageVersionForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesGetPackageVersionForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}/versions/{}", parameters: [ - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1713,7 +1713,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetPackageVersionForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1723,7 +1723,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package_hyphen_version.self, + Components.Schemas.PackageVersion.self, from: responseBody, transforming: { value in .json(value) @@ -1755,17 +1755,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesDeletePackageVersionForAuthenticatedUser(_ input: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesDeletePackageVersionForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesDeletePackageVersionForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}/versions/{}", parameters: [ - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1785,7 +1785,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1795,7 +1795,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1807,7 +1807,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1817,7 +1817,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1829,7 +1829,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1839,7 +1839,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1873,17 +1873,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func packagesRestorePackageVersionForAuthenticatedUser(_ input: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesRestorePackageVersionForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.PackagesRestorePackageVersionForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/packages/{}/{}/versions/{}/restore", parameters: [ - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1903,7 +1903,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1913,7 +1913,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1925,7 +1925,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1935,7 +1935,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1947,7 +1947,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1957,7 +1957,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1987,10 +1987,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/docker/conflicts`. /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output { + public func packagesListDockerMigrationConflictingPackagesForUser(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesListDockerMigrationConflictingPackagesForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/docker/conflicts", @@ -2013,7 +2013,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2023,7 +2023,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -2035,7 +2035,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2045,7 +2045,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2057,7 +2057,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2067,7 +2067,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2097,10 +2097,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages`. /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_user(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output { + public func packagesListPackagesForUser(_ input: Operations.PackagesListPackagesForUser.Input) async throws -> Operations.PackagesListPackagesForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesListPackagesForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages", @@ -2118,7 +2118,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "package_type", - value: input.query.package_type + value: input.query.packageType ) try converter.setQueryItemAsURI( in: &request, @@ -2139,7 +2139,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -2151,7 +2151,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.PackagesListPackagesForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2161,7 +2161,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package].self, + [Components.Schemas.Package].self, from: responseBody, transforming: { value in .json(value) @@ -2173,7 +2173,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2183,7 +2183,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2195,7 +2195,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2205,7 +2205,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2237,17 +2237,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/get(packages/get-package-for-user)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output { + public func packagesGetPackageForUser(_ input: Operations.PackagesGetPackageForUser.Input) async throws -> Operations.PackagesGetPackageForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesGetPackageForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2265,7 +2265,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetPackageForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2275,7 +2275,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package.self, + Components.Schemas.Package.self, from: responseBody, transforming: { value in .json(value) @@ -2307,17 +2307,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Output { + public func packagesDeletePackageForUser(_ input: Operations.PackagesDeletePackageForUser.Input) async throws -> Operations.PackagesDeletePackageForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesDeletePackageForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2337,7 +2337,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2347,7 +2347,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2359,7 +2359,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2369,7 +2369,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2381,7 +2381,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2391,7 +2391,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2427,17 +2427,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Output { + public func packagesRestorePackageForUser(_ input: Operations.PackagesRestorePackageForUser.Input) async throws -> Operations.PackagesRestorePackageForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesRestorePackageForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}/restore", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2464,7 +2464,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2474,7 +2474,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2486,7 +2486,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2496,7 +2496,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2508,7 +2508,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2518,7 +2518,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2548,17 +2548,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output { + public func packagesGetAllPackageVersionsForPackageOwnedByUser(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.id, + forOperation: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}/versions", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name + input.path.packageType, + input.path.packageName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2576,7 +2576,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2586,7 +2586,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.package_hyphen_version].self, + [Components.Schemas.PackageVersion].self, from: responseBody, transforming: { value in .json(value) @@ -2598,7 +2598,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2608,7 +2608,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2620,7 +2620,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2630,7 +2630,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2642,7 +2642,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2652,7 +2652,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2682,18 +2682,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-user)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { + public func packagesGetPackageVersionForUser(_ input: Operations.PackagesGetPackageVersionForUser.Input) async throws -> Operations.PackagesGetPackageVersionForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesGetPackageVersionForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}/versions/{}", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2711,7 +2711,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.PackagesGetPackageVersionForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2721,7 +2721,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.package_hyphen_version.self, + Components.Schemas.PackageVersion.self, from: responseBody, transforming: { value in .json(value) @@ -2753,18 +2753,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { + public func packagesDeletePackageVersionForUser(_ input: Operations.PackagesDeletePackageVersionForUser.Input) async throws -> Operations.PackagesDeletePackageVersionForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesDeletePackageVersionForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}/versions/{}", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2784,7 +2784,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2794,7 +2794,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2806,7 +2806,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2816,7 +2816,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2828,7 +2828,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2838,7 +2838,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2874,18 +2874,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { + public func packagesRestorePackageVersionForUser(_ input: Operations.PackagesRestorePackageVersionForUser.Input) async throws -> Operations.PackagesRestorePackageVersionForUser.Output { try await client.send( input: input, - forOperation: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.id, + forOperation: Operations.PackagesRestorePackageVersionForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/packages/{}/{}/versions/{}/restore", parameters: [ input.path.username, - input.path.package_type, - input.path.package_name, - input.path.package_version_id + input.path.packageType, + input.path.packageName, + input.path.packageVersionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2905,7 +2905,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2915,7 +2915,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2927,7 +2927,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2937,7 +2937,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2949,7 +2949,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2959,7 +2959,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/packages/Types.swift b/Sources/packages/Types.swift index fa6c479a87..99a71ce25d 100644 --- a/Sources/packages/Types.swift +++ b/Sources/packages/Types.swift @@ -19,7 +19,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/docker/conflicts`. /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)`. - func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output + func packagesListDockerMigrationConflictingPackagesForOrganization(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output /// List packages for an organization /// /// Lists packages in an organization readable by the user. @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)`. - func packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output + func packagesListPackagesForOrganization(_ input: Operations.PackagesListPackagesForOrganization.Input) async throws -> Operations.PackagesListPackagesForOrganization.Output /// Get a package for an organization /// /// Gets a specific package in an organization. @@ -37,7 +37,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/get(packages/get-package-for-organization)`. - func packages_sol_get_hyphen_package_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output + func packagesGetPackageForOrganization(_ input: Operations.PackagesGetPackageForOrganization.Input) async throws -> Operations.PackagesGetPackageForOrganization.Output /// Delete a package for an organization /// /// Deletes an entire package in an organization. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance. @@ -48,7 +48,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)`. - func packages_sol_delete_hyphen_package_hyphen_for_hyphen_org(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Output + func packagesDeletePackageForOrg(_ input: Operations.PackagesDeletePackageForOrg.Input) async throws -> Operations.PackagesDeletePackageForOrg.Output /// Restore a package for an organization /// /// Restores an entire package in an organization. @@ -63,7 +63,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)`. - func packages_sol_restore_hyphen_package_hyphen_for_hyphen_org(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Output + func packagesRestorePackageForOrg(_ input: Operations.PackagesRestorePackageForOrg.Input) async throws -> Operations.PackagesRestorePackageForOrg.Output /// List package versions for a package owned by an organization /// /// Lists package versions for a package owned by an organization. @@ -72,7 +72,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)`. - func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output + func packagesGetAllPackageVersionsForPackageOwnedByOrg(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output /// Get a package version for an organization /// /// Gets a specific package version in an organization. @@ -81,7 +81,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-organization)`. - func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output + func packagesGetPackageVersionForOrganization(_ input: Operations.PackagesGetPackageVersionForOrganization.Input) async throws -> Operations.PackagesGetPackageVersionForOrganization.Output /// Delete package version for an organization /// /// Deletes a specific package version in an organization. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. @@ -92,7 +92,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)`. - func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output + func packagesDeletePackageVersionForOrg(_ input: Operations.PackagesDeletePackageVersionForOrg.Input) async throws -> Operations.PackagesDeletePackageVersionForOrg.Output /// Restore package version for an organization /// /// Restores a specific package version in an organization. @@ -107,7 +107,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)`. - func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output + func packagesRestorePackageVersionForOrg(_ input: Operations.PackagesRestorePackageVersionForOrg.Input) async throws -> Operations.PackagesRestorePackageVersionForOrg.Output /// Get list of conflicting packages during Docker migration for authenticated-user /// /// Lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration. @@ -116,7 +116,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/docker/conflicts`. /// - Remark: Generated from `#/paths//user/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-authenticated-user)`. - func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesListDockerMigrationConflictingPackagesForAuthenticatedUser(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output /// List packages for the authenticated user's namespace /// /// Lists packages owned by the authenticated user within the user's namespace. @@ -125,7 +125,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/packages`. /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)`. - func packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesListPackagesForAuthenticatedUser(_ input: Operations.PackagesListPackagesForAuthenticatedUser.Input) async throws -> Operations.PackagesListPackagesForAuthenticatedUser.Output /// Get a package for the authenticated user /// /// Gets a specific package for a package owned by the authenticated user. @@ -134,7 +134,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/get(packages/get-package-for-authenticated-user)`. - func packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesGetPackageForAuthenticatedUser(_ input: Operations.PackagesGetPackageForAuthenticatedUser.Input) async throws -> Operations.PackagesGetPackageForAuthenticatedUser.Output /// Delete a package for the authenticated user /// /// Deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance. @@ -143,7 +143,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)`. - func packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesDeletePackageForAuthenticatedUser(_ input: Operations.PackagesDeletePackageForAuthenticatedUser.Input) async throws -> Operations.PackagesDeletePackageForAuthenticatedUser.Output /// Restore a package for the authenticated user /// /// Restores a package owned by the authenticated user. @@ -156,7 +156,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)`. - func packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesRestorePackageForAuthenticatedUser(_ input: Operations.PackagesRestorePackageForAuthenticatedUser.Input) async throws -> Operations.PackagesRestorePackageForAuthenticatedUser.Output /// List package versions for a package owned by the authenticated user /// /// Lists package versions for a package owned by the authenticated user. @@ -165,7 +165,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)`. - func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output + func packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output /// Get a package version for the authenticated user /// /// Gets a specific package version for a package owned by the authenticated user. @@ -174,7 +174,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-authenticated-user)`. - func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesGetPackageVersionForAuthenticatedUser(_ input: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesGetPackageVersionForAuthenticatedUser.Output /// Delete a package version for the authenticated user /// /// Deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. @@ -185,7 +185,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)`. - func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesDeletePackageVersionForAuthenticatedUser(_ input: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesDeletePackageVersionForAuthenticatedUser.Output /// Restore a package version for the authenticated user /// /// Restores a package version owned by the authenticated user. @@ -198,7 +198,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)`. - func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output + func packagesRestorePackageVersionForAuthenticatedUser(_ input: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input) async throws -> Operations.PackagesRestorePackageVersionForAuthenticatedUser.Output /// Get list of conflicting packages during Docker migration for user /// /// Lists all packages that are in a specific user's namespace, that the requesting user has access to, and that encountered a conflict during Docker migration. @@ -207,7 +207,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/docker/conflicts`. /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)`. - func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user(_ input: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output + func packagesListDockerMigrationConflictingPackagesForUser(_ input: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output /// List packages for a user /// /// Lists all packages in a user's namespace for which the requesting user has access. @@ -216,7 +216,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/packages`. /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)`. - func packages_sol_list_hyphen_packages_hyphen_for_hyphen_user(_ input: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output + func packagesListPackagesForUser(_ input: Operations.PackagesListPackagesForUser.Input) async throws -> Operations.PackagesListPackagesForUser.Output /// Get a package for a user /// /// Gets a specific package metadata for a public package owned by a user. @@ -225,7 +225,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/get(packages/get-package-for-user)`. - func packages_sol_get_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output + func packagesGetPackageForUser(_ input: Operations.PackagesGetPackageForUser.Input) async throws -> Operations.PackagesGetPackageForUser.Output /// Delete a package for a user /// /// Deletes an entire package for a user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance. @@ -236,7 +236,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)`. - func packages_sol_delete_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Output + func packagesDeletePackageForUser(_ input: Operations.PackagesDeletePackageForUser.Input) async throws -> Operations.PackagesDeletePackageForUser.Output /// Restore a package for a user /// /// Restores an entire package for a user. @@ -251,7 +251,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)`. - func packages_sol_restore_hyphen_package_hyphen_for_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Output + func packagesRestorePackageForUser(_ input: Operations.PackagesRestorePackageForUser.Input) async throws -> Operations.PackagesRestorePackageForUser.Output /// List package versions for a package owned by a user /// /// Lists package versions for a public package owned by a specified user. @@ -260,7 +260,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)`. - func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user(_ input: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output + func packagesGetAllPackageVersionsForPackageOwnedByUser(_ input: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output /// Get a package version for a user /// /// Gets a specific package version for a public package owned by a specified user. @@ -269,7 +269,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-user)`. - func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output + func packagesGetPackageVersionForUser(_ input: Operations.PackagesGetPackageVersionForUser.Input) async throws -> Operations.PackagesGetPackageVersionForUser.Output /// Delete package version for a user /// /// Deletes a specific package version for a user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance. @@ -280,7 +280,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)`. - func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output + func packagesDeletePackageVersionForUser(_ input: Operations.PackagesDeletePackageVersionForUser.Input) async throws -> Operations.PackagesDeletePackageVersionForUser.Output /// Restore package version for a user /// /// Restores a specific package version for a user. @@ -295,7 +295,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)`. - func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user(_ input: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output + func packagesRestorePackageVersionForUser(_ input: Operations.PackagesRestorePackageVersionForUser.Input) async throws -> Operations.PackagesRestorePackageVersionForUser.Output } /// Convenience overloads for operation inputs. @@ -308,11 +308,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/docker/conflicts`. /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization( - path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output { - try await packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input( + public func packagesListDockerMigrationConflictingPackagesForOrganization( + path: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Path, + headers: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Headers = .init() + ) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output { + try await packagesListDockerMigrationConflictingPackagesForOrganization(Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input( path: path, headers: headers )) @@ -325,12 +325,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization( - path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Path, - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output { - try await packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input( + public func packagesListPackagesForOrganization( + path: Operations.PackagesListPackagesForOrganization.Input.Path, + query: Operations.PackagesListPackagesForOrganization.Input.Query, + headers: Operations.PackagesListPackagesForOrganization.Input.Headers = .init() + ) async throws -> Operations.PackagesListPackagesForOrganization.Output { + try await packagesListPackagesForOrganization(Operations.PackagesListPackagesForOrganization.Input( path: path, query: query, headers: headers @@ -344,11 +344,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/get(packages/get-package-for-organization)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_organization( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output { - try await packages_sol_get_hyphen_package_hyphen_for_hyphen_organization(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input( + public func packagesGetPackageForOrganization( + path: Operations.PackagesGetPackageForOrganization.Input.Path, + headers: Operations.PackagesGetPackageForOrganization.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageForOrganization.Output { + try await packagesGetPackageForOrganization(Operations.PackagesGetPackageForOrganization.Input( path: path, headers: headers )) @@ -363,11 +363,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_org( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Output { - try await packages_sol_delete_hyphen_package_hyphen_for_hyphen_org(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input( + public func packagesDeletePackageForOrg( + path: Operations.PackagesDeletePackageForOrg.Input.Path, + headers: Operations.PackagesDeletePackageForOrg.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageForOrg.Output { + try await packagesDeletePackageForOrg(Operations.PackagesDeletePackageForOrg.Input( path: path, headers: headers )) @@ -386,12 +386,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_org( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Output { - try await packages_sol_restore_hyphen_package_hyphen_for_hyphen_org(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input( + public func packagesRestorePackageForOrg( + path: Operations.PackagesRestorePackageForOrg.Input.Path, + query: Operations.PackagesRestorePackageForOrg.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForOrg.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageForOrg.Output { + try await packagesRestorePackageForOrg(Operations.PackagesRestorePackageForOrg.Input( path: path, query: query, headers: headers @@ -405,12 +405,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Path, - query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Query = .init(), - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output { - try await packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input( + public func packagesGetAllPackageVersionsForPackageOwnedByOrg( + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Path, + query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Query = .init(), + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Headers = .init() + ) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output { + try await packagesGetAllPackageVersionsForPackageOwnedByOrg(Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input( path: path, query: query, headers: headers @@ -424,11 +424,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-organization)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output { - try await packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input( + public func packagesGetPackageVersionForOrganization( + path: Operations.PackagesGetPackageVersionForOrganization.Input.Path, + headers: Operations.PackagesGetPackageVersionForOrganization.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageVersionForOrganization.Output { + try await packagesGetPackageVersionForOrganization(Operations.PackagesGetPackageVersionForOrganization.Input( path: path, headers: headers )) @@ -443,11 +443,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output { - try await packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input( + public func packagesDeletePackageVersionForOrg( + path: Operations.PackagesDeletePackageVersionForOrg.Input.Path, + headers: Operations.PackagesDeletePackageVersionForOrg.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageVersionForOrg.Output { + try await packagesDeletePackageVersionForOrg(Operations.PackagesDeletePackageVersionForOrg.Input( path: path, headers: headers )) @@ -466,11 +466,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output { - try await packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input( + public func packagesRestorePackageVersionForOrg( + path: Operations.PackagesRestorePackageVersionForOrg.Input.Path, + headers: Operations.PackagesRestorePackageVersionForOrg.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageVersionForOrg.Output { + try await packagesRestorePackageVersionForOrg(Operations.PackagesRestorePackageVersionForOrg.Input( path: path, headers: headers )) @@ -483,8 +483,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/docker/conflicts`. /// - Remark: Generated from `#/paths//user/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-authenticated-user)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input(headers: headers)) + public func packagesListDockerMigrationConflictingPackagesForAuthenticatedUser(headers: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input.Headers = .init()) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output { + try await packagesListDockerMigrationConflictingPackagesForAuthenticatedUser(Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input(headers: headers)) } /// List packages for the authenticated user's namespace /// @@ -494,11 +494,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/packages`. /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesListPackagesForAuthenticatedUser( + query: Operations.PackagesListPackagesForAuthenticatedUser.Input.Query, + headers: Operations.PackagesListPackagesForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesListPackagesForAuthenticatedUser.Output { + try await packagesListPackagesForAuthenticatedUser(Operations.PackagesListPackagesForAuthenticatedUser.Input( query: query, headers: headers )) @@ -511,11 +511,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/get(packages/get-package-for-authenticated-user)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesGetPackageForAuthenticatedUser( + path: Operations.PackagesGetPackageForAuthenticatedUser.Input.Path, + headers: Operations.PackagesGetPackageForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageForAuthenticatedUser.Output { + try await packagesGetPackageForAuthenticatedUser(Operations.PackagesGetPackageForAuthenticatedUser.Input( path: path, headers: headers )) @@ -528,11 +528,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesDeletePackageForAuthenticatedUser( + path: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Path, + headers: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageForAuthenticatedUser.Output { + try await packagesDeletePackageForAuthenticatedUser(Operations.PackagesDeletePackageForAuthenticatedUser.Input( path: path, headers: headers )) @@ -549,12 +549,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesRestorePackageForAuthenticatedUser( + path: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Path, + query: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageForAuthenticatedUser.Output { + try await packagesRestorePackageForAuthenticatedUser(Operations.PackagesRestorePackageForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -568,12 +568,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input( + public func packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser( + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Path, + query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output { + try await packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser(Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -587,11 +587,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-authenticated-user)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesGetPackageVersionForAuthenticatedUser( + path: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageVersionForAuthenticatedUser.Output { + try await packagesGetPackageVersionForAuthenticatedUser(Operations.PackagesGetPackageVersionForAuthenticatedUser.Input( path: path, headers: headers )) @@ -606,11 +606,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesDeletePackageVersionForAuthenticatedUser( + path: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageVersionForAuthenticatedUser.Output { + try await packagesDeletePackageVersionForAuthenticatedUser(Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input( path: path, headers: headers )) @@ -627,11 +627,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func packagesRestorePackageVersionForAuthenticatedUser( + path: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageVersionForAuthenticatedUser.Output { + try await packagesRestorePackageVersionForAuthenticatedUser(Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input( path: path, headers: headers )) @@ -644,11 +644,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/docker/conflicts`. /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)`. - public func packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user( - path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output { - try await packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input( + public func packagesListDockerMigrationConflictingPackagesForUser( + path: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Path, + headers: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output { + try await packagesListDockerMigrationConflictingPackagesForUser(Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input( path: path, headers: headers )) @@ -661,12 +661,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages`. /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)`. - public func packages_sol_list_hyphen_packages_hyphen_for_hyphen_user( - path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Path, - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output { - try await packages_sol_list_hyphen_packages_hyphen_for_hyphen_user(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input( + public func packagesListPackagesForUser( + path: Operations.PackagesListPackagesForUser.Input.Path, + query: Operations.PackagesListPackagesForUser.Input.Query, + headers: Operations.PackagesListPackagesForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesListPackagesForUser.Output { + try await packagesListPackagesForUser(Operations.PackagesListPackagesForUser.Input( path: path, query: query, headers: headers @@ -680,11 +680,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/get(packages/get-package-for-user)`. - public func packages_sol_get_hyphen_package_hyphen_for_hyphen_user( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output { - try await packages_sol_get_hyphen_package_hyphen_for_hyphen_user(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input( + public func packagesGetPackageForUser( + path: Operations.PackagesGetPackageForUser.Input.Path, + headers: Operations.PackagesGetPackageForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageForUser.Output { + try await packagesGetPackageForUser(Operations.PackagesGetPackageForUser.Input( path: path, headers: headers )) @@ -699,11 +699,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)`. - public func packages_sol_delete_hyphen_package_hyphen_for_hyphen_user( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Output { - try await packages_sol_delete_hyphen_package_hyphen_for_hyphen_user(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input( + public func packagesDeletePackageForUser( + path: Operations.PackagesDeletePackageForUser.Input.Path, + headers: Operations.PackagesDeletePackageForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageForUser.Output { + try await packagesDeletePackageForUser(Operations.PackagesDeletePackageForUser.Input( path: path, headers: headers )) @@ -722,12 +722,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)`. - public func packages_sol_restore_hyphen_package_hyphen_for_hyphen_user( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Output { - try await packages_sol_restore_hyphen_package_hyphen_for_hyphen_user(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input( + public func packagesRestorePackageForUser( + path: Operations.PackagesRestorePackageForUser.Input.Path, + query: Operations.PackagesRestorePackageForUser.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageForUser.Output { + try await packagesRestorePackageForUser(Operations.PackagesRestorePackageForUser.Input( path: path, query: query, headers: headers @@ -741,11 +741,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)`. - public func packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output { - try await packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input( + public func packagesGetAllPackageVersionsForPackageOwnedByUser( + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Path, + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output { + try await packagesGetAllPackageVersionsForPackageOwnedByUser(Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input( path: path, headers: headers )) @@ -758,11 +758,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-user)`. - public func packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { - try await packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input( + public func packagesGetPackageVersionForUser( + path: Operations.PackagesGetPackageVersionForUser.Input.Path, + headers: Operations.PackagesGetPackageVersionForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesGetPackageVersionForUser.Output { + try await packagesGetPackageVersionForUser(Operations.PackagesGetPackageVersionForUser.Input( path: path, headers: headers )) @@ -777,11 +777,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)`. - public func packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { - try await packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input( + public func packagesDeletePackageVersionForUser( + path: Operations.PackagesDeletePackageVersionForUser.Input.Path, + headers: Operations.PackagesDeletePackageVersionForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesDeletePackageVersionForUser.Output { + try await packagesDeletePackageVersionForUser(Operations.PackagesDeletePackageVersionForUser.Input( path: path, headers: headers )) @@ -800,11 +800,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)`. - public func packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output { - try await packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input( + public func packagesRestorePackageVersionForUser( + path: Operations.PackagesRestorePackageVersionForUser.Input.Path, + headers: Operations.PackagesRestorePackageVersionForUser.Input.Headers = .init() + ) async throws -> Operations.PackagesRestorePackageVersionForUser.Output { + try await packagesRestorePackageVersionForUser(Operations.PackagesRestorePackageVersionForUser.Input( path: path, headers: headers )) @@ -813,6 +813,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -828,7 +837,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -838,171 +847,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1010,7 +1019,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1020,142 +1029,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -1165,52 +1174,52 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1218,21 +1227,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1240,27 +1249,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1270,21 +1279,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1292,21 +1301,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1314,21 +1323,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1336,21 +1345,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -1358,62 +1367,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository`. - public struct nullable_hyphen_minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct NullableMinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/fork`. @@ -1421,121 +1430,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/disabled`. @@ -1543,13 +1552,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/permissions/maintain`. @@ -1560,7 +1569,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1590,435 +1599,435 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.NullableMinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/license`. - public var license: Components.Schemas.nullable_hyphen_minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.NullableMinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `nullable_hyphen_minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `NullableMinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.nullable_hyphen_minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.nullable_hyphen_minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.NullableMinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.NullableMinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// A software package /// /// - Remark: Generated from `#/components/schemas/package`. - public struct package: Codable, Hashable, Sendable { + public struct Package: Codable, Hashable, Sendable { /// Unique identifier of the package. /// /// - Remark: Generated from `#/components/schemas/package/id`. @@ -2028,7 +2037,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/package/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/package/package_type`. - @frozen public enum package_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PackageTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -2037,87 +2046,87 @@ public enum Components { case container = "container" } /// - Remark: Generated from `#/components/schemas/package/package_type`. - public var package_type: Components.Schemas.package.package_typePayload + public var packageType: Components.Schemas.Package.PackageTypePayload /// - Remark: Generated from `#/components/schemas/package/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/package/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The number of versions of the package. /// /// - Remark: Generated from `#/components/schemas/package/version_count`. - public var version_count: Swift.Int + public var versionCount: Swift.Int /// - Remark: Generated from `#/components/schemas/package/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case _private = "private" case _public = "public" } /// - Remark: Generated from `#/components/schemas/package/visibility`. - public var visibility: Components.Schemas.package.visibilityPayload + public var visibility: Components.Schemas.Package.VisibilityPayload /// - Remark: Generated from `#/components/schemas/package/owner`. - public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var owner: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/package/repository`. - public var repository: Components.Schemas.nullable_hyphen_minimal_hyphen_repository? + public var repository: Components.Schemas.NullableMinimalRepository? /// - Remark: Generated from `#/components/schemas/package/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/package/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `package`. + public var updatedAt: Foundation.Date + /// Creates a new `Package`. /// /// - Parameters: /// - id: Unique identifier of the package. /// - name: The name of the package. - /// - package_type: + /// - packageType: /// - url: - /// - html_url: - /// - version_count: The number of versions of the package. + /// - htmlUrl: + /// - versionCount: The number of versions of the package. /// - visibility: /// - owner: /// - repository: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( id: Swift.Int, name: Swift.String, - package_type: Components.Schemas.package.package_typePayload, + packageType: Components.Schemas.Package.PackageTypePayload, url: Swift.String, - html_url: Swift.String, - version_count: Swift.Int, - visibility: Components.Schemas.package.visibilityPayload, - owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - repository: Components.Schemas.nullable_hyphen_minimal_hyphen_repository? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date + htmlUrl: Swift.String, + versionCount: Swift.Int, + visibility: Components.Schemas.Package.VisibilityPayload, + owner: Components.Schemas.NullableSimpleUser? = nil, + repository: Components.Schemas.NullableMinimalRepository? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.id = id self.name = name - self.package_type = package_type + self.packageType = packageType self.url = url - self.html_url = html_url - self.version_count = version_count + self.htmlUrl = htmlUrl + self.versionCount = versionCount self.visibility = visibility self.owner = owner self.repository = repository - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name - case package_type + case packageType = "package_type" case url - case html_url - case version_count + case htmlUrl = "html_url" + case versionCount = "version_count" case visibility case owner case repository - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// A version of a software package /// /// - Remark: Generated from `#/components/schemas/package-version`. - public struct package_hyphen_version: Codable, Hashable, Sendable { + public struct PackageVersion: Codable, Hashable, Sendable { /// Unique identifier of the package version. /// /// - Remark: Generated from `#/components/schemas/package-version/id`. @@ -2129,23 +2138,23 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/package-version/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/package-version/package_html_url`. - public var package_html_url: Swift.String + public var packageHtmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/package-version/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/package-version/license`. public var license: Swift.String? /// - Remark: Generated from `#/components/schemas/package-version/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/package-version/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/package-version/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/package-version/deleted_at`. - public var deleted_at: Foundation.Date? + public var deletedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/package-version/metadata`. - public struct metadataPayload: Codable, Hashable, Sendable { + public struct MetadataPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/package-version/metadata/package_type`. - @frozen public enum package_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PackageTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -2154,12 +2163,12 @@ public enum Components { case container = "container" } /// - Remark: Generated from `#/components/schemas/package-version/metadata/package_type`. - public var package_type: Components.Schemas.package_hyphen_version.metadataPayload.package_typePayload + public var packageType: Components.Schemas.PackageVersion.MetadataPayload.PackageTypePayload /// - Remark: Generated from `#/components/schemas/package-version/metadata/container`. - public struct containerPayload: Codable, Hashable, Sendable { + public struct ContainerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/package-version/metadata/container/tags`. public var tags: [Swift.String] - /// Creates a new `containerPayload`. + /// Creates a new `ContainerPayload`. /// /// - Parameters: /// - tags: @@ -2171,12 +2180,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/package-version/metadata/container`. - public var container: Components.Schemas.package_hyphen_version.metadataPayload.containerPayload? + public var container: Components.Schemas.PackageVersion.MetadataPayload.ContainerPayload? /// - Remark: Generated from `#/components/schemas/package-version/metadata/docker`. - public struct dockerPayload: Codable, Hashable, Sendable { + public struct DockerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/package-version/metadata/docker/tag`. public var tag: [Swift.String]? - /// Creates a new `dockerPayload`. + /// Creates a new `DockerPayload`. /// /// - Parameters: /// - tag: @@ -2188,80 +2197,80 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/package-version/metadata/docker`. - public var docker: Components.Schemas.package_hyphen_version.metadataPayload.dockerPayload? - /// Creates a new `metadataPayload`. + public var docker: Components.Schemas.PackageVersion.MetadataPayload.DockerPayload? + /// Creates a new `MetadataPayload`. /// /// - Parameters: - /// - package_type: + /// - packageType: /// - container: /// - docker: public init( - package_type: Components.Schemas.package_hyphen_version.metadataPayload.package_typePayload, - container: Components.Schemas.package_hyphen_version.metadataPayload.containerPayload? = nil, - docker: Components.Schemas.package_hyphen_version.metadataPayload.dockerPayload? = nil + packageType: Components.Schemas.PackageVersion.MetadataPayload.PackageTypePayload, + container: Components.Schemas.PackageVersion.MetadataPayload.ContainerPayload? = nil, + docker: Components.Schemas.PackageVersion.MetadataPayload.DockerPayload? = nil ) { - self.package_type = package_type + self.packageType = packageType self.container = container self.docker = docker } public enum CodingKeys: String, CodingKey { - case package_type + case packageType = "package_type" case container case docker } } /// - Remark: Generated from `#/components/schemas/package-version/metadata`. - public var metadata: Components.Schemas.package_hyphen_version.metadataPayload? - /// Creates a new `package_hyphen_version`. + public var metadata: Components.Schemas.PackageVersion.MetadataPayload? + /// Creates a new `PackageVersion`. /// /// - Parameters: /// - id: Unique identifier of the package version. /// - name: The name of the package version. /// - url: - /// - package_html_url: - /// - html_url: + /// - packageHtmlUrl: + /// - htmlUrl: /// - license: /// - description: - /// - created_at: - /// - updated_at: - /// - deleted_at: + /// - createdAt: + /// - updatedAt: + /// - deletedAt: /// - metadata: public init( id: Swift.Int, name: Swift.String, url: Swift.String, - package_html_url: Swift.String, - html_url: Swift.String? = nil, + packageHtmlUrl: Swift.String, + htmlUrl: Swift.String? = nil, license: Swift.String? = nil, description: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - deleted_at: Foundation.Date? = nil, - metadata: Components.Schemas.package_hyphen_version.metadataPayload? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + deletedAt: Foundation.Date? = nil, + metadata: Components.Schemas.PackageVersion.MetadataPayload? = nil ) { self.id = id self.name = name self.url = url - self.package_html_url = package_html_url - self.html_url = html_url + self.packageHtmlUrl = packageHtmlUrl + self.htmlUrl = htmlUrl self.license = license self.description = description - self.created_at = created_at - self.updated_at = updated_at - self.deleted_at = deleted_at + self.createdAt = createdAt + self.updatedAt = updatedAt + self.deletedAt = deletedAt self.metadata = metadata } public enum CodingKeys: String, CodingKey { case id case name case url - case package_html_url - case html_url + case packageHtmlUrl = "package_html_url" + case htmlUrl = "html_url" case license case description - case created_at - case updated_at - case deleted_at + case createdAt = "created_at" + case updatedAt = "updated_at" + case deletedAt = "deleted_at" case metadata } } @@ -2271,26 +2280,26 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The selected visibility of the packages. This parameter is optional and only filters an existing result set. /// /// The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. /// For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." /// /// - Remark: Generated from `#/components/parameters/package-visibility`. - @frozen public enum package_hyphen_visibility: String, Codable, Hashable, Sendable { + @frozen public enum PackageVisibility: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" case _internal = "internal" @@ -2298,7 +2307,7 @@ public enum Components { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -2309,26 +2318,26 @@ public enum Components { /// The name of the package. /// /// - Remark: Generated from `#/components/parameters/package-name`. - public typealias package_hyphen_name = Swift.String + public typealias PackageName = Swift.String /// Unique identifier of the package version. /// /// - Remark: Generated from `#/components/parameters/package-version-id`. - public typealias package_hyphen_version_hyphen_id = Swift.Int + public typealias PackageVersionId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2338,25 +2347,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2366,25 +2375,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2394,17 +2403,17 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct package_es_list_error: Sendable, Hashable { - /// Creates a new `package_es_list_error`. + public struct PackageEsListError: Sendable, Hashable { + /// Creates a new `PackageEsListError`. public init() {} } } @@ -2422,7 +2431,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/docker/conflicts`. /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)`. - public enum packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization { + public enum PackagesListDockerMigrationConflictingPackagesForOrganization { public static let id: Swift.String = "packages/list-docker-migration-conflicting-packages-for-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/docker/conflicts/GET/path`. @@ -2430,36 +2439,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/docker/conflicts/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Path + public var path: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/docker/conflicts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers + public var headers: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers = .init() + path: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Path, + headers: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2470,12 +2479,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/docker/conflicts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/docker/conflicts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -2485,12 +2494,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body + public var body: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output.Ok.Body) { self.body = body } } @@ -2499,12 +2508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok) + case ok(Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok { + public var ok: Operations.PackagesListDockerMigrationConflictingPackagesForOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -2522,12 +2531,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2545,12 +2554,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-organization)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2602,7 +2611,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/packages`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)`. - public enum packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization { + public enum PackagesListPackagesForOrganization { public static let id: Swift.String = "packages/list-packages-for-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/path`. @@ -2610,20 +2619,20 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Path + public var path: Operations.PackagesListPackagesForOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query/package_type`. - @frozen public enum package_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PackageTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -2634,9 +2643,9 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query/package_type`. - public var package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Query.package_typePayload + public var packageType: Operations.PackagesListPackagesForOrganization.Input.Query.PackageTypePayload /// - Remark: Generated from `#/components/parameters/package-visibility`. - @frozen public enum package_hyphen_visibility: String, Codable, Hashable, Sendable { + @frozen public enum PackageVisibility: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" case _internal = "internal" @@ -2647,7 +2656,7 @@ public enum Operations { /// For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query/visibility`. - public var visibility: Components.Parameters.package_hyphen_visibility? + public var visibility: Components.Parameters.PackageVisibility? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query/page`. @@ -2655,39 +2664,39 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// - visibility: The selected visibility of the packages. This parameter is optional and only filters an existing result set. /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Query.package_typePayload, - visibility: Components.Parameters.package_hyphen_visibility? = nil, + packageType: Operations.PackagesListPackagesForOrganization.Input.Query.PackageTypePayload, + visibility: Components.Parameters.PackageVisibility? = nil, page: Swift.Int? = nil, - per_page: Swift.Int? = nil + perPage: Swift.Int? = nil ) { - self.package_type = package_type + self.packageType = packageType self.visibility = visibility self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Query + public var query: Operations.PackagesListPackagesForOrganization.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers + public var headers: Operations.PackagesListPackagesForOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2695,9 +2704,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Path, - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Input.Headers = .init() + path: Operations.PackagesListPackagesForOrganization.Input.Path, + query: Operations.PackagesListPackagesForOrganization.Input.Query, + headers: Operations.PackagesListPackagesForOrganization.Input.Headers = .init() ) { self.path = path self.query = query @@ -2709,12 +2718,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -2724,12 +2733,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body + public var body: Operations.PackagesListPackagesForOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.PackagesListPackagesForOrganization.Output.Ok.Body) { self.body = body } } @@ -2738,12 +2747,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok) + case ok(Operations.PackagesListPackagesForOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_organization.Output.Ok { + public var ok: Operations.PackagesListPackagesForOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -2761,12 +2770,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2784,12 +2793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2807,12 +2816,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.package_es_list_error) + case badRequest(Components.Responses.PackageEsListError) + /// The value of `per_page` multiplied by `page` cannot be greater than 10000. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/packages/get(packages/list-packages-for-organization)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.package_es_list_error { + public var badRequest: Components.Responses.PackageEsListError { get throws { switch self { case let .badRequest(response): @@ -2864,13 +2881,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/get(packages/get-package-for-organization)`. - public enum packages_sol_get_hyphen_package_hyphen_for_hyphen_organization { + public enum PackagesGetPackageForOrganization { public static let id: Swift.String = "packages/get-package-for-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -2881,52 +2898,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Path + public var path: Operations.PackagesGetPackageForOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Headers + public var headers: Operations.PackagesGetPackageForOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Input.Headers = .init() + path: Operations.PackagesGetPackageForOrganization.Input.Path, + headers: Operations.PackagesGetPackageForOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2937,12 +2954,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package) + case json(Components.Schemas.Package) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package { + public var json: Components.Schemas.Package { get throws { switch self { case let .json(body): @@ -2952,12 +2969,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output.Ok.Body + public var body: Operations.PackagesGetPackageForOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageForOrganization.Output.Ok.Body) { self.body = body } } @@ -2966,12 +2983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/get(packages/get-package-for-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output.Ok) + case ok(Operations.PackagesGetPackageForOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_organization.Output.Ok { + public var ok: Operations.PackagesGetPackageForOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -3025,13 +3042,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)`. - public enum packages_sol_delete_hyphen_package_hyphen_for_hyphen_org { + public enum PackagesDeletePackageForOrg { public static let id: Swift.String = "packages/delete-package-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -3042,52 +3059,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Path + public var path: Operations.PackagesDeletePackageForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.PackagesDeletePackageForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.PackagesDeletePackageForOrg.Input.Path, + headers: Operations.PackagesDeletePackageForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3103,12 +3120,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.PackagesDeletePackageForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3126,12 +3151,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3149,12 +3174,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3172,12 +3197,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3235,13 +3260,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)`. - public enum packages_sol_restore_hyphen_package_hyphen_for_hyphen_org { + public enum PackagesRestorePackageForOrg { public static let id: Swift.String = "packages/restore-package-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -3252,32 +3277,32 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Path + public var path: Operations.PackagesRestorePackageForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/query`. public struct Query: Sendable, Hashable { /// package token @@ -3292,19 +3317,19 @@ public enum Operations { self.token = token } } - public var query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Query + public var query: Operations.PackagesRestorePackageForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.PackagesRestorePackageForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3312,9 +3337,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.PackagesRestorePackageForOrg.Input.Path, + query: Operations.PackagesRestorePackageForOrg.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -3331,12 +3356,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.PackagesRestorePackageForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3354,12 +3387,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3377,12 +3410,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3400,12 +3433,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3457,13 +3490,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)`. - public enum packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org { + public enum PackagesGetAllPackageVersionsForPackageOwnedByOrg { public static let id: Swift.String = "packages/get-all-package-versions-for-package-owned-by-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -3474,80 +3507,80 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org } } - public var path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Path + public var path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case deleted = "deleted" } /// The state of the package, either active or deleted. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/query/state`. - public var state: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Query.statePayload? + public var state: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Query.StatePayload? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - state: The state of the package, either active or deleted. public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - state: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Query.statePayload? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + state: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Query.StatePayload? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage self.state = state } } - public var query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Query + public var query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Headers + public var headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3555,9 +3588,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Path, - query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Query = .init(), - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Input.Headers = .init() + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Path, + query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Query = .init(), + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -3569,12 +3602,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package_hyphen_version]) + case json([Components.Schemas.PackageVersion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package_hyphen_version] { + public var json: [Components.Schemas.PackageVersion] { get throws { switch self { case let .json(body): @@ -3584,12 +3617,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output.Ok.Body + public var body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output.Ok.Body) { + public init(body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output.Ok.Body) { self.body = body } } @@ -3598,12 +3631,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output.Ok) + case ok(Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_org.Output.Ok { + public var ok: Operations.PackagesGetAllPackageVersionsForPackageOwnedByOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -3621,12 +3654,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3644,12 +3677,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3667,12 +3700,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3724,13 +3757,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-organization)`. - public enum packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization { + public enum PackagesGetPackageVersionForOrganization { public static let id: Swift.String = "packages/get-package-version-for-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -3741,59 +3774,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. - /// - package_version_id: Unique identifier of the package version. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org - self.package_version_id = package_version_id + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Path + public var path: Operations.PackagesGetPackageVersionForOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Headers + public var headers: Operations.PackagesGetPackageVersionForOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Input.Headers = .init() + path: Operations.PackagesGetPackageVersionForOrganization.Input.Path, + headers: Operations.PackagesGetPackageVersionForOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3804,12 +3837,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package_hyphen_version) + case json(Components.Schemas.PackageVersion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package_hyphen_version { + public var json: Components.Schemas.PackageVersion { get throws { switch self { case let .json(body): @@ -3819,12 +3852,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output.Ok.Body + public var body: Operations.PackagesGetPackageVersionForOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageVersionForOrganization.Output.Ok.Body) { self.body = body } } @@ -3833,12 +3866,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output.Ok) + case ok(Operations.PackagesGetPackageVersionForOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_organization.Output.Ok { + public var ok: Operations.PackagesGetPackageVersionForOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -3892,13 +3925,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)`. - public enum packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org { + public enum PackagesDeletePackageVersionForOrg { public static let id: Swift.String = "packages/delete-package-version-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -3909,59 +3942,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. - /// - package_version_id: Unique identifier of the package version. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org - self.package_version_id = package_version_id + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path + public var path: Operations.PackagesDeletePackageVersionForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.PackagesDeletePackageVersionForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.PackagesDeletePackageVersionForOrg.Input.Path, + headers: Operations.PackagesDeletePackageVersionForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3977,12 +4010,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.PackagesDeletePackageVersionForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageVersionForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4000,12 +4041,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4023,12 +4064,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4046,12 +4087,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4109,13 +4150,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)`. - public enum packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org { + public enum PackagesRestorePackageVersionForOrg { public static let id: Swift.String = "packages/restore-package-version-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -4126,59 +4167,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - org: The organization name. The name is not case sensitive. - /// - package_version_id: Unique identifier of the package version. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - org: Components.Parameters.org, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + org: Components.Parameters.Org, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.org = org - self.package_version_id = package_version_id + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path + public var path: Operations.PackagesRestorePackageVersionForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.PackagesRestorePackageVersionForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.PackagesRestorePackageVersionForOrg.Input.Path, + headers: Operations.PackagesRestorePackageVersionForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4194,12 +4235,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.PackagesRestorePackageVersionForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageVersionForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4217,12 +4266,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4240,12 +4289,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4263,12 +4312,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4320,26 +4369,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/docker/conflicts`. /// - Remark: Generated from `#/paths//user/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-authenticated-user)`. - public enum packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser { public static let id: Swift.String = "packages/list-docker-migration-conflicting-packages-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/docker/conflicts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) { + public init(headers: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Input.Headers = .init()) { self.headers = headers } } @@ -4348,12 +4397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/docker/conflicts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/docker/conflicts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -4363,12 +4412,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -4377,12 +4426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4434,13 +4483,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/packages`. /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)`. - public enum packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesListPackagesForAuthenticatedUser { public static let id: Swift.String = "packages/list-packages-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/GET/query/package_type`. - @frozen public enum package_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PackageTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -4451,9 +4500,9 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/GET/query/package_type`. - public var package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.package_typePayload + public var packageType: Operations.PackagesListPackagesForAuthenticatedUser.Input.Query.PackageTypePayload /// - Remark: Generated from `#/components/parameters/package-visibility`. - @frozen public enum package_hyphen_visibility: String, Codable, Hashable, Sendable { + @frozen public enum PackageVisibility: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" case _internal = "internal" @@ -4464,55 +4513,55 @@ public enum Operations { /// For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." /// /// - Remark: Generated from `#/paths/user/packages/GET/query/visibility`. - public var visibility: Components.Parameters.package_hyphen_visibility? + public var visibility: Components.Parameters.PackageVisibility? /// 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)." /// /// - Remark: Generated from `#/paths/user/packages/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/user/packages/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// - visibility: The selected visibility of the packages. This parameter is optional and only filters an existing result set. /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.package_typePayload, - visibility: Components.Parameters.package_hyphen_visibility? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + packageType: Operations.PackagesListPackagesForAuthenticatedUser.Input.Query.PackageTypePayload, + visibility: Components.Parameters.PackageVisibility? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { - self.package_type = package_type + self.packageType = packageType self.visibility = visibility self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.PackagesListPackagesForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/packages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesListPackagesForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.PackagesListPackagesForAuthenticatedUser.Input.Query, + headers: Operations.PackagesListPackagesForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -4523,12 +4572,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/packages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -4538,12 +4587,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesListPackagesForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesListPackagesForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -4552,12 +4601,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.PackagesListPackagesForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.PackagesListPackagesForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4575,12 +4624,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.package_es_list_error) + case badRequest(Components.Responses.PackageEsListError) + /// The value of `per_page` multiplied by `page` cannot be greater than 10000. + /// + /// - Remark: Generated from `#/paths//user/packages/get(packages/list-packages-for-authenticated-user)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.package_es_list_error { + public var badRequest: Components.Responses.PackageEsListError { get throws { switch self { case let .badRequest(response): @@ -4632,13 +4689,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/get(packages/get-package-for-authenticated-user)`. - public enum packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesGetPackageForAuthenticatedUser { public static let id: Swift.String = "packages/get-package-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -4649,45 +4706,45 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesGetPackageForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetPackageForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetPackageForAuthenticatedUser.Input.Path, + headers: Operations.PackagesGetPackageForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4698,12 +4755,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package) + case json(Components.Schemas.Package) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package { + public var json: Components.Schemas.Package { get throws { switch self { case let .json(body): @@ -4713,12 +4770,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetPackageForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -4727,12 +4784,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/get(packages/get-package-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetPackageForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetPackageForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4784,13 +4841,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)`. - public enum packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesDeletePackageForAuthenticatedUser { public static let id: Swift.String = "packages/delete-package-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -4801,45 +4858,45 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Path, + headers: Operations.PackagesDeletePackageForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4855,12 +4912,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesDeletePackageForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4878,12 +4943,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4901,12 +4966,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4924,12 +4989,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/delete(packages/delete-package-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4985,13 +5050,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)`. - public enum packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesRestorePackageForAuthenticatedUser { public static let id: Swift.String = "packages/restore-package-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -5002,25 +5067,25 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/restore/POST/query`. public struct Query: Sendable, Hashable { /// package token @@ -5035,19 +5100,19 @@ public enum Operations { self.token = token } } - public var query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5055,9 +5120,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Path, + query: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -5074,12 +5139,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesRestorePackageForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5097,12 +5170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5120,12 +5193,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5143,12 +5216,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5200,13 +5273,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)`. - public enum packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user { + public enum PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser { public static let id: Swift.String = "packages/get-all-package-versions-for-package-owned-by-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -5217,73 +5290,73 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName } } - public var path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case deleted = "deleted" } /// The state of the package, either active or deleted. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/query/state`. - public var state: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query.statePayload? + public var state: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Query.StatePayload? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - state: The state of the package, either active or deleted. public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - state: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query.statePayload? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + state: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Query.StatePayload? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage self.state = state } } - public var query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5291,9 +5364,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Path, + query: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -5305,12 +5378,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package_hyphen_version]) + case json([Components.Schemas.PackageVersion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package_hyphen_version] { + public var json: [Components.Schemas.PackageVersion] { get throws { switch self { case let .json(body): @@ -5320,12 +5393,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -5334,12 +5407,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -5357,12 +5430,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5380,12 +5453,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5403,12 +5476,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5460,13 +5533,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-authenticated-user)`. - public enum packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesGetPackageVersionForAuthenticatedUser { public static let id: Swift.String = "packages/get-package-version-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -5477,52 +5550,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. - /// - package_version_id: Unique identifier of the package version. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name - self.package_version_id = package_version_id + self.packageType = packageType + self.packageName = packageName + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesGetPackageVersionForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5533,12 +5606,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package_hyphen_version) + case json(Components.Schemas.PackageVersion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package_hyphen_version { + public var json: Components.Schemas.PackageVersion { get throws { switch self { case let .json(body): @@ -5548,12 +5621,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetPackageVersionForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageVersionForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -5562,12 +5635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetPackageVersionForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetPackageVersionForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -5621,13 +5694,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)`. - public enum packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesDeletePackageVersionForAuthenticatedUser { public static let id: Swift.String = "packages/delete-package-version-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -5638,52 +5711,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. - /// - package_version_id: Unique identifier of the package version. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name - self.package_version_id = package_version_id + self.packageType = packageType + self.packageName = packageName + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5699,12 +5772,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesDeletePackageVersionForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageVersionForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5722,12 +5803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5745,12 +5826,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5768,12 +5849,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5829,13 +5910,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)`. - public enum packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user { + public enum PackagesRestorePackageVersionForAuthenticatedUser { public static let id: Swift.String = "packages/restore-package-version-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -5846,52 +5927,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. - /// - package_version_id: Unique identifier of the package version. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name - self.package_version_id = package_version_id + self.packageType = packageType + self.packageName = packageName + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Path, + headers: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5907,12 +5988,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesRestorePackageVersionForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageVersionForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5930,12 +6019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5953,12 +6042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5976,12 +6065,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6033,7 +6122,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/docker/conflicts`. /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)`. - public enum packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user { + public enum PackagesListDockerMigrationConflictingPackagesForUser { public static let id: Swift.String = "packages/list-docker-migration-conflicting-packages-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/docker/conflicts/GET/path`. @@ -6041,36 +6130,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/docker/conflicts/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/docker/conflicts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Path, + headers: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6081,12 +6170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/docker/conflicts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/docker/conflicts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -6096,12 +6185,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output.Ok.Body) { self.body = body } } @@ -6110,12 +6199,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_docker_hyphen_migration_hyphen_conflicting_hyphen_packages_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.PackagesListDockerMigrationConflictingPackagesForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6133,12 +6222,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6156,12 +6245,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/docker/conflicts/get(packages/list-docker-migration-conflicting-packages-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6213,7 +6302,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/packages`. /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)`. - public enum packages_sol_list_hyphen_packages_hyphen_for_hyphen_user { + public enum PackagesListPackagesForUser { public static let id: Swift.String = "packages/list-packages-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/GET/path`. @@ -6221,20 +6310,20 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesListPackagesForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query/package_type`. - @frozen public enum package_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PackageTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -6245,9 +6334,9 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query/package_type`. - public var package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Query.package_typePayload + public var packageType: Operations.PackagesListPackagesForUser.Input.Query.PackageTypePayload /// - Remark: Generated from `#/components/parameters/package-visibility`. - @frozen public enum package_hyphen_visibility: String, Codable, Hashable, Sendable { + @frozen public enum PackageVisibility: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" case _internal = "internal" @@ -6258,47 +6347,47 @@ public enum Operations { /// For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." /// /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query/visibility`. - public var visibility: Components.Parameters.package_hyphen_visibility? + public var visibility: Components.Parameters.PackageVisibility? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/users/{username}/packages/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// - visibility: The selected visibility of the packages. This parameter is optional and only filters an existing result set. /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - package_type: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Query.package_typePayload, - visibility: Components.Parameters.package_hyphen_visibility? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + packageType: Operations.PackagesListPackagesForUser.Input.Query.PackageTypePayload, + visibility: Components.Parameters.PackageVisibility? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { - self.package_type = package_type + self.packageType = packageType self.visibility = visibility self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Query + public var query: Operations.PackagesListPackagesForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/packages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesListPackagesForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6306,9 +6395,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Path, - query: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Query, - headers: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesListPackagesForUser.Input.Path, + query: Operations.PackagesListPackagesForUser.Input.Query, + headers: Operations.PackagesListPackagesForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -6320,12 +6409,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/packages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package]) + case json([Components.Schemas.Package]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package] { + public var json: [Components.Schemas.Package] { get throws { switch self { case let .json(body): @@ -6335,12 +6424,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesListPackagesForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesListPackagesForUser.Output.Ok.Body) { self.body = body } } @@ -6349,12 +6438,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.PackagesListPackagesForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_list_hyphen_packages_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.PackagesListPackagesForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6372,12 +6461,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6395,12 +6484,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6418,12 +6507,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.package_es_list_error) + case badRequest(Components.Responses.PackageEsListError) + /// The value of `per_page` multiplied by `page` cannot be greater than 10000. + /// + /// - Remark: Generated from `#/paths//users/{username}/packages/get(packages/list-packages-for-user)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.package_es_list_error { + public var badRequest: Components.Responses.PackageEsListError { get throws { switch self { case let .badRequest(response): @@ -6475,13 +6572,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/get(packages/get-package-for-user)`. - public enum packages_sol_get_hyphen_package_hyphen_for_hyphen_user { + public enum PackagesGetPackageForUser { public static let id: Swift.String = "packages/get-package-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -6492,52 +6589,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesGetPackageForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetPackageForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetPackageForUser.Input.Path, + headers: Operations.PackagesGetPackageForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6548,12 +6645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package) + case json(Components.Schemas.Package) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package { + public var json: Components.Schemas.Package { get throws { switch self { case let .json(body): @@ -6563,12 +6660,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetPackageForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageForUser.Output.Ok.Body) { self.body = body } } @@ -6577,12 +6674,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/get(packages/get-package-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetPackageForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetPackageForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6636,13 +6733,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)`. - public enum packages_sol_delete_hyphen_package_hyphen_for_hyphen_user { + public enum PackagesDeletePackageForUser { public static let id: Swift.String = "packages/delete-package-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -6653,52 +6750,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesDeletePackageForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesDeletePackageForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesDeletePackageForUser.Input.Path, + headers: Operations.PackagesDeletePackageForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6714,12 +6811,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesDeletePackageForUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6737,12 +6842,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6760,12 +6865,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6783,12 +6888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/delete(packages/delete-package-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6846,13 +6951,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)`. - public enum packages_sol_restore_hyphen_package_hyphen_for_hyphen_user { + public enum PackagesRestorePackageForUser { public static let id: Swift.String = "packages/restore-package-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -6863,32 +6968,32 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesRestorePackageForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/query`. public struct Query: Sendable, Hashable { /// package token @@ -6903,19 +7008,19 @@ public enum Operations { self.token = token } } - public var query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Query + public var query: Operations.PackagesRestorePackageForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesRestorePackageForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6923,9 +7028,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Path, - query: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesRestorePackageForUser.Input.Path, + query: Operations.PackagesRestorePackageForUser.Input.Query = .init(), + headers: Operations.PackagesRestorePackageForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -6942,12 +7047,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesRestorePackageForUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6965,12 +7078,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6988,12 +7101,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7011,12 +7124,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/restore/post(packages/restore-package-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7068,13 +7181,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)`. - public enum packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user { + public enum PackagesGetAllPackageVersionsForPackageOwnedByUser { public static let id: Swift.String = "packages/get-all-package-versions-for-package-owned-by-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -7085,52 +7198,52 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username } } - public var path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Path + public var path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Path, + headers: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7141,12 +7254,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.package_hyphen_version]) + case json([Components.Schemas.PackageVersion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.package_hyphen_version] { + public var json: [Components.Schemas.PackageVersion] { get throws { switch self { case let .json(body): @@ -7156,12 +7269,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output.Ok.Body) { self.body = body } } @@ -7170,12 +7283,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_all_hyphen_package_hyphen_versions_hyphen_for_hyphen_package_hyphen_owned_hyphen_by_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetAllPackageVersionsForPackageOwnedByUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7193,12 +7306,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7216,12 +7329,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7239,12 +7352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/get(packages/get-all-package-versions-for-package-owned-by-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7296,13 +7409,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-user)`. - public enum packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user { + public enum PackagesGetPackageVersionForUser { public static let id: Swift.String = "packages/get-package-version-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -7313,59 +7426,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. - /// - package_version_id: Unique identifier of the package version. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. + /// - packageVersionId: Unique identifier of the package version. /// - username: The handle for the GitHub user account. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id, - username: Components.Parameters.username + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + packageVersionId: Components.Parameters.PackageVersionId, + username: Components.Parameters.Username ) { - self.package_type = package_type - self.package_name = package_name - self.package_version_id = package_version_id + self.packageType = packageType + self.packageName = packageName + self.packageVersionId = packageVersionId self.username = username } } - public var path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesGetPackageVersionForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesGetPackageVersionForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesGetPackageVersionForUser.Input.Path, + headers: Operations.PackagesGetPackageVersionForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7376,12 +7489,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.package_hyphen_version) + case json(Components.Schemas.PackageVersion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.package_hyphen_version { + public var json: Components.Schemas.PackageVersion { get throws { switch self { case let .json(body): @@ -7391,12 +7504,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.PackagesGetPackageVersionForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.PackagesGetPackageVersionForUser.Output.Ok.Body) { self.body = body } } @@ -7405,12 +7518,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/get(packages/get-package-version-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.PackagesGetPackageVersionForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.packages_sol_get_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.PackagesGetPackageVersionForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7464,13 +7577,13 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)`. - public enum packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user { + public enum PackagesDeletePackageVersionForUser { public static let id: Swift.String = "packages/delete-package-version-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -7481,59 +7594,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. - /// - package_version_id: Unique identifier of the package version. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username - self.package_version_id = package_version_id + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesDeletePackageVersionForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesDeletePackageVersionForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesDeletePackageVersionForUser.Input.Path, + headers: Operations.PackagesDeletePackageVersionForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7549,12 +7662,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesDeletePackageVersionForUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_delete_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesDeletePackageVersionForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7572,12 +7693,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7595,12 +7716,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7618,12 +7739,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/delete(packages/delete-package-version-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7681,13 +7802,13 @@ public enum Operations { /// /// - Remark: HTTP `POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`. /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)`. - public enum packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user { + public enum PackagesRestorePackageVersionForUser { public static let id: Swift.String = "packages/restore-package-version-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path`. public struct Path: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/package-type`. - @frozen public enum package_hyphen_type: String, Codable, Hashable, Sendable { + @frozen public enum PackageType: String, Codable, Hashable, Sendable, CaseIterable { case npm = "npm" case maven = "maven" case rubygems = "rubygems" @@ -7698,59 +7819,59 @@ public enum Operations { /// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_type`. - public var package_type: Components.Parameters.package_hyphen_type + public var packageType: Components.Parameters.PackageType /// The name of the package. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_name`. - public var package_name: Components.Parameters.package_hyphen_name + public var packageName: Components.Parameters.PackageName /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Unique identifier of the package version. /// /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/path/package_version_id`. - public var package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + public var packageVersionId: Components.Parameters.PackageVersionId /// Creates a new `Path`. /// /// - Parameters: - /// - package_type: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. - /// - package_name: The name of the package. + /// - packageType: The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. + /// - packageName: The name of the package. /// - username: The handle for the GitHub user account. - /// - package_version_id: Unique identifier of the package version. + /// - packageVersionId: Unique identifier of the package version. public init( - package_type: Components.Parameters.package_hyphen_type, - package_name: Components.Parameters.package_hyphen_name, - username: Components.Parameters.username, - package_version_id: Components.Parameters.package_hyphen_version_hyphen_id + packageType: Components.Parameters.PackageType, + packageName: Components.Parameters.PackageName, + username: Components.Parameters.Username, + packageVersionId: Components.Parameters.PackageVersionId ) { - self.package_type = package_type - self.package_name = package_name + self.packageType = packageType + self.packageName = packageName self.username = username - self.package_version_id = package_version_id + self.packageVersionId = packageVersionId } } - public var path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path + public var path: Operations.PackagesRestorePackageVersionForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.PackagesRestorePackageVersionForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Path, - headers: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.PackagesRestorePackageVersionForUser.Input.Path, + headers: Operations.PackagesRestorePackageVersionForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7766,12 +7887,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.PackagesRestorePackageVersionForUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.packages_sol_restore_hyphen_package_hyphen_version_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.PackagesRestorePackageVersionForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7789,12 +7918,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7812,12 +7941,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7835,12 +7964,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore/post(packages/restore-package-version-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): From 472f289134d387ae93bd426b800c9bdc2dd1bc2f Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:04:22 -0700 Subject: [PATCH 25/46] Commit via running ake Sources/projects --- Sources/projects/Client.swift | 580 +++---- Sources/projects/Types.swift | 3067 ++++++++++++++++++--------------- 2 files changed, 1932 insertions(+), 1715 deletions(-) diff --git a/Sources/projects/Client.swift b/Sources/projects/Client.swift index 4ddea48be7..2d3ace7c90 100644 --- a/Sources/projects/Client.swift +++ b/Sources/projects/Client.swift @@ -47,10 +47,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_org(_ input: Operations.projects_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_org.Output { + public func projectsListForOrg(_ input: Operations.ProjectsListForOrg.Input) async throws -> Operations.ProjectsListForOrg.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_for_hyphen_org.id, + forOperation: Operations.ProjectsListForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/projects", @@ -75,7 +75,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -93,13 +93,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ProjectsListForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -109,7 +109,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.project].self, + [Components.Schemas.Project].self, from: responseBody, transforming: { value in .json(value) @@ -124,7 +124,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -134,7 +134,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -165,10 +165,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_org(_ input: Operations.projects_sol_create_hyphen_for_hyphen_org.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_org.Output { + public func projectsCreateForOrg(_ input: Operations.ProjectsCreateForOrg.Input) async throws -> Operations.ProjectsCreateForOrg.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_create_hyphen_for_hyphen_org.id, + forOperation: Operations.ProjectsCreateForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/projects", @@ -200,7 +200,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.ProjectsCreateForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -210,7 +210,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project.self, + Components.Schemas.Project.self, from: responseBody, transforming: { value in .json(value) @@ -222,7 +222,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -232,7 +232,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -244,7 +244,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -254,7 +254,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -266,7 +266,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -276,7 +276,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -288,7 +288,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -298,7 +298,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -310,7 +310,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -320,7 +320,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -351,15 +351,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)`. @available(*, deprecated) - public func projects_sol_get_hyphen_card(_ input: Operations.projects_sol_get_hyphen_card.Input) async throws -> Operations.projects_sol_get_hyphen_card.Output { + public func projectsGetCard(_ input: Operations.ProjectsGetCard.Input) async throws -> Operations.ProjectsGetCard.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_get_hyphen_card.id, + forOperation: Operations.ProjectsGetCard.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/cards/{}", parameters: [ - input.path.card_id + input.path.cardId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -377,7 +377,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_get_hyphen_card.Output.Ok.Body + let body: Operations.ProjectsGetCard.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -387,7 +387,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_card.self, + Components.Schemas.ProjectCard.self, from: responseBody, transforming: { value in .json(value) @@ -401,7 +401,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -411,7 +411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -423,7 +423,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -433,7 +433,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -445,7 +445,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -455,7 +455,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -486,15 +486,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)`. @available(*, deprecated) - public func projects_sol_update_hyphen_card(_ input: Operations.projects_sol_update_hyphen_card.Input) async throws -> Operations.projects_sol_update_hyphen_card.Output { + public func projectsUpdateCard(_ input: Operations.ProjectsUpdateCard.Input) async throws -> Operations.ProjectsUpdateCard.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_update_hyphen_card.id, + forOperation: Operations.ProjectsUpdateCard.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/cards/{}", parameters: [ - input.path.card_id + input.path.cardId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -523,7 +523,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_update_hyphen_card.Output.Ok.Body + let body: Operations.ProjectsUpdateCard.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -533,7 +533,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_card.self, + Components.Schemas.ProjectCard.self, from: responseBody, transforming: { value in .json(value) @@ -547,7 +547,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -557,7 +557,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -569,7 +569,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -579,7 +579,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -591,7 +591,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -601,7 +601,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -613,7 +613,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -623,7 +623,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -654,15 +654,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)`. @available(*, deprecated) - public func projects_sol_delete_hyphen_card(_ input: Operations.projects_sol_delete_hyphen_card.Input) async throws -> Operations.projects_sol_delete_hyphen_card.Output { + public func projectsDeleteCard(_ input: Operations.ProjectsDeleteCard.Input) async throws -> Operations.ProjectsDeleteCard.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_delete_hyphen_card.id, + forOperation: Operations.ProjectsDeleteCard.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/cards/{}", parameters: [ - input.path.card_id + input.path.cardId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -684,7 +684,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body + let body: Operations.ProjectsDeleteCard.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -694,7 +694,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body.jsonPayload.self, + Operations.ProjectsDeleteCard.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -706,7 +706,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -716,7 +716,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -728,7 +728,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -738,7 +738,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -769,15 +769,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /projects/columns/cards/{card_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)`. @available(*, deprecated) - public func projects_sol_move_hyphen_card(_ input: Operations.projects_sol_move_hyphen_card.Input) async throws -> Operations.projects_sol_move_hyphen_card.Output { + public func projectsMoveCard(_ input: Operations.ProjectsMoveCard.Input) async throws -> Operations.ProjectsMoveCard.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_move_hyphen_card.id, + forOperation: Operations.ProjectsMoveCard.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/cards/{}/moves", parameters: [ - input.path.card_id + input.path.cardId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -804,7 +804,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_move_hyphen_card.Output.Created.Body + let body: Operations.ProjectsMoveCard.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -814,7 +814,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_move_hyphen_card.Output.Created.Body.jsonPayload.self, + Operations.ProjectsMoveCard.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -828,7 +828,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body + let body: Operations.ProjectsMoveCard.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -838,7 +838,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload.self, + Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -850,7 +850,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -860,7 +860,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -872,7 +872,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body + let body: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -882,7 +882,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.self, + Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -894,7 +894,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -904,7 +904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -935,15 +935,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)`. @available(*, deprecated) - public func projects_sol_get_hyphen_column(_ input: Operations.projects_sol_get_hyphen_column.Input) async throws -> Operations.projects_sol_get_hyphen_column.Output { + public func projectsGetColumn(_ input: Operations.ProjectsGetColumn.Input) async throws -> Operations.ProjectsGetColumn.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_get_hyphen_column.id, + forOperation: Operations.ProjectsGetColumn.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -961,7 +961,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_get_hyphen_column.Output.Ok.Body + let body: Operations.ProjectsGetColumn.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -971,7 +971,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_column.self, + Components.Schemas.ProjectColumn.self, from: responseBody, transforming: { value in .json(value) @@ -985,7 +985,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -995,7 +995,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1007,7 +1007,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1017,7 +1017,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1029,7 +1029,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1039,7 +1039,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1070,15 +1070,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)`. @available(*, deprecated) - public func projects_sol_update_hyphen_column(_ input: Operations.projects_sol_update_hyphen_column.Input) async throws -> Operations.projects_sol_update_hyphen_column.Output { + public func projectsUpdateColumn(_ input: Operations.ProjectsUpdateColumn.Input) async throws -> Operations.ProjectsUpdateColumn.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_update_hyphen_column.id, + forOperation: Operations.ProjectsUpdateColumn.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1105,7 +1105,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_update_hyphen_column.Output.Ok.Body + let body: Operations.ProjectsUpdateColumn.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1115,7 +1115,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_column.self, + Components.Schemas.ProjectColumn.self, from: responseBody, transforming: { value in .json(value) @@ -1129,7 +1129,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1139,7 +1139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1151,7 +1151,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1161,7 +1161,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1192,15 +1192,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)`. @available(*, deprecated) - public func projects_sol_delete_hyphen_column(_ input: Operations.projects_sol_delete_hyphen_column.Input) async throws -> Operations.projects_sol_delete_hyphen_column.Output { + public func projectsDeleteColumn(_ input: Operations.ProjectsDeleteColumn.Input) async throws -> Operations.ProjectsDeleteColumn.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_delete_hyphen_column.id, + forOperation: Operations.ProjectsDeleteColumn.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1222,7 +1222,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1232,7 +1232,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1244,7 +1244,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1254,7 +1254,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1285,15 +1285,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)`. @available(*, deprecated) - public func projects_sol_list_hyphen_cards(_ input: Operations.projects_sol_list_hyphen_cards.Input) async throws -> Operations.projects_sol_list_hyphen_cards.Output { + public func projectsListCards(_ input: Operations.ProjectsListCards.Input) async throws -> Operations.ProjectsListCards.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_cards.id, + forOperation: Operations.ProjectsListCards.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}/cards", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1306,14 +1306,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "archived_state", - value: input.query.archived_state + value: input.query.archivedState ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1331,13 +1331,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_cards.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListCards.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_cards.Output.Ok.Body + let body: Operations.ProjectsListCards.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1347,7 +1347,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.project_hyphen_card].self, + [Components.Schemas.ProjectCard].self, from: responseBody, transforming: { value in .json(value) @@ -1364,7 +1364,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1374,7 +1374,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1386,7 +1386,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1396,7 +1396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1427,15 +1427,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)`. @available(*, deprecated) - public func projects_sol_create_hyphen_card(_ input: Operations.projects_sol_create_hyphen_card.Input) async throws -> Operations.projects_sol_create_hyphen_card.Output { + public func projectsCreateCard(_ input: Operations.ProjectsCreateCard.Input) async throws -> Operations.ProjectsCreateCard.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_create_hyphen_card.id, + forOperation: Operations.ProjectsCreateCard.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}/cards", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1462,7 +1462,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_card.Output.Created.Body + let body: Operations.ProjectsCreateCard.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1472,7 +1472,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_card.self, + Components.Schemas.ProjectCard.self, from: responseBody, transforming: { value in .json(value) @@ -1486,7 +1486,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1496,7 +1496,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1508,7 +1508,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1518,7 +1518,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1530,7 +1530,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body + let body: Operations.ProjectsCreateCard.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1540,7 +1540,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body.jsonPayload.self, + Operations.ProjectsCreateCard.Output.UnprocessableContent.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1552,7 +1552,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body + let body: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1562,7 +1562,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.self, + Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1593,15 +1593,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /projects/columns/{column_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)`. @available(*, deprecated) - public func projects_sol_move_hyphen_column(_ input: Operations.projects_sol_move_hyphen_column.Input) async throws -> Operations.projects_sol_move_hyphen_column.Output { + public func projectsMoveColumn(_ input: Operations.ProjectsMoveColumn.Input) async throws -> Operations.ProjectsMoveColumn.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_move_hyphen_column.id, + forOperation: Operations.ProjectsMoveColumn.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/columns/{}/moves", parameters: [ - input.path.column_id + input.path.columnId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1628,7 +1628,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_move_hyphen_column.Output.Created.Body + let body: Operations.ProjectsMoveColumn.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1638,7 +1638,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_move_hyphen_column.Output.Created.Body.jsonPayload.self, + Operations.ProjectsMoveColumn.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1652,7 +1652,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1662,7 +1662,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1674,7 +1674,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1684,7 +1684,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -1696,7 +1696,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1706,7 +1706,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1737,15 +1737,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)`. @available(*, deprecated) - public func projects_sol_get(_ input: Operations.projects_sol_get.Input) async throws -> Operations.projects_sol_get.Output { + public func projectsGet(_ input: Operations.ProjectsGet.Input) async throws -> Operations.ProjectsGet.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_get.id, + forOperation: Operations.ProjectsGet.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1763,7 +1763,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_get.Output.Ok.Body + let body: Operations.ProjectsGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1773,7 +1773,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project.self, + Components.Schemas.Project.self, from: responseBody, transforming: { value in .json(value) @@ -1787,7 +1787,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1797,7 +1797,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1809,7 +1809,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1819,7 +1819,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1850,15 +1850,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)`. @available(*, deprecated) - public func projects_sol_update(_ input: Operations.projects_sol_update.Input) async throws -> Operations.projects_sol_update.Output { + public func projectsUpdate(_ input: Operations.ProjectsUpdate.Input) async throws -> Operations.ProjectsUpdate.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_update.id, + forOperation: Operations.ProjectsUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1887,7 +1887,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_update.Output.Ok.Body + let body: Operations.ProjectsUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1897,7 +1897,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project.self, + Components.Schemas.Project.self, from: responseBody, transforming: { value in .json(value) @@ -1913,7 +1913,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_update.Output.Forbidden.Body + let body: Operations.ProjectsUpdate.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1923,7 +1923,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_update.Output.Forbidden.Body.jsonPayload.self, + Operations.ProjectsUpdate.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1935,7 +1935,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1945,7 +1945,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1957,7 +1957,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1967,7 +1967,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1979,7 +1979,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1989,7 +1989,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2020,15 +2020,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)`. @available(*, deprecated) - public func projects_sol_delete(_ input: Operations.projects_sol_delete.Input) async throws -> Operations.projects_sol_delete.Output { + public func projectsDelete(_ input: Operations.ProjectsDelete.Input) async throws -> Operations.ProjectsDelete.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_delete.id, + forOperation: Operations.ProjectsDelete.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2050,7 +2050,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_delete.Output.Forbidden.Body + let body: Operations.ProjectsDelete.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2060,7 +2060,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.projects_sol_delete.Output.Forbidden.Body.jsonPayload.self, + Operations.ProjectsDelete.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2072,7 +2072,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2082,7 +2082,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2094,7 +2094,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2104,7 +2104,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2116,7 +2116,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2126,7 +2126,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2157,15 +2157,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/collaborators`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)`. @available(*, deprecated) - public func projects_sol_list_hyphen_collaborators(_ input: Operations.projects_sol_list_hyphen_collaborators.Input) async throws -> Operations.projects_sol_list_hyphen_collaborators.Output { + public func projectsListCollaborators(_ input: Operations.ProjectsListCollaborators.Input) async throws -> Operations.ProjectsListCollaborators.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_collaborators.id, + forOperation: Operations.ProjectsListCollaborators.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/collaborators", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2185,7 +2185,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2203,13 +2203,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListCollaborators.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Body + let body: Operations.ProjectsListCollaborators.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2219,7 +2219,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -2234,7 +2234,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2244,7 +2244,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2256,7 +2256,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2266,7 +2266,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2280,7 +2280,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2290,7 +2290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2302,7 +2302,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2312,7 +2312,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2343,15 +2343,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)`. @available(*, deprecated) - public func projects_sol_add_hyphen_collaborator(_ input: Operations.projects_sol_add_hyphen_collaborator.Input) async throws -> Operations.projects_sol_add_hyphen_collaborator.Output { + public func projectsAddCollaborator(_ input: Operations.ProjectsAddCollaborator.Input) async throws -> Operations.ProjectsAddCollaborator.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_add_hyphen_collaborator.id, + forOperation: Operations.ProjectsAddCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/collaborators/{}", parameters: [ - input.path.project_id, + input.path.projectId, input.path.username ] ) @@ -2383,7 +2383,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2393,7 +2393,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2405,7 +2405,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2415,7 +2415,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2429,7 +2429,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2439,7 +2439,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2451,7 +2451,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2461,7 +2461,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2492,15 +2492,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)`. @available(*, deprecated) - public func projects_sol_remove_hyphen_collaborator(_ input: Operations.projects_sol_remove_hyphen_collaborator.Input) async throws -> Operations.projects_sol_remove_hyphen_collaborator.Output { + public func projectsRemoveCollaborator(_ input: Operations.ProjectsRemoveCollaborator.Input) async throws -> Operations.ProjectsRemoveCollaborator.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_remove_hyphen_collaborator.id, + forOperation: Operations.ProjectsRemoveCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/collaborators/{}", parameters: [ - input.path.project_id, + input.path.projectId, input.path.username ] ) @@ -2523,7 +2523,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2533,7 +2533,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2545,7 +2545,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2555,7 +2555,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2567,7 +2567,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2577,7 +2577,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2589,7 +2589,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2599,7 +2599,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2630,15 +2630,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)`. @available(*, deprecated) - public func projects_sol_get_hyphen_permission_hyphen_for_hyphen_user(_ input: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input) async throws -> Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output { + public func projectsGetPermissionForUser(_ input: Operations.ProjectsGetPermissionForUser.Input) async throws -> Operations.ProjectsGetPermissionForUser.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.id, + forOperation: Operations.ProjectsGetPermissionForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/collaborators/{}/permission", parameters: [ - input.path.project_id, + input.path.projectId, input.path.username ] ) @@ -2657,7 +2657,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ProjectsGetPermissionForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2667,7 +2667,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_collaborator_hyphen_permission.self, + Components.Schemas.ProjectCollaboratorPermission.self, from: responseBody, transforming: { value in .json(value) @@ -2679,7 +2679,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2689,7 +2689,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2701,7 +2701,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2711,7 +2711,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2725,7 +2725,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2735,7 +2735,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2747,7 +2747,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2757,7 +2757,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2788,15 +2788,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)`. @available(*, deprecated) - public func projects_sol_list_hyphen_columns(_ input: Operations.projects_sol_list_hyphen_columns.Input) async throws -> Operations.projects_sol_list_hyphen_columns.Output { + public func projectsListColumns(_ input: Operations.ProjectsListColumns.Input) async throws -> Operations.ProjectsListColumns.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_columns.id, + forOperation: Operations.ProjectsListColumns.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/columns", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2809,7 +2809,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2827,13 +2827,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_columns.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListColumns.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_columns.Output.Ok.Body + let body: Operations.ProjectsListColumns.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2843,7 +2843,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.project_hyphen_column].self, + [Components.Schemas.ProjectColumn].self, from: responseBody, transforming: { value in .json(value) @@ -2860,7 +2860,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2870,7 +2870,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2882,7 +2882,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2892,7 +2892,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2923,15 +2923,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)`. @available(*, deprecated) - public func projects_sol_create_hyphen_column(_ input: Operations.projects_sol_create_hyphen_column.Input) async throws -> Operations.projects_sol_create_hyphen_column.Output { + public func projectsCreateColumn(_ input: Operations.ProjectsCreateColumn.Input) async throws -> Operations.ProjectsCreateColumn.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_create_hyphen_column.id, + forOperation: Operations.ProjectsCreateColumn.id, serializer: { input in let path = try converter.renderedPath( template: "/projects/{}/columns", parameters: [ - input.path.project_id + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2958,7 +2958,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_column.Output.Created.Body + let body: Operations.ProjectsCreateColumn.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2968,7 +2968,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project_hyphen_column.self, + Components.Schemas.ProjectColumn.self, from: responseBody, transforming: { value in .json(value) @@ -2982,7 +2982,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2992,7 +2992,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3004,7 +3004,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3014,7 +3014,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3026,7 +3026,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3036,7 +3036,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3067,10 +3067,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_repo(_ input: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_repo.Output { + public func projectsListForRepo(_ input: Operations.ProjectsListForRepo.Input) async throws -> Operations.ProjectsListForRepo.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_for_hyphen_repo.id, + forOperation: Operations.ProjectsListForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/projects", @@ -3096,7 +3096,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3114,13 +3114,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ProjectsListForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3130,7 +3130,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.project].self, + [Components.Schemas.Project].self, from: responseBody, transforming: { value in .json(value) @@ -3145,7 +3145,7 @@ public struct Client: APIProtocol { )) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3155,7 +3155,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3167,7 +3167,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3177,7 +3177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3189,7 +3189,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3199,7 +3199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3211,7 +3211,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3221,7 +3221,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3233,7 +3233,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3243,7 +3243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3274,10 +3274,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_repo(_ input: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_repo.Output { + public func projectsCreateForRepo(_ input: Operations.ProjectsCreateForRepo.Input) async throws -> Operations.ProjectsCreateForRepo.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_create_hyphen_for_hyphen_repo.id, + forOperation: Operations.ProjectsCreateForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/projects", @@ -3310,7 +3310,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Output.Created.Body + let body: Operations.ProjectsCreateForRepo.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3320,7 +3320,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project.self, + Components.Schemas.Project.self, from: responseBody, transforming: { value in .json(value) @@ -3332,7 +3332,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3342,7 +3342,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3354,7 +3354,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3364,7 +3364,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3376,7 +3376,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3386,7 +3386,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3398,7 +3398,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3408,7 +3408,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3420,7 +3420,7 @@ public struct Client: APIProtocol { return .gone(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3430,7 +3430,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3461,10 +3461,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /user/projects`. /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func projectsCreateForAuthenticatedUser(_ input: Operations.ProjectsCreateForAuthenticatedUser.Input) async throws -> Operations.ProjectsCreateForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ProjectsCreateForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/projects", @@ -3494,7 +3494,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.ProjectsCreateForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3504,7 +3504,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.project.self, + Components.Schemas.Project.self, from: responseBody, transforming: { value in .json(value) @@ -3518,7 +3518,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3528,7 +3528,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3540,7 +3540,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3550,7 +3550,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3562,7 +3562,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3572,7 +3572,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3603,10 +3603,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /users/{username}/projects`. /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_user(_ input: Operations.projects_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_user.Output { + public func projectsListForUser(_ input: Operations.ProjectsListForUser.Input) async throws -> Operations.ProjectsListForUser.Output { try await client.send( input: input, - forOperation: Operations.projects_sol_list_hyphen_for_hyphen_user.id, + forOperation: Operations.ProjectsListForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/projects", @@ -3631,7 +3631,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3649,13 +3649,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ProjectsListForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ProjectsListForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3665,7 +3665,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.project].self, + [Components.Schemas.Project].self, from: responseBody, transforming: { value in .json(value) @@ -3680,7 +3680,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3690,7 +3690,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/projects/Types.swift b/Sources/projects/Types.swift index fd72276c2f..161fe318c3 100644 --- a/Sources/projects/Types.swift +++ b/Sources/projects/Types.swift @@ -20,7 +20,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)`. @available(*, deprecated) - func projects_sol_list_hyphen_for_hyphen_org(_ input: Operations.projects_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_org.Output + func projectsListForOrg(_ input: Operations.ProjectsListForOrg.Input) async throws -> Operations.ProjectsListForOrg.Output /// Create an organization project /// /// > [!WARNING] @@ -30,7 +30,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)`. @available(*, deprecated) - func projects_sol_create_hyphen_for_hyphen_org(_ input: Operations.projects_sol_create_hyphen_for_hyphen_org.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_org.Output + func projectsCreateForOrg(_ input: Operations.ProjectsCreateForOrg.Input) async throws -> Operations.ProjectsCreateForOrg.Output /// Get a project card /// /// > [!WARNING] @@ -40,7 +40,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)`. @available(*, deprecated) - func projects_sol_get_hyphen_card(_ input: Operations.projects_sol_get_hyphen_card.Input) async throws -> Operations.projects_sol_get_hyphen_card.Output + func projectsGetCard(_ input: Operations.ProjectsGetCard.Input) async throws -> Operations.ProjectsGetCard.Output /// Update an existing project card /// /// > [!WARNING] @@ -50,7 +50,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)`. @available(*, deprecated) - func projects_sol_update_hyphen_card(_ input: Operations.projects_sol_update_hyphen_card.Input) async throws -> Operations.projects_sol_update_hyphen_card.Output + func projectsUpdateCard(_ input: Operations.ProjectsUpdateCard.Input) async throws -> Operations.ProjectsUpdateCard.Output /// Delete a project card /// /// > [!WARNING] @@ -60,7 +60,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)`. @available(*, deprecated) - func projects_sol_delete_hyphen_card(_ input: Operations.projects_sol_delete_hyphen_card.Input) async throws -> Operations.projects_sol_delete_hyphen_card.Output + func projectsDeleteCard(_ input: Operations.ProjectsDeleteCard.Input) async throws -> Operations.ProjectsDeleteCard.Output /// Move a project card /// /// > [!WARNING] @@ -70,7 +70,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /projects/columns/cards/{card_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)`. @available(*, deprecated) - func projects_sol_move_hyphen_card(_ input: Operations.projects_sol_move_hyphen_card.Input) async throws -> Operations.projects_sol_move_hyphen_card.Output + func projectsMoveCard(_ input: Operations.ProjectsMoveCard.Input) async throws -> Operations.ProjectsMoveCard.Output /// Get a project column /// /// > [!WARNING] @@ -80,7 +80,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)`. @available(*, deprecated) - func projects_sol_get_hyphen_column(_ input: Operations.projects_sol_get_hyphen_column.Input) async throws -> Operations.projects_sol_get_hyphen_column.Output + func projectsGetColumn(_ input: Operations.ProjectsGetColumn.Input) async throws -> Operations.ProjectsGetColumn.Output /// Update an existing project column /// /// > [!WARNING] @@ -90,7 +90,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)`. @available(*, deprecated) - func projects_sol_update_hyphen_column(_ input: Operations.projects_sol_update_hyphen_column.Input) async throws -> Operations.projects_sol_update_hyphen_column.Output + func projectsUpdateColumn(_ input: Operations.ProjectsUpdateColumn.Input) async throws -> Operations.ProjectsUpdateColumn.Output /// Delete a project column /// /// > [!WARNING] @@ -100,7 +100,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)`. @available(*, deprecated) - func projects_sol_delete_hyphen_column(_ input: Operations.projects_sol_delete_hyphen_column.Input) async throws -> Operations.projects_sol_delete_hyphen_column.Output + func projectsDeleteColumn(_ input: Operations.ProjectsDeleteColumn.Input) async throws -> Operations.ProjectsDeleteColumn.Output /// List project cards /// /// > [!WARNING] @@ -110,7 +110,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)`. @available(*, deprecated) - func projects_sol_list_hyphen_cards(_ input: Operations.projects_sol_list_hyphen_cards.Input) async throws -> Operations.projects_sol_list_hyphen_cards.Output + func projectsListCards(_ input: Operations.ProjectsListCards.Input) async throws -> Operations.ProjectsListCards.Output /// Create a project card /// /// > [!WARNING] @@ -120,7 +120,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)`. @available(*, deprecated) - func projects_sol_create_hyphen_card(_ input: Operations.projects_sol_create_hyphen_card.Input) async throws -> Operations.projects_sol_create_hyphen_card.Output + func projectsCreateCard(_ input: Operations.ProjectsCreateCard.Input) async throws -> Operations.ProjectsCreateCard.Output /// Move a project column /// /// > [!WARNING] @@ -130,7 +130,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /projects/columns/{column_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)`. @available(*, deprecated) - func projects_sol_move_hyphen_column(_ input: Operations.projects_sol_move_hyphen_column.Input) async throws -> Operations.projects_sol_move_hyphen_column.Output + func projectsMoveColumn(_ input: Operations.ProjectsMoveColumn.Input) async throws -> Operations.ProjectsMoveColumn.Output /// Get a project /// /// > [!WARNING] @@ -140,7 +140,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)`. @available(*, deprecated) - func projects_sol_get(_ input: Operations.projects_sol_get.Input) async throws -> Operations.projects_sol_get.Output + func projectsGet(_ input: Operations.ProjectsGet.Input) async throws -> Operations.ProjectsGet.Output /// Update a project /// /// > [!WARNING] @@ -150,7 +150,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)`. @available(*, deprecated) - func projects_sol_update(_ input: Operations.projects_sol_update.Input) async throws -> Operations.projects_sol_update.Output + func projectsUpdate(_ input: Operations.ProjectsUpdate.Input) async throws -> Operations.ProjectsUpdate.Output /// Delete a project /// /// > [!WARNING] @@ -160,7 +160,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)`. @available(*, deprecated) - func projects_sol_delete(_ input: Operations.projects_sol_delete.Input) async throws -> Operations.projects_sol_delete.Output + func projectsDelete(_ input: Operations.ProjectsDelete.Input) async throws -> Operations.ProjectsDelete.Output /// List project collaborators /// /// > [!WARNING] @@ -170,7 +170,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/{project_id}/collaborators`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)`. @available(*, deprecated) - func projects_sol_list_hyphen_collaborators(_ input: Operations.projects_sol_list_hyphen_collaborators.Input) async throws -> Operations.projects_sol_list_hyphen_collaborators.Output + func projectsListCollaborators(_ input: Operations.ProjectsListCollaborators.Input) async throws -> Operations.ProjectsListCollaborators.Output /// Add project collaborator /// /// > [!WARNING] @@ -180,7 +180,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)`. @available(*, deprecated) - func projects_sol_add_hyphen_collaborator(_ input: Operations.projects_sol_add_hyphen_collaborator.Input) async throws -> Operations.projects_sol_add_hyphen_collaborator.Output + func projectsAddCollaborator(_ input: Operations.ProjectsAddCollaborator.Input) async throws -> Operations.ProjectsAddCollaborator.Output /// Remove user as a collaborator /// /// > [!WARNING] @@ -190,7 +190,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)`. @available(*, deprecated) - func projects_sol_remove_hyphen_collaborator(_ input: Operations.projects_sol_remove_hyphen_collaborator.Input) async throws -> Operations.projects_sol_remove_hyphen_collaborator.Output + func projectsRemoveCollaborator(_ input: Operations.ProjectsRemoveCollaborator.Input) async throws -> Operations.ProjectsRemoveCollaborator.Output /// Get project permission for a user /// /// > [!WARNING] @@ -200,7 +200,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/{project_id}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)`. @available(*, deprecated) - func projects_sol_get_hyphen_permission_hyphen_for_hyphen_user(_ input: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input) async throws -> Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output + func projectsGetPermissionForUser(_ input: Operations.ProjectsGetPermissionForUser.Input) async throws -> Operations.ProjectsGetPermissionForUser.Output /// List project columns /// /// > [!WARNING] @@ -210,7 +210,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)`. @available(*, deprecated) - func projects_sol_list_hyphen_columns(_ input: Operations.projects_sol_list_hyphen_columns.Input) async throws -> Operations.projects_sol_list_hyphen_columns.Output + func projectsListColumns(_ input: Operations.ProjectsListColumns.Input) async throws -> Operations.ProjectsListColumns.Output /// Create a project column /// /// > [!WARNING] @@ -220,7 +220,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)`. @available(*, deprecated) - func projects_sol_create_hyphen_column(_ input: Operations.projects_sol_create_hyphen_column.Input) async throws -> Operations.projects_sol_create_hyphen_column.Output + func projectsCreateColumn(_ input: Operations.ProjectsCreateColumn.Input) async throws -> Operations.ProjectsCreateColumn.Output /// List repository projects /// /// > [!WARNING] @@ -230,7 +230,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)`. @available(*, deprecated) - func projects_sol_list_hyphen_for_hyphen_repo(_ input: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_repo.Output + func projectsListForRepo(_ input: Operations.ProjectsListForRepo.Input) async throws -> Operations.ProjectsListForRepo.Output /// Create a repository project /// /// > [!WARNING] @@ -240,7 +240,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)`. @available(*, deprecated) - func projects_sol_create_hyphen_for_hyphen_repo(_ input: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_repo.Output + func projectsCreateForRepo(_ input: Operations.ProjectsCreateForRepo.Input) async throws -> Operations.ProjectsCreateForRepo.Output /// Create a user project /// /// > [!WARNING] @@ -250,7 +250,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /user/projects`. /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)`. @available(*, deprecated) - func projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output + func projectsCreateForAuthenticatedUser(_ input: Operations.ProjectsCreateForAuthenticatedUser.Input) async throws -> Operations.ProjectsCreateForAuthenticatedUser.Output /// List user projects /// /// > [!WARNING] @@ -260,7 +260,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /users/{username}/projects`. /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)`. @available(*, deprecated) - func projects_sol_list_hyphen_for_hyphen_user(_ input: Operations.projects_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_user.Output + func projectsListForUser(_ input: Operations.ProjectsListForUser.Input) async throws -> Operations.ProjectsListForUser.Output } /// Convenience overloads for operation inputs. @@ -274,12 +274,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_org( - path: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_org.Output { - try await projects_sol_list_hyphen_for_hyphen_org(Operations.projects_sol_list_hyphen_for_hyphen_org.Input( + public func projectsListForOrg( + path: Operations.ProjectsListForOrg.Input.Path, + query: Operations.ProjectsListForOrg.Input.Query = .init(), + headers: Operations.ProjectsListForOrg.Input.Headers = .init() + ) async throws -> Operations.ProjectsListForOrg.Output { + try await projectsListForOrg(Operations.ProjectsListForOrg.Input( path: path, query: query, headers: headers @@ -294,12 +294,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_org( - path: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Path, - headers: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_org.Output { - try await projects_sol_create_hyphen_for_hyphen_org(Operations.projects_sol_create_hyphen_for_hyphen_org.Input( + public func projectsCreateForOrg( + path: Operations.ProjectsCreateForOrg.Input.Path, + headers: Operations.ProjectsCreateForOrg.Input.Headers = .init(), + body: Operations.ProjectsCreateForOrg.Input.Body + ) async throws -> Operations.ProjectsCreateForOrg.Output { + try await projectsCreateForOrg(Operations.ProjectsCreateForOrg.Input( path: path, headers: headers, body: body @@ -314,11 +314,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)`. @available(*, deprecated) - public func projects_sol_get_hyphen_card( - path: Operations.projects_sol_get_hyphen_card.Input.Path, - headers: Operations.projects_sol_get_hyphen_card.Input.Headers = .init() - ) async throws -> Operations.projects_sol_get_hyphen_card.Output { - try await projects_sol_get_hyphen_card(Operations.projects_sol_get_hyphen_card.Input( + public func projectsGetCard( + path: Operations.ProjectsGetCard.Input.Path, + headers: Operations.ProjectsGetCard.Input.Headers = .init() + ) async throws -> Operations.ProjectsGetCard.Output { + try await projectsGetCard(Operations.ProjectsGetCard.Input( path: path, headers: headers )) @@ -332,12 +332,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)`. @available(*, deprecated) - public func projects_sol_update_hyphen_card( - path: Operations.projects_sol_update_hyphen_card.Input.Path, - headers: Operations.projects_sol_update_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_update_hyphen_card.Input.Body? = nil - ) async throws -> Operations.projects_sol_update_hyphen_card.Output { - try await projects_sol_update_hyphen_card(Operations.projects_sol_update_hyphen_card.Input( + public func projectsUpdateCard( + path: Operations.ProjectsUpdateCard.Input.Path, + headers: Operations.ProjectsUpdateCard.Input.Headers = .init(), + body: Operations.ProjectsUpdateCard.Input.Body? = nil + ) async throws -> Operations.ProjectsUpdateCard.Output { + try await projectsUpdateCard(Operations.ProjectsUpdateCard.Input( path: path, headers: headers, body: body @@ -352,11 +352,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)`. @available(*, deprecated) - public func projects_sol_delete_hyphen_card( - path: Operations.projects_sol_delete_hyphen_card.Input.Path, - headers: Operations.projects_sol_delete_hyphen_card.Input.Headers = .init() - ) async throws -> Operations.projects_sol_delete_hyphen_card.Output { - try await projects_sol_delete_hyphen_card(Operations.projects_sol_delete_hyphen_card.Input( + public func projectsDeleteCard( + path: Operations.ProjectsDeleteCard.Input.Path, + headers: Operations.ProjectsDeleteCard.Input.Headers = .init() + ) async throws -> Operations.ProjectsDeleteCard.Output { + try await projectsDeleteCard(Operations.ProjectsDeleteCard.Input( path: path, headers: headers )) @@ -370,12 +370,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /projects/columns/cards/{card_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)`. @available(*, deprecated) - public func projects_sol_move_hyphen_card( - path: Operations.projects_sol_move_hyphen_card.Input.Path, - headers: Operations.projects_sol_move_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_move_hyphen_card.Input.Body - ) async throws -> Operations.projects_sol_move_hyphen_card.Output { - try await projects_sol_move_hyphen_card(Operations.projects_sol_move_hyphen_card.Input( + public func projectsMoveCard( + path: Operations.ProjectsMoveCard.Input.Path, + headers: Operations.ProjectsMoveCard.Input.Headers = .init(), + body: Operations.ProjectsMoveCard.Input.Body + ) async throws -> Operations.ProjectsMoveCard.Output { + try await projectsMoveCard(Operations.ProjectsMoveCard.Input( path: path, headers: headers, body: body @@ -390,11 +390,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)`. @available(*, deprecated) - public func projects_sol_get_hyphen_column( - path: Operations.projects_sol_get_hyphen_column.Input.Path, - headers: Operations.projects_sol_get_hyphen_column.Input.Headers = .init() - ) async throws -> Operations.projects_sol_get_hyphen_column.Output { - try await projects_sol_get_hyphen_column(Operations.projects_sol_get_hyphen_column.Input( + public func projectsGetColumn( + path: Operations.ProjectsGetColumn.Input.Path, + headers: Operations.ProjectsGetColumn.Input.Headers = .init() + ) async throws -> Operations.ProjectsGetColumn.Output { + try await projectsGetColumn(Operations.ProjectsGetColumn.Input( path: path, headers: headers )) @@ -408,12 +408,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)`. @available(*, deprecated) - public func projects_sol_update_hyphen_column( - path: Operations.projects_sol_update_hyphen_column.Input.Path, - headers: Operations.projects_sol_update_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_update_hyphen_column.Input.Body - ) async throws -> Operations.projects_sol_update_hyphen_column.Output { - try await projects_sol_update_hyphen_column(Operations.projects_sol_update_hyphen_column.Input( + public func projectsUpdateColumn( + path: Operations.ProjectsUpdateColumn.Input.Path, + headers: Operations.ProjectsUpdateColumn.Input.Headers = .init(), + body: Operations.ProjectsUpdateColumn.Input.Body + ) async throws -> Operations.ProjectsUpdateColumn.Output { + try await projectsUpdateColumn(Operations.ProjectsUpdateColumn.Input( path: path, headers: headers, body: body @@ -428,11 +428,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)`. @available(*, deprecated) - public func projects_sol_delete_hyphen_column( - path: Operations.projects_sol_delete_hyphen_column.Input.Path, - headers: Operations.projects_sol_delete_hyphen_column.Input.Headers = .init() - ) async throws -> Operations.projects_sol_delete_hyphen_column.Output { - try await projects_sol_delete_hyphen_column(Operations.projects_sol_delete_hyphen_column.Input( + public func projectsDeleteColumn( + path: Operations.ProjectsDeleteColumn.Input.Path, + headers: Operations.ProjectsDeleteColumn.Input.Headers = .init() + ) async throws -> Operations.ProjectsDeleteColumn.Output { + try await projectsDeleteColumn(Operations.ProjectsDeleteColumn.Input( path: path, headers: headers )) @@ -446,12 +446,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)`. @available(*, deprecated) - public func projects_sol_list_hyphen_cards( - path: Operations.projects_sol_list_hyphen_cards.Input.Path, - query: Operations.projects_sol_list_hyphen_cards.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_cards.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_cards.Output { - try await projects_sol_list_hyphen_cards(Operations.projects_sol_list_hyphen_cards.Input( + public func projectsListCards( + path: Operations.ProjectsListCards.Input.Path, + query: Operations.ProjectsListCards.Input.Query = .init(), + headers: Operations.ProjectsListCards.Input.Headers = .init() + ) async throws -> Operations.ProjectsListCards.Output { + try await projectsListCards(Operations.ProjectsListCards.Input( path: path, query: query, headers: headers @@ -466,12 +466,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)`. @available(*, deprecated) - public func projects_sol_create_hyphen_card( - path: Operations.projects_sol_create_hyphen_card.Input.Path, - headers: Operations.projects_sol_create_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_card.Input.Body - ) async throws -> Operations.projects_sol_create_hyphen_card.Output { - try await projects_sol_create_hyphen_card(Operations.projects_sol_create_hyphen_card.Input( + public func projectsCreateCard( + path: Operations.ProjectsCreateCard.Input.Path, + headers: Operations.ProjectsCreateCard.Input.Headers = .init(), + body: Operations.ProjectsCreateCard.Input.Body + ) async throws -> Operations.ProjectsCreateCard.Output { + try await projectsCreateCard(Operations.ProjectsCreateCard.Input( path: path, headers: headers, body: body @@ -486,12 +486,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /projects/columns/{column_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)`. @available(*, deprecated) - public func projects_sol_move_hyphen_column( - path: Operations.projects_sol_move_hyphen_column.Input.Path, - headers: Operations.projects_sol_move_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_move_hyphen_column.Input.Body - ) async throws -> Operations.projects_sol_move_hyphen_column.Output { - try await projects_sol_move_hyphen_column(Operations.projects_sol_move_hyphen_column.Input( + public func projectsMoveColumn( + path: Operations.ProjectsMoveColumn.Input.Path, + headers: Operations.ProjectsMoveColumn.Input.Headers = .init(), + body: Operations.ProjectsMoveColumn.Input.Body + ) async throws -> Operations.ProjectsMoveColumn.Output { + try await projectsMoveColumn(Operations.ProjectsMoveColumn.Input( path: path, headers: headers, body: body @@ -506,11 +506,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)`. @available(*, deprecated) - public func projects_sol_get( - path: Operations.projects_sol_get.Input.Path, - headers: Operations.projects_sol_get.Input.Headers = .init() - ) async throws -> Operations.projects_sol_get.Output { - try await projects_sol_get(Operations.projects_sol_get.Input( + public func projectsGet( + path: Operations.ProjectsGet.Input.Path, + headers: Operations.ProjectsGet.Input.Headers = .init() + ) async throws -> Operations.ProjectsGet.Output { + try await projectsGet(Operations.ProjectsGet.Input( path: path, headers: headers )) @@ -524,12 +524,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)`. @available(*, deprecated) - public func projects_sol_update( - path: Operations.projects_sol_update.Input.Path, - headers: Operations.projects_sol_update.Input.Headers = .init(), - body: Operations.projects_sol_update.Input.Body? = nil - ) async throws -> Operations.projects_sol_update.Output { - try await projects_sol_update(Operations.projects_sol_update.Input( + public func projectsUpdate( + path: Operations.ProjectsUpdate.Input.Path, + headers: Operations.ProjectsUpdate.Input.Headers = .init(), + body: Operations.ProjectsUpdate.Input.Body? = nil + ) async throws -> Operations.ProjectsUpdate.Output { + try await projectsUpdate(Operations.ProjectsUpdate.Input( path: path, headers: headers, body: body @@ -544,11 +544,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)`. @available(*, deprecated) - public func projects_sol_delete( - path: Operations.projects_sol_delete.Input.Path, - headers: Operations.projects_sol_delete.Input.Headers = .init() - ) async throws -> Operations.projects_sol_delete.Output { - try await projects_sol_delete(Operations.projects_sol_delete.Input( + public func projectsDelete( + path: Operations.ProjectsDelete.Input.Path, + headers: Operations.ProjectsDelete.Input.Headers = .init() + ) async throws -> Operations.ProjectsDelete.Output { + try await projectsDelete(Operations.ProjectsDelete.Input( path: path, headers: headers )) @@ -562,12 +562,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/collaborators`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)`. @available(*, deprecated) - public func projects_sol_list_hyphen_collaborators( - path: Operations.projects_sol_list_hyphen_collaborators.Input.Path, - query: Operations.projects_sol_list_hyphen_collaborators.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_collaborators.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_collaborators.Output { - try await projects_sol_list_hyphen_collaborators(Operations.projects_sol_list_hyphen_collaborators.Input( + public func projectsListCollaborators( + path: Operations.ProjectsListCollaborators.Input.Path, + query: Operations.ProjectsListCollaborators.Input.Query = .init(), + headers: Operations.ProjectsListCollaborators.Input.Headers = .init() + ) async throws -> Operations.ProjectsListCollaborators.Output { + try await projectsListCollaborators(Operations.ProjectsListCollaborators.Input( path: path, query: query, headers: headers @@ -582,12 +582,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)`. @available(*, deprecated) - public func projects_sol_add_hyphen_collaborator( - path: Operations.projects_sol_add_hyphen_collaborator.Input.Path, - headers: Operations.projects_sol_add_hyphen_collaborator.Input.Headers = .init(), - body: Operations.projects_sol_add_hyphen_collaborator.Input.Body? = nil - ) async throws -> Operations.projects_sol_add_hyphen_collaborator.Output { - try await projects_sol_add_hyphen_collaborator(Operations.projects_sol_add_hyphen_collaborator.Input( + public func projectsAddCollaborator( + path: Operations.ProjectsAddCollaborator.Input.Path, + headers: Operations.ProjectsAddCollaborator.Input.Headers = .init(), + body: Operations.ProjectsAddCollaborator.Input.Body? = nil + ) async throws -> Operations.ProjectsAddCollaborator.Output { + try await projectsAddCollaborator(Operations.ProjectsAddCollaborator.Input( path: path, headers: headers, body: body @@ -602,11 +602,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)`. @available(*, deprecated) - public func projects_sol_remove_hyphen_collaborator( - path: Operations.projects_sol_remove_hyphen_collaborator.Input.Path, - headers: Operations.projects_sol_remove_hyphen_collaborator.Input.Headers = .init() - ) async throws -> Operations.projects_sol_remove_hyphen_collaborator.Output { - try await projects_sol_remove_hyphen_collaborator(Operations.projects_sol_remove_hyphen_collaborator.Input( + public func projectsRemoveCollaborator( + path: Operations.ProjectsRemoveCollaborator.Input.Path, + headers: Operations.ProjectsRemoveCollaborator.Input.Headers = .init() + ) async throws -> Operations.ProjectsRemoveCollaborator.Output { + try await projectsRemoveCollaborator(Operations.ProjectsRemoveCollaborator.Input( path: path, headers: headers )) @@ -620,11 +620,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)`. @available(*, deprecated) - public func projects_sol_get_hyphen_permission_hyphen_for_hyphen_user( - path: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Path, - headers: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output { - try await projects_sol_get_hyphen_permission_hyphen_for_hyphen_user(Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input( + public func projectsGetPermissionForUser( + path: Operations.ProjectsGetPermissionForUser.Input.Path, + headers: Operations.ProjectsGetPermissionForUser.Input.Headers = .init() + ) async throws -> Operations.ProjectsGetPermissionForUser.Output { + try await projectsGetPermissionForUser(Operations.ProjectsGetPermissionForUser.Input( path: path, headers: headers )) @@ -638,12 +638,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)`. @available(*, deprecated) - public func projects_sol_list_hyphen_columns( - path: Operations.projects_sol_list_hyphen_columns.Input.Path, - query: Operations.projects_sol_list_hyphen_columns.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_columns.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_columns.Output { - try await projects_sol_list_hyphen_columns(Operations.projects_sol_list_hyphen_columns.Input( + public func projectsListColumns( + path: Operations.ProjectsListColumns.Input.Path, + query: Operations.ProjectsListColumns.Input.Query = .init(), + headers: Operations.ProjectsListColumns.Input.Headers = .init() + ) async throws -> Operations.ProjectsListColumns.Output { + try await projectsListColumns(Operations.ProjectsListColumns.Input( path: path, query: query, headers: headers @@ -658,12 +658,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)`. @available(*, deprecated) - public func projects_sol_create_hyphen_column( - path: Operations.projects_sol_create_hyphen_column.Input.Path, - headers: Operations.projects_sol_create_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_column.Input.Body - ) async throws -> Operations.projects_sol_create_hyphen_column.Output { - try await projects_sol_create_hyphen_column(Operations.projects_sol_create_hyphen_column.Input( + public func projectsCreateColumn( + path: Operations.ProjectsCreateColumn.Input.Path, + headers: Operations.ProjectsCreateColumn.Input.Headers = .init(), + body: Operations.ProjectsCreateColumn.Input.Body + ) async throws -> Operations.ProjectsCreateColumn.Output { + try await projectsCreateColumn(Operations.ProjectsCreateColumn.Input( path: path, headers: headers, body: body @@ -678,12 +678,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_repo( - path: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_repo.Output { - try await projects_sol_list_hyphen_for_hyphen_repo(Operations.projects_sol_list_hyphen_for_hyphen_repo.Input( + public func projectsListForRepo( + path: Operations.ProjectsListForRepo.Input.Path, + query: Operations.ProjectsListForRepo.Input.Query = .init(), + headers: Operations.ProjectsListForRepo.Input.Headers = .init() + ) async throws -> Operations.ProjectsListForRepo.Output { + try await projectsListForRepo(Operations.ProjectsListForRepo.Input( path: path, query: query, headers: headers @@ -698,12 +698,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_repo( - path: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_repo.Output { - try await projects_sol_create_hyphen_for_hyphen_repo(Operations.projects_sol_create_hyphen_for_hyphen_repo.Input( + public func projectsCreateForRepo( + path: Operations.ProjectsCreateForRepo.Input.Path, + headers: Operations.ProjectsCreateForRepo.Input.Headers = .init(), + body: Operations.ProjectsCreateForRepo.Input.Body + ) async throws -> Operations.ProjectsCreateForRepo.Output { + try await projectsCreateForRepo(Operations.ProjectsCreateForRepo.Input( path: path, headers: headers, body: body @@ -718,11 +718,11 @@ extension APIProtocol { /// - Remark: HTTP `POST /user/projects`. /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)`. @available(*, deprecated) - public func projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func projectsCreateForAuthenticatedUser( + headers: Operations.ProjectsCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.ProjectsCreateForAuthenticatedUser.Input.Body + ) async throws -> Operations.ProjectsCreateForAuthenticatedUser.Output { + try await projectsCreateForAuthenticatedUser(Operations.ProjectsCreateForAuthenticatedUser.Input( headers: headers, body: body )) @@ -736,12 +736,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /users/{username}/projects`. /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)`. @available(*, deprecated) - public func projects_sol_list_hyphen_for_hyphen_user( - path: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.projects_sol_list_hyphen_for_hyphen_user.Output { - try await projects_sol_list_hyphen_for_hyphen_user(Operations.projects_sol_list_hyphen_for_hyphen_user.Input( + public func projectsListForUser( + path: Operations.ProjectsListForUser.Input.Path, + query: Operations.ProjectsListForUser.Input.Query = .init(), + headers: Operations.ProjectsListForUser.Input.Headers = .init() + ) async throws -> Operations.ProjectsListForUser.Output { + try await projectsListForUser(Operations.ProjectsListForUser.Input( path: path, query: query, headers: headers @@ -751,6 +751,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -766,7 +775,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -776,171 +785,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -948,61 +957,61 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1041,9 +1050,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1058,7 +1067,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1077,34 +1086,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1114,154 +1123,154 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Projects are a way to organize columns and cards of work. /// /// - Remark: Generated from `#/components/schemas/project`. - public struct project: Codable, Hashable, Sendable { + public struct Project: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/project/owner_url`. - public var owner_url: Swift.String + public var ownerUrl: Swift.String /// - Remark: Generated from `#/components/schemas/project/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/project/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/project/columns_url`. - public var columns_url: Swift.String + public var columnsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/project/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/project/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Name of the project /// /// - Remark: Generated from `#/components/schemas/project/name`. @@ -1277,15 +1286,15 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/project/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/project/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/project/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/project/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The baseline permission that all organization members have on this project. Only present if owner is an organization. /// /// - Remark: Generated from `#/components/schemas/project/organization_permission`. - @frozen public enum organization_permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -1294,84 +1303,84 @@ public enum Components { /// The baseline permission that all organization members have on this project. Only present if owner is an organization. /// /// - Remark: Generated from `#/components/schemas/project/organization_permission`. - public var organization_permission: Components.Schemas.project.organization_permissionPayload? + public var organizationPermission: Components.Schemas.Project.OrganizationPermissionPayload? /// Whether or not this project can be seen by everyone. Only present if owner is an organization. /// /// - Remark: Generated from `#/components/schemas/project/private`. public var _private: Swift.Bool? - /// Creates a new `project`. + /// Creates a new `Project`. /// /// - Parameters: - /// - owner_url: + /// - ownerUrl: /// - url: - /// - html_url: - /// - columns_url: + /// - htmlUrl: + /// - columnsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - name: Name of the project /// - body: Body of the project /// - number: /// - state: State of the project; either 'open' or 'closed' /// - creator: - /// - created_at: - /// - updated_at: - /// - organization_permission: The baseline permission that all organization members have on this project. Only present if owner is an organization. + /// - createdAt: + /// - updatedAt: + /// - organizationPermission: The baseline permission that all organization members have on this project. Only present if owner is an organization. /// - _private: Whether or not this project can be seen by everyone. Only present if owner is an organization. public init( - owner_url: Swift.String, + ownerUrl: Swift.String, url: Swift.String, - html_url: Swift.String, - columns_url: Swift.String, + htmlUrl: Swift.String, + columnsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, body: Swift.String? = nil, number: Swift.Int, state: Swift.String, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - organization_permission: Components.Schemas.project.organization_permissionPayload? = nil, + creator: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + organizationPermission: Components.Schemas.Project.OrganizationPermissionPayload? = nil, _private: Swift.Bool? = nil ) { - self.owner_url = owner_url + self.ownerUrl = ownerUrl self.url = url - self.html_url = html_url - self.columns_url = columns_url + self.htmlUrl = htmlUrl + self.columnsUrl = columnsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.body = body self.number = number self.state = state self.creator = creator - self.created_at = created_at - self.updated_at = updated_at - self.organization_permission = organization_permission + self.createdAt = createdAt + self.updatedAt = updatedAt + self.organizationPermission = organizationPermission self._private = _private } public enum CodingKeys: String, CodingKey { - case owner_url + case ownerUrl = "owner_url" case url - case html_url - case columns_url + case htmlUrl = "html_url" + case columnsUrl = "columns_url" case id - case node_id + case nodeId = "node_id" case name case body case number case state case creator - case created_at - case updated_at - case organization_permission + case createdAt = "created_at" + case updatedAt = "updated_at" + case organizationPermission = "organization_permission" case _private = "private" } } /// Project cards represent a scope of work. /// /// - Remark: Generated from `#/components/schemas/project-card`. - public struct project_hyphen_card: Codable, Hashable, Sendable { + public struct ProjectCard: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/project-card/url`. public var url: Swift.String /// The project card's ID @@ -1379,171 +1388,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/project-card/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/project-card/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/project-card/note`. public var note: Swift.String? /// - Remark: Generated from `#/components/schemas/project-card/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/project-card/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/project-card/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Whether or not the card is archived /// /// - Remark: Generated from `#/components/schemas/project-card/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/project-card/column_name`. - public var column_name: Swift.String? + public var columnName: Swift.String? /// - Remark: Generated from `#/components/schemas/project-card/project_id`. - public var project_id: Swift.String? + public var projectId: Swift.String? /// - Remark: Generated from `#/components/schemas/project-card/column_url`. - public var column_url: Swift.String + public var columnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/project-card/content_url`. - public var content_url: Swift.String? + public var contentUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/project-card/project_url`. - public var project_url: Swift.String - /// Creates a new `project_hyphen_card`. + public var projectUrl: Swift.String + /// Creates a new `ProjectCard`. /// /// - Parameters: /// - url: /// - id: The project card's ID - /// - node_id: + /// - nodeId: /// - note: /// - creator: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - archived: Whether or not the card is archived - /// - column_name: - /// - project_id: - /// - column_url: - /// - content_url: - /// - project_url: + /// - columnName: + /// - projectId: + /// - columnUrl: + /// - contentUrl: + /// - projectUrl: public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, note: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, + creator: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, archived: Swift.Bool? = nil, - column_name: Swift.String? = nil, - project_id: Swift.String? = nil, - column_url: Swift.String, - content_url: Swift.String? = nil, - project_url: Swift.String + columnName: Swift.String? = nil, + projectId: Swift.String? = nil, + columnUrl: Swift.String, + contentUrl: Swift.String? = nil, + projectUrl: Swift.String ) { self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.note = note self.creator = creator - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.archived = archived - self.column_name = column_name - self.project_id = project_id - self.column_url = column_url - self.content_url = content_url - self.project_url = project_url + self.columnName = columnName + self.projectId = projectId + self.columnUrl = columnUrl + self.contentUrl = contentUrl + self.projectUrl = projectUrl } public enum CodingKeys: String, CodingKey { case url case id - case node_id + case nodeId = "node_id" case note case creator - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case archived - case column_name - case project_id - case column_url - case content_url - case project_url + case columnName = "column_name" + case projectId = "project_id" + case columnUrl = "column_url" + case contentUrl = "content_url" + case projectUrl = "project_url" } } /// Project columns contain cards of work. /// /// - Remark: Generated from `#/components/schemas/project-column`. - public struct project_hyphen_column: Codable, Hashable, Sendable { + public struct ProjectColumn: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/project-column/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/project-column/project_url`. - public var project_url: Swift.String + public var projectUrl: Swift.String /// - Remark: Generated from `#/components/schemas/project-column/cards_url`. - public var cards_url: Swift.String + public var cardsUrl: Swift.String /// The unique identifier of the project column /// /// - Remark: Generated from `#/components/schemas/project-column/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/project-column/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Name of the project column /// /// - Remark: Generated from `#/components/schemas/project-column/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/project-column/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/project-column/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `project_hyphen_column`. + public var updatedAt: Foundation.Date + /// Creates a new `ProjectColumn`. /// /// - Parameters: /// - url: - /// - project_url: - /// - cards_url: + /// - projectUrl: + /// - cardsUrl: /// - id: The unique identifier of the project column - /// - node_id: + /// - nodeId: /// - name: Name of the project column - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( url: Swift.String, - project_url: Swift.String, - cards_url: Swift.String, + projectUrl: Swift.String, + cardsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.url = url - self.project_url = project_url - self.cards_url = cards_url + self.projectUrl = projectUrl + self.cardsUrl = cardsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case url - case project_url - case cards_url + case projectUrl = "project_url" + case cardsUrl = "cards_url" case id - case node_id + case nodeId = "node_id" case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Project Collaborator Permission /// /// - Remark: Generated from `#/components/schemas/project-collaborator-permission`. - public struct project_hyphen_collaborator_hyphen_permission: Codable, Hashable, Sendable { + public struct ProjectCollaboratorPermission: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/project-collaborator-permission/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/project-collaborator-permission/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `project_hyphen_collaborator_hyphen_permission`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `ProjectCollaboratorPermission`. /// /// - Parameters: /// - permission: /// - user: public init( permission: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + user: Components.Schemas.NullableSimpleUser? = nil ) { self.permission = permission self.user = user @@ -1559,54 +1568,54 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The unique identifier of the project. /// /// - Remark: Generated from `#/components/parameters/project-id`. - public typealias project_hyphen_id = Swift.Int + public typealias ProjectId = Swift.Int /// The unique identifier of the card. /// /// - Remark: Generated from `#/components/parameters/card-id`. - public typealias card_hyphen_id = Swift.Int + public typealias CardId = Swift.Int /// The unique identifier of the column. /// /// - Remark: Generated from `#/components/parameters/column-id`. - public typealias column_hyphen_id = Swift.Int + public typealias ColumnId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -1616,25 +1625,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1644,25 +1653,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -1672,29 +1681,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1704,25 +1713,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1732,25 +1741,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct gone: Sendable, Hashable { + public struct Gone: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1760,12 +1769,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.gone.Body - /// Creates a new `gone`. + public var body: Components.Responses.Gone.Body + /// Creates a new `Gone`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.gone.Body) { + public init(body: Components.Responses.Gone.Body) { self.body = body } } @@ -1773,7 +1782,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -1787,7 +1796,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)`. - public enum projects_sol_list_hyphen_for_hyphen_org { + public enum ProjectsListForOrg { public static let id: Swift.String = "projects/list-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/path`. @@ -1795,20 +1804,20 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ProjectsListForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -1816,44 +1825,44 @@ public enum Operations { /// Indicates the state of the projects to return. /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/query/state`. - public var state: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Query.statePayload? + public var state: Operations.ProjectsListForOrg.Input.Query.StatePayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - state: Indicates the state of the projects to return. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Query.statePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + state: Operations.ProjectsListForOrg.Input.Query.StatePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ProjectsListForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ProjectsListForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1861,9 +1870,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ProjectsListForOrg.Input.Path, + query: Operations.ProjectsListForOrg.Input.Query = .init(), + headers: Operations.ProjectsListForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -1875,26 +1884,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ProjectsListForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/GET/responses/200/content/application\/json`. - case json([Components.Schemas.project]) + case json([Components.Schemas.Project]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.project] { + public var json: [Components.Schemas.Project] { get throws { switch self { case let .json(body): @@ -1904,15 +1913,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ProjectsListForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ProjectsListForOrg.Output.Ok.Headers = .init(), + body: Operations.ProjectsListForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1923,12 +1932,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ProjectsListForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ProjectsListForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1946,12 +1955,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/get(projects/list-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -2003,7 +2012,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)`. - public enum projects_sol_create_hyphen_for_hyphen_org { + public enum ProjectsCreateForOrg { public static let id: Swift.String = "projects/create-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/path`. @@ -2011,32 +2020,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ProjectsCreateForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ProjectsCreateForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the project. /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/requestBody/json/name`. @@ -2045,7 +2054,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/requestBody/json/body`. public var body: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the project. @@ -2063,9 +2072,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ProjectsCreateForOrg.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Body + public var body: Operations.ProjectsCreateForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2073,9 +2082,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Path, - headers: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_org.Input.Body + path: Operations.ProjectsCreateForOrg.Input.Path, + headers: Operations.ProjectsCreateForOrg.Input.Headers = .init(), + body: Operations.ProjectsCreateForOrg.Input.Body ) { self.path = path self.headers = headers @@ -2087,12 +2096,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/projects/POST/responses/201/content/application\/json`. - case json(Components.Schemas.project) + case json(Components.Schemas.Project) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project { + public var json: Components.Schemas.Project { get throws { switch self { case let .json(body): @@ -2102,12 +2111,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.ProjectsCreateForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.ProjectsCreateForOrg.Output.Created.Body) { self.body = body } } @@ -2116,12 +2125,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_create_hyphen_for_hyphen_org.Output.Created) + case created(Operations.ProjectsCreateForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_create_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.ProjectsCreateForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -2139,12 +2148,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2162,12 +2171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2185,12 +2194,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2208,12 +2217,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -2231,12 +2240,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/projects/post(projects/create-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -2288,7 +2297,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)`. - public enum projects_sol_get_hyphen_card { + public enum ProjectsGetCard { public static let id: Swift.String = "projects/get-card" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/GET/path`. @@ -2296,36 +2305,36 @@ public enum Operations { /// The unique identifier of the card. /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/GET/path/card_id`. - public var card_id: Components.Parameters.card_hyphen_id + public var cardId: Components.Parameters.CardId /// Creates a new `Path`. /// /// - Parameters: - /// - card_id: The unique identifier of the card. - public init(card_id: Components.Parameters.card_hyphen_id) { - self.card_id = card_id + /// - cardId: The unique identifier of the card. + public init(cardId: Components.Parameters.CardId) { + self.cardId = cardId } } - public var path: Operations.projects_sol_get_hyphen_card.Input.Path + public var path: Operations.ProjectsGetCard.Input.Path /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_get_hyphen_card.Input.Headers + public var headers: Operations.ProjectsGetCard.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_get_hyphen_card.Input.Path, - headers: Operations.projects_sol_get_hyphen_card.Input.Headers = .init() + path: Operations.ProjectsGetCard.Input.Path, + headers: Operations.ProjectsGetCard.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2336,12 +2345,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.project_hyphen_card) + case json(Components.Schemas.ProjectCard) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_card { + public var json: Components.Schemas.ProjectCard { get throws { switch self { case let .json(body): @@ -2351,12 +2360,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_get_hyphen_card.Output.Ok.Body + public var body: Operations.ProjectsGetCard.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_get_hyphen_card.Output.Ok.Body) { + public init(body: Operations.ProjectsGetCard.Output.Ok.Body) { self.body = body } } @@ -2365,12 +2374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_get_hyphen_card.Output.Ok) + case ok(Operations.ProjectsGetCard.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_get_hyphen_card.Output.Ok { + public var ok: Operations.ProjectsGetCard.Output.Ok { get throws { switch self { case let .ok(response): @@ -2388,12 +2397,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -2411,12 +2428,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2434,12 +2451,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2457,12 +2474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/get(projects/get-card)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2514,7 +2531,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)`. - public enum projects_sol_update_hyphen_card { + public enum ProjectsUpdateCard { public static let id: Swift.String = "projects/update-card" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/path`. @@ -2522,32 +2539,32 @@ public enum Operations { /// The unique identifier of the card. /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/path/card_id`. - public var card_id: Components.Parameters.card_hyphen_id + public var cardId: Components.Parameters.CardId /// Creates a new `Path`. /// /// - Parameters: - /// - card_id: The unique identifier of the card. - public init(card_id: Components.Parameters.card_hyphen_id) { - self.card_id = card_id + /// - cardId: The unique identifier of the card. + public init(cardId: Components.Parameters.CardId) { + self.cardId = cardId } } - public var path: Operations.projects_sol_update_hyphen_card.Input.Path + public var path: Operations.ProjectsUpdateCard.Input.Path /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_update_hyphen_card.Input.Headers + public var headers: Operations.ProjectsUpdateCard.Input.Headers /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The project card's note /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/requestBody/json/note`. @@ -2556,7 +2573,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/requestBody/json/archived`. public var archived: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - note: The project card's note @@ -2574,9 +2591,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.projects_sol_update_hyphen_card.Input.Body.jsonPayload) + case json(Operations.ProjectsUpdateCard.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_update_hyphen_card.Input.Body? + public var body: Operations.ProjectsUpdateCard.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -2584,9 +2601,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_update_hyphen_card.Input.Path, - headers: Operations.projects_sol_update_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_update_hyphen_card.Input.Body? = nil + path: Operations.ProjectsUpdateCard.Input.Path, + headers: Operations.ProjectsUpdateCard.Input.Headers = .init(), + body: Operations.ProjectsUpdateCard.Input.Body? = nil ) { self.path = path self.headers = headers @@ -2598,12 +2615,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.project_hyphen_card) + case json(Components.Schemas.ProjectCard) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_card { + public var json: Components.Schemas.ProjectCard { get throws { switch self { case let .json(body): @@ -2613,12 +2630,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_update_hyphen_card.Output.Ok.Body + public var body: Operations.ProjectsUpdateCard.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_update_hyphen_card.Output.Ok.Body) { + public init(body: Operations.ProjectsUpdateCard.Output.Ok.Body) { self.body = body } } @@ -2627,12 +2644,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_update_hyphen_card.Output.Ok) + case ok(Operations.ProjectsUpdateCard.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_update_hyphen_card.Output.Ok { + public var ok: Operations.ProjectsUpdateCard.Output.Ok { get throws { switch self { case let .ok(response): @@ -2650,12 +2667,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -2673,12 +2698,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2696,12 +2721,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2719,12 +2744,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2742,12 +2767,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/patch(projects/update-card)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -2799,7 +2824,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /projects/columns/cards/{card_id}`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)`. - public enum projects_sol_delete_hyphen_card { + public enum ProjectsDeleteCard { public static let id: Swift.String = "projects/delete-card" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/path`. @@ -2807,36 +2832,36 @@ public enum Operations { /// The unique identifier of the card. /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/path/card_id`. - public var card_id: Components.Parameters.card_hyphen_id + public var cardId: Components.Parameters.CardId /// Creates a new `Path`. /// /// - Parameters: - /// - card_id: The unique identifier of the card. - public init(card_id: Components.Parameters.card_hyphen_id) { - self.card_id = card_id + /// - cardId: The unique identifier of the card. + public init(cardId: Components.Parameters.CardId) { + self.cardId = cardId } } - public var path: Operations.projects_sol_delete_hyphen_card.Input.Path + public var path: Operations.ProjectsDeleteCard.Input.Path /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_delete_hyphen_card.Input.Headers + public var headers: Operations.ProjectsDeleteCard.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_delete_hyphen_card.Input.Path, - headers: Operations.projects_sol_delete_hyphen_card.Input.Headers = .init() + path: Operations.ProjectsDeleteCard.Input.Path, + headers: Operations.ProjectsDeleteCard.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2852,12 +2877,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.projects_sol_delete_hyphen_card.Output.NoContent) + case noContent(Operations.ProjectsDeleteCard.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.projects_sol_delete_hyphen_card.Output.NoContent { + public var noContent: Operations.ProjectsDeleteCard.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -2875,12 +2908,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -2897,41 +2938,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content/json/errors`. public var errors: [Swift.String]? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/DELETE/responses/403/content/application\/json`. - case json(Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body.jsonPayload) + case json(Operations.ProjectsDeleteCard.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body.jsonPayload { + public var json: Operations.ProjectsDeleteCard.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -2941,12 +2982,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body + public var body: Operations.ProjectsDeleteCard.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_delete_hyphen_card.Output.Forbidden.Body) { + public init(body: Operations.ProjectsDeleteCard.Output.Forbidden.Body) { self.body = body } } @@ -2955,12 +2996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.projects_sol_delete_hyphen_card.Output.Forbidden) + case forbidden(Operations.ProjectsDeleteCard.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.projects_sol_delete_hyphen_card.Output.Forbidden { + public var forbidden: Operations.ProjectsDeleteCard.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2978,12 +3019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3001,12 +3042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/delete(projects/delete-card)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3058,7 +3099,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /projects/columns/cards/{card_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)`. - public enum projects_sol_move_hyphen_card { + public enum ProjectsMoveCard { public static let id: Swift.String = "projects/move-card" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/path`. @@ -3066,32 +3107,32 @@ public enum Operations { /// The unique identifier of the card. /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/path/card_id`. - public var card_id: Components.Parameters.card_hyphen_id + public var cardId: Components.Parameters.CardId /// Creates a new `Path`. /// /// - Parameters: - /// - card_id: The unique identifier of the card. - public init(card_id: Components.Parameters.card_hyphen_id) { - self.card_id = card_id + /// - cardId: The unique identifier of the card. + public init(cardId: Components.Parameters.CardId) { + self.cardId = cardId } } - public var path: Operations.projects_sol_move_hyphen_card.Input.Path + public var path: Operations.ProjectsMoveCard.Input.Path /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_move_hyphen_card.Input.Headers + public var headers: Operations.ProjectsMoveCard.Input.Headers /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card. /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/requestBody/json/position`. @@ -3099,28 +3140,28 @@ public enum Operations { /// The unique identifier of the column the card should be moved to /// /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/requestBody/json/column_id`. - public var column_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var columnId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - position: The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card. - /// - column_id: The unique identifier of the column the card should be moved to + /// - columnId: The unique identifier of the column the card should be moved to public init( position: Swift.String, - column_id: Swift.Int? = nil + columnId: Swift.Int? = nil ) { self.position = position - self.column_id = column_id + self.columnId = columnId } public enum CodingKeys: String, CodingKey { case position - case column_id + case columnId = "column_id" } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_card.Input.Body.jsonPayload) + case json(Operations.ProjectsMoveCard.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_move_hyphen_card.Input.Body + public var body: Operations.ProjectsMoveCard.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3128,9 +3169,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_move_hyphen_card.Input.Path, - headers: Operations.projects_sol_move_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_move_hyphen_card.Input.Body + path: Operations.ProjectsMoveCard.Input.Path, + headers: Operations.ProjectsMoveCard.Input.Headers = .init(), + body: Operations.ProjectsMoveCard.Input.Body ) { self.path = path self.headers = headers @@ -3142,20 +3183,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// Creates a new `jsonPayload`. + public struct JsonPayload: Codable, Hashable, Sendable { + /// Creates a new `JsonPayload`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/201/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_card.Output.Created.Body.jsonPayload) + case json(Operations.ProjectsMoveCard.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_move_hyphen_card.Output.Created.Body.jsonPayload { + public var json: Operations.ProjectsMoveCard.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3165,12 +3206,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_move_hyphen_card.Output.Created.Body + public var body: Operations.ProjectsMoveCard.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_move_hyphen_card.Output.Created.Body) { + public init(body: Operations.ProjectsMoveCard.Output.Created.Body) { self.body = body } } @@ -3179,12 +3220,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_move_hyphen_card.Output.Created) + case created(Operations.ProjectsMoveCard.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_move_hyphen_card.Output.Created { + public var created: Operations.ProjectsMoveCard.Output.Created { get throws { switch self { case let .created(response): @@ -3202,12 +3243,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3224,22 +3273,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errorsPayload/code`. + public var documentationUrl: Swift.String? + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/ErrorsPayload/code`. public var code: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errorsPayload/message`. + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errorsPayload/resource`. + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errorsPayload/field`. + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/ErrorsPayload/field`. public var field: Swift.String? - /// Creates a new `errorsPayloadPayload`. + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - code: @@ -3265,37 +3314,37 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errors`. - public typealias errorsPayload = [Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload.errorsPayloadPayload] + public typealias ErrorsPayload = [Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload.ErrorsPayloadPayload] /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/json/errors`. - public var errors: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload.errorsPayload? - /// Creates a new `jsonPayload`. + public var errors: Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload.ErrorsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, - errors: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload.errorsPayload? = nil + documentationUrl: Swift.String? = nil, + errors: Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/403/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload) + case json(Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body.jsonPayload { + public var json: Operations.ProjectsMoveCard.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3305,12 +3354,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body + public var body: Operations.ProjectsMoveCard.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_move_hyphen_card.Output.Forbidden.Body) { + public init(body: Operations.ProjectsMoveCard.Output.Forbidden.Body) { self.body = body } } @@ -3319,12 +3368,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.projects_sol_move_hyphen_card.Output.Forbidden) + case forbidden(Operations.ProjectsMoveCard.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.projects_sol_move_hyphen_card.Output.Forbidden { + public var forbidden: Operations.ProjectsMoveCard.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3342,12 +3391,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3364,20 +3413,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/errorsPayload/code`. + public var documentationUrl: Swift.String? + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/ErrorsPayload/code`. public var code: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/errorsPayload/message`. + /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/ErrorsPayload/message`. public var message: Swift.String? - /// Creates a new `errorsPayloadPayload`. + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - code: @@ -3395,41 +3444,41 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/errors`. - public typealias errorsPayload = [Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayloadPayload] + public typealias ErrorsPayload = [Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayloadPayload] /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/json/errors`. - public var errors: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayload? - /// Creates a new `jsonPayload`. + public var errors: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil, - errors: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayload? = nil + documentationUrl: Swift.String? = nil, + errors: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayload? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/columns/cards/{card_id}/moves/POST/responses/503/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload) + case json(Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload { + public var json: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3439,12 +3488,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body + public var body: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable.Body) { + public init(body: Operations.ProjectsMoveCard.Output.ServiceUnavailable.Body) { self.body = body } } @@ -3453,12 +3502,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable) + case serviceUnavailable(Operations.ProjectsMoveCard.Output.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Operations.projects_sol_move_hyphen_card.Output.ServiceUnavailable { + public var serviceUnavailable: Operations.ProjectsMoveCard.Output.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -3476,12 +3525,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/cards/{card_id}/moves/post(projects/move-card)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3533,7 +3582,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)`. - public enum projects_sol_get_hyphen_column { + public enum ProjectsGetColumn { public static let id: Swift.String = "projects/get-column" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/GET/path`. @@ -3541,36 +3590,36 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/GET/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_get_hyphen_column.Input.Path + public var path: Operations.ProjectsGetColumn.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_get_hyphen_column.Input.Headers + public var headers: Operations.ProjectsGetColumn.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_get_hyphen_column.Input.Path, - headers: Operations.projects_sol_get_hyphen_column.Input.Headers = .init() + path: Operations.ProjectsGetColumn.Input.Path, + headers: Operations.ProjectsGetColumn.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3581,12 +3630,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.project_hyphen_column) + case json(Components.Schemas.ProjectColumn) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_column { + public var json: Components.Schemas.ProjectColumn { get throws { switch self { case let .json(body): @@ -3596,12 +3645,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_get_hyphen_column.Output.Ok.Body + public var body: Operations.ProjectsGetColumn.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_get_hyphen_column.Output.Ok.Body) { + public init(body: Operations.ProjectsGetColumn.Output.Ok.Body) { self.body = body } } @@ -3610,12 +3659,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_get_hyphen_column.Output.Ok) + case ok(Operations.ProjectsGetColumn.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_get_hyphen_column.Output.Ok { + public var ok: Operations.ProjectsGetColumn.Output.Ok { get throws { switch self { case let .ok(response): @@ -3633,12 +3682,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3656,12 +3713,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3679,12 +3736,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3702,12 +3759,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/get(projects/get-column)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3759,7 +3816,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)`. - public enum projects_sol_update_hyphen_column { + public enum ProjectsUpdateColumn { public static let id: Swift.String = "projects/update-column" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/path`. @@ -3767,37 +3824,37 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_update_hyphen_column.Input.Path + public var path: Operations.ProjectsUpdateColumn.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_update_hyphen_column.Input.Headers + public var headers: Operations.ProjectsUpdateColumn.Input.Headers /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the project column /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/requestBody/json/name`. public var name: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the project column @@ -3809,9 +3866,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.projects_sol_update_hyphen_column.Input.Body.jsonPayload) + case json(Operations.ProjectsUpdateColumn.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_update_hyphen_column.Input.Body + public var body: Operations.ProjectsUpdateColumn.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3819,9 +3876,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_update_hyphen_column.Input.Path, - headers: Operations.projects_sol_update_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_update_hyphen_column.Input.Body + path: Operations.ProjectsUpdateColumn.Input.Path, + headers: Operations.ProjectsUpdateColumn.Input.Headers = .init(), + body: Operations.ProjectsUpdateColumn.Input.Body ) { self.path = path self.headers = headers @@ -3833,12 +3890,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.project_hyphen_column) + case json(Components.Schemas.ProjectColumn) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_column { + public var json: Components.Schemas.ProjectColumn { get throws { switch self { case let .json(body): @@ -3848,12 +3905,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_update_hyphen_column.Output.Ok.Body + public var body: Operations.ProjectsUpdateColumn.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_update_hyphen_column.Output.Ok.Body) { + public init(body: Operations.ProjectsUpdateColumn.Output.Ok.Body) { self.body = body } } @@ -3862,12 +3919,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_update_hyphen_column.Output.Ok) + case ok(Operations.ProjectsUpdateColumn.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_update_hyphen_column.Output.Ok { + public var ok: Operations.ProjectsUpdateColumn.Output.Ok { get throws { switch self { case let .ok(response): @@ -3885,12 +3942,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3908,12 +3973,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3931,12 +3996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/patch(projects/update-column)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3988,7 +4053,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /projects/columns/{column_id}`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)`. - public enum projects_sol_delete_hyphen_column { + public enum ProjectsDeleteColumn { public static let id: Swift.String = "projects/delete-column" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/DELETE/path`. @@ -3996,36 +4061,36 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/DELETE/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_delete_hyphen_column.Input.Path + public var path: Operations.ProjectsDeleteColumn.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_delete_hyphen_column.Input.Headers + public var headers: Operations.ProjectsDeleteColumn.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_delete_hyphen_column.Input.Path, - headers: Operations.projects_sol_delete_hyphen_column.Input.Headers = .init() + path: Operations.ProjectsDeleteColumn.Input.Path, + headers: Operations.ProjectsDeleteColumn.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4041,12 +4106,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.projects_sol_delete_hyphen_column.Output.NoContent) + case noContent(Operations.ProjectsDeleteColumn.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.projects_sol_delete_hyphen_column.Output.NoContent { + public var noContent: Operations.ProjectsDeleteColumn.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4064,12 +4137,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4087,12 +4168,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4110,12 +4191,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/delete(projects/delete-column)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4167,7 +4248,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)`. - public enum projects_sol_list_hyphen_cards { + public enum ProjectsListCards { public static let id: Swift.String = "projects/list-cards" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/path`. @@ -4175,65 +4256,65 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_list_hyphen_cards.Input.Path + public var path: Operations.ProjectsListCards.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/query/archived_state`. - @frozen public enum archived_statePayload: String, Codable, Hashable, Sendable { + @frozen public enum ArchivedStatePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case archived = "archived" - case not_archived = "not_archived" + case notArchived = "not_archived" } /// Filters the project cards that are returned by the card's state. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/query/archived_state`. - public var archived_state: Operations.projects_sol_list_hyphen_cards.Input.Query.archived_statePayload? + public var archivedState: Operations.ProjectsListCards.Input.Query.ArchivedStatePayload? /// 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)." /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - archived_state: Filters the project cards that are returned by the card's state. - /// - 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)." + /// - archivedState: Filters the project cards that are returned by the card's state. + /// - perPage: 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)." public init( - archived_state: Operations.projects_sol_list_hyphen_cards.Input.Query.archived_statePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + archivedState: Operations.ProjectsListCards.Input.Query.ArchivedStatePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.archived_state = archived_state - self.per_page = per_page + self.archivedState = archivedState + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_cards.Input.Query + public var query: Operations.ProjectsListCards.Input.Query /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_cards.Input.Headers + public var headers: Operations.ProjectsListCards.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4241,9 +4322,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_cards.Input.Path, - query: Operations.projects_sol_list_hyphen_cards.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_cards.Input.Headers = .init() + path: Operations.ProjectsListCards.Input.Path, + query: Operations.ProjectsListCards.Input.Query = .init(), + headers: Operations.ProjectsListCards.Input.Headers = .init() ) { self.path = path self.query = query @@ -4255,26 +4336,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_cards.Output.Ok.Headers + public var headers: Operations.ProjectsListCards.Output.Ok.Headers /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/GET/responses/200/content/application\/json`. - case json([Components.Schemas.project_hyphen_card]) + case json([Components.Schemas.ProjectCard]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.project_hyphen_card] { + public var json: [Components.Schemas.ProjectCard] { get throws { switch self { case let .json(body): @@ -4284,15 +4365,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_cards.Output.Ok.Body + public var body: Operations.ProjectsListCards.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_cards.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_cards.Output.Ok.Body + headers: Operations.ProjectsListCards.Output.Ok.Headers = .init(), + body: Operations.ProjectsListCards.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4303,12 +4384,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_cards.Output.Ok) + case ok(Operations.ProjectsListCards.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_cards.Output.Ok { + public var ok: Operations.ProjectsListCards.Output.Ok { get throws { switch self { case let .ok(response): @@ -4326,12 +4407,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4349,12 +4438,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4372,12 +4461,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/get(projects/list-cards)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4429,7 +4518,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /projects/columns/{column_id}/cards`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)`. - public enum projects_sol_create_hyphen_card { + public enum ProjectsCreateCard { public static let id: Swift.String = "projects/create-card" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/path`. @@ -4437,32 +4526,32 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_create_hyphen_card.Input.Path + public var path: Operations.ProjectsCreateCard.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_create_hyphen_card.Input.Headers + public var headers: Operations.ProjectsCreateCard.Input.Headers /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The project card's note @@ -4481,36 +4570,36 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case1`. - case case1(Operations.projects_sol_create_hyphen_card.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ProjectsCreateCard.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case2`. public struct Case2Payload: Codable, Hashable, Sendable { /// The unique identifier of the content associated with the card /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case2/content_id`. - public var content_id: Swift.Int + public var contentId: Swift.Int /// The piece of content associated with the card /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case2/content_type`. - public var content_type: Swift.String + public var contentType: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: - /// - content_id: The unique identifier of the content associated with the card - /// - content_type: The piece of content associated with the card + /// - contentId: The unique identifier of the content associated with the card + /// - contentType: The piece of content associated with the card public init( - content_id: Swift.Int, - content_type: Swift.String + contentId: Swift.Int, + contentType: Swift.String ) { - self.content_id = content_id - self.content_type = content_type + self.contentId = contentId + self.contentType = contentType } public enum CodingKeys: String, CodingKey { - case content_id - case content_type + case contentId = "content_id" + case contentType = "content_type" } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/json/case2`. - case case2(Operations.projects_sol_create_hyphen_card.Input.Body.jsonPayload.Case2Payload) + case case2(Operations.ProjectsCreateCard.Input.Body.JsonPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -4541,9 +4630,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_card.Input.Body.jsonPayload) + case json(Operations.ProjectsCreateCard.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_create_hyphen_card.Input.Body + public var body: Operations.ProjectsCreateCard.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4551,9 +4640,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_create_hyphen_card.Input.Path, - headers: Operations.projects_sol_create_hyphen_card.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_card.Input.Body + path: Operations.ProjectsCreateCard.Input.Path, + headers: Operations.ProjectsCreateCard.Input.Headers = .init(), + body: Operations.ProjectsCreateCard.Input.Body ) { self.path = path self.headers = headers @@ -4565,12 +4654,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/201/content/application\/json`. - case json(Components.Schemas.project_hyphen_card) + case json(Components.Schemas.ProjectCard) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_card { + public var json: Components.Schemas.ProjectCard { get throws { switch self { case let .json(body): @@ -4580,12 +4669,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_card.Output.Created.Body + public var body: Operations.ProjectsCreateCard.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_card.Output.Created.Body) { + public init(body: Operations.ProjectsCreateCard.Output.Created.Body) { self.body = body } } @@ -4594,12 +4683,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_create_hyphen_card.Output.Created) + case created(Operations.ProjectsCreateCard.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_create_hyphen_card.Output.Created { + public var created: Operations.ProjectsCreateCard.Output.Created { get throws { switch self { case let .created(response): @@ -4617,12 +4706,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4640,12 +4737,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4663,12 +4760,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4685,21 +4782,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/422/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/422/content/json/case1`. - case validation_hyphen_error(Components.Schemas.validation_hyphen_error) + case ValidationError(Components.Schemas.ValidationError) /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/422/content/json/case2`. - case validation_hyphen_error_hyphen_simple(Components.Schemas.validation_hyphen_error_hyphen_simple) + case ValidationErrorSimple(Components.Schemas.ValidationErrorSimple) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .validation_hyphen_error(try .init(from: decoder)) + self = .ValidationError(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .validation_hyphen_error_hyphen_simple(try .init(from: decoder)) + self = .ValidationErrorSimple(try .init(from: decoder)) return } catch { errors.append(error) @@ -4712,20 +4809,20 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { switch self { - case let .validation_hyphen_error(value): + case let .ValidationError(value): try value.encode(to: encoder) - case let .validation_hyphen_error_hyphen_simple(value): + case let .ValidationErrorSimple(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/422/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body.jsonPayload) + case json(Operations.ProjectsCreateCard.Output.UnprocessableContent.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body.jsonPayload { + public var json: Operations.ProjectsCreateCard.Output.UnprocessableContent.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4735,12 +4832,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body + public var body: Operations.ProjectsCreateCard.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent.Body) { + public init(body: Operations.ProjectsCreateCard.Output.UnprocessableContent.Body) { self.body = body } } @@ -4749,12 +4846,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent) + case unprocessableContent(Operations.ProjectsCreateCard.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.projects_sol_create_hyphen_card.Output.UnprocessableContent { + public var unprocessableContent: Operations.ProjectsCreateCard.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -4771,20 +4868,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/errorsPayload/code`. + public var documentationUrl: Swift.String? + /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/ErrorsPayload/code`. public var code: Swift.String? - /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/errorsPayload/message`. + /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/ErrorsPayload/message`. public var message: Swift.String? - /// Creates a new `errorsPayloadPayload`. + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - code: @@ -4802,41 +4899,41 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/errors`. - public typealias errorsPayload = [Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayloadPayload] + public typealias ErrorsPayload = [Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayloadPayload] /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/json/errors`. - public var errors: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayload? - /// Creates a new `jsonPayload`. + public var errors: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil, - errors: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload.errorsPayload? = nil + documentationUrl: Swift.String? = nil, + errors: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload.ErrorsPayload? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/cards/POST/responses/503/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload) + case json(Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body.jsonPayload { + public var json: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4846,12 +4943,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body + public var body: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable.Body) { + public init(body: Operations.ProjectsCreateCard.Output.ServiceUnavailable.Body) { self.body = body } } @@ -4860,12 +4957,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/cards/post(projects/create-card)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable) + case serviceUnavailable(Operations.ProjectsCreateCard.Output.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Operations.projects_sol_create_hyphen_card.Output.ServiceUnavailable { + public var serviceUnavailable: Operations.ProjectsCreateCard.Output.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4917,7 +5014,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /projects/columns/{column_id}/moves`. /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)`. - public enum projects_sol_move_hyphen_column { + public enum ProjectsMoveColumn { public static let id: Swift.String = "projects/move-column" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/path`. @@ -4925,37 +5022,37 @@ public enum Operations { /// The unique identifier of the column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/path/column_id`. - public var column_id: Components.Parameters.column_hyphen_id + public var columnId: Components.Parameters.ColumnId /// Creates a new `Path`. /// /// - Parameters: - /// - column_id: The unique identifier of the column. - public init(column_id: Components.Parameters.column_hyphen_id) { - self.column_id = column_id + /// - columnId: The unique identifier of the column. + public init(columnId: Components.Parameters.ColumnId) { + self.columnId = columnId } } - public var path: Operations.projects_sol_move_hyphen_column.Input.Path + public var path: Operations.ProjectsMoveColumn.Input.Path /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_move_hyphen_column.Input.Headers + public var headers: Operations.ProjectsMoveColumn.Input.Headers /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column. /// /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/requestBody/json/position`. public var position: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - position: The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column. @@ -4967,9 +5064,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_column.Input.Body.jsonPayload) + case json(Operations.ProjectsMoveColumn.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_move_hyphen_column.Input.Body + public var body: Operations.ProjectsMoveColumn.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4977,9 +5074,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_move_hyphen_column.Input.Path, - headers: Operations.projects_sol_move_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_move_hyphen_column.Input.Body + path: Operations.ProjectsMoveColumn.Input.Path, + headers: Operations.ProjectsMoveColumn.Input.Headers = .init(), + body: Operations.ProjectsMoveColumn.Input.Body ) { self.path = path self.headers = headers @@ -4991,20 +5088,20 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// Creates a new `jsonPayload`. + public struct JsonPayload: Codable, Hashable, Sendable { + /// Creates a new `JsonPayload`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) } } /// - Remark: Generated from `#/paths/projects/columns/{column_id}/moves/POST/responses/201/content/application\/json`. - case json(Operations.projects_sol_move_hyphen_column.Output.Created.Body.jsonPayload) + case json(Operations.ProjectsMoveColumn.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_move_hyphen_column.Output.Created.Body.jsonPayload { + public var json: Operations.ProjectsMoveColumn.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5014,12 +5111,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_move_hyphen_column.Output.Created.Body + public var body: Operations.ProjectsMoveColumn.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_move_hyphen_column.Output.Created.Body) { + public init(body: Operations.ProjectsMoveColumn.Output.Created.Body) { self.body = body } } @@ -5028,12 +5125,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_move_hyphen_column.Output.Created) + case created(Operations.ProjectsMoveColumn.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_move_hyphen_column.Output.Created { + public var created: Operations.ProjectsMoveColumn.Output.Created { get throws { switch self { case let .created(response): @@ -5051,12 +5148,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5074,12 +5179,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5097,12 +5202,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -5120,12 +5225,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/columns/{column_id}/moves/post(projects/move-column)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5177,7 +5282,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)`. - public enum projects_sol_get { + public enum ProjectsGet { public static let id: Swift.String = "projects/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/GET/path`. @@ -5185,36 +5290,36 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_get.Input.Path + public var path: Operations.ProjectsGet.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_get.Input.Headers + public var headers: Operations.ProjectsGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_get.Input.Path, - headers: Operations.projects_sol_get.Input.Headers = .init() + path: Operations.ProjectsGet.Input.Path, + headers: Operations.ProjectsGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5225,12 +5330,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.project) + case json(Components.Schemas.Project) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project { + public var json: Components.Schemas.Project { get throws { switch self { case let .json(body): @@ -5240,12 +5345,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_get.Output.Ok.Body + public var body: Operations.ProjectsGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_get.Output.Ok.Body) { + public init(body: Operations.ProjectsGet.Output.Ok.Body) { self.body = body } } @@ -5254,12 +5359,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_get.Output.Ok) + case ok(Operations.ProjectsGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_get.Output.Ok { + public var ok: Operations.ProjectsGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -5277,12 +5382,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5300,12 +5413,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5323,12 +5436,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/get(projects/get)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5380,7 +5493,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)`. - public enum projects_sol_update { + public enum ProjectsUpdate { public static let id: Swift.String = "projects/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/path`. @@ -5388,32 +5501,32 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_update.Input.Path + public var path: Operations.ProjectsUpdate.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_update.Input.Headers + public var headers: Operations.ProjectsUpdate.Input.Headers /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the project /// /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/json/name`. @@ -5429,7 +5542,7 @@ public enum Operations { /// The baseline permission that all organization members have on this project /// /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/json/organization_permission`. - @frozen public enum organization_permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrganizationPermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -5438,44 +5551,44 @@ public enum Operations { /// The baseline permission that all organization members have on this project /// /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/json/organization_permission`. - public var organization_permission: Operations.projects_sol_update.Input.Body.jsonPayload.organization_permissionPayload? + public var organizationPermission: Operations.ProjectsUpdate.Input.Body.JsonPayload.OrganizationPermissionPayload? /// Whether or not this project can be seen by everyone. /// /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/json/private`. public var _private: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the project /// - body: Body of the project /// - state: State of the project; either 'open' or 'closed' - /// - organization_permission: The baseline permission that all organization members have on this project + /// - organizationPermission: The baseline permission that all organization members have on this project /// - _private: Whether or not this project can be seen by everyone. public init( name: Swift.String? = nil, body: Swift.String? = nil, state: Swift.String? = nil, - organization_permission: Operations.projects_sol_update.Input.Body.jsonPayload.organization_permissionPayload? = nil, + organizationPermission: Operations.ProjectsUpdate.Input.Body.JsonPayload.OrganizationPermissionPayload? = nil, _private: Swift.Bool? = nil ) { self.name = name self.body = body self.state = state - self.organization_permission = organization_permission + self.organizationPermission = organizationPermission self._private = _private } public enum CodingKeys: String, CodingKey { case name case body case state - case organization_permission + case organizationPermission = "organization_permission" case _private = "private" } } /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.projects_sol_update.Input.Body.jsonPayload) + case json(Operations.ProjectsUpdate.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_update.Input.Body? + public var body: Operations.ProjectsUpdate.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -5483,9 +5596,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_update.Input.Path, - headers: Operations.projects_sol_update.Input.Headers = .init(), - body: Operations.projects_sol_update.Input.Body? = nil + path: Operations.ProjectsUpdate.Input.Path, + headers: Operations.ProjectsUpdate.Input.Headers = .init(), + body: Operations.ProjectsUpdate.Input.Body? = nil ) { self.path = path self.headers = headers @@ -5497,12 +5610,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.project) + case json(Components.Schemas.Project) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project { + public var json: Components.Schemas.Project { get throws { switch self { case let .json(body): @@ -5512,12 +5625,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_update.Output.Ok.Body + public var body: Operations.ProjectsUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_update.Output.Ok.Body) { + public init(body: Operations.ProjectsUpdate.Output.Ok.Body) { self.body = body } } @@ -5526,12 +5639,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_update.Output.Ok) + case ok(Operations.ProjectsUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_update.Output.Ok { + public var ok: Operations.ProjectsUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -5553,12 +5666,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.projects_sol_update.Output.NotFound) + case notFound(Operations.ProjectsUpdate.Output.NotFound) + /// Not Found if the authenticated user does not have access to the project + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.projects_sol_update.Output.NotFound { + public var notFound: Operations.ProjectsUpdate.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -5576,12 +5697,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5598,41 +5727,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content/json/errors`. public var errors: [Swift.String]? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/{project_id}/PATCH/responses/403/content/application\/json`. - case json(Operations.projects_sol_update.Output.Forbidden.Body.jsonPayload) + case json(Operations.ProjectsUpdate.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_update.Output.Forbidden.Body.jsonPayload { + public var json: Operations.ProjectsUpdate.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5642,12 +5771,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_update.Output.Forbidden.Body + public var body: Operations.ProjectsUpdate.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_update.Output.Forbidden.Body) { + public init(body: Operations.ProjectsUpdate.Output.Forbidden.Body) { self.body = body } } @@ -5656,12 +5785,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.projects_sol_update.Output.Forbidden) + case forbidden(Operations.ProjectsUpdate.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.projects_sol_update.Output.Forbidden { + public var forbidden: Operations.ProjectsUpdate.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5679,12 +5808,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5702,12 +5831,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -5725,12 +5854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/patch(projects/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -5782,7 +5911,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /projects/{project_id}`. /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)`. - public enum projects_sol_delete { + public enum ProjectsDelete { public static let id: Swift.String = "projects/delete" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/path`. @@ -5790,36 +5919,36 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_delete.Input.Path + public var path: Operations.ProjectsDelete.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_delete.Input.Headers + public var headers: Operations.ProjectsDelete.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_delete.Input.Path, - headers: Operations.projects_sol_delete.Input.Headers = .init() + path: Operations.ProjectsDelete.Input.Path, + headers: Operations.ProjectsDelete.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5835,12 +5964,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.projects_sol_delete.Output.NoContent) + case noContent(Operations.ProjectsDelete.Output.NoContent) + /// Delete Success + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.projects_sol_delete.Output.NoContent { + public var noContent: Operations.ProjectsDelete.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5858,12 +5995,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5880,41 +6025,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content/json/errors`. public var errors: [Swift.String]? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// - Remark: Generated from `#/paths/projects/{project_id}/DELETE/responses/403/content/application\/json`. - case json(Operations.projects_sol_delete.Output.Forbidden.Body.jsonPayload) + case json(Operations.ProjectsDelete.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.projects_sol_delete.Output.Forbidden.Body.jsonPayload { + public var json: Operations.ProjectsDelete.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5924,12 +6069,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_delete.Output.Forbidden.Body + public var body: Operations.ProjectsDelete.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_delete.Output.Forbidden.Body) { + public init(body: Operations.ProjectsDelete.Output.Forbidden.Body) { self.body = body } } @@ -5938,12 +6083,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.projects_sol_delete.Output.Forbidden) + case forbidden(Operations.ProjectsDelete.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.projects_sol_delete.Output.Forbidden { + public var forbidden: Operations.ProjectsDelete.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5961,12 +6106,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5984,12 +6129,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -6007,12 +6152,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/delete(projects/delete)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6064,7 +6209,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/{project_id}/collaborators`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)`. - public enum projects_sol_list_hyphen_collaborators { + public enum ProjectsListCollaborators { public static let id: Swift.String = "projects/list-collaborators" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/path`. @@ -6072,20 +6217,20 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_list_hyphen_collaborators.Input.Path + public var path: Operations.ProjectsListCollaborators.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/query/affiliation`. - @frozen public enum affiliationPayload: String, Codable, Hashable, Sendable { + @frozen public enum AffiliationPayload: String, Codable, Hashable, Sendable, CaseIterable { case outside = "outside" case direct = "direct" case all = "all" @@ -6093,44 +6238,44 @@ public enum Operations { /// Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's organization. `direct` means collaborators with permissions to a project, regardless of organization membership status. `all` means all collaborators the authenticated user can see. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/query/affiliation`. - public var affiliation: Operations.projects_sol_list_hyphen_collaborators.Input.Query.affiliationPayload? + public var affiliation: Operations.ProjectsListCollaborators.Input.Query.AffiliationPayload? /// 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)." /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - affiliation: Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's organization. `direct` means collaborators with permissions to a project, regardless of organization membership status. `all` means all collaborators the authenticated user can see. - /// - 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)." + /// - perPage: 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)." public init( - affiliation: Operations.projects_sol_list_hyphen_collaborators.Input.Query.affiliationPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + affiliation: Operations.ProjectsListCollaborators.Input.Query.AffiliationPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.affiliation = affiliation - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_collaborators.Input.Query + public var query: Operations.ProjectsListCollaborators.Input.Query /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_collaborators.Input.Headers + public var headers: Operations.ProjectsListCollaborators.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6138,9 +6283,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_collaborators.Input.Path, - query: Operations.projects_sol_list_hyphen_collaborators.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_collaborators.Input.Headers = .init() + path: Operations.ProjectsListCollaborators.Input.Path, + query: Operations.ProjectsListCollaborators.Input.Query = .init(), + headers: Operations.ProjectsListCollaborators.Input.Headers = .init() ) { self.path = path self.query = query @@ -6152,26 +6297,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Headers + public var headers: Operations.ProjectsListCollaborators.Output.Ok.Headers /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -6181,15 +6326,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Body + public var body: Operations.ProjectsListCollaborators.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_collaborators.Output.Ok.Body + headers: Operations.ProjectsListCollaborators.Output.Ok.Headers = .init(), + body: Operations.ProjectsListCollaborators.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6200,12 +6345,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_collaborators.Output.Ok) + case ok(Operations.ProjectsListCollaborators.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_collaborators.Output.Ok { + public var ok: Operations.ProjectsListCollaborators.Output.Ok { get throws { switch self { case let .ok(response): @@ -6223,12 +6368,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6246,12 +6391,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6269,12 +6414,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6292,12 +6445,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6315,12 +6468,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/get(projects/list-collaborators)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6372,7 +6525,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)`. - public enum projects_sol_add_hyphen_collaborator { + public enum ProjectsAddCollaborator { public static let id: Swift.String = "projects/add-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/path`. @@ -6380,45 +6533,45 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. + /// - projectId: The unique identifier of the project. /// - username: The handle for the GitHub user account. public init( - project_id: Components.Parameters.project_hyphen_id, - username: Components.Parameters.username + projectId: Components.Parameters.ProjectId, + username: Components.Parameters.Username ) { - self.project_id = project_id + self.projectId = projectId self.username = username } } - public var path: Operations.projects_sol_add_hyphen_collaborator.Input.Path + public var path: Operations.ProjectsAddCollaborator.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_add_hyphen_collaborator.Input.Headers + public var headers: Operations.ProjectsAddCollaborator.Input.Headers /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant the collaborator. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -6426,12 +6579,12 @@ public enum Operations { /// The permission to grant the collaborator. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/requestBody/json/permission`. - public var permission: Operations.projects_sol_add_hyphen_collaborator.Input.Body.jsonPayload.permissionPayload? - /// Creates a new `jsonPayload`. + public var permission: Operations.ProjectsAddCollaborator.Input.Body.JsonPayload.PermissionPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant the collaborator. - public init(permission: Operations.projects_sol_add_hyphen_collaborator.Input.Body.jsonPayload.permissionPayload? = nil) { + public init(permission: Operations.ProjectsAddCollaborator.Input.Body.JsonPayload.PermissionPayload? = nil) { self.permission = permission } public enum CodingKeys: String, CodingKey { @@ -6439,9 +6592,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.projects_sol_add_hyphen_collaborator.Input.Body.jsonPayload) + case json(Operations.ProjectsAddCollaborator.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_add_hyphen_collaborator.Input.Body? + public var body: Operations.ProjectsAddCollaborator.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -6449,9 +6602,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_add_hyphen_collaborator.Input.Path, - headers: Operations.projects_sol_add_hyphen_collaborator.Input.Headers = .init(), - body: Operations.projects_sol_add_hyphen_collaborator.Input.Body? = nil + path: Operations.ProjectsAddCollaborator.Input.Path, + headers: Operations.ProjectsAddCollaborator.Input.Headers = .init(), + body: Operations.ProjectsAddCollaborator.Input.Body? = nil ) { self.path = path self.headers = headers @@ -6468,12 +6621,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.projects_sol_add_hyphen_collaborator.Output.NoContent) + case noContent(Operations.ProjectsAddCollaborator.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.projects_sol_add_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.ProjectsAddCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6491,12 +6652,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6514,12 +6675,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6537,12 +6698,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6560,12 +6729,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6583,12 +6752,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/put(projects/add-collaborator)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6640,7 +6809,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /projects/{project_id}/collaborators/{username}`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)`. - public enum projects_sol_remove_hyphen_collaborator { + public enum ProjectsRemoveCollaborator { public static let id: Swift.String = "projects/remove-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/DELETE/path`. @@ -6648,45 +6817,45 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/DELETE/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. + /// - projectId: The unique identifier of the project. /// - username: The handle for the GitHub user account. public init( - project_id: Components.Parameters.project_hyphen_id, - username: Components.Parameters.username + projectId: Components.Parameters.ProjectId, + username: Components.Parameters.Username ) { - self.project_id = project_id + self.projectId = projectId self.username = username } } - public var path: Operations.projects_sol_remove_hyphen_collaborator.Input.Path + public var path: Operations.ProjectsRemoveCollaborator.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_remove_hyphen_collaborator.Input.Headers + public var headers: Operations.ProjectsRemoveCollaborator.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_remove_hyphen_collaborator.Input.Path, - headers: Operations.projects_sol_remove_hyphen_collaborator.Input.Headers = .init() + path: Operations.ProjectsRemoveCollaborator.Input.Path, + headers: Operations.ProjectsRemoveCollaborator.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6702,12 +6871,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.projects_sol_remove_hyphen_collaborator.Output.NoContent) + case noContent(Operations.ProjectsRemoveCollaborator.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.projects_sol_remove_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.ProjectsRemoveCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6725,12 +6902,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6748,12 +6933,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6771,12 +6956,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6794,12 +6979,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6817,12 +7002,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/delete(projects/remove-collaborator)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6874,7 +7059,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/{project_id}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)`. - public enum projects_sol_get_hyphen_permission_hyphen_for_hyphen_user { + public enum ProjectsGetPermissionForUser { public static let id: Swift.String = "projects/get-permission-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/path`. @@ -6882,45 +7067,45 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. + /// - projectId: The unique identifier of the project. /// - username: The handle for the GitHub user account. public init( - project_id: Components.Parameters.project_hyphen_id, - username: Components.Parameters.username + projectId: Components.Parameters.ProjectId, + username: Components.Parameters.Username ) { - self.project_id = project_id + self.projectId = projectId self.username = username } } - public var path: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ProjectsGetPermissionForUser.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ProjectsGetPermissionForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Path, - headers: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ProjectsGetPermissionForUser.Input.Path, + headers: Operations.ProjectsGetPermissionForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6931,12 +7116,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/collaborators/{username}/permission/GET/responses/200/content/application\/json`. - case json(Components.Schemas.project_hyphen_collaborator_hyphen_permission) + case json(Components.Schemas.ProjectCollaboratorPermission) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_collaborator_hyphen_permission { + public var json: Components.Schemas.ProjectCollaboratorPermission { get throws { switch self { case let .json(body): @@ -6946,12 +7131,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ProjectsGetPermissionForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.ProjectsGetPermissionForUser.Output.Ok.Body) { self.body = body } } @@ -6960,12 +7145,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ProjectsGetPermissionForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_get_hyphen_permission_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ProjectsGetPermissionForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6983,12 +7168,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7006,12 +7191,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7029,12 +7214,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7052,12 +7245,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7075,12 +7268,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/collaborators/{username}/permission/get(projects/get-permission-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7132,7 +7325,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)`. - public enum projects_sol_list_hyphen_columns { + public enum ProjectsListColumns { public static let id: Swift.String = "projects/list-columns" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/path`. @@ -7140,52 +7333,52 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_list_hyphen_columns.Input.Path + public var path: Operations.ProjectsListColumns.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_columns.Input.Query + public var query: Operations.ProjectsListColumns.Input.Query /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_columns.Input.Headers + public var headers: Operations.ProjectsListColumns.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7193,9 +7386,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_columns.Input.Path, - query: Operations.projects_sol_list_hyphen_columns.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_columns.Input.Headers = .init() + path: Operations.ProjectsListColumns.Input.Path, + query: Operations.ProjectsListColumns.Input.Query = .init(), + headers: Operations.ProjectsListColumns.Input.Headers = .init() ) { self.path = path self.query = query @@ -7207,26 +7400,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_columns.Output.Ok.Headers + public var headers: Operations.ProjectsListColumns.Output.Ok.Headers /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/GET/responses/200/content/application\/json`. - case json([Components.Schemas.project_hyphen_column]) + case json([Components.Schemas.ProjectColumn]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.project_hyphen_column] { + public var json: [Components.Schemas.ProjectColumn] { get throws { switch self { case let .json(body): @@ -7236,15 +7429,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_columns.Output.Ok.Body + public var body: Operations.ProjectsListColumns.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_columns.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_columns.Output.Ok.Body + headers: Operations.ProjectsListColumns.Output.Ok.Headers = .init(), + body: Operations.ProjectsListColumns.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7255,12 +7448,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_columns.Output.Ok) + case ok(Operations.ProjectsListColumns.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_columns.Output.Ok { + public var ok: Operations.ProjectsListColumns.Output.Ok { get throws { switch self { case let .ok(response): @@ -7278,12 +7471,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7301,12 +7502,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7324,12 +7525,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/get(projects/list-columns)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7381,7 +7582,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /projects/{project_id}/columns`. /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)`. - public enum projects_sol_create_hyphen_column { + public enum ProjectsCreateColumn { public static let id: Swift.String = "projects/create-column" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/path`. @@ -7389,37 +7590,37 @@ public enum Operations { /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - project_id: The unique identifier of the project. - public init(project_id: Components.Parameters.project_hyphen_id) { - self.project_id = project_id + /// - projectId: The unique identifier of the project. + public init(projectId: Components.Parameters.ProjectId) { + self.projectId = projectId } } - public var path: Operations.projects_sol_create_hyphen_column.Input.Path + public var path: Operations.ProjectsCreateColumn.Input.Path /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_create_hyphen_column.Input.Headers + public var headers: Operations.ProjectsCreateColumn.Input.Headers /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the project column /// /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/requestBody/json/name`. public var name: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the project column @@ -7431,9 +7632,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_column.Input.Body.jsonPayload) + case json(Operations.ProjectsCreateColumn.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_create_hyphen_column.Input.Body + public var body: Operations.ProjectsCreateColumn.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7441,9 +7642,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_create_hyphen_column.Input.Path, - headers: Operations.projects_sol_create_hyphen_column.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_column.Input.Body + path: Operations.ProjectsCreateColumn.Input.Path, + headers: Operations.ProjectsCreateColumn.Input.Headers = .init(), + body: Operations.ProjectsCreateColumn.Input.Body ) { self.path = path self.headers = headers @@ -7455,12 +7656,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/projects/{project_id}/columns/POST/responses/201/content/application\/json`. - case json(Components.Schemas.project_hyphen_column) + case json(Components.Schemas.ProjectColumn) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project_hyphen_column { + public var json: Components.Schemas.ProjectColumn { get throws { switch self { case let .json(body): @@ -7470,12 +7671,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_column.Output.Created.Body + public var body: Operations.ProjectsCreateColumn.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_column.Output.Created.Body) { + public init(body: Operations.ProjectsCreateColumn.Output.Created.Body) { self.body = body } } @@ -7484,12 +7685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_create_hyphen_column.Output.Created) + case created(Operations.ProjectsCreateColumn.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_create_hyphen_column.Output.Created { + public var created: Operations.ProjectsCreateColumn.Output.Created { get throws { switch self { case let .created(response): @@ -7507,12 +7708,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7530,12 +7739,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7553,12 +7762,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -7576,12 +7785,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//projects/{project_id}/columns/post(projects/create-column)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7633,7 +7842,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)`. - public enum projects_sol_list_hyphen_for_hyphen_repo { + public enum ProjectsListForRepo { public static let id: Swift.String = "projects/list-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/path`. @@ -7641,29 +7850,29 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ProjectsListForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -7671,44 +7880,44 @@ public enum Operations { /// Indicates the state of the projects to return. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/query/state`. - public var state: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Query.statePayload? + public var state: Operations.ProjectsListForRepo.Input.Query.StatePayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - state: Indicates the state of the projects to return. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Query.statePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + state: Operations.ProjectsListForRepo.Input.Query.StatePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ProjectsListForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ProjectsListForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7716,9 +7925,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ProjectsListForRepo.Input.Path, + query: Operations.ProjectsListForRepo.Input.Query = .init(), + headers: Operations.ProjectsListForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -7730,26 +7939,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ProjectsListForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/GET/responses/200/content/application\/json`. - case json([Components.Schemas.project]) + case json([Components.Schemas.Project]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.project] { + public var json: [Components.Schemas.Project] { get throws { switch self { case let .json(body): @@ -7759,15 +7968,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ProjectsListForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ProjectsListForRepo.Output.Ok.Headers = .init(), + body: Operations.ProjectsListForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7778,12 +7987,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ProjectsListForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ProjectsListForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -7801,12 +8010,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7824,12 +8033,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7847,12 +8056,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7870,12 +8079,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -7893,12 +8102,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/get(projects/list-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -7950,7 +8159,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/projects`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)`. - public enum projects_sol_create_hyphen_for_hyphen_repo { + public enum ProjectsCreateForRepo { public static let id: Swift.String = "projects/create-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/path`. @@ -7958,41 +8167,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ProjectsCreateForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ProjectsCreateForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the project. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/requestBody/json/name`. @@ -8001,7 +8210,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/requestBody/json/body`. public var body: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the project. @@ -8019,9 +8228,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ProjectsCreateForRepo.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.ProjectsCreateForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8029,9 +8238,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Input.Body + path: Operations.ProjectsCreateForRepo.Input.Path, + headers: Operations.ProjectsCreateForRepo.Input.Headers = .init(), + body: Operations.ProjectsCreateForRepo.Input.Body ) { self.path = path self.headers = headers @@ -8043,12 +8252,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/projects/POST/responses/201/content/application\/json`. - case json(Components.Schemas.project) + case json(Components.Schemas.Project) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project { + public var json: Components.Schemas.Project { get throws { switch self { case let .json(body): @@ -8058,12 +8267,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Output.Created.Body + public var body: Operations.ProjectsCreateForRepo.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_for_hyphen_repo.Output.Created.Body) { + public init(body: Operations.ProjectsCreateForRepo.Output.Created.Body) { self.body = body } } @@ -8072,12 +8281,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_create_hyphen_for_hyphen_repo.Output.Created) + case created(Operations.ProjectsCreateForRepo.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_create_hyphen_for_hyphen_repo.Output.Created { + public var created: Operations.ProjectsCreateForRepo.Output.Created { get throws { switch self { case let .created(response): @@ -8095,12 +8304,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8118,12 +8327,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8141,12 +8350,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8164,12 +8373,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -8187,12 +8396,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/projects/post(projects/create-for-repo)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -8244,25 +8453,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/projects`. /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)`. - public enum projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ProjectsCreateForAuthenticatedUser { public static let id: Swift.String = "projects/create-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/projects/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ProjectsCreateForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/projects/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/projects/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the project /// /// - Remark: Generated from `#/paths/user/projects/POST/requestBody/json/name`. @@ -8271,7 +8480,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/projects/POST/requestBody/json/body`. public var body: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the project @@ -8289,17 +8498,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/projects/POST/requestBody/content/application\/json`. - case json(Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.ProjectsCreateForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.ProjectsCreateForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.ProjectsCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.ProjectsCreateForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -8310,12 +8519,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/projects/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/projects/POST/responses/201/content/application\/json`. - case json(Components.Schemas.project) + case json(Components.Schemas.Project) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.project { + public var json: Components.Schemas.Project { get throws { switch self { case let .json(body): @@ -8325,12 +8534,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.ProjectsCreateForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.ProjectsCreateForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -8339,12 +8548,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.ProjectsCreateForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.projects_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.ProjectsCreateForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -8362,12 +8571,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8385,12 +8602,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8408,12 +8625,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8431,12 +8648,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/projects/post(projects/create-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -8488,7 +8705,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/projects`. /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)`. - public enum projects_sol_list_hyphen_for_hyphen_user { + public enum ProjectsListForUser { public static let id: Swift.String = "projects/list-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/projects/GET/path`. @@ -8496,20 +8713,20 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/projects/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ProjectsListForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/projects/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/projects/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -8517,44 +8734,44 @@ public enum Operations { /// Indicates the state of the projects to return. /// /// - Remark: Generated from `#/paths/users/{username}/projects/GET/query/state`. - public var state: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Query.statePayload? + public var state: Operations.ProjectsListForUser.Input.Query.StatePayload? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/projects/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/projects/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - state: Indicates the state of the projects to return. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Query.statePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + state: Operations.ProjectsListForUser.Input.Query.StatePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Query + public var query: Operations.ProjectsListForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/projects/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ProjectsListForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8562,9 +8779,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ProjectsListForUser.Input.Path, + query: Operations.ProjectsListForUser.Input.Query = .init(), + headers: Operations.ProjectsListForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -8576,26 +8793,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/projects/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/projects/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.ProjectsListForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/projects/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/projects/GET/responses/200/content/application\/json`. - case json([Components.Schemas.project]) + case json([Components.Schemas.Project]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.project] { + public var json: [Components.Schemas.Project] { get throws { switch self { case let .json(body): @@ -8605,15 +8822,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ProjectsListForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.ProjectsListForUser.Output.Ok.Headers = .init(), + body: Operations.ProjectsListForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8624,12 +8841,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ProjectsListForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.projects_sol_list_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ProjectsListForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -8647,12 +8864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/projects/get(projects/list-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): From bac994b5693a56360713864323328a7737392cb8 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:04:35 -0700 Subject: [PATCH 26/46] Commit via running ake Sources/pulls --- Sources/pulls/Client.swift | 474 +-- Sources/pulls/Types.swift | 5853 ++++++++++++++++++------------------ 2 files changed, 3192 insertions(+), 3135 deletions(-) diff --git a/Sources/pulls/Client.swift b/Sources/pulls/Client.swift index a591521912..5b2413c490 100644 --- a/Sources/pulls/Client.swift +++ b/Sources/pulls/Client.swift @@ -57,10 +57,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)`. - public func pulls_sol_list(_ input: Operations.pulls_sol_list.Input) async throws -> Operations.pulls_sol_list.Output { + public func pullsList(_ input: Operations.PullsList.Input) async throws -> Operations.PullsList.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list.id, + forOperation: Operations.PullsList.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls", @@ -114,7 +114,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -132,13 +132,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list.Output.Ok.Body + let body: Operations.PullsList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -148,7 +148,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pull_hyphen_request_hyphen_simple].self, + [Components.Schemas.PullRequestSimple].self, from: responseBody, transforming: { value in .json(value) @@ -165,7 +165,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -175,7 +175,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -214,10 +214,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)`. - public func pulls_sol_create(_ input: Operations.pulls_sol_create.Input) async throws -> Operations.pulls_sol_create.Output { + public func pullsCreate(_ input: Operations.PullsCreate.Input) async throws -> Operations.PullsCreate.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_create.id, + forOperation: Operations.PullsCreate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls", @@ -249,13 +249,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.pulls_sol_create.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsCreate.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_create.Output.Created.Body + let body: Operations.PullsCreate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -265,7 +265,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request.self, + Components.Schemas.PullRequest.self, from: responseBody, transforming: { value in .json(value) @@ -280,7 +280,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -290,7 +290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -302,7 +302,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -312,7 +312,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -348,10 +348,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/get(pulls/list-review-comments-for-repo)`. - public func pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output { + public func pullsListReviewCommentsForRepo(_ input: Operations.PullsListReviewCommentsForRepo.Input) async throws -> Operations.PullsListReviewCommentsForRepo.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.id, + forOperation: Operations.PullsListReviewCommentsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments", @@ -391,7 +391,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -409,13 +409,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListReviewCommentsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.PullsListReviewCommentsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -425,7 +425,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment].self, + [Components.Schemas.PullRequestReviewComment].self, from: responseBody, transforming: { value in .json(value) @@ -463,17 +463,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)`. - public func pulls_sol_get_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output { + public func pullsGetReviewComment(_ input: Operations.PullsGetReviewComment.Input) async throws -> Operations.PullsGetReviewComment.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_get_hyphen_review_hyphen_comment.id, + forOperation: Operations.PullsGetReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -491,7 +491,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output.Ok.Body + let body: Operations.PullsGetReviewComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -501,7 +501,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.self, + Components.Schemas.PullRequestReviewComment.self, from: responseBody, transforming: { value in .json(value) @@ -513,7 +513,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -523,7 +523,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -558,17 +558,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/patch(pulls/update-review-comment)`. - public func pulls_sol_update_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output { + public func pullsUpdateReviewComment(_ input: Operations.PullsUpdateReviewComment.Input) async throws -> Operations.PullsUpdateReviewComment.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_update_hyphen_review_hyphen_comment.id, + forOperation: Operations.PullsUpdateReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -595,7 +595,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output.Ok.Body + let body: Operations.PullsUpdateReviewComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -605,7 +605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.self, + Components.Schemas.PullRequestReviewComment.self, from: responseBody, transforming: { value in .json(value) @@ -633,17 +633,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)`. - public func pulls_sol_delete_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Output { + public func pullsDeleteReviewComment(_ input: Operations.PullsDeleteReviewComment.Input) async throws -> Operations.PullsDeleteReviewComment.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.id, + forOperation: Operations.PullsDeleteReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -663,7 +663,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -673,7 +673,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -723,17 +723,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)`. - public func pulls_sol_get(_ input: Operations.pulls_sol_get.Input) async throws -> Operations.pulls_sol_get.Output { + public func pullsGet(_ input: Operations.PullsGet.Input) async throws -> Operations.PullsGet.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_get.id, + forOperation: Operations.PullsGet.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -751,7 +751,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_get.Output.Ok.Body + let body: Operations.PullsGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -761,7 +761,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request.self, + Components.Schemas.PullRequest.self, from: responseBody, transforming: { value in .json(value) @@ -775,7 +775,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -785,7 +785,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -797,7 +797,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 406: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.unacceptable.Body + let body: Components.Responses.Unacceptable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -807,7 +807,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -819,7 +819,7 @@ public struct Client: APIProtocol { return .notAcceptable(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -829,7 +829,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -841,7 +841,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -851,7 +851,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -888,17 +888,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)`. - public func pulls_sol_update(_ input: Operations.pulls_sol_update.Input) async throws -> Operations.pulls_sol_update.Output { + public func pullsUpdate(_ input: Operations.PullsUpdate.Input) async throws -> Operations.PullsUpdate.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_update.id, + forOperation: Operations.PullsUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -927,7 +927,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_update.Output.Ok.Body + let body: Operations.PullsUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -937,7 +937,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request.self, + Components.Schemas.PullRequest.self, from: responseBody, transforming: { value in .json(value) @@ -949,7 +949,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -959,7 +959,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -971,7 +971,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -981,7 +981,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1017,17 +1017,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/get(pulls/list-review-comments)`. - public func pulls_sol_list_hyphen_review_hyphen_comments(_ input: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output { + public func pullsListReviewComments(_ input: Operations.PullsListReviewComments.Input) async throws -> Operations.PullsListReviewComments.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_review_hyphen_comments.id, + forOperation: Operations.PullsListReviewComments.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1061,7 +1061,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1079,13 +1079,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListReviewComments.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Body + let body: Operations.PullsListReviewComments.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1095,7 +1095,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment].self, + [Components.Schemas.PullRequestReviewComment].self, from: responseBody, transforming: { value in .json(value) @@ -1140,17 +1140,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)`. - public func pulls_sol_create_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output { + public func pullsCreateReviewComment(_ input: Operations.PullsCreateReviewComment.Input) async throws -> Operations.PullsCreateReviewComment.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_create_hyphen_review_hyphen_comment.id, + forOperation: Operations.PullsCreateReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1176,13 +1176,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsCreateReviewComment.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Body + let body: Operations.PullsCreateReviewComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1192,7 +1192,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.self, + Components.Schemas.PullRequestReviewComment.self, from: responseBody, transforming: { value in .json(value) @@ -1207,7 +1207,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1217,7 +1217,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1229,7 +1229,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1239,7 +1239,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1277,18 +1277,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)`. - public func pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output { + public func pullsCreateReplyForReviewComment(_ input: Operations.PullsCreateReplyForReviewComment.Input) async throws -> Operations.PullsCreateReplyForReviewComment.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.id, + forOperation: Operations.PullsCreateReplyForReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/comments/{}/replies", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.comment_id + input.path.pullNumber, + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1314,13 +1314,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsCreateReplyForReviewComment.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Body + let body: Operations.PullsCreateReplyForReviewComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1330,7 +1330,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.self, + Components.Schemas.PullRequestReviewComment.self, from: responseBody, transforming: { value in .json(value) @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1355,7 +1355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1392,17 +1392,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/commits/get(pulls/list-commits)`. - public func pulls_sol_list_hyphen_commits(_ input: Operations.pulls_sol_list_hyphen_commits.Input) async throws -> Operations.pulls_sol_list_hyphen_commits.Output { + public func pullsListCommits(_ input: Operations.PullsListCommits.Input) async throws -> Operations.PullsListCommits.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_commits.id, + forOperation: Operations.PullsListCommits.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/commits", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1415,7 +1415,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1433,13 +1433,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListCommits.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Body + let body: Operations.PullsListCommits.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1449,7 +1449,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.commit].self, + [Components.Schemas.Commit].self, from: responseBody, transforming: { value in .json(value) @@ -1490,17 +1490,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)`. - public func pulls_sol_list_hyphen_files(_ input: Operations.pulls_sol_list_hyphen_files.Input) async throws -> Operations.pulls_sol_list_hyphen_files.Output { + public func pullsListFiles(_ input: Operations.PullsListFiles.Input) async throws -> Operations.PullsListFiles.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_files.id, + forOperation: Operations.PullsListFiles.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/files", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1513,7 +1513,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1531,13 +1531,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_files.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListFiles.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_files.Output.Ok.Body + let body: Operations.PullsListFiles.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1547,7 +1547,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.diff_hyphen_entry].self, + [Components.Schemas.DiffEntry].self, from: responseBody, transforming: { value in .json(value) @@ -1562,7 +1562,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1572,7 +1572,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1584,7 +1584,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1594,7 +1594,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1606,7 +1606,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1616,7 +1616,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1644,17 +1644,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)`. - public func pulls_sol_check_hyphen_if_hyphen_merged(_ input: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input) async throws -> Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output { + public func pullsCheckIfMerged(_ input: Operations.PullsCheckIfMerged.Input) async throws -> Operations.PullsCheckIfMerged.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_check_hyphen_if_hyphen_merged.id, + forOperation: Operations.PullsCheckIfMerged.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/merge", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1689,17 +1689,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)`. - public func pulls_sol_merge(_ input: Operations.pulls_sol_merge.Input) async throws -> Operations.pulls_sol_merge.Output { + public func pullsMerge(_ input: Operations.PullsMerge.Input) async throws -> Operations.PullsMerge.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_merge.id, + forOperation: Operations.PullsMerge.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/merge", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1728,7 +1728,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_merge.Output.Ok.Body + let body: Operations.PullsMerge.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1738,7 +1738,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_merge_hyphen_result.self, + Components.Schemas.PullRequestMergeResult.self, from: responseBody, transforming: { value in .json(value) @@ -1750,7 +1750,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 405: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_merge.Output.MethodNotAllowed.Body + let body: Operations.PullsMerge.Output.MethodNotAllowed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1760,7 +1760,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.pulls_sol_merge.Output.MethodNotAllowed.Body.jsonPayload.self, + Operations.PullsMerge.Output.MethodNotAllowed.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1772,7 +1772,7 @@ public struct Client: APIProtocol { return .methodNotAllowed(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_merge.Output.Conflict.Body + let body: Operations.PullsMerge.Output.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1782,7 +1782,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.pulls_sol_merge.Output.Conflict.Body.jsonPayload.self, + Operations.PullsMerge.Output.Conflict.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1794,7 +1794,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1804,7 +1804,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1816,7 +1816,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1826,7 +1826,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1838,7 +1838,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1848,7 +1848,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1876,17 +1876,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/get(pulls/list-requested-reviewers)`. - public func pulls_sol_list_hyphen_requested_hyphen_reviewers(_ input: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output { + public func pullsListRequestedReviewers(_ input: Operations.PullsListRequestedReviewers.Input) async throws -> Operations.PullsListRequestedReviewers.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.id, + forOperation: Operations.PullsListRequestedReviewers.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/requested_reviewers", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1903,13 +1903,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListRequestedReviewers.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Body + let body: Operations.PullsListRequestedReviewers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1919,7 +1919,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_request.self, + Components.Schemas.PullRequestReviewRequest.self, from: responseBody, transforming: { value in .json(value) @@ -1951,17 +1951,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)`. - public func pulls_sol_request_hyphen_reviewers(_ input: Operations.pulls_sol_request_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_request_hyphen_reviewers.Output { + public func pullsRequestReviewers(_ input: Operations.PullsRequestReviewers.Input) async throws -> Operations.PullsRequestReviewers.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_request_hyphen_reviewers.id, + forOperation: Operations.PullsRequestReviewers.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/requested_reviewers", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1990,7 +1990,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_request_hyphen_reviewers.Output.Created.Body + let body: Operations.PullsRequestReviewers.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2000,7 +2000,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_simple.self, + Components.Schemas.PullRequestSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2014,7 +2014,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2024,7 +2024,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2052,17 +2052,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)`. - public func pulls_sol_remove_hyphen_requested_hyphen_reviewers(_ input: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output { + public func pullsRemoveRequestedReviewers(_ input: Operations.PullsRemoveRequestedReviewers.Input) async throws -> Operations.PullsRemoveRequestedReviewers.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.id, + forOperation: Operations.PullsRemoveRequestedReviewers.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/requested_reviewers", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2089,7 +2089,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output.Ok.Body + let body: Operations.PullsRemoveRequestedReviewers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2099,7 +2099,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_simple.self, + Components.Schemas.PullRequestSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2111,7 +2111,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2121,7 +2121,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2156,17 +2156,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/get(pulls/list-reviews)`. - public func pulls_sol_list_hyphen_reviews(_ input: Operations.pulls_sol_list_hyphen_reviews.Input) async throws -> Operations.pulls_sol_list_hyphen_reviews.Output { + public func pullsListReviews(_ input: Operations.PullsListReviews.Input) async throws -> Operations.PullsListReviews.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_reviews.id, + forOperation: Operations.PullsListReviews.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2179,7 +2179,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2197,13 +2197,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListReviews.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Body + let body: Operations.PullsListReviews.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2213,7 +2213,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pull_hyphen_request_hyphen_review].self, + [Components.Schemas.PullRequestReview].self, from: responseBody, transforming: { value in .json(value) @@ -2260,17 +2260,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)`. - public func pulls_sol_create_hyphen_review(_ input: Operations.pulls_sol_create_hyphen_review.Input) async throws -> Operations.pulls_sol_create_hyphen_review.Output { + public func pullsCreateReview(_ input: Operations.PullsCreateReview.Input) async throws -> Operations.PullsCreateReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_create_hyphen_review.id, + forOperation: Operations.PullsCreateReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2299,7 +2299,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_create_hyphen_review.Output.Ok.Body + let body: Operations.PullsCreateReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2309,7 +2309,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -2321,7 +2321,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2331,7 +2331,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2343,7 +2343,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2353,7 +2353,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2388,18 +2388,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)`. - public func pulls_sol_get_hyphen_review(_ input: Operations.pulls_sol_get_hyphen_review.Input) async throws -> Operations.pulls_sol_get_hyphen_review.Output { + public func pullsGetReview(_ input: Operations.PullsGetReview.Input) async throws -> Operations.PullsGetReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_get_hyphen_review.id, + forOperation: Operations.PullsGetReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2417,7 +2417,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_get_hyphen_review.Output.Ok.Body + let body: Operations.PullsGetReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2427,7 +2427,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -2439,7 +2439,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2449,7 +2449,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2484,18 +2484,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)`. - public func pulls_sol_update_hyphen_review(_ input: Operations.pulls_sol_update_hyphen_review.Input) async throws -> Operations.pulls_sol_update_hyphen_review.Output { + public func pullsUpdateReview(_ input: Operations.PullsUpdateReview.Input) async throws -> Operations.PullsUpdateReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_update_hyphen_review.id, + forOperation: Operations.PullsUpdateReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2522,7 +2522,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_update_hyphen_review.Output.Ok.Body + let body: Operations.PullsUpdateReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2532,7 +2532,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -2544,7 +2544,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2554,7 +2554,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2589,18 +2589,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)`. - public func pulls_sol_delete_hyphen_pending_hyphen_review(_ input: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input) async throws -> Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output { + public func pullsDeletePendingReview(_ input: Operations.PullsDeletePendingReview.Input) async throws -> Operations.PullsDeletePendingReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.id, + forOperation: Operations.PullsDeletePendingReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2618,7 +2618,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output.Ok.Body + let body: Operations.PullsDeletePendingReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2628,7 +2628,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -2640,7 +2640,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2650,7 +2650,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2662,7 +2662,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2672,7 +2672,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2707,18 +2707,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)`. - public func pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review(_ input: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input) async throws -> Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output { + public func pullsListCommentsForReview(_ input: Operations.PullsListCommentsForReview.Input) async throws -> Operations.PullsListCommentsForReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.id, + forOperation: Operations.PullsListCommentsForReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2731,7 +2731,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2749,13 +2749,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PullsListCommentsForReview.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Body + let body: Operations.PullsListCommentsForReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2765,7 +2765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.review_hyphen_comment].self, + [Components.Schemas.ReviewComment].self, from: responseBody, transforming: { value in .json(value) @@ -2780,7 +2780,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2790,7 +2790,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2828,18 +2828,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)`. - public func pulls_sol_dismiss_hyphen_review(_ input: Operations.pulls_sol_dismiss_hyphen_review.Input) async throws -> Operations.pulls_sol_dismiss_hyphen_review.Output { + public func pullsDismissReview(_ input: Operations.PullsDismissReview.Input) async throws -> Operations.PullsDismissReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_dismiss_hyphen_review.id, + forOperation: Operations.PullsDismissReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}/dismissals", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2866,7 +2866,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_dismiss_hyphen_review.Output.Ok.Body + let body: Operations.PullsDismissReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2876,7 +2876,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -2888,7 +2888,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2898,7 +2898,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2910,7 +2910,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2920,7 +2920,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2955,18 +2955,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)`. - public func pulls_sol_submit_hyphen_review(_ input: Operations.pulls_sol_submit_hyphen_review.Input) async throws -> Operations.pulls_sol_submit_hyphen_review.Output { + public func pullsSubmitReview(_ input: Operations.PullsSubmitReview.Input) async throws -> Operations.PullsSubmitReview.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_submit_hyphen_review.id, + forOperation: Operations.PullsSubmitReview.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/reviews/{}/events", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number, - input.path.review_id + input.path.pullNumber, + input.path.reviewId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2993,7 +2993,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_submit_hyphen_review.Output.Ok.Body + let body: Operations.PullsSubmitReview.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3003,7 +3003,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pull_hyphen_request_hyphen_review.self, + Components.Schemas.PullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -3015,7 +3015,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3025,7 +3025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3037,7 +3037,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3047,7 +3047,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -3059,7 +3059,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3069,7 +3069,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3098,17 +3098,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)`. - public func pulls_sol_update_hyphen_branch(_ input: Operations.pulls_sol_update_hyphen_branch.Input) async throws -> Operations.pulls_sol_update_hyphen_branch.Output { + public func pullsUpdateBranch(_ input: Operations.PullsUpdateBranch.Input) async throws -> Operations.PullsUpdateBranch.Output { try await client.send( input: input, - forOperation: Operations.pulls_sol_update_hyphen_branch.id, + forOperation: Operations.PullsUpdateBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/update-branch", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3137,7 +3137,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body + let body: Operations.PullsUpdateBranch.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3147,7 +3147,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body.jsonPayload.self, + Operations.PullsUpdateBranch.Output.Accepted.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3159,7 +3159,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3169,7 +3169,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3181,7 +3181,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3191,7 +3191,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/pulls/Types.swift b/Sources/pulls/Types.swift index 25009b8485..3f02eee314 100644 --- a/Sources/pulls/Types.swift +++ b/Sources/pulls/Types.swift @@ -30,7 +30,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)`. - func pulls_sol_list(_ input: Operations.pulls_sol_list.Input) async throws -> Operations.pulls_sol_list.Output + func pullsList(_ input: Operations.PullsList.Input) async throws -> Operations.PullsList.Output /// Create a pull request /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -48,7 +48,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)`. - func pulls_sol_create(_ input: Operations.pulls_sol_create.Input) async throws -> Operations.pulls_sol_create.Output + func pullsCreate(_ input: Operations.PullsCreate.Input) async throws -> Operations.PullsCreate.Output /// List review comments in a repository /// /// Lists review comments for all pull requests in a repository. By default, @@ -63,7 +63,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/get(pulls/list-review-comments-for-repo)`. - func pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output + func pullsListReviewCommentsForRepo(_ input: Operations.PullsListReviewCommentsForRepo.Input) async throws -> Operations.PullsListReviewCommentsForRepo.Output /// Get a review comment for a pull request /// /// Provides details for a specified review comment. @@ -77,7 +77,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)`. - func pulls_sol_get_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output + func pullsGetReviewComment(_ input: Operations.PullsGetReviewComment.Input) async throws -> Operations.PullsGetReviewComment.Output /// Update a review comment for a pull request /// /// Edits the content of a specified review comment. @@ -91,14 +91,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/patch(pulls/update-review-comment)`. - func pulls_sol_update_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output + func pullsUpdateReviewComment(_ input: Operations.PullsUpdateReviewComment.Input) async throws -> Operations.PullsUpdateReviewComment.Output /// Delete a review comment for a pull request /// /// Deletes a review comment. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)`. - func pulls_sol_delete_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Output + func pullsDeleteReviewComment(_ input: Operations.PullsDeleteReviewComment.Input) async throws -> Operations.PullsDeleteReviewComment.Output /// Get a pull request /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -127,7 +127,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)`. - func pulls_sol_get(_ input: Operations.pulls_sol_get.Input) async throws -> Operations.pulls_sol_get.Output + func pullsGet(_ input: Operations.PullsGet.Input) async throws -> Operations.PullsGet.Output /// Update a pull request /// /// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -143,7 +143,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)`. - func pulls_sol_update(_ input: Operations.pulls_sol_update.Input) async throws -> Operations.pulls_sol_update.Output + func pullsUpdate(_ input: Operations.PullsUpdate.Input) async throws -> Operations.PullsUpdate.Output /// List review comments on a pull request /// /// Lists all review comments for a specified pull request. By default, review comments @@ -158,7 +158,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/get(pulls/list-review-comments)`. - func pulls_sol_list_hyphen_review_hyphen_comments(_ input: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output + func pullsListReviewComments(_ input: Operations.PullsListReviewComments.Input) async throws -> Operations.PullsListReviewComments.Output /// Create a review comment for a pull request /// /// Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)." @@ -179,7 +179,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)`. - func pulls_sol_create_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output + func pullsCreateReviewComment(_ input: Operations.PullsCreateReviewComment.Input) async throws -> Operations.PullsCreateReviewComment.Output /// Create a reply for a review comment /// /// Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. @@ -196,7 +196,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)`. - func pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment(_ input: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input) async throws -> Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output + func pullsCreateReplyForReviewComment(_ input: Operations.PullsCreateReplyForReviewComment.Input) async throws -> Operations.PullsCreateReplyForReviewComment.Output /// List commits on a pull request /// /// Lists a maximum of 250 commits for a pull request. To receive a complete @@ -212,7 +212,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/commits/get(pulls/list-commits)`. - func pulls_sol_list_hyphen_commits(_ input: Operations.pulls_sol_list_hyphen_commits.Input) async throws -> Operations.pulls_sol_list_hyphen_commits.Output + func pullsListCommits(_ input: Operations.PullsListCommits.Input) async throws -> Operations.PullsListCommits.Output /// List pull requests files /// /// Lists the files in a specified pull request. @@ -229,14 +229,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)`. - func pulls_sol_list_hyphen_files(_ input: Operations.pulls_sol_list_hyphen_files.Input) async throws -> Operations.pulls_sol_list_hyphen_files.Output + func pullsListFiles(_ input: Operations.PullsListFiles.Input) async throws -> Operations.PullsListFiles.Output /// Check if a pull request has been merged /// /// Checks if a pull request has been merged into the base branch. The HTTP status of the response indicates whether or not the pull request has been merged; the response body is empty. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)`. - func pulls_sol_check_hyphen_if_hyphen_merged(_ input: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input) async throws -> Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output + func pullsCheckIfMerged(_ input: Operations.PullsCheckIfMerged.Input) async throws -> Operations.PullsCheckIfMerged.Output /// Merge a pull request /// /// Merges a pull request into the base branch. @@ -244,14 +244,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)`. - func pulls_sol_merge(_ input: Operations.pulls_sol_merge.Input) async throws -> Operations.pulls_sol_merge.Output + func pullsMerge(_ input: Operations.PullsMerge.Input) async throws -> Operations.PullsMerge.Output /// Get all requested reviewers for a pull request /// /// Gets the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request) operation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/get(pulls/list-requested-reviewers)`. - func pulls_sol_list_hyphen_requested_hyphen_reviewers(_ input: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output + func pullsListRequestedReviewers(_ input: Operations.PullsListRequestedReviewers.Input) async throws -> Operations.PullsListRequestedReviewers.Output /// Request reviewers for a pull request /// /// Requests reviews for a pull request from a given set of users and/or teams. @@ -259,14 +259,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)`. - func pulls_sol_request_hyphen_reviewers(_ input: Operations.pulls_sol_request_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_request_hyphen_reviewers.Output + func pullsRequestReviewers(_ input: Operations.PullsRequestReviewers.Input) async throws -> Operations.PullsRequestReviewers.Output /// Remove requested reviewers from a pull request /// /// Removes review requests from a pull request for a given set of users and/or teams. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)`. - func pulls_sol_remove_hyphen_requested_hyphen_reviewers(_ input: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input) async throws -> Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output + func pullsRemoveRequestedReviewers(_ input: Operations.PullsRemoveRequestedReviewers.Input) async throws -> Operations.PullsRemoveRequestedReviewers.Output /// List reviews for a pull request /// /// Lists all reviews for a specified pull request. The list of reviews returns in chronological order. @@ -280,7 +280,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/get(pulls/list-reviews)`. - func pulls_sol_list_hyphen_reviews(_ input: Operations.pulls_sol_list_hyphen_reviews.Input) async throws -> Operations.pulls_sol_list_hyphen_reviews.Output + func pullsListReviews(_ input: Operations.PullsListReviews.Input) async throws -> Operations.PullsListReviews.Output /// Create a review for a pull request /// /// Creates a review on a specified pull request. @@ -303,7 +303,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)`. - func pulls_sol_create_hyphen_review(_ input: Operations.pulls_sol_create_hyphen_review.Input) async throws -> Operations.pulls_sol_create_hyphen_review.Output + func pullsCreateReview(_ input: Operations.PullsCreateReview.Input) async throws -> Operations.PullsCreateReview.Output /// Get a review for a pull request /// /// Retrieves a pull request review by its ID. @@ -317,7 +317,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)`. - func pulls_sol_get_hyphen_review(_ input: Operations.pulls_sol_get_hyphen_review.Input) async throws -> Operations.pulls_sol_get_hyphen_review.Output + func pullsGetReview(_ input: Operations.PullsGetReview.Input) async throws -> Operations.PullsGetReview.Output /// Update a review for a pull request /// /// Updates the contents of a specified review summary comment. @@ -331,7 +331,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)`. - func pulls_sol_update_hyphen_review(_ input: Operations.pulls_sol_update_hyphen_review.Input) async throws -> Operations.pulls_sol_update_hyphen_review.Output + func pullsUpdateReview(_ input: Operations.PullsUpdateReview.Input) async throws -> Operations.PullsUpdateReview.Output /// Delete a pending review for a pull request /// /// Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted. @@ -345,7 +345,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)`. - func pulls_sol_delete_hyphen_pending_hyphen_review(_ input: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input) async throws -> Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output + func pullsDeletePendingReview(_ input: Operations.PullsDeletePendingReview.Input) async throws -> Operations.PullsDeletePendingReview.Output /// List comments for a pull request review /// /// Lists comments for a specific pull request review. @@ -359,7 +359,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)`. - func pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review(_ input: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input) async throws -> Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output + func pullsListCommentsForReview(_ input: Operations.PullsListCommentsForReview.Input) async throws -> Operations.PullsListCommentsForReview.Output /// Dismiss a review for a pull request /// /// Dismisses a specified review on a pull request. @@ -376,7 +376,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)`. - func pulls_sol_dismiss_hyphen_review(_ input: Operations.pulls_sol_dismiss_hyphen_review.Input) async throws -> Operations.pulls_sol_dismiss_hyphen_review.Output + func pullsDismissReview(_ input: Operations.PullsDismissReview.Input) async throws -> Operations.PullsDismissReview.Output /// Submit a review for a pull request /// /// Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see "[Create a review for a pull request](https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request)." @@ -390,7 +390,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)`. - func pulls_sol_submit_hyphen_review(_ input: Operations.pulls_sol_submit_hyphen_review.Input) async throws -> Operations.pulls_sol_submit_hyphen_review.Output + func pullsSubmitReview(_ input: Operations.PullsSubmitReview.Input) async throws -> Operations.PullsSubmitReview.Output /// Update a pull request branch /// /// Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. @@ -398,7 +398,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)`. - func pulls_sol_update_hyphen_branch(_ input: Operations.pulls_sol_update_hyphen_branch.Input) async throws -> Operations.pulls_sol_update_hyphen_branch.Output + func pullsUpdateBranch(_ input: Operations.PullsUpdateBranch.Input) async throws -> Operations.PullsUpdateBranch.Output } /// Convenience overloads for operation inputs. @@ -422,12 +422,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)`. - public func pulls_sol_list( - path: Operations.pulls_sol_list.Input.Path, - query: Operations.pulls_sol_list.Input.Query = .init(), - headers: Operations.pulls_sol_list.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list.Output { - try await pulls_sol_list(Operations.pulls_sol_list.Input( + public func pullsList( + path: Operations.PullsList.Input.Path, + query: Operations.PullsList.Input.Query = .init(), + headers: Operations.PullsList.Input.Headers = .init() + ) async throws -> Operations.PullsList.Output { + try await pullsList(Operations.PullsList.Input( path: path, query: query, headers: headers @@ -450,12 +450,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)`. - public func pulls_sol_create( - path: Operations.pulls_sol_create.Input.Path, - headers: Operations.pulls_sol_create.Input.Headers = .init(), - body: Operations.pulls_sol_create.Input.Body - ) async throws -> Operations.pulls_sol_create.Output { - try await pulls_sol_create(Operations.pulls_sol_create.Input( + public func pullsCreate( + path: Operations.PullsCreate.Input.Path, + headers: Operations.PullsCreate.Input.Headers = .init(), + body: Operations.PullsCreate.Input.Body + ) async throws -> Operations.PullsCreate.Output { + try await pullsCreate(Operations.PullsCreate.Input( path: path, headers: headers, body: body @@ -475,12 +475,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/get(pulls/list-review-comments-for-repo)`. - public func pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo( - path: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output { - try await pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo(Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input( + public func pullsListReviewCommentsForRepo( + path: Operations.PullsListReviewCommentsForRepo.Input.Path, + query: Operations.PullsListReviewCommentsForRepo.Input.Query = .init(), + headers: Operations.PullsListReviewCommentsForRepo.Input.Headers = .init() + ) async throws -> Operations.PullsListReviewCommentsForRepo.Output { + try await pullsListReviewCommentsForRepo(Operations.PullsListReviewCommentsForRepo.Input( path: path, query: query, headers: headers @@ -499,11 +499,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)`. - public func pulls_sol_get_hyphen_review_hyphen_comment( - path: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output { - try await pulls_sol_get_hyphen_review_hyphen_comment(Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input( + public func pullsGetReviewComment( + path: Operations.PullsGetReviewComment.Input.Path, + headers: Operations.PullsGetReviewComment.Input.Headers = .init() + ) async throws -> Operations.PullsGetReviewComment.Output { + try await pullsGetReviewComment(Operations.PullsGetReviewComment.Input( path: path, headers: headers )) @@ -521,12 +521,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/patch(pulls/update-review-comment)`. - public func pulls_sol_update_hyphen_review_hyphen_comment( - path: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Body - ) async throws -> Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output { - try await pulls_sol_update_hyphen_review_hyphen_comment(Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input( + public func pullsUpdateReviewComment( + path: Operations.PullsUpdateReviewComment.Input.Path, + headers: Operations.PullsUpdateReviewComment.Input.Headers = .init(), + body: Operations.PullsUpdateReviewComment.Input.Body + ) async throws -> Operations.PullsUpdateReviewComment.Output { + try await pullsUpdateReviewComment(Operations.PullsUpdateReviewComment.Input( path: path, headers: headers, body: body @@ -538,11 +538,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)`. - public func pulls_sol_delete_hyphen_review_hyphen_comment( - path: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Output { - try await pulls_sol_delete_hyphen_review_hyphen_comment(Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input( + public func pullsDeleteReviewComment( + path: Operations.PullsDeleteReviewComment.Input.Path, + headers: Operations.PullsDeleteReviewComment.Input.Headers = .init() + ) async throws -> Operations.PullsDeleteReviewComment.Output { + try await pullsDeleteReviewComment(Operations.PullsDeleteReviewComment.Input( path: path, headers: headers )) @@ -575,11 +575,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)`. - public func pulls_sol_get( - path: Operations.pulls_sol_get.Input.Path, - headers: Operations.pulls_sol_get.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_get.Output { - try await pulls_sol_get(Operations.pulls_sol_get.Input( + public func pullsGet( + path: Operations.PullsGet.Input.Path, + headers: Operations.PullsGet.Input.Headers = .init() + ) async throws -> Operations.PullsGet.Output { + try await pullsGet(Operations.PullsGet.Input( path: path, headers: headers )) @@ -599,12 +599,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)`. - public func pulls_sol_update( - path: Operations.pulls_sol_update.Input.Path, - headers: Operations.pulls_sol_update.Input.Headers = .init(), - body: Operations.pulls_sol_update.Input.Body? = nil - ) async throws -> Operations.pulls_sol_update.Output { - try await pulls_sol_update(Operations.pulls_sol_update.Input( + public func pullsUpdate( + path: Operations.PullsUpdate.Input.Path, + headers: Operations.PullsUpdate.Input.Headers = .init(), + body: Operations.PullsUpdate.Input.Body? = nil + ) async throws -> Operations.PullsUpdate.Output { + try await pullsUpdate(Operations.PullsUpdate.Input( path: path, headers: headers, body: body @@ -624,12 +624,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/get(pulls/list-review-comments)`. - public func pulls_sol_list_hyphen_review_hyphen_comments( - path: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Path, - query: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output { - try await pulls_sol_list_hyphen_review_hyphen_comments(Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input( + public func pullsListReviewComments( + path: Operations.PullsListReviewComments.Input.Path, + query: Operations.PullsListReviewComments.Input.Query = .init(), + headers: Operations.PullsListReviewComments.Input.Headers = .init() + ) async throws -> Operations.PullsListReviewComments.Output { + try await pullsListReviewComments(Operations.PullsListReviewComments.Input( path: path, query: query, headers: headers @@ -655,12 +655,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)`. - public func pulls_sol_create_hyphen_review_hyphen_comment( - path: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body - ) async throws -> Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output { - try await pulls_sol_create_hyphen_review_hyphen_comment(Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input( + public func pullsCreateReviewComment( + path: Operations.PullsCreateReviewComment.Input.Path, + headers: Operations.PullsCreateReviewComment.Input.Headers = .init(), + body: Operations.PullsCreateReviewComment.Input.Body + ) async throws -> Operations.PullsCreateReviewComment.Output { + try await pullsCreateReviewComment(Operations.PullsCreateReviewComment.Input( path: path, headers: headers, body: body @@ -682,12 +682,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)`. - public func pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment( - path: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Body - ) async throws -> Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output { - try await pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment(Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input( + public func pullsCreateReplyForReviewComment( + path: Operations.PullsCreateReplyForReviewComment.Input.Path, + headers: Operations.PullsCreateReplyForReviewComment.Input.Headers = .init(), + body: Operations.PullsCreateReplyForReviewComment.Input.Body + ) async throws -> Operations.PullsCreateReplyForReviewComment.Output { + try await pullsCreateReplyForReviewComment(Operations.PullsCreateReplyForReviewComment.Input( path: path, headers: headers, body: body @@ -708,12 +708,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/commits/get(pulls/list-commits)`. - public func pulls_sol_list_hyphen_commits( - path: Operations.pulls_sol_list_hyphen_commits.Input.Path, - query: Operations.pulls_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_commits.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_commits.Output { - try await pulls_sol_list_hyphen_commits(Operations.pulls_sol_list_hyphen_commits.Input( + public func pullsListCommits( + path: Operations.PullsListCommits.Input.Path, + query: Operations.PullsListCommits.Input.Query = .init(), + headers: Operations.PullsListCommits.Input.Headers = .init() + ) async throws -> Operations.PullsListCommits.Output { + try await pullsListCommits(Operations.PullsListCommits.Input( path: path, query: query, headers: headers @@ -735,12 +735,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)`. - public func pulls_sol_list_hyphen_files( - path: Operations.pulls_sol_list_hyphen_files.Input.Path, - query: Operations.pulls_sol_list_hyphen_files.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_files.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_files.Output { - try await pulls_sol_list_hyphen_files(Operations.pulls_sol_list_hyphen_files.Input( + public func pullsListFiles( + path: Operations.PullsListFiles.Input.Path, + query: Operations.PullsListFiles.Input.Query = .init(), + headers: Operations.PullsListFiles.Input.Headers = .init() + ) async throws -> Operations.PullsListFiles.Output { + try await pullsListFiles(Operations.PullsListFiles.Input( path: path, query: query, headers: headers @@ -752,8 +752,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)`. - public func pulls_sol_check_hyphen_if_hyphen_merged(path: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input.Path) async throws -> Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output { - try await pulls_sol_check_hyphen_if_hyphen_merged(Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input(path: path)) + public func pullsCheckIfMerged(path: Operations.PullsCheckIfMerged.Input.Path) async throws -> Operations.PullsCheckIfMerged.Output { + try await pullsCheckIfMerged(Operations.PullsCheckIfMerged.Input(path: path)) } /// Merge a pull request /// @@ -762,12 +762,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)`. - public func pulls_sol_merge( - path: Operations.pulls_sol_merge.Input.Path, - headers: Operations.pulls_sol_merge.Input.Headers = .init(), - body: Operations.pulls_sol_merge.Input.Body? = nil - ) async throws -> Operations.pulls_sol_merge.Output { - try await pulls_sol_merge(Operations.pulls_sol_merge.Input( + public func pullsMerge( + path: Operations.PullsMerge.Input.Path, + headers: Operations.PullsMerge.Input.Headers = .init(), + body: Operations.PullsMerge.Input.Body? = nil + ) async throws -> Operations.PullsMerge.Output { + try await pullsMerge(Operations.PullsMerge.Input( path: path, headers: headers, body: body @@ -779,11 +779,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/get(pulls/list-requested-reviewers)`. - public func pulls_sol_list_hyphen_requested_hyphen_reviewers( - path: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output { - try await pulls_sol_list_hyphen_requested_hyphen_reviewers(Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input( + public func pullsListRequestedReviewers( + path: Operations.PullsListRequestedReviewers.Input.Path, + headers: Operations.PullsListRequestedReviewers.Input.Headers = .init() + ) async throws -> Operations.PullsListRequestedReviewers.Output { + try await pullsListRequestedReviewers(Operations.PullsListRequestedReviewers.Input( path: path, headers: headers )) @@ -795,12 +795,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)`. - public func pulls_sol_request_hyphen_reviewers( - path: Operations.pulls_sol_request_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_request_hyphen_reviewers.Input.Headers = .init(), - body: Operations.pulls_sol_request_hyphen_reviewers.Input.Body? = nil - ) async throws -> Operations.pulls_sol_request_hyphen_reviewers.Output { - try await pulls_sol_request_hyphen_reviewers(Operations.pulls_sol_request_hyphen_reviewers.Input( + public func pullsRequestReviewers( + path: Operations.PullsRequestReviewers.Input.Path, + headers: Operations.PullsRequestReviewers.Input.Headers = .init(), + body: Operations.PullsRequestReviewers.Input.Body? = nil + ) async throws -> Operations.PullsRequestReviewers.Output { + try await pullsRequestReviewers(Operations.PullsRequestReviewers.Input( path: path, headers: headers, body: body @@ -812,12 +812,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)`. - public func pulls_sol_remove_hyphen_requested_hyphen_reviewers( - path: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Headers = .init(), - body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Body - ) async throws -> Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output { - try await pulls_sol_remove_hyphen_requested_hyphen_reviewers(Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input( + public func pullsRemoveRequestedReviewers( + path: Operations.PullsRemoveRequestedReviewers.Input.Path, + headers: Operations.PullsRemoveRequestedReviewers.Input.Headers = .init(), + body: Operations.PullsRemoveRequestedReviewers.Input.Body + ) async throws -> Operations.PullsRemoveRequestedReviewers.Output { + try await pullsRemoveRequestedReviewers(Operations.PullsRemoveRequestedReviewers.Input( path: path, headers: headers, body: body @@ -836,12 +836,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/get(pulls/list-reviews)`. - public func pulls_sol_list_hyphen_reviews( - path: Operations.pulls_sol_list_hyphen_reviews.Input.Path, - query: Operations.pulls_sol_list_hyphen_reviews.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_reviews.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_reviews.Output { - try await pulls_sol_list_hyphen_reviews(Operations.pulls_sol_list_hyphen_reviews.Input( + public func pullsListReviews( + path: Operations.PullsListReviews.Input.Path, + query: Operations.PullsListReviews.Input.Query = .init(), + headers: Operations.PullsListReviews.Input.Headers = .init() + ) async throws -> Operations.PullsListReviews.Output { + try await pullsListReviews(Operations.PullsListReviews.Input( path: path, query: query, headers: headers @@ -869,12 +869,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)`. - public func pulls_sol_create_hyphen_review( - path: Operations.pulls_sol_create_hyphen_review.Input.Path, - headers: Operations.pulls_sol_create_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_review.Input.Body? = nil - ) async throws -> Operations.pulls_sol_create_hyphen_review.Output { - try await pulls_sol_create_hyphen_review(Operations.pulls_sol_create_hyphen_review.Input( + public func pullsCreateReview( + path: Operations.PullsCreateReview.Input.Path, + headers: Operations.PullsCreateReview.Input.Headers = .init(), + body: Operations.PullsCreateReview.Input.Body? = nil + ) async throws -> Operations.PullsCreateReview.Output { + try await pullsCreateReview(Operations.PullsCreateReview.Input( path: path, headers: headers, body: body @@ -893,11 +893,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)`. - public func pulls_sol_get_hyphen_review( - path: Operations.pulls_sol_get_hyphen_review.Input.Path, - headers: Operations.pulls_sol_get_hyphen_review.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_get_hyphen_review.Output { - try await pulls_sol_get_hyphen_review(Operations.pulls_sol_get_hyphen_review.Input( + public func pullsGetReview( + path: Operations.PullsGetReview.Input.Path, + headers: Operations.PullsGetReview.Input.Headers = .init() + ) async throws -> Operations.PullsGetReview.Output { + try await pullsGetReview(Operations.PullsGetReview.Input( path: path, headers: headers )) @@ -915,12 +915,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)`. - public func pulls_sol_update_hyphen_review( - path: Operations.pulls_sol_update_hyphen_review.Input.Path, - headers: Operations.pulls_sol_update_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_review.Input.Body - ) async throws -> Operations.pulls_sol_update_hyphen_review.Output { - try await pulls_sol_update_hyphen_review(Operations.pulls_sol_update_hyphen_review.Input( + public func pullsUpdateReview( + path: Operations.PullsUpdateReview.Input.Path, + headers: Operations.PullsUpdateReview.Input.Headers = .init(), + body: Operations.PullsUpdateReview.Input.Body + ) async throws -> Operations.PullsUpdateReview.Output { + try await pullsUpdateReview(Operations.PullsUpdateReview.Input( path: path, headers: headers, body: body @@ -939,11 +939,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)`. - public func pulls_sol_delete_hyphen_pending_hyphen_review( - path: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Path, - headers: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output { - try await pulls_sol_delete_hyphen_pending_hyphen_review(Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input( + public func pullsDeletePendingReview( + path: Operations.PullsDeletePendingReview.Input.Path, + headers: Operations.PullsDeletePendingReview.Input.Headers = .init() + ) async throws -> Operations.PullsDeletePendingReview.Output { + try await pullsDeletePendingReview(Operations.PullsDeletePendingReview.Input( path: path, headers: headers )) @@ -961,12 +961,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)`. - public func pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review( - path: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Path, - query: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Headers = .init() - ) async throws -> Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output { - try await pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review(Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input( + public func pullsListCommentsForReview( + path: Operations.PullsListCommentsForReview.Input.Path, + query: Operations.PullsListCommentsForReview.Input.Query = .init(), + headers: Operations.PullsListCommentsForReview.Input.Headers = .init() + ) async throws -> Operations.PullsListCommentsForReview.Output { + try await pullsListCommentsForReview(Operations.PullsListCommentsForReview.Input( path: path, query: query, headers: headers @@ -988,12 +988,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)`. - public func pulls_sol_dismiss_hyphen_review( - path: Operations.pulls_sol_dismiss_hyphen_review.Input.Path, - headers: Operations.pulls_sol_dismiss_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_dismiss_hyphen_review.Input.Body - ) async throws -> Operations.pulls_sol_dismiss_hyphen_review.Output { - try await pulls_sol_dismiss_hyphen_review(Operations.pulls_sol_dismiss_hyphen_review.Input( + public func pullsDismissReview( + path: Operations.PullsDismissReview.Input.Path, + headers: Operations.PullsDismissReview.Input.Headers = .init(), + body: Operations.PullsDismissReview.Input.Body + ) async throws -> Operations.PullsDismissReview.Output { + try await pullsDismissReview(Operations.PullsDismissReview.Input( path: path, headers: headers, body: body @@ -1012,12 +1012,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)`. - public func pulls_sol_submit_hyphen_review( - path: Operations.pulls_sol_submit_hyphen_review.Input.Path, - headers: Operations.pulls_sol_submit_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_submit_hyphen_review.Input.Body - ) async throws -> Operations.pulls_sol_submit_hyphen_review.Output { - try await pulls_sol_submit_hyphen_review(Operations.pulls_sol_submit_hyphen_review.Input( + public func pullsSubmitReview( + path: Operations.PullsSubmitReview.Input.Path, + headers: Operations.PullsSubmitReview.Input.Headers = .init(), + body: Operations.PullsSubmitReview.Input.Body + ) async throws -> Operations.PullsSubmitReview.Output { + try await pullsSubmitReview(Operations.PullsSubmitReview.Input( path: path, headers: headers, body: body @@ -1030,12 +1030,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)`. - public func pulls_sol_update_hyphen_branch( - path: Operations.pulls_sol_update_hyphen_branch.Input.Path, - headers: Operations.pulls_sol_update_hyphen_branch.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_branch.Input.Body? = nil - ) async throws -> Operations.pulls_sol_update_hyphen_branch.Output { - try await pulls_sol_update_hyphen_branch(Operations.pulls_sol_update_hyphen_branch.Input( + public func pullsUpdateBranch( + path: Operations.PullsUpdateBranch.Input.Path, + headers: Operations.PullsUpdateBranch.Input.Headers = .init(), + body: Operations.PullsUpdateBranch.Input.Body? = nil + ) async throws -> Operations.PullsUpdateBranch.Output { + try await pullsUpdateBranch(Operations.PullsUpdateBranch.Input( path: path, headers: headers, body: body @@ -1045,6 +1045,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -1060,7 +1069,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -1070,171 +1079,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1242,61 +1251,61 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1335,9 +1344,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1352,7 +1361,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1371,34 +1380,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1408,142 +1417,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -1551,66 +1560,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -1621,7 +1630,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1651,15 +1660,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -1667,97 +1676,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -1765,38 +1774,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -1810,47 +1819,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -1858,7 +1867,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -1866,10 +1875,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -1878,16 +1887,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -1895,7 +1904,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -1903,10 +1912,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -1915,434 +1924,434 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct nullable_hyphen_milestone: Codable, Hashable, Sendable { + public struct NullableMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. @@ -2350,14 +2359,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.nullable_hyphen_milestone.statePayload + public var state: Components.Schemas.NullableMilestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. @@ -2365,111 +2374,111 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `nullable_hyphen_milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `NullableMilestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.nullable_hyphen_milestone.statePayload, + state: Components.Schemas.NullableMilestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -2486,11 +2495,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -2501,7 +2510,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -2512,7 +2521,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -2524,7 +2533,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -2538,8 +2547,8 @@ public enum Components { /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -2548,19 +2557,19 @@ public enum Components { /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -2580,86 +2589,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -2669,11 +2678,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -2684,7 +2693,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -2714,98 +2723,98 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team-simple`. - public struct team_hyphen_simple: Codable, Hashable, Sendable { + public struct TeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/team-simple/name`. @@ -2825,89 +2834,89 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `TeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Metaproperties for Git author/committer information. /// /// - Remark: Generated from `#/components/schemas/nullable-git-user`. - public struct nullable_hyphen_git_hyphen_user: Codable, Hashable, Sendable { + public struct NullableGitUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-git-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/date`. public var date: Swift.String? - /// Creates a new `nullable_hyphen_git_hyphen_user`. + /// Creates a new `NullableGitUser`. /// /// - Parameters: /// - name: @@ -2929,7 +2938,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/verification`. - public struct verification: Codable, Hashable, Sendable { + public struct Verification: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/verification/reason`. @@ -2939,46 +2948,46 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/verification/signature`. public var signature: Swift.String? /// - Remark: Generated from `#/components/schemas/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verification`. + public var verifiedAt: Swift.String? + /// Creates a new `Verification`. /// /// - Parameters: /// - verified: /// - reason: /// - payload: /// - signature: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, payload: Swift.String? = nil, signature: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.payload = payload self.signature = signature - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case payload case signature - case verified_at + case verifiedAt = "verified_at" } } /// Diff Entry /// /// - Remark: Generated from `#/components/schemas/diff-entry`. - public struct diff_hyphen_entry: Codable, Hashable, Sendable { + public struct DiffEntry: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/diff-entry/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/filename`. public var filename: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case added = "added" case removed = "removed" case modified = "modified" @@ -2988,7 +2997,7 @@ public enum Components { case unchanged = "unchanged" } /// - Remark: Generated from `#/components/schemas/diff-entry/status`. - public var status: Components.Schemas.diff_hyphen_entry.statusPayload + public var status: Components.Schemas.DiffEntry.StatusPayload /// - Remark: Generated from `#/components/schemas/diff-entry/additions`. public var additions: Swift.Int /// - Remark: Generated from `#/components/schemas/diff-entry/deletions`. @@ -2996,16 +3005,16 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/diff-entry/changes`. public var changes: Swift.Int /// - Remark: Generated from `#/components/schemas/diff-entry/blob_url`. - public var blob_url: Swift.String + public var blobUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/raw_url`. - public var raw_url: Swift.String + public var rawUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/patch`. public var patch: Swift.String? /// - Remark: Generated from `#/components/schemas/diff-entry/previous_filename`. - public var previous_filename: Swift.String? - /// Creates a new `diff_hyphen_entry`. + public var previousFilename: Swift.String? + /// Creates a new `DiffEntry`. /// /// - Parameters: /// - sha: @@ -3014,23 +3023,23 @@ public enum Components { /// - additions: /// - deletions: /// - changes: - /// - blob_url: - /// - raw_url: - /// - contents_url: + /// - blobUrl: + /// - rawUrl: + /// - contentsUrl: /// - patch: - /// - previous_filename: + /// - previousFilename: public init( sha: Swift.String, filename: Swift.String, - status: Components.Schemas.diff_hyphen_entry.statusPayload, + status: Components.Schemas.DiffEntry.StatusPayload, additions: Swift.Int, deletions: Swift.Int, changes: Swift.Int, - blob_url: Swift.String, - raw_url: Swift.String, - contents_url: Swift.String, + blobUrl: Swift.String, + rawUrl: Swift.String, + contentsUrl: Swift.String, patch: Swift.String? = nil, - previous_filename: Swift.String? = nil + previousFilename: Swift.String? = nil ) { self.sha = sha self.filename = filename @@ -3038,11 +3047,11 @@ public enum Components { self.additions = additions self.deletions = deletions self.changes = changes - self.blob_url = blob_url - self.raw_url = raw_url - self.contents_url = contents_url + self.blobUrl = blobUrl + self.rawUrl = rawUrl + self.contentsUrl = contentsUrl self.patch = patch - self.previous_filename = previous_filename + self.previousFilename = previousFilename } public enum CodingKeys: String, CodingKey { case sha @@ -3051,46 +3060,46 @@ public enum Components { case additions case deletions case changes - case blob_url - case raw_url - case contents_url + case blobUrl = "blob_url" + case rawUrl = "raw_url" + case contentsUrl = "contents_url" case patch - case previous_filename + case previousFilename = "previous_filename" } } /// Commit /// /// - Remark: Generated from `#/components/schemas/commit`. - public struct commit: Codable, Hashable, Sendable { + public struct Commit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/commit/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/author`. - public var author: Components.Schemas.nullable_hyphen_git_hyphen_user? + public var author: Components.Schemas.NullableGitUser? /// - Remark: Generated from `#/components/schemas/commit/commit/committer`. - public var committer: Components.Schemas.nullable_hyphen_git_hyphen_user? + public var committer: Components.Schemas.NullableGitUser? /// - Remark: Generated from `#/components/schemas/commit/commit/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/comment_count`. - public var comment_count: Swift.Int + public var commentCount: Swift.Int /// - Remark: Generated from `#/components/schemas/commit/commit/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/commit/tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/tree/url`. public var url: Swift.String - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - sha: @@ -3108,33 +3117,33 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit/commit/tree`. - public var tree: Components.Schemas.commit.commitPayload.treePayload + public var tree: Components.Schemas.Commit.CommitPayload.TreePayload /// - Remark: Generated from `#/components/schemas/commit/commit/verification`. - public var verification: Components.Schemas.verification? - /// Creates a new `commitPayload`. + public var verification: Components.Schemas.Verification? + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - url: /// - author: /// - committer: /// - message: - /// - comment_count: + /// - commentCount: /// - tree: /// - verification: public init( url: Swift.String, - author: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, - committer: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, + author: Components.Schemas.NullableGitUser? = nil, + committer: Components.Schemas.NullableGitUser? = nil, message: Swift.String, - comment_count: Swift.Int, - tree: Components.Schemas.commit.commitPayload.treePayload, - verification: Components.Schemas.verification? = nil + commentCount: Swift.Int, + tree: Components.Schemas.Commit.CommitPayload.TreePayload, + verification: Components.Schemas.Verification? = nil ) { self.url = url self.author = author self.committer = committer self.message = message - self.comment_count = comment_count + self.commentCount = commentCount self.tree = tree self.verification = verification } @@ -3143,29 +3152,29 @@ public enum Components { case author case committer case message - case comment_count + case commentCount = "comment_count" case tree case verification } } /// - Remark: Generated from `#/components/schemas/commit/commit`. - public var commit: Components.Schemas.commit.commitPayload + public var commit: Components.Schemas.Commit.CommitPayload /// - Remark: Generated from `#/components/schemas/commit/author`. - @frozen public enum authorPayload: Codable, Hashable, Sendable { + @frozen public enum AuthorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/author/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/commit/author/case2`. - case empty_hyphen_object(Components.Schemas.empty_hyphen_object) + case EmptyObject(Components.Schemas.EmptyObject) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .empty_hyphen_object(try .init(from: decoder)) + self = .EmptyObject(try .init(from: decoder)) return } catch { errors.append(error) @@ -3178,31 +3187,31 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .empty_hyphen_object(value): + case let .EmptyObject(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/commit/author`. - public var author: Components.Schemas.commit.authorPayload? + public var author: Components.Schemas.Commit.AuthorPayload? /// - Remark: Generated from `#/components/schemas/commit/committer`. - @frozen public enum committerPayload: Codable, Hashable, Sendable { + @frozen public enum CommitterPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/committer/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/commit/committer/case2`. - case empty_hyphen_object(Components.Schemas.empty_hyphen_object) + case EmptyObject(Components.Schemas.EmptyObject) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .empty_hyphen_object(try .init(from: decoder)) + self = .EmptyObject(try .init(from: decoder)) return } catch { errors.append(error) @@ -3215,57 +3224,57 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .empty_hyphen_object(value): + case let .EmptyObject(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/commit/committer`. - public var committer: Components.Schemas.commit.committerPayload? - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/sha`. + public var committer: Components.Schemas.Commit.CommitterPayload? + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/url`. + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/html_url`. - public var html_url: Swift.String? - /// Creates a new `parentsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/html_url`. + public var htmlUrl: Swift.String? + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - sha: /// - url: - /// - html_url: + /// - htmlUrl: public init( sha: Swift.String, url: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.sha = sha self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case sha case url - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/commit/parents`. - public typealias parentsPayload = [Components.Schemas.commit.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.Commit.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/commit/parents`. - public var parents: Components.Schemas.commit.parentsPayload + public var parents: Components.Schemas.Commit.ParentsPayload /// - Remark: Generated from `#/components/schemas/commit/stats`. - public struct statsPayload: Codable, Hashable, Sendable { + public struct StatsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/stats/additions`. public var additions: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit/stats/deletions`. public var deletions: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit/stats/total`. public var total: Swift.Int? - /// Creates a new `statsPayload`. + /// Creates a new `StatsPayload`. /// /// - Parameters: /// - additions: @@ -3287,17 +3296,17 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit/stats`. - public var stats: Components.Schemas.commit.statsPayload? + public var stats: Components.Schemas.Commit.StatsPayload? /// - Remark: Generated from `#/components/schemas/commit/files`. - public var files: [Components.Schemas.diff_hyphen_entry]? - /// Creates a new `commit`. + public var files: [Components.Schemas.DiffEntry]? + /// Creates a new `Commit`. /// /// - Parameters: /// - url: /// - sha: - /// - node_id: - /// - html_url: - /// - comments_url: + /// - nodeId: + /// - htmlUrl: + /// - commentsUrl: /// - commit: /// - author: /// - committer: @@ -3307,21 +3316,21 @@ public enum Components { public init( url: Swift.String, sha: Swift.String, - node_id: Swift.String, - html_url: Swift.String, - comments_url: Swift.String, - commit: Components.Schemas.commit.commitPayload, - author: Components.Schemas.commit.authorPayload? = nil, - committer: Components.Schemas.commit.committerPayload? = nil, - parents: Components.Schemas.commit.parentsPayload, - stats: Components.Schemas.commit.statsPayload? = nil, - files: [Components.Schemas.diff_hyphen_entry]? = nil + nodeId: Swift.String, + htmlUrl: Swift.String, + commentsUrl: Swift.String, + commit: Components.Schemas.Commit.CommitPayload, + author: Components.Schemas.Commit.AuthorPayload? = nil, + committer: Components.Schemas.Commit.CommitterPayload? = nil, + parents: Components.Schemas.Commit.ParentsPayload, + stats: Components.Schemas.Commit.StatsPayload? = nil, + files: [Components.Schemas.DiffEntry]? = nil ) { self.url = url self.sha = sha - self.node_id = node_id - self.html_url = html_url - self.comments_url = comments_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl + self.commentsUrl = commentsUrl self.commit = commit self.author = author self.committer = committer @@ -3332,9 +3341,9 @@ public enum Components { public enum CodingKeys: String, CodingKey { case url case sha - case node_id - case html_url - case comments_url + case nodeId = "node_id" + case htmlUrl = "html_url" + case commentsUrl = "comments_url" case commit case author case committer @@ -3346,10 +3355,10 @@ public enum Components { /// Hypermedia Link /// /// - Remark: Generated from `#/components/schemas/link`. - public struct link: Codable, Hashable, Sendable { + public struct Link: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/link/href`. public var href: Swift.String - /// Creates a new `link`. + /// Creates a new `Link`. /// /// - Parameters: /// - href: @@ -3363,13 +3372,13 @@ public enum Components { /// The status of auto merging a pull request. /// /// - Remark: Generated from `#/components/schemas/auto-merge`. - public struct auto_hyphen_merge: Codable, Hashable, Sendable { + public struct AutoMerge: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/auto-merge/enabled_by`. - public var enabled_by: Components.Schemas.simple_hyphen_user + public var enabledBy: Components.Schemas.SimpleUser /// The merge method to use. /// /// - Remark: Generated from `#/components/schemas/auto-merge/merge_method`. - @frozen public enum merge_methodPayload: String, Codable, Hashable, Sendable { + @frozen public enum MergeMethodPayload: String, Codable, Hashable, Sendable, CaseIterable { case merge = "merge" case squash = "squash" case rebase = "rebase" @@ -3377,68 +3386,68 @@ public enum Components { /// The merge method to use. /// /// - Remark: Generated from `#/components/schemas/auto-merge/merge_method`. - public var merge_method: Components.Schemas.auto_hyphen_merge.merge_methodPayload + public var mergeMethod: Components.Schemas.AutoMerge.MergeMethodPayload /// Title for the merge commit message. /// /// - Remark: Generated from `#/components/schemas/auto-merge/commit_title`. - public var commit_title: Swift.String + public var commitTitle: Swift.String /// Commit message for the merge commit. /// /// - Remark: Generated from `#/components/schemas/auto-merge/commit_message`. - public var commit_message: Swift.String - /// Creates a new `auto_hyphen_merge`. + public var commitMessage: Swift.String + /// Creates a new `AutoMerge`. /// /// - Parameters: - /// - enabled_by: - /// - merge_method: The merge method to use. - /// - commit_title: Title for the merge commit message. - /// - commit_message: Commit message for the merge commit. + /// - enabledBy: + /// - mergeMethod: The merge method to use. + /// - commitTitle: Title for the merge commit message. + /// - commitMessage: Commit message for the merge commit. public init( - enabled_by: Components.Schemas.simple_hyphen_user, - merge_method: Components.Schemas.auto_hyphen_merge.merge_methodPayload, - commit_title: Swift.String, - commit_message: Swift.String + enabledBy: Components.Schemas.SimpleUser, + mergeMethod: Components.Schemas.AutoMerge.MergeMethodPayload, + commitTitle: Swift.String, + commitMessage: Swift.String ) { - self.enabled_by = enabled_by - self.merge_method = merge_method - self.commit_title = commit_title - self.commit_message = commit_message + self.enabledBy = enabledBy + self.mergeMethod = mergeMethod + self.commitTitle = commitTitle + self.commitMessage = commitMessage } public enum CodingKeys: String, CodingKey { - case enabled_by - case merge_method - case commit_title - case commit_message + case enabledBy = "enabled_by" + case mergeMethod = "merge_method" + case commitTitle = "commit_title" + case commitMessage = "commit_message" } } /// Pull Request Simple /// /// - Remark: Generated from `#/components/schemas/pull-request-simple`. - public struct pull_hyphen_request_hyphen_simple: Codable, Hashable, Sendable { + public struct PullRequestSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/diff_url`. - public var diff_url: Swift.String + public var diffUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/patch_url`. - public var patch_url: Swift.String + public var patchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/review_comments_url`. - public var review_comments_url: Swift.String + public var reviewCommentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/review_comment_url`. - public var review_comment_url: Swift.String + public var reviewCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/number`. public var number: Swift.Int /// - Remark: Generated from `#/components/schemas/pull-request-simple/state`. @@ -3448,30 +3457,30 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-simple/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request-simple/body`. public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/id`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/id`. public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/node_id`. - public var node_id: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/url`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/node_id`. + public var nodeId: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/description`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/description`. public var description: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/color`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/color`. public var color: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/default`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/default`. public var _default: Swift.Bool - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -3479,7 +3488,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, name: Swift.String, description: Swift.String, @@ -3487,7 +3496,7 @@ public enum Components { _default: Swift.Bool ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -3496,7 +3505,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -3505,44 +3514,44 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/labels`. - public typealias labelsPayload = [Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.PullRequestSimple.LabelsPayloadPayload] /// - Remark: Generated from `#/components/schemas/pull-request-simple/labels`. - public var labels: Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayload + public var labels: Components.Schemas.PullRequestSimple.LabelsPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/pull-request-simple/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-simple/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-simple/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-simple/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request-simple/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request-simple/merge_commit_sha`. - public var merge_commit_sha: Swift.String? + public var mergeCommitSha: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-simple/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request-simple/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/requested_reviewers`. - public var requested_reviewers: [Components.Schemas.simple_hyphen_user]? + public var requestedReviewers: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/requested_teams`. - public var requested_teams: [Components.Schemas.team]? + public var requestedTeams: [Components.Schemas.Team]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/head`. - public struct headPayload: Codable, Hashable, Sendable { + public struct HeadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `headPayload`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `HeadPayload`. /// /// - Parameters: /// - label: @@ -3553,9 +3562,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + user: Components.Schemas.NullableSimpleUser? = nil ) { self.label = label self.ref = ref @@ -3572,20 +3581,20 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/head`. - public var head: Components.Schemas.pull_hyphen_request_hyphen_simple.headPayload + public var head: Components.Schemas.PullRequestSimple.HeadPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/base`. - public struct basePayload: Codable, Hashable, Sendable { + public struct BasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `basePayload`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `BasePayload`. /// /// - Parameters: /// - label: @@ -3596,9 +3605,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + user: Components.Schemas.NullableSimpleUser? = nil ) { self.label = label self.ref = ref @@ -3615,26 +3624,26 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/base`. - public var base: Components.Schemas.pull_hyphen_request_hyphen_simple.basePayload + public var base: Components.Schemas.PullRequestSimple.BasePayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/comments`. - public var comments: Components.Schemas.link + public var comments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/commits`. - public var commits: Components.Schemas.link + public var commits: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/statuses`. - public var statuses: Components.Schemas.link + public var statuses: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/html`. - public var html: Components.Schemas.link + public var html: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/issue`. - public var issue: Components.Schemas.link + public var issue: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/review_comments`. - public var review_comments: Components.Schemas.link + public var reviewComments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/review_comment`. - public var review_comment: Components.Schemas.link + public var reviewComment: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/self`. - public var _self: Components.Schemas.link - /// Creates a new `_linksPayload`. + public var _self: Components.Schemas.Link + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - comments: @@ -3642,26 +3651,26 @@ public enum Components { /// - statuses: /// - html: /// - issue: - /// - review_comments: - /// - review_comment: + /// - reviewComments: + /// - reviewComment: /// - _self: public init( - comments: Components.Schemas.link, - commits: Components.Schemas.link, - statuses: Components.Schemas.link, - html: Components.Schemas.link, - issue: Components.Schemas.link, - review_comments: Components.Schemas.link, - review_comment: Components.Schemas.link, - _self: Components.Schemas.link + comments: Components.Schemas.Link, + commits: Components.Schemas.Link, + statuses: Components.Schemas.Link, + html: Components.Schemas.Link, + issue: Components.Schemas.Link, + reviewComments: Components.Schemas.Link, + reviewComment: Components.Schemas.Link, + _self: Components.Schemas.Link ) { self.comments = comments self.commits = commits self.statuses = statuses self.html = html self.issue = issue - self.review_comments = review_comments - self.review_comment = review_comment + self.reviewComments = reviewComments + self.reviewComment = reviewComment self._self = _self } public enum CodingKeys: String, CodingKey { @@ -3670,36 +3679,36 @@ public enum Components { case statuses case html case issue - case review_comments - case review_comment + case reviewComments = "review_comments" + case reviewComment = "review_comment" case _self = "self" } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links`. - public var _links: Components.Schemas.pull_hyphen_request_hyphen_simple._linksPayload + public var _links: Components.Schemas.PullRequestSimple._LinksPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/pull-request-simple/auto_merge`. - public var auto_merge: Components.Schemas.auto_hyphen_merge? + public var autoMerge: Components.Schemas.AutoMerge? /// Indicates whether or not the pull request is a draft. /// /// - Remark: Generated from `#/components/schemas/pull-request-simple/draft`. public var draft: Swift.Bool? - /// Creates a new `pull_hyphen_request_hyphen_simple`. + /// Creates a new `PullRequestSimple`. /// /// - Parameters: /// - url: /// - id: - /// - node_id: - /// - html_url: - /// - diff_url: - /// - patch_url: - /// - issue_url: - /// - commits_url: - /// - review_comments_url: - /// - review_comment_url: - /// - comments_url: - /// - statuses_url: + /// - nodeId: + /// - htmlUrl: + /// - diffUrl: + /// - patchUrl: + /// - issueUrl: + /// - commitsUrl: + /// - reviewCommentsUrl: + /// - reviewCommentUrl: + /// - commentsUrl: + /// - statusesUrl: /// - number: /// - state: /// - locked: @@ -3708,72 +3717,72 @@ public enum Components { /// - body: /// - labels: /// - milestone: - /// - active_lock_reason: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - merged_at: - /// - merge_commit_sha: + /// - activeLockReason: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - mergedAt: + /// - mergeCommitSha: /// - assignee: /// - assignees: - /// - requested_reviewers: - /// - requested_teams: + /// - requestedReviewers: + /// - requestedTeams: /// - head: /// - base: /// - _links: - /// - author_association: - /// - auto_merge: + /// - authorAssociation: + /// - autoMerge: /// - draft: Indicates whether or not the pull request is a draft. public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, - html_url: Swift.String, - diff_url: Swift.String, - patch_url: Swift.String, - issue_url: Swift.String, - commits_url: Swift.String, - review_comments_url: Swift.String, - review_comment_url: Swift.String, - comments_url: Swift.String, - statuses_url: Swift.String, + nodeId: Swift.String, + htmlUrl: Swift.String, + diffUrl: Swift.String, + patchUrl: Swift.String, + issueUrl: Swift.String, + commitsUrl: Swift.String, + reviewCommentsUrl: Swift.String, + reviewCommentUrl: Swift.String, + commentsUrl: Swift.String, + statusesUrl: Swift.String, number: Swift.Int, state: Swift.String, locked: Swift.Bool, title: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String? = nil, - labels: Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayload, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, - active_lock_reason: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - merged_at: Foundation.Date? = nil, - merge_commit_sha: Swift.String? = nil, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - requested_reviewers: [Components.Schemas.simple_hyphen_user]? = nil, - requested_teams: [Components.Schemas.team]? = nil, - head: Components.Schemas.pull_hyphen_request_hyphen_simple.headPayload, - base: Components.Schemas.pull_hyphen_request_hyphen_simple.basePayload, - _links: Components.Schemas.pull_hyphen_request_hyphen_simple._linksPayload, - author_association: Components.Schemas.author_hyphen_association, - auto_merge: Components.Schemas.auto_hyphen_merge? = nil, + labels: Components.Schemas.PullRequestSimple.LabelsPayload, + milestone: Components.Schemas.NullableMilestone? = nil, + activeLockReason: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + mergedAt: Foundation.Date? = nil, + mergeCommitSha: Swift.String? = nil, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + requestedReviewers: [Components.Schemas.SimpleUser]? = nil, + requestedTeams: [Components.Schemas.Team]? = nil, + head: Components.Schemas.PullRequestSimple.HeadPayload, + base: Components.Schemas.PullRequestSimple.BasePayload, + _links: Components.Schemas.PullRequestSimple._LinksPayload, + authorAssociation: Components.Schemas.AuthorAssociation, + autoMerge: Components.Schemas.AutoMerge? = nil, draft: Swift.Bool? = nil ) { self.url = url self.id = id - self.node_id = node_id - self.html_url = html_url - self.diff_url = diff_url - self.patch_url = patch_url - self.issue_url = issue_url - self.commits_url = commits_url - self.review_comments_url = review_comments_url - self.review_comment_url = review_comment_url - self.comments_url = comments_url - self.statuses_url = statuses_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl + self.diffUrl = diffUrl + self.patchUrl = patchUrl + self.issueUrl = issueUrl + self.commitsUrl = commitsUrl + self.reviewCommentsUrl = reviewCommentsUrl + self.reviewCommentUrl = reviewCommentUrl + self.commentsUrl = commentsUrl + self.statusesUrl = statusesUrl self.number = number self.state = state self.locked = locked @@ -3782,36 +3791,36 @@ public enum Components { self.body = body self.labels = labels self.milestone = milestone - self.active_lock_reason = active_lock_reason - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.merged_at = merged_at - self.merge_commit_sha = merge_commit_sha + self.activeLockReason = activeLockReason + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.mergedAt = mergedAt + self.mergeCommitSha = mergeCommitSha self.assignee = assignee self.assignees = assignees - self.requested_reviewers = requested_reviewers - self.requested_teams = requested_teams + self.requestedReviewers = requestedReviewers + self.requestedTeams = requestedTeams self.head = head self.base = base self._links = _links - self.author_association = author_association - self.auto_merge = auto_merge + self.authorAssociation = authorAssociation + self.autoMerge = autoMerge self.draft = draft } public enum CodingKeys: String, CodingKey { case url case id - case node_id - case html_url - case diff_url - case patch_url - case issue_url - case commits_url - case review_comments_url - case review_comment_url - case comments_url - case statuses_url + case nodeId = "node_id" + case htmlUrl = "html_url" + case diffUrl = "diff_url" + case patchUrl = "patch_url" + case issueUrl = "issue_url" + case commitsUrl = "commits_url" + case reviewCommentsUrl = "review_comments_url" + case reviewCommentUrl = "review_comment_url" + case commentsUrl = "comments_url" + case statusesUrl = "statuses_url" case number case state case locked @@ -3820,28 +3829,28 @@ public enum Components { case body case labels case milestone - case active_lock_reason - case created_at - case updated_at - case closed_at - case merged_at - case merge_commit_sha + case activeLockReason = "active_lock_reason" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case mergedAt = "merged_at" + case mergeCommitSha = "merge_commit_sha" case assignee case assignees - case requested_reviewers - case requested_teams + case requestedReviewers = "requested_reviewers" + case requestedTeams = "requested_teams" case head case base case _links - case author_association - case auto_merge + case authorAssociation = "author_association" + case autoMerge = "auto_merge" case draft } } /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment`. - public struct pull_hyphen_request_hyphen_review_hyphen_comment: Codable, Hashable, Sendable { + public struct PullRequestReviewComment: Codable, Hashable, Sendable { /// URL for the pull request review comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/url`. @@ -3849,7 +3858,7 @@ public enum Components { /// The ID of the pull request review to which the comment belongs. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int64? + public var pullRequestReviewId: Swift.Int64? /// The ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/id`. @@ -3857,11 +3866,11 @@ public enum Components { /// The node ID of the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The diff of the line that the comment refers to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/diff_hunk`. - public var diff_hunk: Swift.String + public var diffHunk: Swift.String /// The relative path of the file to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/path`. @@ -3873,46 +3882,46 @@ public enum Components { /// The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_position`. - public var original_position: Swift.Int? + public var originalPosition: Swift.Int? /// The SHA of the commit to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// The SHA of the original commit to which the comment applies. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_commit_id`. - public var original_commit_id: Swift.String + public var originalCommitId: Swift.String /// The comment ID to reply to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/in_reply_to_id`. - public var in_reply_to_id: Swift.Int? + public var inReplyToId: Swift.Int? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// The text of the comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// HTML URL for the pull request review comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// URL for the pull request that the review comment belongs to. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/pull_request_url`. - public var pull_request_url: Swift.String + public var pullRequestUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self`. - public struct _selfPayload: Codable, Hashable, Sendable { + public struct _SelfPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self/href`. public var href: Swift.String - /// Creates a new `_selfPayload`. + /// Creates a new `_SelfPayload`. /// /// - Parameters: /// - href: @@ -3924,12 +3933,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/self`. - public var _self: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload._selfPayload + public var _self: Components.Schemas.PullRequestReviewComment._LinksPayload._SelfPayload /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html`. - public struct htmlPayload: Codable, Hashable, Sendable { + public struct HtmlPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html/href`. public var href: Swift.String - /// Creates a new `htmlPayload`. + /// Creates a new `HtmlPayload`. /// /// - Parameters: /// - href: @@ -3941,12 +3950,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/html`. - public var html: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.htmlPayload + public var html: Components.Schemas.PullRequestReviewComment._LinksPayload.HtmlPayload /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request/href`. public var href: Swift.String - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: /// - href: @@ -3958,49 +3967,49 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links/pull_request`. - public var pull_request: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.pull_requestPayload - /// Creates a new `_linksPayload`. + public var pullRequest: Components.Schemas.PullRequestReviewComment._LinksPayload.PullRequestPayload + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - _self: /// - html: - /// - pull_request: + /// - pullRequest: public init( - _self: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload._selfPayload, - html: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.htmlPayload, - pull_request: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload.pull_requestPayload + _self: Components.Schemas.PullRequestReviewComment._LinksPayload._SelfPayload, + html: Components.Schemas.PullRequestReviewComment._LinksPayload.HtmlPayload, + pullRequest: Components.Schemas.PullRequestReviewComment._LinksPayload.PullRequestPayload ) { self._self = _self self.html = html - self.pull_request = pull_request + self.pullRequest = pullRequest } public enum CodingKeys: String, CodingKey { case _self = "self" case html - case pull_request + case pullRequest = "pull_request" } } /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/_links`. - public var _links: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload + public var _links: Components.Schemas.PullRequestReviewComment._LinksPayload /// The first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_line`. - public var start_line: Swift.Int? + public var startLine: Swift.Int? /// The first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_start_line`. - public var original_start_line: Swift.Int? + public var originalStartLine: Swift.Int? /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_side`. - @frozen public enum start_sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum StartSidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/start_side`. - public var start_side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.start_sidePayload? + public var startSide: Components.Schemas.PullRequestReviewComment.StartSidePayload? /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/line`. @@ -4008,188 +4017,188 @@ public enum Components { /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_line`. - public var original_line: Swift.Int? + public var originalLine: Swift.Int? /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/side`. - @frozen public enum sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum SidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/side`. - public var side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.sidePayload? + public var side: Components.Schemas.PullRequestReviewComment.SidePayload? /// The level at which the comment is targeted, can be a diff line or a file. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/subject_type`. - @frozen public enum subject_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum SubjectTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case line = "line" case file = "file" } /// The level at which the comment is targeted, can be a diff line or a file. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/subject_type`. - public var subject_type: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.subject_typePayload? + public var subjectType: Components.Schemas.PullRequestReviewComment.SubjectTypePayload? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/body_text`. - public var body_text: Swift.String? - /// Creates a new `pull_hyphen_request_hyphen_review_hyphen_comment`. + public var bodyText: Swift.String? + /// Creates a new `PullRequestReviewComment`. /// /// - Parameters: /// - url: URL for the pull request review comment - /// - pull_request_review_id: The ID of the pull request review to which the comment belongs. + /// - pullRequestReviewId: The ID of the pull request review to which the comment belongs. /// - id: The ID of the pull request review comment. - /// - node_id: The node ID of the pull request review comment. - /// - diff_hunk: The diff of the line that the comment refers to. + /// - nodeId: The node ID of the pull request review comment. + /// - diffHunk: The diff of the line that the comment refers to. /// - path: The relative path of the file to which the comment applies. /// - position: The line index in the diff to which the comment applies. This field is closing down; use `line` instead. - /// - original_position: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. - /// - commit_id: The SHA of the commit to which the comment applies. - /// - original_commit_id: The SHA of the original commit to which the comment applies. - /// - in_reply_to_id: The comment ID to reply to. + /// - originalPosition: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. + /// - commitId: The SHA of the commit to which the comment applies. + /// - originalCommitId: The SHA of the original commit to which the comment applies. + /// - inReplyToId: The comment ID to reply to. /// - user: /// - body: The text of the comment. - /// - created_at: - /// - updated_at: - /// - html_url: HTML URL for the pull request review comment. - /// - pull_request_url: URL for the pull request that the review comment belongs to. - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - htmlUrl: HTML URL for the pull request review comment. + /// - pullRequestUrl: URL for the pull request that the review comment belongs to. + /// - authorAssociation: /// - _links: - /// - start_line: The first line of the range for a multi-line comment. - /// - original_start_line: The first line of the range for a multi-line comment. - /// - start_side: The side of the first line of the range for a multi-line comment. + /// - startLine: The first line of the range for a multi-line comment. + /// - originalStartLine: The first line of the range for a multi-line comment. + /// - startSide: The side of the first line of the range for a multi-line comment. /// - line: The line of the blob to which the comment applies. The last line of the range for a multi-line comment - /// - original_line: The line of the blob to which the comment applies. The last line of the range for a multi-line comment + /// - originalLine: The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// - side: The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment - /// - subject_type: The level at which the comment is targeted, can be a diff line or a file. + /// - subjectType: The level at which the comment is targeted, can be a diff line or a file. /// - reactions: - /// - body_html: - /// - body_text: + /// - bodyHtml: + /// - bodyText: public init( url: Swift.String, - pull_request_review_id: Swift.Int64? = nil, + pullRequestReviewId: Swift.Int64? = nil, id: Swift.Int64, - node_id: Swift.String, - diff_hunk: Swift.String, + nodeId: Swift.String, + diffHunk: Swift.String, path: Swift.String, position: Swift.Int? = nil, - original_position: Swift.Int? = nil, - commit_id: Swift.String, - original_commit_id: Swift.String, - in_reply_to_id: Swift.Int? = nil, - user: Components.Schemas.simple_hyphen_user, + originalPosition: Swift.Int? = nil, + commitId: Swift.String, + originalCommitId: Swift.String, + inReplyToId: Swift.Int? = nil, + user: Components.Schemas.SimpleUser, body: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - html_url: Swift.String, - pull_request_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - _links: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment._linksPayload, - start_line: Swift.Int? = nil, - original_start_line: Swift.Int? = nil, - start_side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.start_sidePayload? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + htmlUrl: Swift.String, + pullRequestUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + _links: Components.Schemas.PullRequestReviewComment._LinksPayload, + startLine: Swift.Int? = nil, + originalStartLine: Swift.Int? = nil, + startSide: Components.Schemas.PullRequestReviewComment.StartSidePayload? = nil, line: Swift.Int? = nil, - original_line: Swift.Int? = nil, - side: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.sidePayload? = nil, - subject_type: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment.subject_typePayload? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil + originalLine: Swift.Int? = nil, + side: Components.Schemas.PullRequestReviewComment.SidePayload? = nil, + subjectType: Components.Schemas.PullRequestReviewComment.SubjectTypePayload? = nil, + reactions: Components.Schemas.ReactionRollup? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil ) { self.url = url - self.pull_request_review_id = pull_request_review_id + self.pullRequestReviewId = pullRequestReviewId self.id = id - self.node_id = node_id - self.diff_hunk = diff_hunk + self.nodeId = nodeId + self.diffHunk = diffHunk self.path = path self.position = position - self.original_position = original_position - self.commit_id = commit_id - self.original_commit_id = original_commit_id - self.in_reply_to_id = in_reply_to_id + self.originalPosition = originalPosition + self.commitId = commitId + self.originalCommitId = originalCommitId + self.inReplyToId = inReplyToId self.user = user self.body = body - self.created_at = created_at - self.updated_at = updated_at - self.html_url = html_url - self.pull_request_url = pull_request_url - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.htmlUrl = htmlUrl + self.pullRequestUrl = pullRequestUrl + self.authorAssociation = authorAssociation self._links = _links - self.start_line = start_line - self.original_start_line = original_start_line - self.start_side = start_side + self.startLine = startLine + self.originalStartLine = originalStartLine + self.startSide = startSide self.line = line - self.original_line = original_line + self.originalLine = originalLine self.side = side - self.subject_type = subject_type + self.subjectType = subjectType self.reactions = reactions - self.body_html = body_html - self.body_text = body_text + self.bodyHtml = bodyHtml + self.bodyText = bodyText } public enum CodingKeys: String, CodingKey { case url - case pull_request_review_id + case pullRequestReviewId = "pull_request_review_id" case id - case node_id - case diff_hunk + case nodeId = "node_id" + case diffHunk = "diff_hunk" case path case position - case original_position - case commit_id - case original_commit_id - case in_reply_to_id + case originalPosition = "original_position" + case commitId = "commit_id" + case originalCommitId = "original_commit_id" + case inReplyToId = "in_reply_to_id" case user case body - case created_at - case updated_at - case html_url - case pull_request_url - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case htmlUrl = "html_url" + case pullRequestUrl = "pull_request_url" + case authorAssociation = "author_association" case _links - case start_line - case original_start_line - case start_side + case startLine = "start_line" + case originalStartLine = "original_start_line" + case startSide = "start_side" case line - case original_line + case originalLine = "original_line" case side - case subject_type + case subjectType = "subject_type" case reactions - case body_html - case body_text + case bodyHtml = "body_html" + case bodyText = "body_text" } } /// Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. /// /// - Remark: Generated from `#/components/schemas/pull-request`. - public struct pull_hyphen_request: Codable, Hashable, Sendable { + public struct PullRequest: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/diff_url`. - public var diff_url: Swift.String + public var diffUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/patch_url`. - public var patch_url: Swift.String + public var patchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/review_comments_url`. - public var review_comments_url: Swift.String + public var reviewCommentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/review_comment_url`. - public var review_comment_url: Swift.String + public var reviewCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// Number uniquely identifying the pull request within its repository. /// /// - Remark: Generated from `#/components/schemas/pull-request/number`. @@ -4197,14 +4206,14 @@ public enum Components { /// State of this Pull Request. Either `open` or `closed`. /// /// - Remark: Generated from `#/components/schemas/pull-request/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// State of this Pull Request. Either `open` or `closed`. /// /// - Remark: Generated from `#/components/schemas/pull-request/state`. - public var state: Components.Schemas.pull_hyphen_request.statePayload + public var state: Components.Schemas.PullRequest.StatePayload /// - Remark: Generated from `#/components/schemas/pull-request/locked`. public var locked: Swift.Bool /// The title of the pull request. @@ -4212,30 +4221,30 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/pull-request/body`. public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/id`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/id`. public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/node_id`. - public var node_id: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/url`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/node_id`. + public var nodeId: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/description`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/color`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/color`. public var color: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request/labelsPayload/default`. + /// - Remark: Generated from `#/components/schemas/pull-request/LabelsPayload/default`. public var _default: Swift.Bool - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -4243,7 +4252,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, name: Swift.String, description: Swift.String? = nil, @@ -4251,7 +4260,7 @@ public enum Components { _default: Swift.Bool ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -4260,7 +4269,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -4269,44 +4278,44 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request/labels`. - public typealias labelsPayload = [Components.Schemas.pull_hyphen_request.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.PullRequest.LabelsPayloadPayload] /// - Remark: Generated from `#/components/schemas/pull-request/labels`. - public var labels: Components.Schemas.pull_hyphen_request.labelsPayload + public var labels: Components.Schemas.PullRequest.LabelsPayload /// - Remark: Generated from `#/components/schemas/pull-request/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/pull-request/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request/merge_commit_sha`. - public var merge_commit_sha: Swift.String? + public var mergeCommitSha: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request/requested_reviewers`. - public var requested_reviewers: [Components.Schemas.simple_hyphen_user]? + public var requestedReviewers: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request/requested_teams`. - public var requested_teams: [Components.Schemas.team_hyphen_simple]? + public var requestedTeams: [Components.Schemas.TeamSimple]? /// - Remark: Generated from `#/components/schemas/pull-request/head`. - public struct headPayload: Codable, Hashable, Sendable { + public struct HeadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request/head/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request/head/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/user`. - public var user: Components.Schemas.simple_hyphen_user - /// Creates a new `headPayload`. + public var user: Components.Schemas.SimpleUser + /// Creates a new `HeadPayload`. /// /// - Parameters: /// - label: @@ -4317,9 +4326,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.simple_hyphen_user + user: Components.Schemas.SimpleUser ) { self.label = label self.ref = ref @@ -4336,20 +4345,20 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request/head`. - public var head: Components.Schemas.pull_hyphen_request.headPayload + public var head: Components.Schemas.PullRequest.HeadPayload /// - Remark: Generated from `#/components/schemas/pull-request/base`. - public struct basePayload: Codable, Hashable, Sendable { + public struct BasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request/base/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request/base/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/user`. - public var user: Components.Schemas.simple_hyphen_user - /// Creates a new `basePayload`. + public var user: Components.Schemas.SimpleUser + /// Creates a new `BasePayload`. /// /// - Parameters: /// - label: @@ -4360,9 +4369,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.simple_hyphen_user + user: Components.Schemas.SimpleUser ) { self.label = label self.ref = ref @@ -4379,26 +4388,26 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request/base`. - public var base: Components.Schemas.pull_hyphen_request.basePayload + public var base: Components.Schemas.PullRequest.BasePayload /// - Remark: Generated from `#/components/schemas/pull-request/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request/_links/comments`. - public var comments: Components.Schemas.link + public var comments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/commits`. - public var commits: Components.Schemas.link + public var commits: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/statuses`. - public var statuses: Components.Schemas.link + public var statuses: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/html`. - public var html: Components.Schemas.link + public var html: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/issue`. - public var issue: Components.Schemas.link + public var issue: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/review_comments`. - public var review_comments: Components.Schemas.link + public var reviewComments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/review_comment`. - public var review_comment: Components.Schemas.link + public var reviewComment: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request/_links/self`. - public var _self: Components.Schemas.link - /// Creates a new `_linksPayload`. + public var _self: Components.Schemas.Link + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - comments: @@ -4406,26 +4415,26 @@ public enum Components { /// - statuses: /// - html: /// - issue: - /// - review_comments: - /// - review_comment: + /// - reviewComments: + /// - reviewComment: /// - _self: public init( - comments: Components.Schemas.link, - commits: Components.Schemas.link, - statuses: Components.Schemas.link, - html: Components.Schemas.link, - issue: Components.Schemas.link, - review_comments: Components.Schemas.link, - review_comment: Components.Schemas.link, - _self: Components.Schemas.link + comments: Components.Schemas.Link, + commits: Components.Schemas.Link, + statuses: Components.Schemas.Link, + html: Components.Schemas.Link, + issue: Components.Schemas.Link, + reviewComments: Components.Schemas.Link, + reviewComment: Components.Schemas.Link, + _self: Components.Schemas.Link ) { self.comments = comments self.commits = commits self.statuses = statuses self.html = html self.issue = issue - self.review_comments = review_comments - self.review_comment = review_comment + self.reviewComments = reviewComments + self.reviewComment = reviewComment self._self = _self } public enum CodingKeys: String, CodingKey { @@ -4434,17 +4443,17 @@ public enum Components { case statuses case html case issue - case review_comments - case review_comment + case reviewComments = "review_comments" + case reviewComment = "review_comment" case _self = "self" } } /// - Remark: Generated from `#/components/schemas/pull-request/_links`. - public var _links: Components.Schemas.pull_hyphen_request._linksPayload + public var _links: Components.Schemas.PullRequest._LinksPayload /// - Remark: Generated from `#/components/schemas/pull-request/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/pull-request/auto_merge`. - public var auto_merge: Components.Schemas.auto_hyphen_merge? + public var autoMerge: Components.Schemas.AutoMerge? /// Indicates whether or not the pull request is a draft. /// /// - Remark: Generated from `#/components/schemas/pull-request/draft`. @@ -4456,17 +4465,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/rebaseable`. public var rebaseable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pull-request/mergeable_state`. - public var mergeable_state: Swift.String + public var mergeableState: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/merged_by`. - public var merged_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var mergedBy: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/pull-request/review_comments`. - public var review_comments: Swift.Int + public var reviewComments: Swift.Int /// Indicates whether maintainers can modify the pull request. /// /// - Remark: Generated from `#/components/schemas/pull-request/maintainer_can_modify`. - public var maintainer_can_modify: Swift.Bool + public var maintainerCanModify: Swift.Bool /// - Remark: Generated from `#/components/schemas/pull-request/commits`. public var commits: Swift.Int /// - Remark: Generated from `#/components/schemas/pull-request/additions`. @@ -4474,22 +4483,22 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request/deletions`. public var deletions: Swift.Int /// - Remark: Generated from `#/components/schemas/pull-request/changed_files`. - public var changed_files: Swift.Int - /// Creates a new `pull_hyphen_request`. + public var changedFiles: Swift.Int + /// Creates a new `PullRequest`. /// /// - Parameters: /// - url: /// - id: - /// - node_id: - /// - html_url: - /// - diff_url: - /// - patch_url: - /// - issue_url: - /// - commits_url: - /// - review_comments_url: - /// - review_comment_url: - /// - comments_url: - /// - statuses_url: + /// - nodeId: + /// - htmlUrl: + /// - diffUrl: + /// - patchUrl: + /// - issueUrl: + /// - commitsUrl: + /// - reviewCommentsUrl: + /// - reviewCommentUrl: + /// - commentsUrl: + /// - statusesUrl: /// - number: Number uniquely identifying the pull request within its repository. /// - state: State of this Pull Request. Either `open` or `closed`. /// - locked: @@ -4498,96 +4507,96 @@ public enum Components { /// - body: /// - labels: /// - milestone: - /// - active_lock_reason: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - merged_at: - /// - merge_commit_sha: + /// - activeLockReason: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - mergedAt: + /// - mergeCommitSha: /// - assignee: /// - assignees: - /// - requested_reviewers: - /// - requested_teams: + /// - requestedReviewers: + /// - requestedTeams: /// - head: /// - base: /// - _links: - /// - author_association: - /// - auto_merge: + /// - authorAssociation: + /// - autoMerge: /// - draft: Indicates whether or not the pull request is a draft. /// - merged: /// - mergeable: /// - rebaseable: - /// - mergeable_state: - /// - merged_by: + /// - mergeableState: + /// - mergedBy: /// - comments: - /// - review_comments: - /// - maintainer_can_modify: Indicates whether maintainers can modify the pull request. + /// - reviewComments: + /// - maintainerCanModify: Indicates whether maintainers can modify the pull request. /// - commits: /// - additions: /// - deletions: - /// - changed_files: + /// - changedFiles: public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, - html_url: Swift.String, - diff_url: Swift.String, - patch_url: Swift.String, - issue_url: Swift.String, - commits_url: Swift.String, - review_comments_url: Swift.String, - review_comment_url: Swift.String, - comments_url: Swift.String, - statuses_url: Swift.String, + nodeId: Swift.String, + htmlUrl: Swift.String, + diffUrl: Swift.String, + patchUrl: Swift.String, + issueUrl: Swift.String, + commitsUrl: Swift.String, + reviewCommentsUrl: Swift.String, + reviewCommentUrl: Swift.String, + commentsUrl: Swift.String, + statusesUrl: Swift.String, number: Swift.Int, - state: Components.Schemas.pull_hyphen_request.statePayload, + state: Components.Schemas.PullRequest.StatePayload, locked: Swift.Bool, title: Swift.String, - user: Components.Schemas.simple_hyphen_user, + user: Components.Schemas.SimpleUser, body: Swift.String? = nil, - labels: Components.Schemas.pull_hyphen_request.labelsPayload, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, - active_lock_reason: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - merged_at: Foundation.Date? = nil, - merge_commit_sha: Swift.String? = nil, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - requested_reviewers: [Components.Schemas.simple_hyphen_user]? = nil, - requested_teams: [Components.Schemas.team_hyphen_simple]? = nil, - head: Components.Schemas.pull_hyphen_request.headPayload, - base: Components.Schemas.pull_hyphen_request.basePayload, - _links: Components.Schemas.pull_hyphen_request._linksPayload, - author_association: Components.Schemas.author_hyphen_association, - auto_merge: Components.Schemas.auto_hyphen_merge? = nil, + labels: Components.Schemas.PullRequest.LabelsPayload, + milestone: Components.Schemas.NullableMilestone? = nil, + activeLockReason: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + mergedAt: Foundation.Date? = nil, + mergeCommitSha: Swift.String? = nil, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + requestedReviewers: [Components.Schemas.SimpleUser]? = nil, + requestedTeams: [Components.Schemas.TeamSimple]? = nil, + head: Components.Schemas.PullRequest.HeadPayload, + base: Components.Schemas.PullRequest.BasePayload, + _links: Components.Schemas.PullRequest._LinksPayload, + authorAssociation: Components.Schemas.AuthorAssociation, + autoMerge: Components.Schemas.AutoMerge? = nil, draft: Swift.Bool? = nil, merged: Swift.Bool, mergeable: Swift.Bool? = nil, rebaseable: Swift.Bool? = nil, - mergeable_state: Swift.String, - merged_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + mergeableState: Swift.String, + mergedBy: Components.Schemas.NullableSimpleUser? = nil, comments: Swift.Int, - review_comments: Swift.Int, - maintainer_can_modify: Swift.Bool, + reviewComments: Swift.Int, + maintainerCanModify: Swift.Bool, commits: Swift.Int, additions: Swift.Int, deletions: Swift.Int, - changed_files: Swift.Int + changedFiles: Swift.Int ) { self.url = url self.id = id - self.node_id = node_id - self.html_url = html_url - self.diff_url = diff_url - self.patch_url = patch_url - self.issue_url = issue_url - self.commits_url = commits_url - self.review_comments_url = review_comments_url - self.review_comment_url = review_comment_url - self.comments_url = comments_url - self.statuses_url = statuses_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl + self.diffUrl = diffUrl + self.patchUrl = patchUrl + self.issueUrl = issueUrl + self.commitsUrl = commitsUrl + self.reviewCommentsUrl = reviewCommentsUrl + self.reviewCommentUrl = reviewCommentUrl + self.commentsUrl = commentsUrl + self.statusesUrl = statusesUrl self.number = number self.state = state self.locked = locked @@ -4596,48 +4605,48 @@ public enum Components { self.body = body self.labels = labels self.milestone = milestone - self.active_lock_reason = active_lock_reason - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.merged_at = merged_at - self.merge_commit_sha = merge_commit_sha + self.activeLockReason = activeLockReason + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.mergedAt = mergedAt + self.mergeCommitSha = mergeCommitSha self.assignee = assignee self.assignees = assignees - self.requested_reviewers = requested_reviewers - self.requested_teams = requested_teams + self.requestedReviewers = requestedReviewers + self.requestedTeams = requestedTeams self.head = head self.base = base self._links = _links - self.author_association = author_association - self.auto_merge = auto_merge + self.authorAssociation = authorAssociation + self.autoMerge = autoMerge self.draft = draft self.merged = merged self.mergeable = mergeable self.rebaseable = rebaseable - self.mergeable_state = mergeable_state - self.merged_by = merged_by + self.mergeableState = mergeableState + self.mergedBy = mergedBy self.comments = comments - self.review_comments = review_comments - self.maintainer_can_modify = maintainer_can_modify + self.reviewComments = reviewComments + self.maintainerCanModify = maintainerCanModify self.commits = commits self.additions = additions self.deletions = deletions - self.changed_files = changed_files + self.changedFiles = changedFiles } public enum CodingKeys: String, CodingKey { case url case id - case node_id - case html_url - case diff_url - case patch_url - case issue_url - case commits_url - case review_comments_url - case review_comment_url - case comments_url - case statuses_url + case nodeId = "node_id" + case htmlUrl = "html_url" + case diffUrl = "diff_url" + case patchUrl = "patch_url" + case issueUrl = "issue_url" + case commitsUrl = "commits_url" + case reviewCommentsUrl = "review_comments_url" + case reviewCommentUrl = "review_comment_url" + case commentsUrl = "comments_url" + case statusesUrl = "statuses_url" case number case state case locked @@ -4646,47 +4655,47 @@ public enum Components { case body case labels case milestone - case active_lock_reason - case created_at - case updated_at - case closed_at - case merged_at - case merge_commit_sha + case activeLockReason = "active_lock_reason" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case mergedAt = "merged_at" + case mergeCommitSha = "merge_commit_sha" case assignee case assignees - case requested_reviewers - case requested_teams + case requestedReviewers = "requested_reviewers" + case requestedTeams = "requested_teams" case head case base case _links - case author_association - case auto_merge + case authorAssociation = "author_association" + case autoMerge = "auto_merge" case draft case merged case mergeable case rebaseable - case mergeable_state - case merged_by + case mergeableState = "mergeable_state" + case mergedBy = "merged_by" case comments - case review_comments - case maintainer_can_modify + case reviewComments = "review_comments" + case maintainerCanModify = "maintainer_can_modify" case commits case additions case deletions - case changed_files + case changedFiles = "changed_files" } } /// Pull Request Merge Result /// /// - Remark: Generated from `#/components/schemas/pull-request-merge-result`. - public struct pull_hyphen_request_hyphen_merge_hyphen_result: Codable, Hashable, Sendable { + public struct PullRequestMergeResult: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-merge-result/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-merge-result/merged`. public var merged: Swift.Bool /// - Remark: Generated from `#/components/schemas/pull-request-merge-result/message`. public var message: Swift.String - /// Creates a new `pull_hyphen_request_hyphen_merge_hyphen_result`. + /// Creates a new `PullRequestMergeResult`. /// /// - Parameters: /// - sha: @@ -4710,19 +4719,19 @@ public enum Components { /// Pull Request Review Request /// /// - Remark: Generated from `#/components/schemas/pull-request-review-request`. - public struct pull_hyphen_request_hyphen_review_hyphen_request: Codable, Hashable, Sendable { + public struct PullRequestReviewRequest: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review-request/users`. - public var users: [Components.Schemas.simple_hyphen_user] + public var users: [Components.Schemas.SimpleUser] /// - Remark: Generated from `#/components/schemas/pull-request-review-request/teams`. - public var teams: [Components.Schemas.team] - /// Creates a new `pull_hyphen_request_hyphen_review_hyphen_request`. + public var teams: [Components.Schemas.Team] + /// Creates a new `PullRequestReviewRequest`. /// /// - Parameters: /// - users: /// - teams: public init( - users: [Components.Schemas.simple_hyphen_user], - teams: [Components.Schemas.team] + users: [Components.Schemas.SimpleUser], + teams: [Components.Schemas.Team] ) { self.users = users self.teams = teams @@ -4735,15 +4744,15 @@ public enum Components { /// Pull Request Reviews are reviews on pull requests. /// /// - Remark: Generated from `#/components/schemas/pull-request-review`. - public struct pull_hyphen_request_hyphen_review: Codable, Hashable, Sendable { + public struct PullRequestReview: Codable, Hashable, Sendable { /// Unique identifier of the review /// /// - Remark: Generated from `#/components/schemas/pull-request-review/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-review/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// The text of the review. /// /// - Remark: Generated from `#/components/schemas/pull-request-review/body`. @@ -4751,16 +4760,16 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-review/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review/pull_request_url`. - public var pull_request_url: Swift.String + public var pullRequestUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-review/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/html`. - public struct htmlPayload: Codable, Hashable, Sendable { + public struct HtmlPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/html/href`. public var href: Swift.String - /// Creates a new `htmlPayload`. + /// Creates a new `HtmlPayload`. /// /// - Parameters: /// - href: @@ -4772,12 +4781,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/html`. - public var html: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload.htmlPayload + public var html: Components.Schemas.PullRequestReview._LinksPayload.HtmlPayload /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/pull_request/href`. public var href: Swift.String - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: /// - href: @@ -4789,198 +4798,198 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-review/_links/pull_request`. - public var pull_request: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload.pull_requestPayload - /// Creates a new `_linksPayload`. + public var pullRequest: Components.Schemas.PullRequestReview._LinksPayload.PullRequestPayload + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - html: - /// - pull_request: + /// - pullRequest: public init( - html: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload.htmlPayload, - pull_request: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload.pull_requestPayload + html: Components.Schemas.PullRequestReview._LinksPayload.HtmlPayload, + pullRequest: Components.Schemas.PullRequestReview._LinksPayload.PullRequestPayload ) { self.html = html - self.pull_request = pull_request + self.pullRequest = pullRequest } public enum CodingKeys: String, CodingKey { case html - case pull_request + case pullRequest = "pull_request" } } /// - Remark: Generated from `#/components/schemas/pull-request-review/_links`. - public var _links: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload + public var _links: Components.Schemas.PullRequestReview._LinksPayload /// - Remark: Generated from `#/components/schemas/pull-request-review/submitted_at`. - public var submitted_at: Foundation.Date? + public var submittedAt: Foundation.Date? /// A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`. /// /// - Remark: Generated from `#/components/schemas/pull-request-review/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-review/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-review/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-review/author_association`. - public var author_association: Components.Schemas.author_hyphen_association - /// Creates a new `pull_hyphen_request_hyphen_review`. + public var authorAssociation: Components.Schemas.AuthorAssociation + /// Creates a new `PullRequestReview`. /// /// - Parameters: /// - id: Unique identifier of the review - /// - node_id: + /// - nodeId: /// - user: /// - body: The text of the review. /// - state: - /// - html_url: - /// - pull_request_url: + /// - htmlUrl: + /// - pullRequestUrl: /// - _links: - /// - submitted_at: - /// - commit_id: A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`. - /// - body_html: - /// - body_text: - /// - author_association: + /// - submittedAt: + /// - commitId: A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`. + /// - bodyHtml: + /// - bodyText: + /// - authorAssociation: public init( id: Swift.Int64, - node_id: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + nodeId: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String, state: Swift.String, - html_url: Swift.String, - pull_request_url: Swift.String, - _links: Components.Schemas.pull_hyphen_request_hyphen_review._linksPayload, - submitted_at: Foundation.Date? = nil, - commit_id: Swift.String? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - author_association: Components.Schemas.author_hyphen_association + htmlUrl: Swift.String, + pullRequestUrl: Swift.String, + _links: Components.Schemas.PullRequestReview._LinksPayload, + submittedAt: Foundation.Date? = nil, + commitId: Swift.String? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + authorAssociation: Components.Schemas.AuthorAssociation ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.user = user self.body = body self.state = state - self.html_url = html_url - self.pull_request_url = pull_request_url + self.htmlUrl = htmlUrl + self.pullRequestUrl = pullRequestUrl self._links = _links - self.submitted_at = submitted_at - self.commit_id = commit_id - self.body_html = body_html - self.body_text = body_text - self.author_association = author_association + self.submittedAt = submittedAt + self.commitId = commitId + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.authorAssociation = authorAssociation } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case user case body case state - case html_url - case pull_request_url + case htmlUrl = "html_url" + case pullRequestUrl = "pull_request_url" case _links - case submitted_at - case commit_id - case body_html - case body_text - case author_association + case submittedAt = "submitted_at" + case commitId = "commit_id" + case bodyHtml = "body_html" + case bodyText = "body_text" + case authorAssociation = "author_association" } } /// Legacy Review Comment /// /// - Remark: Generated from `#/components/schemas/review-comment`. - public struct review_hyphen_comment: Codable, Hashable, Sendable { + public struct ReviewComment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-comment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/pull_request_review_id`. - public var pull_request_review_id: Swift.Int64? + public var pullRequestReviewId: Swift.Int64? /// - Remark: Generated from `#/components/schemas/review-comment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/review-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/diff_hunk`. - public var diff_hunk: Swift.String + public var diffHunk: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/position`. public var position: Swift.Int? /// - Remark: Generated from `#/components/schemas/review-comment/original_position`. - public var original_position: Swift.Int + public var originalPosition: Swift.Int /// - Remark: Generated from `#/components/schemas/review-comment/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/original_commit_id`. - public var original_commit_id: Swift.String + public var originalCommitId: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/in_reply_to_id`. - public var in_reply_to_id: Swift.Int? + public var inReplyToId: Swift.Int? /// - Remark: Generated from `#/components/schemas/review-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/review-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/review-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/review-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/pull_request_url`. - public var pull_request_url: Swift.String + public var pullRequestUrl: Swift.String /// - Remark: Generated from `#/components/schemas/review-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/review-comment/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/review-comment/_links/self`. - public var _self: Components.Schemas.link + public var _self: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/review-comment/_links/html`. - public var html: Components.Schemas.link + public var html: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/review-comment/_links/pull_request`. - public var pull_request: Components.Schemas.link - /// Creates a new `_linksPayload`. + public var pullRequest: Components.Schemas.Link + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - _self: /// - html: - /// - pull_request: + /// - pullRequest: public init( - _self: Components.Schemas.link, - html: Components.Schemas.link, - pull_request: Components.Schemas.link + _self: Components.Schemas.Link, + html: Components.Schemas.Link, + pullRequest: Components.Schemas.Link ) { self._self = _self self.html = html - self.pull_request = pull_request + self.pullRequest = pullRequest } public enum CodingKeys: String, CodingKey { case _self = "self" case html - case pull_request + case pullRequest = "pull_request" } } /// - Remark: Generated from `#/components/schemas/review-comment/_links`. - public var _links: Components.Schemas.review_hyphen_comment._linksPayload + public var _links: Components.Schemas.ReviewComment._LinksPayload /// - Remark: Generated from `#/components/schemas/review-comment/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/review-comment/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/review-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? + public var reactions: Components.Schemas.ReactionRollup? /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/side`. - @frozen public enum sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum SidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/side`. - public var side: Components.Schemas.review_hyphen_comment.sidePayload? + public var side: Components.Schemas.ReviewComment.SidePayload? /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/start_side`. - @frozen public enum start_sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum StartSidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// The side of the first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/start_side`. - public var start_side: Components.Schemas.review_hyphen_comment.start_sidePayload? + public var startSide: Components.Schemas.ReviewComment.StartSidePayload? /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/review-comment/line`. @@ -4988,134 +4997,134 @@ public enum Components { /// The original line of the blob to which the comment applies. The last line of the range for a multi-line comment /// /// - Remark: Generated from `#/components/schemas/review-comment/original_line`. - public var original_line: Swift.Int? + public var originalLine: Swift.Int? /// The first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/start_line`. - public var start_line: Swift.Int? + public var startLine: Swift.Int? /// The original first line of the range for a multi-line comment. /// /// - Remark: Generated from `#/components/schemas/review-comment/original_start_line`. - public var original_start_line: Swift.Int? - /// Creates a new `review_hyphen_comment`. + public var originalStartLine: Swift.Int? + /// Creates a new `ReviewComment`. /// /// - Parameters: /// - url: - /// - pull_request_review_id: + /// - pullRequestReviewId: /// - id: - /// - node_id: - /// - diff_hunk: + /// - nodeId: + /// - diffHunk: /// - path: /// - position: - /// - original_position: - /// - commit_id: - /// - original_commit_id: - /// - in_reply_to_id: + /// - originalPosition: + /// - commitId: + /// - originalCommitId: + /// - inReplyToId: /// - user: /// - body: - /// - created_at: - /// - updated_at: - /// - html_url: - /// - pull_request_url: - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - htmlUrl: + /// - pullRequestUrl: + /// - authorAssociation: /// - _links: - /// - body_text: - /// - body_html: + /// - bodyText: + /// - bodyHtml: /// - reactions: /// - side: The side of the first line of the range for a multi-line comment. - /// - start_side: The side of the first line of the range for a multi-line comment. + /// - startSide: The side of the first line of the range for a multi-line comment. /// - line: The line of the blob to which the comment applies. The last line of the range for a multi-line comment - /// - original_line: The original line of the blob to which the comment applies. The last line of the range for a multi-line comment - /// - start_line: The first line of the range for a multi-line comment. - /// - original_start_line: The original first line of the range for a multi-line comment. + /// - originalLine: The original line of the blob to which the comment applies. The last line of the range for a multi-line comment + /// - startLine: The first line of the range for a multi-line comment. + /// - originalStartLine: The original first line of the range for a multi-line comment. public init( url: Swift.String, - pull_request_review_id: Swift.Int64? = nil, + pullRequestReviewId: Swift.Int64? = nil, id: Swift.Int64, - node_id: Swift.String, - diff_hunk: Swift.String, + nodeId: Swift.String, + diffHunk: Swift.String, path: Swift.String, position: Swift.Int? = nil, - original_position: Swift.Int, - commit_id: Swift.String, - original_commit_id: Swift.String, - in_reply_to_id: Swift.Int? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + originalPosition: Swift.Int, + commitId: Swift.String, + originalCommitId: Swift.String, + inReplyToId: Swift.Int? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - html_url: Swift.String, - pull_request_url: Swift.String, - author_association: Components.Schemas.author_hyphen_association, - _links: Components.Schemas.review_hyphen_comment._linksPayload, - body_text: Swift.String? = nil, - body_html: Swift.String? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil, - side: Components.Schemas.review_hyphen_comment.sidePayload? = nil, - start_side: Components.Schemas.review_hyphen_comment.start_sidePayload? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + htmlUrl: Swift.String, + pullRequestUrl: Swift.String, + authorAssociation: Components.Schemas.AuthorAssociation, + _links: Components.Schemas.ReviewComment._LinksPayload, + bodyText: Swift.String? = nil, + bodyHtml: Swift.String? = nil, + reactions: Components.Schemas.ReactionRollup? = nil, + side: Components.Schemas.ReviewComment.SidePayload? = nil, + startSide: Components.Schemas.ReviewComment.StartSidePayload? = nil, line: Swift.Int? = nil, - original_line: Swift.Int? = nil, - start_line: Swift.Int? = nil, - original_start_line: Swift.Int? = nil + originalLine: Swift.Int? = nil, + startLine: Swift.Int? = nil, + originalStartLine: Swift.Int? = nil ) { self.url = url - self.pull_request_review_id = pull_request_review_id + self.pullRequestReviewId = pullRequestReviewId self.id = id - self.node_id = node_id - self.diff_hunk = diff_hunk + self.nodeId = nodeId + self.diffHunk = diffHunk self.path = path self.position = position - self.original_position = original_position - self.commit_id = commit_id - self.original_commit_id = original_commit_id - self.in_reply_to_id = in_reply_to_id + self.originalPosition = originalPosition + self.commitId = commitId + self.originalCommitId = originalCommitId + self.inReplyToId = inReplyToId self.user = user self.body = body - self.created_at = created_at - self.updated_at = updated_at - self.html_url = html_url - self.pull_request_url = pull_request_url - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.htmlUrl = htmlUrl + self.pullRequestUrl = pullRequestUrl + self.authorAssociation = authorAssociation self._links = _links - self.body_text = body_text - self.body_html = body_html + self.bodyText = bodyText + self.bodyHtml = bodyHtml self.reactions = reactions self.side = side - self.start_side = start_side + self.startSide = startSide self.line = line - self.original_line = original_line - self.start_line = start_line - self.original_start_line = original_start_line + self.originalLine = originalLine + self.startLine = startLine + self.originalStartLine = originalStartLine } public enum CodingKeys: String, CodingKey { case url - case pull_request_review_id + case pullRequestReviewId = "pull_request_review_id" case id - case node_id - case diff_hunk + case nodeId = "node_id" + case diffHunk = "diff_hunk" case path case position - case original_position - case commit_id - case original_commit_id - case in_reply_to_id + case originalPosition = "original_position" + case commitId = "commit_id" + case originalCommitId = "original_commit_id" + case inReplyToId = "in_reply_to_id" case user case body - case created_at - case updated_at - case html_url - case pull_request_url - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case htmlUrl = "html_url" + case pullRequestUrl = "pull_request_url" + case authorAssociation = "author_association" case _links - case body_text - case body_html + case bodyText = "body_text" + case bodyHtml = "body_html" case reactions case side - case start_side + case startSide = "start_side" case line - case original_line - case start_line - case original_start_line + case originalLine = "original_line" + case startLine = "start_line" + case originalStartLine = "original_start_line" } } } @@ -5124,57 +5133,57 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since`. - public typealias since = Foundation.Date + public typealias Since = Foundation.Date /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int64 + public typealias CommentId = Swift.Int64 /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The number that identifies the pull request. /// /// - Remark: Generated from `#/components/parameters/pull-number`. - public typealias pull_hyphen_number = Swift.Int + public typealias PullNumber = Swift.Int /// The unique identifier of the review. /// /// - Remark: Generated from `#/components/parameters/review-id`. - public typealias review_hyphen_id = Swift.Int + public typealias ReviewId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -5184,25 +5193,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5212,25 +5221,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -5240,29 +5249,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5272,82 +5281,82 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BasicError { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Components.Responses.InternalError.Body) { + self.body = body + } + } + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { - self.body = body - } - } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5357,25 +5366,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct unacceptable: Sendable, Hashable { + public struct Unacceptable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/unacceptable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/unacceptable/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5385,12 +5394,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.unacceptable.Body - /// Creates a new `unacceptable`. + public var body: Components.Responses.Unacceptable.Body + /// Creates a new `Unacceptable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.unacceptable.Body) { + public init(body: Components.Responses.Unacceptable.Body) { self.body = body } } @@ -5398,7 +5407,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -5423,7 +5432,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)`. - public enum pulls_sol_list { + public enum PullsList { public static let id: Swift.String = "pulls/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/path`. @@ -5431,29 +5440,29 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.pulls_sol_list.Input.Path + public var path: Operations.PullsList.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" case all = "all" @@ -5461,7 +5470,7 @@ public enum Operations { /// Either `open`, `closed`, or `all` to filter by state. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/state`. - public var state: Operations.pulls_sol_list.Input.Query.statePayload? + public var state: Operations.PullsList.Input.Query.StatePayload? /// Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/head`. @@ -5471,33 +5480,33 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/base`. public var base: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case popularity = "popularity" - case long_hyphen_running = "long-running" + case longRunning = "long-running" } /// What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/sort`. - public var sort: Operations.pulls_sol_list.Input.Query.sortPayload? + public var sort: Operations.PullsList.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/direction`. - public var direction: Operations.pulls_sol_list.Input.Query.directionPayload? + public var direction: Operations.PullsList.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -5506,39 +5515,39 @@ public enum Operations { /// - base: Filter pulls by base branch name. Example: `gh-pages`. /// - sort: What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month. /// - direction: The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - /// - 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)." + /// - perPage: 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)." public init( - state: Operations.pulls_sol_list.Input.Query.statePayload? = nil, + state: Operations.PullsList.Input.Query.StatePayload? = nil, head: Swift.String? = nil, base: Swift.String? = nil, - sort: Operations.pulls_sol_list.Input.Query.sortPayload? = nil, - direction: Operations.pulls_sol_list.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.PullsList.Input.Query.SortPayload? = nil, + direction: Operations.PullsList.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.state = state self.head = head self.base = base self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list.Input.Query + public var query: Operations.PullsList.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list.Input.Headers + public var headers: Operations.PullsList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5546,9 +5555,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list.Input.Path, - query: Operations.pulls_sol_list.Input.Query = .init(), - headers: Operations.pulls_sol_list.Input.Headers = .init() + path: Operations.PullsList.Input.Path, + query: Operations.PullsList.Input.Query = .init(), + headers: Operations.PullsList.Input.Headers = .init() ) { self.path = path self.query = query @@ -5560,26 +5569,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list.Output.Ok.Headers + public var headers: Operations.PullsList.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pull_hyphen_request_hyphen_simple]) + case json([Components.Schemas.PullRequestSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pull_hyphen_request_hyphen_simple] { + public var json: [Components.Schemas.PullRequestSimple] { get throws { switch self { case let .json(body): @@ -5589,15 +5598,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list.Output.Ok.Body + public var body: Operations.PullsList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list.Output.Ok.Body + headers: Operations.PullsList.Output.Ok.Headers = .init(), + body: Operations.PullsList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5608,12 +5617,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list.Output.Ok) + case ok(Operations.PullsList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list.Output.Ok { + public var ok: Operations.PullsList.Output.Ok { get throws { switch self { case let .ok(response): @@ -5631,12 +5640,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5654,12 +5671,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/get(pulls/list)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5720,7 +5737,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)`. - public enum pulls_sol_create { + public enum PullsCreate { public static let id: Swift.String = "pulls/create" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/path`. @@ -5728,41 +5745,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.pulls_sol_create.Input.Path + public var path: Operations.PullsCreate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_create.Input.Headers + public var headers: Operations.PullsCreate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the new pull request. Required unless `issue` is specified. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/title`. @@ -5774,7 +5791,7 @@ public enum Operations { /// The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/head_repo`. - public var head_repo: Swift.String? + public var headRepo: Swift.String? /// The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/base`. @@ -5786,7 +5803,7 @@ public enum Operations { /// Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/maintainer_can_modify`. - public var maintainer_can_modify: Swift.Bool? + public var maintainerCanModify: Swift.Bool? /// Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/draft`. @@ -5795,51 +5812,51 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/json/issue`. public var issue: Swift.Int64? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the new pull request. Required unless `issue` is specified. /// - head: The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`. - /// - head_repo: The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization. + /// - headRepo: The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization. /// - base: The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. /// - body: The contents of the pull request. - /// - maintainer_can_modify: Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + /// - maintainerCanModify: Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. /// - draft: Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more. /// - issue: An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified. public init( title: Swift.String? = nil, head: Swift.String, - head_repo: Swift.String? = nil, + headRepo: Swift.String? = nil, base: Swift.String, body: Swift.String? = nil, - maintainer_can_modify: Swift.Bool? = nil, + maintainerCanModify: Swift.Bool? = nil, draft: Swift.Bool? = nil, issue: Swift.Int64? = nil ) { self.title = title self.head = head - self.head_repo = head_repo + self.headRepo = headRepo self.base = base self.body = body - self.maintainer_can_modify = maintainer_can_modify + self.maintainerCanModify = maintainerCanModify self.draft = draft self.issue = issue } public enum CodingKeys: String, CodingKey { case title case head - case head_repo + case headRepo = "head_repo" case base case body - case maintainer_can_modify + case maintainerCanModify = "maintainer_can_modify" case draft case issue } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_create.Input.Body.jsonPayload) + case json(Operations.PullsCreate.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_create.Input.Body + public var body: Operations.PullsCreate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5847,9 +5864,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_create.Input.Path, - headers: Operations.pulls_sol_create.Input.Headers = .init(), - body: Operations.pulls_sol_create.Input.Body + path: Operations.PullsCreate.Input.Path, + headers: Operations.PullsCreate.Input.Headers = .init(), + body: Operations.PullsCreate.Input.Body ) { self.path = path self.headers = headers @@ -5861,26 +5878,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_create.Output.Created.Headers + public var headers: Operations.PullsCreate.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/POST/responses/201/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request) + case json(Components.Schemas.PullRequest) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request { + public var json: Components.Schemas.PullRequest { get throws { switch self { case let .json(body): @@ -5890,15 +5907,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_create.Output.Created.Body + public var body: Operations.PullsCreate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_create.Output.Created.Headers = .init(), - body: Operations.pulls_sol_create.Output.Created.Body + headers: Operations.PullsCreate.Output.Created.Headers = .init(), + body: Operations.PullsCreate.Output.Created.Body ) { self.headers = headers self.body = body @@ -5909,12 +5926,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.pulls_sol_create.Output.Created) + case created(Operations.PullsCreate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.pulls_sol_create.Output.Created { + public var created: Operations.PullsCreate.Output.Created { get throws { switch self { case let .created(response): @@ -5932,12 +5949,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5955,12 +5972,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/post(pulls/create)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6018,7 +6035,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/get(pulls/list-review-comments-for-repo)`. - public enum pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo { + public enum PullsListReviewCommentsForRepo { public static let id: Swift.String = "pulls/list-review-comments-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/path`. @@ -6026,91 +6043,91 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.PullsListReviewCommentsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case created_at = "created_at" + case createdAt = "created_at" } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/sort`. - public var sort: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.sortPayload? + public var sort: Operations.PullsListReviewCommentsForRepo.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort results. Ignored without `sort` parameter. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/direction`. - public var direction: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.directionPayload? + public var direction: Operations.PullsListReviewCommentsForRepo.Input.Query.DirectionPayload? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: /// - direction: The direction to sort results. Ignored without `sort` parameter. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - sort: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.sortPayload? = nil, - direction: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query.directionPayload? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.PullsListReviewCommentsForRepo.Input.Query.SortPayload? = nil, + direction: Operations.PullsListReviewCommentsForRepo.Input.Query.DirectionPayload? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.PullsListReviewCommentsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.PullsListReviewCommentsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6118,9 +6135,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.PullsListReviewCommentsForRepo.Input.Path, + query: Operations.PullsListReviewCommentsForRepo.Input.Query = .init(), + headers: Operations.PullsListReviewCommentsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -6132,26 +6149,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.PullsListReviewCommentsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment]) + case json([Components.Schemas.PullRequestReviewComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment] { + public var json: [Components.Schemas.PullRequestReviewComment] { get throws { switch self { case let .json(body): @@ -6161,15 +6178,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.PullsListReviewCommentsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.PullsListReviewCommentsForRepo.Output.Ok.Headers = .init(), + body: Operations.PullsListReviewCommentsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6180,12 +6197,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/get(pulls/list-review-comments-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.PullsListReviewCommentsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_review_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.PullsListReviewCommentsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -6242,7 +6259,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)`. - public enum pulls_sol_get_hyphen_review_hyphen_comment { + public enum PullsGetReviewComment { public static let id: Swift.String = "pulls/get-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/path`. @@ -6250,52 +6267,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.PullsGetReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.PullsGetReviewComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Input.Headers = .init() + path: Operations.PullsGetReviewComment.Input.Path, + headers: Operations.PullsGetReviewComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6306,12 +6323,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment) + case json(Components.Schemas.PullRequestReviewComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment { + public var json: Components.Schemas.PullRequestReviewComment { get throws { switch self { case let .json(body): @@ -6321,12 +6338,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output.Ok.Body + public var body: Operations.PullsGetReviewComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.PullsGetReviewComment.Output.Ok.Body) { self.body = body } } @@ -6335,12 +6352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output.Ok) + case ok(Operations.PullsGetReviewComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_get_hyphen_review_hyphen_comment.Output.Ok { + public var ok: Operations.PullsGetReviewComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -6358,12 +6375,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/get(pulls/get-review-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6420,7 +6437,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/patch(pulls/update-review-comment)`. - public enum pulls_sol_update_hyphen_review_hyphen_comment { + public enum PullsUpdateReviewComment { public static let id: Swift.String = "pulls/update-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/path`. @@ -6428,53 +6445,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.PullsUpdateReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.PullsUpdateReviewComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The text of the reply to the review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The text of the reply to the review comment. @@ -6486,9 +6503,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.PullsUpdateReviewComment.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Body + public var body: Operations.PullsUpdateReviewComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6496,9 +6513,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Input.Body + path: Operations.PullsUpdateReviewComment.Input.Path, + headers: Operations.PullsUpdateReviewComment.Input.Headers = .init(), + body: Operations.PullsUpdateReviewComment.Input.Body ) { self.path = path self.headers = headers @@ -6510,12 +6527,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment) + case json(Components.Schemas.PullRequestReviewComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment { + public var json: Components.Schemas.PullRequestReviewComment { get throws { switch self { case let .json(body): @@ -6525,12 +6542,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output.Ok.Body + public var body: Operations.PullsUpdateReviewComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.PullsUpdateReviewComment.Output.Ok.Body) { self.body = body } } @@ -6539,12 +6556,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/patch(pulls/update-review-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output.Ok) + case ok(Operations.PullsUpdateReviewComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_update_hyphen_review_hyphen_comment.Output.Ok { + public var ok: Operations.PullsUpdateReviewComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -6594,7 +6611,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)`. - public enum pulls_sol_delete_hyphen_review_hyphen_comment { + public enum PullsDeleteReviewComment { public static let id: Swift.String = "pulls/delete-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/DELETE/path`. @@ -6602,52 +6619,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.PullsDeleteReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.PullsDeleteReviewComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Input.Headers = .init() + path: Operations.PullsDeleteReviewComment.Input.Path, + headers: Operations.PullsDeleteReviewComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6663,12 +6680,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Output.NoContent) + case noContent(Operations.PullsDeleteReviewComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.pulls_sol_delete_hyphen_review_hyphen_comment.Output.NoContent { + public var noContent: Operations.PullsDeleteReviewComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6686,12 +6711,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/delete(pulls/delete-review-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6763,7 +6788,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)`. - public enum pulls_sol_get { + public enum PullsGet { public static let id: Swift.String = "pulls/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/path`. @@ -6771,52 +6796,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_get.Input.Path + public var path: Operations.PullsGet.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_get.Input.Headers + public var headers: Operations.PullsGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_get.Input.Path, - headers: Operations.pulls_sol_get.Input.Headers = .init() + path: Operations.PullsGet.Input.Path, + headers: Operations.PullsGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6827,12 +6852,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request) + case json(Components.Schemas.PullRequest) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request { + public var json: Components.Schemas.PullRequest { get throws { switch self { case let .json(body): @@ -6842,12 +6867,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_get.Output.Ok.Body + public var body: Operations.PullsGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_get.Output.Ok.Body) { + public init(body: Operations.PullsGet.Output.Ok.Body) { self.body = body } } @@ -6856,12 +6881,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_get.Output.Ok) + case ok(Operations.PullsGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_get.Output.Ok { + public var ok: Operations.PullsGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -6879,12 +6904,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6902,12 +6935,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6925,12 +6958,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/406`. /// /// HTTP response code: `406 notAcceptable`. - case notAcceptable(Components.Responses.unacceptable) + case notAcceptable(Components.Responses.Unacceptable) /// The associated value of the enum case if `self` is `.notAcceptable`. /// /// - Throws: An error if `self` is not `.notAcceptable`. /// - SeeAlso: `.notAcceptable`. - public var notAcceptable: Components.Responses.unacceptable { + public var notAcceptable: Components.Responses.Unacceptable { get throws { switch self { case let .notAcceptable(response): @@ -6948,12 +6981,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -6971,12 +7004,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/get(pulls/get)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7035,7 +7068,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/pulls/{pull_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)`. - public enum pulls_sol_update { + public enum PullsUpdate { public static let id: Swift.String = "pulls/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/path`. @@ -7043,48 +7076,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_update.Input.Path + public var path: Operations.PullsUpdate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_update.Input.Headers + public var headers: Operations.PullsUpdate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The title of the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json/title`. @@ -7096,14 +7129,14 @@ public enum Operations { /// State of this Pull Request. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// State of this Pull Request. Either `open` or `closed`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json/state`. - public var state: Operations.pulls_sol_update.Input.Body.jsonPayload.statePayload? + public var state: Operations.PullsUpdate.Input.Body.JsonPayload.StatePayload? /// The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json/base`. @@ -7111,40 +7144,40 @@ public enum Operations { /// Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/json/maintainer_can_modify`. - public var maintainer_can_modify: Swift.Bool? - /// Creates a new `jsonPayload`. + public var maintainerCanModify: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The title of the pull request. /// - body: The contents of the pull request. /// - state: State of this Pull Request. Either `open` or `closed`. /// - base: The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. - /// - maintainer_can_modify: Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + /// - maintainerCanModify: Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. public init( title: Swift.String? = nil, body: Swift.String? = nil, - state: Operations.pulls_sol_update.Input.Body.jsonPayload.statePayload? = nil, + state: Operations.PullsUpdate.Input.Body.JsonPayload.StatePayload? = nil, base: Swift.String? = nil, - maintainer_can_modify: Swift.Bool? = nil + maintainerCanModify: Swift.Bool? = nil ) { self.title = title self.body = body self.state = state self.base = base - self.maintainer_can_modify = maintainer_can_modify + self.maintainerCanModify = maintainerCanModify } public enum CodingKeys: String, CodingKey { case title case body case state case base - case maintainer_can_modify + case maintainerCanModify = "maintainer_can_modify" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.pulls_sol_update.Input.Body.jsonPayload) + case json(Operations.PullsUpdate.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_update.Input.Body? + public var body: Operations.PullsUpdate.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -7152,9 +7185,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_update.Input.Path, - headers: Operations.pulls_sol_update.Input.Headers = .init(), - body: Operations.pulls_sol_update.Input.Body? = nil + path: Operations.PullsUpdate.Input.Path, + headers: Operations.PullsUpdate.Input.Headers = .init(), + body: Operations.PullsUpdate.Input.Body? = nil ) { self.path = path self.headers = headers @@ -7166,12 +7199,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request) + case json(Components.Schemas.PullRequest) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request { + public var json: Components.Schemas.PullRequest { get throws { switch self { case let .json(body): @@ -7181,12 +7214,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_update.Output.Ok.Body + public var body: Operations.PullsUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_update.Output.Ok.Body) { + public init(body: Operations.PullsUpdate.Output.Ok.Body) { self.body = body } } @@ -7195,12 +7228,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_update.Output.Ok) + case ok(Operations.PullsUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_update.Output.Ok { + public var ok: Operations.PullsUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -7218,12 +7251,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7241,12 +7274,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/patch(pulls/update)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7304,7 +7337,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/get(pulls/list-review-comments)`. - public enum pulls_sol_list_hyphen_review_hyphen_comments { + public enum PullsListReviewComments { public static let id: Swift.String = "pulls/list-review-comments" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/path`. @@ -7312,99 +7345,99 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Path + public var path: Operations.PullsListReviewComments.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/sort`. - @frozen public enum sort: String, Codable, Hashable, Sendable { + @frozen public enum Sort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/sort`. - public var sort: Components.Parameters.sort? + public var sort: Components.Parameters.Sort? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort results. Ignored without `sort` parameter. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/direction`. - public var direction: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Query.directionPayload? + public var direction: Operations.PullsListReviewComments.Input.Query.DirectionPayload? /// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/since`. - public var since: Components.Parameters.since? + public var since: Components.Parameters.Since? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The property to sort the results by. /// - direction: The direction to sort results. Ignored without `sort` parameter. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - 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)." + /// - perPage: 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)." public init( - sort: Components.Parameters.sort? = nil, - direction: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Query.directionPayload? = nil, - since: Components.Parameters.since? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Components.Parameters.Sort? = nil, + direction: Operations.PullsListReviewComments.Input.Query.DirectionPayload? = nil, + since: Components.Parameters.Since? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort self.direction = direction self.since = since - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Query + public var query: Operations.PullsListReviewComments.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Headers + public var headers: Operations.PullsListReviewComments.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7412,9 +7445,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Path, - query: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Input.Headers = .init() + path: Operations.PullsListReviewComments.Input.Path, + query: Operations.PullsListReviewComments.Input.Query = .init(), + headers: Operations.PullsListReviewComments.Input.Headers = .init() ) { self.path = path self.query = query @@ -7426,26 +7459,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Headers + public var headers: Operations.PullsListReviewComments.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment]) + case json([Components.Schemas.PullRequestReviewComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment] { + public var json: [Components.Schemas.PullRequestReviewComment] { get throws { switch self { case let .json(body): @@ -7455,15 +7488,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Body + public var body: Operations.PullsListReviewComments.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok.Body + headers: Operations.PullsListReviewComments.Output.Ok.Headers = .init(), + body: Operations.PullsListReviewComments.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7474,12 +7507,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/get(pulls/list-review-comments)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok) + case ok(Operations.PullsListReviewComments.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_review_hyphen_comments.Output.Ok { + public var ok: Operations.PullsListReviewComments.Output.Ok { get throws { switch self { case let .ok(response): @@ -7543,7 +7576,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)`. - public enum pulls_sol_create_hyphen_review_hyphen_comment { + public enum PullsCreateReviewComment { public static let id: Swift.String = "pulls/create-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/path`. @@ -7551,48 +7584,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.PullsCreateReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.PullsCreateReviewComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The text of the review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/body`. @@ -7600,7 +7633,7 @@ public enum Operations { /// The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// The relative path to the file that necessitates a comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/path`. @@ -7613,14 +7646,14 @@ public enum Operations { /// In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/side`. - @frozen public enum sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum SidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" } /// In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/side`. - public var side: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.sidePayload? + public var side: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.SidePayload? /// **Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/line`. @@ -7628,87 +7661,87 @@ public enum Operations { /// **Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/start_line`. - public var start_line: Swift.Int? + public var startLine: Swift.Int? /// **Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/start_side`. - @frozen public enum start_sidePayload: String, Codable, Hashable, Sendable { - case LEFT = "LEFT" - case RIGHT = "RIGHT" + @frozen public enum StartSidePayload: String, Codable, Hashable, Sendable, CaseIterable { + case left = "LEFT" + case right = "RIGHT" case side = "side" } /// **Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/start_side`. - public var start_side: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.start_sidePayload? + public var startSide: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.StartSidePayload? /// The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/in_reply_to`. - public var in_reply_to: Swift.Int? + public var inReplyTo: Swift.Int? /// The level at which the comment is targeted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/subject_type`. - @frozen public enum subject_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum SubjectTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case line = "line" case file = "file" } /// The level at which the comment is targeted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/subject_type`. - public var subject_type: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.subject_typePayload? - /// Creates a new `jsonPayload`. + public var subjectType: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.SubjectTypePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The text of the review comment. - /// - commit_id: The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. + /// - commitId: The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. /// - path: The relative path to the file that necessitates a comment. /// - position: **This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. /// - side: In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. /// - line: **Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - /// - start_line: **Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - /// - start_side: **Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - /// - in_reply_to: The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored. - /// - subject_type: The level at which the comment is targeted. + /// - startLine: **Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. + /// - startSide: **Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + /// - inReplyTo: The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored. + /// - subjectType: The level at which the comment is targeted. public init( body: Swift.String, - commit_id: Swift.String, + commitId: Swift.String, path: Swift.String, position: Swift.Int? = nil, - side: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.sidePayload? = nil, + side: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.SidePayload? = nil, line: Swift.Int? = nil, - start_line: Swift.Int? = nil, - start_side: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.start_sidePayload? = nil, - in_reply_to: Swift.Int? = nil, - subject_type: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload.subject_typePayload? = nil + startLine: Swift.Int? = nil, + startSide: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.StartSidePayload? = nil, + inReplyTo: Swift.Int? = nil, + subjectType: Operations.PullsCreateReviewComment.Input.Body.JsonPayload.SubjectTypePayload? = nil ) { self.body = body - self.commit_id = commit_id + self.commitId = commitId self.path = path self.position = position self.side = side self.line = line - self.start_line = start_line - self.start_side = start_side - self.in_reply_to = in_reply_to - self.subject_type = subject_type + self.startLine = startLine + self.startSide = startSide + self.inReplyTo = inReplyTo + self.subjectType = subjectType } public enum CodingKeys: String, CodingKey { case body - case commit_id + case commitId = "commit_id" case path case position case side case line - case start_line - case start_side - case in_reply_to - case subject_type + case startLine = "start_line" + case startSide = "start_side" + case inReplyTo = "in_reply_to" + case subjectType = "subject_type" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.PullsCreateReviewComment.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body + public var body: Operations.PullsCreateReviewComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7716,9 +7749,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Input.Body + path: Operations.PullsCreateReviewComment.Input.Path, + headers: Operations.PullsCreateReviewComment.Input.Headers = .init(), + body: Operations.PullsCreateReviewComment.Input.Body ) { self.path = path self.headers = headers @@ -7730,26 +7763,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Headers + public var headers: Operations.PullsCreateReviewComment.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment) + case json(Components.Schemas.PullRequestReviewComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment { + public var json: Components.Schemas.PullRequestReviewComment { get throws { switch self { case let .json(body): @@ -7759,15 +7792,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Body + public var body: Operations.PullsCreateReviewComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created.Body + headers: Operations.PullsCreateReviewComment.Output.Created.Headers = .init(), + body: Operations.PullsCreateReviewComment.Output.Created.Body ) { self.headers = headers self.body = body @@ -7778,12 +7811,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created) + case created(Operations.PullsCreateReviewComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.pulls_sol_create_hyphen_review_hyphen_comment.Output.Created { + public var created: Operations.PullsCreateReviewComment.Output.Created { get throws { switch self { case let .created(response): @@ -7801,12 +7834,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7824,12 +7857,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/post(pulls/create-review-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7889,7 +7922,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)`. - public enum pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment { + public enum PullsCreateReplyForReviewComment { public static let id: Swift.String = "pulls/create-reply-for-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/path`. @@ -7897,60 +7930,60 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - comment_id: The unique identifier of the comment. + /// - pullNumber: The number that identifies the pull request. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.comment_id = comment_id + self.pullNumber = pullNumber + self.commentId = commentId } } - public var path: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.PullsCreateReplyForReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.PullsCreateReplyForReviewComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The text of the review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The text of the review comment. @@ -7962,9 +7995,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.PullsCreateReplyForReviewComment.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Body + public var body: Operations.PullsCreateReplyForReviewComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7972,9 +8005,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Input.Body + path: Operations.PullsCreateReplyForReviewComment.Input.Path, + headers: Operations.PullsCreateReplyForReviewComment.Input.Headers = .init(), + body: Operations.PullsCreateReplyForReviewComment.Input.Body ) { self.path = path self.headers = headers @@ -7986,26 +8019,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Headers + public var headers: Operations.PullsCreateReplyForReviewComment.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/POST/responses/201/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment) + case json(Components.Schemas.PullRequestReviewComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_comment { + public var json: Components.Schemas.PullRequestReviewComment { get throws { switch self { case let .json(body): @@ -8015,15 +8048,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Body + public var body: Operations.PullsCreateReplyForReviewComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created.Body + headers: Operations.PullsCreateReplyForReviewComment.Output.Created.Headers = .init(), + body: Operations.PullsCreateReplyForReviewComment.Output.Created.Body ) { self.headers = headers self.body = body @@ -8034,12 +8067,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created) + case created(Operations.PullsCreateReplyForReviewComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.pulls_sol_create_hyphen_reply_hyphen_for_hyphen_review_hyphen_comment.Output.Created { + public var created: Operations.PullsCreateReplyForReviewComment.Output.Created { get throws { switch self { case let .created(response): @@ -8057,12 +8090,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies/post(pulls/create-reply-for-review-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8121,7 +8154,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/commits/get(pulls/list-commits)`. - public enum pulls_sol_list_hyphen_commits { + public enum PullsListCommits { public static let id: Swift.String = "pulls/list-commits" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/path`. @@ -8129,68 +8162,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_list_hyphen_commits.Input.Path + public var path: Operations.PullsListCommits.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_commits.Input.Query + public var query: Operations.PullsListCommits.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_commits.Input.Headers + public var headers: Operations.PullsListCommits.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8198,9 +8231,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_commits.Input.Path, - query: Operations.pulls_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_commits.Input.Headers = .init() + path: Operations.PullsListCommits.Input.Path, + query: Operations.PullsListCommits.Input.Query = .init(), + headers: Operations.PullsListCommits.Input.Headers = .init() ) { self.path = path self.query = query @@ -8212,26 +8245,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Headers + public var headers: Operations.PullsListCommits.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/commits/GET/responses/200/content/application\/json`. - case json([Components.Schemas.commit]) + case json([Components.Schemas.Commit]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.commit] { + public var json: [Components.Schemas.Commit] { get throws { switch self { case let .json(body): @@ -8241,15 +8274,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Body + public var body: Operations.PullsListCommits.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_commits.Output.Ok.Body + headers: Operations.PullsListCommits.Output.Ok.Headers = .init(), + body: Operations.PullsListCommits.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8260,12 +8293,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/commits/get(pulls/list-commits)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_commits.Output.Ok) + case ok(Operations.PullsListCommits.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_commits.Output.Ok { + public var ok: Operations.PullsListCommits.Output.Ok { get throws { switch self { case let .ok(response): @@ -8325,7 +8358,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)`. - public enum pulls_sol_list_hyphen_files { + public enum PullsListFiles { public static let id: Swift.String = "pulls/list-files" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/path`. @@ -8333,68 +8366,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_list_hyphen_files.Input.Path + public var path: Operations.PullsListFiles.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_files.Input.Query + public var query: Operations.PullsListFiles.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_files.Input.Headers + public var headers: Operations.PullsListFiles.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8402,9 +8435,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_files.Input.Path, - query: Operations.pulls_sol_list_hyphen_files.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_files.Input.Headers = .init() + path: Operations.PullsListFiles.Input.Path, + query: Operations.PullsListFiles.Input.Query = .init(), + headers: Operations.PullsListFiles.Input.Headers = .init() ) { self.path = path self.query = query @@ -8416,26 +8449,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_files.Output.Ok.Headers + public var headers: Operations.PullsListFiles.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/files/GET/responses/200/content/application\/json`. - case json([Components.Schemas.diff_hyphen_entry]) + case json([Components.Schemas.DiffEntry]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.diff_hyphen_entry] { + public var json: [Components.Schemas.DiffEntry] { get throws { switch self { case let .json(body): @@ -8445,15 +8478,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_files.Output.Ok.Body + public var body: Operations.PullsListFiles.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_files.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_files.Output.Ok.Body + headers: Operations.PullsListFiles.Output.Ok.Headers = .init(), + body: Operations.PullsListFiles.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8464,12 +8497,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_files.Output.Ok) + case ok(Operations.PullsListFiles.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_files.Output.Ok { + public var ok: Operations.PullsListFiles.Output.Ok { get throws { switch self { case let .ok(response): @@ -8487,12 +8520,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8510,12 +8543,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -8533,12 +8566,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/files/get(pulls/list-files)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -8588,7 +8621,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)`. - public enum pulls_sol_check_hyphen_if_hyphen_merged { + public enum PullsCheckIfMerged { public static let id: Swift.String = "pulls/check-if-merged" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/GET/path`. @@ -8596,37 +8629,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input.Path + public var path: Operations.PullsCheckIfMerged.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Input.Path) { + public init(path: Operations.PullsCheckIfMerged.Input.Path) { self.path = path } } @@ -8640,12 +8673,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output.NoContent) + case noContent(Operations.PullsCheckIfMerged.Output.NoContent) + /// Response if pull request has been merged + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output.NoContent { + public var noContent: Operations.PullsCheckIfMerged.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8667,12 +8708,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output.NotFound) + case notFound(Operations.PullsCheckIfMerged.Output.NotFound) + /// Not Found if pull request has not been merged + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/get(pulls/check-if-merged)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.pulls_sol_check_hyphen_if_hyphen_merged.Output.NotFound { + public var notFound: Operations.PullsCheckIfMerged.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -8698,7 +8747,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)`. - public enum pulls_sol_merge { + public enum PullsMerge { public static let id: Swift.String = "pulls/merge" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/path`. @@ -8706,56 +8755,56 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_merge.Input.Path + public var path: Operations.PullsMerge.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_merge.Input.Headers + public var headers: Operations.PullsMerge.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Title for the automatic commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json/commit_title`. - public var commit_title: Swift.String? + public var commitTitle: Swift.String? /// Extra detail to append to automatic commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json/commit_message`. - public var commit_message: Swift.String? + public var commitMessage: Swift.String? /// SHA that pull request head must match to allow merge. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json/sha`. @@ -8763,7 +8812,7 @@ public enum Operations { /// The merge method to use. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json/merge_method`. - @frozen public enum merge_methodPayload: String, Codable, Hashable, Sendable { + @frozen public enum MergeMethodPayload: String, Codable, Hashable, Sendable, CaseIterable { case merge = "merge" case squash = "squash" case rebase = "rebase" @@ -8771,36 +8820,36 @@ public enum Operations { /// The merge method to use. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/json/merge_method`. - public var merge_method: Operations.pulls_sol_merge.Input.Body.jsonPayload.merge_methodPayload? - /// Creates a new `jsonPayload`. + public var mergeMethod: Operations.PullsMerge.Input.Body.JsonPayload.MergeMethodPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - commit_title: Title for the automatic commit message. - /// - commit_message: Extra detail to append to automatic commit message. + /// - commitTitle: Title for the automatic commit message. + /// - commitMessage: Extra detail to append to automatic commit message. /// - sha: SHA that pull request head must match to allow merge. - /// - merge_method: The merge method to use. + /// - mergeMethod: The merge method to use. public init( - commit_title: Swift.String? = nil, - commit_message: Swift.String? = nil, + commitTitle: Swift.String? = nil, + commitMessage: Swift.String? = nil, sha: Swift.String? = nil, - merge_method: Operations.pulls_sol_merge.Input.Body.jsonPayload.merge_methodPayload? = nil + mergeMethod: Operations.PullsMerge.Input.Body.JsonPayload.MergeMethodPayload? = nil ) { - self.commit_title = commit_title - self.commit_message = commit_message + self.commitTitle = commitTitle + self.commitMessage = commitMessage self.sha = sha - self.merge_method = merge_method + self.mergeMethod = mergeMethod } public enum CodingKeys: String, CodingKey { - case commit_title - case commit_message + case commitTitle = "commit_title" + case commitMessage = "commit_message" case sha - case merge_method + case mergeMethod = "merge_method" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/requestBody/content/application\/json`. - case json(Operations.pulls_sol_merge.Input.Body.jsonPayload) + case json(Operations.PullsMerge.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_merge.Input.Body? + public var body: Operations.PullsMerge.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -8808,9 +8857,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_merge.Input.Path, - headers: Operations.pulls_sol_merge.Input.Headers = .init(), - body: Operations.pulls_sol_merge.Input.Body? = nil + path: Operations.PullsMerge.Input.Path, + headers: Operations.PullsMerge.Input.Headers = .init(), + body: Operations.PullsMerge.Input.Body? = nil ) { self.path = path self.headers = headers @@ -8822,12 +8871,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_merge_hyphen_result) + case json(Components.Schemas.PullRequestMergeResult) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_merge_hyphen_result { + public var json: Components.Schemas.PullRequestMergeResult { get throws { switch self { case let .json(body): @@ -8837,12 +8886,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_merge.Output.Ok.Body + public var body: Operations.PullsMerge.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_merge.Output.Ok.Body) { + public init(body: Operations.PullsMerge.Output.Ok.Body) { self.body = body } } @@ -8851,12 +8900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_merge.Output.Ok) + case ok(Operations.PullsMerge.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_merge.Output.Ok { + public var ok: Operations.PullsMerge.Output.Ok { get throws { switch self { case let .ok(response): @@ -8873,35 +8922,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/405/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/405/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/405/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/405/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/405/content/application\/json`. - case json(Operations.pulls_sol_merge.Output.MethodNotAllowed.Body.jsonPayload) + case json(Operations.PullsMerge.Output.MethodNotAllowed.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.pulls_sol_merge.Output.MethodNotAllowed.Body.jsonPayload { + public var json: Operations.PullsMerge.Output.MethodNotAllowed.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8911,12 +8960,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_merge.Output.MethodNotAllowed.Body + public var body: Operations.PullsMerge.Output.MethodNotAllowed.Body /// Creates a new `MethodNotAllowed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_merge.Output.MethodNotAllowed.Body) { + public init(body: Operations.PullsMerge.Output.MethodNotAllowed.Body) { self.body = body } } @@ -8925,12 +8974,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/405`. /// /// HTTP response code: `405 methodNotAllowed`. - case methodNotAllowed(Operations.pulls_sol_merge.Output.MethodNotAllowed) + case methodNotAllowed(Operations.PullsMerge.Output.MethodNotAllowed) /// The associated value of the enum case if `self` is `.methodNotAllowed`. /// /// - Throws: An error if `self` is not `.methodNotAllowed`. /// - SeeAlso: `.methodNotAllowed`. - public var methodNotAllowed: Operations.pulls_sol_merge.Output.MethodNotAllowed { + public var methodNotAllowed: Operations.PullsMerge.Output.MethodNotAllowed { get throws { switch self { case let .methodNotAllowed(response): @@ -8947,35 +8996,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/409/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/409/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/409/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/409/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/merge/PUT/responses/409/content/application\/json`. - case json(Operations.pulls_sol_merge.Output.Conflict.Body.jsonPayload) + case json(Operations.PullsMerge.Output.Conflict.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.pulls_sol_merge.Output.Conflict.Body.jsonPayload { + public var json: Operations.PullsMerge.Output.Conflict.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8985,12 +9034,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_merge.Output.Conflict.Body + public var body: Operations.PullsMerge.Output.Conflict.Body /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_merge.Output.Conflict.Body) { + public init(body: Operations.PullsMerge.Output.Conflict.Body) { self.body = body } } @@ -8999,12 +9048,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.pulls_sol_merge.Output.Conflict) + case conflict(Operations.PullsMerge.Output.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.pulls_sol_merge.Output.Conflict { + public var conflict: Operations.PullsMerge.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -9022,12 +9071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9045,12 +9094,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9068,12 +9117,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/merge/put(pulls/merge)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9123,7 +9172,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/get(pulls/list-requested-reviewers)`. - public enum pulls_sol_list_hyphen_requested_hyphen_reviewers { + public enum PullsListRequestedReviewers { public static let id: Swift.String = "pulls/list-requested-reviewers" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/path`. @@ -9131,52 +9180,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Path + public var path: Operations.PullsListRequestedReviewers.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Headers + public var headers: Operations.PullsListRequestedReviewers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Input.Headers = .init() + path: Operations.PullsListRequestedReviewers.Input.Path, + headers: Operations.PullsListRequestedReviewers.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9187,26 +9236,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Headers + public var headers: Operations.PullsListRequestedReviewers.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_request) + case json(Components.Schemas.PullRequestReviewRequest) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review_hyphen_request { + public var json: Components.Schemas.PullRequestReviewRequest { get throws { switch self { case let .json(body): @@ -9216,15 +9265,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Body + public var body: Operations.PullsListRequestedReviewers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok.Body + headers: Operations.PullsListRequestedReviewers.Output.Ok.Headers = .init(), + body: Operations.PullsListRequestedReviewers.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9235,12 +9284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/get(pulls/list-requested-reviewers)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok) + case ok(Operations.PullsListRequestedReviewers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_requested_hyphen_reviewers.Output.Ok { + public var ok: Operations.PullsListRequestedReviewers.Output.Ok { get throws { switch self { case let .ok(response): @@ -9291,7 +9340,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)`. - public enum pulls_sol_request_hyphen_reviewers { + public enum PullsRequestReviewers { public static let id: Swift.String = "pulls/request-reviewers" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/path`. @@ -9299,70 +9348,70 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_request_hyphen_reviewers.Input.Path + public var path: Operations.PullsRequestReviewers.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_request_hyphen_reviewers.Input.Headers + public var headers: Operations.PullsRequestReviewers.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/json/value1`. public struct Value1Payload: Codable, Hashable, Sendable { /// Creates a new `Value1Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/json/value1`. - public var value1: Operations.pulls_sol_request_hyphen_reviewers.Input.Body.jsonPayload.Value1Payload? + public var value1: Operations.PullsRequestReviewers.Input.Body.JsonPayload.Value1Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/json/value2`. - public var value2: Operations.pulls_sol_request_hyphen_reviewers.Input.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.PullsRequestReviewers.Input.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Operations.pulls_sol_request_hyphen_reviewers.Input.Body.jsonPayload.Value1Payload? = nil, - value2: Operations.pulls_sol_request_hyphen_reviewers.Input.Body.jsonPayload.Value2Payload? = nil + value1: Operations.PullsRequestReviewers.Input.Body.JsonPayload.Value1Payload? = nil, + value2: Operations.PullsRequestReviewers.Input.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -9370,19 +9419,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -9390,14 +9439,14 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_request_hyphen_reviewers.Input.Body.jsonPayload) + case json(Operations.PullsRequestReviewers.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_request_hyphen_reviewers.Input.Body? + public var body: Operations.PullsRequestReviewers.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -9405,9 +9454,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_request_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_request_hyphen_reviewers.Input.Headers = .init(), - body: Operations.pulls_sol_request_hyphen_reviewers.Input.Body? = nil + path: Operations.PullsRequestReviewers.Input.Path, + headers: Operations.PullsRequestReviewers.Input.Headers = .init(), + body: Operations.PullsRequestReviewers.Input.Body? = nil ) { self.path = path self.headers = headers @@ -9419,12 +9468,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/POST/responses/201/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_simple) + case json(Components.Schemas.PullRequestSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_simple { + public var json: Components.Schemas.PullRequestSimple { get throws { switch self { case let .json(body): @@ -9434,12 +9483,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_request_hyphen_reviewers.Output.Created.Body + public var body: Operations.PullsRequestReviewers.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_request_hyphen_reviewers.Output.Created.Body) { + public init(body: Operations.PullsRequestReviewers.Output.Created.Body) { self.body = body } } @@ -9448,12 +9497,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.pulls_sol_request_hyphen_reviewers.Output.Created) + case created(Operations.PullsRequestReviewers.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.pulls_sol_request_hyphen_reviewers.Output.Created { + public var created: Operations.PullsRequestReviewers.Output.Created { get throws { switch self { case let .created(response): @@ -9475,12 +9524,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.pulls_sol_request_hyphen_reviewers.Output.UnprocessableContent) + case unprocessableContent(Operations.PullsRequestReviewers.Output.UnprocessableContent) + /// Unprocessable Entity if user is not a collaborator + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.pulls_sol_request_hyphen_reviewers.Output.UnprocessableContent { + public var unprocessableContent: Operations.PullsRequestReviewers.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -9498,12 +9555,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/post(pulls/request-reviewers)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9553,7 +9610,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)`. - public enum pulls_sol_remove_hyphen_requested_hyphen_reviewers { + public enum PullsRemoveRequestedReviewers { public static let id: Swift.String = "pulls/remove-requested-reviewers" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/path`. @@ -9561,48 +9618,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Path + public var path: Operations.PullsRemoveRequestedReviewers.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Headers + public var headers: Operations.PullsRemoveRequestedReviewers.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of user `login`s that will be removed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/requestBody/json/reviewers`. @@ -9610,28 +9667,28 @@ public enum Operations { /// An array of team `slug`s that will be removed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/requestBody/json/team_reviewers`. - public var team_reviewers: [Swift.String]? - /// Creates a new `jsonPayload`. + public var teamReviewers: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - reviewers: An array of user `login`s that will be removed. - /// - team_reviewers: An array of team `slug`s that will be removed. + /// - teamReviewers: An array of team `slug`s that will be removed. public init( reviewers: [Swift.String], - team_reviewers: [Swift.String]? = nil + teamReviewers: [Swift.String]? = nil ) { self.reviewers = reviewers - self.team_reviewers = team_reviewers + self.teamReviewers = teamReviewers } public enum CodingKeys: String, CodingKey { case reviewers - case team_reviewers + case teamReviewers = "team_reviewers" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/requestBody/content/application\/json`. - case json(Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Body.jsonPayload) + case json(Operations.PullsRemoveRequestedReviewers.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Body + public var body: Operations.PullsRemoveRequestedReviewers.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -9639,9 +9696,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Path, - headers: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Headers = .init(), - body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Input.Body + path: Operations.PullsRemoveRequestedReviewers.Input.Path, + headers: Operations.PullsRemoveRequestedReviewers.Input.Headers = .init(), + body: Operations.PullsRemoveRequestedReviewers.Input.Body ) { self.path = path self.headers = headers @@ -9653,12 +9710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_simple) + case json(Components.Schemas.PullRequestSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_simple { + public var json: Components.Schemas.PullRequestSimple { get throws { switch self { case let .json(body): @@ -9668,12 +9725,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output.Ok.Body + public var body: Operations.PullsRemoveRequestedReviewers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output.Ok.Body) { + public init(body: Operations.PullsRemoveRequestedReviewers.Output.Ok.Body) { self.body = body } } @@ -9682,12 +9739,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output.Ok) + case ok(Operations.PullsRemoveRequestedReviewers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_remove_hyphen_requested_hyphen_reviewers.Output.Ok { + public var ok: Operations.PullsRemoveRequestedReviewers.Output.Ok { get throws { switch self { case let .ok(response): @@ -9705,12 +9762,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers/delete(pulls/remove-requested-reviewers)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9767,7 +9824,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/get(pulls/list-reviews)`. - public enum pulls_sol_list_hyphen_reviews { + public enum PullsListReviews { public static let id: Swift.String = "pulls/list-reviews" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/path`. @@ -9775,68 +9832,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_list_hyphen_reviews.Input.Path + public var path: Operations.PullsListReviews.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_reviews.Input.Query + public var query: Operations.PullsListReviews.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_reviews.Input.Headers + public var headers: Operations.PullsListReviews.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9844,9 +9901,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_reviews.Input.Path, - query: Operations.pulls_sol_list_hyphen_reviews.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_reviews.Input.Headers = .init() + path: Operations.PullsListReviews.Input.Path, + query: Operations.PullsListReviews.Input.Query = .init(), + headers: Operations.PullsListReviews.Input.Headers = .init() ) { self.path = path self.query = query @@ -9858,26 +9915,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Headers + public var headers: Operations.PullsListReviews.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pull_hyphen_request_hyphen_review]) + case json([Components.Schemas.PullRequestReview]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pull_hyphen_request_hyphen_review] { + public var json: [Components.Schemas.PullRequestReview] { get throws { switch self { case let .json(body): @@ -9887,15 +9944,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Body + public var body: Operations.PullsListReviews.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_reviews.Output.Ok.Body + headers: Operations.PullsListReviews.Output.Ok.Headers = .init(), + body: Operations.PullsListReviews.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9906,12 +9963,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/get(pulls/list-reviews)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_reviews.Output.Ok) + case ok(Operations.PullsListReviews.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_reviews.Output.Ok { + public var ok: Operations.PullsListReviews.Output.Ok { get throws { switch self { case let .ok(response): @@ -9977,7 +10034,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)`. - public enum pulls_sol_create_hyphen_review { + public enum PullsCreateReview { public static let id: Swift.String = "pulls/create-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/path`. @@ -9985,52 +10042,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_create_hyphen_review.Input.Path + public var path: Operations.PullsCreateReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_create_hyphen_review.Input.Headers + public var headers: Operations.PullsCreateReview.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commit_id`. - public var commit_id: Swift.String? + public var commitId: Swift.String? /// **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/body`. @@ -10038,38 +10095,38 @@ public enum Operations { /// The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/event`. - @frozen public enum eventPayload: String, Codable, Hashable, Sendable { - case APPROVE = "APPROVE" - case REQUEST_CHANGES = "REQUEST_CHANGES" - case COMMENT = "COMMENT" + @frozen public enum EventPayload: String, Codable, Hashable, Sendable, CaseIterable { + case approve = "APPROVE" + case requestChanges = "REQUEST_CHANGES" + case comment = "COMMENT" } /// The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/event`. - public var event: Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload.eventPayload? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload`. - public struct commentsPayloadPayload: Codable, Hashable, Sendable { + public var event: Operations.PullsCreateReview.Input.Body.JsonPayload.EventPayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload`. + public struct CommentsPayloadPayload: Codable, Hashable, Sendable { /// The relative path to the file that necessitates a review comment. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/path`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/path`. public var path: Swift.String /// The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/position`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/position`. public var position: Swift.Int? /// Text of the review comment. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/body`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/body`. public var body: Swift.String - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/line`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/line`. public var line: Swift.Int? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/side`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/side`. public var side: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/start_line`. - public var start_line: Swift.Int? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/commentsPayload/start_side`. - public var start_side: Swift.String? - /// Creates a new `commentsPayloadPayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/start_line`. + public var startLine: Swift.Int? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/CommentsPayload/start_side`. + public var startSide: Swift.String? + /// Creates a new `CommentsPayloadPayload`. /// /// - Parameters: /// - path: The relative path to the file that necessitates a review comment. @@ -10077,24 +10134,24 @@ public enum Operations { /// - body: Text of the review comment. /// - line: /// - side: - /// - start_line: - /// - start_side: + /// - startLine: + /// - startSide: public init( path: Swift.String, position: Swift.Int? = nil, body: Swift.String, line: Swift.Int? = nil, side: Swift.String? = nil, - start_line: Swift.Int? = nil, - start_side: Swift.String? = nil + startLine: Swift.Int? = nil, + startSide: Swift.String? = nil ) { self.path = path self.position = position self.body = body self.line = line self.side = side - self.start_line = start_line - self.start_side = start_side + self.startLine = startLine + self.startSide = startSide } public enum CodingKeys: String, CodingKey { case path @@ -10102,47 +10159,47 @@ public enum Operations { case body case line case side - case start_line - case start_side + case startLine = "start_line" + case startSide = "start_side" } } /// Use the following table to specify the location, destination, and contents of the draft review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/comments`. - public typealias commentsPayload = [Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload.commentsPayloadPayload] + public typealias CommentsPayload = [Operations.PullsCreateReview.Input.Body.JsonPayload.CommentsPayloadPayload] /// Use the following table to specify the location, destination, and contents of the draft review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/json/comments`. - public var comments: Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload.commentsPayload? - /// Creates a new `jsonPayload`. + public var comments: Operations.PullsCreateReview.Input.Body.JsonPayload.CommentsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - commit_id: The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. + /// - commitId: The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. /// - body: **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. /// - event: The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready. /// - comments: Use the following table to specify the location, destination, and contents of the draft review comment. public init( - commit_id: Swift.String? = nil, + commitId: Swift.String? = nil, body: Swift.String? = nil, - event: Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload.eventPayload? = nil, - comments: Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload.commentsPayload? = nil + event: Operations.PullsCreateReview.Input.Body.JsonPayload.EventPayload? = nil, + comments: Operations.PullsCreateReview.Input.Body.JsonPayload.CommentsPayload? = nil ) { - self.commit_id = commit_id + self.commitId = commitId self.body = body self.event = event self.comments = comments } public enum CodingKeys: String, CodingKey { - case commit_id + case commitId = "commit_id" case body case event case comments } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_create_hyphen_review.Input.Body.jsonPayload) + case json(Operations.PullsCreateReview.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_create_hyphen_review.Input.Body? + public var body: Operations.PullsCreateReview.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -10150,9 +10207,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_create_hyphen_review.Input.Path, - headers: Operations.pulls_sol_create_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_create_hyphen_review.Input.Body? = nil + path: Operations.PullsCreateReview.Input.Path, + headers: Operations.PullsCreateReview.Input.Headers = .init(), + body: Operations.PullsCreateReview.Input.Body? = nil ) { self.path = path self.headers = headers @@ -10164,12 +10221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/POST/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -10179,12 +10236,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_create_hyphen_review.Output.Ok.Body + public var body: Operations.PullsCreateReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_create_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsCreateReview.Output.Ok.Body) { self.body = body } } @@ -10193,12 +10250,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_create_hyphen_review.Output.Ok) + case ok(Operations.PullsCreateReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_create_hyphen_review.Output.Ok { + public var ok: Operations.PullsCreateReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -10216,12 +10273,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -10239,12 +10296,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/post(pulls/create-review)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10301,7 +10358,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)`. - public enum pulls_sol_get_hyphen_review { + public enum PullsGetReview { public static let id: Swift.String = "pulls/get-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/path`. @@ -10309,59 +10366,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_get_hyphen_review.Input.Path + public var path: Operations.PullsGetReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_get_hyphen_review.Input.Headers + public var headers: Operations.PullsGetReview.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_get_hyphen_review.Input.Path, - headers: Operations.pulls_sol_get_hyphen_review.Input.Headers = .init() + path: Operations.PullsGetReview.Input.Path, + headers: Operations.PullsGetReview.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10372,12 +10429,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -10387,12 +10444,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_get_hyphen_review.Output.Ok.Body + public var body: Operations.PullsGetReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_get_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsGetReview.Output.Ok.Body) { self.body = body } } @@ -10401,12 +10458,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_get_hyphen_review.Output.Ok) + case ok(Operations.PullsGetReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_get_hyphen_review.Output.Ok { + public var ok: Operations.PullsGetReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -10424,12 +10481,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/get(pulls/get-review)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10486,7 +10543,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)`. - public enum pulls_sol_update_hyphen_review { + public enum PullsUpdateReview { public static let id: Swift.String = "pulls/update-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/path`. @@ -10494,60 +10551,60 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_update_hyphen_review.Input.Path + public var path: Operations.PullsUpdateReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_update_hyphen_review.Input.Headers + public var headers: Operations.PullsUpdateReview.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The body text of the pull request review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The body text of the pull request review. @@ -10559,9 +10616,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/requestBody/content/application\/json`. - case json(Operations.pulls_sol_update_hyphen_review.Input.Body.jsonPayload) + case json(Operations.PullsUpdateReview.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_update_hyphen_review.Input.Body + public var body: Operations.PullsUpdateReview.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -10569,9 +10626,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_update_hyphen_review.Input.Path, - headers: Operations.pulls_sol_update_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_review.Input.Body + path: Operations.PullsUpdateReview.Input.Path, + headers: Operations.PullsUpdateReview.Input.Headers = .init(), + body: Operations.PullsUpdateReview.Input.Body ) { self.path = path self.headers = headers @@ -10583,12 +10640,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -10598,12 +10655,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_update_hyphen_review.Output.Ok.Body + public var body: Operations.PullsUpdateReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_update_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsUpdateReview.Output.Ok.Body) { self.body = body } } @@ -10612,12 +10669,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_update_hyphen_review.Output.Ok) + case ok(Operations.PullsUpdateReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_update_hyphen_review.Output.Ok { + public var ok: Operations.PullsUpdateReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -10635,12 +10692,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/put(pulls/update-review)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -10697,7 +10754,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)`. - public enum pulls_sol_delete_hyphen_pending_hyphen_review { + public enum PullsDeletePendingReview { public static let id: Swift.String = "pulls/delete-pending-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/path`. @@ -10705,59 +10762,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Path + public var path: Operations.PullsDeletePendingReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Headers + public var headers: Operations.PullsDeletePendingReview.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Path, - headers: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Input.Headers = .init() + path: Operations.PullsDeletePendingReview.Input.Path, + headers: Operations.PullsDeletePendingReview.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10768,12 +10825,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -10783,12 +10840,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output.Ok.Body + public var body: Operations.PullsDeletePendingReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsDeletePendingReview.Output.Ok.Body) { self.body = body } } @@ -10797,12 +10854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output.Ok) + case ok(Operations.PullsDeletePendingReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_delete_hyphen_pending_hyphen_review.Output.Ok { + public var ok: Operations.PullsDeletePendingReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -10820,12 +10877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -10843,12 +10900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/delete(pulls/delete-pending-review)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10905,7 +10962,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)`. - public enum pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review { + public enum PullsListCommentsForReview { public static let id: Swift.String = "pulls/list-comments-for-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/path`. @@ -10913,75 +10970,75 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Path + public var path: Operations.PullsListCommentsForReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Query + public var query: Operations.PullsListCommentsForReview.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Headers + public var headers: Operations.PullsListCommentsForReview.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10989,9 +11046,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Path, - query: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Query = .init(), - headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Input.Headers = .init() + path: Operations.PullsListCommentsForReview.Input.Path, + query: Operations.PullsListCommentsForReview.Input.Query = .init(), + headers: Operations.PullsListCommentsForReview.Input.Headers = .init() ) { self.path = path self.query = query @@ -11003,26 +11060,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Headers + public var headers: Operations.PullsListCommentsForReview.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.review_hyphen_comment]) + case json([Components.Schemas.ReviewComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.review_hyphen_comment] { + public var json: [Components.Schemas.ReviewComment] { get throws { switch self { case let .json(body): @@ -11032,15 +11089,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Body + public var body: Operations.PullsListCommentsForReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Headers = .init(), - body: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok.Body + headers: Operations.PullsListCommentsForReview.Output.Ok.Headers = .init(), + body: Operations.PullsListCommentsForReview.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11051,12 +11108,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok) + case ok(Operations.PullsListCommentsForReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_list_hyphen_comments_hyphen_for_hyphen_review.Output.Ok { + public var ok: Operations.PullsListCommentsForReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -11074,12 +11131,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments/get(pulls/list-comments-for-review)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11139,7 +11196,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)`. - public enum pulls_sol_dismiss_hyphen_review { + public enum PullsDismissReview { public static let id: Swift.String = "pulls/dismiss-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/path`. @@ -11147,73 +11204,73 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_dismiss_hyphen_review.Input.Path + public var path: Operations.PullsDismissReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_dismiss_hyphen_review.Input.Headers + public var headers: Operations.PullsDismissReview.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The message for the pull request review dismissal /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody/json/message`. public var message: Swift.String /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody/json/event`. - @frozen public enum eventPayload: String, Codable, Hashable, Sendable { - case DISMISS = "DISMISS" + @frozen public enum EventPayload: String, Codable, Hashable, Sendable, CaseIterable { + case dismiss = "DISMISS" } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody/json/event`. - public var event: Operations.pulls_sol_dismiss_hyphen_review.Input.Body.jsonPayload.eventPayload? - /// Creates a new `jsonPayload`. + public var event: Operations.PullsDismissReview.Input.Body.JsonPayload.EventPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: The message for the pull request review dismissal /// - event: public init( message: Swift.String, - event: Operations.pulls_sol_dismiss_hyphen_review.Input.Body.jsonPayload.eventPayload? = nil + event: Operations.PullsDismissReview.Input.Body.JsonPayload.EventPayload? = nil ) { self.message = message self.event = event @@ -11224,9 +11281,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/requestBody/content/application\/json`. - case json(Operations.pulls_sol_dismiss_hyphen_review.Input.Body.jsonPayload) + case json(Operations.PullsDismissReview.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_dismiss_hyphen_review.Input.Body + public var body: Operations.PullsDismissReview.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11234,9 +11291,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_dismiss_hyphen_review.Input.Path, - headers: Operations.pulls_sol_dismiss_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_dismiss_hyphen_review.Input.Body + path: Operations.PullsDismissReview.Input.Path, + headers: Operations.PullsDismissReview.Input.Headers = .init(), + body: Operations.PullsDismissReview.Input.Body ) { self.path = path self.headers = headers @@ -11248,12 +11305,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -11263,12 +11320,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_dismiss_hyphen_review.Output.Ok.Body + public var body: Operations.PullsDismissReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_dismiss_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsDismissReview.Output.Ok.Body) { self.body = body } } @@ -11277,12 +11334,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_dismiss_hyphen_review.Output.Ok) + case ok(Operations.PullsDismissReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_dismiss_hyphen_review.Output.Ok { + public var ok: Operations.PullsDismissReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -11300,12 +11357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11323,12 +11380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals/put(pulls/dismiss-review)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -11385,7 +11442,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)`. - public enum pulls_sol_submit_hyphen_review { + public enum PullsSubmitReview { public static let id: Swift.String = "pulls/submit-review" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/path`. @@ -11393,55 +11450,55 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// The unique identifier of the review. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/path/review_id`. - public var review_id: Components.Parameters.review_hyphen_id + public var reviewId: Components.Parameters.ReviewId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. - /// - review_id: The unique identifier of the review. + /// - pullNumber: The number that identifies the pull request. + /// - reviewId: The unique identifier of the review. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number, - review_id: Components.Parameters.review_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber, + reviewId: Components.Parameters.ReviewId ) { self.owner = owner self.repo = repo - self.pull_number = pull_number - self.review_id = review_id + self.pullNumber = pullNumber + self.reviewId = reviewId } } - public var path: Operations.pulls_sol_submit_hyphen_review.Input.Path + public var path: Operations.PullsSubmitReview.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_submit_hyphen_review.Input.Headers + public var headers: Operations.PullsSubmitReview.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The body text of the pull request review /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody/json/body`. @@ -11449,23 +11506,23 @@ public enum Operations { /// The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody/json/event`. - @frozen public enum eventPayload: String, Codable, Hashable, Sendable { - case APPROVE = "APPROVE" - case REQUEST_CHANGES = "REQUEST_CHANGES" - case COMMENT = "COMMENT" + @frozen public enum EventPayload: String, Codable, Hashable, Sendable, CaseIterable { + case approve = "APPROVE" + case requestChanges = "REQUEST_CHANGES" + case comment = "COMMENT" } /// The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody/json/event`. - public var event: Operations.pulls_sol_submit_hyphen_review.Input.Body.jsonPayload.eventPayload - /// Creates a new `jsonPayload`. + public var event: Operations.PullsSubmitReview.Input.Body.JsonPayload.EventPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The body text of the pull request review /// - event: The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. public init( body: Swift.String? = nil, - event: Operations.pulls_sol_submit_hyphen_review.Input.Body.jsonPayload.eventPayload + event: Operations.PullsSubmitReview.Input.Body.JsonPayload.EventPayload ) { self.body = body self.event = event @@ -11476,9 +11533,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/requestBody/content/application\/json`. - case json(Operations.pulls_sol_submit_hyphen_review.Input.Body.jsonPayload) + case json(Operations.PullsSubmitReview.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_submit_hyphen_review.Input.Body + public var body: Operations.PullsSubmitReview.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11486,9 +11543,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_submit_hyphen_review.Input.Path, - headers: Operations.pulls_sol_submit_hyphen_review.Input.Headers = .init(), - body: Operations.pulls_sol_submit_hyphen_review.Input.Body + path: Operations.PullsSubmitReview.Input.Path, + headers: Operations.PullsSubmitReview.Input.Headers = .init(), + body: Operations.PullsSubmitReview.Input.Body ) { self.path = path self.headers = headers @@ -11500,12 +11557,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/POST/responses/200/content/application\/json`. - case json(Components.Schemas.pull_hyphen_request_hyphen_review) + case json(Components.Schemas.PullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.PullRequestReview { get throws { switch self { case let .json(body): @@ -11515,12 +11572,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_submit_hyphen_review.Output.Ok.Body + public var body: Operations.PullsSubmitReview.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_submit_hyphen_review.Output.Ok.Body) { + public init(body: Operations.PullsSubmitReview.Output.Ok.Body) { self.body = body } } @@ -11529,12 +11586,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.pulls_sol_submit_hyphen_review.Output.Ok) + case ok(Operations.PullsSubmitReview.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.pulls_sol_submit_hyphen_review.Output.Ok { + public var ok: Operations.PullsSubmitReview.Output.Ok { get throws { switch self { case let .ok(response): @@ -11552,12 +11609,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11575,12 +11632,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -11598,12 +11655,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events/post(pulls/submit-review)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11654,7 +11711,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)`. - public enum pulls_sol_update_hyphen_branch { + public enum PullsUpdateBranch { public static let id: Swift.String = "pulls/update-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/path`. @@ -11662,67 +11719,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.pulls_sol_update_hyphen_branch.Input.Path + public var path: Operations.PullsUpdateBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.pulls_sol_update_hyphen_branch.Input.Headers + public var headers: Operations.PullsUpdateBranch.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits](https://docs.github.com/rest/commits/commits#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/requestBody/json/expected_head_sha`. - public var expected_head_sha: Swift.String? - /// Creates a new `jsonPayload`. + public var expectedHeadSha: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - expected_head_sha: The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits](https://docs.github.com/rest/commits/commits#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - public init(expected_head_sha: Swift.String? = nil) { - self.expected_head_sha = expected_head_sha + /// - expectedHeadSha: The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits](https://docs.github.com/rest/commits/commits#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. + public init(expectedHeadSha: Swift.String? = nil) { + self.expectedHeadSha = expectedHeadSha } public enum CodingKeys: String, CodingKey { - case expected_head_sha + case expectedHeadSha = "expected_head_sha" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/requestBody/content/application\/json`. - case json(Operations.pulls_sol_update_hyphen_branch.Input.Body.jsonPayload) + case json(Operations.PullsUpdateBranch.Input.Body.JsonPayload) } - public var body: Operations.pulls_sol_update_hyphen_branch.Input.Body? + public var body: Operations.PullsUpdateBranch.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -11730,9 +11787,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.pulls_sol_update_hyphen_branch.Input.Path, - headers: Operations.pulls_sol_update_hyphen_branch.Input.Headers = .init(), - body: Operations.pulls_sol_update_hyphen_branch.Input.Body? = nil + path: Operations.PullsUpdateBranch.Input.Path, + headers: Operations.PullsUpdateBranch.Input.Headers = .init(), + body: Operations.PullsUpdateBranch.Input.Body? = nil ) { self.path = path self.headers = headers @@ -11744,12 +11801,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/responses/202/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/responses/202/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/responses/202/content/json/url`. public var url: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: @@ -11767,12 +11824,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/update-branch/PUT/responses/202/content/application\/json`. - case json(Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body.jsonPayload) + case json(Operations.PullsUpdateBranch.Output.Accepted.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body.jsonPayload { + public var json: Operations.PullsUpdateBranch.Output.Accepted.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11782,12 +11839,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body + public var body: Operations.PullsUpdateBranch.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.pulls_sol_update_hyphen_branch.Output.Accepted.Body) { + public init(body: Operations.PullsUpdateBranch.Output.Accepted.Body) { self.body = body } } @@ -11796,12 +11853,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.pulls_sol_update_hyphen_branch.Output.Accepted) + case accepted(Operations.PullsUpdateBranch.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.pulls_sol_update_hyphen_branch.Output.Accepted { + public var accepted: Operations.PullsUpdateBranch.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -11819,12 +11876,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11842,12 +11899,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/update-branch/put(pulls/update-branch)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): From 54c54820b37b50cad795031c66bca48288388fce Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:04:48 -0700 Subject: [PATCH 27/46] Commit via running ake Sources/rate-limit --- Sources/rate-limit/Client.swift | 26 ++-- Sources/rate-limit/Types.swift | 223 +++++++++++++++++--------------- 2 files changed, 133 insertions(+), 116 deletions(-) diff --git a/Sources/rate-limit/Client.swift b/Sources/rate-limit/Client.swift index 318dec3f41..c0eb803164 100644 --- a/Sources/rate-limit/Client.swift +++ b/Sources/rate-limit/Client.swift @@ -59,10 +59,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. - public func rate_hyphen_limit_sol_get(_ input: Operations.rate_hyphen_limit_sol_get.Input) async throws -> Operations.rate_hyphen_limit_sol_get.Output { + public func rateLimitGet(_ input: Operations.RateLimitGet.Input) async throws -> Operations.RateLimitGet.Output { try await client.send( input: input, - forOperation: Operations.rate_hyphen_limit_sol_get.id, + forOperation: Operations.RateLimitGet.id, serializer: { input in let path = try converter.renderedPath( template: "/rate_limit", @@ -82,25 +82,25 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.rate_hyphen_limit_sol_get.Output.Ok.Headers = .init( - X_hyphen_RateLimit_hyphen_Limit: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.RateLimitGet.Output.Ok.Headers = .init( + xRateLimitLimit: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "X-RateLimit-Limit", - as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_limit.self + as: Components.Headers.XRateLimitLimit.self ), - X_hyphen_RateLimit_hyphen_Remaining: try converter.getOptionalHeaderFieldAsURI( + xRateLimitRemaining: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "X-RateLimit-Remaining", - as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_remaining.self + as: Components.Headers.XRateLimitRemaining.self ), - X_hyphen_RateLimit_hyphen_Reset: try converter.getOptionalHeaderFieldAsURI( + xRateLimitReset: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "X-RateLimit-Reset", - as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_reset.self + as: Components.Headers.XRateLimitReset.self ) ) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.rate_hyphen_limit_sol_get.Output.Ok.Body + let body: Operations.RateLimitGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -110,7 +110,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.rate_hyphen_limit_hyphen_overview.self, + Components.Schemas.RateLimitOverview.self, from: responseBody, transforming: { value in .json(value) @@ -127,7 +127,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -137,7 +137,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/rate-limit/Types.swift b/Sources/rate-limit/Types.swift index 42bb0a4bba..a4217bf4a7 100644 --- a/Sources/rate-limit/Types.swift +++ b/Sources/rate-limit/Types.swift @@ -32,7 +32,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. - func rate_hyphen_limit_sol_get(_ input: Operations.rate_hyphen_limit_sol_get.Input) async throws -> Operations.rate_hyphen_limit_sol_get.Output + func rateLimitGet(_ input: Operations.RateLimitGet.Input) async throws -> Operations.RateLimitGet.Output } /// Convenience overloads for operation inputs. @@ -58,13 +58,22 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. - public func rate_hyphen_limit_sol_get(headers: Operations.rate_hyphen_limit_sol_get.Input.Headers = .init()) async throws -> Operations.rate_hyphen_limit_sol_get.Output { - try await rate_hyphen_limit_sol_get(Operations.rate_hyphen_limit_sol_get.Input(headers: headers)) + public func rateLimitGet(headers: Operations.RateLimitGet.Input.Headers = .init()) async throws -> Operations.RateLimitGet.Output { + try await rateLimitGet(Operations.RateLimitGet.Input(headers: headers)) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -80,42 +89,42 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } } /// - Remark: Generated from `#/components/schemas/rate-limit`. - public struct rate_hyphen_limit: Codable, Hashable, Sendable { + public struct RateLimit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/rate-limit/limit`. public var limit: Swift.Int /// - Remark: Generated from `#/components/schemas/rate-limit/remaining`. @@ -124,7 +133,7 @@ public enum Components { public var reset: Swift.Int /// - Remark: Generated from `#/components/schemas/rate-limit/used`. public var used: Swift.Int - /// Creates a new `rate_hyphen_limit`. + /// Creates a new `RateLimit`. /// /// - Parameters: /// - limit: @@ -152,96 +161,96 @@ public enum Components { /// Rate Limit Overview /// /// - Remark: Generated from `#/components/schemas/rate-limit-overview`. - public struct rate_hyphen_limit_hyphen_overview: Codable, Hashable, Sendable { + public struct RateLimitOverview: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources`. - public struct resourcesPayload: Codable, Hashable, Sendable { + public struct ResourcesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/core`. - public var core: Components.Schemas.rate_hyphen_limit + public var core: Components.Schemas.RateLimit /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/graphql`. - public var graphql: Components.Schemas.rate_hyphen_limit? + public var graphql: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/search`. - public var search: Components.Schemas.rate_hyphen_limit + public var search: Components.Schemas.RateLimit /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/code_search`. - public var code_search: Components.Schemas.rate_hyphen_limit? + public var codeSearch: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/source_import`. - public var source_import: Components.Schemas.rate_hyphen_limit? + public var sourceImport: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/integration_manifest`. - public var integration_manifest: Components.Schemas.rate_hyphen_limit? + public var integrationManifest: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/code_scanning_upload`. - public var code_scanning_upload: Components.Schemas.rate_hyphen_limit? + public var codeScanningUpload: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/actions_runner_registration`. - public var actions_runner_registration: Components.Schemas.rate_hyphen_limit? + public var actionsRunnerRegistration: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/scim`. - public var scim: Components.Schemas.rate_hyphen_limit? + public var scim: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/dependency_snapshots`. - public var dependency_snapshots: Components.Schemas.rate_hyphen_limit? + public var dependencySnapshots: Components.Schemas.RateLimit? /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources/code_scanning_autofix`. - public var code_scanning_autofix: Components.Schemas.rate_hyphen_limit? - /// Creates a new `resourcesPayload`. + public var codeScanningAutofix: Components.Schemas.RateLimit? + /// Creates a new `ResourcesPayload`. /// /// - Parameters: /// - core: /// - graphql: /// - search: - /// - code_search: - /// - source_import: - /// - integration_manifest: - /// - code_scanning_upload: - /// - actions_runner_registration: + /// - codeSearch: + /// - sourceImport: + /// - integrationManifest: + /// - codeScanningUpload: + /// - actionsRunnerRegistration: /// - scim: - /// - dependency_snapshots: - /// - code_scanning_autofix: + /// - dependencySnapshots: + /// - codeScanningAutofix: public init( - core: Components.Schemas.rate_hyphen_limit, - graphql: Components.Schemas.rate_hyphen_limit? = nil, - search: Components.Schemas.rate_hyphen_limit, - code_search: Components.Schemas.rate_hyphen_limit? = nil, - source_import: Components.Schemas.rate_hyphen_limit? = nil, - integration_manifest: Components.Schemas.rate_hyphen_limit? = nil, - code_scanning_upload: Components.Schemas.rate_hyphen_limit? = nil, - actions_runner_registration: Components.Schemas.rate_hyphen_limit? = nil, - scim: Components.Schemas.rate_hyphen_limit? = nil, - dependency_snapshots: Components.Schemas.rate_hyphen_limit? = nil, - code_scanning_autofix: Components.Schemas.rate_hyphen_limit? = nil + core: Components.Schemas.RateLimit, + graphql: Components.Schemas.RateLimit? = nil, + search: Components.Schemas.RateLimit, + codeSearch: Components.Schemas.RateLimit? = nil, + sourceImport: Components.Schemas.RateLimit? = nil, + integrationManifest: Components.Schemas.RateLimit? = nil, + codeScanningUpload: Components.Schemas.RateLimit? = nil, + actionsRunnerRegistration: Components.Schemas.RateLimit? = nil, + scim: Components.Schemas.RateLimit? = nil, + dependencySnapshots: Components.Schemas.RateLimit? = nil, + codeScanningAutofix: Components.Schemas.RateLimit? = nil ) { self.core = core self.graphql = graphql self.search = search - self.code_search = code_search - self.source_import = source_import - self.integration_manifest = integration_manifest - self.code_scanning_upload = code_scanning_upload - self.actions_runner_registration = actions_runner_registration + self.codeSearch = codeSearch + self.sourceImport = sourceImport + self.integrationManifest = integrationManifest + self.codeScanningUpload = codeScanningUpload + self.actionsRunnerRegistration = actionsRunnerRegistration self.scim = scim - self.dependency_snapshots = dependency_snapshots - self.code_scanning_autofix = code_scanning_autofix + self.dependencySnapshots = dependencySnapshots + self.codeScanningAutofix = codeScanningAutofix } public enum CodingKeys: String, CodingKey { case core case graphql case search - case code_search - case source_import - case integration_manifest - case code_scanning_upload - case actions_runner_registration + case codeSearch = "code_search" + case sourceImport = "source_import" + case integrationManifest = "integration_manifest" + case codeScanningUpload = "code_scanning_upload" + case actionsRunnerRegistration = "actions_runner_registration" case scim - case dependency_snapshots - case code_scanning_autofix + case dependencySnapshots = "dependency_snapshots" + case codeScanningAutofix = "code_scanning_autofix" } } /// - Remark: Generated from `#/components/schemas/rate-limit-overview/resources`. - public var resources: Components.Schemas.rate_hyphen_limit_hyphen_overview.resourcesPayload + public var resources: Components.Schemas.RateLimitOverview.ResourcesPayload /// - Remark: Generated from `#/components/schemas/rate-limit-overview/rate`. - public var rate: Components.Schemas.rate_hyphen_limit - /// Creates a new `rate_hyphen_limit_hyphen_overview`. + public var rate: Components.Schemas.RateLimit + /// Creates a new `RateLimitOverview`. /// /// - Parameters: /// - resources: /// - rate: public init( - resources: Components.Schemas.rate_hyphen_limit_hyphen_overview.resourcesPayload, - rate: Components.Schemas.rate_hyphen_limit + resources: Components.Schemas.RateLimitOverview.ResourcesPayload, + rate: Components.Schemas.RateLimit ) { self.resources = resources self.rate = rate @@ -258,16 +267,16 @@ public enum Components { public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -277,28 +286,28 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } } /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/x-rate-limit-limit`. - public typealias x_hyphen_rate_hyphen_limit_hyphen_limit = Swift.Int + public typealias XRateLimitLimit = Swift.Int /// - Remark: Generated from `#/components/headers/x-rate-limit-remaining`. - public typealias x_hyphen_rate_hyphen_limit_hyphen_remaining = Swift.Int + public typealias XRateLimitRemaining = Swift.Int /// - Remark: Generated from `#/components/headers/x-rate-limit-reset`. - public typealias x_hyphen_rate_hyphen_limit_hyphen_reset = Swift.Int + public typealias XRateLimitReset = Swift.Int } } @@ -325,26 +334,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. - public enum rate_hyphen_limit_sol_get { + public enum RateLimitGet { public static let id: Swift.String = "rate-limit/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/rate_limit/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.rate_hyphen_limit_sol_get.Input.Headers + public var headers: Operations.RateLimitGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.rate_hyphen_limit_sol_get.Input.Headers = .init()) { + public init(headers: Operations.RateLimitGet.Input.Headers = .init()) { self.headers = headers } } @@ -353,38 +362,38 @@ public enum Operations { /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/headers/X-RateLimit-Limit`. - public var X_hyphen_RateLimit_hyphen_Limit: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_limit? + public var xRateLimitLimit: Components.Headers.XRateLimitLimit? /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/headers/X-RateLimit-Remaining`. - public var X_hyphen_RateLimit_hyphen_Remaining: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_remaining? + public var xRateLimitRemaining: Components.Headers.XRateLimitRemaining? /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/headers/X-RateLimit-Reset`. - public var X_hyphen_RateLimit_hyphen_Reset: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_reset? + public var xRateLimitReset: Components.Headers.XRateLimitReset? /// Creates a new `Headers`. /// /// - Parameters: - /// - X_hyphen_RateLimit_hyphen_Limit: - /// - X_hyphen_RateLimit_hyphen_Remaining: - /// - X_hyphen_RateLimit_hyphen_Reset: + /// - xRateLimitLimit: + /// - xRateLimitRemaining: + /// - xRateLimitReset: public init( - X_hyphen_RateLimit_hyphen_Limit: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_limit? = nil, - X_hyphen_RateLimit_hyphen_Remaining: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_remaining? = nil, - X_hyphen_RateLimit_hyphen_Reset: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_reset? = nil + xRateLimitLimit: Components.Headers.XRateLimitLimit? = nil, + xRateLimitRemaining: Components.Headers.XRateLimitRemaining? = nil, + xRateLimitReset: Components.Headers.XRateLimitReset? = nil ) { - self.X_hyphen_RateLimit_hyphen_Limit = X_hyphen_RateLimit_hyphen_Limit - self.X_hyphen_RateLimit_hyphen_Remaining = X_hyphen_RateLimit_hyphen_Remaining - self.X_hyphen_RateLimit_hyphen_Reset = X_hyphen_RateLimit_hyphen_Reset + self.xRateLimitLimit = xRateLimitLimit + self.xRateLimitRemaining = xRateLimitRemaining + self.xRateLimitReset = xRateLimitReset } } /// Received HTTP response headers - public var headers: Operations.rate_hyphen_limit_sol_get.Output.Ok.Headers + public var headers: Operations.RateLimitGet.Output.Ok.Headers /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/rate_limit/GET/responses/200/content/application\/json`. - case json(Components.Schemas.rate_hyphen_limit_hyphen_overview) + case json(Components.Schemas.RateLimitOverview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.rate_hyphen_limit_hyphen_overview { + public var json: Components.Schemas.RateLimitOverview { get throws { switch self { case let .json(body): @@ -394,15 +403,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.rate_hyphen_limit_sol_get.Output.Ok.Body + public var body: Operations.RateLimitGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.rate_hyphen_limit_sol_get.Output.Ok.Headers = .init(), - body: Operations.rate_hyphen_limit_sol_get.Output.Ok.Body + headers: Operations.RateLimitGet.Output.Ok.Headers = .init(), + body: Operations.RateLimitGet.Output.Ok.Body ) { self.headers = headers self.body = body @@ -413,12 +422,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.rate_hyphen_limit_sol_get.Output.Ok) + case ok(Operations.RateLimitGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.rate_hyphen_limit_sol_get.Output.Ok { + public var ok: Operations.RateLimitGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -436,12 +445,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -459,12 +476,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): From d82444aaeca65f8c2cd67c94bb157e0cc2bef955 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:05:02 -0700 Subject: [PATCH 28/46] Commit via running ake Sources/reactions --- Sources/reactions/Client.swift | 392 +++--- Sources/reactions/Types.swift | 2323 ++++++++++++++++---------------- 2 files changed, 1390 insertions(+), 1325 deletions(-) diff --git a/Sources/reactions/Client.swift b/Sources/reactions/Client.swift index 2c8e1bbc58..292c822cef 100644 --- a/Sources/reactions/Client.swift +++ b/Sources/reactions/Client.swift @@ -49,18 +49,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)`. - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func reactionsListForTeamDiscussionCommentInOrg(_ input: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input) async throws -> Operations.ReactionsListForTeamDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.ReactionsListForTeamDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -80,7 +80,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -98,13 +98,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -114,7 +114,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -152,18 +152,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)`. - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func reactionsCreateForTeamDiscussionCommentInOrg(_ input: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -190,7 +190,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -200,7 +200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -212,7 +212,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -222,7 +222,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -255,19 +255,19 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Output { + public func reactionsDeleteForTeamDiscussionComment(_ input: Operations.ReactionsDeleteForTeamDiscussionComment.Input) async throws -> Operations.ReactionsDeleteForTeamDiscussionComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.id, + forOperation: Operations.ReactionsDeleteForTeamDiscussionComment.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number, - input.path.reaction_id + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -304,17 +304,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)`. - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func reactionsListForTeamDiscussionInOrg(_ input: Operations.ReactionsListForTeamDiscussionInOrg.Input) async throws -> Operations.ReactionsListForTeamDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.ReactionsListForTeamDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/reactions", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -334,7 +334,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -352,13 +352,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -368,7 +368,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -406,17 +406,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)`. - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func reactionsCreateForTeamDiscussionInOrg(_ input: Operations.ReactionsCreateForTeamDiscussionInOrg.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.ReactionsCreateForTeamDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/reactions", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -443,7 +443,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -453,7 +453,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -465,7 +465,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -475,7 +475,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -508,18 +508,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)`. - public func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Output { + public func reactionsDeleteForTeamDiscussion(_ input: Operations.ReactionsDeleteForTeamDiscussion.Input) async throws -> Operations.ReactionsDeleteForTeamDiscussion.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.id, + forOperation: Operations.ReactionsDeleteForTeamDiscussion.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/reactions/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.reaction_id + input.path.teamSlug, + input.path.discussionNumber, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -551,17 +551,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output { + public func reactionsListForCommitComment(_ input: Operations.ReactionsListForCommitComment.Input) async throws -> Operations.ReactionsListForCommitComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReactionsListForCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -581,7 +581,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -599,13 +599,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForCommitComment.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsListForCommitComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -615,7 +615,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -630,7 +630,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -640,7 +640,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -668,17 +668,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output { + public func reactionsCreateForCommitComment(_ input: Operations.ReactionsCreateForCommitComment.Input) async throws -> Operations.ReactionsCreateForCommitComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReactionsCreateForCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -705,7 +705,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsCreateForCommitComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -715,7 +715,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -727,7 +727,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Created.Body + let body: Operations.ReactionsCreateForCommitComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -737,7 +737,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -749,7 +749,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -759,7 +759,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -790,18 +790,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Output { + public func reactionsDeleteForCommitComment(_ input: Operations.ReactionsDeleteForCommitComment.Input) async throws -> Operations.ReactionsDeleteForCommitComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReactionsDeleteForCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}/reactions/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id, - input.path.reaction_id + input.path.commentId, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -833,17 +833,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output { + public func reactionsListForIssueComment(_ input: Operations.ReactionsListForIssueComment.Input) async throws -> Operations.ReactionsListForIssueComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.id, + forOperation: Operations.ReactionsListForIssueComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -863,7 +863,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -881,13 +881,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForIssueComment.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsListForIssueComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -897,7 +897,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -912,7 +912,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -922,7 +922,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -950,17 +950,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output { + public func reactionsCreateForIssueComment(_ input: Operations.ReactionsCreateForIssueComment.Input) async throws -> Operations.ReactionsCreateForIssueComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.id, + forOperation: Operations.ReactionsCreateForIssueComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -987,7 +987,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsCreateForIssueComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -997,7 +997,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1009,7 +1009,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Created.Body + let body: Operations.ReactionsCreateForIssueComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1019,7 +1019,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1031,7 +1031,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1041,7 +1041,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1072,18 +1072,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Output { + public func reactionsDeleteForIssueComment(_ input: Operations.ReactionsDeleteForIssueComment.Input) async throws -> Operations.ReactionsDeleteForIssueComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.id, + forOperation: Operations.ReactionsDeleteForIssueComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/comments/{}/reactions/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id, - input.path.reaction_id + input.path.commentId, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1115,17 +1115,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)`. - public func reactions_sol_list_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output { + public func reactionsListForIssue(_ input: Operations.ReactionsListForIssue.Input) async throws -> Operations.ReactionsListForIssue.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_issue.id, + forOperation: Operations.ReactionsListForIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1145,7 +1145,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1163,13 +1163,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForIssue.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Body + let body: Operations.ReactionsListForIssue.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1179,7 +1179,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -1194,7 +1194,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1204,7 +1204,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1216,7 +1216,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 410: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.gone.Body + let body: Components.Responses.Gone.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1226,7 +1226,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1254,17 +1254,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)`. - public func reactions_sol_create_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output { + public func reactionsCreateForIssue(_ input: Operations.ReactionsCreateForIssue.Input) async throws -> Operations.ReactionsCreateForIssue.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_issue.id, + forOperation: Operations.ReactionsCreateForIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number + input.path.issueNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1291,7 +1291,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Ok.Body + let body: Operations.ReactionsCreateForIssue.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1301,7 +1301,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1313,7 +1313,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Created.Body + let body: Operations.ReactionsCreateForIssue.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1323,7 +1323,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1335,7 +1335,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1376,18 +1376,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)`. - public func reactions_sol_delete_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Output { + public func reactionsDeleteForIssue(_ input: Operations.ReactionsDeleteForIssue.Input) async throws -> Operations.ReactionsDeleteForIssue.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.id, + forOperation: Operations.ReactionsDeleteForIssue.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/issues/{}/reactions/{}", parameters: [ input.path.owner, input.path.repo, - input.path.issue_number, - input.path.reaction_id + input.path.issueNumber, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1419,17 +1419,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output { + public func reactionsListForPullRequestReviewComment(_ input: Operations.ReactionsListForPullRequestReviewComment.Input) async throws -> Operations.ReactionsListForPullRequestReviewComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.id, + forOperation: Operations.ReactionsListForPullRequestReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1449,7 +1449,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1467,13 +1467,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1483,7 +1483,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -1498,7 +1498,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1508,7 +1508,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1536,17 +1536,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output { + public func reactionsCreateForPullRequestReviewComment(_ input: Operations.ReactionsCreateForPullRequestReviewComment.Input) async throws -> Operations.ReactionsCreateForPullRequestReviewComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.id, + forOperation: Operations.ReactionsCreateForPullRequestReviewComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1573,7 +1573,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body + let body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1583,7 +1583,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1595,7 +1595,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Created.Body + let body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1605,7 +1605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1617,7 +1617,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1627,7 +1627,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1658,18 +1658,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Output { + public func reactionsDeleteForPullRequestComment(_ input: Operations.ReactionsDeleteForPullRequestComment.Input) async throws -> Operations.ReactionsDeleteForPullRequestComment.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.id, + forOperation: Operations.ReactionsDeleteForPullRequestComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/comments/{}/reactions/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id, - input.path.reaction_id + input.path.commentId, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1701,17 +1701,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)`. - public func reactions_sol_list_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_release.Output { + public func reactionsListForRelease(_ input: Operations.ReactionsListForRelease.Input) async throws -> Operations.ReactionsListForRelease.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_release.id, + forOperation: Operations.ReactionsListForRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1731,7 +1731,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1749,13 +1749,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForRelease.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Body + let body: Operations.ReactionsListForRelease.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1765,7 +1765,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -1780,7 +1780,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1790,7 +1790,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1818,17 +1818,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)`. - public func reactions_sol_create_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_release.Output { + public func reactionsCreateForRelease(_ input: Operations.ReactionsCreateForRelease.Input) async throws -> Operations.ReactionsCreateForRelease.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_release.id, + forOperation: Operations.ReactionsCreateForRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}/reactions", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1855,7 +1855,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Ok.Body + let body: Operations.ReactionsCreateForRelease.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1865,7 +1865,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1877,7 +1877,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Created.Body + let body: Operations.ReactionsCreateForRelease.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1887,7 +1887,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -1899,7 +1899,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1909,7 +1909,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1940,18 +1940,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)`. - public func reactions_sol_delete_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_release.Output { + public func reactionsDeleteForRelease(_ input: Operations.ReactionsDeleteForRelease.Input) async throws -> Operations.ReactionsDeleteForRelease.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_delete_hyphen_for_hyphen_release.id, + forOperation: Operations.ReactionsDeleteForRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}/reactions/{}", parameters: [ input.path.owner, input.path.repo, - input.path.release_id, - input.path.reaction_id + input.path.releaseId, + input.path.reactionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1989,17 +1989,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)`. @available(*, deprecated) - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func reactionsListForTeamDiscussionCommentLegacy(_ input: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input) async throws -> Operations.ReactionsListForTeamDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.ReactionsListForTeamDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments/{}/reactions", parameters: [ - input.path.team_id, - input.path.discussion_number, - input.path.comment_number + input.path.teamId, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2019,7 +2019,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2037,13 +2037,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + let body: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2053,7 +2053,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -2092,17 +2092,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)`. @available(*, deprecated) - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func reactionsCreateForTeamDiscussionCommentLegacy(_ input: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments/{}/reactions", parameters: [ - input.path.team_id, - input.path.discussion_number, - input.path.comment_number + input.path.teamId, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2129,7 +2129,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body + let body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2139,7 +2139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) @@ -2173,16 +2173,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)`. @available(*, deprecated) - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output { + public func reactionsListForTeamDiscussionLegacy(_ input: Operations.ReactionsListForTeamDiscussionLegacy.Input) async throws -> Operations.ReactionsListForTeamDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.ReactionsListForTeamDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/reactions", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2202,7 +2202,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2220,13 +2220,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Body + let body: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2236,7 +2236,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.reaction].self, + [Components.Schemas.Reaction].self, from: responseBody, transforming: { value in .json(value) @@ -2275,16 +2275,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)`. @available(*, deprecated) - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output { + public func reactionsCreateForTeamDiscussionLegacy(_ input: Operations.ReactionsCreateForTeamDiscussionLegacy.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.ReactionsCreateForTeamDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/reactions", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2311,7 +2311,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Created.Body + let body: Operations.ReactionsCreateForTeamDiscussionLegacy.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2321,7 +2321,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.reaction.self, + Components.Schemas.Reaction.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/reactions/Types.swift b/Sources/reactions/Types.swift index 7d6e6d904b..b51f7cc81d 100644 --- a/Sources/reactions/Types.swift +++ b/Sources/reactions/Types.swift @@ -22,7 +22,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)`. - func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func reactionsListForTeamDiscussionCommentInOrg(_ input: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input) async throws -> Operations.ReactionsListForTeamDiscussionCommentInOrg.Output /// Create reaction for a team discussion comment /// /// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)`. - func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func reactionsCreateForTeamDiscussionCommentInOrg(_ input: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output /// Delete team discussion comment reaction /// /// > [!NOTE] @@ -48,7 +48,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)`. - func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Output + func reactionsDeleteForTeamDiscussionComment(_ input: Operations.ReactionsDeleteForTeamDiscussionComment.Input) async throws -> Operations.ReactionsDeleteForTeamDiscussionComment.Output /// List reactions for a team discussion /// /// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). @@ -60,7 +60,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)`. - func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output + func reactionsListForTeamDiscussionInOrg(_ input: Operations.ReactionsListForTeamDiscussionInOrg.Input) async throws -> Operations.ReactionsListForTeamDiscussionInOrg.Output /// Create reaction for a team discussion /// /// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). @@ -74,7 +74,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)`. - func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output + func reactionsCreateForTeamDiscussionInOrg(_ input: Operations.ReactionsCreateForTeamDiscussionInOrg.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionInOrg.Output /// Delete team discussion reaction /// /// > [!NOTE] @@ -86,21 +86,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)`. - func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Output + func reactionsDeleteForTeamDiscussion(_ input: Operations.ReactionsDeleteForTeamDiscussion.Input) async throws -> Operations.ReactionsDeleteForTeamDiscussion.Output /// List reactions for a commit comment /// /// List the reactions to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)`. - func reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output + func reactionsListForCommitComment(_ input: Operations.ReactionsListForCommitComment.Input) async throws -> Operations.ReactionsListForCommitComment.Output /// Create reaction for a commit comment /// /// Create a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). A response with an HTTP `200` status means that you already added the reaction type to this commit comment. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)`. - func reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output + func reactionsCreateForCommitComment(_ input: Operations.ReactionsCreateForCommitComment.Input) async throws -> Operations.ReactionsCreateForCommitComment.Output /// Delete a commit comment reaction /// /// > [!NOTE] @@ -110,21 +110,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)`. - func reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Output + func reactionsDeleteForCommitComment(_ input: Operations.ReactionsDeleteForCommitComment.Input) async throws -> Operations.ReactionsDeleteForCommitComment.Output /// List reactions for an issue comment /// /// List the reactions to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)`. - func reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output + func reactionsListForIssueComment(_ input: Operations.ReactionsListForIssueComment.Input) async throws -> Operations.ReactionsListForIssueComment.Output /// Create reaction for an issue comment /// /// Create a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). A response with an HTTP `200` status means that you already added the reaction type to this issue comment. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)`. - func reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output + func reactionsCreateForIssueComment(_ input: Operations.ReactionsCreateForIssueComment.Input) async throws -> Operations.ReactionsCreateForIssueComment.Output /// Delete an issue comment reaction /// /// > [!NOTE] @@ -134,21 +134,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)`. - func reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Output + func reactionsDeleteForIssueComment(_ input: Operations.ReactionsDeleteForIssueComment.Input) async throws -> Operations.ReactionsDeleteForIssueComment.Output /// List reactions for an issue /// /// List the reactions to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)`. - func reactions_sol_list_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output + func reactionsListForIssue(_ input: Operations.ReactionsListForIssue.Input) async throws -> Operations.ReactionsListForIssue.Output /// Create reaction for an issue /// /// Create a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). A response with an HTTP `200` status means that you already added the reaction type to this issue. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)`. - func reactions_sol_create_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output + func reactionsCreateForIssue(_ input: Operations.ReactionsCreateForIssue.Input) async throws -> Operations.ReactionsCreateForIssue.Output /// Delete an issue reaction /// /// > [!NOTE] @@ -158,21 +158,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)`. - func reactions_sol_delete_hyphen_for_hyphen_issue(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Output + func reactionsDeleteForIssue(_ input: Operations.ReactionsDeleteForIssue.Input) async throws -> Operations.ReactionsDeleteForIssue.Output /// List reactions for a pull request review comment /// /// List the reactions to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)`. - func reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output + func reactionsListForPullRequestReviewComment(_ input: Operations.ReactionsListForPullRequestReviewComment.Input) async throws -> Operations.ReactionsListForPullRequestReviewComment.Output /// Create reaction for a pull request review comment /// /// Create a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). A response with an HTTP `200` status means that you already added the reaction type to this pull request review comment. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)`. - func reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output + func reactionsCreateForPullRequestReviewComment(_ input: Operations.ReactionsCreateForPullRequestReviewComment.Input) async throws -> Operations.ReactionsCreateForPullRequestReviewComment.Output /// Delete a pull request comment reaction /// /// > [!NOTE] @@ -182,21 +182,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)`. - func reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Output + func reactionsDeleteForPullRequestComment(_ input: Operations.ReactionsDeleteForPullRequestComment.Input) async throws -> Operations.ReactionsDeleteForPullRequestComment.Output /// List reactions for a release /// /// List the reactions to a [release](https://docs.github.com/rest/releases/releases#get-a-release). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)`. - func reactions_sol_list_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_release.Output + func reactionsListForRelease(_ input: Operations.ReactionsListForRelease.Input) async throws -> Operations.ReactionsListForRelease.Output /// Create reaction for a release /// /// Create a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release). A response with a `Status: 200 OK` means that you already added the reaction type to this release. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)`. - func reactions_sol_create_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_release.Output + func reactionsCreateForRelease(_ input: Operations.ReactionsCreateForRelease.Input) async throws -> Operations.ReactionsCreateForRelease.Output /// Delete a release reaction /// /// > [!NOTE] @@ -206,7 +206,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)`. - func reactions_sol_delete_hyphen_for_hyphen_release(_ input: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_release.Output + func reactionsDeleteForRelease(_ input: Operations.ReactionsDeleteForRelease.Input) async throws -> Operations.ReactionsDeleteForRelease.Output /// List reactions for a team discussion comment (Legacy) /// /// > [!WARNING] @@ -219,7 +219,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)`. @available(*, deprecated) - func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func reactionsListForTeamDiscussionCommentLegacy(_ input: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input) async throws -> Operations.ReactionsListForTeamDiscussionCommentLegacy.Output /// Create reaction for a team discussion comment (Legacy) /// /// > [!WARNING] @@ -234,7 +234,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)`. @available(*, deprecated) - func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func reactionsCreateForTeamDiscussionCommentLegacy(_ input: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output /// List reactions for a team discussion (Legacy) /// /// > [!WARNING] @@ -247,7 +247,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)`. @available(*, deprecated) - func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(_ input: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output + func reactionsListForTeamDiscussionLegacy(_ input: Operations.ReactionsListForTeamDiscussionLegacy.Input) async throws -> Operations.ReactionsListForTeamDiscussionLegacy.Output /// Create reaction for a team discussion (Legacy) /// /// > [!WARNING] @@ -262,7 +262,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)`. @available(*, deprecated) - func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(_ input: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output + func reactionsCreateForTeamDiscussionLegacy(_ input: Operations.ReactionsCreateForTeamDiscussionLegacy.Input) async throws -> Operations.ReactionsCreateForTeamDiscussionLegacy.Output } /// Convenience overloads for operation inputs. @@ -278,12 +278,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)`. - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input( + public func reactionsListForTeamDiscussionCommentInOrg( + path: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Path, + query: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForTeamDiscussionCommentInOrg.Output { + try await reactionsListForTeamDiscussionCommentInOrg(Operations.ReactionsListForTeamDiscussionCommentInOrg.Input( path: path, query: query, headers: headers @@ -302,12 +302,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)`. - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input( + public func reactionsCreateForTeamDiscussionCommentInOrg( + path: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body + ) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output { + try await reactionsCreateForTeamDiscussionCommentInOrg(Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input( path: path, headers: headers, body: body @@ -324,8 +324,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment(path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Output { - try await reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment(Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input(path: path)) + public func reactionsDeleteForTeamDiscussionComment(path: Operations.ReactionsDeleteForTeamDiscussionComment.Input.Path) async throws -> Operations.ReactionsDeleteForTeamDiscussionComment.Output { + try await reactionsDeleteForTeamDiscussionComment(Operations.ReactionsDeleteForTeamDiscussionComment.Input(path: path)) } /// List reactions for a team discussion /// @@ -338,12 +338,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)`. - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input( + public func reactionsListForTeamDiscussionInOrg( + path: Operations.ReactionsListForTeamDiscussionInOrg.Input.Path, + query: Operations.ReactionsListForTeamDiscussionInOrg.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionInOrg.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForTeamDiscussionInOrg.Output { + try await reactionsListForTeamDiscussionInOrg(Operations.ReactionsListForTeamDiscussionInOrg.Input( path: path, query: query, headers: headers @@ -362,12 +362,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)`. - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input( + public func reactionsCreateForTeamDiscussionInOrg( + path: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body + ) async throws -> Operations.ReactionsCreateForTeamDiscussionInOrg.Output { + try await reactionsCreateForTeamDiscussionInOrg(Operations.ReactionsCreateForTeamDiscussionInOrg.Input( path: path, headers: headers, body: body @@ -384,8 +384,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)`. - public func reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion(path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Output { - try await reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion(Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input(path: path)) + public func reactionsDeleteForTeamDiscussion(path: Operations.ReactionsDeleteForTeamDiscussion.Input.Path) async throws -> Operations.ReactionsDeleteForTeamDiscussion.Output { + try await reactionsDeleteForTeamDiscussion(Operations.ReactionsDeleteForTeamDiscussion.Input(path: path)) } /// List reactions for a commit comment /// @@ -393,12 +393,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment( - path: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output { - try await reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment(Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input( + public func reactionsListForCommitComment( + path: Operations.ReactionsListForCommitComment.Input.Path, + query: Operations.ReactionsListForCommitComment.Input.Query = .init(), + headers: Operations.ReactionsListForCommitComment.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForCommitComment.Output { + try await reactionsListForCommitComment(Operations.ReactionsListForCommitComment.Input( path: path, query: query, headers: headers @@ -410,12 +410,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment( - path: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output { - try await reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment(Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input( + public func reactionsCreateForCommitComment( + path: Operations.ReactionsCreateForCommitComment.Input.Path, + headers: Operations.ReactionsCreateForCommitComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForCommitComment.Input.Body + ) async throws -> Operations.ReactionsCreateForCommitComment.Output { + try await reactionsCreateForCommitComment(Operations.ReactionsCreateForCommitComment.Input( path: path, headers: headers, body: body @@ -430,8 +430,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment(path: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Output { - try await reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment(Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input(path: path)) + public func reactionsDeleteForCommitComment(path: Operations.ReactionsDeleteForCommitComment.Input.Path) async throws -> Operations.ReactionsDeleteForCommitComment.Output { + try await reactionsDeleteForCommitComment(Operations.ReactionsDeleteForCommitComment.Input(path: path)) } /// List reactions for an issue comment /// @@ -439,12 +439,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment( - path: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output { - try await reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment(Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input( + public func reactionsListForIssueComment( + path: Operations.ReactionsListForIssueComment.Input.Path, + query: Operations.ReactionsListForIssueComment.Input.Query = .init(), + headers: Operations.ReactionsListForIssueComment.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForIssueComment.Output { + try await reactionsListForIssueComment(Operations.ReactionsListForIssueComment.Input( path: path, query: query, headers: headers @@ -456,12 +456,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment( - path: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output { - try await reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment(Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input( + public func reactionsCreateForIssueComment( + path: Operations.ReactionsCreateForIssueComment.Input.Path, + headers: Operations.ReactionsCreateForIssueComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForIssueComment.Input.Body + ) async throws -> Operations.ReactionsCreateForIssueComment.Output { + try await reactionsCreateForIssueComment(Operations.ReactionsCreateForIssueComment.Input( path: path, headers: headers, body: body @@ -476,8 +476,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment(path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Output { - try await reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment(Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input(path: path)) + public func reactionsDeleteForIssueComment(path: Operations.ReactionsDeleteForIssueComment.Input.Path) async throws -> Operations.ReactionsDeleteForIssueComment.Output { + try await reactionsDeleteForIssueComment(Operations.ReactionsDeleteForIssueComment.Input(path: path)) } /// List reactions for an issue /// @@ -485,12 +485,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)`. - public func reactions_sol_list_hyphen_for_hyphen_issue( - path: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output { - try await reactions_sol_list_hyphen_for_hyphen_issue(Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input( + public func reactionsListForIssue( + path: Operations.ReactionsListForIssue.Input.Path, + query: Operations.ReactionsListForIssue.Input.Query = .init(), + headers: Operations.ReactionsListForIssue.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForIssue.Output { + try await reactionsListForIssue(Operations.ReactionsListForIssue.Input( path: path, query: query, headers: headers @@ -502,12 +502,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)`. - public func reactions_sol_create_hyphen_for_hyphen_issue( - path: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output { - try await reactions_sol_create_hyphen_for_hyphen_issue(Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input( + public func reactionsCreateForIssue( + path: Operations.ReactionsCreateForIssue.Input.Path, + headers: Operations.ReactionsCreateForIssue.Input.Headers = .init(), + body: Operations.ReactionsCreateForIssue.Input.Body + ) async throws -> Operations.ReactionsCreateForIssue.Output { + try await reactionsCreateForIssue(Operations.ReactionsCreateForIssue.Input( path: path, headers: headers, body: body @@ -522,8 +522,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)`. - public func reactions_sol_delete_hyphen_for_hyphen_issue(path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Output { - try await reactions_sol_delete_hyphen_for_hyphen_issue(Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input(path: path)) + public func reactionsDeleteForIssue(path: Operations.ReactionsDeleteForIssue.Input.Path) async throws -> Operations.ReactionsDeleteForIssue.Output { + try await reactionsDeleteForIssue(Operations.ReactionsDeleteForIssue.Input(path: path)) } /// List reactions for a pull request review comment /// @@ -531,12 +531,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)`. - public func reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment( - path: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output { - try await reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input( + public func reactionsListForPullRequestReviewComment( + path: Operations.ReactionsListForPullRequestReviewComment.Input.Path, + query: Operations.ReactionsListForPullRequestReviewComment.Input.Query = .init(), + headers: Operations.ReactionsListForPullRequestReviewComment.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForPullRequestReviewComment.Output { + try await reactionsListForPullRequestReviewComment(Operations.ReactionsListForPullRequestReviewComment.Input( path: path, query: query, headers: headers @@ -548,12 +548,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)`. - public func reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment( - path: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output { - try await reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input( + public func reactionsCreateForPullRequestReviewComment( + path: Operations.ReactionsCreateForPullRequestReviewComment.Input.Path, + headers: Operations.ReactionsCreateForPullRequestReviewComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForPullRequestReviewComment.Input.Body + ) async throws -> Operations.ReactionsCreateForPullRequestReviewComment.Output { + try await reactionsCreateForPullRequestReviewComment(Operations.ReactionsCreateForPullRequestReviewComment.Input( path: path, headers: headers, body: body @@ -568,8 +568,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)`. - public func reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment(path: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Output { - try await reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment(Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input(path: path)) + public func reactionsDeleteForPullRequestComment(path: Operations.ReactionsDeleteForPullRequestComment.Input.Path) async throws -> Operations.ReactionsDeleteForPullRequestComment.Output { + try await reactionsDeleteForPullRequestComment(Operations.ReactionsDeleteForPullRequestComment.Input(path: path)) } /// List reactions for a release /// @@ -577,12 +577,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)`. - public func reactions_sol_list_hyphen_for_hyphen_release( - path: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_release.Output { - try await reactions_sol_list_hyphen_for_hyphen_release(Operations.reactions_sol_list_hyphen_for_hyphen_release.Input( + public func reactionsListForRelease( + path: Operations.ReactionsListForRelease.Input.Path, + query: Operations.ReactionsListForRelease.Input.Query = .init(), + headers: Operations.ReactionsListForRelease.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForRelease.Output { + try await reactionsListForRelease(Operations.ReactionsListForRelease.Input( path: path, query: query, headers: headers @@ -594,12 +594,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)`. - public func reactions_sol_create_hyphen_for_hyphen_release( - path: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_release.Output { - try await reactions_sol_create_hyphen_for_hyphen_release(Operations.reactions_sol_create_hyphen_for_hyphen_release.Input( + public func reactionsCreateForRelease( + path: Operations.ReactionsCreateForRelease.Input.Path, + headers: Operations.ReactionsCreateForRelease.Input.Headers = .init(), + body: Operations.ReactionsCreateForRelease.Input.Body + ) async throws -> Operations.ReactionsCreateForRelease.Output { + try await reactionsCreateForRelease(Operations.ReactionsCreateForRelease.Input( path: path, headers: headers, body: body @@ -614,8 +614,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)`. - public func reactions_sol_delete_hyphen_for_hyphen_release(path: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input.Path) async throws -> Operations.reactions_sol_delete_hyphen_for_hyphen_release.Output { - try await reactions_sol_delete_hyphen_for_hyphen_release(Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input(path: path)) + public func reactionsDeleteForRelease(path: Operations.ReactionsDeleteForRelease.Input.Path) async throws -> Operations.ReactionsDeleteForRelease.Output { + try await reactionsDeleteForRelease(Operations.ReactionsDeleteForRelease.Input(path: path)) } /// List reactions for a team discussion comment (Legacy) /// @@ -629,12 +629,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)`. @available(*, deprecated) - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input( + public func reactionsListForTeamDiscussionCommentLegacy( + path: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Path, + query: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForTeamDiscussionCommentLegacy.Output { + try await reactionsListForTeamDiscussionCommentLegacy(Operations.ReactionsListForTeamDiscussionCommentLegacy.Input( path: path, query: query, headers: headers @@ -654,12 +654,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)`. @available(*, deprecated) - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input( + public func reactionsCreateForTeamDiscussionCommentLegacy( + path: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body + ) async throws -> Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output { + try await reactionsCreateForTeamDiscussionCommentLegacy(Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input( path: path, headers: headers, body: body @@ -677,12 +677,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)`. @available(*, deprecated) - public func reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output { - try await reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input( + public func reactionsListForTeamDiscussionLegacy( + path: Operations.ReactionsListForTeamDiscussionLegacy.Input.Path, + query: Operations.ReactionsListForTeamDiscussionLegacy.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionLegacy.Input.Headers = .init() + ) async throws -> Operations.ReactionsListForTeamDiscussionLegacy.Output { + try await reactionsListForTeamDiscussionLegacy(Operations.ReactionsListForTeamDiscussionLegacy.Input( path: path, query: query, headers: headers @@ -702,12 +702,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)`. @available(*, deprecated) - public func reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body - ) async throws -> Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output { - try await reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input( + public func reactionsCreateForTeamDiscussionLegacy( + path: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body + ) async throws -> Operations.ReactionsCreateForTeamDiscussionLegacy.Output { + try await reactionsCreateForTeamDiscussionLegacy(Operations.ReactionsCreateForTeamDiscussionLegacy.Input( path: path, headers: headers, body: body @@ -717,6 +717,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -732,36 +741,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -769,30 +778,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -831,9 +840,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -848,7 +857,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -867,34 +876,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -904,152 +913,152 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Reactions to conversations provide a way to help people express their feelings more simply and effectively. /// /// - Remark: Generated from `#/components/schemas/reaction`. - public struct reaction: Codable, Hashable, Sendable { + public struct Reaction: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/reaction/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// The reaction to use /// /// - Remark: Generated from `#/components/schemas/reaction/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -1062,36 +1071,36 @@ public enum Components { /// The reaction to use /// /// - Remark: Generated from `#/components/schemas/reaction/content`. - public var content: Components.Schemas.reaction.contentPayload + public var content: Components.Schemas.Reaction.ContentPayload /// - Remark: Generated from `#/components/schemas/reaction/created_at`. - public var created_at: Foundation.Date - /// Creates a new `reaction`. + public var createdAt: Foundation.Date + /// Creates a new `Reaction`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - user: /// - content: The reaction to use - /// - created_at: + /// - createdAt: public init( id: Swift.Int, - node_id: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - content: Components.Schemas.reaction.contentPayload, - created_at: Foundation.Date + nodeId: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, + content: Components.Schemas.Reaction.ContentPayload, + createdAt: Foundation.Date ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.user = user self.content = content - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case user case content - case created_at + case createdAt = "created_at" } } } @@ -1100,70 +1109,70 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int64 + public typealias CommentId = Swift.Int64 /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The slug of the team name. /// /// - Remark: Generated from `#/components/parameters/team-slug`. - public typealias team_hyphen_slug = Swift.String + public typealias TeamSlug = Swift.String /// The number that identifies the discussion. /// /// - Remark: Generated from `#/components/parameters/discussion-number`. - public typealias discussion_hyphen_number = Swift.Int + public typealias DiscussionNumber = Swift.Int /// The number that identifies the comment. /// /// - Remark: Generated from `#/components/parameters/comment-number`. - public typealias comment_hyphen_number = Swift.Int + public typealias CommentNumber = Swift.Int /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/components/parameters/reaction-id`. - public typealias reaction_hyphen_id = Swift.Int + public typealias ReactionId = Swift.Int /// The number that identifies the issue. /// /// - Remark: Generated from `#/components/parameters/issue-number`. - public typealias issue_hyphen_number = Swift.Int + public typealias IssueNumber = Swift.Int /// The unique identifier of the release. /// /// - Remark: Generated from `#/components/parameters/release-id`. - public typealias release_hyphen_id = Swift.Int + public typealias ReleaseId = Swift.Int /// The unique identifier of the team. /// /// - Remark: Generated from `#/components/parameters/team-id`. - public typealias team_hyphen_id = Swift.Int + public typealias TeamId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1173,25 +1182,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -1201,25 +1210,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct gone: Sendable, Hashable { + public struct Gone: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/gone/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1229,12 +1238,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.gone.Body - /// Creates a new `gone`. + public var body: Components.Responses.Gone.Body + /// Creates a new `Gone`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.gone.Body) { + public init(body: Components.Responses.Gone.Body) { self.body = body } } @@ -1242,7 +1251,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -1259,7 +1268,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)`. - public enum reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum ReactionsListForTeamDiscussionCommentInOrg { public static let id: Swift.String = "reactions/list-for-team-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path`. @@ -1267,43 +1276,43 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -1316,44 +1325,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Query.contentPayload? + public var content: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Query + public var query: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1361,9 +1370,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Path, + query: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -1375,26 +1384,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -1404,15 +1413,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1423,12 +1432,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.ReactionsListForTeamDiscussionCommentInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1485,7 +1494,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)`. - public enum reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum ReactionsCreateForTeamDiscussionCommentInOrg { public static let id: Swift.String = "reactions/create-for-team-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path`. @@ -1493,59 +1502,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -1558,12 +1567,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -1571,9 +1580,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + public var body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1581,9 +1590,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + path: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Input.Body ) { self.path = path self.headers = headers @@ -1595,12 +1604,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -1610,12 +1619,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Ok.Body) { self.body = body } } @@ -1624,12 +1633,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1646,12 +1655,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -1661,12 +1670,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Created.Body) { self.body = body } } @@ -1675,12 +1684,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created) + case created(Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.ReactionsCreateForTeamDiscussionCommentInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -1735,7 +1744,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)`. - public enum reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment { + public enum ReactionsDeleteForTeamDiscussionComment { public static let id: Swift.String = "reactions/delete-for-team-discussion-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path`. @@ -1743,51 +1752,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. - /// - reaction_id: The unique identifier of the reaction. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. + /// - reactionId: The unique identifier of the reaction. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number, - reaction_id: Components.Parameters.reaction_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber, + reactionId: Components.Parameters.ReactionId ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number - self.reaction_id = reaction_id + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input.Path + public var path: Operations.ReactionsDeleteForTeamDiscussionComment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Input.Path) { + public init(path: Operations.ReactionsDeleteForTeamDiscussionComment.Input.Path) { self.path = path } } @@ -1801,12 +1810,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Output.NoContent) + case noContent(Operations.ReactionsDeleteForTeamDiscussionComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForTeamDiscussionComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1836,7 +1853,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)`. - public enum reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org { + public enum ReactionsListForTeamDiscussionInOrg { public static let id: Swift.String = "reactions/list-for-team-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/path`. @@ -1844,36 +1861,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ReactionsListForTeamDiscussionInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -1886,44 +1903,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Query.contentPayload? + public var content: Operations.ReactionsListForTeamDiscussionInOrg.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForTeamDiscussionInOrg.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Query + public var query: Operations.ReactionsListForTeamDiscussionInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ReactionsListForTeamDiscussionInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1931,9 +1948,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.ReactionsListForTeamDiscussionInOrg.Input.Path, + query: Operations.ReactionsListForTeamDiscussionInOrg.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -1945,26 +1962,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -1974,15 +1991,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1993,12 +2010,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.ReactionsListForTeamDiscussionInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -2055,7 +2072,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)`. - public enum reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org { + public enum ReactionsCreateForTeamDiscussionInOrg { public static let id: Swift.String = "reactions/create-for-team-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/path`. @@ -2063,52 +2080,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -2121,12 +2138,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -2134,9 +2151,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body + public var body: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2144,9 +2161,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Input.Body + path: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionInOrg.Input.Body ) { self.path = path self.headers = headers @@ -2158,12 +2175,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -2173,12 +2190,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Ok.Body) { self.body = body } } @@ -2187,12 +2204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -2209,12 +2226,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -2224,12 +2241,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Created.Body) { self.body = body } } @@ -2238,12 +2255,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Created) + case created(Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.ReactionsCreateForTeamDiscussionInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -2298,7 +2315,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)`. - public enum reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion { + public enum ReactionsDeleteForTeamDiscussion { public static let id: Swift.String = "reactions/delete-for-team-discussion" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/DELETE/path`. @@ -2306,44 +2323,44 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - reaction_id: The unique identifier of the reaction. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - reactionId: The unique identifier of the reaction. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - reaction_id: Components.Parameters.reaction_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + reactionId: Components.Parameters.ReactionId ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.reaction_id = reaction_id + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input.Path + public var path: Operations.ReactionsDeleteForTeamDiscussion.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Input.Path) { + public init(path: Operations.ReactionsDeleteForTeamDiscussion.Input.Path) { self.path = path } } @@ -2357,12 +2374,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Output.NoContent) + case noContent(Operations.ReactionsDeleteForTeamDiscussion.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}/delete(reactions/delete-for-team-discussion)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_team_hyphen_discussion.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForTeamDiscussion.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -2387,7 +2412,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)`. - public enum reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment { + public enum ReactionsListForCommitComment { public static let id: Swift.String = "reactions/list-for-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/path`. @@ -2395,36 +2420,36 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReactionsListForCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -2437,44 +2462,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Query.contentPayload? + public var content: Operations.ReactionsListForCommitComment.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForCommitComment.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Query + public var query: Operations.ReactionsListForCommitComment.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsListForCommitComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2482,9 +2507,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers = .init() + path: Operations.ReactionsListForCommitComment.Input.Path, + query: Operations.ReactionsListForCommitComment.Input.Query = .init(), + headers: Operations.ReactionsListForCommitComment.Input.Headers = .init() ) { self.path = path self.query = query @@ -2496,26 +2521,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Headers + public var headers: Operations.ReactionsListForCommitComment.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -2525,15 +2550,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsListForCommitComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body + headers: Operations.ReactionsListForCommitComment.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForCommitComment.Output.Ok.Body ) { self.headers = headers self.body = body @@ -2544,12 +2569,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsListForCommitComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsListForCommitComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -2567,12 +2592,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/get(reactions/list-for-commit-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2622,7 +2647,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)`. - public enum reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment { + public enum ReactionsCreateForCommitComment { public static let id: Swift.String = "reactions/create-for-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/path`. @@ -2630,52 +2655,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReactionsCreateForCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsCreateForCommitComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -2688,12 +2713,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForCommitComment.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForCommitComment.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -2701,9 +2726,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForCommitComment.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body + public var body: Operations.ReactionsCreateForCommitComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2711,9 +2736,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Input.Body + path: Operations.ReactionsCreateForCommitComment.Input.Path, + headers: Operations.ReactionsCreateForCommitComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForCommitComment.Input.Body ) { self.path = path self.headers = headers @@ -2725,12 +2750,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -2740,12 +2765,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsCreateForCommitComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForCommitComment.Output.Ok.Body) { self.body = body } } @@ -2754,12 +2779,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsCreateForCommitComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsCreateForCommitComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -2776,12 +2801,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -2791,12 +2816,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Created.Body + public var body: Operations.ReactionsCreateForCommitComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForCommitComment.Output.Created.Body) { self.body = body } } @@ -2805,12 +2830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Created) + case created(Operations.ReactionsCreateForCommitComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_commit_hyphen_comment.Output.Created { + public var created: Operations.ReactionsCreateForCommitComment.Output.Created { get throws { switch self { case let .created(response): @@ -2828,12 +2853,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/post(reactions/create-for-commit-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -2886,7 +2911,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)`. - public enum reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment { + public enum ReactionsDeleteForCommitComment { public static let id: Swift.String = "reactions/delete-for-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/DELETE/path`. @@ -2894,44 +2919,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. - /// - reaction_id: The unique identifier of the reaction. + /// - commentId: The unique identifier of the comment. + /// - reactionId: The unique identifier of the reaction. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id, - reaction_id: Components.Parameters.reaction_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId, + reactionId: Components.Parameters.ReactionId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id - self.reaction_id = reaction_id + self.commentId = commentId + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReactionsDeleteForCommitComment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Input.Path) { + public init(path: Operations.ReactionsDeleteForCommitComment.Input.Path) { self.path = path } } @@ -2945,12 +2970,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Output.NoContent) + case noContent(Operations.ReactionsDeleteForCommitComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-commit-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_commit_hyphen_comment.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForCommitComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -2975,7 +3008,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)`. - public enum reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment { + public enum ReactionsListForIssueComment { public static let id: Swift.String = "reactions/list-for-issue-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/path`. @@ -2983,36 +3016,36 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Path + public var path: Operations.ReactionsListForIssueComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -3025,44 +3058,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Query.contentPayload? + public var content: Operations.ReactionsListForIssueComment.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForIssueComment.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Query + public var query: Operations.ReactionsListForIssueComment.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsListForIssueComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3070,9 +3103,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers = .init() + path: Operations.ReactionsListForIssueComment.Input.Path, + query: Operations.ReactionsListForIssueComment.Input.Query = .init(), + headers: Operations.ReactionsListForIssueComment.Input.Headers = .init() ) { self.path = path self.query = query @@ -3084,26 +3117,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Headers + public var headers: Operations.ReactionsListForIssueComment.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -3113,15 +3146,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsListForIssueComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body + headers: Operations.ReactionsListForIssueComment.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForIssueComment.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3132,12 +3165,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsListForIssueComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsListForIssueComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -3155,12 +3188,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/get(reactions/list-for-issue-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3210,7 +3243,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)`. - public enum reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment { + public enum ReactionsCreateForIssueComment { public static let id: Swift.String = "reactions/create-for-issue-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/path`. @@ -3218,52 +3251,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Path + public var path: Operations.ReactionsCreateForIssueComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsCreateForIssueComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -3276,12 +3309,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForIssueComment.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForIssueComment.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -3289,9 +3322,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForIssueComment.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body + public var body: Operations.ReactionsCreateForIssueComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3299,9 +3332,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Input.Body + path: Operations.ReactionsCreateForIssueComment.Input.Path, + headers: Operations.ReactionsCreateForIssueComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForIssueComment.Input.Body ) { self.path = path self.headers = headers @@ -3313,12 +3346,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -3328,12 +3361,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsCreateForIssueComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForIssueComment.Output.Ok.Body) { self.body = body } } @@ -3342,12 +3375,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsCreateForIssueComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsCreateForIssueComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -3364,12 +3397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -3379,12 +3412,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Created.Body + public var body: Operations.ReactionsCreateForIssueComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForIssueComment.Output.Created.Body) { self.body = body } } @@ -3393,12 +3426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Created) + case created(Operations.ReactionsCreateForIssueComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_issue_hyphen_comment.Output.Created { + public var created: Operations.ReactionsCreateForIssueComment.Output.Created { get throws { switch self { case let .created(response): @@ -3416,12 +3449,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/post(reactions/create-for-issue-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3474,7 +3507,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)`. - public enum reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment { + public enum ReactionsDeleteForIssueComment { public static let id: Swift.String = "reactions/delete-for-issue-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/DELETE/path`. @@ -3482,44 +3515,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. - /// - reaction_id: The unique identifier of the reaction. + /// - commentId: The unique identifier of the comment. + /// - reactionId: The unique identifier of the reaction. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id, - reaction_id: Components.Parameters.reaction_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId, + reactionId: Components.Parameters.ReactionId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id - self.reaction_id = reaction_id + self.commentId = commentId + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input.Path + public var path: Operations.ReactionsDeleteForIssueComment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Input.Path) { + public init(path: Operations.ReactionsDeleteForIssueComment.Input.Path) { self.path = path } } @@ -3533,12 +3566,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Output.NoContent) + case noContent(Operations.ReactionsDeleteForIssueComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-issue-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_issue_hyphen_comment.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForIssueComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3563,7 +3604,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)`. - public enum reactions_sol_list_hyphen_for_hyphen_issue { + public enum ReactionsListForIssue { public static let id: Swift.String = "reactions/list-for-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/path`. @@ -3571,36 +3612,36 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Path + public var path: Operations.ReactionsListForIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -3613,44 +3654,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Query.contentPayload? + public var content: Operations.ReactionsListForIssue.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForIssue.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Query + public var query: Operations.ReactionsListForIssue.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Headers + public var headers: Operations.ReactionsListForIssue.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3658,9 +3699,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Input.Headers = .init() + path: Operations.ReactionsListForIssue.Input.Path, + query: Operations.ReactionsListForIssue.Input.Query = .init(), + headers: Operations.ReactionsListForIssue.Input.Headers = .init() ) { self.path = path self.query = query @@ -3672,26 +3713,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Headers + public var headers: Operations.ReactionsListForIssue.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -3701,15 +3742,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Body + public var body: Operations.ReactionsListForIssue.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok.Body + headers: Operations.ReactionsListForIssue.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForIssue.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3720,12 +3761,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok) + case ok(Operations.ReactionsListForIssue.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_issue.Output.Ok { + public var ok: Operations.ReactionsListForIssue.Output.Ok { get throws { switch self { case let .ok(response): @@ -3743,12 +3784,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3766,12 +3807,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/get(reactions/list-for-issue)/responses/410`. /// /// HTTP response code: `410 gone`. - case gone(Components.Responses.gone) + case gone(Components.Responses.Gone) /// The associated value of the enum case if `self` is `.gone`. /// /// - Throws: An error if `self` is not `.gone`. /// - SeeAlso: `.gone`. - public var gone: Components.Responses.gone { + public var gone: Components.Responses.Gone { get throws { switch self { case let .gone(response): @@ -3821,7 +3862,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)`. - public enum reactions_sol_create_hyphen_for_hyphen_issue { + public enum ReactionsCreateForIssue { public static let id: Swift.String = "reactions/create-for-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/path`. @@ -3829,52 +3870,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. + /// - issueNumber: The number that identifies the issue. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber ) { self.owner = owner self.repo = repo - self.issue_number = issue_number + self.issueNumber = issueNumber } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Path + public var path: Operations.ReactionsCreateForIssue.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Headers + public var headers: Operations.ReactionsCreateForIssue.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -3887,12 +3928,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForIssue.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForIssue.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -3900,9 +3941,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForIssue.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body + public var body: Operations.ReactionsCreateForIssue.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3910,9 +3951,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Input.Body + path: Operations.ReactionsCreateForIssue.Input.Path, + headers: Operations.ReactionsCreateForIssue.Input.Headers = .init(), + body: Operations.ReactionsCreateForIssue.Input.Body ) { self.path = path self.headers = headers @@ -3924,12 +3965,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -3939,12 +3980,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Ok.Body + public var body: Operations.ReactionsCreateForIssue.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForIssue.Output.Ok.Body) { self.body = body } } @@ -3953,12 +3994,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Ok) + case ok(Operations.ReactionsCreateForIssue.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Ok { + public var ok: Operations.ReactionsCreateForIssue.Output.Ok { get throws { switch self { case let .ok(response): @@ -3975,12 +4016,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -3990,12 +4031,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Created.Body + public var body: Operations.ReactionsCreateForIssue.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForIssue.Output.Created.Body) { self.body = body } } @@ -4004,12 +4045,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Created) + case created(Operations.ReactionsCreateForIssue.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_issue.Output.Created { + public var created: Operations.ReactionsCreateForIssue.Output.Created { get throws { switch self { case let .created(response): @@ -4027,12 +4068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/post(reactions/create-for-issue)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4085,7 +4126,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)`. - public enum reactions_sol_delete_hyphen_for_hyphen_issue { + public enum ReactionsDeleteForIssue { public static let id: Swift.String = "reactions/delete-for-issue" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/DELETE/path`. @@ -4093,44 +4134,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the issue. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/DELETE/path/issue_number`. - public var issue_number: Components.Parameters.issue_hyphen_number + public var issueNumber: Components.Parameters.IssueNumber /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - issue_number: The number that identifies the issue. - /// - reaction_id: The unique identifier of the reaction. + /// - issueNumber: The number that identifies the issue. + /// - reactionId: The unique identifier of the reaction. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - issue_number: Components.Parameters.issue_hyphen_number, - reaction_id: Components.Parameters.reaction_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + issueNumber: Components.Parameters.IssueNumber, + reactionId: Components.Parameters.ReactionId ) { self.owner = owner self.repo = repo - self.issue_number = issue_number - self.reaction_id = reaction_id + self.issueNumber = issueNumber + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input.Path + public var path: Operations.ReactionsDeleteForIssue.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Input.Path) { + public init(path: Operations.ReactionsDeleteForIssue.Input.Path) { self.path = path } } @@ -4144,12 +4185,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Output.NoContent) + case noContent(Operations.ReactionsDeleteForIssue.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}/delete(reactions/delete-for-issue)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_issue.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForIssue.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4174,7 +4223,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)`. - public enum reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment { + public enum ReactionsListForPullRequestReviewComment { public static let id: Swift.String = "reactions/list-for-pull-request-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/path`. @@ -4182,36 +4231,36 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.ReactionsListForPullRequestReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -4224,44 +4273,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Query.contentPayload? + public var content: Operations.ReactionsListForPullRequestReviewComment.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForPullRequestReviewComment.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Query + public var query: Operations.ReactionsListForPullRequestReviewComment.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsListForPullRequestReviewComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4269,9 +4318,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers = .init() + path: Operations.ReactionsListForPullRequestReviewComment.Input.Path, + query: Operations.ReactionsListForPullRequestReviewComment.Input.Query = .init(), + headers: Operations.ReactionsListForPullRequestReviewComment.Input.Headers = .init() ) { self.path = path self.query = query @@ -4283,26 +4332,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Headers + public var headers: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -4312,15 +4361,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body + headers: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForPullRequestReviewComment.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4331,12 +4380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsListForPullRequestReviewComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsListForPullRequestReviewComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -4354,12 +4403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/get(reactions/list-for-pull-request-review-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4409,7 +4458,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)`. - public enum reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment { + public enum ReactionsCreateForPullRequestReviewComment { public static let id: Swift.String = "reactions/create-for-pull-request-review-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/path`. @@ -4417,52 +4466,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path + public var path: Operations.ReactionsCreateForPullRequestReviewComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers + public var headers: Operations.ReactionsCreateForPullRequestReviewComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -4475,12 +4524,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForPullRequestReviewComment.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForPullRequestReviewComment.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -4488,9 +4537,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForPullRequestReviewComment.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body + public var body: Operations.ReactionsCreateForPullRequestReviewComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4498,9 +4547,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Input.Body + path: Operations.ReactionsCreateForPullRequestReviewComment.Input.Path, + headers: Operations.ReactionsCreateForPullRequestReviewComment.Input.Headers = .init(), + body: Operations.ReactionsCreateForPullRequestReviewComment.Input.Body ) { self.path = path self.headers = headers @@ -4512,12 +4561,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -4527,12 +4576,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body + public var body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Ok.Body) { self.body = body } } @@ -4541,12 +4590,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok) + case ok(Operations.ReactionsCreateForPullRequestReviewComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Ok { + public var ok: Operations.ReactionsCreateForPullRequestReviewComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -4563,12 +4612,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -4578,12 +4627,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Created.Body + public var body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForPullRequestReviewComment.Output.Created.Body) { self.body = body } } @@ -4592,12 +4641,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Created) + case created(Operations.ReactionsCreateForPullRequestReviewComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment.Output.Created { + public var created: Operations.ReactionsCreateForPullRequestReviewComment.Output.Created { get throws { switch self { case let .created(response): @@ -4615,12 +4664,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/post(reactions/create-for-pull-request-review-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4673,7 +4722,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)`. - public enum reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment { + public enum ReactionsDeleteForPullRequestComment { public static let id: Swift.String = "reactions/delete-for-pull-request-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/DELETE/path`. @@ -4681,44 +4730,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. - /// - reaction_id: The unique identifier of the reaction. + /// - commentId: The unique identifier of the comment. + /// - reactionId: The unique identifier of the reaction. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id, - reaction_id: Components.Parameters.reaction_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId, + reactionId: Components.Parameters.ReactionId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id - self.reaction_id = reaction_id + self.commentId = commentId + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input.Path + public var path: Operations.ReactionsDeleteForPullRequestComment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Input.Path) { + public init(path: Operations.ReactionsDeleteForPullRequestComment.Input.Path) { self.path = path } } @@ -4732,12 +4781,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Output.NoContent) + case noContent(Operations.ReactionsDeleteForPullRequestComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}/delete(reactions/delete-for-pull-request-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_pull_hyphen_request_hyphen_comment.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForPullRequestComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4762,7 +4819,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)`. - public enum reactions_sol_list_hyphen_for_hyphen_release { + public enum ReactionsListForRelease { public static let id: Swift.String = "reactions/list-for-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/path`. @@ -4770,36 +4827,36 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Path + public var path: Operations.ReactionsListForRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case laugh = "laugh" case heart = "heart" @@ -4810,44 +4867,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Query.contentPayload? + public var content: Operations.ReactionsListForRelease.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForRelease.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Query + public var query: Operations.ReactionsListForRelease.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Headers + public var headers: Operations.ReactionsListForRelease.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4855,9 +4912,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Input.Headers = .init() + path: Operations.ReactionsListForRelease.Input.Path, + query: Operations.ReactionsListForRelease.Input.Query = .init(), + headers: Operations.ReactionsListForRelease.Input.Headers = .init() ) { self.path = path self.query = query @@ -4869,26 +4926,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Headers + public var headers: Operations.ReactionsListForRelease.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -4898,15 +4955,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Body + public var body: Operations.ReactionsListForRelease.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok.Body + headers: Operations.ReactionsListForRelease.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForRelease.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4917,12 +4974,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok) + case ok(Operations.ReactionsListForRelease.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_release.Output.Ok { + public var ok: Operations.ReactionsListForRelease.Output.Ok { get throws { switch self { case let .ok(response): @@ -4940,12 +4997,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/get(reactions/list-for-release)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4995,7 +5052,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/reactions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)`. - public enum reactions_sol_create_hyphen_for_hyphen_release { + public enum ReactionsCreateForRelease { public static let id: Swift.String = "reactions/create-for-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/path`. @@ -5003,52 +5060,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Path + public var path: Operations.ReactionsCreateForRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Headers + public var headers: Operations.ReactionsCreateForRelease.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case laugh = "laugh" case heart = "heart" @@ -5059,12 +5116,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForRelease.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForRelease.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -5072,9 +5129,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForRelease.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body + public var body: Operations.ReactionsCreateForRelease.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5082,9 +5139,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Input.Body + path: Operations.ReactionsCreateForRelease.Input.Path, + headers: Operations.ReactionsCreateForRelease.Input.Headers = .init(), + body: Operations.ReactionsCreateForRelease.Input.Body ) { self.path = path self.headers = headers @@ -5096,12 +5153,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/responses/200/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -5111,12 +5168,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Ok.Body + public var body: Operations.ReactionsCreateForRelease.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Ok.Body) { + public init(body: Operations.ReactionsCreateForRelease.Output.Ok.Body) { self.body = body } } @@ -5125,12 +5182,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Ok) + case ok(Operations.ReactionsCreateForRelease.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Ok { + public var ok: Operations.ReactionsCreateForRelease.Output.Ok { get throws { switch self { case let .ok(response): @@ -5147,12 +5204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -5162,12 +5219,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Created.Body + public var body: Operations.ReactionsCreateForRelease.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForRelease.Output.Created.Body) { self.body = body } } @@ -5176,12 +5233,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Created) + case created(Operations.ReactionsCreateForRelease.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_release.Output.Created { + public var created: Operations.ReactionsCreateForRelease.Output.Created { get throws { switch self { case let .created(response): @@ -5199,12 +5256,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/post(reactions/create-for-release)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5257,7 +5314,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)`. - public enum reactions_sol_delete_hyphen_for_hyphen_release { + public enum ReactionsDeleteForRelease { public static let id: Swift.String = "reactions/delete-for-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/DELETE/path`. @@ -5265,44 +5322,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/DELETE/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// The unique identifier of the reaction. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/DELETE/path/reaction_id`. - public var reaction_id: Components.Parameters.reaction_hyphen_id + public var reactionId: Components.Parameters.ReactionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. - /// - reaction_id: The unique identifier of the reaction. + /// - releaseId: The unique identifier of the release. + /// - reactionId: The unique identifier of the reaction. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id, - reaction_id: Components.Parameters.reaction_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId, + reactionId: Components.Parameters.ReactionId ) { self.owner = owner self.repo = repo - self.release_id = release_id - self.reaction_id = reaction_id + self.releaseId = releaseId + self.reactionId = reactionId } } - public var path: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input.Path + public var path: Operations.ReactionsDeleteForRelease.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Input.Path) { + public init(path: Operations.ReactionsDeleteForRelease.Input.Path) { self.path = path } } @@ -5316,12 +5373,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.reactions_sol_delete_hyphen_for_hyphen_release.Output.NoContent) + case noContent(Operations.ReactionsDeleteForRelease.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}/delete(reactions/delete-for-release)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.reactions_sol_delete_hyphen_for_hyphen_release.Output.NoContent { + public var noContent: Operations.ReactionsDeleteForRelease.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5351,7 +5416,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)`. - public enum reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum ReactionsListForTeamDiscussionCommentLegacy { public static let id: Swift.String = "reactions/list-for-team-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path`. @@ -5359,36 +5424,36 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamId = teamId + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -5401,44 +5466,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Query.contentPayload? + public var content: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Query + public var query: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers + public var headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5446,9 +5511,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init() + path: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Path, + query: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -5460,26 +5525,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -5489,15 +5554,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + public var body: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + headers: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5508,12 +5573,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/get(reactions/list-for-team-discussion-comment-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok) + case ok(Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok { + public var ok: Operations.ReactionsListForTeamDiscussionCommentLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -5570,7 +5635,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)`. - public enum reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum ReactionsCreateForTeamDiscussionCommentLegacy { public static let id: Swift.String = "reactions/create-for-team-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path`. @@ -5578,52 +5643,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamId = teamId + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers + public var headers: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -5636,12 +5701,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -5649,9 +5714,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + public var body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5659,9 +5724,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + path: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Input.Body ) { self.path = path self.headers = headers @@ -5673,12 +5738,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -5688,12 +5753,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body + public var body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output.Created.Body) { self.body = body } } @@ -5702,12 +5767,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions/post(reactions/create-for-team-discussion-comment-legacy)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created) + case created(Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created { + public var created: Operations.ReactionsCreateForTeamDiscussionCommentLegacy.Output.Created { get throws { switch self { case let .created(response): @@ -5762,7 +5827,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)`. - public enum reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy { + public enum ReactionsListForTeamDiscussionLegacy { public static let id: Swift.String = "reactions/list-for-team-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/path`. @@ -5770,29 +5835,29 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.ReactionsListForTeamDiscussionLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/query/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -5805,44 +5870,44 @@ public enum Operations { /// Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/query/content`. - public var content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Query.contentPayload? + public var content: Operations.ReactionsListForTeamDiscussionLegacy.Input.Query.ContentPayload? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - content: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. - /// - 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)." + /// - perPage: 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)." public init( - content: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Query.contentPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + content: Operations.ReactionsListForTeamDiscussionLegacy.Input.Query.ContentPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.content = content - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Query + public var query: Operations.ReactionsListForTeamDiscussionLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers + public var headers: Operations.ReactionsListForTeamDiscussionLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5850,9 +5915,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path, - query: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Query = .init(), - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers = .init() + path: Operations.ReactionsListForTeamDiscussionLegacy.Input.Path, + query: Operations.ReactionsListForTeamDiscussionLegacy.Input.Query = .init(), + headers: Operations.ReactionsListForTeamDiscussionLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -5864,26 +5929,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.reaction]) + case json([Components.Schemas.Reaction]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.reaction] { + public var json: [Components.Schemas.Reaction] { get throws { switch self { case let .json(body): @@ -5893,15 +5958,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Body + public var body: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok.Body + headers: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Headers = .init(), + body: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5912,12 +5977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/get(reactions/list-for-team-discussion-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok) + case ok(Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.reactions_sol_list_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Ok { + public var ok: Operations.ReactionsListForTeamDiscussionLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -5974,7 +6039,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/reactions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)`. - public enum reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy { + public enum ReactionsCreateForTeamDiscussionLegacy { public static let id: Swift.String = "reactions/create-for-team-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/path`. @@ -5982,45 +6047,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers + public var headers: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/requestBody/json/content`. - @frozen public enum contentPayload: String, Codable, Hashable, Sendable { + @frozen public enum ContentPayload: String, Codable, Hashable, Sendable, CaseIterable { case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh = "laugh" @@ -6033,12 +6098,12 @@ public enum Operations { /// The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/requestBody/json/content`. - public var content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body.jsonPayload.contentPayload - /// Creates a new `jsonPayload`. + public var content: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body.JsonPayload.ContentPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - content: The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion. - public init(content: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body.jsonPayload.contentPayload) { + public init(content: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body.JsonPayload.ContentPayload) { self.content = content } public enum CodingKeys: String, CodingKey { @@ -6046,9 +6111,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/requestBody/content/application\/json`. - case json(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body.JsonPayload) } - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body + public var body: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6056,9 +6121,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Input.Body + path: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Path, + headers: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Headers = .init(), + body: Operations.ReactionsCreateForTeamDiscussionLegacy.Input.Body ) { self.path = path self.headers = headers @@ -6070,12 +6135,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/reactions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.reaction) + case json(Components.Schemas.Reaction) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.reaction { + public var json: Components.Schemas.Reaction { get throws { switch self { case let .json(body): @@ -6085,12 +6150,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Created.Body + public var body: Operations.ReactionsCreateForTeamDiscussionLegacy.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Created.Body) { + public init(body: Operations.ReactionsCreateForTeamDiscussionLegacy.Output.Created.Body) { self.body = body } } @@ -6099,12 +6164,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/reactions/post(reactions/create-for-team-discussion-legacy)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Created) + case created(Operations.ReactionsCreateForTeamDiscussionLegacy.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.reactions_sol_create_hyphen_for_hyphen_team_hyphen_discussion_hyphen_legacy.Output.Created { + public var created: Operations.ReactionsCreateForTeamDiscussionLegacy.Output.Created { get throws { switch self { case let .created(response): From 35fd004b820bf4b282703020d727b22a5d633c29 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:05:17 -0700 Subject: [PATCH 29/46] Commit via running ake Sources/repos --- Sources/repos/Client.swift | 2806 ++-- Sources/repos/Types.swift | 28098 ++++++++++++++++++----------------- 2 files changed, 15746 insertions(+), 15158 deletions(-) diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 25e9f5513c..ba61188be7 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -47,10 +47,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/get(repos/list-for-org)`. - public func repos_sol_list_hyphen_for_hyphen_org(_ input: Operations.repos_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_org.Output { + public func reposListForOrg(_ input: Operations.ReposListForOrg.Input) async throws -> Operations.ReposListForOrg.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_for_hyphen_org.id, + forOperation: Operations.ReposListForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/repos", @@ -89,7 +89,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -107,13 +107,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.ReposListForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -123,7 +123,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -156,10 +156,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)`. - public func repos_sol_create_hyphen_in_hyphen_org(_ input: Operations.repos_sol_create_hyphen_in_hyphen_org.Input) async throws -> Operations.repos_sol_create_hyphen_in_hyphen_org.Output { + public func reposCreateInOrg(_ input: Operations.ReposCreateInOrg.Input) async throws -> Operations.ReposCreateInOrg.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_in_hyphen_org.id, + forOperation: Operations.ReposCreateInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/repos", @@ -190,13 +190,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateInOrg.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.ReposCreateInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -206,7 +206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -221,7 +221,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -231,7 +231,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -243,7 +243,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -253,7 +253,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -281,10 +281,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)`. - public func repos_sol_get_hyphen_org_hyphen_rulesets(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output { + public func reposGetOrgRulesets(_ input: Operations.ReposGetOrgRulesets.Input) async throws -> Operations.ReposGetOrgRulesets.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.id, + forOperation: Operations.ReposGetOrgRulesets.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets", @@ -302,7 +302,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -328,7 +328,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output.Ok.Body + let body: Operations.ReposGetOrgRulesets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -338,7 +338,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_ruleset].self, + [Components.Schemas.RepositoryRuleset].self, from: responseBody, transforming: { value in .json(value) @@ -350,7 +350,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -360,7 +360,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -372,7 +372,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -382,7 +382,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -410,10 +410,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)`. - public func repos_sol_create_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output { + public func reposCreateOrgRuleset(_ input: Operations.ReposCreateOrgRuleset.Input) async throws -> Operations.ReposCreateOrgRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.id, + forOperation: Operations.ReposCreateOrgRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets", @@ -445,7 +445,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output.Created.Body + let body: Operations.ReposCreateOrgRuleset.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -455,7 +455,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -467,7 +467,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -477,7 +477,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -489,7 +489,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -499,7 +499,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -528,10 +528,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)`. - public func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output { + public func reposGetOrgRuleSuites(_ input: Operations.ReposGetOrgRuleSuites.Input) async throws -> Operations.ReposGetOrgRuleSuites.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.id, + forOperation: Operations.ReposGetOrgRuleSuites.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/rule-suites", @@ -556,35 +556,35 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "repository_name", - value: input.query.repository_name + value: input.query.repositoryName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "time_period", - value: input.query.time_period + value: input.query.timePeriod ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "actor_name", - value: input.query.actor_name + value: input.query.actorName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "rule_suite_result", - value: input.query.rule_suite_result + value: input.query.ruleSuiteResult ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -603,7 +603,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output.Ok.Body + let body: Operations.ReposGetOrgRuleSuites.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -613,7 +613,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.rule_hyphen_suites.self, + Components.Schemas.RuleSuites.self, from: responseBody, transforming: { value in .json(value) @@ -625,7 +625,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -635,7 +635,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -647,7 +647,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -657,7 +657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -686,16 +686,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)`. - public func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output { + public func reposGetOrgRuleSuite(_ input: Operations.ReposGetOrgRuleSuite.Input) async throws -> Operations.ReposGetOrgRuleSuite.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.id, + forOperation: Operations.ReposGetOrgRuleSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/rule-suites/{}", parameters: [ input.path.org, - input.path.rule_suite_id + input.path.ruleSuiteId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -713,7 +713,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output.Ok.Body + let body: Operations.ReposGetOrgRuleSuite.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -723,7 +723,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.rule_hyphen_suite.self, + Components.Schemas.RuleSuite.self, from: responseBody, transforming: { value in .json(value) @@ -735,7 +735,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -745,7 +745,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -757,7 +757,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -767,7 +767,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -798,16 +798,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`. - public func repos_sol_get_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output { + public func reposGetOrgRuleset(_ input: Operations.ReposGetOrgRuleset.Input) async throws -> Operations.ReposGetOrgRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.id, + forOperation: Operations.ReposGetOrgRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/{}", parameters: [ input.path.org, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -825,7 +825,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output.Ok.Body + let body: Operations.ReposGetOrgRuleset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -835,7 +835,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -847,7 +847,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -857,7 +857,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -869,7 +869,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -879,7 +879,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -907,16 +907,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)`. - public func repos_sol_update_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output { + public func reposUpdateOrgRuleset(_ input: Operations.ReposUpdateOrgRuleset.Input) async throws -> Operations.ReposUpdateOrgRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.id, + forOperation: Operations.ReposUpdateOrgRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/{}", parameters: [ input.path.org, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -945,7 +945,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output.Ok.Body + let body: Operations.ReposUpdateOrgRuleset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -955,7 +955,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -967,7 +967,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -977,7 +977,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -989,7 +989,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -999,7 +999,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1027,16 +1027,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)`. - public func repos_sol_delete_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Output { + public func reposDeleteOrgRuleset(_ input: Operations.ReposDeleteOrgRuleset.Input) async throws -> Operations.ReposDeleteOrgRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.id, + forOperation: Operations.ReposDeleteOrgRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/rulesets/{}", parameters: [ input.path.org, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1056,7 +1056,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1066,7 +1066,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1078,7 +1078,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1088,7 +1088,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1119,10 +1119,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)`. - public func repos_sol_get(_ input: Operations.repos_sol_get.Input) async throws -> Operations.repos_sol_get.Output { + public func reposGet(_ input: Operations.ReposGet.Input) async throws -> Operations.ReposGet.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get.id, + forOperation: Operations.ReposGet.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}", @@ -1146,7 +1146,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get.Output.Ok.Body + let body: Operations.ReposGet.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1156,7 +1156,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -1168,7 +1168,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1178,7 +1178,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1190,7 +1190,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1200,7 +1200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1212,7 +1212,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1222,7 +1222,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1250,10 +1250,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)`. - public func repos_sol_update(_ input: Operations.repos_sol_update.Input) async throws -> Operations.repos_sol_update.Output { + public func reposUpdate(_ input: Operations.ReposUpdate.Input) async throws -> Operations.ReposUpdate.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update.id, + forOperation: Operations.ReposUpdate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}", @@ -1288,7 +1288,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update.Output.Ok.Body + let body: Operations.ReposUpdate.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1298,7 +1298,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -1310,7 +1310,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 307: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.temporary_redirect.Body + let body: Components.Responses.TemporaryRedirect.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1320,7 +1320,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1332,7 +1332,7 @@ public struct Client: APIProtocol { return .temporaryRedirect(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1342,7 +1342,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1354,7 +1354,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1364,7 +1364,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1376,7 +1376,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1386,7 +1386,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1419,10 +1419,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)`. - public func repos_sol_delete(_ input: Operations.repos_sol_delete.Input) async throws -> Operations.repos_sol_delete.Output { + public func reposDelete(_ input: Operations.ReposDelete.Input) async throws -> Operations.ReposDelete.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete.id, + forOperation: Operations.ReposDelete.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}", @@ -1448,7 +1448,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_delete.Output.Forbidden.Body + let body: Operations.ReposDelete.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1458,7 +1458,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_delete.Output.Forbidden.Body.jsonPayload.self, + Operations.ReposDelete.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1470,7 +1470,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 307: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.temporary_redirect.Body + let body: Components.Responses.TemporaryRedirect.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1480,7 +1480,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1492,7 +1492,7 @@ public struct Client: APIProtocol { return .temporaryRedirect(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1502,7 +1502,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1533,10 +1533,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)`. - public func repos_sol_list_hyphen_activities(_ input: Operations.repos_sol_list_hyphen_activities.Input) async throws -> Operations.repos_sol_list_hyphen_activities.Output { + public func reposListActivities(_ input: Operations.ReposListActivities.Input) async throws -> Operations.ReposListActivities.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_activities.id, + forOperation: Operations.ReposListActivities.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/activity", @@ -1562,7 +1562,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1597,14 +1597,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "time_period", - value: input.query.time_period + value: input.query.timePeriod ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "activity_type", - value: input.query.activity_type + value: input.query.activityType ) converter.setAcceptHeader( in: &request.headerFields, @@ -1615,13 +1615,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_activities.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListActivities.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_activities.Output.Ok.Body + let body: Operations.ReposListActivities.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1631,7 +1631,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.activity].self, + [Components.Schemas.Activity].self, from: responseBody, transforming: { value in .json(value) @@ -1646,7 +1646,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1656,7 +1656,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -1688,10 +1688,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. - public func repos_sol_create_hyphen_attestation(_ input: Operations.repos_sol_create_hyphen_attestation.Input) async throws -> Operations.repos_sol_create_hyphen_attestation.Output { + public func reposCreateAttestation(_ input: Operations.ReposCreateAttestation.Input) async throws -> Operations.ReposCreateAttestation.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_attestation.id, + forOperation: Operations.ReposCreateAttestation.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/attestations", @@ -1724,7 +1724,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_attestation.Output.Created.Body + let body: Operations.ReposCreateAttestation.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1734,7 +1734,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_create_hyphen_attestation.Output.Created.Body.jsonPayload.self, + Operations.ReposCreateAttestation.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1746,7 +1746,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1756,7 +1756,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1768,7 +1768,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1778,7 +1778,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1810,17 +1810,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/{subject_digest}/get(repos/list-attestations)`. - public func repos_sol_list_hyphen_attestations(_ input: Operations.repos_sol_list_hyphen_attestations.Input) async throws -> Operations.repos_sol_list_hyphen_attestations.Output { + public func reposListAttestations(_ input: Operations.ReposListAttestations.Input) async throws -> Operations.ReposListAttestations.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_attestations.id, + forOperation: Operations.ReposListAttestations.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/attestations/{}", parameters: [ input.path.owner, input.path.repo, - input.path.subject_digest + input.path.subjectDigest ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1833,7 +1833,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1854,7 +1854,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "predicate_type", - value: input.query.predicate_type + value: input.query.predicateType ) converter.setAcceptHeader( in: &request.headerFields, @@ -1866,7 +1866,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body + let body: Operations.ReposListAttestations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1876,7 +1876,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.self, + Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1906,10 +1906,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/get(repos/list-autolinks)`. - public func repos_sol_list_hyphen_autolinks(_ input: Operations.repos_sol_list_hyphen_autolinks.Input) async throws -> Operations.repos_sol_list_hyphen_autolinks.Output { + public func reposListAutolinks(_ input: Operations.ReposListAutolinks.Input) async throws -> Operations.ReposListAutolinks.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_autolinks.id, + forOperation: Operations.ReposListAutolinks.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/autolinks", @@ -1933,7 +1933,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_autolinks.Output.Ok.Body + let body: Operations.ReposListAutolinks.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1943,7 +1943,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.autolink].self, + [Components.Schemas.Autolink].self, from: responseBody, transforming: { value in .json(value) @@ -1971,10 +1971,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)`. - public func repos_sol_create_hyphen_autolink(_ input: Operations.repos_sol_create_hyphen_autolink.Input) async throws -> Operations.repos_sol_create_hyphen_autolink.Output { + public func reposCreateAutolink(_ input: Operations.ReposCreateAutolink.Input) async throws -> Operations.ReposCreateAutolink.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_autolink.id, + forOperation: Operations.ReposCreateAutolink.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/autolinks", @@ -2006,13 +2006,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_autolink.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateAutolink.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_autolink.Output.Created.Body + let body: Operations.ReposCreateAutolink.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2022,7 +2022,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.autolink.self, + Components.Schemas.Autolink.self, from: responseBody, transforming: { value in .json(value) @@ -2037,7 +2037,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2047,7 +2047,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2077,17 +2077,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)`. - public func repos_sol_get_hyphen_autolink(_ input: Operations.repos_sol_get_hyphen_autolink.Input) async throws -> Operations.repos_sol_get_hyphen_autolink.Output { + public func reposGetAutolink(_ input: Operations.ReposGetAutolink.Input) async throws -> Operations.ReposGetAutolink.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_autolink.id, + forOperation: Operations.ReposGetAutolink.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/autolinks/{}", parameters: [ input.path.owner, input.path.repo, - input.path.autolink_id + input.path.autolinkId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2105,7 +2105,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_autolink.Output.Ok.Body + let body: Operations.ReposGetAutolink.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2115,7 +2115,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.autolink.self, + Components.Schemas.Autolink.self, from: responseBody, transforming: { value in .json(value) @@ -2127,7 +2127,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2137,7 +2137,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2167,17 +2167,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)`. - public func repos_sol_delete_hyphen_autolink(_ input: Operations.repos_sol_delete_hyphen_autolink.Input) async throws -> Operations.repos_sol_delete_hyphen_autolink.Output { + public func reposDeleteAutolink(_ input: Operations.ReposDeleteAutolink.Input) async throws -> Operations.ReposDeleteAutolink.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_autolink.id, + forOperation: Operations.ReposDeleteAutolink.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/autolinks/{}", parameters: [ input.path.owner, input.path.repo, - input.path.autolink_id + input.path.autolinkId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2197,7 +2197,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2207,7 +2207,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2235,10 +2235,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)`. - public func repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output { + public func reposCheckAutomatedSecurityFixes(_ input: Operations.ReposCheckAutomatedSecurityFixes.Input) async throws -> Operations.ReposCheckAutomatedSecurityFixes.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.id, + forOperation: Operations.ReposCheckAutomatedSecurityFixes.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/automated-security-fixes", @@ -2262,7 +2262,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.Ok.Body + let body: Operations.ReposCheckAutomatedSecurityFixes.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2272,7 +2272,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.check_hyphen_automated_hyphen_security_hyphen_fixes.self, + Components.Schemas.CheckAutomatedSecurityFixes.self, from: responseBody, transforming: { value in .json(value) @@ -2302,10 +2302,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)`. - public func repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Output { + public func reposEnableAutomatedSecurityFixes(_ input: Operations.ReposEnableAutomatedSecurityFixes.Input) async throws -> Operations.ReposEnableAutomatedSecurityFixes.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.id, + forOperation: Operations.ReposEnableAutomatedSecurityFixes.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/automated-security-fixes", @@ -2343,10 +2343,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)`. - public func repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Output { + public func reposDisableAutomatedSecurityFixes(_ input: Operations.ReposDisableAutomatedSecurityFixes.Input) async throws -> Operations.ReposDisableAutomatedSecurityFixes.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.id, + forOperation: Operations.ReposDisableAutomatedSecurityFixes.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/automated-security-fixes", @@ -2384,10 +2384,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)`. - public func repos_sol_list_hyphen_branches(_ input: Operations.repos_sol_list_hyphen_branches.Input) async throws -> Operations.repos_sol_list_hyphen_branches.Output { + public func reposListBranches(_ input: Operations.ReposListBranches.Input) async throws -> Operations.ReposListBranches.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_branches.id, + forOperation: Operations.ReposListBranches.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches", @@ -2413,7 +2413,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2431,13 +2431,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_branches.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListBranches.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_branches.Output.Ok.Body + let body: Operations.ReposListBranches.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2447,7 +2447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.short_hyphen_branch].self, + [Components.Schemas.ShortBranch].self, from: responseBody, transforming: { value in .json(value) @@ -2462,7 +2462,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2472,7 +2472,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2500,10 +2500,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)`. - public func repos_sol_get_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_branch.Output { + public func reposGetBranch(_ input: Operations.ReposGetBranch.Input) async throws -> Operations.ReposGetBranch.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_branch.id, + forOperation: Operations.ReposGetBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}", @@ -2528,7 +2528,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_branch.Output.Ok.Body + let body: Operations.ReposGetBranch.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2538,7 +2538,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.branch_hyphen_with_hyphen_protection.self, + Components.Schemas.BranchWithProtection.self, from: responseBody, transforming: { value in .json(value) @@ -2550,7 +2550,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2560,7 +2560,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2572,7 +2572,7 @@ public struct Client: APIProtocol { return .movedPermanently(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2582,7 +2582,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2610,10 +2610,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)`. - public func repos_sol_get_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output { + public func reposGetBranchProtection(_ input: Operations.ReposGetBranchProtection.Input) async throws -> Operations.ReposGetBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposGetBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection", @@ -2638,7 +2638,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output.Ok.Body + let body: Operations.ReposGetBranchProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2648,7 +2648,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.branch_hyphen_protection.self, + Components.Schemas.BranchProtection.self, from: responseBody, transforming: { value in .json(value) @@ -2660,7 +2660,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2670,7 +2670,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2706,10 +2706,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)`. - public func repos_sol_update_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output { + public func reposUpdateBranchProtection(_ input: Operations.ReposUpdateBranchProtection.Input) async throws -> Operations.ReposUpdateBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposUpdateBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection", @@ -2743,7 +2743,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output.Ok.Body + let body: Operations.ReposUpdateBranchProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2753,7 +2753,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch.self, + Components.Schemas.ProtectedBranch.self, from: responseBody, transforming: { value in .json(value) @@ -2765,7 +2765,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2775,7 +2775,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2787,7 +2787,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2797,7 +2797,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -2809,7 +2809,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2819,7 +2819,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2847,10 +2847,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)`. - public func repos_sol_delete_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Output { + public func reposDeleteBranchProtection(_ input: Operations.ReposDeleteBranchProtection.Input) async throws -> Operations.ReposDeleteBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposDeleteBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection", @@ -2877,7 +2877,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2887,7 +2887,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2915,10 +2915,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/get(repos/get-admin-branch-protection)`. - public func repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output { + public func reposGetAdminBranchProtection(_ input: Operations.ReposGetAdminBranchProtection.Input) async throws -> Operations.ReposGetAdminBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposGetAdminBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/enforce_admins", @@ -2943,7 +2943,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body + let body: Operations.ReposGetAdminBranchProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2953,7 +2953,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced.self, + Components.Schemas.ProtectedBranchAdminEnforced.self, from: responseBody, transforming: { value in .json(value) @@ -2983,10 +2983,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/post(repos/set-admin-branch-protection)`. - public func repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output { + public func reposSetAdminBranchProtection(_ input: Operations.ReposSetAdminBranchProtection.Input) async throws -> Operations.ReposSetAdminBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposSetAdminBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/enforce_admins", @@ -3011,7 +3011,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body + let body: Operations.ReposSetAdminBranchProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3021,7 +3021,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced.self, + Components.Schemas.ProtectedBranchAdminEnforced.self, from: responseBody, transforming: { value in .json(value) @@ -3051,10 +3051,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)`. - public func repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Output { + public func reposDeleteAdminBranchProtection(_ input: Operations.ReposDeleteAdminBranchProtection.Input) async throws -> Operations.ReposDeleteAdminBranchProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.id, + forOperation: Operations.ReposDeleteAdminBranchProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/enforce_admins", @@ -3081,7 +3081,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3091,7 +3091,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3119,10 +3119,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/get(repos/get-pull-request-review-protection)`. - public func repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { + public func reposGetPullRequestReviewProtection(_ input: Operations.ReposGetPullRequestReviewProtection.Input) async throws -> Operations.ReposGetPullRequestReviewProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.id, + forOperation: Operations.ReposGetPullRequestReviewProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", @@ -3147,7 +3147,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body + let body: Operations.ReposGetPullRequestReviewProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3157,7 +3157,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.self, + Components.Schemas.ProtectedBranchPullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -3190,10 +3190,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)`. - public func repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { + public func reposUpdatePullRequestReviewProtection(_ input: Operations.ReposUpdatePullRequestReviewProtection.Input) async throws -> Operations.ReposUpdatePullRequestReviewProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.id, + forOperation: Operations.ReposUpdatePullRequestReviewProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", @@ -3229,7 +3229,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body + let body: Operations.ReposUpdatePullRequestReviewProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3239,7 +3239,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.self, + Components.Schemas.ProtectedBranchPullRequestReview.self, from: responseBody, transforming: { value in .json(value) @@ -3251,7 +3251,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3261,7 +3261,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3289,10 +3289,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)`. - public func repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { + public func reposDeletePullRequestReviewProtection(_ input: Operations.ReposDeletePullRequestReviewProtection.Input) async throws -> Operations.ReposDeletePullRequestReviewProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.id, + forOperation: Operations.ReposDeletePullRequestReviewProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", @@ -3319,7 +3319,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3329,7 +3329,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3362,10 +3362,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)`. - public func repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output { + public func reposGetCommitSignatureProtection(_ input: Operations.ReposGetCommitSignatureProtection.Input) async throws -> Operations.ReposGetCommitSignatureProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.id, + forOperation: Operations.ReposGetCommitSignatureProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_signatures", @@ -3390,7 +3390,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body + let body: Operations.ReposGetCommitSignatureProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3400,7 +3400,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced.self, + Components.Schemas.ProtectedBranchAdminEnforced.self, from: responseBody, transforming: { value in .json(value) @@ -3412,7 +3412,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3422,7 +3422,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3452,10 +3452,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)`. - public func repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output { + public func reposCreateCommitSignatureProtection(_ input: Operations.ReposCreateCommitSignatureProtection.Input) async throws -> Operations.ReposCreateCommitSignatureProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.id, + forOperation: Operations.ReposCreateCommitSignatureProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_signatures", @@ -3480,7 +3480,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body + let body: Operations.ReposCreateCommitSignatureProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3490,7 +3490,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced.self, + Components.Schemas.ProtectedBranchAdminEnforced.self, from: responseBody, transforming: { value in .json(value) @@ -3502,7 +3502,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3512,7 +3512,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3542,10 +3542,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)`. - public func repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Output { + public func reposDeleteCommitSignatureProtection(_ input: Operations.ReposDeleteCommitSignatureProtection.Input) async throws -> Operations.ReposDeleteCommitSignatureProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.id, + forOperation: Operations.ReposDeleteCommitSignatureProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_signatures", @@ -3572,7 +3572,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3582,7 +3582,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3610,10 +3610,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)`. - public func repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output { + public func reposGetStatusChecksProtection(_ input: Operations.ReposGetStatusChecksProtection.Input) async throws -> Operations.ReposGetStatusChecksProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.id, + forOperation: Operations.ReposGetStatusChecksProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks", @@ -3638,7 +3638,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output.Ok.Body + let body: Operations.ReposGetStatusChecksProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3648,7 +3648,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.status_hyphen_check_hyphen_policy.self, + Components.Schemas.StatusCheckPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -3660,7 +3660,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3670,7 +3670,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3700,10 +3700,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)`. - public func repos_sol_update_hyphen_status_hyphen_check_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output { + public func reposUpdateStatusCheckProtection(_ input: Operations.ReposUpdateStatusCheckProtection.Input) async throws -> Operations.ReposUpdateStatusCheckProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.id, + forOperation: Operations.ReposUpdateStatusCheckProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks", @@ -3739,7 +3739,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output.Ok.Body + let body: Operations.ReposUpdateStatusCheckProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3749,7 +3749,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.status_hyphen_check_hyphen_policy.self, + Components.Schemas.StatusCheckPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -3761,7 +3761,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3771,7 +3771,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3783,7 +3783,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3793,7 +3793,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3821,10 +3821,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)`. - public func repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection(_ input: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Output { + public func reposRemoveStatusCheckProtection(_ input: Operations.ReposRemoveStatusCheckProtection.Input) async throws -> Operations.ReposRemoveStatusCheckProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.id, + forOperation: Operations.ReposRemoveStatusCheckProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks", @@ -3863,10 +3863,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)`. - public func repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output { + public func reposGetAllStatusCheckContexts(_ input: Operations.ReposGetAllStatusCheckContexts.Input) async throws -> Operations.ReposGetAllStatusCheckContexts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.id, + forOperation: Operations.ReposGetAllStatusCheckContexts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", @@ -3891,7 +3891,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + let body: Operations.ReposGetAllStatusCheckContexts.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3913,7 +3913,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3923,7 +3923,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3951,10 +3951,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)`. - public func repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output { + public func reposAddStatusCheckContexts(_ input: Operations.ReposAddStatusCheckContexts.Input) async throws -> Operations.ReposAddStatusCheckContexts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.id, + forOperation: Operations.ReposAddStatusCheckContexts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", @@ -3990,7 +3990,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + let body: Operations.ReposAddStatusCheckContexts.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4012,7 +4012,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4022,7 +4022,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4034,7 +4034,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4044,7 +4044,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4056,7 +4056,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4066,7 +4066,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4094,10 +4094,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)`. - public func repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output { + public func reposSetStatusCheckContexts(_ input: Operations.ReposSetStatusCheckContexts.Input) async throws -> Operations.ReposSetStatusCheckContexts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.id, + forOperation: Operations.ReposSetStatusCheckContexts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", @@ -4133,7 +4133,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + let body: Operations.ReposSetStatusCheckContexts.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4155,7 +4155,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4165,7 +4165,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4177,7 +4177,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4187,7 +4187,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4215,10 +4215,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)`. - public func repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output { + public func reposRemoveStatusCheckContexts(_ input: Operations.ReposRemoveStatusCheckContexts.Input) async throws -> Operations.ReposRemoveStatusCheckContexts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.id, + forOperation: Operations.ReposRemoveStatusCheckContexts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", @@ -4254,7 +4254,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + let body: Operations.ReposRemoveStatusCheckContexts.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4276,7 +4276,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4286,7 +4286,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4298,7 +4298,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4308,7 +4308,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4341,10 +4341,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)`. - public func repos_sol_get_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output { + public func reposGetAccessRestrictions(_ input: Operations.ReposGetAccessRestrictions.Input) async throws -> Operations.ReposGetAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposGetAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions", @@ -4369,7 +4369,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposGetAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4379,7 +4379,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.branch_hyphen_restriction_hyphen_policy.self, + Components.Schemas.BranchRestrictionPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -4391,7 +4391,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4401,7 +4401,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4431,10 +4431,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)`. - public func repos_sol_delete_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Output { + public func reposDeleteAccessRestrictions(_ input: Operations.ReposDeleteAccessRestrictions.Input) async throws -> Operations.ReposDeleteAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposDeleteAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions", @@ -4475,10 +4475,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { + public func reposGetAppsWithAccessToProtectedBranch(_ input: Operations.ReposGetAppsWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetAppsWithAccessToProtectedBranch.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.id, + forOperation: Operations.ReposGetAppsWithAccessToProtectedBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/apps", @@ -4503,7 +4503,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + let body: Operations.ReposGetAppsWithAccessToProtectedBranch.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4513,7 +4513,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.integration].self, + [Components.Schemas.Integration].self, from: responseBody, transforming: { value in .json(value) @@ -4525,7 +4525,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4535,7 +4535,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4565,10 +4565,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)`. - public func repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output { + public func reposAddAppAccessRestrictions(_ input: Operations.ReposAddAppAccessRestrictions.Input) async throws -> Operations.ReposAddAppAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposAddAppAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/apps", @@ -4602,7 +4602,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposAddAppAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4612,7 +4612,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.integration].self, + [Components.Schemas.Integration].self, from: responseBody, transforming: { value in .json(value) @@ -4624,7 +4624,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4634,7 +4634,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4664,10 +4664,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)`. - public func repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output { + public func reposSetAppAccessRestrictions(_ input: Operations.ReposSetAppAccessRestrictions.Input) async throws -> Operations.ReposSetAppAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposSetAppAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/apps", @@ -4701,7 +4701,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposSetAppAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4711,7 +4711,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.integration].self, + [Components.Schemas.Integration].self, from: responseBody, transforming: { value in .json(value) @@ -4723,7 +4723,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4733,7 +4733,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4763,10 +4763,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)`. - public func repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output { + public func reposRemoveAppAccessRestrictions(_ input: Operations.ReposRemoveAppAccessRestrictions.Input) async throws -> Operations.ReposRemoveAppAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposRemoveAppAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/apps", @@ -4800,7 +4800,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposRemoveAppAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4810,7 +4810,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.integration].self, + [Components.Schemas.Integration].self, from: responseBody, transforming: { value in .json(value) @@ -4822,7 +4822,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4832,7 +4832,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4862,10 +4862,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { + public func reposGetTeamsWithAccessToProtectedBranch(_ input: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetTeamsWithAccessToProtectedBranch.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.id, + forOperation: Operations.ReposGetTeamsWithAccessToProtectedBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/teams", @@ -4890,7 +4890,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + let body: Operations.ReposGetTeamsWithAccessToProtectedBranch.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4900,7 +4900,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -4912,7 +4912,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4922,7 +4922,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4952,10 +4952,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)`. - public func repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output { + public func reposAddTeamAccessRestrictions(_ input: Operations.ReposAddTeamAccessRestrictions.Input) async throws -> Operations.ReposAddTeamAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposAddTeamAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/teams", @@ -4991,7 +4991,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposAddTeamAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5001,7 +5001,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -5013,7 +5013,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5023,7 +5023,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5053,10 +5053,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)`. - public func repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output { + public func reposSetTeamAccessRestrictions(_ input: Operations.ReposSetTeamAccessRestrictions.Input) async throws -> Operations.ReposSetTeamAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposSetTeamAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/teams", @@ -5092,7 +5092,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposSetTeamAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5102,7 +5102,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -5114,7 +5114,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5124,7 +5124,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5154,10 +5154,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)`. - public func repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output { + public func reposRemoveTeamAccessRestrictions(_ input: Operations.ReposRemoveTeamAccessRestrictions.Input) async throws -> Operations.ReposRemoveTeamAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposRemoveTeamAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/teams", @@ -5193,7 +5193,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposRemoveTeamAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5203,7 +5203,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -5215,7 +5215,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5225,7 +5225,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5255,10 +5255,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { + public func reposGetUsersWithAccessToProtectedBranch(_ input: Operations.ReposGetUsersWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetUsersWithAccessToProtectedBranch.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.id, + forOperation: Operations.ReposGetUsersWithAccessToProtectedBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/users", @@ -5283,7 +5283,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + let body: Operations.ReposGetUsersWithAccessToProtectedBranch.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5293,7 +5293,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -5305,7 +5305,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5315,7 +5315,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5349,10 +5349,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)`. - public func repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output { + public func reposAddUserAccessRestrictions(_ input: Operations.ReposAddUserAccessRestrictions.Input) async throws -> Operations.ReposAddUserAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposAddUserAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/users", @@ -5386,7 +5386,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposAddUserAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5396,7 +5396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -5408,7 +5408,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5418,7 +5418,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5452,10 +5452,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)`. - public func repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output { + public func reposSetUserAccessRestrictions(_ input: Operations.ReposSetUserAccessRestrictions.Input) async throws -> Operations.ReposSetUserAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposSetUserAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/users", @@ -5489,7 +5489,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposSetUserAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5499,7 +5499,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -5511,7 +5511,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5521,7 +5521,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5555,10 +5555,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)`. - public func repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output { + public func reposRemoveUserAccessRestrictions(_ input: Operations.ReposRemoveUserAccessRestrictions.Input) async throws -> Operations.ReposRemoveUserAccessRestrictions.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.id, + forOperation: Operations.ReposRemoveUserAccessRestrictions.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/protection/restrictions/users", @@ -5592,7 +5592,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + let body: Operations.ReposRemoveUserAccessRestrictions.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5602,7 +5602,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -5614,7 +5614,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5624,7 +5624,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5659,10 +5659,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/rename`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)`. - public func repos_sol_rename_hyphen_branch(_ input: Operations.repos_sol_rename_hyphen_branch.Input) async throws -> Operations.repos_sol_rename_hyphen_branch.Output { + public func reposRenameBranch(_ input: Operations.ReposRenameBranch.Input) async throws -> Operations.ReposRenameBranch.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_rename_hyphen_branch.id, + forOperation: Operations.ReposRenameBranch.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/branches/{}/rename", @@ -5696,7 +5696,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_rename_hyphen_branch.Output.Created.Body + let body: Operations.ReposRenameBranch.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5706,7 +5706,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.branch_hyphen_with_hyphen_protection.self, + Components.Schemas.BranchWithProtection.self, from: responseBody, transforming: { value in .json(value) @@ -5718,7 +5718,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5728,7 +5728,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5740,7 +5740,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5750,7 +5750,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5762,7 +5762,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5772,7 +5772,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5804,10 +5804,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codeowners/errors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)`. - public func repos_sol_codeowners_hyphen_errors(_ input: Operations.repos_sol_codeowners_hyphen_errors.Input) async throws -> Operations.repos_sol_codeowners_hyphen_errors.Output { + public func reposCodeownersErrors(_ input: Operations.ReposCodeownersErrors.Input) async throws -> Operations.ReposCodeownersErrors.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_codeowners_hyphen_errors.id, + forOperation: Operations.ReposCodeownersErrors.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codeowners/errors", @@ -5838,7 +5838,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_codeowners_hyphen_errors.Output.Ok.Body + let body: Operations.ReposCodeownersErrors.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5848,7 +5848,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codeowners_hyphen_errors.self, + Components.Schemas.CodeownersErrors.self, from: responseBody, transforming: { value in .json(value) @@ -5885,10 +5885,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)`. - public func repos_sol_list_hyphen_collaborators(_ input: Operations.repos_sol_list_hyphen_collaborators.Input) async throws -> Operations.repos_sol_list_hyphen_collaborators.Output { + public func reposListCollaborators(_ input: Operations.ReposListCollaborators.Input) async throws -> Operations.ReposListCollaborators.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_collaborators.id, + forOperation: Operations.ReposListCollaborators.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/collaborators", @@ -5921,7 +5921,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5939,13 +5939,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListCollaborators.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Body + let body: Operations.ReposListCollaborators.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5955,7 +5955,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.collaborator].self, + [Components.Schemas.Collaborator].self, from: responseBody, transforming: { value in .json(value) @@ -5970,7 +5970,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5980,7 +5980,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6014,10 +6014,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)`. - public func repos_sol_check_hyphen_collaborator(_ input: Operations.repos_sol_check_hyphen_collaborator.Input) async throws -> Operations.repos_sol_check_hyphen_collaborator.Output { + public func reposCheckCollaborator(_ input: Operations.ReposCheckCollaborator.Input) async throws -> Operations.ReposCheckCollaborator.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_check_hyphen_collaborator.id, + forOperation: Operations.ReposCheckCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/collaborators/{}", @@ -6078,10 +6078,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)`. - public func repos_sol_add_hyphen_collaborator(_ input: Operations.repos_sol_add_hyphen_collaborator.Input) async throws -> Operations.repos_sol_add_hyphen_collaborator.Output { + public func reposAddCollaborator(_ input: Operations.ReposAddCollaborator.Input) async throws -> Operations.ReposAddCollaborator.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_add_hyphen_collaborator.id, + forOperation: Operations.ReposAddCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/collaborators/{}", @@ -6117,7 +6117,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_add_hyphen_collaborator.Output.Created.Body + let body: Operations.ReposAddCollaborator.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6127,7 +6127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_invitation.self, + Components.Schemas.RepositoryInvitation.self, from: responseBody, transforming: { value in .json(value) @@ -6141,7 +6141,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6151,7 +6151,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -6163,7 +6163,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6173,7 +6173,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6222,10 +6222,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)`. - public func repos_sol_remove_hyphen_collaborator(_ input: Operations.repos_sol_remove_hyphen_collaborator.Input) async throws -> Operations.repos_sol_remove_hyphen_collaborator.Output { + public func reposRemoveCollaborator(_ input: Operations.ReposRemoveCollaborator.Input) async throws -> Operations.ReposRemoveCollaborator.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_remove_hyphen_collaborator.id, + forOperation: Operations.ReposRemoveCollaborator.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/collaborators/{}", @@ -6252,7 +6252,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6262,7 +6262,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -6274,7 +6274,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6284,7 +6284,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6318,10 +6318,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)`. - public func repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level(_ input: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input) async throws -> Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output { + public func reposGetCollaboratorPermissionLevel(_ input: Operations.ReposGetCollaboratorPermissionLevel.Input) async throws -> Operations.ReposGetCollaboratorPermissionLevel.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.id, + forOperation: Operations.ReposGetCollaboratorPermissionLevel.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/collaborators/{}/permission", @@ -6346,7 +6346,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output.Ok.Body + let body: Operations.ReposGetCollaboratorPermissionLevel.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6356,7 +6356,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_collaborator_hyphen_permission.self, + Components.Schemas.RepositoryCollaboratorPermission.self, from: responseBody, transforming: { value in .json(value) @@ -6368,7 +6368,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6378,7 +6378,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6413,10 +6413,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/get(repos/list-commit-comments-for-repo)`. - public func repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output { + public func reposListCommitCommentsForRepo(_ input: Operations.ReposListCommitCommentsForRepo.Input) async throws -> Operations.ReposListCommitCommentsForRepo.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.id, + forOperation: Operations.ReposListCommitCommentsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments", @@ -6435,7 +6435,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -6453,13 +6453,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListCommitCommentsForRepo.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ReposListCommitCommentsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6469,7 +6469,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.commit_hyphen_comment].self, + [Components.Schemas.CommitComment].self, from: responseBody, transforming: { value in .json(value) @@ -6507,17 +6507,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)`. - public func repos_sol_get_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output { + public func reposGetCommitComment(_ input: Operations.ReposGetCommitComment.Input) async throws -> Operations.ReposGetCommitComment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReposGetCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6535,7 +6535,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output.Ok.Body + let body: Operations.ReposGetCommitComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6545,7 +6545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit_hyphen_comment.self, + Components.Schemas.CommitComment.self, from: responseBody, transforming: { value in .json(value) @@ -6557,7 +6557,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6567,7 +6567,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6602,17 +6602,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)`. - public func repos_sol_update_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output { + public func reposUpdateCommitComment(_ input: Operations.ReposUpdateCommitComment.Input) async throws -> Operations.ReposUpdateCommitComment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReposUpdateCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6639,7 +6639,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output.Ok.Body + let body: Operations.ReposUpdateCommitComment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6649,7 +6649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit_hyphen_comment.self, + Components.Schemas.CommitComment.self, from: responseBody, transforming: { value in .json(value) @@ -6661,7 +6661,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6671,7 +6671,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6699,17 +6699,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)`. - public func repos_sol_delete_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Output { + public func reposDeleteCommitComment(_ input: Operations.ReposDeleteCommitComment.Input) async throws -> Operations.ReposDeleteCommitComment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReposDeleteCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/comments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.comment_id + input.path.commentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6729,7 +6729,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6739,7 +6739,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6795,10 +6795,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)`. - public func repos_sol_list_hyphen_commits(_ input: Operations.repos_sol_list_hyphen_commits.Input) async throws -> Operations.repos_sol_list_hyphen_commits.Output { + public func reposListCommits(_ input: Operations.ReposListCommits.Input) async throws -> Operations.ReposListCommits.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_commits.id, + forOperation: Operations.ReposListCommits.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits", @@ -6859,7 +6859,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -6877,13 +6877,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_commits.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListCommits.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_commits.Output.Ok.Body + let body: Operations.ReposListCommits.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6893,7 +6893,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.commit].self, + [Components.Schemas.Commit].self, from: responseBody, transforming: { value in .json(value) @@ -6908,7 +6908,7 @@ public struct Client: APIProtocol { )) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6918,7 +6918,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6930,7 +6930,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6941,7 +6941,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6949,10 +6949,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -6961,7 +6961,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6971,7 +6971,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6983,7 +6983,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6993,7 +6993,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7023,17 +7023,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)`. - public func repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output { + public func reposListBranchesForHeadCommit(_ input: Operations.ReposListBranchesForHeadCommit.Input) async throws -> Operations.ReposListBranchesForHeadCommit.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.id, + forOperation: Operations.ReposListBranchesForHeadCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/branches-where-head", parameters: [ input.path.owner, input.path.repo, - input.path.commit_sha + input.path.commitSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7051,7 +7051,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output.Ok.Body + let body: Operations.ReposListBranchesForHeadCommit.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7061,7 +7061,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.branch_hyphen_short].self, + [Components.Schemas.BranchShort].self, from: responseBody, transforming: { value in .json(value) @@ -7073,7 +7073,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7083,7 +7083,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -7095,7 +7095,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7105,7 +7105,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7140,17 +7140,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/get(repos/list-comments-for-commit)`. - public func repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output { + public func reposListCommentsForCommit(_ input: Operations.ReposListCommentsForCommit.Input) async throws -> Operations.ReposListCommentsForCommit.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.id, + forOperation: Operations.ReposListCommentsForCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.commit_sha + input.path.commitSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7163,7 +7163,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7181,13 +7181,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListCommentsForCommit.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Body + let body: Operations.ReposListCommentsForCommit.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7197,7 +7197,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.commit_hyphen_comment].self, + [Components.Schemas.CommitComment].self, from: responseBody, transforming: { value in .json(value) @@ -7237,17 +7237,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)`. - public func repos_sol_create_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output { + public func reposCreateCommitComment(_ input: Operations.ReposCreateCommitComment.Input) async throws -> Operations.ReposCreateCommitComment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_commit_hyphen_comment.id, + forOperation: Operations.ReposCreateCommitComment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/comments", parameters: [ input.path.owner, input.path.repo, - input.path.commit_sha + input.path.commitSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7273,13 +7273,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateCommitComment.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Body + let body: Operations.ReposCreateCommitComment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7289,7 +7289,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit_hyphen_comment.self, + Components.Schemas.CommitComment.self, from: responseBody, transforming: { value in .json(value) @@ -7304,7 +7304,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7314,7 +7314,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7326,7 +7326,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7336,7 +7336,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -7366,17 +7366,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)`. - public func repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output { + public func reposListPullRequestsAssociatedWithCommit(_ input: Operations.ReposListPullRequestsAssociatedWithCommit.Input) async throws -> Operations.ReposListPullRequestsAssociatedWithCommit.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.id, + forOperation: Operations.ReposListPullRequestsAssociatedWithCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/pulls", parameters: [ input.path.owner, input.path.repo, - input.path.commit_sha + input.path.commitSha ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -7389,7 +7389,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7407,13 +7407,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Body + let body: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7423,7 +7423,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.pull_hyphen_request_hyphen_simple].self, + [Components.Schemas.PullRequestSimple].self, from: responseBody, transforming: { value in .json(value) @@ -7438,7 +7438,7 @@ public struct Client: APIProtocol { )) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7448,7 +7448,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7515,10 +7515,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)`. - public func repos_sol_get_hyphen_commit(_ input: Operations.repos_sol_get_hyphen_commit.Input) async throws -> Operations.repos_sol_get_hyphen_commit.Output { + public func reposGetCommit(_ input: Operations.ReposGetCommit.Input) async throws -> Operations.ReposGetCommit.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_commit.id, + forOperation: Operations.ReposGetCommit.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}", @@ -7545,7 +7545,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -7557,7 +7557,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_commit.Output.Ok.Body + let body: Operations.ReposGetCommit.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7567,7 +7567,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit.self, + Components.Schemas.Commit.self, from: responseBody, transforming: { value in .json(value) @@ -7579,7 +7579,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7589,7 +7589,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -7601,7 +7601,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7611,7 +7611,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7623,7 +7623,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7633,7 +7633,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7645,7 +7645,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7655,7 +7655,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -7667,7 +7667,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7677,7 +7677,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7712,10 +7712,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/status`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)`. - public func repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref(_ input: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input) async throws -> Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output { + public func reposGetCombinedStatusForRef(_ input: Operations.ReposGetCombinedStatusForRef.Input) async throws -> Operations.ReposGetCombinedStatusForRef.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.id, + forOperation: Operations.ReposGetCombinedStatusForRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/status", @@ -7735,7 +7735,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7754,7 +7754,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output.Ok.Body + let body: Operations.ReposGetCombinedStatusForRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7764,7 +7764,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.combined_hyphen_commit_hyphen_status.self, + Components.Schemas.CombinedCommitStatus.self, from: responseBody, transforming: { value in .json(value) @@ -7776,7 +7776,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7786,7 +7786,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7816,10 +7816,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)`. - public func repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref(_ input: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output { + public func reposListCommitStatusesForRef(_ input: Operations.ReposListCommitStatusesForRef.Input) async throws -> Operations.ReposListCommitStatusesForRef.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.id, + forOperation: Operations.ReposListCommitStatusesForRef.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/commits/{}/statuses", @@ -7839,7 +7839,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -7857,13 +7857,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListCommitStatusesForRef.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Body + let body: Operations.ReposListCommitStatusesForRef.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7873,7 +7873,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.status].self, + [Components.Schemas.Status].self, from: responseBody, transforming: { value in .json(value) @@ -7888,7 +7888,7 @@ public struct Client: APIProtocol { )) case 301: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.moved_permanently.Body + let body: Components.Responses.MovedPermanently.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7898,7 +7898,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -7936,10 +7936,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/community/profile`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/community/profile/get(repos/get-community-profile-metrics)`. - public func repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics(_ input: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input) async throws -> Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output { + public func reposGetCommunityProfileMetrics(_ input: Operations.ReposGetCommunityProfileMetrics.Input) async throws -> Operations.ReposGetCommunityProfileMetrics.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.id, + forOperation: Operations.ReposGetCommunityProfileMetrics.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/community/profile", @@ -7963,7 +7963,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output.Ok.Body + let body: Operations.ReposGetCommunityProfileMetrics.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -7973,7 +7973,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.community_hyphen_profile.self, + Components.Schemas.CommunityProfile.self, from: responseBody, transforming: { value in .json(value) @@ -8051,10 +8051,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)`. - public func repos_sol_compare_hyphen_commits(_ input: Operations.repos_sol_compare_hyphen_commits.Input) async throws -> Operations.repos_sol_compare_hyphen_commits.Output { + public func reposCompareCommits(_ input: Operations.ReposCompareCommits.Input) async throws -> Operations.ReposCompareCommits.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_compare_hyphen_commits.id, + forOperation: Operations.ReposCompareCommits.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/compare/{}", @@ -8081,7 +8081,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -8093,7 +8093,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_compare_hyphen_commits.Output.Ok.Body + let body: Operations.ReposCompareCommits.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8103,7 +8103,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit_hyphen_comparison.self, + Components.Schemas.CommitComparison.self, from: responseBody, transforming: { value in .json(value) @@ -8115,7 +8115,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8125,7 +8125,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8137,7 +8137,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8147,7 +8147,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8159,7 +8159,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8169,7 +8169,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8221,10 +8221,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)`. - public func repos_sol_get_hyphen_content(_ input: Operations.repos_sol_get_hyphen_content.Input) async throws -> Operations.repos_sol_get_hyphen_content.Output { + public func reposGetContent(_ input: Operations.ReposGetContent.Input) async throws -> Operations.ReposGetContent.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_content.id, + forOperation: Operations.ReposGetContent.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/contents/{}", @@ -8256,7 +8256,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_content.Output.Ok.Body + let body: Operations.ReposGetContent.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8269,7 +8269,7 @@ public struct Client: APIProtocol { OpenAPIRuntime.HTTPBody.self, from: responseBody, transforming: { value in - .application_vnd_period_github_period_object(value) + .applicationVnd_github_object(value) } ) default: @@ -8278,7 +8278,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8288,7 +8288,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8300,7 +8300,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8310,7 +8310,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8347,10 +8347,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output { + public func reposCreateOrUpdateFileContents(_ input: Operations.ReposCreateOrUpdateFileContents.Input) async throws -> Operations.ReposCreateOrUpdateFileContents.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.id, + forOperation: Operations.ReposCreateOrUpdateFileContents.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/contents/{}", @@ -8384,7 +8384,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Ok.Body + let body: Operations.ReposCreateOrUpdateFileContents.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8394,7 +8394,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.file_hyphen_commit.self, + Components.Schemas.FileCommit.self, from: responseBody, transforming: { value in .json(value) @@ -8406,7 +8406,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Created.Body + let body: Operations.ReposCreateOrUpdateFileContents.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8416,7 +8416,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.file_hyphen_commit.self, + Components.Schemas.FileCommit.self, from: responseBody, transforming: { value in .json(value) @@ -8428,7 +8428,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8438,7 +8438,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8450,7 +8450,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8460,7 +8460,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -8472,7 +8472,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body + let body: Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8482,7 +8482,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body.jsonPayload.self, + Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8519,10 +8519,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)`. - public func repos_sol_delete_hyphen_file(_ input: Operations.repos_sol_delete_hyphen_file.Input) async throws -> Operations.repos_sol_delete_hyphen_file.Output { + public func reposDeleteFile(_ input: Operations.ReposDeleteFile.Input) async throws -> Operations.ReposDeleteFile.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_file.id, + forOperation: Operations.ReposDeleteFile.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/contents/{}", @@ -8556,7 +8556,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_delete_hyphen_file.Output.Ok.Body + let body: Operations.ReposDeleteFile.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8566,7 +8566,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.file_hyphen_commit.self, + Components.Schemas.FileCommit.self, from: responseBody, transforming: { value in .json(value) @@ -8578,7 +8578,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8588,7 +8588,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -8600,7 +8600,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8610,7 +8610,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8622,7 +8622,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8632,7 +8632,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8644,7 +8644,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8654,7 +8654,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -8684,10 +8684,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)`. - public func repos_sol_list_hyphen_contributors(_ input: Operations.repos_sol_list_hyphen_contributors.Input) async throws -> Operations.repos_sol_list_hyphen_contributors.Output { + public func reposListContributors(_ input: Operations.ReposListContributors.Input) async throws -> Operations.ReposListContributors.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_contributors.id, + forOperation: Operations.ReposListContributors.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/contributors", @@ -8713,7 +8713,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8731,13 +8731,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListContributors.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Body + let body: Operations.ReposListContributors.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8747,7 +8747,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.contributor].self, + [Components.Schemas.Contributor].self, from: responseBody, transforming: { value in .json(value) @@ -8764,7 +8764,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8774,7 +8774,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8786,7 +8786,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8796,7 +8796,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -8824,10 +8824,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/get(repos/list-deployments)`. - public func repos_sol_list_hyphen_deployments(_ input: Operations.repos_sol_list_hyphen_deployments.Input) async throws -> Operations.repos_sol_list_hyphen_deployments.Output { + public func reposListDeployments(_ input: Operations.ReposListDeployments.Input) async throws -> Operations.ReposListDeployments.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_deployments.id, + forOperation: Operations.ReposListDeployments.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments", @@ -8874,7 +8874,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -8892,13 +8892,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListDeployments.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Body + let body: Operations.ReposListDeployments.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -8908,7 +8908,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.deployment].self, + [Components.Schemas.Deployment].self, from: responseBody, transforming: { value in .json(value) @@ -8986,10 +8986,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)`. - public func repos_sol_create_hyphen_deployment(_ input: Operations.repos_sol_create_hyphen_deployment.Input) async throws -> Operations.repos_sol_create_hyphen_deployment.Output { + public func reposCreateDeployment(_ input: Operations.ReposCreateDeployment.Input) async throws -> Operations.ReposCreateDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_deployment.id, + forOperation: Operations.ReposCreateDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments", @@ -9022,7 +9022,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deployment.Output.Created.Body + let body: Operations.ReposCreateDeployment.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9032,7 +9032,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment.self, + Components.Schemas.Deployment.self, from: responseBody, transforming: { value in .json(value) @@ -9044,7 +9044,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body + let body: Operations.ReposCreateDeployment.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9054,7 +9054,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body.jsonPayload.self, + Operations.ReposCreateDeployment.Output.Accepted.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -9068,7 +9068,7 @@ public struct Client: APIProtocol { return .conflict(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9078,7 +9078,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -9106,17 +9106,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)`. - public func repos_sol_get_hyphen_deployment(_ input: Operations.repos_sol_get_hyphen_deployment.Input) async throws -> Operations.repos_sol_get_hyphen_deployment.Output { + public func reposGetDeployment(_ input: Operations.ReposGetDeployment.Input) async throws -> Operations.ReposGetDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_deployment.id, + forOperation: Operations.ReposGetDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.deployment_id + input.path.deploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9134,7 +9134,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_deployment.Output.Ok.Body + let body: Operations.ReposGetDeployment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9144,7 +9144,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment.self, + Components.Schemas.Deployment.self, from: responseBody, transforming: { value in .json(value) @@ -9156,7 +9156,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9166,7 +9166,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9203,17 +9203,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)`. - public func repos_sol_delete_hyphen_deployment(_ input: Operations.repos_sol_delete_hyphen_deployment.Input) async throws -> Operations.repos_sol_delete_hyphen_deployment.Output { + public func reposDeleteDeployment(_ input: Operations.ReposDeleteDeployment.Input) async throws -> Operations.ReposDeleteDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_deployment.id, + forOperation: Operations.ReposDeleteDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.deployment_id + input.path.deploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9233,7 +9233,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9243,7 +9243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9255,7 +9255,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9265,7 +9265,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -9293,17 +9293,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)`. - public func repos_sol_list_hyphen_deployment_hyphen_statuses(_ input: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output { + public func reposListDeploymentStatuses(_ input: Operations.ReposListDeploymentStatuses.Input) async throws -> Operations.ReposListDeploymentStatuses.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.id, + forOperation: Operations.ReposListDeploymentStatuses.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments/{}/statuses", parameters: [ input.path.owner, input.path.repo, - input.path.deployment_id + input.path.deploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9316,7 +9316,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -9334,13 +9334,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListDeploymentStatuses.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Body + let body: Operations.ReposListDeploymentStatuses.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9350,7 +9350,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.deployment_hyphen_status].self, + [Components.Schemas.DeploymentStatus].self, from: responseBody, transforming: { value in .json(value) @@ -9365,7 +9365,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9375,7 +9375,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9405,17 +9405,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)`. - public func repos_sol_create_hyphen_deployment_hyphen_status(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output { + public func reposCreateDeploymentStatus(_ input: Operations.ReposCreateDeploymentStatus.Input) async throws -> Operations.ReposCreateDeploymentStatus.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_deployment_hyphen_status.id, + forOperation: Operations.ReposCreateDeploymentStatus.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments/{}/statuses", parameters: [ input.path.owner, input.path.repo, - input.path.deployment_id + input.path.deploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9441,13 +9441,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateDeploymentStatus.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Body + let body: Operations.ReposCreateDeploymentStatus.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9457,7 +9457,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_status.self, + Components.Schemas.DeploymentStatus.self, from: responseBody, transforming: { value in .json(value) @@ -9472,7 +9472,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9482,7 +9482,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -9510,18 +9510,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)`. - public func repos_sol_get_hyphen_deployment_hyphen_status(_ input: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output { + public func reposGetDeploymentStatus(_ input: Operations.ReposGetDeploymentStatus.Input) async throws -> Operations.ReposGetDeploymentStatus.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_deployment_hyphen_status.id, + forOperation: Operations.ReposGetDeploymentStatus.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/deployments/{}/statuses/{}", parameters: [ input.path.owner, input.path.repo, - input.path.deployment_id, - input.path.status_id + input.path.deploymentId, + input.path.statusId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9539,7 +9539,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output.Ok.Body + let body: Operations.ReposGetDeploymentStatus.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9549,7 +9549,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_status.self, + Components.Schemas.DeploymentStatus.self, from: responseBody, transforming: { value in .json(value) @@ -9561,7 +9561,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9571,7 +9571,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9605,10 +9605,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)`. - public func repos_sol_create_hyphen_dispatch_hyphen_event(_ input: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input) async throws -> Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Output { + public func reposCreateDispatchEvent(_ input: Operations.ReposCreateDispatchEvent.Input) async throws -> Operations.ReposCreateDispatchEvent.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.id, + forOperation: Operations.ReposCreateDispatchEvent.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/dispatches", @@ -9643,7 +9643,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9653,7 +9653,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9665,7 +9665,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9675,7 +9675,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -9707,10 +9707,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/get(repos/get-all-environments)`. - public func repos_sol_get_hyphen_all_hyphen_environments(_ input: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_environments.Output { + public func reposGetAllEnvironments(_ input: Operations.ReposGetAllEnvironments.Input) async throws -> Operations.ReposGetAllEnvironments.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_all_hyphen_environments.id, + forOperation: Operations.ReposGetAllEnvironments.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments", @@ -9729,7 +9729,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -9748,7 +9748,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body + let body: Operations.ReposGetAllEnvironments.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9758,7 +9758,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body.jsonPayload.self, + Operations.ReposGetAllEnvironments.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -9791,17 +9791,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/get(repos/get-environment)`. - public func repos_sol_get_hyphen_environment(_ input: Operations.repos_sol_get_hyphen_environment.Input) async throws -> Operations.repos_sol_get_hyphen_environment.Output { + public func reposGetEnvironment(_ input: Operations.ReposGetEnvironment.Input) async throws -> Operations.ReposGetEnvironment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_environment.id, + forOperation: Operations.ReposGetEnvironment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9819,7 +9819,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_environment.Output.Ok.Body + let body: Operations.ReposGetEnvironment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9829,7 +9829,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.environment.self, + Components.Schemas.Environment.self, from: responseBody, transforming: { value in .json(value) @@ -9865,17 +9865,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_environment(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output { + public func reposCreateOrUpdateEnvironment(_ input: Operations.ReposCreateOrUpdateEnvironment.Input) async throws -> Operations.ReposCreateOrUpdateEnvironment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.id, + forOperation: Operations.ReposCreateOrUpdateEnvironment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -9904,7 +9904,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.Ok.Body + let body: Operations.ReposCreateOrUpdateEnvironment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9914,7 +9914,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.environment.self, + Components.Schemas.Environment.self, from: responseBody, transforming: { value in .json(value) @@ -9926,7 +9926,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.UnprocessableContent.Body + let body: Operations.ReposCreateOrUpdateEnvironment.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -9936,7 +9936,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -9964,17 +9964,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)`. - public func repos_sol_delete_hyphen_an_hyphen_environment(_ input: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input) async throws -> Operations.repos_sol_delete_hyphen_an_hyphen_environment.Output { + public func reposDeleteAnEnvironment(_ input: Operations.ReposDeleteAnEnvironment.Input) async throws -> Operations.ReposDeleteAnEnvironment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_an_hyphen_environment.id, + forOperation: Operations.ReposDeleteAnEnvironment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10010,17 +10010,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/get(repos/list-deployment-branch-policies)`. - public func repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies(_ input: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output { + public func reposListDeploymentBranchPolicies(_ input: Operations.ReposListDeploymentBranchPolicies.Input) async throws -> Operations.ReposListDeploymentBranchPolicies.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.id, + forOperation: Operations.ReposListDeploymentBranchPolicies.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment-branch-policies", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10033,7 +10033,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -10052,7 +10052,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body + let body: Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10062,7 +10062,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body.jsonPayload.self, + Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10092,17 +10092,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)`. - public func repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output { + public func reposCreateDeploymentBranchPolicy(_ input: Operations.ReposCreateDeploymentBranchPolicy.Input) async throws -> Operations.ReposCreateDeploymentBranchPolicy.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.id, + forOperation: Operations.ReposCreateDeploymentBranchPolicy.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment-branch-policies", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10129,7 +10129,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + let body: Operations.ReposCreateDeploymentBranchPolicy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10139,7 +10139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_branch_hyphen_policy.self, + Components.Schemas.DeploymentBranchPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -10175,18 +10175,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/get(repos/get-deployment-branch-policy)`. - public func repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output { + public func reposGetDeploymentBranchPolicy(_ input: Operations.ReposGetDeploymentBranchPolicy.Input) async throws -> Operations.ReposGetDeploymentBranchPolicy.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.id, + forOperation: Operations.ReposGetDeploymentBranchPolicy.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment-branch-policies/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.branch_policy_id + input.path.environmentName, + input.path.branchPolicyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10204,7 +10204,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + let body: Operations.ReposGetDeploymentBranchPolicy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10214,7 +10214,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_branch_hyphen_policy.self, + Components.Schemas.DeploymentBranchPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -10244,18 +10244,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/put(repos/update-deployment-branch-policy)`. - public func repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output { + public func reposUpdateDeploymentBranchPolicy(_ input: Operations.ReposUpdateDeploymentBranchPolicy.Input) async throws -> Operations.ReposUpdateDeploymentBranchPolicy.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.id, + forOperation: Operations.ReposUpdateDeploymentBranchPolicy.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment-branch-policies/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.branch_policy_id + input.path.environmentName, + input.path.branchPolicyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10282,7 +10282,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + let body: Operations.ReposUpdateDeploymentBranchPolicy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10292,7 +10292,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_branch_hyphen_policy.self, + Components.Schemas.DeploymentBranchPolicy.self, from: responseBody, transforming: { value in .json(value) @@ -10322,18 +10322,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)`. - public func repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Output { + public func reposDeleteDeploymentBranchPolicy(_ input: Operations.ReposDeleteDeploymentBranchPolicy.Input) async throws -> Operations.ReposDeleteDeploymentBranchPolicy.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.id, + forOperation: Operations.ReposDeleteDeploymentBranchPolicy.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment-branch-policies/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.branch_policy_id + input.path.environmentName, + input.path.branchPolicyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10369,17 +10369,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/get(repos/get-all-deployment-protection-rules)`. - public func repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules(_ input: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output { + public func reposGetAllDeploymentProtectionRules(_ input: Operations.ReposGetAllDeploymentProtectionRules.Input) async throws -> Operations.ReposGetAllDeploymentProtectionRules.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.id, + forOperation: Operations.ReposGetAllDeploymentProtectionRules.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment_protection_rules", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10397,7 +10397,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body + let body: Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10407,7 +10407,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body.jsonPayload.self, + Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10441,17 +10441,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/post(repos/create-deployment-protection-rule)`. - public func repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output { + public func reposCreateDeploymentProtectionRule(_ input: Operations.ReposCreateDeploymentProtectionRule.Input) async throws -> Operations.ReposCreateDeploymentProtectionRule.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.id, + forOperation: Operations.ReposCreateDeploymentProtectionRule.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment_protection_rules", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10478,7 +10478,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Created.Body + let body: Operations.ReposCreateDeploymentProtectionRule.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10488,7 +10488,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_protection_hyphen_rule.self, + Components.Schemas.DeploymentProtectionRule.self, from: responseBody, transforming: { value in .json(value) @@ -10524,17 +10524,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/get(repos/list-custom-deployment-rule-integrations)`. - public func repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations(_ input: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input) async throws -> Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output { + public func reposListCustomDeploymentRuleIntegrations(_ input: Operations.ReposListCustomDeploymentRuleIntegrations.Input) async throws -> Operations.ReposListCustomDeploymentRuleIntegrations.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.id, + forOperation: Operations.ReposListCustomDeploymentRuleIntegrations.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment_protection_rules/apps", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name + input.path.environmentName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10554,7 +10554,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -10566,7 +10566,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body + let body: Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10576,7 +10576,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body.jsonPayload.self, + Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -10608,18 +10608,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/get(repos/get-custom-deployment-protection-rule)`. - public func repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output { + public func reposGetCustomDeploymentProtectionRule(_ input: Operations.ReposGetCustomDeploymentProtectionRule.Input) async throws -> Operations.ReposGetCustomDeploymentProtectionRule.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.id, + forOperation: Operations.ReposGetCustomDeploymentProtectionRule.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment_protection_rules/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.protection_rule_id + input.path.environmentName, + input.path.protectionRuleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10637,7 +10637,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Ok.Body + let body: Operations.ReposGetCustomDeploymentProtectionRule.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10647,7 +10647,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deployment_hyphen_protection_hyphen_rule.self, + Components.Schemas.DeploymentProtectionRule.self, from: responseBody, transforming: { value in .json(value) @@ -10679,18 +10679,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)`. - public func repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Output { + public func reposDisableDeploymentProtectionRule(_ input: Operations.ReposDisableDeploymentProtectionRule.Input) async throws -> Operations.ReposDisableDeploymentProtectionRule.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.id, + forOperation: Operations.ReposDisableDeploymentProtectionRule.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/environments/{}/deployment_protection_rules/{}", parameters: [ input.path.owner, input.path.repo, - input.path.environment_name, - input.path.protection_rule_id + input.path.environmentName, + input.path.protectionRuleId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -10722,10 +10722,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)`. - public func repos_sol_list_hyphen_forks(_ input: Operations.repos_sol_list_hyphen_forks.Input) async throws -> Operations.repos_sol_list_hyphen_forks.Output { + public func reposListForks(_ input: Operations.ReposListForks.Input) async throws -> Operations.ReposListForks.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_forks.id, + forOperation: Operations.ReposListForks.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/forks", @@ -10751,7 +10751,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -10769,13 +10769,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_forks.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListForks.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_forks.Output.Ok.Body + let body: Operations.ReposListForks.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10785,7 +10785,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -10800,7 +10800,7 @@ public struct Client: APIProtocol { )) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10811,7 +10811,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -10819,10 +10819,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -10853,10 +10853,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)`. - public func repos_sol_create_hyphen_fork(_ input: Operations.repos_sol_create_hyphen_fork.Input) async throws -> Operations.repos_sol_create_hyphen_fork.Output { + public func reposCreateFork(_ input: Operations.ReposCreateFork.Input) async throws -> Operations.ReposCreateFork.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_fork.id, + forOperation: Operations.ReposCreateFork.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/forks", @@ -10891,7 +10891,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_fork.Output.Accepted.Body + let body: Operations.ReposCreateFork.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10901,7 +10901,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -10913,7 +10913,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10924,7 +10924,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -10932,10 +10932,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -10944,7 +10944,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10954,7 +10954,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -10966,7 +10966,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10976,7 +10976,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -10988,7 +10988,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -10998,7 +10998,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11026,10 +11026,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)`. - public func repos_sol_list_hyphen_webhooks(_ input: Operations.repos_sol_list_hyphen_webhooks.Input) async throws -> Operations.repos_sol_list_hyphen_webhooks.Output { + public func reposListWebhooks(_ input: Operations.ReposListWebhooks.Input) async throws -> Operations.ReposListWebhooks.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_webhooks.id, + forOperation: Operations.ReposListWebhooks.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks", @@ -11048,7 +11048,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -11066,13 +11066,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListWebhooks.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Body + let body: Operations.ReposListWebhooks.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11082,7 +11082,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.hook].self, + [Components.Schemas.Hook].self, from: responseBody, transforming: { value in .json(value) @@ -11097,7 +11097,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11107,7 +11107,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11136,10 +11136,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)`. - public func repos_sol_create_hyphen_webhook(_ input: Operations.repos_sol_create_hyphen_webhook.Input) async throws -> Operations.repos_sol_create_hyphen_webhook.Output { + public func reposCreateWebhook(_ input: Operations.ReposCreateWebhook.Input) async throws -> Operations.ReposCreateWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_webhook.id, + forOperation: Operations.ReposCreateWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks", @@ -11173,13 +11173,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_webhook.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateWebhook.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_webhook.Output.Created.Body + let body: Operations.ReposCreateWebhook.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11189,7 +11189,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook.self, + Components.Schemas.Hook.self, from: responseBody, transforming: { value in .json(value) @@ -11204,7 +11204,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11214,7 +11214,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11226,7 +11226,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11236,7 +11236,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -11248,7 +11248,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11258,7 +11258,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11286,17 +11286,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)`. - public func repos_sol_get_hyphen_webhook(_ input: Operations.repos_sol_get_hyphen_webhook.Input) async throws -> Operations.repos_sol_get_hyphen_webhook.Output { + public func reposGetWebhook(_ input: Operations.ReposGetWebhook.Input) async throws -> Operations.ReposGetWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_webhook.id, + forOperation: Operations.ReposGetWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11314,7 +11314,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_webhook.Output.Ok.Body + let body: Operations.ReposGetWebhook.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11324,7 +11324,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook.self, + Components.Schemas.Hook.self, from: responseBody, transforming: { value in .json(value) @@ -11336,7 +11336,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11346,7 +11346,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11374,17 +11374,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)`. - public func repos_sol_update_hyphen_webhook(_ input: Operations.repos_sol_update_hyphen_webhook.Input) async throws -> Operations.repos_sol_update_hyphen_webhook.Output { + public func reposUpdateWebhook(_ input: Operations.ReposUpdateWebhook.Input) async throws -> Operations.ReposUpdateWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_webhook.id, + forOperation: Operations.ReposUpdateWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11411,7 +11411,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_webhook.Output.Ok.Body + let body: Operations.ReposUpdateWebhook.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11421,7 +11421,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook.self, + Components.Schemas.Hook.self, from: responseBody, transforming: { value in .json(value) @@ -11433,7 +11433,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11443,7 +11443,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -11455,7 +11455,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11465,7 +11465,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11495,17 +11495,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)`. - public func repos_sol_delete_hyphen_webhook(_ input: Operations.repos_sol_delete_hyphen_webhook.Input) async throws -> Operations.repos_sol_delete_hyphen_webhook.Output { + public func reposDeleteWebhook(_ input: Operations.ReposDeleteWebhook.Input) async throws -> Operations.ReposDeleteWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_webhook.id, + forOperation: Operations.ReposDeleteWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11525,7 +11525,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11535,7 +11535,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11565,17 +11565,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/get(repos/get-webhook-config-for-repo)`. - public func repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output { + public func reposGetWebhookConfigForRepo(_ input: Operations.ReposGetWebhookConfigForRepo.Input) async throws -> Operations.ReposGetWebhookConfigForRepo.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.id, + forOperation: Operations.ReposGetWebhookConfigForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/config", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11593,7 +11593,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ReposGetWebhookConfigForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11603,7 +11603,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -11633,17 +11633,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/patch(repos/update-webhook-config-for-repo)`. - public func repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output { + public func reposUpdateWebhookConfigForRepo(_ input: Operations.ReposUpdateWebhookConfigForRepo.Input) async throws -> Operations.ReposUpdateWebhookConfigForRepo.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.id, + forOperation: Operations.ReposUpdateWebhookConfigForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/config", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11672,7 +11672,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.ReposUpdateWebhookConfigForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11682,7 +11682,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.webhook_hyphen_config.self, + Components.Schemas.WebhookConfig.self, from: responseBody, transforming: { value in .json(value) @@ -11710,17 +11710,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)`. - public func repos_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output { + public func reposListWebhookDeliveries(_ input: Operations.ReposListWebhookDeliveries.Input) async throws -> Operations.ReposListWebhookDeliveries.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.id, + forOperation: Operations.ReposListWebhookDeliveries.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/deliveries", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11733,7 +11733,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -11752,7 +11752,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + let body: Operations.ReposListWebhookDeliveries.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11762,7 +11762,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.hook_hyphen_delivery_hyphen_item].self, + [Components.Schemas.HookDeliveryItem].self, from: responseBody, transforming: { value in .json(value) @@ -11774,7 +11774,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11785,7 +11785,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11793,10 +11793,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -11805,7 +11805,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11815,7 +11815,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -11843,18 +11843,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)`. - public func repos_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output { + public func reposGetWebhookDelivery(_ input: Operations.ReposGetWebhookDelivery.Input) async throws -> Operations.ReposGetWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.ReposGetWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/deliveries/{}", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id, - input.path.delivery_id + input.path.hookId, + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11872,7 +11872,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + let body: Operations.ReposGetWebhookDelivery.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11882,7 +11882,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hook_hyphen_delivery.self, + Components.Schemas.HookDelivery.self, from: responseBody, transforming: { value in .json(value) @@ -11894,7 +11894,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11905,7 +11905,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -11913,10 +11913,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -11925,7 +11925,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -11935,7 +11935,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -11963,18 +11963,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)`. - public func repos_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { + public func reposRedeliverWebhookDelivery(_ input: Operations.ReposRedeliverWebhookDelivery.Input) async throws -> Operations.ReposRedeliverWebhookDelivery.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.id, + forOperation: Operations.ReposRedeliverWebhookDelivery.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/deliveries/{}/attempts", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id, - input.path.delivery_id + input.path.hookId, + input.path.deliveryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -11992,7 +11992,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12014,7 +12014,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12025,7 +12025,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -12033,10 +12033,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -12045,7 +12045,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12055,7 +12055,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -12083,17 +12083,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)`. - public func repos_sol_ping_hyphen_webhook(_ input: Operations.repos_sol_ping_hyphen_webhook.Input) async throws -> Operations.repos_sol_ping_hyphen_webhook.Output { + public func reposPingWebhook(_ input: Operations.ReposPingWebhook.Input) async throws -> Operations.ReposPingWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_ping_hyphen_webhook.id, + forOperation: Operations.ReposPingWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/pings", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12113,7 +12113,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12123,7 +12123,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -12154,17 +12154,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)`. - public func repos_sol_test_hyphen_push_hyphen_webhook(_ input: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input) async throws -> Operations.repos_sol_test_hyphen_push_hyphen_webhook.Output { + public func reposTestPushWebhook(_ input: Operations.ReposTestPushWebhook.Input) async throws -> Operations.ReposTestPushWebhook.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_test_hyphen_push_hyphen_webhook.id, + forOperation: Operations.ReposTestPushWebhook.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/hooks/{}/tests", parameters: [ input.path.owner, input.path.repo, - input.path.hook_id + input.path.hookId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12184,7 +12184,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12194,7 +12194,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -12222,10 +12222,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/invitations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/get(repos/list-invitations)`. - public func repos_sol_list_hyphen_invitations(_ input: Operations.repos_sol_list_hyphen_invitations.Input) async throws -> Operations.repos_sol_list_hyphen_invitations.Output { + public func reposListInvitations(_ input: Operations.ReposListInvitations.Input) async throws -> Operations.ReposListInvitations.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_invitations.id, + forOperation: Operations.ReposListInvitations.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/invitations", @@ -12244,7 +12244,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -12262,13 +12262,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListInvitations.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Body + let body: Operations.ReposListInvitations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12278,7 +12278,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_invitation].self, + [Components.Schemas.RepositoryInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -12309,17 +12309,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/patch(repos/update-invitation)`. - public func repos_sol_update_hyphen_invitation(_ input: Operations.repos_sol_update_hyphen_invitation.Input) async throws -> Operations.repos_sol_update_hyphen_invitation.Output { + public func reposUpdateInvitation(_ input: Operations.ReposUpdateInvitation.Input) async throws -> Operations.ReposUpdateInvitation.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_invitation.id, + forOperation: Operations.ReposUpdateInvitation.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/invitations/{}", parameters: [ input.path.owner, input.path.repo, - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12348,7 +12348,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_invitation.Output.Ok.Body + let body: Operations.ReposUpdateInvitation.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12358,7 +12358,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_invitation.self, + Components.Schemas.RepositoryInvitation.self, from: responseBody, transforming: { value in .json(value) @@ -12386,17 +12386,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)`. - public func repos_sol_delete_hyphen_invitation(_ input: Operations.repos_sol_delete_hyphen_invitation.Input) async throws -> Operations.repos_sol_delete_hyphen_invitation.Output { + public func reposDeleteInvitation(_ input: Operations.ReposDeleteInvitation.Input) async throws -> Operations.ReposDeleteInvitation.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_invitation.id, + forOperation: Operations.ReposDeleteInvitation.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/invitations/{}", parameters: [ input.path.owner, input.path.repo, - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12428,10 +12428,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/get(repos/list-deploy-keys)`. - public func repos_sol_list_hyphen_deploy_hyphen_keys(_ input: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input) async throws -> Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output { + public func reposListDeployKeys(_ input: Operations.ReposListDeployKeys.Input) async throws -> Operations.ReposListDeployKeys.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.id, + forOperation: Operations.ReposListDeployKeys.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/keys", @@ -12450,7 +12450,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -12468,13 +12468,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListDeployKeys.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Body + let body: Operations.ReposListDeployKeys.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12484,7 +12484,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.deploy_hyphen_key].self, + [Components.Schemas.DeployKey].self, from: responseBody, transforming: { value in .json(value) @@ -12515,10 +12515,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)`. - public func repos_sol_create_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output { + public func reposCreateDeployKey(_ input: Operations.ReposCreateDeployKey.Input) async throws -> Operations.ReposCreateDeployKey.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_deploy_hyphen_key.id, + forOperation: Operations.ReposCreateDeployKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/keys", @@ -12550,13 +12550,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateDeployKey.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Body + let body: Operations.ReposCreateDeployKey.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12566,7 +12566,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deploy_hyphen_key.self, + Components.Schemas.DeployKey.self, from: responseBody, transforming: { value in .json(value) @@ -12581,7 +12581,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12591,7 +12591,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -12619,17 +12619,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)`. - public func repos_sol_get_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output { + public func reposGetDeployKey(_ input: Operations.ReposGetDeployKey.Input) async throws -> Operations.ReposGetDeployKey.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_deploy_hyphen_key.id, + forOperation: Operations.ReposGetDeployKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/keys/{}", parameters: [ input.path.owner, input.path.repo, - input.path.key_id + input.path.keyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12647,7 +12647,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output.Ok.Body + let body: Operations.ReposGetDeployKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12657,7 +12657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.deploy_hyphen_key.self, + Components.Schemas.DeployKey.self, from: responseBody, transforming: { value in .json(value) @@ -12669,7 +12669,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12679,7 +12679,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -12707,17 +12707,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)`. - public func repos_sol_delete_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Output { + public func reposDeleteDeployKey(_ input: Operations.ReposDeleteDeployKey.Input) async throws -> Operations.ReposDeleteDeployKey.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.id, + forOperation: Operations.ReposDeleteDeployKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/keys/{}", parameters: [ input.path.owner, input.path.repo, - input.path.key_id + input.path.keyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -12749,10 +12749,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/languages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/languages/get(repos/list-languages)`. - public func repos_sol_list_hyphen_languages(_ input: Operations.repos_sol_list_hyphen_languages.Input) async throws -> Operations.repos_sol_list_hyphen_languages.Output { + public func reposListLanguages(_ input: Operations.ReposListLanguages.Input) async throws -> Operations.ReposListLanguages.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_languages.id, + forOperation: Operations.ReposListLanguages.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/languages", @@ -12776,7 +12776,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_languages.Output.Ok.Body + let body: Operations.ReposListLanguages.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12786,7 +12786,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.language.self, + Components.Schemas.Language.self, from: responseBody, transforming: { value in .json(value) @@ -12814,10 +12814,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merge-upstream`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)`. - public func repos_sol_merge_hyphen_upstream(_ input: Operations.repos_sol_merge_hyphen_upstream.Input) async throws -> Operations.repos_sol_merge_hyphen_upstream.Output { + public func reposMergeUpstream(_ input: Operations.ReposMergeUpstream.Input) async throws -> Operations.ReposMergeUpstream.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_merge_hyphen_upstream.id, + forOperation: Operations.ReposMergeUpstream.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/merge-upstream", @@ -12850,7 +12850,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_merge_hyphen_upstream.Output.Ok.Body + let body: Operations.ReposMergeUpstream.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12860,7 +12860,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.merged_hyphen_upstream.self, + Components.Schemas.MergedUpstream.self, from: responseBody, transforming: { value in .json(value) @@ -12892,10 +12892,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merges`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)`. - public func repos_sol_merge(_ input: Operations.repos_sol_merge.Input) async throws -> Operations.repos_sol_merge.Output { + public func reposMerge(_ input: Operations.ReposMerge.Input) async throws -> Operations.ReposMerge.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_merge.id, + forOperation: Operations.ReposMerge.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/merges", @@ -12928,7 +12928,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_merge.Output.Created.Body + let body: Operations.ReposMerge.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12938,7 +12938,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.commit.self, + Components.Schemas.Commit.self, from: responseBody, transforming: { value in .json(value) @@ -12956,7 +12956,7 @@ public struct Client: APIProtocol { return .conflict(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12966,7 +12966,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -12978,7 +12978,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -12988,7 +12988,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -13018,10 +13018,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)`. - public func repos_sol_get_hyphen_pages(_ input: Operations.repos_sol_get_hyphen_pages.Input) async throws -> Operations.repos_sol_get_hyphen_pages.Output { + public func reposGetPages(_ input: Operations.ReposGetPages.Input) async throws -> Operations.ReposGetPages.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_pages.id, + forOperation: Operations.ReposGetPages.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages", @@ -13045,7 +13045,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pages.Output.Ok.Body + let body: Operations.ReposGetPages.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13055,7 +13055,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page.self, + Components.Schemas.Page.self, from: responseBody, transforming: { value in .json(value) @@ -13067,7 +13067,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13077,7 +13077,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13109,10 +13109,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)`. - public func repos_sol_create_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_site.Output { + public func reposCreatePagesSite(_ input: Operations.ReposCreatePagesSite.Input) async throws -> Operations.ReposCreatePagesSite.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_pages_hyphen_site.id, + forOperation: Operations.ReposCreatePagesSite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages", @@ -13145,7 +13145,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Output.Created.Body + let body: Operations.ReposCreatePagesSite.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13155,7 +13155,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page.self, + Components.Schemas.Page.self, from: responseBody, transforming: { value in .json(value) @@ -13167,7 +13167,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13177,7 +13177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -13189,7 +13189,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13199,7 +13199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13231,10 +13231,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)`. - public func repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Output { + public func reposUpdateInformationAboutPagesSite(_ input: Operations.ReposUpdateInformationAboutPagesSite.Input) async throws -> Operations.ReposUpdateInformationAboutPagesSite.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.id, + forOperation: Operations.ReposUpdateInformationAboutPagesSite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages", @@ -13269,7 +13269,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13279,7 +13279,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -13291,7 +13291,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13302,7 +13302,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13310,10 +13310,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -13322,7 +13322,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13332,7 +13332,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13364,10 +13364,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)`. - public func repos_sol_delete_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_delete_hyphen_pages_hyphen_site.Output { + public func reposDeletePagesSite(_ input: Operations.ReposDeletePagesSite.Input) async throws -> Operations.ReposDeletePagesSite.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_pages_hyphen_site.id, + forOperation: Operations.ReposDeletePagesSite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages", @@ -13393,7 +13393,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13403,7 +13403,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -13415,7 +13415,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13425,7 +13425,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13437,7 +13437,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13447,7 +13447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13477,10 +13477,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/get(repos/list-pages-builds)`. - public func repos_sol_list_hyphen_pages_hyphen_builds(_ input: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input) async throws -> Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output { + public func reposListPagesBuilds(_ input: Operations.ReposListPagesBuilds.Input) async throws -> Operations.ReposListPagesBuilds.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_pages_hyphen_builds.id, + forOperation: Operations.ReposListPagesBuilds.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/builds", @@ -13499,7 +13499,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -13517,13 +13517,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListPagesBuilds.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Body + let body: Operations.ReposListPagesBuilds.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13533,7 +13533,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.page_hyphen_build].self, + [Components.Schemas.PageBuild].self, from: responseBody, transforming: { value in .json(value) @@ -13566,10 +13566,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/post(repos/request-pages-build)`. - public func repos_sol_request_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_request_hyphen_pages_hyphen_build.Output { + public func reposRequestPagesBuild(_ input: Operations.ReposRequestPagesBuild.Input) async throws -> Operations.ReposRequestPagesBuild.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_request_hyphen_pages_hyphen_build.id, + forOperation: Operations.ReposRequestPagesBuild.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/builds", @@ -13593,7 +13593,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_request_hyphen_pages_hyphen_build.Output.Created.Body + let body: Operations.ReposRequestPagesBuild.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13603,7 +13603,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page_hyphen_build_hyphen_status.self, + Components.Schemas.PageBuildStatus.self, from: responseBody, transforming: { value in .json(value) @@ -13633,10 +13633,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/latest/get(repos/get-latest-pages-build)`. - public func repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output { + public func reposGetLatestPagesBuild(_ input: Operations.ReposGetLatestPagesBuild.Input) async throws -> Operations.ReposGetLatestPagesBuild.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.id, + forOperation: Operations.ReposGetLatestPagesBuild.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/builds/latest", @@ -13660,7 +13660,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output.Ok.Body + let body: Operations.ReposGetLatestPagesBuild.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13670,7 +13670,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page_hyphen_build.self, + Components.Schemas.PageBuild.self, from: responseBody, transforming: { value in .json(value) @@ -13700,17 +13700,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/{build_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/{build_id}/get(repos/get-pages-build)`. - public func repos_sol_get_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_build.Output { + public func reposGetPagesBuild(_ input: Operations.ReposGetPagesBuild.Input) async throws -> Operations.ReposGetPagesBuild.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_pages_hyphen_build.id, + forOperation: Operations.ReposGetPagesBuild.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/builds/{}", parameters: [ input.path.owner, input.path.repo, - input.path.build_id + input.path.buildId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -13728,7 +13728,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pages_hyphen_build.Output.Ok.Body + let body: Operations.ReposGetPagesBuild.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13738,7 +13738,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page_hyphen_build.self, + Components.Schemas.PageBuild.self, from: responseBody, transforming: { value in .json(value) @@ -13768,10 +13768,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)`. - public func repos_sol_create_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output { + public func reposCreatePagesDeployment(_ input: Operations.ReposCreatePagesDeployment.Input) async throws -> Operations.ReposCreatePagesDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.id, + forOperation: Operations.ReposCreatePagesDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/deployments", @@ -13804,7 +13804,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output.Ok.Body + let body: Operations.ReposCreatePagesDeployment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13814,7 +13814,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.page_hyphen_deployment.self, + Components.Schemas.PageDeployment.self, from: responseBody, transforming: { value in .json(value) @@ -13826,7 +13826,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13837,7 +13837,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13845,10 +13845,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -13857,7 +13857,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13867,7 +13867,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -13879,7 +13879,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13889,7 +13889,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -13919,17 +13919,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)`. - public func repos_sol_get_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output { + public func reposGetPagesDeployment(_ input: Operations.ReposGetPagesDeployment.Input) async throws -> Operations.ReposGetPagesDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.id, + forOperation: Operations.ReposGetPagesDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/deployments/{}", parameters: [ input.path.owner, input.path.repo, - input.path.pages_deployment_id + input.path.pagesDeploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -13947,7 +13947,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output.Ok.Body + let body: Operations.ReposGetPagesDeployment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13957,7 +13957,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pages_hyphen_deployment_hyphen_status.self, + Components.Schemas.PagesDeploymentStatus.self, from: responseBody, transforming: { value in .json(value) @@ -13969,7 +13969,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -13979,7 +13979,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14009,17 +14009,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)`. - public func repos_sol_cancel_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Output { + public func reposCancelPagesDeployment(_ input: Operations.ReposCancelPagesDeployment.Input) async throws -> Operations.ReposCancelPagesDeployment.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.id, + forOperation: Operations.ReposCancelPagesDeployment.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/deployments/{}/cancel", parameters: [ input.path.owner, input.path.repo, - input.path.pages_deployment_id + input.path.pagesDeploymentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -14039,7 +14039,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14049,7 +14049,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14083,10 +14083,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/health`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)`. - public func repos_sol_get_hyphen_pages_hyphen_health_hyphen_check(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output { + public func reposGetPagesHealthCheck(_ input: Operations.ReposGetPagesHealthCheck.Input) async throws -> Operations.ReposGetPagesHealthCheck.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.id, + forOperation: Operations.ReposGetPagesHealthCheck.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pages/health", @@ -14110,7 +14110,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Ok.Body + let body: Operations.ReposGetPagesHealthCheck.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14120,7 +14120,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.pages_hyphen_health_hyphen_check.self, + Components.Schemas.PagesHealthCheck.self, from: responseBody, transforming: { value in .json(value) @@ -14132,7 +14132,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Accepted.Body + let body: Operations.ReposGetPagesHealthCheck.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14142,7 +14142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -14158,7 +14158,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14168,7 +14168,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14196,10 +14196,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)`. - public func repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { + public func reposCheckPrivateVulnerabilityReporting(_ input: Operations.ReposCheckPrivateVulnerabilityReporting.Input) async throws -> Operations.ReposCheckPrivateVulnerabilityReporting.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.id, + forOperation: Operations.ReposCheckPrivateVulnerabilityReporting.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/private-vulnerability-reporting", @@ -14223,7 +14223,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body + let body: Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14233,7 +14233,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body.jsonPayload.self, + Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -14245,7 +14245,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14256,7 +14256,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14264,10 +14264,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -14292,10 +14292,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)`. - public func repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { + public func reposEnablePrivateVulnerabilityReporting(_ input: Operations.ReposEnablePrivateVulnerabilityReporting.Input) async throws -> Operations.ReposEnablePrivateVulnerabilityReporting.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.id, + forOperation: Operations.ReposEnablePrivateVulnerabilityReporting.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/private-vulnerability-reporting", @@ -14321,7 +14321,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14332,7 +14332,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14340,10 +14340,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -14368,10 +14368,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)`. - public func repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { + public func reposDisablePrivateVulnerabilityReporting(_ input: Operations.ReposDisablePrivateVulnerabilityReporting.Input) async throws -> Operations.ReposDisablePrivateVulnerabilityReporting.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.id, + forOperation: Operations.ReposDisablePrivateVulnerabilityReporting.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/private-vulnerability-reporting", @@ -14397,7 +14397,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14408,7 +14408,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14416,10 +14416,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -14445,10 +14445,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)`. - public func repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values(_ input: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output { + public func reposGetCustomPropertiesValues(_ input: Operations.ReposGetCustomPropertiesValues.Input) async throws -> Operations.ReposGetCustomPropertiesValues.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.id, + forOperation: Operations.ReposGetCustomPropertiesValues.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/properties/values", @@ -14472,7 +14472,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output.Ok.Body + let body: Operations.ReposGetCustomPropertiesValues.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14482,7 +14482,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.custom_hyphen_property_hyphen_value].self, + [Components.Schemas.CustomPropertyValue].self, from: responseBody, transforming: { value in .json(value) @@ -14494,7 +14494,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14504,7 +14504,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14516,7 +14516,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14526,7 +14526,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14557,10 +14557,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Output { + public func reposCreateOrUpdateCustomPropertiesValues(_ input: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input) async throws -> Operations.ReposCreateOrUpdateCustomPropertiesValues.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.id, + forOperation: Operations.ReposCreateOrUpdateCustomPropertiesValues.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/properties/values", @@ -14595,7 +14595,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14605,7 +14605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14617,7 +14617,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14627,7 +14627,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14639,7 +14639,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14649,7 +14649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -14682,10 +14682,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)`. - public func repos_sol_get_hyphen_readme(_ input: Operations.repos_sol_get_hyphen_readme.Input) async throws -> Operations.repos_sol_get_hyphen_readme.Output { + public func reposGetReadme(_ input: Operations.ReposGetReadme.Input) async throws -> Operations.ReposGetReadme.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_readme.id, + forOperation: Operations.ReposGetReadme.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/readme", @@ -14716,7 +14716,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_readme.Output.Ok.Body + let body: Operations.ReposGetReadme.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14726,7 +14726,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.content_hyphen_file.self, + Components.Schemas.ContentFile.self, from: responseBody, transforming: { value in .json(value) @@ -14740,7 +14740,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14750,7 +14750,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14762,7 +14762,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14772,7 +14772,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -14805,10 +14805,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme/{dir}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)`. - public func repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory(_ input: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input) async throws -> Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output { + public func reposGetReadmeInDirectory(_ input: Operations.ReposGetReadmeInDirectory.Input) async throws -> Operations.ReposGetReadmeInDirectory.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.id, + forOperation: Operations.ReposGetReadmeInDirectory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/readme/{}", @@ -14840,7 +14840,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output.Ok.Body + let body: Operations.ReposGetReadmeInDirectory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14850,7 +14850,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.content_hyphen_file.self, + Components.Schemas.ContentFile.self, from: responseBody, transforming: { value in .json(value) @@ -14862,7 +14862,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14872,7 +14872,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -14884,7 +14884,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14894,7 +14894,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -14924,10 +14924,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)`. - public func repos_sol_list_hyphen_releases(_ input: Operations.repos_sol_list_hyphen_releases.Input) async throws -> Operations.repos_sol_list_hyphen_releases.Output { + public func reposListReleases(_ input: Operations.ReposListReleases.Input) async throws -> Operations.ReposListReleases.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_releases.id, + forOperation: Operations.ReposListReleases.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases", @@ -14946,7 +14946,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -14964,13 +14964,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_releases.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListReleases.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_releases.Output.Ok.Body + let body: Operations.ReposListReleases.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -14980,7 +14980,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.release].self, + [Components.Schemas.Release].self, from: responseBody, transforming: { value in .json(value) @@ -14995,7 +14995,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15005,7 +15005,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15035,10 +15035,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)`. - public func repos_sol_create_hyphen_release(_ input: Operations.repos_sol_create_hyphen_release.Input) async throws -> Operations.repos_sol_create_hyphen_release.Output { + public func reposCreateRelease(_ input: Operations.ReposCreateRelease.Input) async throws -> Operations.ReposCreateRelease.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_release.id, + forOperation: Operations.ReposCreateRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases", @@ -15070,13 +15070,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_release.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateRelease.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_release.Output.Created.Body + let body: Operations.ReposCreateRelease.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15086,7 +15086,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release.self, + Components.Schemas.Release.self, from: responseBody, transforming: { value in .json(value) @@ -15101,7 +15101,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_release.Output.NotFound.Body + let body: Operations.ReposCreateRelease.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15111,7 +15111,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15123,7 +15123,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15133,7 +15133,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -15167,17 +15167,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`. - public func repos_sol_get_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_asset.Output { + public func reposGetReleaseAsset(_ input: Operations.ReposGetReleaseAsset.Input) async throws -> Operations.ReposGetReleaseAsset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_release_hyphen_asset.id, + forOperation: Operations.ReposGetReleaseAsset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/assets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.asset_id + input.path.assetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15195,7 +15195,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_release_hyphen_asset.Output.Ok.Body + let body: Operations.ReposGetReleaseAsset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15205,7 +15205,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release_hyphen_asset.self, + Components.Schemas.ReleaseAsset.self, from: responseBody, transforming: { value in .json(value) @@ -15217,7 +15217,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15227,7 +15227,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15257,17 +15257,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/patch(repos/update-release-asset)`. - public func repos_sol_update_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_update_hyphen_release_hyphen_asset.Output { + public func reposUpdateReleaseAsset(_ input: Operations.ReposUpdateReleaseAsset.Input) async throws -> Operations.ReposUpdateReleaseAsset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_release_hyphen_asset.id, + forOperation: Operations.ReposUpdateReleaseAsset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/assets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.asset_id + input.path.assetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15296,7 +15296,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Output.Ok.Body + let body: Operations.ReposUpdateReleaseAsset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15306,7 +15306,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release_hyphen_asset.self, + Components.Schemas.ReleaseAsset.self, from: responseBody, transforming: { value in .json(value) @@ -15334,17 +15334,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)`. - public func repos_sol_delete_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_delete_hyphen_release_hyphen_asset.Output { + public func reposDeleteReleaseAsset(_ input: Operations.ReposDeleteReleaseAsset.Input) async throws -> Operations.ReposDeleteReleaseAsset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_release_hyphen_asset.id, + forOperation: Operations.ReposDeleteReleaseAsset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/assets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.asset_id + input.path.assetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15376,10 +15376,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/generate-notes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)`. - public func repos_sol_generate_hyphen_release_hyphen_notes(_ input: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input) async throws -> Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output { + public func reposGenerateReleaseNotes(_ input: Operations.ReposGenerateReleaseNotes.Input) async throws -> Operations.ReposGenerateReleaseNotes.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_generate_hyphen_release_hyphen_notes.id, + forOperation: Operations.ReposGenerateReleaseNotes.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/generate-notes", @@ -15412,7 +15412,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output.Ok.Body + let body: Operations.ReposGenerateReleaseNotes.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15422,7 +15422,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release_hyphen_notes_hyphen_content.self, + Components.Schemas.ReleaseNotesContent.self, from: responseBody, transforming: { value in .json(value) @@ -15434,7 +15434,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15444,7 +15444,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15474,10 +15474,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/latest/get(repos/get-latest-release)`. - public func repos_sol_get_hyphen_latest_hyphen_release(_ input: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_release.Output { + public func reposGetLatestRelease(_ input: Operations.ReposGetLatestRelease.Input) async throws -> Operations.ReposGetLatestRelease.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_latest_hyphen_release.id, + forOperation: Operations.ReposGetLatestRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/latest", @@ -15501,7 +15501,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_latest_hyphen_release.Output.Ok.Body + let body: Operations.ReposGetLatestRelease.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15511,7 +15511,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release.self, + Components.Schemas.Release.self, from: responseBody, transforming: { value in .json(value) @@ -15539,10 +15539,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/tags/{tag}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)`. - public func repos_sol_get_hyphen_release_hyphen_by_hyphen_tag(_ input: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output { + public func reposGetReleaseByTag(_ input: Operations.ReposGetReleaseByTag.Input) async throws -> Operations.ReposGetReleaseByTag.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.id, + forOperation: Operations.ReposGetReleaseByTag.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/tags/{}", @@ -15567,7 +15567,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output.Ok.Body + let body: Operations.ReposGetReleaseByTag.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15577,7 +15577,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release.self, + Components.Schemas.Release.self, from: responseBody, transforming: { value in .json(value) @@ -15589,7 +15589,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15599,7 +15599,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15630,17 +15630,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)`. - public func repos_sol_get_hyphen_release(_ input: Operations.repos_sol_get_hyphen_release.Input) async throws -> Operations.repos_sol_get_hyphen_release.Output { + public func reposGetRelease(_ input: Operations.ReposGetRelease.Input) async throws -> Operations.ReposGetRelease.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_release.id, + forOperation: Operations.ReposGetRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15658,7 +15658,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_release.Output.Ok.Body + let body: Operations.ReposGetRelease.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15668,7 +15668,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release.self, + Components.Schemas.Release.self, from: responseBody, transforming: { value in .json(value) @@ -15698,17 +15698,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)`. - public func repos_sol_update_hyphen_release(_ input: Operations.repos_sol_update_hyphen_release.Input) async throws -> Operations.repos_sol_update_hyphen_release.Output { + public func reposUpdateRelease(_ input: Operations.ReposUpdateRelease.Input) async throws -> Operations.ReposUpdateRelease.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_release.id, + forOperation: Operations.ReposUpdateRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15737,7 +15737,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_release.Output.Ok.Body + let body: Operations.ReposUpdateRelease.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15747,7 +15747,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release.self, + Components.Schemas.Release.self, from: responseBody, transforming: { value in .json(value) @@ -15759,7 +15759,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_release.Output.NotFound.Body + let body: Operations.ReposUpdateRelease.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15769,7 +15769,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -15797,17 +15797,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)`. - public func repos_sol_delete_hyphen_release(_ input: Operations.repos_sol_delete_hyphen_release.Input) async throws -> Operations.repos_sol_delete_hyphen_release.Output { + public func reposDeleteRelease(_ input: Operations.ReposDeleteRelease.Input) async throws -> Operations.ReposDeleteRelease.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_release.id, + forOperation: Operations.ReposDeleteRelease.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15839,17 +15839,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/get(repos/list-release-assets)`. - public func repos_sol_list_hyphen_release_hyphen_assets(_ input: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input) async throws -> Operations.repos_sol_list_hyphen_release_hyphen_assets.Output { + public func reposListReleaseAssets(_ input: Operations.ReposListReleaseAssets.Input) async throws -> Operations.ReposListReleaseAssets.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_release_hyphen_assets.id, + forOperation: Operations.ReposListReleaseAssets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}/assets", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15862,7 +15862,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -15880,13 +15880,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListReleaseAssets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Body + let body: Operations.ReposListReleaseAssets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -15896,7 +15896,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.release_hyphen_asset].self, + [Components.Schemas.ReleaseAsset].self, from: responseBody, transforming: { value in .json(value) @@ -15945,17 +15945,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)`. - public func repos_sol_upload_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output { + public func reposUploadReleaseAsset(_ input: Operations.ReposUploadReleaseAsset.Input) async throws -> Operations.ReposUploadReleaseAsset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_upload_hyphen_release_hyphen_asset.id, + forOperation: Operations.ReposUploadReleaseAsset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/releases/{}/assets", parameters: [ input.path.owner, input.path.repo, - input.path.release_id + input.path.releaseId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -15998,7 +15998,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.Created.Body + let body: Operations.ReposUploadReleaseAsset.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16008,7 +16008,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.release_hyphen_asset.self, + Components.Schemas.ReleaseAsset.self, from: responseBody, transforming: { value in .json(value) @@ -16041,10 +16041,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rules/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rules/branches/{branch}/get(repos/get-branch-rules)`. - public func repos_sol_get_hyphen_branch_hyphen_rules(_ input: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output { + public func reposGetBranchRules(_ input: Operations.ReposGetBranchRules.Input) async throws -> Operations.ReposGetBranchRules.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_branch_hyphen_rules.id, + forOperation: Operations.ReposGetBranchRules.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rules/branches/{}", @@ -16064,7 +16064,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -16083,7 +16083,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output.Ok.Body + let body: Operations.ReposGetBranchRules.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16093,7 +16093,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_rule_hyphen_detailed].self, + [Components.Schemas.RepositoryRuleDetailed].self, from: responseBody, transforming: { value in .json(value) @@ -16121,10 +16121,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)`. - public func repos_sol_get_hyphen_repo_hyphen_rulesets(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output { + public func reposGetRepoRulesets(_ input: Operations.ReposGetRepoRulesets.Input) async throws -> Operations.ReposGetRepoRulesets.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.id, + forOperation: Operations.ReposGetRepoRulesets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets", @@ -16143,7 +16143,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -16157,7 +16157,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "includes_parents", - value: input.query.includes_parents + value: input.query.includesParents ) try converter.setQueryItemAsURI( in: &request, @@ -16176,7 +16176,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output.Ok.Body + let body: Operations.ReposGetRepoRulesets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16186,7 +16186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_ruleset].self, + [Components.Schemas.RepositoryRuleset].self, from: responseBody, transforming: { value in .json(value) @@ -16198,7 +16198,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16208,7 +16208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16220,7 +16220,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16230,7 +16230,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16258,10 +16258,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)`. - public func repos_sol_create_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output { + public func reposCreateRepoRuleset(_ input: Operations.ReposCreateRepoRuleset.Input) async throws -> Operations.ReposCreateRepoRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.id, + forOperation: Operations.ReposCreateRepoRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets", @@ -16294,7 +16294,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output.Created.Body + let body: Operations.ReposCreateRepoRuleset.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16304,7 +16304,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -16316,7 +16316,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16326,7 +16326,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16338,7 +16338,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16348,7 +16348,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16377,10 +16377,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)`. - public func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output { + public func reposGetRepoRuleSuites(_ input: Operations.ReposGetRepoRuleSuites.Input) async throws -> Operations.ReposGetRepoRuleSuites.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.id, + forOperation: Operations.ReposGetRepoRuleSuites.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/rule-suites", @@ -16406,28 +16406,28 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "time_period", - value: input.query.time_period + value: input.query.timePeriod ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "actor_name", - value: input.query.actor_name + value: input.query.actorName ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "rule_suite_result", - value: input.query.rule_suite_result + value: input.query.ruleSuiteResult ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -16446,7 +16446,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output.Ok.Body + let body: Operations.ReposGetRepoRuleSuites.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16456,7 +16456,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.rule_hyphen_suites.self, + Components.Schemas.RuleSuites.self, from: responseBody, transforming: { value in .json(value) @@ -16468,7 +16468,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16478,7 +16478,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16490,7 +16490,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16500,7 +16500,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16529,17 +16529,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)`. - public func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output { + public func reposGetRepoRuleSuite(_ input: Operations.ReposGetRepoRuleSuite.Input) async throws -> Operations.ReposGetRepoRuleSuite.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.id, + forOperation: Operations.ReposGetRepoRuleSuite.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/rule-suites/{}", parameters: [ input.path.owner, input.path.repo, - input.path.rule_suite_id + input.path.ruleSuiteId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -16557,7 +16557,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output.Ok.Body + let body: Operations.ReposGetRepoRuleSuite.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16567,7 +16567,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.rule_hyphen_suite.self, + Components.Schemas.RuleSuite.self, from: responseBody, transforming: { value in .json(value) @@ -16579,7 +16579,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16589,7 +16589,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16601,7 +16601,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16611,7 +16611,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16642,17 +16642,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output { + public func reposGetRepoRuleset(_ input: Operations.ReposGetRepoRuleset.Input) async throws -> Operations.ReposGetRepoRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.id, + forOperation: Operations.ReposGetRepoRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -16665,7 +16665,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "includes_parents", - value: input.query.includes_parents + value: input.query.includesParents ) converter.setAcceptHeader( in: &request.headerFields, @@ -16677,7 +16677,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output.Ok.Body + let body: Operations.ReposGetRepoRuleset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16687,7 +16687,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -16699,7 +16699,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16709,7 +16709,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16721,7 +16721,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16731,7 +16731,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16759,17 +16759,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)`. - public func repos_sol_update_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output { + public func reposUpdateRepoRuleset(_ input: Operations.ReposUpdateRepoRuleset.Input) async throws -> Operations.ReposUpdateRepoRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.id, + forOperation: Operations.ReposUpdateRepoRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -16798,7 +16798,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output.Ok.Body + let body: Operations.ReposUpdateRepoRuleset.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16808,7 +16808,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_ruleset.self, + Components.Schemas.RepositoryRuleset.self, from: responseBody, transforming: { value in .json(value) @@ -16820,7 +16820,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16830,7 +16830,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16842,7 +16842,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16852,7 +16852,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16880,17 +16880,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)`. - public func repos_sol_delete_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output { + public func reposDeleteRepoRuleset(_ input: Operations.ReposDeleteRepoRuleset.Input) async throws -> Operations.ReposDeleteRepoRuleset.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.id, + forOperation: Operations.ReposDeleteRepoRuleset.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -16910,7 +16910,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16920,7 +16920,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16932,7 +16932,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -16942,7 +16942,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -16970,17 +16970,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output { + public func reposGetRepoRulesetHistory(_ input: Operations.ReposGetRepoRulesetHistory.Input) async throws -> Operations.ReposGetRepoRulesetHistory.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.id, + forOperation: Operations.ReposGetRepoRulesetHistory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/{}/history", parameters: [ input.path.owner, input.path.repo, - input.path.ruleset_id + input.path.rulesetId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -16993,7 +16993,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -17012,7 +17012,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output.Ok.Body + let body: Operations.ReposGetRepoRulesetHistory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17022,7 +17022,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.ruleset_hyphen_version].self, + [Components.Schemas.RulesetVersion].self, from: responseBody, transforming: { value in .json(value) @@ -17034,7 +17034,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17044,7 +17044,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17056,7 +17056,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17066,7 +17066,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17094,18 +17094,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output { + public func reposGetRepoRulesetVersion(_ input: Operations.ReposGetRepoRulesetVersion.Input) async throws -> Operations.ReposGetRepoRulesetVersion.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.id, + forOperation: Operations.ReposGetRepoRulesetVersion.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/rulesets/{}/history/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ruleset_id, - input.path.version_id + input.path.rulesetId, + input.path.versionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -17123,7 +17123,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output.Ok.Body + let body: Operations.ReposGetRepoRulesetVersion.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17133,7 +17133,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.self, + Components.Schemas.RulesetVersionWithState.self, from: responseBody, transforming: { value in .json(value) @@ -17145,7 +17145,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17155,7 +17155,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17167,7 +17167,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17177,7 +17177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17208,10 +17208,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`. - public func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output { + public func reposGetCodeFrequencyStats(_ input: Operations.ReposGetCodeFrequencyStats.Input) async throws -> Operations.ReposGetCodeFrequencyStats.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.id, + forOperation: Operations.ReposGetCodeFrequencyStats.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stats/code_frequency", @@ -17235,7 +17235,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.Ok.Body + let body: Operations.ReposGetCodeFrequencyStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17245,7 +17245,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_frequency_hyphen_stat].self, + [Components.Schemas.CodeFrequencyStat].self, from: responseBody, transforming: { value in .json(value) @@ -17257,7 +17257,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17299,10 +17299,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/commit_activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)`. - public func repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output { + public func reposGetCommitActivityStats(_ input: Operations.ReposGetCommitActivityStats.Input) async throws -> Operations.ReposGetCommitActivityStats.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.id, + forOperation: Operations.ReposGetCommitActivityStats.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stats/commit_activity", @@ -17326,7 +17326,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output.Ok.Body + let body: Operations.ReposGetCommitActivityStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17336,7 +17336,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.commit_hyphen_activity].self, + [Components.Schemas.CommitActivity].self, from: responseBody, transforming: { value in .json(value) @@ -17348,7 +17348,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17397,10 +17397,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`. - public func repos_sol_get_hyphen_contributors_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output { + public func reposGetContributorsStats(_ input: Operations.ReposGetContributorsStats.Input) async throws -> Operations.ReposGetContributorsStats.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.id, + forOperation: Operations.ReposGetContributorsStats.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stats/contributors", @@ -17424,7 +17424,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output.Ok.Body + let body: Operations.ReposGetContributorsStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17434,7 +17434,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.contributor_hyphen_activity].self, + [Components.Schemas.ContributorActivity].self, from: responseBody, transforming: { value in .json(value) @@ -17446,7 +17446,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17490,10 +17490,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/participation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)`. - public func repos_sol_get_hyphen_participation_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output { + public func reposGetParticipationStats(_ input: Operations.ReposGetParticipationStats.Input) async throws -> Operations.ReposGetParticipationStats.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_participation_hyphen_stats.id, + forOperation: Operations.ReposGetParticipationStats.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stats/participation", @@ -17517,7 +17517,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output.Ok.Body + let body: Operations.ReposGetParticipationStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17527,7 +17527,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.participation_hyphen_stats.self, + Components.Schemas.ParticipationStats.self, from: responseBody, transforming: { value in .json(value) @@ -17539,7 +17539,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17549,7 +17549,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17583,10 +17583,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/punch_card`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)`. - public func repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output { + public func reposGetPunchCardStats(_ input: Operations.ReposGetPunchCardStats.Input) async throws -> Operations.ReposGetPunchCardStats.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.id, + forOperation: Operations.ReposGetPunchCardStats.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/stats/punch_card", @@ -17610,7 +17610,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output.Ok.Body + let body: Operations.ReposGetPunchCardStats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17620,7 +17620,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_frequency_hyphen_stat].self, + [Components.Schemas.CodeFrequencyStat].self, from: responseBody, transforming: { value in .json(value) @@ -17652,10 +17652,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/statuses/{sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/statuses/{sha}/post(repos/create-commit-status)`. - public func repos_sol_create_hyphen_commit_hyphen_status(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_status.Output { + public func reposCreateCommitStatus(_ input: Operations.ReposCreateCommitStatus.Input) async throws -> Operations.ReposCreateCommitStatus.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_commit_hyphen_status.id, + forOperation: Operations.ReposCreateCommitStatus.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/statuses/{}", @@ -17688,13 +17688,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateCommitStatus.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Body + let body: Operations.ReposCreateCommitStatus.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17704,7 +17704,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.status.self, + Components.Schemas.Status.self, from: responseBody, transforming: { value in .json(value) @@ -17735,10 +17735,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`. - public func repos_sol_list_hyphen_tags(_ input: Operations.repos_sol_list_hyphen_tags.Input) async throws -> Operations.repos_sol_list_hyphen_tags.Output { + public func reposListTags(_ input: Operations.ReposListTags.Input) async throws -> Operations.ReposListTags.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_tags.id, + forOperation: Operations.ReposListTags.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/tags", @@ -17757,7 +17757,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -17775,13 +17775,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_tags.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListTags.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_tags.Output.Ok.Body + let body: Operations.ReposListTags.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17791,7 +17791,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.tag].self, + [Components.Schemas.Tag].self, from: responseBody, transforming: { value in .json(value) @@ -17828,10 +17828,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`. @available(*, deprecated) - public func repos_sol_list_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output { + public func reposListTagProtection(_ input: Operations.ReposListTagProtection.Input) async throws -> Operations.ReposListTagProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_tag_hyphen_protection.id, + forOperation: Operations.ReposListTagProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/tags/protection", @@ -17855,7 +17855,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output.Ok.Body + let body: Operations.ReposListTagProtection.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17865,7 +17865,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.tag_hyphen_protection].self, + [Components.Schemas.TagProtection].self, from: responseBody, transforming: { value in .json(value) @@ -17877,7 +17877,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17887,7 +17887,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17899,7 +17899,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17909,7 +17909,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -17942,10 +17942,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`. @available(*, deprecated) - public func repos_sol_create_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output { + public func reposCreateTagProtection(_ input: Operations.ReposCreateTagProtection.Input) async throws -> Operations.ReposCreateTagProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_tag_hyphen_protection.id, + forOperation: Operations.ReposCreateTagProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/tags/protection", @@ -17978,7 +17978,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output.Created.Body + let body: Operations.ReposCreateTagProtection.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -17988,7 +17988,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.tag_hyphen_protection.self, + Components.Schemas.TagProtection.self, from: responseBody, transforming: { value in .json(value) @@ -18000,7 +18000,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18010,7 +18010,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18022,7 +18022,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18032,7 +18032,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18065,17 +18065,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`. @available(*, deprecated) - public func repos_sol_delete_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output { + public func reposDeleteTagProtection(_ input: Operations.ReposDeleteTagProtection.Input) async throws -> Operations.ReposDeleteTagProtection.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.id, + forOperation: Operations.ReposDeleteTagProtection.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/tags/protection/{}", parameters: [ input.path.owner, input.path.repo, - input.path.tag_protection_id + input.path.tagProtectionId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -18095,7 +18095,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18105,7 +18105,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18117,7 +18117,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18127,7 +18127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18160,10 +18160,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tarball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tarball/{ref}/get(repos/download-tarball-archive)`. - public func repos_sol_download_hyphen_tarball_hyphen_archive(_ input: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input) async throws -> Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output { + public func reposDownloadTarballArchive(_ input: Operations.ReposDownloadTarballArchive.Input) async throws -> Operations.ReposDownloadTarballArchive.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.id, + forOperation: Operations.ReposDownloadTarballArchive.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/tarball/{}", @@ -18183,7 +18183,7 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposDownloadTarballArchive.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -18211,10 +18211,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)`. - public func repos_sol_list_hyphen_teams(_ input: Operations.repos_sol_list_hyphen_teams.Input) async throws -> Operations.repos_sol_list_hyphen_teams.Output { + public func reposListTeams(_ input: Operations.ReposListTeams.Input) async throws -> Operations.ReposListTeams.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_teams.id, + forOperation: Operations.ReposListTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/teams", @@ -18233,7 +18233,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -18251,13 +18251,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_teams.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListTeams.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_teams.Output.Ok.Body + let body: Operations.ReposListTeams.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18267,7 +18267,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -18282,7 +18282,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18292,7 +18292,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18320,10 +18320,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)`. - public func repos_sol_get_hyphen_all_hyphen_topics(_ input: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_topics.Output { + public func reposGetAllTopics(_ input: Operations.ReposGetAllTopics.Input) async throws -> Operations.ReposGetAllTopics.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_all_hyphen_topics.id, + forOperation: Operations.ReposGetAllTopics.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/topics", @@ -18349,7 +18349,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -18361,7 +18361,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_all_hyphen_topics.Output.Ok.Body + let body: Operations.ReposGetAllTopics.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18371,7 +18371,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.topic.self, + Components.Schemas.Topic.self, from: responseBody, transforming: { value in .json(value) @@ -18383,7 +18383,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18393,7 +18393,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18421,10 +18421,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)`. - public func repos_sol_replace_hyphen_all_hyphen_topics(_ input: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input) async throws -> Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output { + public func reposReplaceAllTopics(_ input: Operations.ReposReplaceAllTopics.Input) async throws -> Operations.ReposReplaceAllTopics.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_replace_hyphen_all_hyphen_topics.id, + forOperation: Operations.ReposReplaceAllTopics.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/topics", @@ -18457,7 +18457,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output.Ok.Body + let body: Operations.ReposReplaceAllTopics.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18467,7 +18467,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.topic.self, + Components.Schemas.Topic.self, from: responseBody, transforming: { value in .json(value) @@ -18479,7 +18479,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18489,7 +18489,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18501,7 +18501,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18511,7 +18511,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -18539,10 +18539,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/clones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)`. - public func repos_sol_get_hyphen_clones(_ input: Operations.repos_sol_get_hyphen_clones.Input) async throws -> Operations.repos_sol_get_hyphen_clones.Output { + public func reposGetClones(_ input: Operations.ReposGetClones.Input) async throws -> Operations.ReposGetClones.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_clones.id, + forOperation: Operations.ReposGetClones.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/traffic/clones", @@ -18573,7 +18573,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_clones.Output.Ok.Body + let body: Operations.ReposGetClones.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18583,7 +18583,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.clone_hyphen_traffic.self, + Components.Schemas.CloneTraffic.self, from: responseBody, transforming: { value in .json(value) @@ -18595,7 +18595,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18605,7 +18605,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18633,10 +18633,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/paths`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)`. - public func repos_sol_get_hyphen_top_hyphen_paths(_ input: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_paths.Output { + public func reposGetTopPaths(_ input: Operations.ReposGetTopPaths.Input) async throws -> Operations.ReposGetTopPaths.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_top_hyphen_paths.id, + forOperation: Operations.ReposGetTopPaths.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/traffic/popular/paths", @@ -18660,7 +18660,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_top_hyphen_paths.Output.Ok.Body + let body: Operations.ReposGetTopPaths.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18670,7 +18670,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.content_hyphen_traffic].self, + [Components.Schemas.ContentTraffic].self, from: responseBody, transforming: { value in .json(value) @@ -18682,7 +18682,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18692,7 +18692,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18720,10 +18720,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/referrers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)`. - public func repos_sol_get_hyphen_top_hyphen_referrers(_ input: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output { + public func reposGetTopReferrers(_ input: Operations.ReposGetTopReferrers.Input) async throws -> Operations.ReposGetTopReferrers.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_top_hyphen_referrers.id, + forOperation: Operations.ReposGetTopReferrers.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/traffic/popular/referrers", @@ -18747,7 +18747,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output.Ok.Body + let body: Operations.ReposGetTopReferrers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18757,7 +18757,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.referrer_hyphen_traffic].self, + [Components.Schemas.ReferrerTraffic].self, from: responseBody, transforming: { value in .json(value) @@ -18769,7 +18769,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18779,7 +18779,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18807,10 +18807,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/views`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)`. - public func repos_sol_get_hyphen_views(_ input: Operations.repos_sol_get_hyphen_views.Input) async throws -> Operations.repos_sol_get_hyphen_views.Output { + public func reposGetViews(_ input: Operations.ReposGetViews.Input) async throws -> Operations.ReposGetViews.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_get_hyphen_views.id, + forOperation: Operations.ReposGetViews.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/traffic/views", @@ -18841,7 +18841,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_get_hyphen_views.Output.Ok.Body + let body: Operations.ReposGetViews.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18851,7 +18851,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.view_hyphen_traffic.self, + Components.Schemas.ViewTraffic.self, from: responseBody, transforming: { value in .json(value) @@ -18863,7 +18863,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18873,7 +18873,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -18901,10 +18901,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/transfer`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/transfer/post(repos/transfer)`. - public func repos_sol_transfer(_ input: Operations.repos_sol_transfer.Input) async throws -> Operations.repos_sol_transfer.Output { + public func reposTransfer(_ input: Operations.ReposTransfer.Input) async throws -> Operations.ReposTransfer.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_transfer.id, + forOperation: Operations.ReposTransfer.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/transfer", @@ -18937,7 +18937,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_transfer.Output.Accepted.Body + let body: Operations.ReposTransfer.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -18947,7 +18947,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.minimal_hyphen_repository.self, + Components.Schemas.MinimalRepository.self, from: responseBody, transforming: { value in .json(value) @@ -18975,10 +18975,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)`. - public func repos_sol_check_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output { + public func reposCheckVulnerabilityAlerts(_ input: Operations.ReposCheckVulnerabilityAlerts.Input) async throws -> Operations.ReposCheckVulnerabilityAlerts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.id, + forOperation: Operations.ReposCheckVulnerabilityAlerts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/vulnerability-alerts", @@ -19018,10 +19018,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)`. - public func repos_sol_enable_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Output { + public func reposEnableVulnerabilityAlerts(_ input: Operations.ReposEnableVulnerabilityAlerts.Input) async throws -> Operations.ReposEnableVulnerabilityAlerts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.id, + forOperation: Operations.ReposEnableVulnerabilityAlerts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/vulnerability-alerts", @@ -19061,10 +19061,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)`. - public func repos_sol_disable_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Output { + public func reposDisableVulnerabilityAlerts(_ input: Operations.ReposDisableVulnerabilityAlerts.Input) async throws -> Operations.ReposDisableVulnerabilityAlerts.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.id, + forOperation: Operations.ReposDisableVulnerabilityAlerts.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/vulnerability-alerts", @@ -19107,10 +19107,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/zipball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/zipball/{ref}/get(repos/download-zipball-archive)`. - public func repos_sol_download_hyphen_zipball_hyphen_archive(_ input: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input) async throws -> Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output { + public func reposDownloadZipballArchive(_ input: Operations.ReposDownloadZipballArchive.Input) async throws -> Operations.ReposDownloadZipballArchive.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.id, + forOperation: Operations.ReposDownloadZipballArchive.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/zipball/{}", @@ -19130,7 +19130,7 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 302: - let headers: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output.Found.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposDownloadZipballArchive.Output.Found.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self @@ -19156,16 +19156,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{template_owner}/{template_repo}/generate`. /// - Remark: Generated from `#/paths//repos/{template_owner}/{template_repo}/generate/post(repos/create-using-template)`. - public func repos_sol_create_hyphen_using_hyphen_template(_ input: Operations.repos_sol_create_hyphen_using_hyphen_template.Input) async throws -> Operations.repos_sol_create_hyphen_using_hyphen_template.Output { + public func reposCreateUsingTemplate(_ input: Operations.ReposCreateUsingTemplate.Input) async throws -> Operations.ReposCreateUsingTemplate.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_using_hyphen_template.id, + forOperation: Operations.ReposCreateUsingTemplate.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/generate", parameters: [ - input.path.template_owner, - input.path.template_repo + input.path.templateOwner, + input.path.templateRepo ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -19191,13 +19191,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateUsingTemplate.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Body + let body: Operations.ReposCreateUsingTemplate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19207,7 +19207,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -19242,10 +19242,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repositories`. /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)`. - public func repos_sol_list_hyphen_public(_ input: Operations.repos_sol_list_hyphen_public.Input) async throws -> Operations.repos_sol_list_hyphen_public.Output { + public func reposListPublic(_ input: Operations.ReposListPublic.Input) async throws -> Operations.ReposListPublic.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_public.id, + forOperation: Operations.ReposListPublic.id, serializer: { input in let path = try converter.renderedPath( template: "/repositories", @@ -19272,13 +19272,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_public.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListPublic.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_public.Output.Ok.Body + let body: Operations.ReposListPublic.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19288,7 +19288,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -19303,7 +19303,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19313,7 +19313,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -19345,10 +19345,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/repos`. /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)`. - public func repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func reposListForAuthenticatedUser(_ input: Operations.ReposListForAuthenticatedUser.Input) async throws -> Operations.ReposListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ReposListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/repos", @@ -19399,7 +19399,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -19431,13 +19431,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ReposListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19447,7 +19447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository].self, + [Components.Schemas.Repository].self, from: responseBody, transforming: { value in .json(value) @@ -19462,7 +19462,7 @@ public struct Client: APIProtocol { )) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19472,7 +19472,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -19486,7 +19486,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19496,7 +19496,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19508,7 +19508,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19518,7 +19518,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19548,10 +19548,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/repos`. /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)`. - public func repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func reposCreateForAuthenticatedUser(_ input: Operations.ReposCreateForAuthenticatedUser.Input) async throws -> Operations.ReposCreateForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ReposCreateForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/repos", @@ -19580,13 +19580,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 201: - let headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Headers = .init(Location: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposCreateForAuthenticatedUser.Output.Created.Headers = .init(location: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Location", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.ReposCreateForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19596,7 +19596,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -19611,7 +19611,7 @@ public struct Client: APIProtocol { )) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19621,7 +19621,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19635,7 +19635,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19645,7 +19645,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19657,7 +19657,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19667,7 +19667,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19679,7 +19679,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19689,7 +19689,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -19701,7 +19701,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19712,7 +19712,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19720,10 +19720,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -19748,10 +19748,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/repository_invitations`. /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)`. - public func repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func reposListInvitationsForAuthenticatedUser(_ input: Operations.ReposListInvitationsForAuthenticatedUser.Input) async throws -> Operations.ReposListInvitationsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ReposListInvitationsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/repository_invitations", @@ -19767,7 +19767,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -19785,13 +19785,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19801,7 +19801,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_invitation].self, + [Components.Schemas.RepositoryInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -19818,7 +19818,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19828,7 +19828,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19840,7 +19840,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19850,7 +19850,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19862,7 +19862,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19872,7 +19872,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19900,15 +19900,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)`. - public func repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func reposAcceptInvitationForAuthenticatedUser(_ input: Operations.ReposAcceptInvitationForAuthenticatedUser.Input) async throws -> Operations.ReposAcceptInvitationForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ReposAcceptInvitationForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/repository_invitations/{}", parameters: [ - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -19928,7 +19928,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19938,7 +19938,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19950,7 +19950,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19960,7 +19960,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -19972,7 +19972,7 @@ public struct Client: APIProtocol { return .conflict(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -19982,7 +19982,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -20012,15 +20012,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)`. - public func repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func reposDeclineInvitationForAuthenticatedUser(_ input: Operations.ReposDeclineInvitationForAuthenticatedUser.Input) async throws -> Operations.ReposDeclineInvitationForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.ReposDeclineInvitationForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/repository_invitations/{}", parameters: [ - input.path.invitation_id + input.path.invitationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -20040,7 +20040,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -20050,7 +20050,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -20064,7 +20064,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -20074,7 +20074,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -20086,7 +20086,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -20096,7 +20096,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -20124,10 +20124,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/repos`. /// - Remark: Generated from `#/paths//users/{username}/repos/get(repos/list-for-user)`. - public func repos_sol_list_hyphen_for_hyphen_user(_ input: Operations.repos_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_user.Output { + public func reposListForUser(_ input: Operations.ReposListForUser.Input) async throws -> Operations.ReposListForUser.Output { try await client.send( input: input, - forOperation: Operations.repos_sol_list_hyphen_for_hyphen_user.id, + forOperation: Operations.ReposListForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/repos", @@ -20166,7 +20166,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -20184,13 +20184,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.ReposListForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.ReposListForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -20200,7 +20200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 847c0fcb7a..7b59bef5b0 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -20,7 +20,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/get(repos/list-for-org)`. - func repos_sol_list_hyphen_for_hyphen_org(_ input: Operations.repos_sol_list_hyphen_for_hyphen_org.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_org.Output + func reposListForOrg(_ input: Operations.ReposListForOrg.Input) async throws -> Operations.ReposListForOrg.Output /// Create an organization repository /// /// Creates a new repository in the specified organization. The authenticated user must be a member of the organization. @@ -29,21 +29,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)`. - func repos_sol_create_hyphen_in_hyphen_org(_ input: Operations.repos_sol_create_hyphen_in_hyphen_org.Input) async throws -> Operations.repos_sol_create_hyphen_in_hyphen_org.Output + func reposCreateInOrg(_ input: Operations.ReposCreateInOrg.Input) async throws -> Operations.ReposCreateInOrg.Output /// Get all organization repository rulesets /// /// Get all the repository rulesets for an organization. /// /// - Remark: HTTP `GET /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)`. - func repos_sol_get_hyphen_org_hyphen_rulesets(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output + func reposGetOrgRulesets(_ input: Operations.ReposGetOrgRulesets.Input) async throws -> Operations.ReposGetOrgRulesets.Output /// Create an organization repository ruleset /// /// Create a repository ruleset for an organization. /// /// - Remark: HTTP `POST /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)`. - func repos_sol_create_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output + func reposCreateOrgRuleset(_ input: Operations.ReposCreateOrgRuleset.Input) async throws -> Operations.ReposCreateOrgRuleset.Output /// List organization rule suites /// /// Lists suites of rule evaluations at the organization level. @@ -51,7 +51,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)`. - func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output + func reposGetOrgRuleSuites(_ input: Operations.ReposGetOrgRuleSuites.Input) async throws -> Operations.ReposGetOrgRuleSuites.Output /// Get an organization rule suite /// /// Gets information about a suite of rule evaluations from within an organization. @@ -59,7 +59,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)`. - func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite(_ input: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output + func reposGetOrgRuleSuite(_ input: Operations.ReposGetOrgRuleSuite.Input) async throws -> Operations.ReposGetOrgRuleSuite.Output /// Get an organization repository ruleset /// /// Get a repository ruleset for an organization. @@ -69,21 +69,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`. - func repos_sol_get_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output + func reposGetOrgRuleset(_ input: Operations.ReposGetOrgRuleset.Input) async throws -> Operations.ReposGetOrgRuleset.Output /// Update an organization repository ruleset /// /// Update a ruleset for an organization. /// /// - Remark: HTTP `PUT /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)`. - func repos_sol_update_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output + func reposUpdateOrgRuleset(_ input: Operations.ReposUpdateOrgRuleset.Input) async throws -> Operations.ReposUpdateOrgRuleset.Output /// Delete an organization repository ruleset /// /// Delete a ruleset for an organization. /// /// - Remark: HTTP `DELETE /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)`. - func repos_sol_delete_hyphen_org_hyphen_ruleset(_ input: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input) async throws -> Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Output + func reposDeleteOrgRuleset(_ input: Operations.ReposDeleteOrgRuleset.Input) async throws -> Operations.ReposDeleteOrgRuleset.Output /// Get a repository /// /// The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. @@ -93,14 +93,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)`. - func repos_sol_get(_ input: Operations.repos_sol_get.Input) async throws -> Operations.repos_sol_get.Output + func reposGet(_ input: Operations.ReposGet.Input) async throws -> Operations.ReposGet.Output /// Update a repository /// /// **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)`. - func repos_sol_update(_ input: Operations.repos_sol_update.Input) async throws -> Operations.repos_sol_update.Output + func reposUpdate(_ input: Operations.ReposUpdate.Input) async throws -> Operations.ReposUpdate.Output /// Delete a repository /// /// Deleting a repository requires admin access. @@ -112,7 +112,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)`. - func repos_sol_delete(_ input: Operations.repos_sol_delete.Input) async throws -> Operations.repos_sol_delete.Output + func reposDelete(_ input: Operations.ReposDelete.Input) async throws -> Operations.ReposDelete.Output /// List repository activities /// /// Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users. @@ -122,7 +122,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)`. - func repos_sol_list_hyphen_activities(_ input: Operations.repos_sol_list_hyphen_activities.Input) async throws -> Operations.repos_sol_list_hyphen_activities.Output + func reposListActivities(_ input: Operations.ReposListActivities.Input) async throws -> Operations.ReposListActivities.Output /// Create an attestation /// /// Store an artifact attestation and associate it with a repository. @@ -133,7 +133,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. - func repos_sol_create_hyphen_attestation(_ input: Operations.repos_sol_create_hyphen_attestation.Input) async throws -> Operations.repos_sol_create_hyphen_attestation.Output + func reposCreateAttestation(_ input: Operations.ReposCreateAttestation.Input) async throws -> Operations.ReposCreateAttestation.Output /// List attestations /// /// List a collection of artifact attestations with a given subject digest that are associated with a repository. @@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/{subject_digest}/get(repos/list-attestations)`. - func repos_sol_list_hyphen_attestations(_ input: Operations.repos_sol_list_hyphen_attestations.Input) async throws -> Operations.repos_sol_list_hyphen_attestations.Output + func reposListAttestations(_ input: Operations.ReposListAttestations.Input) async throws -> Operations.ReposListAttestations.Output /// Get all autolinks of a repository /// /// Gets all autolinks that are configured for a repository. @@ -153,14 +153,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/get(repos/list-autolinks)`. - func repos_sol_list_hyphen_autolinks(_ input: Operations.repos_sol_list_hyphen_autolinks.Input) async throws -> Operations.repos_sol_list_hyphen_autolinks.Output + func reposListAutolinks(_ input: Operations.ReposListAutolinks.Input) async throws -> Operations.ReposListAutolinks.Output /// Create an autolink reference for a repository /// /// Users with admin access to the repository can create an autolink. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)`. - func repos_sol_create_hyphen_autolink(_ input: Operations.repos_sol_create_hyphen_autolink.Input) async throws -> Operations.repos_sol_create_hyphen_autolink.Output + func reposCreateAutolink(_ input: Operations.ReposCreateAutolink.Input) async throws -> Operations.ReposCreateAutolink.Output /// Get an autolink reference of a repository /// /// This returns a single autolink reference by ID that was configured for the given repository. @@ -169,7 +169,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)`. - func repos_sol_get_hyphen_autolink(_ input: Operations.repos_sol_get_hyphen_autolink.Input) async throws -> Operations.repos_sol_get_hyphen_autolink.Output + func reposGetAutolink(_ input: Operations.ReposGetAutolink.Input) async throws -> Operations.ReposGetAutolink.Output /// Delete an autolink reference from a repository /// /// This deletes a single autolink reference by ID that was configured for the given repository. @@ -178,49 +178,49 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)`. - func repos_sol_delete_hyphen_autolink(_ input: Operations.repos_sol_delete_hyphen_autolink.Input) async throws -> Operations.repos_sol_delete_hyphen_autolink.Output + func reposDeleteAutolink(_ input: Operations.ReposDeleteAutolink.Input) async throws -> Operations.ReposDeleteAutolink.Output /// Check if Dependabot security updates are enabled for a repository /// /// Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)`. - func repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output + func reposCheckAutomatedSecurityFixes(_ input: Operations.ReposCheckAutomatedSecurityFixes.Input) async throws -> Operations.ReposCheckAutomatedSecurityFixes.Output /// Enable Dependabot security updates /// /// Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)`. - func repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Output + func reposEnableAutomatedSecurityFixes(_ input: Operations.ReposEnableAutomatedSecurityFixes.Input) async throws -> Operations.ReposEnableAutomatedSecurityFixes.Output /// Disable Dependabot security updates /// /// Disables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)". /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)`. - func repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes(_ input: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input) async throws -> Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Output + func reposDisableAutomatedSecurityFixes(_ input: Operations.ReposDisableAutomatedSecurityFixes.Input) async throws -> Operations.ReposDisableAutomatedSecurityFixes.Output /// List branches /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)`. - func repos_sol_list_hyphen_branches(_ input: Operations.repos_sol_list_hyphen_branches.Input) async throws -> Operations.repos_sol_list_hyphen_branches.Output + func reposListBranches(_ input: Operations.ReposListBranches.Input) async throws -> Operations.ReposListBranches.Output /// Get a branch /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)`. - func repos_sol_get_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_branch.Output + func reposGetBranch(_ input: Operations.ReposGetBranch.Input) async throws -> Operations.ReposGetBranch.Output /// Get branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)`. - func repos_sol_get_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output + func reposGetBranchProtection(_ input: Operations.ReposGetBranchProtection.Input) async throws -> Operations.ReposGetBranchProtection.Output /// Update branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -235,21 +235,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)`. - func repos_sol_update_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output + func reposUpdateBranchProtection(_ input: Operations.ReposUpdateBranchProtection.Input) async throws -> Operations.ReposUpdateBranchProtection.Output /// Delete branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)`. - func repos_sol_delete_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Output + func reposDeleteBranchProtection(_ input: Operations.ReposDeleteBranchProtection.Input) async throws -> Operations.ReposDeleteBranchProtection.Output /// Get admin branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/get(repos/get-admin-branch-protection)`. - func repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output + func reposGetAdminBranchProtection(_ input: Operations.ReposGetAdminBranchProtection.Input) async throws -> Operations.ReposGetAdminBranchProtection.Output /// Set admin branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -258,7 +258,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/post(repos/set-admin-branch-protection)`. - func repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output + func reposSetAdminBranchProtection(_ input: Operations.ReposSetAdminBranchProtection.Input) async throws -> Operations.ReposSetAdminBranchProtection.Output /// Delete admin branch protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -267,14 +267,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)`. - func repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Output + func reposDeleteAdminBranchProtection(_ input: Operations.ReposDeleteAdminBranchProtection.Input) async throws -> Operations.ReposDeleteAdminBranchProtection.Output /// Get pull request review protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/get(repos/get-pull-request-review-protection)`. - func repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output + func reposGetPullRequestReviewProtection(_ input: Operations.ReposGetPullRequestReviewProtection.Input) async throws -> Operations.ReposGetPullRequestReviewProtection.Output /// Update pull request review protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -286,14 +286,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)`. - func repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output + func reposUpdatePullRequestReviewProtection(_ input: Operations.ReposUpdatePullRequestReviewProtection.Input) async throws -> Operations.ReposUpdatePullRequestReviewProtection.Output /// Delete pull request review protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)`. - func repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output + func reposDeletePullRequestReviewProtection(_ input: Operations.ReposDeletePullRequestReviewProtection.Input) async throws -> Operations.ReposDeletePullRequestReviewProtection.Output /// Get commit signature protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -305,7 +305,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)`. - func repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output + func reposGetCommitSignatureProtection(_ input: Operations.ReposGetCommitSignatureProtection.Input) async throws -> Operations.ReposGetCommitSignatureProtection.Output /// Create commit signature protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -314,7 +314,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)`. - func repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output + func reposCreateCommitSignatureProtection(_ input: Operations.ReposCreateCommitSignatureProtection.Input) async throws -> Operations.ReposCreateCommitSignatureProtection.Output /// Delete commit signature protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -323,14 +323,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)`. - func repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Output + func reposDeleteCommitSignatureProtection(_ input: Operations.ReposDeleteCommitSignatureProtection.Input) async throws -> Operations.ReposDeleteCommitSignatureProtection.Output /// Get status checks protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)`. - func repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection(_ input: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input) async throws -> Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output + func reposGetStatusChecksProtection(_ input: Operations.ReposGetStatusChecksProtection.Input) async throws -> Operations.ReposGetStatusChecksProtection.Output /// Update status check protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -339,42 +339,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)`. - func repos_sol_update_hyphen_status_hyphen_check_hyphen_protection(_ input: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input) async throws -> Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output + func reposUpdateStatusCheckProtection(_ input: Operations.ReposUpdateStatusCheckProtection.Input) async throws -> Operations.ReposUpdateStatusCheckProtection.Output /// Remove status check protection /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)`. - func repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection(_ input: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Output + func reposRemoveStatusCheckProtection(_ input: Operations.ReposRemoveStatusCheckProtection.Input) async throws -> Operations.ReposRemoveStatusCheckProtection.Output /// Get all status check contexts /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)`. - func repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output + func reposGetAllStatusCheckContexts(_ input: Operations.ReposGetAllStatusCheckContexts.Input) async throws -> Operations.ReposGetAllStatusCheckContexts.Output /// Add status check contexts /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)`. - func repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output + func reposAddStatusCheckContexts(_ input: Operations.ReposAddStatusCheckContexts.Input) async throws -> Operations.ReposAddStatusCheckContexts.Output /// Set status check contexts /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)`. - func repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output + func reposSetStatusCheckContexts(_ input: Operations.ReposSetStatusCheckContexts.Input) async throws -> Operations.ReposSetStatusCheckContexts.Output /// Remove status check contexts /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)`. - func repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts(_ input: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output + func reposRemoveStatusCheckContexts(_ input: Operations.ReposRemoveStatusCheckContexts.Input) async throws -> Operations.ReposRemoveStatusCheckContexts.Output /// Get access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -386,7 +386,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)`. - func repos_sol_get_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output + func reposGetAccessRestrictions(_ input: Operations.ReposGetAccessRestrictions.Input) async throws -> Operations.ReposGetAccessRestrictions.Output /// Delete access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -395,7 +395,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)`. - func repos_sol_delete_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Output + func reposDeleteAccessRestrictions(_ input: Operations.ReposDeleteAccessRestrictions.Input) async throws -> Operations.ReposDeleteAccessRestrictions.Output /// Get apps with access to the protected branch /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -404,7 +404,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)`. - func repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output + func reposGetAppsWithAccessToProtectedBranch(_ input: Operations.ReposGetAppsWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetAppsWithAccessToProtectedBranch.Output /// Add app access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -413,7 +413,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)`. - func repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output + func reposAddAppAccessRestrictions(_ input: Operations.ReposAddAppAccessRestrictions.Input) async throws -> Operations.ReposAddAppAccessRestrictions.Output /// Set app access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -422,7 +422,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)`. - func repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output + func reposSetAppAccessRestrictions(_ input: Operations.ReposSetAppAccessRestrictions.Input) async throws -> Operations.ReposSetAppAccessRestrictions.Output /// Remove app access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -431,7 +431,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)`. - func repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output + func reposRemoveAppAccessRestrictions(_ input: Operations.ReposRemoveAppAccessRestrictions.Input) async throws -> Operations.ReposRemoveAppAccessRestrictions.Output /// Get teams with access to the protected branch /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -440,7 +440,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)`. - func repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output + func reposGetTeamsWithAccessToProtectedBranch(_ input: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetTeamsWithAccessToProtectedBranch.Output /// Add team access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -449,7 +449,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)`. - func repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output + func reposAddTeamAccessRestrictions(_ input: Operations.ReposAddTeamAccessRestrictions.Input) async throws -> Operations.ReposAddTeamAccessRestrictions.Output /// Set team access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -458,7 +458,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)`. - func repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output + func reposSetTeamAccessRestrictions(_ input: Operations.ReposSetTeamAccessRestrictions.Input) async throws -> Operations.ReposSetTeamAccessRestrictions.Output /// Remove team access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -467,7 +467,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)`. - func repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output + func reposRemoveTeamAccessRestrictions(_ input: Operations.ReposRemoveTeamAccessRestrictions.Input) async throws -> Operations.ReposRemoveTeamAccessRestrictions.Output /// Get users with access to the protected branch /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -476,7 +476,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)`. - func repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(_ input: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input) async throws -> Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output + func reposGetUsersWithAccessToProtectedBranch(_ input: Operations.ReposGetUsersWithAccessToProtectedBranch.Input) async throws -> Operations.ReposGetUsersWithAccessToProtectedBranch.Output /// Add user access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -489,7 +489,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)`. - func repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output + func reposAddUserAccessRestrictions(_ input: Operations.ReposAddUserAccessRestrictions.Input) async throws -> Operations.ReposAddUserAccessRestrictions.Output /// Set user access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -502,7 +502,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)`. - func repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output + func reposSetUserAccessRestrictions(_ input: Operations.ReposSetUserAccessRestrictions.Input) async throws -> Operations.ReposSetUserAccessRestrictions.Output /// Remove user access restrictions /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -515,7 +515,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)`. - func repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions(_ input: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input) async throws -> Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output + func reposRemoveUserAccessRestrictions(_ input: Operations.ReposRemoveUserAccessRestrictions.Input) async throws -> Operations.ReposRemoveUserAccessRestrictions.Output /// Rename a branch /// /// Renames a branch in a repository. @@ -529,7 +529,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/rename`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)`. - func repos_sol_rename_hyphen_branch(_ input: Operations.repos_sol_rename_hyphen_branch.Input) async throws -> Operations.repos_sol_rename_hyphen_branch.Output + func reposRenameBranch(_ input: Operations.ReposRenameBranch.Input) async throws -> Operations.ReposRenameBranch.Output /// List CODEOWNERS errors /// /// List any syntax errors that are detected in the CODEOWNERS @@ -540,7 +540,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codeowners/errors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)`. - func repos_sol_codeowners_hyphen_errors(_ input: Operations.repos_sol_codeowners_hyphen_errors.Input) async throws -> Operations.repos_sol_codeowners_hyphen_errors.Output + func reposCodeownersErrors(_ input: Operations.ReposCodeownersErrors.Input) async throws -> Operations.ReposCodeownersErrors.Output /// List repository collaborators /// /// For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. @@ -554,7 +554,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)`. - func repos_sol_list_hyphen_collaborators(_ input: Operations.repos_sol_list_hyphen_collaborators.Input) async throws -> Operations.repos_sol_list_hyphen_collaborators.Output + func reposListCollaborators(_ input: Operations.ReposListCollaborators.Input) async throws -> Operations.ReposListCollaborators.Output /// Check if a user is a repository collaborator /// /// For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. @@ -567,7 +567,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)`. - func repos_sol_check_hyphen_collaborator(_ input: Operations.repos_sol_check_hyphen_collaborator.Input) async throws -> Operations.repos_sol_check_hyphen_collaborator.Output + func reposCheckCollaborator(_ input: Operations.ReposCheckCollaborator.Input) async throws -> Operations.ReposCheckCollaborator.Output /// Add a repository collaborator /// /// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." @@ -594,7 +594,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)`. - func repos_sol_add_hyphen_collaborator(_ input: Operations.repos_sol_add_hyphen_collaborator.Input) async throws -> Operations.repos_sol_add_hyphen_collaborator.Output + func reposAddCollaborator(_ input: Operations.ReposAddCollaborator.Input) async throws -> Operations.ReposAddCollaborator.Output /// Remove a repository collaborator /// /// Removes a collaborator from a repository. @@ -622,7 +622,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)`. - func repos_sol_remove_hyphen_collaborator(_ input: Operations.repos_sol_remove_hyphen_collaborator.Input) async throws -> Operations.repos_sol_remove_hyphen_collaborator.Output + func reposRemoveCollaborator(_ input: Operations.ReposRemoveCollaborator.Input) async throws -> Operations.ReposRemoveCollaborator.Output /// Get repository permissions for a user /// /// Checks the repository permission of a collaborator. The possible repository @@ -635,7 +635,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)`. - func repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level(_ input: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input) async throws -> Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output + func reposGetCollaboratorPermissionLevel(_ input: Operations.ReposGetCollaboratorPermissionLevel.Input) async throws -> Operations.ReposGetCollaboratorPermissionLevel.Output /// List commit comments for a repository /// /// Lists the commit comments for a specified repository. Comments are ordered by ascending ID. @@ -649,7 +649,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/get(repos/list-commit-comments-for-repo)`. - func repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output + func reposListCommitCommentsForRepo(_ input: Operations.ReposListCommitCommentsForRepo.Input) async throws -> Operations.ReposListCommitCommentsForRepo.Output /// Get a commit comment /// /// Gets a specified commit comment. @@ -663,7 +663,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)`. - func repos_sol_get_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output + func reposGetCommitComment(_ input: Operations.ReposGetCommitComment.Input) async throws -> Operations.ReposGetCommitComment.Output /// Update a commit comment /// /// Updates the contents of a specified commit comment. @@ -677,14 +677,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)`. - func repos_sol_update_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output + func reposUpdateCommitComment(_ input: Operations.ReposUpdateCommitComment.Input) async throws -> Operations.ReposUpdateCommitComment.Output /// Delete a commit comment /// /// /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)`. - func repos_sol_delete_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Output + func reposDeleteCommitComment(_ input: Operations.ReposDeleteCommitComment.Input) async throws -> Operations.ReposDeleteCommitComment.Output /// List commits /// /// **Signature verification object** @@ -719,7 +719,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)`. - func repos_sol_list_hyphen_commits(_ input: Operations.repos_sol_list_hyphen_commits.Input) async throws -> Operations.repos_sol_list_hyphen_commits.Output + func reposListCommits(_ input: Operations.ReposListCommits.Input) async throws -> Operations.ReposListCommits.Output /// List branches for HEAD commit /// /// Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. @@ -728,7 +728,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)`. - func repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output + func reposListBranchesForHeadCommit(_ input: Operations.ReposListBranchesForHeadCommit.Input) async throws -> Operations.ReposListBranchesForHeadCommit.Output /// List commit comments /// /// Lists the comments for a specified commit. @@ -742,7 +742,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/get(repos/list-comments-for-commit)`. - func repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output + func reposListCommentsForCommit(_ input: Operations.ReposListCommentsForCommit.Input) async throws -> Operations.ReposListCommentsForCommit.Output /// Create a commit comment /// /// Create a comment for a commit using its `:commit_sha`. @@ -758,7 +758,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)`. - func repos_sol_create_hyphen_commit_hyphen_comment(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output + func reposCreateCommitComment(_ input: Operations.ReposCreateCommitComment.Input) async throws -> Operations.ReposCreateCommitComment.Output /// List pull requests associated with a commit /// /// Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, it will return merged and open pull requests associated with the commit. @@ -767,7 +767,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)`. - func repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit(_ input: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input) async throws -> Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output + func reposListPullRequestsAssociatedWithCommit(_ input: Operations.ReposListPullRequestsAssociatedWithCommit.Input) async throws -> Operations.ReposListPullRequestsAssociatedWithCommit.Output /// Get a commit /// /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. @@ -813,7 +813,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)`. - func repos_sol_get_hyphen_commit(_ input: Operations.repos_sol_get_hyphen_commit.Input) async throws -> Operations.repos_sol_get_hyphen_commit.Output + func reposGetCommit(_ input: Operations.ReposGetCommit.Input) async throws -> Operations.ReposGetCommit.Output /// Get the combined status for a specific reference /// /// Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. @@ -827,7 +827,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/status`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)`. - func repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref(_ input: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input) async throws -> Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output + func reposGetCombinedStatusForRef(_ input: Operations.ReposGetCombinedStatusForRef.Input) async throws -> Operations.ReposGetCombinedStatusForRef.Output /// List commit statuses for a reference /// /// Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. @@ -836,7 +836,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)`. - func repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref(_ input: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output + func reposListCommitStatusesForRef(_ input: Operations.ReposListCommitStatusesForRef.Input) async throws -> Operations.ReposListCommitStatusesForRef.Output /// Get community profile metrics /// /// Returns all community profile metrics for a repository. The repository cannot be a fork. @@ -853,7 +853,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/community/profile`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/community/profile/get(repos/get-community-profile-metrics)`. - func repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics(_ input: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input) async throws -> Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output + func reposGetCommunityProfileMetrics(_ input: Operations.ReposGetCommunityProfileMetrics.Input) async throws -> Operations.ReposGetCommunityProfileMetrics.Output /// Compare two commits /// /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)." @@ -910,7 +910,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)`. - func repos_sol_compare_hyphen_commits(_ input: Operations.repos_sol_compare_hyphen_commits.Input) async throws -> Operations.repos_sol_compare_hyphen_commits.Output + func reposCompareCommits(_ input: Operations.ReposCompareCommits.Input) async throws -> Operations.ReposCompareCommits.Output /// Get repository content /// /// Gets the contents of a file or directory in a repository. Specify the file path or directory with the `path` parameter. If you omit the `path` parameter, you will receive the contents of the repository's root directory. @@ -941,7 +941,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)`. - func repos_sol_get_hyphen_content(_ input: Operations.repos_sol_get_hyphen_content.Input) async throws -> Operations.repos_sol_get_hyphen_content.Output + func reposGetContent(_ input: Operations.ReposGetContent.Input) async throws -> Operations.ReposGetContent.Output /// Create or update file contents /// /// Creates a new file or replaces an existing file in a repository. @@ -953,7 +953,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)`. - func repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output + func reposCreateOrUpdateFileContents(_ input: Operations.ReposCreateOrUpdateFileContents.Input) async throws -> Operations.ReposCreateOrUpdateFileContents.Output /// Delete a file /// /// Deletes a file in a repository. @@ -969,7 +969,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)`. - func repos_sol_delete_hyphen_file(_ input: Operations.repos_sol_delete_hyphen_file.Input) async throws -> Operations.repos_sol_delete_hyphen_file.Output + func reposDeleteFile(_ input: Operations.ReposDeleteFile.Input) async throws -> Operations.ReposDeleteFile.Output /// List repository contributors /// /// Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API caches contributor data to improve performance. @@ -978,14 +978,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)`. - func repos_sol_list_hyphen_contributors(_ input: Operations.repos_sol_list_hyphen_contributors.Input) async throws -> Operations.repos_sol_list_hyphen_contributors.Output + func reposListContributors(_ input: Operations.ReposListContributors.Input) async throws -> Operations.ReposListContributors.Output /// List deployments /// /// Simple filtering of deployments is available via query parameters: /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/get(repos/list-deployments)`. - func repos_sol_list_hyphen_deployments(_ input: Operations.repos_sol_list_hyphen_deployments.Input) async throws -> Operations.repos_sol_list_hyphen_deployments.Output + func reposListDeployments(_ input: Operations.ReposListDeployments.Input) async throws -> Operations.ReposListDeployments.Output /// Create a deployment /// /// Deployments offer a few configurable parameters with certain defaults. @@ -1039,14 +1039,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)`. - func repos_sol_create_hyphen_deployment(_ input: Operations.repos_sol_create_hyphen_deployment.Input) async throws -> Operations.repos_sol_create_hyphen_deployment.Output + func reposCreateDeployment(_ input: Operations.ReposCreateDeployment.Input) async throws -> Operations.ReposCreateDeployment.Output /// Get a deployment /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)`. - func repos_sol_get_hyphen_deployment(_ input: Operations.repos_sol_get_hyphen_deployment.Input) async throws -> Operations.repos_sol_get_hyphen_deployment.Output + func reposGetDeployment(_ input: Operations.ReposGetDeployment.Input) async throws -> Operations.ReposGetDeployment.Output /// Delete a deployment /// /// If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. @@ -1062,14 +1062,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)`. - func repos_sol_delete_hyphen_deployment(_ input: Operations.repos_sol_delete_hyphen_deployment.Input) async throws -> Operations.repos_sol_delete_hyphen_deployment.Output + func reposDeleteDeployment(_ input: Operations.ReposDeleteDeployment.Input) async throws -> Operations.ReposDeleteDeployment.Output /// List deployment statuses /// /// Users with pull access can view deployment statuses for a deployment: /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)`. - func repos_sol_list_hyphen_deployment_hyphen_statuses(_ input: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output + func reposListDeploymentStatuses(_ input: Operations.ReposListDeploymentStatuses.Input) async throws -> Operations.ReposListDeploymentStatuses.Output /// Create a deployment status /// /// Users with `push` access can create deployment statuses for a given deployment. @@ -1078,14 +1078,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)`. - func repos_sol_create_hyphen_deployment_hyphen_status(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output + func reposCreateDeploymentStatus(_ input: Operations.ReposCreateDeploymentStatus.Input) async throws -> Operations.ReposCreateDeploymentStatus.Output /// Get a deployment status /// /// Users with pull access can view a deployment status for a deployment: /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)`. - func repos_sol_get_hyphen_deployment_hyphen_status(_ input: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output + func reposGetDeploymentStatus(_ input: Operations.ReposGetDeploymentStatus.Input) async throws -> Operations.ReposGetDeploymentStatus.Output /// Create a repository dispatch event /// /// You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see "[RepositoryDispatchEvent](https://docs.github.com/webhooks/event-payloads/#repository_dispatch)." @@ -1098,7 +1098,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)`. - func repos_sol_create_hyphen_dispatch_hyphen_event(_ input: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input) async throws -> Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Output + func reposCreateDispatchEvent(_ input: Operations.ReposCreateDispatchEvent.Input) async throws -> Operations.ReposCreateDispatchEvent.Output /// List environments /// /// Lists the environments for a repository. @@ -1109,7 +1109,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/get(repos/get-all-environments)`. - func repos_sol_get_hyphen_all_hyphen_environments(_ input: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_environments.Output + func reposGetAllEnvironments(_ input: Operations.ReposGetAllEnvironments.Input) async throws -> Operations.ReposGetAllEnvironments.Output /// Get an environment /// /// > [!NOTE] @@ -1121,7 +1121,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/get(repos/get-environment)`. - func repos_sol_get_hyphen_environment(_ input: Operations.repos_sol_get_hyphen_environment.Input) async throws -> Operations.repos_sol_get_hyphen_environment.Output + func reposGetEnvironment(_ input: Operations.ReposGetEnvironment.Input) async throws -> Operations.ReposGetEnvironment.Output /// Create or update an environment /// /// Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "[Environments](/actions/reference/environments#environment-protection-rules)." @@ -1136,14 +1136,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)`. - func repos_sol_create_hyphen_or_hyphen_update_hyphen_environment(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output + func reposCreateOrUpdateEnvironment(_ input: Operations.ReposCreateOrUpdateEnvironment.Input) async throws -> Operations.ReposCreateOrUpdateEnvironment.Output /// Delete an environment /// /// OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)`. - func repos_sol_delete_hyphen_an_hyphen_environment(_ input: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input) async throws -> Operations.repos_sol_delete_hyphen_an_hyphen_environment.Output + func reposDeleteAnEnvironment(_ input: Operations.ReposDeleteAnEnvironment.Input) async throws -> Operations.ReposDeleteAnEnvironment.Output /// List deployment branch policies /// /// Lists the deployment branch policies for an environment. @@ -1154,7 +1154,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/get(repos/list-deployment-branch-policies)`. - func repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies(_ input: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output + func reposListDeploymentBranchPolicies(_ input: Operations.ReposListDeploymentBranchPolicies.Input) async throws -> Operations.ReposListDeploymentBranchPolicies.Output /// Create a deployment branch policy /// /// Creates a deployment branch or tag policy for an environment. @@ -1163,7 +1163,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)`. - func repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output + func reposCreateDeploymentBranchPolicy(_ input: Operations.ReposCreateDeploymentBranchPolicy.Input) async throws -> Operations.ReposCreateDeploymentBranchPolicy.Output /// Get a deployment branch policy /// /// Gets a deployment branch or tag policy for an environment. @@ -1174,7 +1174,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/get(repos/get-deployment-branch-policy)`. - func repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output + func reposGetDeploymentBranchPolicy(_ input: Operations.ReposGetDeploymentBranchPolicy.Input) async throws -> Operations.ReposGetDeploymentBranchPolicy.Output /// Update a deployment branch policy /// /// Updates a deployment branch or tag policy for an environment. @@ -1183,7 +1183,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/put(repos/update-deployment-branch-policy)`. - func repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output + func reposUpdateDeploymentBranchPolicy(_ input: Operations.ReposUpdateDeploymentBranchPolicy.Input) async throws -> Operations.ReposUpdateDeploymentBranchPolicy.Output /// Delete a deployment branch policy /// /// Deletes a deployment branch or tag policy for an environment. @@ -1192,7 +1192,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)`. - func repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy(_ input: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input) async throws -> Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Output + func reposDeleteDeploymentBranchPolicy(_ input: Operations.ReposDeleteDeploymentBranchPolicy.Input) async throws -> Operations.ReposDeleteDeploymentBranchPolicy.Output /// Get all deployment protection rules for an environment /// /// Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." @@ -1203,7 +1203,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/get(repos/get-all-deployment-protection-rules)`. - func repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules(_ input: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output + func reposGetAllDeploymentProtectionRules(_ input: Operations.ReposGetAllDeploymentProtectionRules.Input) async throws -> Operations.ReposGetAllDeploymentProtectionRules.Output /// Create a custom deployment protection rule on an environment /// /// Enable a custom deployment protection rule for an environment. @@ -1216,7 +1216,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/post(repos/create-deployment-protection-rule)`. - func repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output + func reposCreateDeploymentProtectionRule(_ input: Operations.ReposCreateDeploymentProtectionRule.Input) async throws -> Operations.ReposCreateDeploymentProtectionRule.Output /// List custom deployment rule integrations available for an environment /// /// Gets all custom deployment protection rule integrations that are available for an environment. @@ -1231,7 +1231,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/get(repos/list-custom-deployment-rule-integrations)`. - func repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations(_ input: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input) async throws -> Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output + func reposListCustomDeploymentRuleIntegrations(_ input: Operations.ReposListCustomDeploymentRuleIntegrations.Input) async throws -> Operations.ReposListCustomDeploymentRuleIntegrations.Output /// Get a custom deployment protection rule /// /// Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)." @@ -1242,7 +1242,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/get(repos/get-custom-deployment-protection-rule)`. - func repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output + func reposGetCustomDeploymentProtectionRule(_ input: Operations.ReposGetCustomDeploymentProtectionRule.Input) async throws -> Operations.ReposGetCustomDeploymentProtectionRule.Output /// Disable a custom protection rule for an environment /// /// Disables a custom deployment protection rule for an environment. @@ -1253,14 +1253,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)`. - func repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule(_ input: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input) async throws -> Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Output + func reposDisableDeploymentProtectionRule(_ input: Operations.ReposDisableDeploymentProtectionRule.Input) async throws -> Operations.ReposDisableDeploymentProtectionRule.Output /// List forks /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)`. - func repos_sol_list_hyphen_forks(_ input: Operations.repos_sol_list_hyphen_forks.Input) async throws -> Operations.repos_sol_list_hyphen_forks.Output + func reposListForks(_ input: Operations.ReposListForks.Input) async throws -> Operations.ReposListForks.Output /// Create a fork /// /// Create a fork for the authenticated user. @@ -1273,14 +1273,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)`. - func repos_sol_create_hyphen_fork(_ input: Operations.repos_sol_create_hyphen_fork.Input) async throws -> Operations.repos_sol_create_hyphen_fork.Output + func reposCreateFork(_ input: Operations.ReposCreateFork.Input) async throws -> Operations.ReposCreateFork.Output /// List repository webhooks /// /// Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)`. - func repos_sol_list_hyphen_webhooks(_ input: Operations.repos_sol_list_hyphen_webhooks.Input) async throws -> Operations.repos_sol_list_hyphen_webhooks.Output + func reposListWebhooks(_ input: Operations.ReposListWebhooks.Input) async throws -> Operations.ReposListWebhooks.Output /// Create a repository webhook /// /// Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -1288,21 +1288,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)`. - func repos_sol_create_hyphen_webhook(_ input: Operations.repos_sol_create_hyphen_webhook.Input) async throws -> Operations.repos_sol_create_hyphen_webhook.Output + func reposCreateWebhook(_ input: Operations.ReposCreateWebhook.Input) async throws -> Operations.ReposCreateWebhook.Output /// Get a repository webhook /// /// Returns a webhook configured in a repository. To get only the webhook `config` properties, see "[Get a webhook configuration for a repository](/rest/webhooks/repo-config#get-a-webhook-configuration-for-a-repository)." /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)`. - func repos_sol_get_hyphen_webhook(_ input: Operations.repos_sol_get_hyphen_webhook.Input) async throws -> Operations.repos_sol_get_hyphen_webhook.Output + func reposGetWebhook(_ input: Operations.ReposGetWebhook.Input) async throws -> Operations.ReposGetWebhook.Output /// Update a repository webhook /// /// Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for a repository](/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository)." /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)`. - func repos_sol_update_hyphen_webhook(_ input: Operations.repos_sol_update_hyphen_webhook.Input) async throws -> Operations.repos_sol_update_hyphen_webhook.Output + func reposUpdateWebhook(_ input: Operations.ReposUpdateWebhook.Input) async throws -> Operations.ReposUpdateWebhook.Output /// Delete a repository webhook /// /// Delete a webhook for an organization. @@ -1311,7 +1311,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)`. - func repos_sol_delete_hyphen_webhook(_ input: Operations.repos_sol_delete_hyphen_webhook.Input) async throws -> Operations.repos_sol_delete_hyphen_webhook.Output + func reposDeleteWebhook(_ input: Operations.ReposDeleteWebhook.Input) async throws -> Operations.ReposDeleteWebhook.Output /// Get a webhook configuration for a repository /// /// Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/webhooks/repos#get-a-repository-webhook)." @@ -1320,7 +1320,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/get(repos/get-webhook-config-for-repo)`. - func repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output + func reposGetWebhookConfigForRepo(_ input: Operations.ReposGetWebhookConfigForRepo.Input) async throws -> Operations.ReposGetWebhookConfigForRepo.Output /// Update a webhook configuration for a repository /// /// Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](/rest/webhooks/repos#update-a-repository-webhook)." @@ -1329,35 +1329,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/patch(repos/update-webhook-config-for-repo)`. - func repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(_ input: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input) async throws -> Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output + func reposUpdateWebhookConfigForRepo(_ input: Operations.ReposUpdateWebhookConfigForRepo.Input) async throws -> Operations.ReposUpdateWebhookConfigForRepo.Output /// List deliveries for a repository webhook /// /// Returns a list of webhook deliveries for a webhook configured in a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)`. - func repos_sol_list_hyphen_webhook_hyphen_deliveries(_ input: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input) async throws -> Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output + func reposListWebhookDeliveries(_ input: Operations.ReposListWebhookDeliveries.Input) async throws -> Operations.ReposListWebhookDeliveries.Output /// Get a delivery for a repository webhook /// /// Returns a delivery for a webhook configured in a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)`. - func repos_sol_get_hyphen_webhook_hyphen_delivery(_ input: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output + func reposGetWebhookDelivery(_ input: Operations.ReposGetWebhookDelivery.Input) async throws -> Operations.ReposGetWebhookDelivery.Output /// Redeliver a delivery for a repository webhook /// /// Redeliver a webhook delivery for a webhook configured in a repository. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)`. - func repos_sol_redeliver_hyphen_webhook_hyphen_delivery(_ input: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input) async throws -> Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Output + func reposRedeliverWebhookDelivery(_ input: Operations.ReposRedeliverWebhookDelivery.Input) async throws -> Operations.ReposRedeliverWebhookDelivery.Output /// Ping a repository webhook /// /// This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)`. - func repos_sol_ping_hyphen_webhook(_ input: Operations.repos_sol_ping_hyphen_webhook.Input) async throws -> Operations.repos_sol_ping_hyphen_webhook.Output + func reposPingWebhook(_ input: Operations.ReposPingWebhook.Input) async throws -> Operations.ReposPingWebhook.Output /// Test the push repository webhook /// /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. @@ -1367,77 +1367,77 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)`. - func repos_sol_test_hyphen_push_hyphen_webhook(_ input: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input) async throws -> Operations.repos_sol_test_hyphen_push_hyphen_webhook.Output + func reposTestPushWebhook(_ input: Operations.ReposTestPushWebhook.Input) async throws -> Operations.ReposTestPushWebhook.Output /// List repository invitations /// /// When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/invitations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/get(repos/list-invitations)`. - func repos_sol_list_hyphen_invitations(_ input: Operations.repos_sol_list_hyphen_invitations.Input) async throws -> Operations.repos_sol_list_hyphen_invitations.Output + func reposListInvitations(_ input: Operations.ReposListInvitations.Input) async throws -> Operations.ReposListInvitations.Output /// Update a repository invitation /// /// /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/patch(repos/update-invitation)`. - func repos_sol_update_hyphen_invitation(_ input: Operations.repos_sol_update_hyphen_invitation.Input) async throws -> Operations.repos_sol_update_hyphen_invitation.Output + func reposUpdateInvitation(_ input: Operations.ReposUpdateInvitation.Input) async throws -> Operations.ReposUpdateInvitation.Output /// Delete a repository invitation /// /// /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)`. - func repos_sol_delete_hyphen_invitation(_ input: Operations.repos_sol_delete_hyphen_invitation.Input) async throws -> Operations.repos_sol_delete_hyphen_invitation.Output + func reposDeleteInvitation(_ input: Operations.ReposDeleteInvitation.Input) async throws -> Operations.ReposDeleteInvitation.Output /// List deploy keys /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/get(repos/list-deploy-keys)`. - func repos_sol_list_hyphen_deploy_hyphen_keys(_ input: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input) async throws -> Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output + func reposListDeployKeys(_ input: Operations.ReposListDeployKeys.Input) async throws -> Operations.ReposListDeployKeys.Output /// Create a deploy key /// /// You can create a read-only deploy key. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)`. - func repos_sol_create_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output + func reposCreateDeployKey(_ input: Operations.ReposCreateDeployKey.Input) async throws -> Operations.ReposCreateDeployKey.Output /// Get a deploy key /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)`. - func repos_sol_get_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output + func reposGetDeployKey(_ input: Operations.ReposGetDeployKey.Input) async throws -> Operations.ReposGetDeployKey.Output /// Delete a deploy key /// /// Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)`. - func repos_sol_delete_hyphen_deploy_hyphen_key(_ input: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input) async throws -> Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Output + func reposDeleteDeployKey(_ input: Operations.ReposDeleteDeployKey.Input) async throws -> Operations.ReposDeleteDeployKey.Output /// List repository languages /// /// Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/languages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/languages/get(repos/list-languages)`. - func repos_sol_list_hyphen_languages(_ input: Operations.repos_sol_list_hyphen_languages.Input) async throws -> Operations.repos_sol_list_hyphen_languages.Output + func reposListLanguages(_ input: Operations.ReposListLanguages.Input) async throws -> Operations.ReposListLanguages.Output /// Sync a fork branch with the upstream repository /// /// Sync a branch of a forked repository to keep it up-to-date with the upstream repository. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merge-upstream`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)`. - func repos_sol_merge_hyphen_upstream(_ input: Operations.repos_sol_merge_hyphen_upstream.Input) async throws -> Operations.repos_sol_merge_hyphen_upstream.Output + func reposMergeUpstream(_ input: Operations.ReposMergeUpstream.Input) async throws -> Operations.ReposMergeUpstream.Output /// Merge a branch /// /// /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merges`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)`. - func repos_sol_merge(_ input: Operations.repos_sol_merge.Input) async throws -> Operations.repos_sol_merge.Output + func reposMerge(_ input: Operations.ReposMerge.Input) async throws -> Operations.ReposMerge.Output /// Get a GitHub Pages site /// /// Gets information about a GitHub Pages site. @@ -1446,7 +1446,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)`. - func repos_sol_get_hyphen_pages(_ input: Operations.repos_sol_get_hyphen_pages.Input) async throws -> Operations.repos_sol_get_hyphen_pages.Output + func reposGetPages(_ input: Operations.ReposGetPages.Input) async throws -> Operations.ReposGetPages.Output /// Create a GitHub Pages site /// /// Configures a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)." @@ -1457,7 +1457,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)`. - func repos_sol_create_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_site.Output + func reposCreatePagesSite(_ input: Operations.ReposCreatePagesSite.Input) async throws -> Operations.ReposCreatePagesSite.Output /// Update information about a GitHub Pages site /// /// Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages). @@ -1468,7 +1468,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)`. - func repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Output + func reposUpdateInformationAboutPagesSite(_ input: Operations.ReposUpdateInformationAboutPagesSite.Input) async throws -> Operations.ReposUpdateInformationAboutPagesSite.Output /// Delete a GitHub Pages site /// /// Deletes a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages). @@ -1479,7 +1479,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)`. - func repos_sol_delete_hyphen_pages_hyphen_site(_ input: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input) async throws -> Operations.repos_sol_delete_hyphen_pages_hyphen_site.Output + func reposDeletePagesSite(_ input: Operations.ReposDeletePagesSite.Input) async throws -> Operations.ReposDeletePagesSite.Output /// List GitHub Pages builds /// /// Lists builts of a GitHub Pages site. @@ -1488,7 +1488,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/get(repos/list-pages-builds)`. - func repos_sol_list_hyphen_pages_hyphen_builds(_ input: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input) async throws -> Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output + func reposListPagesBuilds(_ input: Operations.ReposListPagesBuilds.Input) async throws -> Operations.ReposListPagesBuilds.Output /// Request a GitHub Pages build /// /// You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. @@ -1497,7 +1497,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/post(repos/request-pages-build)`. - func repos_sol_request_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_request_hyphen_pages_hyphen_build.Output + func reposRequestPagesBuild(_ input: Operations.ReposRequestPagesBuild.Input) async throws -> Operations.ReposRequestPagesBuild.Output /// Get latest Pages build /// /// Gets information about the single most recent build of a GitHub Pages site. @@ -1506,7 +1506,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/latest/get(repos/get-latest-pages-build)`. - func repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output + func reposGetLatestPagesBuild(_ input: Operations.ReposGetLatestPagesBuild.Input) async throws -> Operations.ReposGetLatestPagesBuild.Output /// Get GitHub Pages build /// /// Gets information about a GitHub Pages build. @@ -1515,7 +1515,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/{build_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/{build_id}/get(repos/get-pages-build)`. - func repos_sol_get_hyphen_pages_hyphen_build(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_build.Output + func reposGetPagesBuild(_ input: Operations.ReposGetPagesBuild.Input) async throws -> Operations.ReposGetPagesBuild.Output /// Create a GitHub Pages deployment /// /// Create a GitHub Pages deployment for a repository. @@ -1524,7 +1524,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)`. - func repos_sol_create_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output + func reposCreatePagesDeployment(_ input: Operations.ReposCreatePagesDeployment.Input) async throws -> Operations.ReposCreatePagesDeployment.Output /// Get the status of a GitHub Pages deployment /// /// Gets the current status of a GitHub Pages deployment. @@ -1533,7 +1533,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)`. - func repos_sol_get_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output + func reposGetPagesDeployment(_ input: Operations.ReposGetPagesDeployment.Input) async throws -> Operations.ReposGetPagesDeployment.Output /// Cancel a GitHub Pages deployment /// /// Cancels a GitHub Pages deployment. @@ -1542,7 +1542,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)`. - func repos_sol_cancel_hyphen_pages_hyphen_deployment(_ input: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input) async throws -> Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Output + func reposCancelPagesDeployment(_ input: Operations.ReposCancelPagesDeployment.Input) async throws -> Operations.ReposCancelPagesDeployment.Output /// Get a DNS health check for GitHub Pages /// /// Gets a health check of the DNS settings for the `CNAME` record configured for a repository's GitHub Pages. @@ -1555,28 +1555,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/health`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)`. - func repos_sol_get_hyphen_pages_hyphen_health_hyphen_check(_ input: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output + func reposGetPagesHealthCheck(_ input: Operations.ReposGetPagesHealthCheck.Input) async throws -> Operations.ReposGetPagesHealthCheck.Output /// Check if private vulnerability reporting is enabled for a repository /// /// Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see "[Evaluating the security settings of a repository](https://docs.github.com/code-security/security-advisories/working-with-repository-security-advisories/evaluating-the-security-settings-of-a-repository)". /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)`. - func repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output + func reposCheckPrivateVulnerabilityReporting(_ input: Operations.ReposCheckPrivateVulnerabilityReporting.Input) async throws -> Operations.ReposCheckPrivateVulnerabilityReporting.Output /// Enable private vulnerability reporting for a repository /// /// Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)." /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)`. - func repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output + func reposEnablePrivateVulnerabilityReporting(_ input: Operations.ReposEnablePrivateVulnerabilityReporting.Input) async throws -> Operations.ReposEnablePrivateVulnerabilityReporting.Output /// Disable private vulnerability reporting for a repository /// /// Disables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)". /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)`. - func repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting(_ input: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input) async throws -> Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output + func reposDisablePrivateVulnerabilityReporting(_ input: Operations.ReposDisablePrivateVulnerabilityReporting.Input) async throws -> Operations.ReposDisablePrivateVulnerabilityReporting.Output /// Get all custom property values for a repository /// /// Gets all custom property values that are set for a repository. @@ -1584,7 +1584,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)`. - func repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values(_ input: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output + func reposGetCustomPropertiesValues(_ input: Operations.ReposGetCustomPropertiesValues.Input) async throws -> Operations.ReposGetCustomPropertiesValues.Output /// Create or update custom property values for a repository /// /// Create new or update existing custom property values for a repository. @@ -1594,7 +1594,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)`. - func repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values(_ input: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Output + func reposCreateOrUpdateCustomPropertiesValues(_ input: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input) async throws -> Operations.ReposCreateOrUpdateCustomPropertiesValues.Output /// Get a repository README /// /// Gets the preferred README for a repository. @@ -1606,7 +1606,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)`. - func repos_sol_get_hyphen_readme(_ input: Operations.repos_sol_get_hyphen_readme.Input) async throws -> Operations.repos_sol_get_hyphen_readme.Output + func reposGetReadme(_ input: Operations.ReposGetReadme.Input) async throws -> Operations.ReposGetReadme.Output /// Get a repository README for a directory /// /// Gets the README from a repository directory. @@ -1618,7 +1618,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme/{dir}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)`. - func repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory(_ input: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input) async throws -> Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output + func reposGetReadmeInDirectory(_ input: Operations.ReposGetReadmeInDirectory.Input) async throws -> Operations.ReposGetReadmeInDirectory.Output /// List releases /// /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/repos/repos#list-repository-tags). @@ -1627,7 +1627,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)`. - func repos_sol_list_hyphen_releases(_ input: Operations.repos_sol_list_hyphen_releases.Input) async throws -> Operations.repos_sol_list_hyphen_releases.Output + func reposListReleases(_ input: Operations.ReposListReleases.Input) async throws -> Operations.ReposListReleases.Output /// Create a release /// /// Users with push access to the repository can create a release. @@ -1636,7 +1636,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)`. - func repos_sol_create_hyphen_release(_ input: Operations.repos_sol_create_hyphen_release.Input) async throws -> Operations.repos_sol_create_hyphen_release.Output + func reposCreateRelease(_ input: Operations.ReposCreateRelease.Input) async throws -> Operations.ReposCreateRelease.Output /// Get a release asset /// /// To download the asset's binary content: @@ -1649,28 +1649,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`. - func repos_sol_get_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_asset.Output + func reposGetReleaseAsset(_ input: Operations.ReposGetReleaseAsset.Input) async throws -> Operations.ReposGetReleaseAsset.Output /// Update a release asset /// /// Users with push access to the repository can edit a release asset. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/patch(repos/update-release-asset)`. - func repos_sol_update_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_update_hyphen_release_hyphen_asset.Output + func reposUpdateReleaseAsset(_ input: Operations.ReposUpdateReleaseAsset.Input) async throws -> Operations.ReposUpdateReleaseAsset.Output /// Delete a release asset /// /// /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)`. - func repos_sol_delete_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_delete_hyphen_release_hyphen_asset.Output + func reposDeleteReleaseAsset(_ input: Operations.ReposDeleteReleaseAsset.Input) async throws -> Operations.ReposDeleteReleaseAsset.Output /// Generate release notes content for a release /// /// Generate a name and body describing a [release](https://docs.github.com/rest/releases/releases#get-a-release). The body content will be markdown formatted and contain information like the changes since last release and users who contributed. The generated release notes are not saved anywhere. They are intended to be generated and used when creating a new release. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/generate-notes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)`. - func repos_sol_generate_hyphen_release_hyphen_notes(_ input: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input) async throws -> Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output + func reposGenerateReleaseNotes(_ input: Operations.ReposGenerateReleaseNotes.Input) async throws -> Operations.ReposGenerateReleaseNotes.Output /// Get the latest release /// /// View the latest published full release for the repository. @@ -1679,14 +1679,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/latest/get(repos/get-latest-release)`. - func repos_sol_get_hyphen_latest_hyphen_release(_ input: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_release.Output + func reposGetLatestRelease(_ input: Operations.ReposGetLatestRelease.Input) async throws -> Operations.ReposGetLatestRelease.Output /// Get a release by tag name /// /// Get a published release with the specified tag. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/tags/{tag}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)`. - func repos_sol_get_hyphen_release_hyphen_by_hyphen_tag(_ input: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output + func reposGetReleaseByTag(_ input: Operations.ReposGetReleaseByTag.Input) async throws -> Operations.ReposGetReleaseByTag.Output /// Get a release /// /// Gets a public release with the specified release ID. @@ -1696,28 +1696,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)`. - func repos_sol_get_hyphen_release(_ input: Operations.repos_sol_get_hyphen_release.Input) async throws -> Operations.repos_sol_get_hyphen_release.Output + func reposGetRelease(_ input: Operations.ReposGetRelease.Input) async throws -> Operations.ReposGetRelease.Output /// Update a release /// /// Users with push access to the repository can edit a release. /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)`. - func repos_sol_update_hyphen_release(_ input: Operations.repos_sol_update_hyphen_release.Input) async throws -> Operations.repos_sol_update_hyphen_release.Output + func reposUpdateRelease(_ input: Operations.ReposUpdateRelease.Input) async throws -> Operations.ReposUpdateRelease.Output /// Delete a release /// /// Users with push access to the repository can delete a release. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)`. - func repos_sol_delete_hyphen_release(_ input: Operations.repos_sol_delete_hyphen_release.Input) async throws -> Operations.repos_sol_delete_hyphen_release.Output + func reposDeleteRelease(_ input: Operations.ReposDeleteRelease.Input) async throws -> Operations.ReposDeleteRelease.Output /// List release assets /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/get(repos/list-release-assets)`. - func repos_sol_list_hyphen_release_hyphen_assets(_ input: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input) async throws -> Operations.repos_sol_list_hyphen_release_hyphen_assets.Output + func reposListReleaseAssets(_ input: Operations.ReposListReleaseAssets.Input) async throws -> Operations.ReposListReleaseAssets.Output /// Upload a release asset /// /// This endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in @@ -1742,7 +1742,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)`. - func repos_sol_upload_hyphen_release_hyphen_asset(_ input: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input) async throws -> Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output + func reposUploadReleaseAsset(_ input: Operations.ReposUploadReleaseAsset.Input) async throws -> Operations.ReposUploadReleaseAsset.Output /// Get rules for a branch /// /// Returns all active rules that apply to the specified branch. The branch does not need to exist; rules that would apply @@ -1752,21 +1752,21 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rules/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rules/branches/{branch}/get(repos/get-branch-rules)`. - func repos_sol_get_hyphen_branch_hyphen_rules(_ input: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output + func reposGetBranchRules(_ input: Operations.ReposGetBranchRules.Input) async throws -> Operations.ReposGetBranchRules.Output /// Get all repository rulesets /// /// Get all the rulesets for a repository. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)`. - func repos_sol_get_hyphen_repo_hyphen_rulesets(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output + func reposGetRepoRulesets(_ input: Operations.ReposGetRepoRulesets.Input) async throws -> Operations.ReposGetRepoRulesets.Output /// Create a repository ruleset /// /// Create a ruleset for a repository. /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)`. - func repos_sol_create_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output + func reposCreateRepoRuleset(_ input: Operations.ReposCreateRepoRuleset.Input) async throws -> Operations.ReposCreateRepoRuleset.Output /// List repository rule suites /// /// Lists suites of rule evaluations at the repository level. @@ -1774,7 +1774,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)`. - func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output + func reposGetRepoRuleSuites(_ input: Operations.ReposGetRepoRuleSuites.Input) async throws -> Operations.ReposGetRepoRuleSuites.Output /// Get a repository rule suite /// /// Gets information about a suite of rule evaluations from within a repository. @@ -1782,7 +1782,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)`. - func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output + func reposGetRepoRuleSuite(_ input: Operations.ReposGetRepoRuleSuite.Input) async throws -> Operations.ReposGetRepoRuleSuite.Output /// Get a repository ruleset /// /// Get a ruleset for a repository. @@ -1792,35 +1792,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`. - func repos_sol_get_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output + func reposGetRepoRuleset(_ input: Operations.ReposGetRepoRuleset.Input) async throws -> Operations.ReposGetRepoRuleset.Output /// Update a repository ruleset /// /// Update a ruleset for a repository. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)`. - func repos_sol_update_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output + func reposUpdateRepoRuleset(_ input: Operations.ReposUpdateRepoRuleset.Input) async throws -> Operations.ReposUpdateRepoRuleset.Output /// Delete a repository ruleset /// /// Delete a ruleset for a repository. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)`. - func repos_sol_delete_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output + func reposDeleteRepoRuleset(_ input: Operations.ReposDeleteRepoRuleset.Input) async throws -> Operations.ReposDeleteRepoRuleset.Output /// Get repository ruleset history /// /// Get the history of a repository ruleset. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)`. - func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output + func reposGetRepoRulesetHistory(_ input: Operations.ReposGetRepoRulesetHistory.Input) async throws -> Operations.ReposGetRepoRulesetHistory.Output /// Get repository ruleset version /// /// Get a version of a repository ruleset. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)`. - func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version(_ input: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output + func reposGetRepoRulesetVersion(_ input: Operations.ReposGetRepoRulesetVersion.Input) async throws -> Operations.ReposGetRepoRulesetVersion.Output /// Get the weekly commit activity /// /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. @@ -1830,14 +1830,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`. - func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output + func reposGetCodeFrequencyStats(_ input: Operations.ReposGetCodeFrequencyStats.Input) async throws -> Operations.ReposGetCodeFrequencyStats.Output /// Get the last year of commit activity /// /// Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/commit_activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)`. - func repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output + func reposGetCommitActivityStats(_ input: Operations.ReposGetCommitActivityStats.Input) async throws -> Operations.ReposGetCommitActivityStats.Output /// Get all contributor commit activity /// /// @@ -1853,7 +1853,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`. - func repos_sol_get_hyphen_contributors_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output + func reposGetContributorsStats(_ input: Operations.ReposGetContributorsStats.Input) async throws -> Operations.ReposGetContributorsStats.Output /// Get the weekly commit count /// /// Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. @@ -1864,7 +1864,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/participation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)`. - func repos_sol_get_hyphen_participation_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output + func reposGetParticipationStats(_ input: Operations.ReposGetParticipationStats.Input) async throws -> Operations.ReposGetParticipationStats.Output /// Get the hourly commit count for each day /// /// Each array contains the day number, hour number, and number of commits: @@ -1877,7 +1877,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/punch_card`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)`. - func repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output + func reposGetPunchCardStats(_ input: Operations.ReposGetPunchCardStats.Input) async throws -> Operations.ReposGetPunchCardStats.Output /// Create a commit status /// /// Users with push access in a repository can create commit statuses for a given SHA. @@ -1886,14 +1886,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/statuses/{sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/statuses/{sha}/post(repos/create-commit-status)`. - func repos_sol_create_hyphen_commit_hyphen_status(_ input: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_status.Output + func reposCreateCommitStatus(_ input: Operations.ReposCreateCommitStatus.Input) async throws -> Operations.ReposCreateCommitStatus.Output /// List repository tags /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`. - func repos_sol_list_hyphen_tags(_ input: Operations.repos_sol_list_hyphen_tags.Input) async throws -> Operations.repos_sol_list_hyphen_tags.Output + func reposListTags(_ input: Operations.ReposListTags.Input) async throws -> Operations.ReposListTags.Output /// Closing down - List tag protection states for a repository /// /// > [!WARNING] @@ -1906,7 +1906,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`. @available(*, deprecated) - func repos_sol_list_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output + func reposListTagProtection(_ input: Operations.ReposListTagProtection.Input) async throws -> Operations.ReposListTagProtection.Output /// Closing down - Create a tag protection state for a repository /// /// > [!WARNING] @@ -1918,7 +1918,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`. @available(*, deprecated) - func repos_sol_create_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output + func reposCreateTagProtection(_ input: Operations.ReposCreateTagProtection.Input) async throws -> Operations.ReposCreateTagProtection.Output /// Closing down - Delete a tag protection state for a repository /// /// > [!WARNING] @@ -1930,7 +1930,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`. @available(*, deprecated) - func repos_sol_delete_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output + func reposDeleteTagProtection(_ input: Operations.ReposDeleteTagProtection.Input) async throws -> Operations.ReposDeleteTagProtection.Output /// Download a repository archive (tar) /// /// Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the repository’s default branch (usually @@ -1942,7 +1942,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tarball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tarball/{ref}/get(repos/download-tarball-archive)`. - func repos_sol_download_hyphen_tarball_hyphen_archive(_ input: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input) async throws -> Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output + func reposDownloadTarballArchive(_ input: Operations.ReposDownloadTarballArchive.Input) async throws -> Operations.ReposDownloadTarballArchive.Output /// List repository teams /// /// Lists the teams that have access to the specified repository and that are also visible to the authenticated user. @@ -1953,70 +1953,70 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)`. - func repos_sol_list_hyphen_teams(_ input: Operations.repos_sol_list_hyphen_teams.Input) async throws -> Operations.repos_sol_list_hyphen_teams.Output + func reposListTeams(_ input: Operations.ReposListTeams.Input) async throws -> Operations.ReposListTeams.Output /// Get all repository topics /// /// /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)`. - func repos_sol_get_hyphen_all_hyphen_topics(_ input: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_topics.Output + func reposGetAllTopics(_ input: Operations.ReposGetAllTopics.Input) async throws -> Operations.ReposGetAllTopics.Output /// Replace all repository topics /// /// /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)`. - func repos_sol_replace_hyphen_all_hyphen_topics(_ input: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input) async throws -> Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output + func reposReplaceAllTopics(_ input: Operations.ReposReplaceAllTopics.Input) async throws -> Operations.ReposReplaceAllTopics.Output /// Get repository clones /// /// Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/clones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)`. - func repos_sol_get_hyphen_clones(_ input: Operations.repos_sol_get_hyphen_clones.Input) async throws -> Operations.repos_sol_get_hyphen_clones.Output + func reposGetClones(_ input: Operations.ReposGetClones.Input) async throws -> Operations.ReposGetClones.Output /// Get top referral paths /// /// Get the top 10 popular contents over the last 14 days. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/paths`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)`. - func repos_sol_get_hyphen_top_hyphen_paths(_ input: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_paths.Output + func reposGetTopPaths(_ input: Operations.ReposGetTopPaths.Input) async throws -> Operations.ReposGetTopPaths.Output /// Get top referral sources /// /// Get the top 10 referrers over the last 14 days. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/referrers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)`. - func repos_sol_get_hyphen_top_hyphen_referrers(_ input: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output + func reposGetTopReferrers(_ input: Operations.ReposGetTopReferrers.Input) async throws -> Operations.ReposGetTopReferrers.Output /// Get page views /// /// Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/views`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)`. - func repos_sol_get_hyphen_views(_ input: Operations.repos_sol_get_hyphen_views.Input) async throws -> Operations.repos_sol_get_hyphen_views.Output + func reposGetViews(_ input: Operations.ReposGetViews.Input) async throws -> Operations.ReposGetViews.Output /// Transfer a repository /// /// A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://docs.github.com/articles/about-repository-transfers/). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/transfer`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/transfer/post(repos/transfer)`. - func repos_sol_transfer(_ input: Operations.repos_sol_transfer.Input) async throws -> Operations.repos_sol_transfer.Output + func reposTransfer(_ input: Operations.ReposTransfer.Input) async throws -> Operations.ReposTransfer.Output /// Check if vulnerability alerts are enabled for a repository /// /// Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)". /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)`. - func repos_sol_check_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output + func reposCheckVulnerabilityAlerts(_ input: Operations.ReposCheckVulnerabilityAlerts.Input) async throws -> Operations.ReposCheckVulnerabilityAlerts.Output /// Enable vulnerability alerts /// /// Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://docs.github.com/articles/about-security-alerts-for-vulnerable-dependencies)". /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)`. - func repos_sol_enable_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Output + func reposEnableVulnerabilityAlerts(_ input: Operations.ReposEnableVulnerabilityAlerts.Input) async throws -> Operations.ReposEnableVulnerabilityAlerts.Output /// Disable vulnerability alerts /// /// Disables dependency alerts and the dependency graph for a repository. @@ -2025,7 +2025,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)`. - func repos_sol_disable_hyphen_vulnerability_hyphen_alerts(_ input: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input) async throws -> Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Output + func reposDisableVulnerabilityAlerts(_ input: Operations.ReposDisableVulnerabilityAlerts.Input) async throws -> Operations.ReposDisableVulnerabilityAlerts.Output /// Download a repository archive (zip) /// /// Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually @@ -2037,7 +2037,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/zipball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/zipball/{ref}/get(repos/download-zipball-archive)`. - func repos_sol_download_hyphen_zipball_hyphen_archive(_ input: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input) async throws -> Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output + func reposDownloadZipballArchive(_ input: Operations.ReposDownloadZipballArchive.Input) async throws -> Operations.ReposDownloadZipballArchive.Output /// Create a repository using a template /// /// Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/rest/repos/repos#get-a-repository) endpoint and check that the `is_template` key is `true`. @@ -2046,7 +2046,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{template_owner}/{template_repo}/generate`. /// - Remark: Generated from `#/paths//repos/{template_owner}/{template_repo}/generate/post(repos/create-using-template)`. - func repos_sol_create_hyphen_using_hyphen_template(_ input: Operations.repos_sol_create_hyphen_using_hyphen_template.Input) async throws -> Operations.repos_sol_create_hyphen_using_hyphen_template.Output + func reposCreateUsingTemplate(_ input: Operations.ReposCreateUsingTemplate.Input) async throws -> Operations.ReposCreateUsingTemplate.Output /// List public repositories /// /// Lists all public repositories in the order that they were created. @@ -2057,7 +2057,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repositories`. /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)`. - func repos_sol_list_hyphen_public(_ input: Operations.repos_sol_list_hyphen_public.Input) async throws -> Operations.repos_sol_list_hyphen_public.Output + func reposListPublic(_ input: Operations.ReposListPublic.Input) async throws -> Operations.ReposListPublic.Output /// List repositories for the authenticated user /// /// Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. @@ -2066,7 +2066,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/repos`. /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)`. - func repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func reposListForAuthenticatedUser(_ input: Operations.ReposListForAuthenticatedUser.Input) async throws -> Operations.ReposListForAuthenticatedUser.Output /// Create a repository for the authenticated user /// /// Creates a new repository for the authenticated user. @@ -2075,35 +2075,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/repos`. /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)`. - func repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output + func reposCreateForAuthenticatedUser(_ input: Operations.ReposCreateForAuthenticatedUser.Input) async throws -> Operations.ReposCreateForAuthenticatedUser.Output /// List repository invitations for the authenticated user /// /// When authenticating as a user, this endpoint will list all currently open repository invitations for that user. /// /// - Remark: HTTP `GET /user/repository_invitations`. /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)`. - func repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output + func reposListInvitationsForAuthenticatedUser(_ input: Operations.ReposListInvitationsForAuthenticatedUser.Input) async throws -> Operations.ReposListInvitationsForAuthenticatedUser.Output /// Accept a repository invitation /// /// /// /// - Remark: HTTP `PATCH /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)`. - func repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output + func reposAcceptInvitationForAuthenticatedUser(_ input: Operations.ReposAcceptInvitationForAuthenticatedUser.Input) async throws -> Operations.ReposAcceptInvitationForAuthenticatedUser.Output /// Decline a repository invitation /// /// /// /// - Remark: HTTP `DELETE /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)`. - func repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output + func reposDeclineInvitationForAuthenticatedUser(_ input: Operations.ReposDeclineInvitationForAuthenticatedUser.Input) async throws -> Operations.ReposDeclineInvitationForAuthenticatedUser.Output /// List repositories for a user /// /// Lists public repositories for the specified user. /// /// - Remark: HTTP `GET /users/{username}/repos`. /// - Remark: Generated from `#/paths//users/{username}/repos/get(repos/list-for-user)`. - func repos_sol_list_hyphen_for_hyphen_user(_ input: Operations.repos_sol_list_hyphen_for_hyphen_user.Input) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_user.Output + func reposListForUser(_ input: Operations.ReposListForUser.Input) async throws -> Operations.ReposListForUser.Output } /// Convenience overloads for operation inputs. @@ -2117,12 +2117,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/get(repos/list-for-org)`. - public func repos_sol_list_hyphen_for_hyphen_org( - path: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_org.Output { - try await repos_sol_list_hyphen_for_hyphen_org(Operations.repos_sol_list_hyphen_for_hyphen_org.Input( + public func reposListForOrg( + path: Operations.ReposListForOrg.Input.Path, + query: Operations.ReposListForOrg.Input.Query = .init(), + headers: Operations.ReposListForOrg.Input.Headers = .init() + ) async throws -> Operations.ReposListForOrg.Output { + try await reposListForOrg(Operations.ReposListForOrg.Input( path: path, query: query, headers: headers @@ -2136,12 +2136,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)`. - public func repos_sol_create_hyphen_in_hyphen_org( - path: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Path, - headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_in_hyphen_org.Output { - try await repos_sol_create_hyphen_in_hyphen_org(Operations.repos_sol_create_hyphen_in_hyphen_org.Input( + public func reposCreateInOrg( + path: Operations.ReposCreateInOrg.Input.Path, + headers: Operations.ReposCreateInOrg.Input.Headers = .init(), + body: Operations.ReposCreateInOrg.Input.Body + ) async throws -> Operations.ReposCreateInOrg.Output { + try await reposCreateInOrg(Operations.ReposCreateInOrg.Input( path: path, headers: headers, body: body @@ -2153,12 +2153,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)`. - public func repos_sol_get_hyphen_org_hyphen_rulesets( - path: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Path, - query: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output { - try await repos_sol_get_hyphen_org_hyphen_rulesets(Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input( + public func reposGetOrgRulesets( + path: Operations.ReposGetOrgRulesets.Input.Path, + query: Operations.ReposGetOrgRulesets.Input.Query = .init(), + headers: Operations.ReposGetOrgRulesets.Input.Headers = .init() + ) async throws -> Operations.ReposGetOrgRulesets.Output { + try await reposGetOrgRulesets(Operations.ReposGetOrgRulesets.Input( path: path, query: query, headers: headers @@ -2170,12 +2170,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)`. - public func repos_sol_create_hyphen_org_hyphen_ruleset( - path: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output { - try await repos_sol_create_hyphen_org_hyphen_ruleset(Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input( + public func reposCreateOrgRuleset( + path: Operations.ReposCreateOrgRuleset.Input.Path, + headers: Operations.ReposCreateOrgRuleset.Input.Headers = .init(), + body: Operations.ReposCreateOrgRuleset.Input.Body + ) async throws -> Operations.ReposCreateOrgRuleset.Output { + try await reposCreateOrgRuleset(Operations.ReposCreateOrgRuleset.Input( path: path, headers: headers, body: body @@ -2188,12 +2188,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)`. - public func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites( - path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Path, - query: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output { - try await repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites(Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input( + public func reposGetOrgRuleSuites( + path: Operations.ReposGetOrgRuleSuites.Input.Path, + query: Operations.ReposGetOrgRuleSuites.Input.Query = .init(), + headers: Operations.ReposGetOrgRuleSuites.Input.Headers = .init() + ) async throws -> Operations.ReposGetOrgRuleSuites.Output { + try await reposGetOrgRuleSuites(Operations.ReposGetOrgRuleSuites.Input( path: path, query: query, headers: headers @@ -2206,11 +2206,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)`. - public func repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite( - path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Path, - headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output { - try await repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite(Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input( + public func reposGetOrgRuleSuite( + path: Operations.ReposGetOrgRuleSuite.Input.Path, + headers: Operations.ReposGetOrgRuleSuite.Input.Headers = .init() + ) async throws -> Operations.ReposGetOrgRuleSuite.Output { + try await reposGetOrgRuleSuite(Operations.ReposGetOrgRuleSuite.Input( path: path, headers: headers )) @@ -2224,11 +2224,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`. - public func repos_sol_get_hyphen_org_hyphen_ruleset( - path: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output { - try await repos_sol_get_hyphen_org_hyphen_ruleset(Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input( + public func reposGetOrgRuleset( + path: Operations.ReposGetOrgRuleset.Input.Path, + headers: Operations.ReposGetOrgRuleset.Input.Headers = .init() + ) async throws -> Operations.ReposGetOrgRuleset.Output { + try await reposGetOrgRuleset(Operations.ReposGetOrgRuleset.Input( path: path, headers: headers )) @@ -2239,12 +2239,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)`. - public func repos_sol_update_hyphen_org_hyphen_ruleset( - path: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output { - try await repos_sol_update_hyphen_org_hyphen_ruleset(Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input( + public func reposUpdateOrgRuleset( + path: Operations.ReposUpdateOrgRuleset.Input.Path, + headers: Operations.ReposUpdateOrgRuleset.Input.Headers = .init(), + body: Operations.ReposUpdateOrgRuleset.Input.Body? = nil + ) async throws -> Operations.ReposUpdateOrgRuleset.Output { + try await reposUpdateOrgRuleset(Operations.ReposUpdateOrgRuleset.Input( path: path, headers: headers, body: body @@ -2256,11 +2256,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)`. - public func repos_sol_delete_hyphen_org_hyphen_ruleset( - path: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Output { - try await repos_sol_delete_hyphen_org_hyphen_ruleset(Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input( + public func reposDeleteOrgRuleset( + path: Operations.ReposDeleteOrgRuleset.Input.Path, + headers: Operations.ReposDeleteOrgRuleset.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteOrgRuleset.Output { + try await reposDeleteOrgRuleset(Operations.ReposDeleteOrgRuleset.Input( path: path, headers: headers )) @@ -2274,11 +2274,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)`. - public func repos_sol_get( - path: Operations.repos_sol_get.Input.Path, - headers: Operations.repos_sol_get.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get.Output { - try await repos_sol_get(Operations.repos_sol_get.Input( + public func reposGet( + path: Operations.ReposGet.Input.Path, + headers: Operations.ReposGet.Input.Headers = .init() + ) async throws -> Operations.ReposGet.Output { + try await reposGet(Operations.ReposGet.Input( path: path, headers: headers )) @@ -2289,12 +2289,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)`. - public func repos_sol_update( - path: Operations.repos_sol_update.Input.Path, - headers: Operations.repos_sol_update.Input.Headers = .init(), - body: Operations.repos_sol_update.Input.Body? = nil - ) async throws -> Operations.repos_sol_update.Output { - try await repos_sol_update(Operations.repos_sol_update.Input( + public func reposUpdate( + path: Operations.ReposUpdate.Input.Path, + headers: Operations.ReposUpdate.Input.Headers = .init(), + body: Operations.ReposUpdate.Input.Body? = nil + ) async throws -> Operations.ReposUpdate.Output { + try await reposUpdate(Operations.ReposUpdate.Input( path: path, headers: headers, body: body @@ -2311,11 +2311,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)`. - public func repos_sol_delete( - path: Operations.repos_sol_delete.Input.Path, - headers: Operations.repos_sol_delete.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete.Output { - try await repos_sol_delete(Operations.repos_sol_delete.Input( + public func reposDelete( + path: Operations.ReposDelete.Input.Path, + headers: Operations.ReposDelete.Input.Headers = .init() + ) async throws -> Operations.ReposDelete.Output { + try await reposDelete(Operations.ReposDelete.Input( path: path, headers: headers )) @@ -2329,12 +2329,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)`. - public func repos_sol_list_hyphen_activities( - path: Operations.repos_sol_list_hyphen_activities.Input.Path, - query: Operations.repos_sol_list_hyphen_activities.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_activities.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_activities.Output { - try await repos_sol_list_hyphen_activities(Operations.repos_sol_list_hyphen_activities.Input( + public func reposListActivities( + path: Operations.ReposListActivities.Input.Path, + query: Operations.ReposListActivities.Input.Query = .init(), + headers: Operations.ReposListActivities.Input.Headers = .init() + ) async throws -> Operations.ReposListActivities.Output { + try await reposListActivities(Operations.ReposListActivities.Input( path: path, query: query, headers: headers @@ -2350,12 +2350,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. - public func repos_sol_create_hyphen_attestation( - path: Operations.repos_sol_create_hyphen_attestation.Input.Path, - headers: Operations.repos_sol_create_hyphen_attestation.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_attestation.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_attestation.Output { - try await repos_sol_create_hyphen_attestation(Operations.repos_sol_create_hyphen_attestation.Input( + public func reposCreateAttestation( + path: Operations.ReposCreateAttestation.Input.Path, + headers: Operations.ReposCreateAttestation.Input.Headers = .init(), + body: Operations.ReposCreateAttestation.Input.Body + ) async throws -> Operations.ReposCreateAttestation.Output { + try await reposCreateAttestation(Operations.ReposCreateAttestation.Input( path: path, headers: headers, body: body @@ -2371,12 +2371,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/{subject_digest}/get(repos/list-attestations)`. - public func repos_sol_list_hyphen_attestations( - path: Operations.repos_sol_list_hyphen_attestations.Input.Path, - query: Operations.repos_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_attestations.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_attestations.Output { - try await repos_sol_list_hyphen_attestations(Operations.repos_sol_list_hyphen_attestations.Input( + public func reposListAttestations( + path: Operations.ReposListAttestations.Input.Path, + query: Operations.ReposListAttestations.Input.Query = .init(), + headers: Operations.ReposListAttestations.Input.Headers = .init() + ) async throws -> Operations.ReposListAttestations.Output { + try await reposListAttestations(Operations.ReposListAttestations.Input( path: path, query: query, headers: headers @@ -2390,11 +2390,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/get(repos/list-autolinks)`. - public func repos_sol_list_hyphen_autolinks( - path: Operations.repos_sol_list_hyphen_autolinks.Input.Path, - headers: Operations.repos_sol_list_hyphen_autolinks.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_autolinks.Output { - try await repos_sol_list_hyphen_autolinks(Operations.repos_sol_list_hyphen_autolinks.Input( + public func reposListAutolinks( + path: Operations.ReposListAutolinks.Input.Path, + headers: Operations.ReposListAutolinks.Input.Headers = .init() + ) async throws -> Operations.ReposListAutolinks.Output { + try await reposListAutolinks(Operations.ReposListAutolinks.Input( path: path, headers: headers )) @@ -2405,12 +2405,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)`. - public func repos_sol_create_hyphen_autolink( - path: Operations.repos_sol_create_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_create_hyphen_autolink.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_autolink.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_autolink.Output { - try await repos_sol_create_hyphen_autolink(Operations.repos_sol_create_hyphen_autolink.Input( + public func reposCreateAutolink( + path: Operations.ReposCreateAutolink.Input.Path, + headers: Operations.ReposCreateAutolink.Input.Headers = .init(), + body: Operations.ReposCreateAutolink.Input.Body + ) async throws -> Operations.ReposCreateAutolink.Output { + try await reposCreateAutolink(Operations.ReposCreateAutolink.Input( path: path, headers: headers, body: body @@ -2424,11 +2424,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)`. - public func repos_sol_get_hyphen_autolink( - path: Operations.repos_sol_get_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_get_hyphen_autolink.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_autolink.Output { - try await repos_sol_get_hyphen_autolink(Operations.repos_sol_get_hyphen_autolink.Input( + public func reposGetAutolink( + path: Operations.ReposGetAutolink.Input.Path, + headers: Operations.ReposGetAutolink.Input.Headers = .init() + ) async throws -> Operations.ReposGetAutolink.Output { + try await reposGetAutolink(Operations.ReposGetAutolink.Input( path: path, headers: headers )) @@ -2441,11 +2441,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)`. - public func repos_sol_delete_hyphen_autolink( - path: Operations.repos_sol_delete_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_delete_hyphen_autolink.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_autolink.Output { - try await repos_sol_delete_hyphen_autolink(Operations.repos_sol_delete_hyphen_autolink.Input( + public func reposDeleteAutolink( + path: Operations.ReposDeleteAutolink.Input.Path, + headers: Operations.ReposDeleteAutolink.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteAutolink.Output { + try await reposDeleteAutolink(Operations.ReposDeleteAutolink.Input( path: path, headers: headers )) @@ -2456,11 +2456,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)`. - public func repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes( - path: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path, - headers: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Headers = .init() - ) async throws -> Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output { - try await repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes(Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input( + public func reposCheckAutomatedSecurityFixes( + path: Operations.ReposCheckAutomatedSecurityFixes.Input.Path, + headers: Operations.ReposCheckAutomatedSecurityFixes.Input.Headers = .init() + ) async throws -> Operations.ReposCheckAutomatedSecurityFixes.Output { + try await reposCheckAutomatedSecurityFixes(Operations.ReposCheckAutomatedSecurityFixes.Input( path: path, headers: headers )) @@ -2471,8 +2471,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)`. - public func repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes(path: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path) async throws -> Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Output { - try await repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes(Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input(path: path)) + public func reposEnableAutomatedSecurityFixes(path: Operations.ReposEnableAutomatedSecurityFixes.Input.Path) async throws -> Operations.ReposEnableAutomatedSecurityFixes.Output { + try await reposEnableAutomatedSecurityFixes(Operations.ReposEnableAutomatedSecurityFixes.Input(path: path)) } /// Disable Dependabot security updates /// @@ -2480,8 +2480,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)`. - public func repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes(path: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path) async throws -> Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Output { - try await repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes(Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input(path: path)) + public func reposDisableAutomatedSecurityFixes(path: Operations.ReposDisableAutomatedSecurityFixes.Input.Path) async throws -> Operations.ReposDisableAutomatedSecurityFixes.Output { + try await reposDisableAutomatedSecurityFixes(Operations.ReposDisableAutomatedSecurityFixes.Input(path: path)) } /// List branches /// @@ -2489,12 +2489,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)`. - public func repos_sol_list_hyphen_branches( - path: Operations.repos_sol_list_hyphen_branches.Input.Path, - query: Operations.repos_sol_list_hyphen_branches.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_branches.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_branches.Output { - try await repos_sol_list_hyphen_branches(Operations.repos_sol_list_hyphen_branches.Input( + public func reposListBranches( + path: Operations.ReposListBranches.Input.Path, + query: Operations.ReposListBranches.Input.Query = .init(), + headers: Operations.ReposListBranches.Input.Headers = .init() + ) async throws -> Operations.ReposListBranches.Output { + try await reposListBranches(Operations.ReposListBranches.Input( path: path, query: query, headers: headers @@ -2506,11 +2506,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)`. - public func repos_sol_get_hyphen_branch( - path: Operations.repos_sol_get_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_branch.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_branch.Output { - try await repos_sol_get_hyphen_branch(Operations.repos_sol_get_hyphen_branch.Input( + public func reposGetBranch( + path: Operations.ReposGetBranch.Input.Path, + headers: Operations.ReposGetBranch.Input.Headers = .init() + ) async throws -> Operations.ReposGetBranch.Output { + try await reposGetBranch(Operations.ReposGetBranch.Input( path: path, headers: headers )) @@ -2521,11 +2521,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)`. - public func repos_sol_get_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output { - try await repos_sol_get_hyphen_branch_hyphen_protection(Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input( + public func reposGetBranchProtection( + path: Operations.ReposGetBranchProtection.Input.Path, + headers: Operations.ReposGetBranchProtection.Input.Headers = .init() + ) async throws -> Operations.ReposGetBranchProtection.Output { + try await reposGetBranchProtection(Operations.ReposGetBranchProtection.Input( path: path, headers: headers )) @@ -2544,12 +2544,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)`. - public func repos_sol_update_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body - ) async throws -> Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output { - try await repos_sol_update_hyphen_branch_hyphen_protection(Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input( + public func reposUpdateBranchProtection( + path: Operations.ReposUpdateBranchProtection.Input.Path, + headers: Operations.ReposUpdateBranchProtection.Input.Headers = .init(), + body: Operations.ReposUpdateBranchProtection.Input.Body + ) async throws -> Operations.ReposUpdateBranchProtection.Output { + try await reposUpdateBranchProtection(Operations.ReposUpdateBranchProtection.Input( path: path, headers: headers, body: body @@ -2561,11 +2561,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)`. - public func repos_sol_delete_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Output { - try await repos_sol_delete_hyphen_branch_hyphen_protection(Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input( + public func reposDeleteBranchProtection( + path: Operations.ReposDeleteBranchProtection.Input.Path, + headers: Operations.ReposDeleteBranchProtection.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteBranchProtection.Output { + try await reposDeleteBranchProtection(Operations.ReposDeleteBranchProtection.Input( path: path, headers: headers )) @@ -2576,11 +2576,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/get(repos/get-admin-branch-protection)`. - public func repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output { - try await repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection(Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input( + public func reposGetAdminBranchProtection( + path: Operations.ReposGetAdminBranchProtection.Input.Path, + headers: Operations.ReposGetAdminBranchProtection.Input.Headers = .init() + ) async throws -> Operations.ReposGetAdminBranchProtection.Output { + try await reposGetAdminBranchProtection(Operations.ReposGetAdminBranchProtection.Input( path: path, headers: headers )) @@ -2593,11 +2593,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/post(repos/set-admin-branch-protection)`. - public func repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output { - try await repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection(Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input( + public func reposSetAdminBranchProtection( + path: Operations.ReposSetAdminBranchProtection.Input.Path, + headers: Operations.ReposSetAdminBranchProtection.Input.Headers = .init() + ) async throws -> Operations.ReposSetAdminBranchProtection.Output { + try await reposSetAdminBranchProtection(Operations.ReposSetAdminBranchProtection.Input( path: path, headers: headers )) @@ -2610,11 +2610,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)`. - public func repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection( - path: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Output { - try await repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection(Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input( + public func reposDeleteAdminBranchProtection( + path: Operations.ReposDeleteAdminBranchProtection.Input.Path, + headers: Operations.ReposDeleteAdminBranchProtection.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteAdminBranchProtection.Output { + try await reposDeleteAdminBranchProtection(Operations.ReposDeleteAdminBranchProtection.Input( path: path, headers: headers )) @@ -2625,11 +2625,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/get(repos/get-pull-request-review-protection)`. - public func repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection( - path: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { - try await repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input( + public func reposGetPullRequestReviewProtection( + path: Operations.ReposGetPullRequestReviewProtection.Input.Path, + headers: Operations.ReposGetPullRequestReviewProtection.Input.Headers = .init() + ) async throws -> Operations.ReposGetPullRequestReviewProtection.Output { + try await reposGetPullRequestReviewProtection(Operations.ReposGetPullRequestReviewProtection.Input( path: path, headers: headers )) @@ -2645,12 +2645,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)`. - public func repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection( - path: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { - try await repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input( + public func reposUpdatePullRequestReviewProtection( + path: Operations.ReposUpdatePullRequestReviewProtection.Input.Path, + headers: Operations.ReposUpdatePullRequestReviewProtection.Input.Headers = .init(), + body: Operations.ReposUpdatePullRequestReviewProtection.Input.Body? = nil + ) async throws -> Operations.ReposUpdatePullRequestReviewProtection.Output { + try await reposUpdatePullRequestReviewProtection(Operations.ReposUpdatePullRequestReviewProtection.Input( path: path, headers: headers, body: body @@ -2662,11 +2662,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)`. - public func repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection( - path: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output { - try await repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection(Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input( + public func reposDeletePullRequestReviewProtection( + path: Operations.ReposDeletePullRequestReviewProtection.Input.Path, + headers: Operations.ReposDeletePullRequestReviewProtection.Input.Headers = .init() + ) async throws -> Operations.ReposDeletePullRequestReviewProtection.Output { + try await reposDeletePullRequestReviewProtection(Operations.ReposDeletePullRequestReviewProtection.Input( path: path, headers: headers )) @@ -2682,11 +2682,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)`. - public func repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection( - path: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output { - try await repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection(Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input( + public func reposGetCommitSignatureProtection( + path: Operations.ReposGetCommitSignatureProtection.Input.Path, + headers: Operations.ReposGetCommitSignatureProtection.Input.Headers = .init() + ) async throws -> Operations.ReposGetCommitSignatureProtection.Output { + try await reposGetCommitSignatureProtection(Operations.ReposGetCommitSignatureProtection.Input( path: path, headers: headers )) @@ -2699,11 +2699,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)`. - public func repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection( - path: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output { - try await repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection(Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input( + public func reposCreateCommitSignatureProtection( + path: Operations.ReposCreateCommitSignatureProtection.Input.Path, + headers: Operations.ReposCreateCommitSignatureProtection.Input.Headers = .init() + ) async throws -> Operations.ReposCreateCommitSignatureProtection.Output { + try await reposCreateCommitSignatureProtection(Operations.ReposCreateCommitSignatureProtection.Input( path: path, headers: headers )) @@ -2716,11 +2716,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)`. - public func repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection( - path: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Output { - try await repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection(Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input( + public func reposDeleteCommitSignatureProtection( + path: Operations.ReposDeleteCommitSignatureProtection.Input.Path, + headers: Operations.ReposDeleteCommitSignatureProtection.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteCommitSignatureProtection.Output { + try await reposDeleteCommitSignatureProtection(Operations.ReposDeleteCommitSignatureProtection.Input( path: path, headers: headers )) @@ -2731,11 +2731,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)`. - public func repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection( - path: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output { - try await repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection(Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input( + public func reposGetStatusChecksProtection( + path: Operations.ReposGetStatusChecksProtection.Input.Path, + headers: Operations.ReposGetStatusChecksProtection.Input.Headers = .init() + ) async throws -> Operations.ReposGetStatusChecksProtection.Output { + try await reposGetStatusChecksProtection(Operations.ReposGetStatusChecksProtection.Input( path: path, headers: headers )) @@ -2748,12 +2748,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)`. - public func repos_sol_update_hyphen_status_hyphen_check_hyphen_protection( - path: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output { - try await repos_sol_update_hyphen_status_hyphen_check_hyphen_protection(Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input( + public func reposUpdateStatusCheckProtection( + path: Operations.ReposUpdateStatusCheckProtection.Input.Path, + headers: Operations.ReposUpdateStatusCheckProtection.Input.Headers = .init(), + body: Operations.ReposUpdateStatusCheckProtection.Input.Body? = nil + ) async throws -> Operations.ReposUpdateStatusCheckProtection.Output { + try await reposUpdateStatusCheckProtection(Operations.ReposUpdateStatusCheckProtection.Input( path: path, headers: headers, body: body @@ -2765,8 +2765,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)`. - public func repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection(path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input.Path) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Output { - try await repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input(path: path)) + public func reposRemoveStatusCheckProtection(path: Operations.ReposRemoveStatusCheckProtection.Input.Path) async throws -> Operations.ReposRemoveStatusCheckProtection.Output { + try await reposRemoveStatusCheckProtection(Operations.ReposRemoveStatusCheckProtection.Input(path: path)) } /// Get all status check contexts /// @@ -2774,11 +2774,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)`. - public func repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts( - path: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output { - try await repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts(Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input( + public func reposGetAllStatusCheckContexts( + path: Operations.ReposGetAllStatusCheckContexts.Input.Path, + headers: Operations.ReposGetAllStatusCheckContexts.Input.Headers = .init() + ) async throws -> Operations.ReposGetAllStatusCheckContexts.Output { + try await reposGetAllStatusCheckContexts(Operations.ReposGetAllStatusCheckContexts.Input( path: path, headers: headers )) @@ -2789,12 +2789,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)`. - public func repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts( - path: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil - ) async throws -> Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output { - try await repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts(Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input( + public func reposAddStatusCheckContexts( + path: Operations.ReposAddStatusCheckContexts.Input.Path, + headers: Operations.ReposAddStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposAddStatusCheckContexts.Input.Body? = nil + ) async throws -> Operations.ReposAddStatusCheckContexts.Output { + try await reposAddStatusCheckContexts(Operations.ReposAddStatusCheckContexts.Input( path: path, headers: headers, body: body @@ -2806,12 +2806,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)`. - public func repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts( - path: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil - ) async throws -> Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output { - try await repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts(Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input( + public func reposSetStatusCheckContexts( + path: Operations.ReposSetStatusCheckContexts.Input.Path, + headers: Operations.ReposSetStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposSetStatusCheckContexts.Input.Body? = nil + ) async throws -> Operations.ReposSetStatusCheckContexts.Output { + try await reposSetStatusCheckContexts(Operations.ReposSetStatusCheckContexts.Input( path: path, headers: headers, body: body @@ -2823,12 +2823,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)`. - public func repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts( - path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil - ) async throws -> Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output { - try await repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input( + public func reposRemoveStatusCheckContexts( + path: Operations.ReposRemoveStatusCheckContexts.Input.Path, + headers: Operations.ReposRemoveStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposRemoveStatusCheckContexts.Input.Body? = nil + ) async throws -> Operations.ReposRemoveStatusCheckContexts.Output { + try await reposRemoveStatusCheckContexts(Operations.ReposRemoveStatusCheckContexts.Input( path: path, headers: headers, body: body @@ -2845,11 +2845,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)`. - public func repos_sol_get_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_get_hyphen_access_hyphen_restrictions(Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input( + public func reposGetAccessRestrictions( + path: Operations.ReposGetAccessRestrictions.Input.Path, + headers: Operations.ReposGetAccessRestrictions.Input.Headers = .init() + ) async throws -> Operations.ReposGetAccessRestrictions.Output { + try await reposGetAccessRestrictions(Operations.ReposGetAccessRestrictions.Input( path: path, headers: headers )) @@ -2862,8 +2862,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)`. - public func repos_sol_delete_hyphen_access_hyphen_restrictions(path: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_delete_hyphen_access_hyphen_restrictions(Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input(path: path)) + public func reposDeleteAccessRestrictions(path: Operations.ReposDeleteAccessRestrictions.Input.Path) async throws -> Operations.ReposDeleteAccessRestrictions.Output { + try await reposDeleteAccessRestrictions(Operations.ReposDeleteAccessRestrictions.Input(path: path)) } /// Get apps with access to the protected branch /// @@ -2873,11 +2873,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch( - path: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { - try await repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input( + public func reposGetAppsWithAccessToProtectedBranch( + path: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Headers = .init() + ) async throws -> Operations.ReposGetAppsWithAccessToProtectedBranch.Output { + try await reposGetAppsWithAccessToProtectedBranch(Operations.ReposGetAppsWithAccessToProtectedBranch.Input( path: path, headers: headers )) @@ -2890,12 +2890,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)`. - public func repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions(Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input( + public func reposAddAppAccessRestrictions( + path: Operations.ReposAddAppAccessRestrictions.Input.Path, + headers: Operations.ReposAddAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddAppAccessRestrictions.Input.Body + ) async throws -> Operations.ReposAddAppAccessRestrictions.Output { + try await reposAddAppAccessRestrictions(Operations.ReposAddAppAccessRestrictions.Input( path: path, headers: headers, body: body @@ -2909,12 +2909,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)`. - public func repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions(Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input( + public func reposSetAppAccessRestrictions( + path: Operations.ReposSetAppAccessRestrictions.Input.Path, + headers: Operations.ReposSetAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetAppAccessRestrictions.Input.Body + ) async throws -> Operations.ReposSetAppAccessRestrictions.Output { + try await reposSetAppAccessRestrictions(Operations.ReposSetAppAccessRestrictions.Input( path: path, headers: headers, body: body @@ -2928,12 +2928,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)`. - public func repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions(Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input( + public func reposRemoveAppAccessRestrictions( + path: Operations.ReposRemoveAppAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveAppAccessRestrictions.Input.Body + ) async throws -> Operations.ReposRemoveAppAccessRestrictions.Output { + try await reposRemoveAppAccessRestrictions(Operations.ReposRemoveAppAccessRestrictions.Input( path: path, headers: headers, body: body @@ -2947,11 +2947,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch( - path: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { - try await repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input( + public func reposGetTeamsWithAccessToProtectedBranch( + path: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Headers = .init() + ) async throws -> Operations.ReposGetTeamsWithAccessToProtectedBranch.Output { + try await reposGetTeamsWithAccessToProtectedBranch(Operations.ReposGetTeamsWithAccessToProtectedBranch.Input( path: path, headers: headers )) @@ -2964,12 +2964,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)`. - public func repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil - ) async throws -> Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions(Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input( + public func reposAddTeamAccessRestrictions( + path: Operations.ReposAddTeamAccessRestrictions.Input.Path, + headers: Operations.ReposAddTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddTeamAccessRestrictions.Input.Body? = nil + ) async throws -> Operations.ReposAddTeamAccessRestrictions.Output { + try await reposAddTeamAccessRestrictions(Operations.ReposAddTeamAccessRestrictions.Input( path: path, headers: headers, body: body @@ -2983,12 +2983,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)`. - public func repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil - ) async throws -> Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions(Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input( + public func reposSetTeamAccessRestrictions( + path: Operations.ReposSetTeamAccessRestrictions.Input.Path, + headers: Operations.ReposSetTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetTeamAccessRestrictions.Input.Body? = nil + ) async throws -> Operations.ReposSetTeamAccessRestrictions.Output { + try await reposSetTeamAccessRestrictions(Operations.ReposSetTeamAccessRestrictions.Input( path: path, headers: headers, body: body @@ -3002,12 +3002,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)`. - public func repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil - ) async throws -> Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions(Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input( + public func reposRemoveTeamAccessRestrictions( + path: Operations.ReposRemoveTeamAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveTeamAccessRestrictions.Input.Body? = nil + ) async throws -> Operations.ReposRemoveTeamAccessRestrictions.Output { + try await reposRemoveTeamAccessRestrictions(Operations.ReposRemoveTeamAccessRestrictions.Input( path: path, headers: headers, body: body @@ -3021,11 +3021,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)`. - public func repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch( - path: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output { - try await repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch(Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input( + public func reposGetUsersWithAccessToProtectedBranch( + path: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Headers = .init() + ) async throws -> Operations.ReposGetUsersWithAccessToProtectedBranch.Output { + try await reposGetUsersWithAccessToProtectedBranch(Operations.ReposGetUsersWithAccessToProtectedBranch.Input( path: path, headers: headers )) @@ -3042,12 +3042,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)`. - public func repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions(Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input( + public func reposAddUserAccessRestrictions( + path: Operations.ReposAddUserAccessRestrictions.Input.Path, + headers: Operations.ReposAddUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddUserAccessRestrictions.Input.Body + ) async throws -> Operations.ReposAddUserAccessRestrictions.Output { + try await reposAddUserAccessRestrictions(Operations.ReposAddUserAccessRestrictions.Input( path: path, headers: headers, body: body @@ -3065,12 +3065,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)`. - public func repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions(Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input( + public func reposSetUserAccessRestrictions( + path: Operations.ReposSetUserAccessRestrictions.Input.Path, + headers: Operations.ReposSetUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetUserAccessRestrictions.Input.Body + ) async throws -> Operations.ReposSetUserAccessRestrictions.Output { + try await reposSetUserAccessRestrictions(Operations.ReposSetUserAccessRestrictions.Input( path: path, headers: headers, body: body @@ -3088,12 +3088,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)`. - public func repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions( - path: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body - ) async throws -> Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output { - try await repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions(Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input( + public func reposRemoveUserAccessRestrictions( + path: Operations.ReposRemoveUserAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveUserAccessRestrictions.Input.Body + ) async throws -> Operations.ReposRemoveUserAccessRestrictions.Output { + try await reposRemoveUserAccessRestrictions(Operations.ReposRemoveUserAccessRestrictions.Input( path: path, headers: headers, body: body @@ -3112,12 +3112,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/rename`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)`. - public func repos_sol_rename_hyphen_branch( - path: Operations.repos_sol_rename_hyphen_branch.Input.Path, - headers: Operations.repos_sol_rename_hyphen_branch.Input.Headers = .init(), - body: Operations.repos_sol_rename_hyphen_branch.Input.Body - ) async throws -> Operations.repos_sol_rename_hyphen_branch.Output { - try await repos_sol_rename_hyphen_branch(Operations.repos_sol_rename_hyphen_branch.Input( + public func reposRenameBranch( + path: Operations.ReposRenameBranch.Input.Path, + headers: Operations.ReposRenameBranch.Input.Headers = .init(), + body: Operations.ReposRenameBranch.Input.Body + ) async throws -> Operations.ReposRenameBranch.Output { + try await reposRenameBranch(Operations.ReposRenameBranch.Input( path: path, headers: headers, body: body @@ -3133,12 +3133,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codeowners/errors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)`. - public func repos_sol_codeowners_hyphen_errors( - path: Operations.repos_sol_codeowners_hyphen_errors.Input.Path, - query: Operations.repos_sol_codeowners_hyphen_errors.Input.Query = .init(), - headers: Operations.repos_sol_codeowners_hyphen_errors.Input.Headers = .init() - ) async throws -> Operations.repos_sol_codeowners_hyphen_errors.Output { - try await repos_sol_codeowners_hyphen_errors(Operations.repos_sol_codeowners_hyphen_errors.Input( + public func reposCodeownersErrors( + path: Operations.ReposCodeownersErrors.Input.Path, + query: Operations.ReposCodeownersErrors.Input.Query = .init(), + headers: Operations.ReposCodeownersErrors.Input.Headers = .init() + ) async throws -> Operations.ReposCodeownersErrors.Output { + try await reposCodeownersErrors(Operations.ReposCodeownersErrors.Input( path: path, query: query, headers: headers @@ -3157,12 +3157,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)`. - public func repos_sol_list_hyphen_collaborators( - path: Operations.repos_sol_list_hyphen_collaborators.Input.Path, - query: Operations.repos_sol_list_hyphen_collaborators.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_collaborators.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_collaborators.Output { - try await repos_sol_list_hyphen_collaborators(Operations.repos_sol_list_hyphen_collaborators.Input( + public func reposListCollaborators( + path: Operations.ReposListCollaborators.Input.Path, + query: Operations.ReposListCollaborators.Input.Query = .init(), + headers: Operations.ReposListCollaborators.Input.Headers = .init() + ) async throws -> Operations.ReposListCollaborators.Output { + try await reposListCollaborators(Operations.ReposListCollaborators.Input( path: path, query: query, headers: headers @@ -3180,8 +3180,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)`. - public func repos_sol_check_hyphen_collaborator(path: Operations.repos_sol_check_hyphen_collaborator.Input.Path) async throws -> Operations.repos_sol_check_hyphen_collaborator.Output { - try await repos_sol_check_hyphen_collaborator(Operations.repos_sol_check_hyphen_collaborator.Input(path: path)) + public func reposCheckCollaborator(path: Operations.ReposCheckCollaborator.Input.Path) async throws -> Operations.ReposCheckCollaborator.Output { + try await reposCheckCollaborator(Operations.ReposCheckCollaborator.Input(path: path)) } /// Add a repository collaborator /// @@ -3209,12 +3209,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)`. - public func repos_sol_add_hyphen_collaborator( - path: Operations.repos_sol_add_hyphen_collaborator.Input.Path, - headers: Operations.repos_sol_add_hyphen_collaborator.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_collaborator.Input.Body? = nil - ) async throws -> Operations.repos_sol_add_hyphen_collaborator.Output { - try await repos_sol_add_hyphen_collaborator(Operations.repos_sol_add_hyphen_collaborator.Input( + public func reposAddCollaborator( + path: Operations.ReposAddCollaborator.Input.Path, + headers: Operations.ReposAddCollaborator.Input.Headers = .init(), + body: Operations.ReposAddCollaborator.Input.Body? = nil + ) async throws -> Operations.ReposAddCollaborator.Output { + try await reposAddCollaborator(Operations.ReposAddCollaborator.Input( path: path, headers: headers, body: body @@ -3247,11 +3247,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)`. - public func repos_sol_remove_hyphen_collaborator( - path: Operations.repos_sol_remove_hyphen_collaborator.Input.Path, - headers: Operations.repos_sol_remove_hyphen_collaborator.Input.Headers = .init() - ) async throws -> Operations.repos_sol_remove_hyphen_collaborator.Output { - try await repos_sol_remove_hyphen_collaborator(Operations.repos_sol_remove_hyphen_collaborator.Input( + public func reposRemoveCollaborator( + path: Operations.ReposRemoveCollaborator.Input.Path, + headers: Operations.ReposRemoveCollaborator.Input.Headers = .init() + ) async throws -> Operations.ReposRemoveCollaborator.Output { + try await reposRemoveCollaborator(Operations.ReposRemoveCollaborator.Input( path: path, headers: headers )) @@ -3268,11 +3268,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)`. - public func repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level( - path: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Path, - headers: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output { - try await repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level(Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input( + public func reposGetCollaboratorPermissionLevel( + path: Operations.ReposGetCollaboratorPermissionLevel.Input.Path, + headers: Operations.ReposGetCollaboratorPermissionLevel.Input.Headers = .init() + ) async throws -> Operations.ReposGetCollaboratorPermissionLevel.Output { + try await reposGetCollaboratorPermissionLevel(Operations.ReposGetCollaboratorPermissionLevel.Input( path: path, headers: headers )) @@ -3290,12 +3290,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/get(repos/list-commit-comments-for-repo)`. - public func repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo( - path: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output { - try await repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo(Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input( + public func reposListCommitCommentsForRepo( + path: Operations.ReposListCommitCommentsForRepo.Input.Path, + query: Operations.ReposListCommitCommentsForRepo.Input.Query = .init(), + headers: Operations.ReposListCommitCommentsForRepo.Input.Headers = .init() + ) async throws -> Operations.ReposListCommitCommentsForRepo.Output { + try await reposListCommitCommentsForRepo(Operations.ReposListCommitCommentsForRepo.Input( path: path, query: query, headers: headers @@ -3314,11 +3314,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)`. - public func repos_sol_get_hyphen_commit_hyphen_comment( - path: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output { - try await repos_sol_get_hyphen_commit_hyphen_comment(Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input( + public func reposGetCommitComment( + path: Operations.ReposGetCommitComment.Input.Path, + headers: Operations.ReposGetCommitComment.Input.Headers = .init() + ) async throws -> Operations.ReposGetCommitComment.Output { + try await reposGetCommitComment(Operations.ReposGetCommitComment.Input( path: path, headers: headers )) @@ -3336,12 +3336,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)`. - public func repos_sol_update_hyphen_commit_hyphen_comment( - path: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Body - ) async throws -> Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output { - try await repos_sol_update_hyphen_commit_hyphen_comment(Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input( + public func reposUpdateCommitComment( + path: Operations.ReposUpdateCommitComment.Input.Path, + headers: Operations.ReposUpdateCommitComment.Input.Headers = .init(), + body: Operations.ReposUpdateCommitComment.Input.Body + ) async throws -> Operations.ReposUpdateCommitComment.Output { + try await reposUpdateCommitComment(Operations.ReposUpdateCommitComment.Input( path: path, headers: headers, body: body @@ -3353,11 +3353,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)`. - public func repos_sol_delete_hyphen_commit_hyphen_comment( - path: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Output { - try await repos_sol_delete_hyphen_commit_hyphen_comment(Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input( + public func reposDeleteCommitComment( + path: Operations.ReposDeleteCommitComment.Input.Path, + headers: Operations.ReposDeleteCommitComment.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteCommitComment.Output { + try await reposDeleteCommitComment(Operations.ReposDeleteCommitComment.Input( path: path, headers: headers )) @@ -3396,12 +3396,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)`. - public func repos_sol_list_hyphen_commits( - path: Operations.repos_sol_list_hyphen_commits.Input.Path, - query: Operations.repos_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commits.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_commits.Output { - try await repos_sol_list_hyphen_commits(Operations.repos_sol_list_hyphen_commits.Input( + public func reposListCommits( + path: Operations.ReposListCommits.Input.Path, + query: Operations.ReposListCommits.Input.Query = .init(), + headers: Operations.ReposListCommits.Input.Headers = .init() + ) async throws -> Operations.ReposListCommits.Output { + try await reposListCommits(Operations.ReposListCommits.Input( path: path, query: query, headers: headers @@ -3415,11 +3415,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)`. - public func repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit( - path: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Path, - headers: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output { - try await repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit(Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input( + public func reposListBranchesForHeadCommit( + path: Operations.ReposListBranchesForHeadCommit.Input.Path, + headers: Operations.ReposListBranchesForHeadCommit.Input.Headers = .init() + ) async throws -> Operations.ReposListBranchesForHeadCommit.Output { + try await reposListBranchesForHeadCommit(Operations.ReposListBranchesForHeadCommit.Input( path: path, headers: headers )) @@ -3437,12 +3437,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/get(repos/list-comments-for-commit)`. - public func repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit( - path: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Path, - query: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output { - try await repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit(Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input( + public func reposListCommentsForCommit( + path: Operations.ReposListCommentsForCommit.Input.Path, + query: Operations.ReposListCommentsForCommit.Input.Query = .init(), + headers: Operations.ReposListCommentsForCommit.Input.Headers = .init() + ) async throws -> Operations.ReposListCommentsForCommit.Output { + try await reposListCommentsForCommit(Operations.ReposListCommentsForCommit.Input( path: path, query: query, headers: headers @@ -3463,12 +3463,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)`. - public func repos_sol_create_hyphen_commit_hyphen_comment( - path: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output { - try await repos_sol_create_hyphen_commit_hyphen_comment(Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input( + public func reposCreateCommitComment( + path: Operations.ReposCreateCommitComment.Input.Path, + headers: Operations.ReposCreateCommitComment.Input.Headers = .init(), + body: Operations.ReposCreateCommitComment.Input.Body + ) async throws -> Operations.ReposCreateCommitComment.Output { + try await reposCreateCommitComment(Operations.ReposCreateCommitComment.Input( path: path, headers: headers, body: body @@ -3482,12 +3482,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)`. - public func repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit( - path: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Path, - query: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output { - try await repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit(Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input( + public func reposListPullRequestsAssociatedWithCommit( + path: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Path, + query: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Query = .init(), + headers: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Headers = .init() + ) async throws -> Operations.ReposListPullRequestsAssociatedWithCommit.Output { + try await reposListPullRequestsAssociatedWithCommit(Operations.ReposListPullRequestsAssociatedWithCommit.Input( path: path, query: query, headers: headers @@ -3538,12 +3538,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)`. - public func repos_sol_get_hyphen_commit( - path: Operations.repos_sol_get_hyphen_commit.Input.Path, - query: Operations.repos_sol_get_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_commit.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_commit.Output { - try await repos_sol_get_hyphen_commit(Operations.repos_sol_get_hyphen_commit.Input( + public func reposGetCommit( + path: Operations.ReposGetCommit.Input.Path, + query: Operations.ReposGetCommit.Input.Query = .init(), + headers: Operations.ReposGetCommit.Input.Headers = .init() + ) async throws -> Operations.ReposGetCommit.Output { + try await reposGetCommit(Operations.ReposGetCommit.Input( path: path, query: query, headers: headers @@ -3562,12 +3562,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/status`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)`. - public func repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref( - path: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Path, - query: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output { - try await repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref(Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input( + public func reposGetCombinedStatusForRef( + path: Operations.ReposGetCombinedStatusForRef.Input.Path, + query: Operations.ReposGetCombinedStatusForRef.Input.Query = .init(), + headers: Operations.ReposGetCombinedStatusForRef.Input.Headers = .init() + ) async throws -> Operations.ReposGetCombinedStatusForRef.Output { + try await reposGetCombinedStatusForRef(Operations.ReposGetCombinedStatusForRef.Input( path: path, query: query, headers: headers @@ -3581,12 +3581,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)`. - public func repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref( - path: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Path, - query: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output { - try await repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref(Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input( + public func reposListCommitStatusesForRef( + path: Operations.ReposListCommitStatusesForRef.Input.Path, + query: Operations.ReposListCommitStatusesForRef.Input.Query = .init(), + headers: Operations.ReposListCommitStatusesForRef.Input.Headers = .init() + ) async throws -> Operations.ReposListCommitStatusesForRef.Output { + try await reposListCommitStatusesForRef(Operations.ReposListCommitStatusesForRef.Input( path: path, query: query, headers: headers @@ -3608,11 +3608,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/community/profile`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/community/profile/get(repos/get-community-profile-metrics)`. - public func repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics( - path: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Path, - headers: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output { - try await repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics(Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input( + public func reposGetCommunityProfileMetrics( + path: Operations.ReposGetCommunityProfileMetrics.Input.Path, + headers: Operations.ReposGetCommunityProfileMetrics.Input.Headers = .init() + ) async throws -> Operations.ReposGetCommunityProfileMetrics.Output { + try await reposGetCommunityProfileMetrics(Operations.ReposGetCommunityProfileMetrics.Input( path: path, headers: headers )) @@ -3673,12 +3673,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)`. - public func repos_sol_compare_hyphen_commits( - path: Operations.repos_sol_compare_hyphen_commits.Input.Path, - query: Operations.repos_sol_compare_hyphen_commits.Input.Query = .init(), - headers: Operations.repos_sol_compare_hyphen_commits.Input.Headers = .init() - ) async throws -> Operations.repos_sol_compare_hyphen_commits.Output { - try await repos_sol_compare_hyphen_commits(Operations.repos_sol_compare_hyphen_commits.Input( + public func reposCompareCommits( + path: Operations.ReposCompareCommits.Input.Path, + query: Operations.ReposCompareCommits.Input.Query = .init(), + headers: Operations.ReposCompareCommits.Input.Headers = .init() + ) async throws -> Operations.ReposCompareCommits.Output { + try await reposCompareCommits(Operations.ReposCompareCommits.Input( path: path, query: query, headers: headers @@ -3714,12 +3714,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)`. - public func repos_sol_get_hyphen_content( - path: Operations.repos_sol_get_hyphen_content.Input.Path, - query: Operations.repos_sol_get_hyphen_content.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_content.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_content.Output { - try await repos_sol_get_hyphen_content(Operations.repos_sol_get_hyphen_content.Input( + public func reposGetContent( + path: Operations.ReposGetContent.Input.Path, + query: Operations.ReposGetContent.Input.Query = .init(), + headers: Operations.ReposGetContent.Input.Headers = .init() + ) async throws -> Operations.ReposGetContent.Output { + try await reposGetContent(Operations.ReposGetContent.Input( path: path, query: query, headers: headers @@ -3736,12 +3736,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output { - try await repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input( + public func reposCreateOrUpdateFileContents( + path: Operations.ReposCreateOrUpdateFileContents.Input.Path, + headers: Operations.ReposCreateOrUpdateFileContents.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateFileContents.Input.Body + ) async throws -> Operations.ReposCreateOrUpdateFileContents.Output { + try await reposCreateOrUpdateFileContents(Operations.ReposCreateOrUpdateFileContents.Input( path: path, headers: headers, body: body @@ -3762,12 +3762,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)`. - public func repos_sol_delete_hyphen_file( - path: Operations.repos_sol_delete_hyphen_file.Input.Path, - headers: Operations.repos_sol_delete_hyphen_file.Input.Headers = .init(), - body: Operations.repos_sol_delete_hyphen_file.Input.Body - ) async throws -> Operations.repos_sol_delete_hyphen_file.Output { - try await repos_sol_delete_hyphen_file(Operations.repos_sol_delete_hyphen_file.Input( + public func reposDeleteFile( + path: Operations.ReposDeleteFile.Input.Path, + headers: Operations.ReposDeleteFile.Input.Headers = .init(), + body: Operations.ReposDeleteFile.Input.Body + ) async throws -> Operations.ReposDeleteFile.Output { + try await reposDeleteFile(Operations.ReposDeleteFile.Input( path: path, headers: headers, body: body @@ -3781,12 +3781,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)`. - public func repos_sol_list_hyphen_contributors( - path: Operations.repos_sol_list_hyphen_contributors.Input.Path, - query: Operations.repos_sol_list_hyphen_contributors.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_contributors.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_contributors.Output { - try await repos_sol_list_hyphen_contributors(Operations.repos_sol_list_hyphen_contributors.Input( + public func reposListContributors( + path: Operations.ReposListContributors.Input.Path, + query: Operations.ReposListContributors.Input.Query = .init(), + headers: Operations.ReposListContributors.Input.Headers = .init() + ) async throws -> Operations.ReposListContributors.Output { + try await reposListContributors(Operations.ReposListContributors.Input( path: path, query: query, headers: headers @@ -3798,12 +3798,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/get(repos/list-deployments)`. - public func repos_sol_list_hyphen_deployments( - path: Operations.repos_sol_list_hyphen_deployments.Input.Path, - query: Operations.repos_sol_list_hyphen_deployments.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployments.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_deployments.Output { - try await repos_sol_list_hyphen_deployments(Operations.repos_sol_list_hyphen_deployments.Input( + public func reposListDeployments( + path: Operations.ReposListDeployments.Input.Path, + query: Operations.ReposListDeployments.Input.Query = .init(), + headers: Operations.ReposListDeployments.Input.Headers = .init() + ) async throws -> Operations.ReposListDeployments.Output { + try await reposListDeployments(Operations.ReposListDeployments.Input( path: path, query: query, headers: headers @@ -3862,12 +3862,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)`. - public func repos_sol_create_hyphen_deployment( - path: Operations.repos_sol_create_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_deployment.Output { - try await repos_sol_create_hyphen_deployment(Operations.repos_sol_create_hyphen_deployment.Input( + public func reposCreateDeployment( + path: Operations.ReposCreateDeployment.Input.Path, + headers: Operations.ReposCreateDeployment.Input.Headers = .init(), + body: Operations.ReposCreateDeployment.Input.Body + ) async throws -> Operations.ReposCreateDeployment.Output { + try await reposCreateDeployment(Operations.ReposCreateDeployment.Input( path: path, headers: headers, body: body @@ -3879,11 +3879,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)`. - public func repos_sol_get_hyphen_deployment( - path: Operations.repos_sol_get_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_deployment.Output { - try await repos_sol_get_hyphen_deployment(Operations.repos_sol_get_hyphen_deployment.Input( + public func reposGetDeployment( + path: Operations.ReposGetDeployment.Input.Path, + headers: Operations.ReposGetDeployment.Input.Headers = .init() + ) async throws -> Operations.ReposGetDeployment.Output { + try await reposGetDeployment(Operations.ReposGetDeployment.Input( path: path, headers: headers )) @@ -3903,11 +3903,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)`. - public func repos_sol_delete_hyphen_deployment( - path: Operations.repos_sol_delete_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_delete_hyphen_deployment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_deployment.Output { - try await repos_sol_delete_hyphen_deployment(Operations.repos_sol_delete_hyphen_deployment.Input( + public func reposDeleteDeployment( + path: Operations.ReposDeleteDeployment.Input.Path, + headers: Operations.ReposDeleteDeployment.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteDeployment.Output { + try await reposDeleteDeployment(Operations.ReposDeleteDeployment.Input( path: path, headers: headers )) @@ -3918,12 +3918,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)`. - public func repos_sol_list_hyphen_deployment_hyphen_statuses( - path: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Path, - query: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output { - try await repos_sol_list_hyphen_deployment_hyphen_statuses(Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input( + public func reposListDeploymentStatuses( + path: Operations.ReposListDeploymentStatuses.Input.Path, + query: Operations.ReposListDeploymentStatuses.Input.Query = .init(), + headers: Operations.ReposListDeploymentStatuses.Input.Headers = .init() + ) async throws -> Operations.ReposListDeploymentStatuses.Output { + try await reposListDeploymentStatuses(Operations.ReposListDeploymentStatuses.Input( path: path, query: query, headers: headers @@ -3937,12 +3937,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)`. - public func repos_sol_create_hyphen_deployment_hyphen_status( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output { - try await repos_sol_create_hyphen_deployment_hyphen_status(Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input( + public func reposCreateDeploymentStatus( + path: Operations.ReposCreateDeploymentStatus.Input.Path, + headers: Operations.ReposCreateDeploymentStatus.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentStatus.Input.Body + ) async throws -> Operations.ReposCreateDeploymentStatus.Output { + try await reposCreateDeploymentStatus(Operations.ReposCreateDeploymentStatus.Input( path: path, headers: headers, body: body @@ -3954,11 +3954,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)`. - public func repos_sol_get_hyphen_deployment_hyphen_status( - path: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output { - try await repos_sol_get_hyphen_deployment_hyphen_status(Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input( + public func reposGetDeploymentStatus( + path: Operations.ReposGetDeploymentStatus.Input.Path, + headers: Operations.ReposGetDeploymentStatus.Input.Headers = .init() + ) async throws -> Operations.ReposGetDeploymentStatus.Output { + try await reposGetDeploymentStatus(Operations.ReposGetDeploymentStatus.Input( path: path, headers: headers )) @@ -3975,12 +3975,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)`. - public func repos_sol_create_hyphen_dispatch_hyphen_event( - path: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Path, - headers: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Output { - try await repos_sol_create_hyphen_dispatch_hyphen_event(Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input( + public func reposCreateDispatchEvent( + path: Operations.ReposCreateDispatchEvent.Input.Path, + headers: Operations.ReposCreateDispatchEvent.Input.Headers = .init(), + body: Operations.ReposCreateDispatchEvent.Input.Body + ) async throws -> Operations.ReposCreateDispatchEvent.Output { + try await reposCreateDispatchEvent(Operations.ReposCreateDispatchEvent.Input( path: path, headers: headers, body: body @@ -3996,12 +3996,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/get(repos/get-all-environments)`. - public func repos_sol_get_hyphen_all_hyphen_environments( - path: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Path, - query: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_environments.Output { - try await repos_sol_get_hyphen_all_hyphen_environments(Operations.repos_sol_get_hyphen_all_hyphen_environments.Input( + public func reposGetAllEnvironments( + path: Operations.ReposGetAllEnvironments.Input.Path, + query: Operations.ReposGetAllEnvironments.Input.Query = .init(), + headers: Operations.ReposGetAllEnvironments.Input.Headers = .init() + ) async throws -> Operations.ReposGetAllEnvironments.Output { + try await reposGetAllEnvironments(Operations.ReposGetAllEnvironments.Input( path: path, query: query, headers: headers @@ -4018,11 +4018,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/get(repos/get-environment)`. - public func repos_sol_get_hyphen_environment( - path: Operations.repos_sol_get_hyphen_environment.Input.Path, - headers: Operations.repos_sol_get_hyphen_environment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_environment.Output { - try await repos_sol_get_hyphen_environment(Operations.repos_sol_get_hyphen_environment.Input( + public func reposGetEnvironment( + path: Operations.ReposGetEnvironment.Input.Path, + headers: Operations.ReposGetEnvironment.Input.Headers = .init() + ) async throws -> Operations.ReposGetEnvironment.Output { + try await reposGetEnvironment(Operations.ReposGetEnvironment.Input( path: path, headers: headers )) @@ -4041,12 +4041,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_environment( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body? = nil - ) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output { - try await repos_sol_create_hyphen_or_hyphen_update_hyphen_environment(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input( + public func reposCreateOrUpdateEnvironment( + path: Operations.ReposCreateOrUpdateEnvironment.Input.Path, + headers: Operations.ReposCreateOrUpdateEnvironment.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateEnvironment.Input.Body? = nil + ) async throws -> Operations.ReposCreateOrUpdateEnvironment.Output { + try await reposCreateOrUpdateEnvironment(Operations.ReposCreateOrUpdateEnvironment.Input( path: path, headers: headers, body: body @@ -4058,8 +4058,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)`. - public func repos_sol_delete_hyphen_an_hyphen_environment(path: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_an_hyphen_environment.Output { - try await repos_sol_delete_hyphen_an_hyphen_environment(Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input(path: path)) + public func reposDeleteAnEnvironment(path: Operations.ReposDeleteAnEnvironment.Input.Path) async throws -> Operations.ReposDeleteAnEnvironment.Output { + try await reposDeleteAnEnvironment(Operations.ReposDeleteAnEnvironment.Input(path: path)) } /// List deployment branch policies /// @@ -4071,12 +4071,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/get(repos/list-deployment-branch-policies)`. - public func repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies( - path: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Path, - query: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output { - try await repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies(Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input( + public func reposListDeploymentBranchPolicies( + path: Operations.ReposListDeploymentBranchPolicies.Input.Path, + query: Operations.ReposListDeploymentBranchPolicies.Input.Query = .init(), + headers: Operations.ReposListDeploymentBranchPolicies.Input.Headers = .init() + ) async throws -> Operations.ReposListDeploymentBranchPolicies.Output { + try await reposListDeploymentBranchPolicies(Operations.ReposListDeploymentBranchPolicies.Input( path: path, query: query, headers: headers @@ -4090,12 +4090,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)`. - public func repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output { - try await repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy(Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input( + public func reposCreateDeploymentBranchPolicy( + path: Operations.ReposCreateDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposCreateDeploymentBranchPolicy.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentBranchPolicy.Input.Body + ) async throws -> Operations.ReposCreateDeploymentBranchPolicy.Output { + try await reposCreateDeploymentBranchPolicy(Operations.ReposCreateDeploymentBranchPolicy.Input( path: path, headers: headers, body: body @@ -4111,11 +4111,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/get(repos/get-deployment-branch-policy)`. - public func repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy( - path: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output { - try await repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy(Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input( + public func reposGetDeploymentBranchPolicy( + path: Operations.ReposGetDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposGetDeploymentBranchPolicy.Input.Headers = .init() + ) async throws -> Operations.ReposGetDeploymentBranchPolicy.Output { + try await reposGetDeploymentBranchPolicy(Operations.ReposGetDeploymentBranchPolicy.Input( path: path, headers: headers )) @@ -4128,12 +4128,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/put(repos/update-deployment-branch-policy)`. - public func repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy( - path: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body - ) async throws -> Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output { - try await repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy(Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input( + public func reposUpdateDeploymentBranchPolicy( + path: Operations.ReposUpdateDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposUpdateDeploymentBranchPolicy.Input.Headers = .init(), + body: Operations.ReposUpdateDeploymentBranchPolicy.Input.Body + ) async throws -> Operations.ReposUpdateDeploymentBranchPolicy.Output { + try await reposUpdateDeploymentBranchPolicy(Operations.ReposUpdateDeploymentBranchPolicy.Input( path: path, headers: headers, body: body @@ -4147,8 +4147,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)`. - public func repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy(path: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Output { - try await repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy(Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input(path: path)) + public func reposDeleteDeploymentBranchPolicy(path: Operations.ReposDeleteDeploymentBranchPolicy.Input.Path) async throws -> Operations.ReposDeleteDeploymentBranchPolicy.Output { + try await reposDeleteDeploymentBranchPolicy(Operations.ReposDeleteDeploymentBranchPolicy.Input(path: path)) } /// Get all deployment protection rules for an environment /// @@ -4160,11 +4160,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/get(repos/get-all-deployment-protection-rules)`. - public func repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules( - path: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Path, - headers: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output { - try await repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules(Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input( + public func reposGetAllDeploymentProtectionRules( + path: Operations.ReposGetAllDeploymentProtectionRules.Input.Path, + headers: Operations.ReposGetAllDeploymentProtectionRules.Input.Headers = .init() + ) async throws -> Operations.ReposGetAllDeploymentProtectionRules.Output { + try await reposGetAllDeploymentProtectionRules(Operations.ReposGetAllDeploymentProtectionRules.Input( path: path, headers: headers )) @@ -4181,12 +4181,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/post(repos/create-deployment-protection-rule)`. - public func repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output { - try await repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule(Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input( + public func reposCreateDeploymentProtectionRule( + path: Operations.ReposCreateDeploymentProtectionRule.Input.Path, + headers: Operations.ReposCreateDeploymentProtectionRule.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentProtectionRule.Input.Body + ) async throws -> Operations.ReposCreateDeploymentProtectionRule.Output { + try await reposCreateDeploymentProtectionRule(Operations.ReposCreateDeploymentProtectionRule.Input( path: path, headers: headers, body: body @@ -4206,12 +4206,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/get(repos/list-custom-deployment-rule-integrations)`. - public func repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations( - path: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Path, - query: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output { - try await repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations(Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input( + public func reposListCustomDeploymentRuleIntegrations( + path: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Path, + query: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Query = .init(), + headers: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Headers = .init() + ) async throws -> Operations.ReposListCustomDeploymentRuleIntegrations.Output { + try await reposListCustomDeploymentRuleIntegrations(Operations.ReposListCustomDeploymentRuleIntegrations.Input( path: path, query: query, headers: headers @@ -4227,11 +4227,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/get(repos/get-custom-deployment-protection-rule)`. - public func repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule( - path: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path, - headers: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output { - try await repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule(Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input( + public func reposGetCustomDeploymentProtectionRule( + path: Operations.ReposGetCustomDeploymentProtectionRule.Input.Path, + headers: Operations.ReposGetCustomDeploymentProtectionRule.Input.Headers = .init() + ) async throws -> Operations.ReposGetCustomDeploymentProtectionRule.Output { + try await reposGetCustomDeploymentProtectionRule(Operations.ReposGetCustomDeploymentProtectionRule.Input( path: path, headers: headers )) @@ -4246,8 +4246,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)`. - public func repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule(path: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path) async throws -> Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Output { - try await repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule(Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input(path: path)) + public func reposDisableDeploymentProtectionRule(path: Operations.ReposDisableDeploymentProtectionRule.Input.Path) async throws -> Operations.ReposDisableDeploymentProtectionRule.Output { + try await reposDisableDeploymentProtectionRule(Operations.ReposDisableDeploymentProtectionRule.Input(path: path)) } /// List forks /// @@ -4255,12 +4255,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)`. - public func repos_sol_list_hyphen_forks( - path: Operations.repos_sol_list_hyphen_forks.Input.Path, - query: Operations.repos_sol_list_hyphen_forks.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_forks.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_forks.Output { - try await repos_sol_list_hyphen_forks(Operations.repos_sol_list_hyphen_forks.Input( + public func reposListForks( + path: Operations.ReposListForks.Input.Path, + query: Operations.ReposListForks.Input.Query = .init(), + headers: Operations.ReposListForks.Input.Headers = .init() + ) async throws -> Operations.ReposListForks.Output { + try await reposListForks(Operations.ReposListForks.Input( path: path, query: query, headers: headers @@ -4278,12 +4278,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)`. - public func repos_sol_create_hyphen_fork( - path: Operations.repos_sol_create_hyphen_fork.Input.Path, - headers: Operations.repos_sol_create_hyphen_fork.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_fork.Input.Body? = nil - ) async throws -> Operations.repos_sol_create_hyphen_fork.Output { - try await repos_sol_create_hyphen_fork(Operations.repos_sol_create_hyphen_fork.Input( + public func reposCreateFork( + path: Operations.ReposCreateFork.Input.Path, + headers: Operations.ReposCreateFork.Input.Headers = .init(), + body: Operations.ReposCreateFork.Input.Body? = nil + ) async throws -> Operations.ReposCreateFork.Output { + try await reposCreateFork(Operations.ReposCreateFork.Input( path: path, headers: headers, body: body @@ -4295,12 +4295,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)`. - public func repos_sol_list_hyphen_webhooks( - path: Operations.repos_sol_list_hyphen_webhooks.Input.Path, - query: Operations.repos_sol_list_hyphen_webhooks.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_webhooks.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_webhooks.Output { - try await repos_sol_list_hyphen_webhooks(Operations.repos_sol_list_hyphen_webhooks.Input( + public func reposListWebhooks( + path: Operations.ReposListWebhooks.Input.Path, + query: Operations.ReposListWebhooks.Input.Query = .init(), + headers: Operations.ReposListWebhooks.Input.Headers = .init() + ) async throws -> Operations.ReposListWebhooks.Output { + try await reposListWebhooks(Operations.ReposListWebhooks.Input( path: path, query: query, headers: headers @@ -4313,12 +4313,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)`. - public func repos_sol_create_hyphen_webhook( - path: Operations.repos_sol_create_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_create_hyphen_webhook.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_webhook.Input.Body? = nil - ) async throws -> Operations.repos_sol_create_hyphen_webhook.Output { - try await repos_sol_create_hyphen_webhook(Operations.repos_sol_create_hyphen_webhook.Input( + public func reposCreateWebhook( + path: Operations.ReposCreateWebhook.Input.Path, + headers: Operations.ReposCreateWebhook.Input.Headers = .init(), + body: Operations.ReposCreateWebhook.Input.Body? = nil + ) async throws -> Operations.ReposCreateWebhook.Output { + try await reposCreateWebhook(Operations.ReposCreateWebhook.Input( path: path, headers: headers, body: body @@ -4330,11 +4330,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)`. - public func repos_sol_get_hyphen_webhook( - path: Operations.repos_sol_get_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_webhook.Output { - try await repos_sol_get_hyphen_webhook(Operations.repos_sol_get_hyphen_webhook.Input( + public func reposGetWebhook( + path: Operations.ReposGetWebhook.Input.Path, + headers: Operations.ReposGetWebhook.Input.Headers = .init() + ) async throws -> Operations.ReposGetWebhook.Output { + try await reposGetWebhook(Operations.ReposGetWebhook.Input( path: path, headers: headers )) @@ -4345,12 +4345,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)`. - public func repos_sol_update_hyphen_webhook( - path: Operations.repos_sol_update_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_update_hyphen_webhook.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_webhook.Input.Body - ) async throws -> Operations.repos_sol_update_hyphen_webhook.Output { - try await repos_sol_update_hyphen_webhook(Operations.repos_sol_update_hyphen_webhook.Input( + public func reposUpdateWebhook( + path: Operations.ReposUpdateWebhook.Input.Path, + headers: Operations.ReposUpdateWebhook.Input.Headers = .init(), + body: Operations.ReposUpdateWebhook.Input.Body + ) async throws -> Operations.ReposUpdateWebhook.Output { + try await reposUpdateWebhook(Operations.ReposUpdateWebhook.Input( path: path, headers: headers, body: body @@ -4364,11 +4364,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)`. - public func repos_sol_delete_hyphen_webhook( - path: Operations.repos_sol_delete_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_delete_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_webhook.Output { - try await repos_sol_delete_hyphen_webhook(Operations.repos_sol_delete_hyphen_webhook.Input( + public func reposDeleteWebhook( + path: Operations.ReposDeleteWebhook.Input.Path, + headers: Operations.ReposDeleteWebhook.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteWebhook.Output { + try await reposDeleteWebhook(Operations.ReposDeleteWebhook.Input( path: path, headers: headers )) @@ -4381,11 +4381,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/get(repos/get-webhook-config-for-repo)`. - public func repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo( - path: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output { - try await repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input( + public func reposGetWebhookConfigForRepo( + path: Operations.ReposGetWebhookConfigForRepo.Input.Path, + headers: Operations.ReposGetWebhookConfigForRepo.Input.Headers = .init() + ) async throws -> Operations.ReposGetWebhookConfigForRepo.Output { + try await reposGetWebhookConfigForRepo(Operations.ReposGetWebhookConfigForRepo.Input( path: path, headers: headers )) @@ -4398,12 +4398,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/patch(repos/update-webhook-config-for-repo)`. - public func repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo( - path: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output { - try await repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo(Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input( + public func reposUpdateWebhookConfigForRepo( + path: Operations.ReposUpdateWebhookConfigForRepo.Input.Path, + headers: Operations.ReposUpdateWebhookConfigForRepo.Input.Headers = .init(), + body: Operations.ReposUpdateWebhookConfigForRepo.Input.Body? = nil + ) async throws -> Operations.ReposUpdateWebhookConfigForRepo.Output { + try await reposUpdateWebhookConfigForRepo(Operations.ReposUpdateWebhookConfigForRepo.Input( path: path, headers: headers, body: body @@ -4415,12 +4415,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)`. - public func repos_sol_list_hyphen_webhook_hyphen_deliveries( - path: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path, - query: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output { - try await repos_sol_list_hyphen_webhook_hyphen_deliveries(Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input( + public func reposListWebhookDeliveries( + path: Operations.ReposListWebhookDeliveries.Input.Path, + query: Operations.ReposListWebhookDeliveries.Input.Query = .init(), + headers: Operations.ReposListWebhookDeliveries.Input.Headers = .init() + ) async throws -> Operations.ReposListWebhookDeliveries.Output { + try await reposListWebhookDeliveries(Operations.ReposListWebhookDeliveries.Input( path: path, query: query, headers: headers @@ -4432,11 +4432,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)`. - public func repos_sol_get_hyphen_webhook_hyphen_delivery( - path: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output { - try await repos_sol_get_hyphen_webhook_hyphen_delivery(Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input( + public func reposGetWebhookDelivery( + path: Operations.ReposGetWebhookDelivery.Input.Path, + headers: Operations.ReposGetWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.ReposGetWebhookDelivery.Output { + try await reposGetWebhookDelivery(Operations.ReposGetWebhookDelivery.Input( path: path, headers: headers )) @@ -4447,11 +4447,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)`. - public func repos_sol_redeliver_hyphen_webhook_hyphen_delivery( - path: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() - ) async throws -> Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Output { - try await repos_sol_redeliver_hyphen_webhook_hyphen_delivery(Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input( + public func reposRedeliverWebhookDelivery( + path: Operations.ReposRedeliverWebhookDelivery.Input.Path, + headers: Operations.ReposRedeliverWebhookDelivery.Input.Headers = .init() + ) async throws -> Operations.ReposRedeliverWebhookDelivery.Output { + try await reposRedeliverWebhookDelivery(Operations.ReposRedeliverWebhookDelivery.Input( path: path, headers: headers )) @@ -4462,11 +4462,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)`. - public func repos_sol_ping_hyphen_webhook( - path: Operations.repos_sol_ping_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_ping_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.repos_sol_ping_hyphen_webhook.Output { - try await repos_sol_ping_hyphen_webhook(Operations.repos_sol_ping_hyphen_webhook.Input( + public func reposPingWebhook( + path: Operations.ReposPingWebhook.Input.Path, + headers: Operations.ReposPingWebhook.Input.Headers = .init() + ) async throws -> Operations.ReposPingWebhook.Output { + try await reposPingWebhook(Operations.ReposPingWebhook.Input( path: path, headers: headers )) @@ -4480,11 +4480,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)`. - public func repos_sol_test_hyphen_push_hyphen_webhook( - path: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Headers = .init() - ) async throws -> Operations.repos_sol_test_hyphen_push_hyphen_webhook.Output { - try await repos_sol_test_hyphen_push_hyphen_webhook(Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input( + public func reposTestPushWebhook( + path: Operations.ReposTestPushWebhook.Input.Path, + headers: Operations.ReposTestPushWebhook.Input.Headers = .init() + ) async throws -> Operations.ReposTestPushWebhook.Output { + try await reposTestPushWebhook(Operations.ReposTestPushWebhook.Input( path: path, headers: headers )) @@ -4495,12 +4495,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/invitations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/get(repos/list-invitations)`. - public func repos_sol_list_hyphen_invitations( - path: Operations.repos_sol_list_hyphen_invitations.Input.Path, - query: Operations.repos_sol_list_hyphen_invitations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_invitations.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_invitations.Output { - try await repos_sol_list_hyphen_invitations(Operations.repos_sol_list_hyphen_invitations.Input( + public func reposListInvitations( + path: Operations.ReposListInvitations.Input.Path, + query: Operations.ReposListInvitations.Input.Query = .init(), + headers: Operations.ReposListInvitations.Input.Headers = .init() + ) async throws -> Operations.ReposListInvitations.Output { + try await reposListInvitations(Operations.ReposListInvitations.Input( path: path, query: query, headers: headers @@ -4512,12 +4512,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/patch(repos/update-invitation)`. - public func repos_sol_update_hyphen_invitation( - path: Operations.repos_sol_update_hyphen_invitation.Input.Path, - headers: Operations.repos_sol_update_hyphen_invitation.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_invitation.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_invitation.Output { - try await repos_sol_update_hyphen_invitation(Operations.repos_sol_update_hyphen_invitation.Input( + public func reposUpdateInvitation( + path: Operations.ReposUpdateInvitation.Input.Path, + headers: Operations.ReposUpdateInvitation.Input.Headers = .init(), + body: Operations.ReposUpdateInvitation.Input.Body? = nil + ) async throws -> Operations.ReposUpdateInvitation.Output { + try await reposUpdateInvitation(Operations.ReposUpdateInvitation.Input( path: path, headers: headers, body: body @@ -4529,8 +4529,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)`. - public func repos_sol_delete_hyphen_invitation(path: Operations.repos_sol_delete_hyphen_invitation.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_invitation.Output { - try await repos_sol_delete_hyphen_invitation(Operations.repos_sol_delete_hyphen_invitation.Input(path: path)) + public func reposDeleteInvitation(path: Operations.ReposDeleteInvitation.Input.Path) async throws -> Operations.ReposDeleteInvitation.Output { + try await reposDeleteInvitation(Operations.ReposDeleteInvitation.Input(path: path)) } /// List deploy keys /// @@ -4538,12 +4538,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/get(repos/list-deploy-keys)`. - public func repos_sol_list_hyphen_deploy_hyphen_keys( - path: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Path, - query: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output { - try await repos_sol_list_hyphen_deploy_hyphen_keys(Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input( + public func reposListDeployKeys( + path: Operations.ReposListDeployKeys.Input.Path, + query: Operations.ReposListDeployKeys.Input.Query = .init(), + headers: Operations.ReposListDeployKeys.Input.Headers = .init() + ) async throws -> Operations.ReposListDeployKeys.Output { + try await reposListDeployKeys(Operations.ReposListDeployKeys.Input( path: path, query: query, headers: headers @@ -4555,12 +4555,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)`. - public func repos_sol_create_hyphen_deploy_hyphen_key( - path: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Path, - headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output { - try await repos_sol_create_hyphen_deploy_hyphen_key(Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input( + public func reposCreateDeployKey( + path: Operations.ReposCreateDeployKey.Input.Path, + headers: Operations.ReposCreateDeployKey.Input.Headers = .init(), + body: Operations.ReposCreateDeployKey.Input.Body + ) async throws -> Operations.ReposCreateDeployKey.Output { + try await reposCreateDeployKey(Operations.ReposCreateDeployKey.Input( path: path, headers: headers, body: body @@ -4572,11 +4572,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)`. - public func repos_sol_get_hyphen_deploy_hyphen_key( - path: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Path, - headers: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output { - try await repos_sol_get_hyphen_deploy_hyphen_key(Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input( + public func reposGetDeployKey( + path: Operations.ReposGetDeployKey.Input.Path, + headers: Operations.ReposGetDeployKey.Input.Headers = .init() + ) async throws -> Operations.ReposGetDeployKey.Output { + try await reposGetDeployKey(Operations.ReposGetDeployKey.Input( path: path, headers: headers )) @@ -4587,8 +4587,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)`. - public func repos_sol_delete_hyphen_deploy_hyphen_key(path: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Output { - try await repos_sol_delete_hyphen_deploy_hyphen_key(Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input(path: path)) + public func reposDeleteDeployKey(path: Operations.ReposDeleteDeployKey.Input.Path) async throws -> Operations.ReposDeleteDeployKey.Output { + try await reposDeleteDeployKey(Operations.ReposDeleteDeployKey.Input(path: path)) } /// List repository languages /// @@ -4596,11 +4596,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/languages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/languages/get(repos/list-languages)`. - public func repos_sol_list_hyphen_languages( - path: Operations.repos_sol_list_hyphen_languages.Input.Path, - headers: Operations.repos_sol_list_hyphen_languages.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_languages.Output { - try await repos_sol_list_hyphen_languages(Operations.repos_sol_list_hyphen_languages.Input( + public func reposListLanguages( + path: Operations.ReposListLanguages.Input.Path, + headers: Operations.ReposListLanguages.Input.Headers = .init() + ) async throws -> Operations.ReposListLanguages.Output { + try await reposListLanguages(Operations.ReposListLanguages.Input( path: path, headers: headers )) @@ -4611,12 +4611,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merge-upstream`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)`. - public func repos_sol_merge_hyphen_upstream( - path: Operations.repos_sol_merge_hyphen_upstream.Input.Path, - headers: Operations.repos_sol_merge_hyphen_upstream.Input.Headers = .init(), - body: Operations.repos_sol_merge_hyphen_upstream.Input.Body - ) async throws -> Operations.repos_sol_merge_hyphen_upstream.Output { - try await repos_sol_merge_hyphen_upstream(Operations.repos_sol_merge_hyphen_upstream.Input( + public func reposMergeUpstream( + path: Operations.ReposMergeUpstream.Input.Path, + headers: Operations.ReposMergeUpstream.Input.Headers = .init(), + body: Operations.ReposMergeUpstream.Input.Body + ) async throws -> Operations.ReposMergeUpstream.Output { + try await reposMergeUpstream(Operations.ReposMergeUpstream.Input( path: path, headers: headers, body: body @@ -4628,12 +4628,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merges`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)`. - public func repos_sol_merge( - path: Operations.repos_sol_merge.Input.Path, - headers: Operations.repos_sol_merge.Input.Headers = .init(), - body: Operations.repos_sol_merge.Input.Body - ) async throws -> Operations.repos_sol_merge.Output { - try await repos_sol_merge(Operations.repos_sol_merge.Input( + public func reposMerge( + path: Operations.ReposMerge.Input.Path, + headers: Operations.ReposMerge.Input.Headers = .init(), + body: Operations.ReposMerge.Input.Body + ) async throws -> Operations.ReposMerge.Output { + try await reposMerge(Operations.ReposMerge.Input( path: path, headers: headers, body: body @@ -4647,11 +4647,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)`. - public func repos_sol_get_hyphen_pages( - path: Operations.repos_sol_get_hyphen_pages.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_pages.Output { - try await repos_sol_get_hyphen_pages(Operations.repos_sol_get_hyphen_pages.Input( + public func reposGetPages( + path: Operations.ReposGetPages.Input.Path, + headers: Operations.ReposGetPages.Input.Headers = .init() + ) async throws -> Operations.ReposGetPages.Output { + try await reposGetPages(Operations.ReposGetPages.Input( path: path, headers: headers )) @@ -4666,12 +4666,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)`. - public func repos_sol_create_hyphen_pages_hyphen_site( - path: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_site.Output { - try await repos_sol_create_hyphen_pages_hyphen_site(Operations.repos_sol_create_hyphen_pages_hyphen_site.Input( + public func reposCreatePagesSite( + path: Operations.ReposCreatePagesSite.Input.Path, + headers: Operations.ReposCreatePagesSite.Input.Headers = .init(), + body: Operations.ReposCreatePagesSite.Input.Body + ) async throws -> Operations.ReposCreatePagesSite.Output { + try await reposCreatePagesSite(Operations.ReposCreatePagesSite.Input( path: path, headers: headers, body: body @@ -4687,12 +4687,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)`. - public func repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site( - path: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body - ) async throws -> Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Output { - try await repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site(Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input( + public func reposUpdateInformationAboutPagesSite( + path: Operations.ReposUpdateInformationAboutPagesSite.Input.Path, + headers: Operations.ReposUpdateInformationAboutPagesSite.Input.Headers = .init(), + body: Operations.ReposUpdateInformationAboutPagesSite.Input.Body + ) async throws -> Operations.ReposUpdateInformationAboutPagesSite.Output { + try await reposUpdateInformationAboutPagesSite(Operations.ReposUpdateInformationAboutPagesSite.Input( path: path, headers: headers, body: body @@ -4708,11 +4708,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)`. - public func repos_sol_delete_hyphen_pages_hyphen_site( - path: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_pages_hyphen_site.Output { - try await repos_sol_delete_hyphen_pages_hyphen_site(Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input( + public func reposDeletePagesSite( + path: Operations.ReposDeletePagesSite.Input.Path, + headers: Operations.ReposDeletePagesSite.Input.Headers = .init() + ) async throws -> Operations.ReposDeletePagesSite.Output { + try await reposDeletePagesSite(Operations.ReposDeletePagesSite.Input( path: path, headers: headers )) @@ -4725,12 +4725,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/get(repos/list-pages-builds)`. - public func repos_sol_list_hyphen_pages_hyphen_builds( - path: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Path, - query: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output { - try await repos_sol_list_hyphen_pages_hyphen_builds(Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input( + public func reposListPagesBuilds( + path: Operations.ReposListPagesBuilds.Input.Path, + query: Operations.ReposListPagesBuilds.Input.Query = .init(), + headers: Operations.ReposListPagesBuilds.Input.Headers = .init() + ) async throws -> Operations.ReposListPagesBuilds.Output { + try await reposListPagesBuilds(Operations.ReposListPagesBuilds.Input( path: path, query: query, headers: headers @@ -4744,11 +4744,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/post(repos/request-pages-build)`. - public func repos_sol_request_hyphen_pages_hyphen_build( - path: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Headers = .init() - ) async throws -> Operations.repos_sol_request_hyphen_pages_hyphen_build.Output { - try await repos_sol_request_hyphen_pages_hyphen_build(Operations.repos_sol_request_hyphen_pages_hyphen_build.Input( + public func reposRequestPagesBuild( + path: Operations.ReposRequestPagesBuild.Input.Path, + headers: Operations.ReposRequestPagesBuild.Input.Headers = .init() + ) async throws -> Operations.ReposRequestPagesBuild.Output { + try await reposRequestPagesBuild(Operations.ReposRequestPagesBuild.Input( path: path, headers: headers )) @@ -4761,11 +4761,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/latest/get(repos/get-latest-pages-build)`. - public func repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build( - path: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output { - try await repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build(Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input( + public func reposGetLatestPagesBuild( + path: Operations.ReposGetLatestPagesBuild.Input.Path, + headers: Operations.ReposGetLatestPagesBuild.Input.Headers = .init() + ) async throws -> Operations.ReposGetLatestPagesBuild.Output { + try await reposGetLatestPagesBuild(Operations.ReposGetLatestPagesBuild.Input( path: path, headers: headers )) @@ -4778,11 +4778,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/{build_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/{build_id}/get(repos/get-pages-build)`. - public func repos_sol_get_hyphen_pages_hyphen_build( - path: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_build.Output { - try await repos_sol_get_hyphen_pages_hyphen_build(Operations.repos_sol_get_hyphen_pages_hyphen_build.Input( + public func reposGetPagesBuild( + path: Operations.ReposGetPagesBuild.Input.Path, + headers: Operations.ReposGetPagesBuild.Input.Headers = .init() + ) async throws -> Operations.ReposGetPagesBuild.Output { + try await reposGetPagesBuild(Operations.ReposGetPagesBuild.Input( path: path, headers: headers )) @@ -4795,12 +4795,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)`. - public func repos_sol_create_hyphen_pages_hyphen_deployment( - path: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output { - try await repos_sol_create_hyphen_pages_hyphen_deployment(Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input( + public func reposCreatePagesDeployment( + path: Operations.ReposCreatePagesDeployment.Input.Path, + headers: Operations.ReposCreatePagesDeployment.Input.Headers = .init(), + body: Operations.ReposCreatePagesDeployment.Input.Body + ) async throws -> Operations.ReposCreatePagesDeployment.Output { + try await reposCreatePagesDeployment(Operations.ReposCreatePagesDeployment.Input( path: path, headers: headers, body: body @@ -4814,11 +4814,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)`. - public func repos_sol_get_hyphen_pages_hyphen_deployment( - path: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output { - try await repos_sol_get_hyphen_pages_hyphen_deployment(Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input( + public func reposGetPagesDeployment( + path: Operations.ReposGetPagesDeployment.Input.Path, + headers: Operations.ReposGetPagesDeployment.Input.Headers = .init() + ) async throws -> Operations.ReposGetPagesDeployment.Output { + try await reposGetPagesDeployment(Operations.ReposGetPagesDeployment.Input( path: path, headers: headers )) @@ -4831,11 +4831,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)`. - public func repos_sol_cancel_hyphen_pages_hyphen_deployment( - path: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Headers = .init() - ) async throws -> Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Output { - try await repos_sol_cancel_hyphen_pages_hyphen_deployment(Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input( + public func reposCancelPagesDeployment( + path: Operations.ReposCancelPagesDeployment.Input.Path, + headers: Operations.ReposCancelPagesDeployment.Input.Headers = .init() + ) async throws -> Operations.ReposCancelPagesDeployment.Output { + try await reposCancelPagesDeployment(Operations.ReposCancelPagesDeployment.Input( path: path, headers: headers )) @@ -4852,11 +4852,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/health`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)`. - public func repos_sol_get_hyphen_pages_hyphen_health_hyphen_check( - path: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output { - try await repos_sol_get_hyphen_pages_hyphen_health_hyphen_check(Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input( + public func reposGetPagesHealthCheck( + path: Operations.ReposGetPagesHealthCheck.Input.Path, + headers: Operations.ReposGetPagesHealthCheck.Input.Headers = .init() + ) async throws -> Operations.ReposGetPagesHealthCheck.Output { + try await reposGetPagesHealthCheck(Operations.ReposGetPagesHealthCheck.Input( path: path, headers: headers )) @@ -4867,11 +4867,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)`. - public func repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting( - path: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() - ) async throws -> Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { - try await repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting(Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input( + public func reposCheckPrivateVulnerabilityReporting( + path: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Headers = .init() + ) async throws -> Operations.ReposCheckPrivateVulnerabilityReporting.Output { + try await reposCheckPrivateVulnerabilityReporting(Operations.ReposCheckPrivateVulnerabilityReporting.Input( path: path, headers: headers )) @@ -4882,11 +4882,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)`. - public func repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting( - path: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() - ) async throws -> Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { - try await repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting(Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input( + public func reposEnablePrivateVulnerabilityReporting( + path: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Headers = .init() + ) async throws -> Operations.ReposEnablePrivateVulnerabilityReporting.Output { + try await reposEnablePrivateVulnerabilityReporting(Operations.ReposEnablePrivateVulnerabilityReporting.Input( path: path, headers: headers )) @@ -4897,11 +4897,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)`. - public func repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting( - path: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() - ) async throws -> Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output { - try await repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting(Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input( + public func reposDisablePrivateVulnerabilityReporting( + path: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Headers = .init() + ) async throws -> Operations.ReposDisablePrivateVulnerabilityReporting.Output { + try await reposDisablePrivateVulnerabilityReporting(Operations.ReposDisablePrivateVulnerabilityReporting.Input( path: path, headers: headers )) @@ -4913,11 +4913,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)`. - public func repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values( - path: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Path, - headers: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output { - try await repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values(Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input( + public func reposGetCustomPropertiesValues( + path: Operations.ReposGetCustomPropertiesValues.Input.Path, + headers: Operations.ReposGetCustomPropertiesValues.Input.Headers = .init() + ) async throws -> Operations.ReposGetCustomPropertiesValues.Output { + try await reposGetCustomPropertiesValues(Operations.ReposGetCustomPropertiesValues.Input( path: path, headers: headers )) @@ -4931,12 +4931,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)`. - public func repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Output { - try await repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input( + public func reposCreateOrUpdateCustomPropertiesValues( + path: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Path, + headers: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Body + ) async throws -> Operations.ReposCreateOrUpdateCustomPropertiesValues.Output { + try await reposCreateOrUpdateCustomPropertiesValues(Operations.ReposCreateOrUpdateCustomPropertiesValues.Input( path: path, headers: headers, body: body @@ -4953,12 +4953,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)`. - public func repos_sol_get_hyphen_readme( - path: Operations.repos_sol_get_hyphen_readme.Input.Path, - query: Operations.repos_sol_get_hyphen_readme.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_readme.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_readme.Output { - try await repos_sol_get_hyphen_readme(Operations.repos_sol_get_hyphen_readme.Input( + public func reposGetReadme( + path: Operations.ReposGetReadme.Input.Path, + query: Operations.ReposGetReadme.Input.Query = .init(), + headers: Operations.ReposGetReadme.Input.Headers = .init() + ) async throws -> Operations.ReposGetReadme.Output { + try await reposGetReadme(Operations.ReposGetReadme.Input( path: path, query: query, headers: headers @@ -4975,12 +4975,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme/{dir}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)`. - public func repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory( - path: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Path, - query: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output { - try await repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory(Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input( + public func reposGetReadmeInDirectory( + path: Operations.ReposGetReadmeInDirectory.Input.Path, + query: Operations.ReposGetReadmeInDirectory.Input.Query = .init(), + headers: Operations.ReposGetReadmeInDirectory.Input.Headers = .init() + ) async throws -> Operations.ReposGetReadmeInDirectory.Output { + try await reposGetReadmeInDirectory(Operations.ReposGetReadmeInDirectory.Input( path: path, query: query, headers: headers @@ -4994,12 +4994,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)`. - public func repos_sol_list_hyphen_releases( - path: Operations.repos_sol_list_hyphen_releases.Input.Path, - query: Operations.repos_sol_list_hyphen_releases.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_releases.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_releases.Output { - try await repos_sol_list_hyphen_releases(Operations.repos_sol_list_hyphen_releases.Input( + public func reposListReleases( + path: Operations.ReposListReleases.Input.Path, + query: Operations.ReposListReleases.Input.Query = .init(), + headers: Operations.ReposListReleases.Input.Headers = .init() + ) async throws -> Operations.ReposListReleases.Output { + try await reposListReleases(Operations.ReposListReleases.Input( path: path, query: query, headers: headers @@ -5013,12 +5013,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)`. - public func repos_sol_create_hyphen_release( - path: Operations.repos_sol_create_hyphen_release.Input.Path, - headers: Operations.repos_sol_create_hyphen_release.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_release.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_release.Output { - try await repos_sol_create_hyphen_release(Operations.repos_sol_create_hyphen_release.Input( + public func reposCreateRelease( + path: Operations.ReposCreateRelease.Input.Path, + headers: Operations.ReposCreateRelease.Input.Headers = .init(), + body: Operations.ReposCreateRelease.Input.Body + ) async throws -> Operations.ReposCreateRelease.Output { + try await reposCreateRelease(Operations.ReposCreateRelease.Input( path: path, headers: headers, body: body @@ -5036,11 +5036,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`. - public func repos_sol_get_hyphen_release_hyphen_asset( - path: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Path, - headers: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_asset.Output { - try await repos_sol_get_hyphen_release_hyphen_asset(Operations.repos_sol_get_hyphen_release_hyphen_asset.Input( + public func reposGetReleaseAsset( + path: Operations.ReposGetReleaseAsset.Input.Path, + headers: Operations.ReposGetReleaseAsset.Input.Headers = .init() + ) async throws -> Operations.ReposGetReleaseAsset.Output { + try await reposGetReleaseAsset(Operations.ReposGetReleaseAsset.Input( path: path, headers: headers )) @@ -5051,12 +5051,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/patch(repos/update-release-asset)`. - public func repos_sol_update_hyphen_release_hyphen_asset( - path: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Path, - headers: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_release_hyphen_asset.Output { - try await repos_sol_update_hyphen_release_hyphen_asset(Operations.repos_sol_update_hyphen_release_hyphen_asset.Input( + public func reposUpdateReleaseAsset( + path: Operations.ReposUpdateReleaseAsset.Input.Path, + headers: Operations.ReposUpdateReleaseAsset.Input.Headers = .init(), + body: Operations.ReposUpdateReleaseAsset.Input.Body? = nil + ) async throws -> Operations.ReposUpdateReleaseAsset.Output { + try await reposUpdateReleaseAsset(Operations.ReposUpdateReleaseAsset.Input( path: path, headers: headers, body: body @@ -5068,8 +5068,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)`. - public func repos_sol_delete_hyphen_release_hyphen_asset(path: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_release_hyphen_asset.Output { - try await repos_sol_delete_hyphen_release_hyphen_asset(Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input(path: path)) + public func reposDeleteReleaseAsset(path: Operations.ReposDeleteReleaseAsset.Input.Path) async throws -> Operations.ReposDeleteReleaseAsset.Output { + try await reposDeleteReleaseAsset(Operations.ReposDeleteReleaseAsset.Input(path: path)) } /// Generate release notes content for a release /// @@ -5077,12 +5077,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/generate-notes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)`. - public func repos_sol_generate_hyphen_release_hyphen_notes( - path: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Path, - headers: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Headers = .init(), - body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Body - ) async throws -> Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output { - try await repos_sol_generate_hyphen_release_hyphen_notes(Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input( + public func reposGenerateReleaseNotes( + path: Operations.ReposGenerateReleaseNotes.Input.Path, + headers: Operations.ReposGenerateReleaseNotes.Input.Headers = .init(), + body: Operations.ReposGenerateReleaseNotes.Input.Body + ) async throws -> Operations.ReposGenerateReleaseNotes.Output { + try await reposGenerateReleaseNotes(Operations.ReposGenerateReleaseNotes.Input( path: path, headers: headers, body: body @@ -5096,11 +5096,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/latest/get(repos/get-latest-release)`. - public func repos_sol_get_hyphen_latest_hyphen_release( - path: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Path, - headers: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_latest_hyphen_release.Output { - try await repos_sol_get_hyphen_latest_hyphen_release(Operations.repos_sol_get_hyphen_latest_hyphen_release.Input( + public func reposGetLatestRelease( + path: Operations.ReposGetLatestRelease.Input.Path, + headers: Operations.ReposGetLatestRelease.Input.Headers = .init() + ) async throws -> Operations.ReposGetLatestRelease.Output { + try await reposGetLatestRelease(Operations.ReposGetLatestRelease.Input( path: path, headers: headers )) @@ -5111,11 +5111,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/tags/{tag}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)`. - public func repos_sol_get_hyphen_release_hyphen_by_hyphen_tag( - path: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Path, - headers: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output { - try await repos_sol_get_hyphen_release_hyphen_by_hyphen_tag(Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input( + public func reposGetReleaseByTag( + path: Operations.ReposGetReleaseByTag.Input.Path, + headers: Operations.ReposGetReleaseByTag.Input.Headers = .init() + ) async throws -> Operations.ReposGetReleaseByTag.Output { + try await reposGetReleaseByTag(Operations.ReposGetReleaseByTag.Input( path: path, headers: headers )) @@ -5129,11 +5129,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)`. - public func repos_sol_get_hyphen_release( - path: Operations.repos_sol_get_hyphen_release.Input.Path, - headers: Operations.repos_sol_get_hyphen_release.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_release.Output { - try await repos_sol_get_hyphen_release(Operations.repos_sol_get_hyphen_release.Input( + public func reposGetRelease( + path: Operations.ReposGetRelease.Input.Path, + headers: Operations.ReposGetRelease.Input.Headers = .init() + ) async throws -> Operations.ReposGetRelease.Output { + try await reposGetRelease(Operations.ReposGetRelease.Input( path: path, headers: headers )) @@ -5144,12 +5144,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)`. - public func repos_sol_update_hyphen_release( - path: Operations.repos_sol_update_hyphen_release.Input.Path, - headers: Operations.repos_sol_update_hyphen_release.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_release.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_release.Output { - try await repos_sol_update_hyphen_release(Operations.repos_sol_update_hyphen_release.Input( + public func reposUpdateRelease( + path: Operations.ReposUpdateRelease.Input.Path, + headers: Operations.ReposUpdateRelease.Input.Headers = .init(), + body: Operations.ReposUpdateRelease.Input.Body? = nil + ) async throws -> Operations.ReposUpdateRelease.Output { + try await reposUpdateRelease(Operations.ReposUpdateRelease.Input( path: path, headers: headers, body: body @@ -5161,8 +5161,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)`. - public func repos_sol_delete_hyphen_release(path: Operations.repos_sol_delete_hyphen_release.Input.Path) async throws -> Operations.repos_sol_delete_hyphen_release.Output { - try await repos_sol_delete_hyphen_release(Operations.repos_sol_delete_hyphen_release.Input(path: path)) + public func reposDeleteRelease(path: Operations.ReposDeleteRelease.Input.Path) async throws -> Operations.ReposDeleteRelease.Output { + try await reposDeleteRelease(Operations.ReposDeleteRelease.Input(path: path)) } /// List release assets /// @@ -5170,12 +5170,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/get(repos/list-release-assets)`. - public func repos_sol_list_hyphen_release_hyphen_assets( - path: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Path, - query: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_release_hyphen_assets.Output { - try await repos_sol_list_hyphen_release_hyphen_assets(Operations.repos_sol_list_hyphen_release_hyphen_assets.Input( + public func reposListReleaseAssets( + path: Operations.ReposListReleaseAssets.Input.Path, + query: Operations.ReposListReleaseAssets.Input.Query = .init(), + headers: Operations.ReposListReleaseAssets.Input.Headers = .init() + ) async throws -> Operations.ReposListReleaseAssets.Output { + try await reposListReleaseAssets(Operations.ReposListReleaseAssets.Input( path: path, query: query, headers: headers @@ -5205,13 +5205,13 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)`. - public func repos_sol_upload_hyphen_release_hyphen_asset( - path: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Path, - query: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Query, - headers: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Headers = .init(), - body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Body? = nil - ) async throws -> Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output { - try await repos_sol_upload_hyphen_release_hyphen_asset(Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input( + public func reposUploadReleaseAsset( + path: Operations.ReposUploadReleaseAsset.Input.Path, + query: Operations.ReposUploadReleaseAsset.Input.Query, + headers: Operations.ReposUploadReleaseAsset.Input.Headers = .init(), + body: Operations.ReposUploadReleaseAsset.Input.Body? = nil + ) async throws -> Operations.ReposUploadReleaseAsset.Output { + try await reposUploadReleaseAsset(Operations.ReposUploadReleaseAsset.Input( path: path, query: query, headers: headers, @@ -5227,12 +5227,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rules/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rules/branches/{branch}/get(repos/get-branch-rules)`. - public func repos_sol_get_hyphen_branch_hyphen_rules( - path: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Path, - query: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output { - try await repos_sol_get_hyphen_branch_hyphen_rules(Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input( + public func reposGetBranchRules( + path: Operations.ReposGetBranchRules.Input.Path, + query: Operations.ReposGetBranchRules.Input.Query = .init(), + headers: Operations.ReposGetBranchRules.Input.Headers = .init() + ) async throws -> Operations.ReposGetBranchRules.Output { + try await reposGetBranchRules(Operations.ReposGetBranchRules.Input( path: path, query: query, headers: headers @@ -5244,12 +5244,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)`. - public func repos_sol_get_hyphen_repo_hyphen_rulesets( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output { - try await repos_sol_get_hyphen_repo_hyphen_rulesets(Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input( + public func reposGetRepoRulesets( + path: Operations.ReposGetRepoRulesets.Input.Path, + query: Operations.ReposGetRepoRulesets.Input.Query = .init(), + headers: Operations.ReposGetRepoRulesets.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRulesets.Output { + try await reposGetRepoRulesets(Operations.ReposGetRepoRulesets.Input( path: path, query: query, headers: headers @@ -5261,12 +5261,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)`. - public func repos_sol_create_hyphen_repo_hyphen_ruleset( - path: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output { - try await repos_sol_create_hyphen_repo_hyphen_ruleset(Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input( + public func reposCreateRepoRuleset( + path: Operations.ReposCreateRepoRuleset.Input.Path, + headers: Operations.ReposCreateRepoRuleset.Input.Headers = .init(), + body: Operations.ReposCreateRepoRuleset.Input.Body + ) async throws -> Operations.ReposCreateRepoRuleset.Output { + try await reposCreateRepoRuleset(Operations.ReposCreateRepoRuleset.Input( path: path, headers: headers, body: body @@ -5279,12 +5279,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)`. - public func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output { - try await repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites(Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input( + public func reposGetRepoRuleSuites( + path: Operations.ReposGetRepoRuleSuites.Input.Path, + query: Operations.ReposGetRepoRuleSuites.Input.Query = .init(), + headers: Operations.ReposGetRepoRuleSuites.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRuleSuites.Output { + try await reposGetRepoRuleSuites(Operations.ReposGetRepoRuleSuites.Input( path: path, query: query, headers: headers @@ -5297,11 +5297,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)`. - public func repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Path, - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output { - try await repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite(Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input( + public func reposGetRepoRuleSuite( + path: Operations.ReposGetRepoRuleSuite.Input.Path, + headers: Operations.ReposGetRepoRuleSuite.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRuleSuite.Output { + try await reposGetRepoRuleSuite(Operations.ReposGetRepoRuleSuite.Input( path: path, headers: headers )) @@ -5315,12 +5315,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output { - try await repos_sol_get_hyphen_repo_hyphen_ruleset(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input( + public func reposGetRepoRuleset( + path: Operations.ReposGetRepoRuleset.Input.Path, + query: Operations.ReposGetRepoRuleset.Input.Query = .init(), + headers: Operations.ReposGetRepoRuleset.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRuleset.Output { + try await reposGetRepoRuleset(Operations.ReposGetRepoRuleset.Input( path: path, query: query, headers: headers @@ -5332,12 +5332,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)`. - public func repos_sol_update_hyphen_repo_hyphen_ruleset( - path: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body? = nil - ) async throws -> Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output { - try await repos_sol_update_hyphen_repo_hyphen_ruleset(Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input( + public func reposUpdateRepoRuleset( + path: Operations.ReposUpdateRepoRuleset.Input.Path, + headers: Operations.ReposUpdateRepoRuleset.Input.Headers = .init(), + body: Operations.ReposUpdateRepoRuleset.Input.Body? = nil + ) async throws -> Operations.ReposUpdateRepoRuleset.Output { + try await reposUpdateRepoRuleset(Operations.ReposUpdateRepoRuleset.Input( path: path, headers: headers, body: body @@ -5349,11 +5349,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)`. - public func repos_sol_delete_hyphen_repo_hyphen_ruleset( - path: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output { - try await repos_sol_delete_hyphen_repo_hyphen_ruleset(Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input( + public func reposDeleteRepoRuleset( + path: Operations.ReposDeleteRepoRuleset.Input.Path, + headers: Operations.ReposDeleteRepoRuleset.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteRepoRuleset.Output { + try await reposDeleteRepoRuleset(Operations.ReposDeleteRepoRuleset.Input( path: path, headers: headers )) @@ -5364,12 +5364,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output { - try await repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input( + public func reposGetRepoRulesetHistory( + path: Operations.ReposGetRepoRulesetHistory.Input.Path, + query: Operations.ReposGetRepoRulesetHistory.Input.Query = .init(), + headers: Operations.ReposGetRepoRulesetHistory.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRulesetHistory.Output { + try await reposGetRepoRulesetHistory(Operations.ReposGetRepoRulesetHistory.Input( path: path, query: query, headers: headers @@ -5381,11 +5381,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)`. - public func repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Path, - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output { - try await repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input( + public func reposGetRepoRulesetVersion( + path: Operations.ReposGetRepoRulesetVersion.Input.Path, + headers: Operations.ReposGetRepoRulesetVersion.Input.Headers = .init() + ) async throws -> Operations.ReposGetRepoRulesetVersion.Output { + try await reposGetRepoRulesetVersion(Operations.ReposGetRepoRulesetVersion.Input( path: path, headers: headers )) @@ -5399,11 +5399,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`. - public func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats( - path: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output { - try await repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input( + public func reposGetCodeFrequencyStats( + path: Operations.ReposGetCodeFrequencyStats.Input.Path, + headers: Operations.ReposGetCodeFrequencyStats.Input.Headers = .init() + ) async throws -> Operations.ReposGetCodeFrequencyStats.Output { + try await reposGetCodeFrequencyStats(Operations.ReposGetCodeFrequencyStats.Input( path: path, headers: headers )) @@ -5414,11 +5414,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/commit_activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)`. - public func repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats( - path: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output { - try await repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats(Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input( + public func reposGetCommitActivityStats( + path: Operations.ReposGetCommitActivityStats.Input.Path, + headers: Operations.ReposGetCommitActivityStats.Input.Headers = .init() + ) async throws -> Operations.ReposGetCommitActivityStats.Output { + try await reposGetCommitActivityStats(Operations.ReposGetCommitActivityStats.Input( path: path, headers: headers )) @@ -5438,11 +5438,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`. - public func repos_sol_get_hyphen_contributors_hyphen_stats( - path: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output { - try await repos_sol_get_hyphen_contributors_hyphen_stats(Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input( + public func reposGetContributorsStats( + path: Operations.ReposGetContributorsStats.Input.Path, + headers: Operations.ReposGetContributorsStats.Input.Headers = .init() + ) async throws -> Operations.ReposGetContributorsStats.Output { + try await reposGetContributorsStats(Operations.ReposGetContributorsStats.Input( path: path, headers: headers )) @@ -5457,11 +5457,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/participation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)`. - public func repos_sol_get_hyphen_participation_hyphen_stats( - path: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output { - try await repos_sol_get_hyphen_participation_hyphen_stats(Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input( + public func reposGetParticipationStats( + path: Operations.ReposGetParticipationStats.Input.Path, + headers: Operations.ReposGetParticipationStats.Input.Headers = .init() + ) async throws -> Operations.ReposGetParticipationStats.Output { + try await reposGetParticipationStats(Operations.ReposGetParticipationStats.Input( path: path, headers: headers )) @@ -5478,11 +5478,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/punch_card`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)`. - public func repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats( - path: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output { - try await repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats(Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input( + public func reposGetPunchCardStats( + path: Operations.ReposGetPunchCardStats.Input.Path, + headers: Operations.ReposGetPunchCardStats.Input.Headers = .init() + ) async throws -> Operations.ReposGetPunchCardStats.Output { + try await reposGetPunchCardStats(Operations.ReposGetPunchCardStats.Input( path: path, headers: headers )) @@ -5495,12 +5495,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/statuses/{sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/statuses/{sha}/post(repos/create-commit-status)`. - public func repos_sol_create_hyphen_commit_hyphen_status( - path: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_commit_hyphen_status.Output { - try await repos_sol_create_hyphen_commit_hyphen_status(Operations.repos_sol_create_hyphen_commit_hyphen_status.Input( + public func reposCreateCommitStatus( + path: Operations.ReposCreateCommitStatus.Input.Path, + headers: Operations.ReposCreateCommitStatus.Input.Headers = .init(), + body: Operations.ReposCreateCommitStatus.Input.Body + ) async throws -> Operations.ReposCreateCommitStatus.Output { + try await reposCreateCommitStatus(Operations.ReposCreateCommitStatus.Input( path: path, headers: headers, body: body @@ -5512,12 +5512,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`. - public func repos_sol_list_hyphen_tags( - path: Operations.repos_sol_list_hyphen_tags.Input.Path, - query: Operations.repos_sol_list_hyphen_tags.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_tags.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_tags.Output { - try await repos_sol_list_hyphen_tags(Operations.repos_sol_list_hyphen_tags.Input( + public func reposListTags( + path: Operations.ReposListTags.Input.Path, + query: Operations.ReposListTags.Input.Query = .init(), + headers: Operations.ReposListTags.Input.Headers = .init() + ) async throws -> Operations.ReposListTags.Output { + try await reposListTags(Operations.ReposListTags.Input( path: path, query: query, headers: headers @@ -5535,11 +5535,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`. @available(*, deprecated) - public func repos_sol_list_hyphen_tag_hyphen_protection( - path: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output { - try await repos_sol_list_hyphen_tag_hyphen_protection(Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input( + public func reposListTagProtection( + path: Operations.ReposListTagProtection.Input.Path, + headers: Operations.ReposListTagProtection.Input.Headers = .init() + ) async throws -> Operations.ReposListTagProtection.Output { + try await reposListTagProtection(Operations.ReposListTagProtection.Input( path: path, headers: headers )) @@ -5555,12 +5555,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`. @available(*, deprecated) - public func repos_sol_create_hyphen_tag_hyphen_protection( - path: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output { - try await repos_sol_create_hyphen_tag_hyphen_protection(Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input( + public func reposCreateTagProtection( + path: Operations.ReposCreateTagProtection.Input.Path, + headers: Operations.ReposCreateTagProtection.Input.Headers = .init(), + body: Operations.ReposCreateTagProtection.Input.Body + ) async throws -> Operations.ReposCreateTagProtection.Output { + try await reposCreateTagProtection(Operations.ReposCreateTagProtection.Input( path: path, headers: headers, body: body @@ -5577,11 +5577,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`. @available(*, deprecated) - public func repos_sol_delete_hyphen_tag_hyphen_protection( - path: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Headers = .init() - ) async throws -> Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output { - try await repos_sol_delete_hyphen_tag_hyphen_protection(Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input( + public func reposDeleteTagProtection( + path: Operations.ReposDeleteTagProtection.Input.Path, + headers: Operations.ReposDeleteTagProtection.Input.Headers = .init() + ) async throws -> Operations.ReposDeleteTagProtection.Output { + try await reposDeleteTagProtection(Operations.ReposDeleteTagProtection.Input( path: path, headers: headers )) @@ -5597,8 +5597,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tarball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tarball/{ref}/get(repos/download-tarball-archive)`. - public func repos_sol_download_hyphen_tarball_hyphen_archive(path: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input.Path) async throws -> Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output { - try await repos_sol_download_hyphen_tarball_hyphen_archive(Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input(path: path)) + public func reposDownloadTarballArchive(path: Operations.ReposDownloadTarballArchive.Input.Path) async throws -> Operations.ReposDownloadTarballArchive.Output { + try await reposDownloadTarballArchive(Operations.ReposDownloadTarballArchive.Input(path: path)) } /// List repository teams /// @@ -5610,12 +5610,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)`. - public func repos_sol_list_hyphen_teams( - path: Operations.repos_sol_list_hyphen_teams.Input.Path, - query: Operations.repos_sol_list_hyphen_teams.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_teams.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_teams.Output { - try await repos_sol_list_hyphen_teams(Operations.repos_sol_list_hyphen_teams.Input( + public func reposListTeams( + path: Operations.ReposListTeams.Input.Path, + query: Operations.ReposListTeams.Input.Query = .init(), + headers: Operations.ReposListTeams.Input.Headers = .init() + ) async throws -> Operations.ReposListTeams.Output { + try await reposListTeams(Operations.ReposListTeams.Input( path: path, query: query, headers: headers @@ -5627,12 +5627,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)`. - public func repos_sol_get_hyphen_all_hyphen_topics( - path: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Path, - query: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_all_hyphen_topics.Output { - try await repos_sol_get_hyphen_all_hyphen_topics(Operations.repos_sol_get_hyphen_all_hyphen_topics.Input( + public func reposGetAllTopics( + path: Operations.ReposGetAllTopics.Input.Path, + query: Operations.ReposGetAllTopics.Input.Query = .init(), + headers: Operations.ReposGetAllTopics.Input.Headers = .init() + ) async throws -> Operations.ReposGetAllTopics.Output { + try await reposGetAllTopics(Operations.ReposGetAllTopics.Input( path: path, query: query, headers: headers @@ -5644,12 +5644,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)`. - public func repos_sol_replace_hyphen_all_hyphen_topics( - path: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Path, - headers: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Headers = .init(), - body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Body - ) async throws -> Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output { - try await repos_sol_replace_hyphen_all_hyphen_topics(Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input( + public func reposReplaceAllTopics( + path: Operations.ReposReplaceAllTopics.Input.Path, + headers: Operations.ReposReplaceAllTopics.Input.Headers = .init(), + body: Operations.ReposReplaceAllTopics.Input.Body + ) async throws -> Operations.ReposReplaceAllTopics.Output { + try await reposReplaceAllTopics(Operations.ReposReplaceAllTopics.Input( path: path, headers: headers, body: body @@ -5661,12 +5661,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/clones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)`. - public func repos_sol_get_hyphen_clones( - path: Operations.repos_sol_get_hyphen_clones.Input.Path, - query: Operations.repos_sol_get_hyphen_clones.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_clones.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_clones.Output { - try await repos_sol_get_hyphen_clones(Operations.repos_sol_get_hyphen_clones.Input( + public func reposGetClones( + path: Operations.ReposGetClones.Input.Path, + query: Operations.ReposGetClones.Input.Query = .init(), + headers: Operations.ReposGetClones.Input.Headers = .init() + ) async throws -> Operations.ReposGetClones.Output { + try await reposGetClones(Operations.ReposGetClones.Input( path: path, query: query, headers: headers @@ -5678,11 +5678,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/paths`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)`. - public func repos_sol_get_hyphen_top_hyphen_paths( - path: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Path, - headers: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_paths.Output { - try await repos_sol_get_hyphen_top_hyphen_paths(Operations.repos_sol_get_hyphen_top_hyphen_paths.Input( + public func reposGetTopPaths( + path: Operations.ReposGetTopPaths.Input.Path, + headers: Operations.ReposGetTopPaths.Input.Headers = .init() + ) async throws -> Operations.ReposGetTopPaths.Output { + try await reposGetTopPaths(Operations.ReposGetTopPaths.Input( path: path, headers: headers )) @@ -5693,11 +5693,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/referrers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)`. - public func repos_sol_get_hyphen_top_hyphen_referrers( - path: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Path, - headers: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output { - try await repos_sol_get_hyphen_top_hyphen_referrers(Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input( + public func reposGetTopReferrers( + path: Operations.ReposGetTopReferrers.Input.Path, + headers: Operations.ReposGetTopReferrers.Input.Headers = .init() + ) async throws -> Operations.ReposGetTopReferrers.Output { + try await reposGetTopReferrers(Operations.ReposGetTopReferrers.Input( path: path, headers: headers )) @@ -5708,12 +5708,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/views`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)`. - public func repos_sol_get_hyphen_views( - path: Operations.repos_sol_get_hyphen_views.Input.Path, - query: Operations.repos_sol_get_hyphen_views.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_views.Input.Headers = .init() - ) async throws -> Operations.repos_sol_get_hyphen_views.Output { - try await repos_sol_get_hyphen_views(Operations.repos_sol_get_hyphen_views.Input( + public func reposGetViews( + path: Operations.ReposGetViews.Input.Path, + query: Operations.ReposGetViews.Input.Query = .init(), + headers: Operations.ReposGetViews.Input.Headers = .init() + ) async throws -> Operations.ReposGetViews.Output { + try await reposGetViews(Operations.ReposGetViews.Input( path: path, query: query, headers: headers @@ -5725,12 +5725,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/transfer`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/transfer/post(repos/transfer)`. - public func repos_sol_transfer( - path: Operations.repos_sol_transfer.Input.Path, - headers: Operations.repos_sol_transfer.Input.Headers = .init(), - body: Operations.repos_sol_transfer.Input.Body - ) async throws -> Operations.repos_sol_transfer.Output { - try await repos_sol_transfer(Operations.repos_sol_transfer.Input( + public func reposTransfer( + path: Operations.ReposTransfer.Input.Path, + headers: Operations.ReposTransfer.Input.Headers = .init(), + body: Operations.ReposTransfer.Input.Body + ) async throws -> Operations.ReposTransfer.Output { + try await reposTransfer(Operations.ReposTransfer.Input( path: path, headers: headers, body: body @@ -5742,8 +5742,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)`. - public func repos_sol_check_hyphen_vulnerability_hyphen_alerts(path: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input.Path) async throws -> Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output { - try await repos_sol_check_hyphen_vulnerability_hyphen_alerts(Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input(path: path)) + public func reposCheckVulnerabilityAlerts(path: Operations.ReposCheckVulnerabilityAlerts.Input.Path) async throws -> Operations.ReposCheckVulnerabilityAlerts.Output { + try await reposCheckVulnerabilityAlerts(Operations.ReposCheckVulnerabilityAlerts.Input(path: path)) } /// Enable vulnerability alerts /// @@ -5751,8 +5751,8 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)`. - public func repos_sol_enable_hyphen_vulnerability_hyphen_alerts(path: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input.Path) async throws -> Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Output { - try await repos_sol_enable_hyphen_vulnerability_hyphen_alerts(Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input(path: path)) + public func reposEnableVulnerabilityAlerts(path: Operations.ReposEnableVulnerabilityAlerts.Input.Path) async throws -> Operations.ReposEnableVulnerabilityAlerts.Output { + try await reposEnableVulnerabilityAlerts(Operations.ReposEnableVulnerabilityAlerts.Input(path: path)) } /// Disable vulnerability alerts /// @@ -5762,8 +5762,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)`. - public func repos_sol_disable_hyphen_vulnerability_hyphen_alerts(path: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input.Path) async throws -> Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Output { - try await repos_sol_disable_hyphen_vulnerability_hyphen_alerts(Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input(path: path)) + public func reposDisableVulnerabilityAlerts(path: Operations.ReposDisableVulnerabilityAlerts.Input.Path) async throws -> Operations.ReposDisableVulnerabilityAlerts.Output { + try await reposDisableVulnerabilityAlerts(Operations.ReposDisableVulnerabilityAlerts.Input(path: path)) } /// Download a repository archive (zip) /// @@ -5776,8 +5776,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/zipball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/zipball/{ref}/get(repos/download-zipball-archive)`. - public func repos_sol_download_hyphen_zipball_hyphen_archive(path: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input.Path) async throws -> Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output { - try await repos_sol_download_hyphen_zipball_hyphen_archive(Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input(path: path)) + public func reposDownloadZipballArchive(path: Operations.ReposDownloadZipballArchive.Input.Path) async throws -> Operations.ReposDownloadZipballArchive.Output { + try await reposDownloadZipballArchive(Operations.ReposDownloadZipballArchive.Input(path: path)) } /// Create a repository using a template /// @@ -5787,12 +5787,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{template_owner}/{template_repo}/generate`. /// - Remark: Generated from `#/paths//repos/{template_owner}/{template_repo}/generate/post(repos/create-using-template)`. - public func repos_sol_create_hyphen_using_hyphen_template( - path: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Path, - headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_using_hyphen_template.Output { - try await repos_sol_create_hyphen_using_hyphen_template(Operations.repos_sol_create_hyphen_using_hyphen_template.Input( + public func reposCreateUsingTemplate( + path: Operations.ReposCreateUsingTemplate.Input.Path, + headers: Operations.ReposCreateUsingTemplate.Input.Headers = .init(), + body: Operations.ReposCreateUsingTemplate.Input.Body + ) async throws -> Operations.ReposCreateUsingTemplate.Output { + try await reposCreateUsingTemplate(Operations.ReposCreateUsingTemplate.Input( path: path, headers: headers, body: body @@ -5808,11 +5808,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repositories`. /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)`. - public func repos_sol_list_hyphen_public( - query: Operations.repos_sol_list_hyphen_public.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_public.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_public.Output { - try await repos_sol_list_hyphen_public(Operations.repos_sol_list_hyphen_public.Input( + public func reposListPublic( + query: Operations.ReposListPublic.Input.Query = .init(), + headers: Operations.ReposListPublic.Input.Headers = .init() + ) async throws -> Operations.ReposListPublic.Output { + try await reposListPublic(Operations.ReposListPublic.Input( query: query, headers: headers )) @@ -5825,11 +5825,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/repos`. /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)`. - public func repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func reposListForAuthenticatedUser( + query: Operations.ReposListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ReposListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ReposListForAuthenticatedUser.Output { + try await reposListForAuthenticatedUser(Operations.ReposListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -5842,11 +5842,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/repos`. /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)`. - public func repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func reposCreateForAuthenticatedUser( + headers: Operations.ReposCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.ReposCreateForAuthenticatedUser.Input.Body + ) async throws -> Operations.ReposCreateForAuthenticatedUser.Output { + try await reposCreateForAuthenticatedUser(Operations.ReposCreateForAuthenticatedUser.Input( headers: headers, body: body )) @@ -5857,11 +5857,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/repository_invitations`. /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)`. - public func repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user(Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func reposListInvitationsForAuthenticatedUser( + query: Operations.ReposListInvitationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ReposListInvitationsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ReposListInvitationsForAuthenticatedUser.Output { + try await reposListInvitationsForAuthenticatedUser(Operations.ReposListInvitationsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -5872,11 +5872,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)`. - public func repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func reposAcceptInvitationForAuthenticatedUser( + path: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Path, + headers: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ReposAcceptInvitationForAuthenticatedUser.Output { + try await reposAcceptInvitationForAuthenticatedUser(Operations.ReposAcceptInvitationForAuthenticatedUser.Input( path: path, headers: headers )) @@ -5887,11 +5887,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)`. - public func repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user(Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func reposDeclineInvitationForAuthenticatedUser( + path: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Path, + headers: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.ReposDeclineInvitationForAuthenticatedUser.Output { + try await reposDeclineInvitationForAuthenticatedUser(Operations.ReposDeclineInvitationForAuthenticatedUser.Input( path: path, headers: headers )) @@ -5902,12 +5902,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/repos`. /// - Remark: Generated from `#/paths//users/{username}/repos/get(repos/list-for-user)`. - public func repos_sol_list_hyphen_for_hyphen_user( - path: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.repos_sol_list_hyphen_for_hyphen_user.Output { - try await repos_sol_list_hyphen_for_hyphen_user(Operations.repos_sol_list_hyphen_for_hyphen_user.Input( + public func reposListForUser( + path: Operations.ReposListForUser.Input.Path, + query: Operations.ReposListForUser.Input.Query = .init(), + headers: Operations.ReposListForUser.Input.Headers = .init() + ) async throws -> Operations.ReposListForUser.Output { + try await reposListForUser(Operations.ReposListForUser.Input( path: path, query: query, headers: headers @@ -5917,6 +5917,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -5932,7 +5941,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -5942,171 +5951,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -6114,54 +6123,54 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -6171,64 +6180,64 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/integration`. - public struct integration: Codable, Hashable, Sendable { + public struct Integration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/id`. @@ -6238,25 +6247,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -6269,15 +6278,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/integration/owner`. - public var owner: Components.Schemas.integration.ownerPayload + public var owner: Components.Schemas.Integration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/name`. @@ -6285,17 +6294,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/permissions/checks`. @@ -6308,7 +6317,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -6341,23 +6350,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -6372,23 +6381,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -6397,7 +6406,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. - public var permissions: Components.Schemas.integration.permissionsPayload + public var permissions: Components.Schemas.Integration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/events`. @@ -6405,104 +6414,104 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/integration/pem`. public var pem: Swift.String? - /// Creates a new `integration`. + /// Creates a new `Integration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.Integration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// The URL to which the payloads will be delivered. /// /// - Remark: Generated from `#/components/schemas/webhook-config-url`. - public typealias webhook_hyphen_config_hyphen_url = Swift.String + public typealias WebhookConfigUrl = Swift.String /// The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. /// /// - Remark: Generated from `#/components/schemas/webhook-config-content-type`. - public typealias webhook_hyphen_config_hyphen_content_hyphen_type = Swift.String + public typealias WebhookConfigContentType = Swift.String /// If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). /// /// - Remark: Generated from `#/components/schemas/webhook-config-secret`. - public typealias webhook_hyphen_config_hyphen_secret = Swift.String + public typealias WebhookConfigSecret = Swift.String /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl`. - @frozen public enum webhook_hyphen_config_hyphen_insecure_hyphen_ssl: Codable, Hashable, Sendable { + @frozen public enum WebhookConfigInsecureSsl: Codable, Hashable, Sendable { /// Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** /// /// - Remark: Generated from `#/components/schemas/webhook-config-insecure-ssl/case1`. @@ -6541,44 +6550,44 @@ public enum Components { /// Configuration object of the webhook /// /// - Remark: Generated from `#/components/schemas/webhook-config`. - public struct webhook_hyphen_config: Codable, Hashable, Sendable { + public struct WebhookConfig: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/webhook-config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/components/schemas/webhook-config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/components/schemas/webhook-config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/components/schemas/webhook-config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `webhook_hyphen_config`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `WebhookConfig`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// Delivery made by a webhook, without request and response information. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item`. - public struct hook_hyphen_delivery_hyphen_item: Codable, Hashable, Sendable { + public struct HookDeliveryItem: Codable, Hashable, Sendable { /// Unique identifier of the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/id`. @@ -6590,7 +6599,7 @@ public enum Components { /// Time when the webhook delivery occurred. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the webhook delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/redelivery`. @@ -6606,7 +6615,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/event`. @@ -6618,80 +6627,80 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/installation_id`. - public var installation_id: Swift.Int64? + public var installationId: Swift.Int64? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/repository_id`. - public var repository_id: Swift.Int64? + public var repositoryId: Swift.Int64? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery-item/throttled_at`. - public var throttled_at: Foundation.Date? - /// Creates a new `hook_hyphen_delivery_hyphen_item`. + public var throttledAt: Foundation.Date? + /// Creates a new `HookDeliveryItem`. /// /// - Parameters: /// - id: Unique identifier of the webhook delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the webhook delivery occurred. + /// - deliveredAt: Time when the webhook delivery occurred. /// - redelivery: Whether the webhook delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Describes the response returned after attempting the delivery. - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. public init( id: Swift.Int64, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int64? = nil, - repository_id: Swift.Int64? = nil, - throttled_at: Foundation.Date? = nil + installationId: Swift.Int64? = nil, + repositoryId: Swift.Int64? = nil, + throttledAt: Foundation.Date? = nil ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt } public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -6700,25 +6709,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -6726,7 +6735,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -6736,30 +6745,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -6798,9 +6807,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -6815,7 +6824,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -6834,34 +6843,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Delivery made by a webhook. /// /// - Remark: Generated from `#/components/schemas/hook-delivery`. - public struct hook_hyphen_delivery: Codable, Hashable, Sendable { + public struct HookDelivery: Codable, Hashable, Sendable { /// Unique identifier of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/id`. @@ -6873,7 +6882,7 @@ public enum Components { /// Time when the delivery was delivered. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/delivered_at`. - public var delivered_at: Foundation.Date + public var deliveredAt: Foundation.Date /// Whether the delivery is a redelivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/redelivery`. @@ -6889,7 +6898,7 @@ public enum Components { /// Status code received when delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/status_code`. - public var status_code: Swift.Int + public var statusCode: Swift.Int /// The event that triggered the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/event`. @@ -6901,28 +6910,28 @@ public enum Components { /// The id of the GitHub App installation associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/installation_id`. - public var installation_id: Swift.Int? + public var installationId: Swift.Int? /// The id of the repository associated with this event. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/repository_id`. - public var repository_id: Swift.Int? + public var repositoryId: Swift.Int? /// Time when the webhook delivery was throttled. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/throttled_at`. - public var throttled_at: Foundation.Date? + public var throttledAt: Foundation.Date? /// The URL target of the delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public struct requestPayload: Codable, Hashable, Sendable { + public struct RequestPayload: Codable, Hashable, Sendable { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -6939,14 +6948,14 @@ public enum Components { /// The request headers sent with the webhook delivery. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public struct payloadPayload: Codable, Hashable, Sendable { + public struct PayloadPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `payloadPayload`. + /// Creates a new `PayloadPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -6963,15 +6972,15 @@ public enum Components { /// The webhook payload. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/request/payload`. - public var payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? - /// Creates a new `requestPayload`. + public var payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? + /// Creates a new `RequestPayload`. /// /// - Parameters: /// - headers: The request headers sent with the webhook delivery. /// - payload: The webhook payload. public init( - headers: Components.Schemas.hook_hyphen_delivery.requestPayload.headersPayload? = nil, - payload: Components.Schemas.hook_hyphen_delivery.requestPayload.payloadPayload? = nil + headers: Components.Schemas.HookDelivery.RequestPayload.HeadersPayload? = nil, + payload: Components.Schemas.HookDelivery.RequestPayload.PayloadPayload? = nil ) { self.headers = headers self.payload = payload @@ -6982,16 +6991,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/request`. - public var request: Components.Schemas.hook_hyphen_delivery.requestPayload + public var request: Components.Schemas.HookDelivery.RequestPayload /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public struct responsePayload: Codable, Hashable, Sendable { + public struct ResponsePayload: Codable, Hashable, Sendable { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public struct headersPayload: Codable, Hashable, Sendable { + public struct HeadersPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `headersPayload`. + /// Creates a new `HeadersPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -7008,18 +7017,18 @@ public enum Components { /// The response headers received when the delivery was made. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/headers`. - public var headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? + public var headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? /// The response payload received. /// /// - Remark: Generated from `#/components/schemas/hook-delivery/response/payload`. public var payload: Swift.String? - /// Creates a new `responsePayload`. + /// Creates a new `ResponsePayload`. /// /// - Parameters: /// - headers: The response headers received when the delivery was made. /// - payload: The response payload received. public init( - headers: Components.Schemas.hook_hyphen_delivery.responsePayload.headersPayload? = nil, + headers: Components.Schemas.HookDelivery.ResponsePayload.HeadersPayload? = nil, payload: Swift.String? = nil ) { self.headers = headers @@ -7031,54 +7040,54 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hook-delivery/response`. - public var response: Components.Schemas.hook_hyphen_delivery.responsePayload - /// Creates a new `hook_hyphen_delivery`. + public var response: Components.Schemas.HookDelivery.ResponsePayload + /// Creates a new `HookDelivery`. /// /// - Parameters: /// - id: Unique identifier of the delivery. /// - guid: Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event). - /// - delivered_at: Time when the delivery was delivered. + /// - deliveredAt: Time when the delivery was delivered. /// - redelivery: Whether the delivery is a redelivery. /// - duration: Time spent delivering. /// - status: Description of the status of the attempted delivery - /// - status_code: Status code received when delivery was made. + /// - statusCode: Status code received when delivery was made. /// - event: The event that triggered the delivery. /// - action: The type of activity for the event that triggered the delivery. - /// - installation_id: The id of the GitHub App installation associated with this event. - /// - repository_id: The id of the repository associated with this event. - /// - throttled_at: Time when the webhook delivery was throttled. + /// - installationId: The id of the GitHub App installation associated with this event. + /// - repositoryId: The id of the repository associated with this event. + /// - throttledAt: Time when the webhook delivery was throttled. /// - url: The URL target of the delivery. /// - request: /// - response: public init( id: Swift.Int, guid: Swift.String, - delivered_at: Foundation.Date, + deliveredAt: Foundation.Date, redelivery: Swift.Bool, duration: Swift.Double, status: Swift.String, - status_code: Swift.Int, + statusCode: Swift.Int, event: Swift.String, action: Swift.String? = nil, - installation_id: Swift.Int? = nil, - repository_id: Swift.Int? = nil, - throttled_at: Foundation.Date? = nil, + installationId: Swift.Int? = nil, + repositoryId: Swift.Int? = nil, + throttledAt: Foundation.Date? = nil, url: Swift.String? = nil, - request: Components.Schemas.hook_hyphen_delivery.requestPayload, - response: Components.Schemas.hook_hyphen_delivery.responsePayload + request: Components.Schemas.HookDelivery.RequestPayload, + response: Components.Schemas.HookDelivery.ResponsePayload ) { self.id = id self.guid = guid - self.delivered_at = delivered_at + self.deliveredAt = deliveredAt self.redelivery = redelivery self.duration = duration self.status = status - self.status_code = status_code + self.statusCode = statusCode self.event = event self.action = action - self.installation_id = installation_id - self.repository_id = repository_id - self.throttled_at = throttled_at + self.installationId = installationId + self.repositoryId = repositoryId + self.throttledAt = throttledAt self.url = url self.request = request self.response = response @@ -7086,16 +7095,16 @@ public enum Components { public enum CodingKeys: String, CodingKey { case id case guid - case delivered_at + case deliveredAt = "delivered_at" case redelivery case duration case status - case status_code + case statusCode = "status_code" case event case action - case installation_id - case repository_id - case throttled_at + case installationId = "installation_id" + case repositoryId = "repository_id" + case throttledAt = "throttled_at" case url case request case response @@ -7104,7 +7113,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -7114,142 +7123,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -7257,66 +7266,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -7327,7 +7336,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -7357,15 +7366,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -7373,97 +7382,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -7471,38 +7480,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -7516,47 +7525,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -7564,7 +7573,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -7572,10 +7581,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -7584,16 +7593,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -7601,7 +7610,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -7609,10 +7618,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -7621,424 +7630,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -8048,50 +8057,50 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct nullable_hyphen_milestone: Codable, Hashable, Sendable { + public struct NullableMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. @@ -8099,14 +8108,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.nullable_hyphen_milestone.statePayload + public var state: Components.Schemas.NullableMilestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. @@ -8114,96 +8123,96 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `nullable_hyphen_milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `NullableMilestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.nullable_hyphen_milestone.statePayload, + state: Components.Schemas.NullableMilestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -8213,25 +8222,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -8244,15 +8253,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -8260,17 +8269,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -8283,7 +8292,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -8316,23 +8325,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -8347,23 +8356,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -8372,7 +8381,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -8380,109 +8389,109 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -8499,11 +8508,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -8514,7 +8523,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -8525,7 +8534,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -8537,7 +8546,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -8549,21 +8558,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8571,21 +8580,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8593,27 +8602,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8623,21 +8632,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8645,21 +8654,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8667,21 +8676,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8689,21 +8698,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -8711,62 +8720,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. - /// - /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: - public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil - ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. + /// + /// - Parameters: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: + public init( + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil + ) { + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -8774,121 +8783,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -8896,13 +8905,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -8913,7 +8922,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -8943,436 +8952,436 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -9381,19 +9390,19 @@ public enum Components { /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -9413,86 +9422,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -9502,11 +9511,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -9517,7 +9526,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -9547,94 +9556,94 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Custom property name and associated value /// /// - Remark: Generated from `#/components/schemas/custom-property-value`. - public struct custom_hyphen_property_hyphen_value: Codable, Hashable, Sendable { + public struct CustomPropertyValue: Codable, Hashable, Sendable { /// The name of the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/property_name`. - public var property_name: Swift.String + public var propertyName: Swift.String /// The value assigned to the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { + @frozen public enum ValuePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/custom-property-value/value/case1`. case case1(Swift.String) /// - Remark: Generated from `#/components/schemas/custom-property-value/value/case2`. @@ -9671,46 +9680,46 @@ public enum Components { /// The value assigned to the property /// /// - Remark: Generated from `#/components/schemas/custom-property-value/value`. - public var value: Components.Schemas.custom_hyphen_property_hyphen_value.valuePayload? - /// Creates a new `custom_hyphen_property_hyphen_value`. + public var value: Components.Schemas.CustomPropertyValue.ValuePayload? + /// Creates a new `CustomPropertyValue`. /// /// - Parameters: - /// - property_name: The name of the property + /// - propertyName: The name of the property /// - value: The value assigned to the property public init( - property_name: Swift.String, - value: Components.Schemas.custom_hyphen_property_hyphen_value.valuePayload? = nil + propertyName: Swift.String, + value: Components.Schemas.CustomPropertyValue.ValuePayload? = nil ) { - self.property_name = property_name + self.propertyName = propertyName self.value = value } public enum CodingKeys: String, CodingKey { - case property_name + case propertyName = "property_name" case value } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-repository`. - public struct nullable_hyphen_repository: Codable, Hashable, Sendable { + public struct NullableRepository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/pull`. @@ -9721,7 +9730,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -9751,15 +9760,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.NullableRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/fork`. @@ -9767,97 +9776,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/size`. @@ -9865,38 +9874,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/archived`. @@ -9910,47 +9919,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/nullable-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -9958,7 +9967,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -9966,10 +9975,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -9978,16 +9987,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -9995,7 +10004,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -10003,10 +10012,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -10015,424 +10024,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/nullable-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `nullable_hyphen_repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `NullableRepository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.NullableRepository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code of Conduct Simple /// /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple`. - public struct code_hyphen_of_hyphen_conduct_hyphen_simple: Codable, Hashable, Sendable { + public struct CodeOfConductSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/key`. @@ -10440,50 +10449,50 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConductSimple`. /// /// - Parameters: /// - url: /// - key: /// - name: - /// - html_url: + /// - htmlUrl: public init( url: Swift.String, key: Swift.String, name: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.url = url self.key = key self.name = name - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case url case key case name - case html_url + case htmlUrl = "html_url" } } /// Full Repository /// /// - Remark: Generated from `#/components/schemas/full-repository`. - public struct full_hyphen_repository: Codable, Hashable, Sendable { + public struct FullRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/full-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/full-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/fork`. @@ -10491,121 +10500,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/full-repository/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/full-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/has_discussions`. - public var has_discussions: Swift.Bool + public var hasDiscussions: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/archived`. public var archived: Swift.Bool /// Returns whether or not this repository disabled. @@ -10617,13 +10626,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/pushed_at`. - public var pushed_at: Foundation.Date + public var pushedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/permissions/maintain`. @@ -10634,7 +10643,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/permissions/pull`. public var pull: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -10664,34 +10673,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public var permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.FullRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/template_repository`. - public var template_repository: Components.Schemas.nullable_hyphen_repository? + public var templateRepository: Components.Schemas.NullableRepository? /// - Remark: Generated from `#/components/schemas/full-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/use_squash_pr_title_as_default`. - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -10699,7 +10708,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -10707,10 +10716,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -10719,16 +10728,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -10736,7 +10745,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -10744,10 +10753,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -10756,46 +10765,46 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_count`. - public var subscribers_count: Swift.Int + public var subscribersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/network_count`. - public var network_count: Swift.Int + public var networkCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/full-repository/organization`. - public var organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var organization: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/full-repository/parent`. - public var parent: Components.Schemas.repository? + public var parent: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/source`. - public var source: Components.Schemas.repository? + public var source: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers`. public var watchers: Swift.Int /// Whether anonymous git access is allowed. /// /// - Remark: Generated from `#/components/schemas/full-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? + public var anonymousAccessEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? + public var codeOfConduct: Components.Schemas.CodeOfConductSimple? /// - Remark: Generated from `#/components/schemas/full-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public struct custom_propertiesPayload: Codable, Hashable, Sendable { + public struct CustomPropertiesPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `custom_propertiesPayload`. + /// Creates a new `CustomPropertiesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -10812,432 +10821,432 @@ public enum Components { /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public var custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? - /// Creates a new `full_hyphen_repository`. + public var customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? + /// Creates a new `FullRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - allow_rebase_merge: - /// - template_repository: - /// - temp_clone_token: - /// - allow_squash_merge: - /// - allow_auto_merge: - /// - delete_branch_on_merge: - /// - allow_merge_commit: - /// - allow_update_branch: - /// - use_squash_pr_title_as_default: - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_forking: - /// - web_commit_signoff_required: - /// - subscribers_count: - /// - network_count: + /// - allowRebaseMerge: + /// - templateRepository: + /// - tempCloneToken: + /// - allowSquashMerge: + /// - allowAutoMerge: + /// - deleteBranchOnMerge: + /// - allowMergeCommit: + /// - allowUpdateBranch: + /// - useSquashPrTitleAsDefault: + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowForking: + /// - webCommitSignoffRequired: + /// - subscribersCount: + /// - networkCount: /// - license: /// - organization: /// - parent: /// - source: /// - forks: - /// - master_branch: - /// - open_issues: + /// - masterBranch: + /// - openIssues: /// - watchers: - /// - anonymous_access_enabled: Whether anonymous git access is allowed. - /// - code_of_conduct: - /// - security_and_analysis: - /// - custom_properties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. + /// - anonymousAccessEnabled: Whether anonymous git access is allowed. + /// - codeOfConduct: + /// - securityAndAnalysis: + /// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? = nil, - allow_rebase_merge: Swift.Bool? = nil, - template_repository: Components.Schemas.nullable_hyphen_repository? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - subscribers_count: Swift.Int, - network_count: Swift.Int, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, - organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - parent: Components.Schemas.repository? = nil, - source: Components.Schemas.repository? = nil, + pushedAt: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.FullRepository.PermissionsPayload? = nil, + allowRebaseMerge: Swift.Bool? = nil, + templateRepository: Components.Schemas.NullableRepository? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + subscribersCount: Swift.Int, + networkCount: Swift.Int, + license: Components.Schemas.NullableLicenseSimple? = nil, + organization: Components.Schemas.NullableSimpleUser? = nil, + parent: Components.Schemas.Repository? = nil, + source: Components.Schemas.Repository? = nil, forks: Swift.Int, - master_branch: Swift.String? = nil, - open_issues: Swift.Int, + masterBranch: Swift.String? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - anonymous_access_enabled: Swift.Bool? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil, - custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeOfConduct: Components.Schemas.CodeOfConductSimple? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil, + customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.allow_rebase_merge = allow_rebase_merge - self.template_repository = template_repository - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_merge_commit = allow_merge_commit - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.subscribers_count = subscribers_count - self.network_count = network_count + self.allowRebaseMerge = allowRebaseMerge + self.templateRepository = templateRepository + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowMergeCommit = allowMergeCommit + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.subscribersCount = subscribersCount + self.networkCount = networkCount self.license = license self.organization = organization self.parent = parent self.source = source self.forks = forks - self.master_branch = master_branch - self.open_issues = open_issues + self.masterBranch = masterBranch + self.openIssues = openIssues self.watchers = watchers - self.anonymous_access_enabled = anonymous_access_enabled - self.code_of_conduct = code_of_conduct - self.security_and_analysis = security_and_analysis - self.custom_properties = custom_properties + self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeOfConduct = codeOfConduct + self.securityAndAnalysis = securityAndAnalysis + self.customProperties = customProperties } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case allow_rebase_merge - case template_repository - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_merge_commit - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_forking - case web_commit_signoff_required - case subscribers_count - case network_count + case allowRebaseMerge = "allow_rebase_merge" + case templateRepository = "template_repository" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowMergeCommit = "allow_merge_commit" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" case license case organization case parent case source case forks - case master_branch - case open_issues + case masterBranch = "master_branch" + case openIssues = "open_issues" case watchers - case anonymous_access_enabled - case code_of_conduct - case security_and_analysis - case custom_properties + case anonymousAccessEnabled = "anonymous_access_enabled" + case codeOfConduct = "code_of_conduct" + case securityAndAnalysis = "security_and_analysis" + case customProperties = "custom_properties" } } /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). /// /// - Remark: Generated from `#/components/schemas/repository-rule-enforcement`. - @frozen public enum repository_hyphen_rule_hyphen_enforcement: String, Codable, Hashable, Sendable { + @frozen public enum RepositoryRuleEnforcement: String, Codable, Hashable, Sendable, CaseIterable { case disabled = "disabled" case active = "active" case evaluate = "evaluate" @@ -11245,63 +11254,63 @@ public enum Components { /// An actor that can bypass rules in a ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor`. - public struct repository_hyphen_ruleset_hyphen_bypass_hyphen_actor: Codable, Hashable, Sendable { + public struct RepositoryRulesetBypassActor: Codable, Hashable, Sendable { /// The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_id`. - public var actor_id: Swift.Int? + public var actorId: Swift.Int? /// The type of actor that can bypass a ruleset. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_type`. - @frozen public enum actor_typePayload: String, Codable, Hashable, Sendable { - case Integration = "Integration" - case OrganizationAdmin = "OrganizationAdmin" - case RepositoryRole = "RepositoryRole" - case Team = "Team" - case DeployKey = "DeployKey" + @frozen public enum ActorTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case integration = "Integration" + case organizationAdmin = "OrganizationAdmin" + case repositoryRole = "RepositoryRole" + case team = "Team" + case deployKey = "DeployKey" } /// The type of actor that can bypass a ruleset. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_type`. - public var actor_type: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.actor_typePayload + public var actorType: Components.Schemas.RepositoryRulesetBypassActor.ActorTypePayload /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/bypass_mode`. - @frozen public enum bypass_modePayload: String, Codable, Hashable, Sendable { + @frozen public enum BypassModePayload: String, Codable, Hashable, Sendable, CaseIterable { case always = "always" - case pull_request = "pull_request" + case pullRequest = "pull_request" } /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/bypass_mode`. - public var bypass_mode: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.bypass_modePayload? - /// Creates a new `repository_hyphen_ruleset_hyphen_bypass_hyphen_actor`. + public var bypassMode: Components.Schemas.RepositoryRulesetBypassActor.BypassModePayload? + /// Creates a new `RepositoryRulesetBypassActor`. /// /// - Parameters: - /// - actor_id: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. - /// - actor_type: The type of actor that can bypass a ruleset. - /// - bypass_mode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. + /// - actorId: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. + /// - actorType: The type of actor that can bypass a ruleset. + /// - bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. public init( - actor_id: Swift.Int? = nil, - actor_type: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.actor_typePayload, - bypass_mode: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.bypass_modePayload? = nil + actorId: Swift.Int? = nil, + actorType: Components.Schemas.RepositoryRulesetBypassActor.ActorTypePayload, + bypassMode: Components.Schemas.RepositoryRulesetBypassActor.BypassModePayload? = nil ) { - self.actor_id = actor_id - self.actor_type = actor_type - self.bypass_mode = bypass_mode + self.actorId = actorId + self.actorType = actorType + self.bypassMode = bypassMode } public enum CodingKeys: String, CodingKey { - case actor_id - case actor_type - case bypass_mode + case actorId = "actor_id" + case actorType = "actor_type" + case bypassMode = "bypass_mode" } } /// Parameters for a repository ruleset ref name condition /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions`. - public struct repository_hyphen_ruleset_hyphen_conditions: Codable, Hashable, Sendable { + public struct RepositoryRulesetConditions: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions/ref_name`. - public struct ref_namePayload: Codable, Hashable, Sendable { + public struct RefNamePayload: Codable, Hashable, Sendable { /// Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions/ref_name/include`. @@ -11310,7 +11319,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions/ref_name/exclude`. public var exclude: [Swift.String]? - /// Creates a new `ref_namePayload`. + /// Creates a new `RefNamePayload`. /// /// - Parameters: /// - include: Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. @@ -11328,24 +11337,24 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions/ref_name`. - public var ref_name: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions.ref_namePayload? - /// Creates a new `repository_hyphen_ruleset_hyphen_conditions`. + public var refName: Components.Schemas.RepositoryRulesetConditions.RefNamePayload? + /// Creates a new `RepositoryRulesetConditions`. /// /// - Parameters: - /// - ref_name: - public init(ref_name: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions.ref_namePayload? = nil) { - self.ref_name = ref_name + /// - refName: + public init(refName: Components.Schemas.RepositoryRulesetConditions.RefNamePayload? = nil) { + self.refName = refName } public enum CodingKeys: String, CodingKey { - case ref_name + case refName = "ref_name" } } /// Parameters for a repository name condition /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-name-target`. - public struct repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target: Codable, Hashable, Sendable { + public struct RepositoryRulesetConditionsRepositoryNameTarget: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-name-target/repository_name`. - public struct repository_namePayload: Codable, Hashable, Sendable { + public struct RepositoryNamePayload: Codable, Hashable, Sendable { /// Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-name-target/repository_name/include`. @@ -11358,7 +11367,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-name-target/repository_name/protected`. public var protected: Swift.Bool? - /// Creates a new `repository_namePayload`. + /// Creates a new `RepositoryNamePayload`. /// /// - Parameters: /// - include: Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories. @@ -11380,56 +11389,56 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-name-target/repository_name`. - public var repository_name: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target.repository_namePayload - /// Creates a new `repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target`. + public var repositoryName: Components.Schemas.RepositoryRulesetConditionsRepositoryNameTarget.RepositoryNamePayload + /// Creates a new `RepositoryRulesetConditionsRepositoryNameTarget`. /// /// - Parameters: - /// - repository_name: - public init(repository_name: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target.repository_namePayload) { - self.repository_name = repository_name + /// - repositoryName: + public init(repositoryName: Components.Schemas.RepositoryRulesetConditionsRepositoryNameTarget.RepositoryNamePayload) { + self.repositoryName = repositoryName } public enum CodingKeys: String, CodingKey { - case repository_name + case repositoryName = "repository_name" } } /// Parameters for a repository ID condition /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-id-target`. - public struct repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target: Codable, Hashable, Sendable { + public struct RepositoryRulesetConditionsRepositoryIdTarget: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-id-target/repository_id`. - public struct repository_idPayload: Codable, Hashable, Sendable { + public struct RepositoryIdPayload: Codable, Hashable, Sendable { /// The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-id-target/repository_id/repository_ids`. - public var repository_ids: [Swift.Int]? - /// Creates a new `repository_idPayload`. + public var repositoryIds: [Swift.Int]? + /// Creates a new `RepositoryIdPayload`. /// /// - Parameters: - /// - repository_ids: The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. - public init(repository_ids: [Swift.Int]? = nil) { - self.repository_ids = repository_ids + /// - repositoryIds: The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. + public init(repositoryIds: [Swift.Int]? = nil) { + self.repositoryIds = repositoryIds } public enum CodingKeys: String, CodingKey { - case repository_ids + case repositoryIds = "repository_ids" } } /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-id-target/repository_id`. - public var repository_id: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target.repository_idPayload - /// Creates a new `repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target`. + public var repositoryId: Components.Schemas.RepositoryRulesetConditionsRepositoryIdTarget.RepositoryIdPayload + /// Creates a new `RepositoryRulesetConditionsRepositoryIdTarget`. /// /// - Parameters: - /// - repository_id: - public init(repository_id: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target.repository_idPayload) { - self.repository_id = repository_id + /// - repositoryId: + public init(repositoryId: Components.Schemas.RepositoryRulesetConditionsRepositoryIdTarget.RepositoryIdPayload) { + self.repositoryId = repositoryId } public enum CodingKeys: String, CodingKey { - case repository_id + case repositoryId = "repository_id" } } /// Parameters for a targeting a repository property /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec`. - public struct repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec: Codable, Hashable, Sendable { + public struct RepositoryRulesetConditionsRepositoryPropertySpec: Codable, Hashable, Sendable { /// The name of the repository property to target /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/name`. @@ -11437,61 +11446,61 @@ public enum Components { /// The values to match for the repository property /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/property_values`. - public var property_values: [Swift.String] + public var propertyValues: [Swift.String] /// The source of the repository property. Defaults to 'custom' if not specified. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/source`. - @frozen public enum sourcePayload: String, Codable, Hashable, Sendable { + @frozen public enum SourcePayload: String, Codable, Hashable, Sendable, CaseIterable { case custom = "custom" case system = "system" } /// The source of the repository property. Defaults to 'custom' if not specified. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-spec/source`. - public var source: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec.sourcePayload? - /// Creates a new `repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec`. + public var source: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec.SourcePayload? + /// Creates a new `RepositoryRulesetConditionsRepositoryPropertySpec`. /// /// - Parameters: /// - name: The name of the repository property to target - /// - property_values: The values to match for the repository property + /// - propertyValues: The values to match for the repository property /// - source: The source of the repository property. Defaults to 'custom' if not specified. public init( name: Swift.String, - property_values: [Swift.String], - source: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec.sourcePayload? = nil + propertyValues: [Swift.String], + source: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec.SourcePayload? = nil ) { self.name = name - self.property_values = property_values + self.propertyValues = propertyValues self.source = source } public enum CodingKeys: String, CodingKey { case name - case property_values + case propertyValues = "property_values" case source } } /// Parameters for a repository property condition /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-target`. - public struct repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target: Codable, Hashable, Sendable { + public struct RepositoryRulesetConditionsRepositoryPropertyTarget: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-target/repository_property`. - public struct repository_propertyPayload: Codable, Hashable, Sendable { + public struct RepositoryPropertyPayload: Codable, Hashable, Sendable { /// The repository properties and values to include. All of these properties must match for the condition to pass. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-target/repository_property/include`. - public var include: [Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec]? + public var include: [Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec]? /// The repository properties and values to exclude. The condition will not pass if any of these properties match. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-target/repository_property/exclude`. - public var exclude: [Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec]? - /// Creates a new `repository_propertyPayload`. + public var exclude: [Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec]? + /// Creates a new `RepositoryPropertyPayload`. /// /// - Parameters: /// - include: The repository properties and values to include. All of these properties must match for the condition to pass. /// - exclude: The repository properties and values to exclude. The condition will not pass if any of these properties match. public init( - include: [Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec]? = nil, - exclude: [Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_spec]? = nil + include: [Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec]? = nil, + exclude: [Components.Schemas.RepositoryRulesetConditionsRepositoryPropertySpec]? = nil ) { self.include = include self.exclude = exclude @@ -11502,16 +11511,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset-conditions-repository-property-target/repository_property`. - public var repository_property: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target.repository_propertyPayload - /// Creates a new `repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target`. + public var repositoryProperty: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertyTarget.RepositoryPropertyPayload + /// Creates a new `RepositoryRulesetConditionsRepositoryPropertyTarget`. /// /// - Parameters: - /// - repository_property: - public init(repository_property: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target.repository_propertyPayload) { - self.repository_property = repository_property + /// - repositoryProperty: + public init(repositoryProperty: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertyTarget.RepositoryPropertyPayload) { + self.repositoryProperty = repositoryProperty } public enum CodingKeys: String, CodingKey { - case repository_property + case repositoryProperty = "repository_property" } } /// Conditions for an organization ruleset. @@ -11520,106 +11529,106 @@ public enum Components { /// For repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`. /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions`. - @frozen public enum org_hyphen_ruleset_hyphen_conditions: Codable, Hashable, Sendable { + @frozen public enum OrgRulesetConditions: Codable, Hashable, Sendable { /// Conditions to target repositories by name and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case1/value1`. - public var value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions + public var value1: Components.Schemas.RepositoryRulesetConditions /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case1/value2`. - public var value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target + public var value2: Components.Schemas.RepositoryRulesetConditionsRepositoryNameTarget /// Creates a new `Case1Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions, - value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_name_hyphen_target + value1: Components.Schemas.RepositoryRulesetConditions, + value2: Components.Schemas.RepositoryRulesetConditionsRepositoryNameTarget ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// Conditions to target repositories by name and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case1`. - case case1(Components.Schemas.org_hyphen_ruleset_hyphen_conditions.Case1Payload) + case case1(Components.Schemas.OrgRulesetConditions.Case1Payload) /// Conditions to target repositories by id and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case2`. public struct Case2Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case2/value1`. - public var value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions + public var value1: Components.Schemas.RepositoryRulesetConditions /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case2/value2`. - public var value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target + public var value2: Components.Schemas.RepositoryRulesetConditionsRepositoryIdTarget /// Creates a new `Case2Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions, - value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_id_hyphen_target + value1: Components.Schemas.RepositoryRulesetConditions, + value2: Components.Schemas.RepositoryRulesetConditionsRepositoryIdTarget ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// Conditions to target repositories by id and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case2`. - case case2(Components.Schemas.org_hyphen_ruleset_hyphen_conditions.Case2Payload) + case case2(Components.Schemas.OrgRulesetConditions.Case2Payload) /// Conditions to target repositories by property and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case3`. public struct Case3Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case3/value1`. - public var value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions + public var value1: Components.Schemas.RepositoryRulesetConditions /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case3/value2`. - public var value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target + public var value2: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertyTarget /// Creates a new `Case3Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions, - value2: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions_hyphen_repository_hyphen_property_hyphen_target + value1: Components.Schemas.RepositoryRulesetConditions, + value2: Components.Schemas.RepositoryRulesetConditionsRepositoryPropertyTarget ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// Conditions to target repositories by property and refs by name /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions/case3`. - case case3(Components.Schemas.org_hyphen_ruleset_hyphen_conditions.Case3Payload) + case case3(Components.Schemas.OrgRulesetConditions.Case3Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -11660,18 +11669,18 @@ public enum Components { /// Only allow users with bypass permission to create matching refs. /// /// - Remark: Generated from `#/components/schemas/repository-rule-creation`. - public struct repository_hyphen_rule_hyphen_creation: Codable, Hashable, Sendable { + public struct RepositoryRuleCreation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-creation/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case creation = "creation" } /// - Remark: Generated from `#/components/schemas/repository-rule-creation/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_creation._typePayload - /// Creates a new `repository_hyphen_rule_hyphen_creation`. + public var _type: Components.Schemas.RepositoryRuleCreation._TypePayload + /// Creates a new `RepositoryRuleCreation`. /// /// - Parameters: /// - _type: - public init(_type: Components.Schemas.repository_hyphen_rule_hyphen_creation._typePayload) { + public init(_type: Components.Schemas.RepositoryRuleCreation._TypePayload) { self._type = _type } public enum CodingKeys: String, CodingKey { @@ -11681,40 +11690,40 @@ public enum Components { /// Only allow users with bypass permission to update matching refs. /// /// - Remark: Generated from `#/components/schemas/repository-rule-update`. - public struct repository_hyphen_rule_hyphen_update: Codable, Hashable, Sendable { + public struct RepositoryRuleUpdate: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-update/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case update = "update" } /// - Remark: Generated from `#/components/schemas/repository-rule-update/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_update._typePayload + public var _type: Components.Schemas.RepositoryRuleUpdate._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-update/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// Branch can pull changes from its upstream repository /// /// - Remark: Generated from `#/components/schemas/repository-rule-update/parameters/update_allows_fetch_and_merge`. - public var update_allows_fetch_and_merge: Swift.Bool - /// Creates a new `parametersPayload`. + public var updateAllowsFetchAndMerge: Swift.Bool + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - update_allows_fetch_and_merge: Branch can pull changes from its upstream repository - public init(update_allows_fetch_and_merge: Swift.Bool) { - self.update_allows_fetch_and_merge = update_allows_fetch_and_merge + /// - updateAllowsFetchAndMerge: Branch can pull changes from its upstream repository + public init(updateAllowsFetchAndMerge: Swift.Bool) { + self.updateAllowsFetchAndMerge = updateAllowsFetchAndMerge } public enum CodingKeys: String, CodingKey { - case update_allows_fetch_and_merge + case updateAllowsFetchAndMerge = "update_allows_fetch_and_merge" } } /// - Remark: Generated from `#/components/schemas/repository-rule-update/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_update.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_update`. + public var parameters: Components.Schemas.RepositoryRuleUpdate.ParametersPayload? + /// Creates a new `RepositoryRuleUpdate`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_update._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_update.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleUpdate._TypePayload, + parameters: Components.Schemas.RepositoryRuleUpdate.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -11727,18 +11736,18 @@ public enum Components { /// Only allow users with bypass permissions to delete matching refs. /// /// - Remark: Generated from `#/components/schemas/repository-rule-deletion`. - public struct repository_hyphen_rule_hyphen_deletion: Codable, Hashable, Sendable { + public struct RepositoryRuleDeletion: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-deletion/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case deletion = "deletion" } /// - Remark: Generated from `#/components/schemas/repository-rule-deletion/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_deletion._typePayload - /// Creates a new `repository_hyphen_rule_hyphen_deletion`. + public var _type: Components.Schemas.RepositoryRuleDeletion._TypePayload + /// Creates a new `RepositoryRuleDeletion`. /// /// - Parameters: /// - _type: - public init(_type: Components.Schemas.repository_hyphen_rule_hyphen_deletion._typePayload) { + public init(_type: Components.Schemas.RepositoryRuleDeletion._TypePayload) { self._type = _type } public enum CodingKeys: String, CodingKey { @@ -11748,18 +11757,18 @@ public enum Components { /// Prevent merge commits from being pushed to matching refs. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-linear-history`. - public struct repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history: Codable, Hashable, Sendable { + public struct RepositoryRuleRequiredLinearHistory: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-required-linear-history/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case required_linear_history = "required_linear_history" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case requiredLinearHistory = "required_linear_history" } /// - Remark: Generated from `#/components/schemas/repository-rule-required-linear-history/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history._typePayload - /// Creates a new `repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history`. + public var _type: Components.Schemas.RepositoryRuleRequiredLinearHistory._TypePayload + /// Creates a new `RepositoryRuleRequiredLinearHistory`. /// /// - Parameters: /// - _type: - public init(_type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history._typePayload) { + public init(_type: Components.Schemas.RepositoryRuleRequiredLinearHistory._TypePayload) { self._type = _type } public enum CodingKeys: String, CodingKey { @@ -11769,105 +11778,105 @@ public enum Components { /// Merges must be performed via a merge queue. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue`. - public struct repository_hyphen_rule_hyphen_merge_hyphen_queue: Codable, Hashable, Sendable { + public struct RepositoryRuleMergeQueue: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case merge_queue = "merge_queue" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case mergeQueue = "merge_queue" } /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue._typePayload + public var _type: Components.Schemas.RepositoryRuleMergeQueue._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/check_response_timeout_minutes`. - public var check_response_timeout_minutes: Swift.Int + public var checkResponseTimeoutMinutes: Swift.Int /// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/grouping_strategy`. - @frozen public enum grouping_strategyPayload: String, Codable, Hashable, Sendable { - case ALLGREEN = "ALLGREEN" - case HEADGREEN = "HEADGREEN" + @frozen public enum GroupingStrategyPayload: String, Codable, Hashable, Sendable, CaseIterable { + case allgreen = "ALLGREEN" + case headgreen = "HEADGREEN" } /// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/grouping_strategy`. - public var grouping_strategy: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload.grouping_strategyPayload + public var groupingStrategy: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload.GroupingStrategyPayload /// Limit the number of queued pull requests requesting checks and workflow runs at the same time. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/max_entries_to_build`. - public var max_entries_to_build: Swift.Int + public var maxEntriesToBuild: Swift.Int /// The maximum number of PRs that will be merged together in a group. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/max_entries_to_merge`. - public var max_entries_to_merge: Swift.Int + public var maxEntriesToMerge: Swift.Int /// Method to use when merging changes from queued pull requests. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/merge_method`. - @frozen public enum merge_methodPayload: String, Codable, Hashable, Sendable { - case MERGE = "MERGE" - case SQUASH = "SQUASH" - case REBASE = "REBASE" + @frozen public enum MergeMethodPayload: String, Codable, Hashable, Sendable, CaseIterable { + case merge = "MERGE" + case squash = "SQUASH" + case rebase = "REBASE" } /// Method to use when merging changes from queued pull requests. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/merge_method`. - public var merge_method: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload.merge_methodPayload + public var mergeMethod: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload.MergeMethodPayload /// The minimum number of PRs that will be merged together in a group. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/min_entries_to_merge`. - public var min_entries_to_merge: Swift.Int + public var minEntriesToMerge: Swift.Int /// The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters/min_entries_to_merge_wait_minutes`. - public var min_entries_to_merge_wait_minutes: Swift.Int - /// Creates a new `parametersPayload`. - /// - /// - Parameters: - /// - check_response_timeout_minutes: Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed - /// - grouping_strategy: When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. - /// - max_entries_to_build: Limit the number of queued pull requests requesting checks and workflow runs at the same time. - /// - max_entries_to_merge: The maximum number of PRs that will be merged together in a group. - /// - merge_method: Method to use when merging changes from queued pull requests. - /// - min_entries_to_merge: The minimum number of PRs that will be merged together in a group. - /// - min_entries_to_merge_wait_minutes: The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. - public init( - check_response_timeout_minutes: Swift.Int, - grouping_strategy: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload.grouping_strategyPayload, - max_entries_to_build: Swift.Int, - max_entries_to_merge: Swift.Int, - merge_method: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload.merge_methodPayload, - min_entries_to_merge: Swift.Int, - min_entries_to_merge_wait_minutes: Swift.Int - ) { - self.check_response_timeout_minutes = check_response_timeout_minutes - self.grouping_strategy = grouping_strategy - self.max_entries_to_build = max_entries_to_build - self.max_entries_to_merge = max_entries_to_merge - self.merge_method = merge_method - self.min_entries_to_merge = min_entries_to_merge - self.min_entries_to_merge_wait_minutes = min_entries_to_merge_wait_minutes + public var minEntriesToMergeWaitMinutes: Swift.Int + /// Creates a new `ParametersPayload`. + /// + /// - Parameters: + /// - checkResponseTimeoutMinutes: Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed + /// - groupingStrategy: When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. + /// - maxEntriesToBuild: Limit the number of queued pull requests requesting checks and workflow runs at the same time. + /// - maxEntriesToMerge: The maximum number of PRs that will be merged together in a group. + /// - mergeMethod: Method to use when merging changes from queued pull requests. + /// - minEntriesToMerge: The minimum number of PRs that will be merged together in a group. + /// - minEntriesToMergeWaitMinutes: The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. + public init( + checkResponseTimeoutMinutes: Swift.Int, + groupingStrategy: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload.GroupingStrategyPayload, + maxEntriesToBuild: Swift.Int, + maxEntriesToMerge: Swift.Int, + mergeMethod: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload.MergeMethodPayload, + minEntriesToMerge: Swift.Int, + minEntriesToMergeWaitMinutes: Swift.Int + ) { + self.checkResponseTimeoutMinutes = checkResponseTimeoutMinutes + self.groupingStrategy = groupingStrategy + self.maxEntriesToBuild = maxEntriesToBuild + self.maxEntriesToMerge = maxEntriesToMerge + self.mergeMethod = mergeMethod + self.minEntriesToMerge = minEntriesToMerge + self.minEntriesToMergeWaitMinutes = minEntriesToMergeWaitMinutes } public enum CodingKeys: String, CodingKey { - case check_response_timeout_minutes - case grouping_strategy - case max_entries_to_build - case max_entries_to_merge - case merge_method - case min_entries_to_merge - case min_entries_to_merge_wait_minutes + case checkResponseTimeoutMinutes = "check_response_timeout_minutes" + case groupingStrategy = "grouping_strategy" + case maxEntriesToBuild = "max_entries_to_build" + case maxEntriesToMerge = "max_entries_to_merge" + case mergeMethod = "merge_method" + case minEntriesToMerge = "min_entries_to_merge" + case minEntriesToMergeWaitMinutes = "min_entries_to_merge_wait_minutes" } } /// - Remark: Generated from `#/components/schemas/repository-rule-merge-queue/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_merge_hyphen_queue`. + public var parameters: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload? + /// Creates a new `RepositoryRuleMergeQueue`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleMergeQueue._TypePayload, + parameters: Components.Schemas.RepositoryRuleMergeQueue.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -11880,40 +11889,40 @@ public enum Components { /// Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments`. - public struct repository_hyphen_rule_hyphen_required_hyphen_deployments: Codable, Hashable, Sendable { + public struct RepositoryRuleRequiredDeployments: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case required_deployments = "required_deployments" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case requiredDeployments = "required_deployments" } /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments._typePayload + public var _type: Components.Schemas.RepositoryRuleRequiredDeployments._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// The environments that must be successfully deployed to before branches can be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments/parameters/required_deployment_environments`. - public var required_deployment_environments: [Swift.String] - /// Creates a new `parametersPayload`. + public var requiredDeploymentEnvironments: [Swift.String] + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - required_deployment_environments: The environments that must be successfully deployed to before branches can be merged. - public init(required_deployment_environments: [Swift.String]) { - self.required_deployment_environments = required_deployment_environments + /// - requiredDeploymentEnvironments: The environments that must be successfully deployed to before branches can be merged. + public init(requiredDeploymentEnvironments: [Swift.String]) { + self.requiredDeploymentEnvironments = requiredDeploymentEnvironments } public enum CodingKeys: String, CodingKey { - case required_deployment_environments + case requiredDeploymentEnvironments = "required_deployment_environments" } } /// - Remark: Generated from `#/components/schemas/repository-rule-required-deployments/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_required_hyphen_deployments`. + public var parameters: Components.Schemas.RepositoryRuleRequiredDeployments.ParametersPayload? + /// Creates a new `RepositoryRuleRequiredDeployments`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleRequiredDeployments._TypePayload, + parameters: Components.Schemas.RepositoryRuleRequiredDeployments.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -11926,18 +11935,18 @@ public enum Components { /// Commits pushed to matching refs must have verified signatures. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-signatures`. - public struct repository_hyphen_rule_hyphen_required_hyphen_signatures: Codable, Hashable, Sendable { + public struct RepositoryRuleRequiredSignatures: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-required-signatures/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case required_signatures = "required_signatures" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case requiredSignatures = "required_signatures" } /// - Remark: Generated from `#/components/schemas/repository-rule-required-signatures/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_signatures._typePayload - /// Creates a new `repository_hyphen_rule_hyphen_required_hyphen_signatures`. + public var _type: Components.Schemas.RepositoryRuleRequiredSignatures._TypePayload + /// Creates a new `RepositoryRuleRequiredSignatures`. /// /// - Parameters: /// - _type: - public init(_type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_signatures._typePayload) { + public init(_type: Components.Schemas.RepositoryRuleRequiredSignatures._TypePayload) { self._type = _type } public enum CodingKeys: String, CodingKey { @@ -11947,17 +11956,17 @@ public enum Components { /// Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request`. - public struct repository_hyphen_rule_hyphen_pull_hyphen_request: Codable, Hashable, Sendable { + public struct RepositoryRulePullRequest: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case pull_request = "pull_request" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case pullRequest = "pull_request" } /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request._typePayload + public var _type: Components.Schemas.RepositoryRulePullRequest._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/allowed_merge_methodsPayload`. - @frozen public enum allowed_merge_methodsPayloadPayload: String, Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/AllowedMergeMethodsPayload`. + @frozen public enum AllowedMergeMethodsPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case merge = "merge" case squash = "squash" case rebase = "rebase" @@ -11965,82 +11974,82 @@ public enum Components { /// Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/allowed_merge_methods`. - public typealias allowed_merge_methodsPayload = [Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request.parametersPayload.allowed_merge_methodsPayloadPayload] + public typealias AllowedMergeMethodsPayload = [Components.Schemas.RepositoryRulePullRequest.ParametersPayload.AllowedMergeMethodsPayloadPayload] /// Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/allowed_merge_methods`. - public var allowed_merge_methods: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request.parametersPayload.allowed_merge_methodsPayload? + public var allowedMergeMethods: Components.Schemas.RepositoryRulePullRequest.ParametersPayload.AllowedMergeMethodsPayload? /// Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/automatic_copilot_code_review_enabled`. - public var automatic_copilot_code_review_enabled: Swift.Bool? + public var automaticCopilotCodeReviewEnabled: Swift.Bool? /// New, reviewable commits pushed will dismiss previous pull request review approvals. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/dismiss_stale_reviews_on_push`. - public var dismiss_stale_reviews_on_push: Swift.Bool + public var dismissStaleReviewsOnPush: Swift.Bool /// Require an approving review in pull requests that modify files that have a designated code owner. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/require_code_owner_review`. - public var require_code_owner_review: Swift.Bool + public var requireCodeOwnerReview: Swift.Bool /// Whether the most recent reviewable push must be approved by someone other than the person who pushed it. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/require_last_push_approval`. - public var require_last_push_approval: Swift.Bool + public var requireLastPushApproval: Swift.Bool /// The number of approving reviews that are required before a pull request can be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/required_approving_review_count`. - public var required_approving_review_count: Swift.Int + public var requiredApprovingReviewCount: Swift.Int /// All conversations on code must be resolved before a pull request can be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters/required_review_thread_resolution`. - public var required_review_thread_resolution: Swift.Bool - /// Creates a new `parametersPayload`. - /// - /// - Parameters: - /// - allowed_merge_methods: Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. - /// - automatic_copilot_code_review_enabled: Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review. - /// - dismiss_stale_reviews_on_push: New, reviewable commits pushed will dismiss previous pull request review approvals. - /// - require_code_owner_review: Require an approving review in pull requests that modify files that have a designated code owner. - /// - require_last_push_approval: Whether the most recent reviewable push must be approved by someone other than the person who pushed it. - /// - required_approving_review_count: The number of approving reviews that are required before a pull request can be merged. - /// - required_review_thread_resolution: All conversations on code must be resolved before a pull request can be merged. - public init( - allowed_merge_methods: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request.parametersPayload.allowed_merge_methodsPayload? = nil, - automatic_copilot_code_review_enabled: Swift.Bool? = nil, - dismiss_stale_reviews_on_push: Swift.Bool, - require_code_owner_review: Swift.Bool, - require_last_push_approval: Swift.Bool, - required_approving_review_count: Swift.Int, - required_review_thread_resolution: Swift.Bool - ) { - self.allowed_merge_methods = allowed_merge_methods - self.automatic_copilot_code_review_enabled = automatic_copilot_code_review_enabled - self.dismiss_stale_reviews_on_push = dismiss_stale_reviews_on_push - self.require_code_owner_review = require_code_owner_review - self.require_last_push_approval = require_last_push_approval - self.required_approving_review_count = required_approving_review_count - self.required_review_thread_resolution = required_review_thread_resolution + public var requiredReviewThreadResolution: Swift.Bool + /// Creates a new `ParametersPayload`. + /// + /// - Parameters: + /// - allowedMergeMethods: Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. + /// - automaticCopilotCodeReviewEnabled: Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review. + /// - dismissStaleReviewsOnPush: New, reviewable commits pushed will dismiss previous pull request review approvals. + /// - requireCodeOwnerReview: Require an approving review in pull requests that modify files that have a designated code owner. + /// - requireLastPushApproval: Whether the most recent reviewable push must be approved by someone other than the person who pushed it. + /// - requiredApprovingReviewCount: The number of approving reviews that are required before a pull request can be merged. + /// - requiredReviewThreadResolution: All conversations on code must be resolved before a pull request can be merged. + public init( + allowedMergeMethods: Components.Schemas.RepositoryRulePullRequest.ParametersPayload.AllowedMergeMethodsPayload? = nil, + automaticCopilotCodeReviewEnabled: Swift.Bool? = nil, + dismissStaleReviewsOnPush: Swift.Bool, + requireCodeOwnerReview: Swift.Bool, + requireLastPushApproval: Swift.Bool, + requiredApprovingReviewCount: Swift.Int, + requiredReviewThreadResolution: Swift.Bool + ) { + self.allowedMergeMethods = allowedMergeMethods + self.automaticCopilotCodeReviewEnabled = automaticCopilotCodeReviewEnabled + self.dismissStaleReviewsOnPush = dismissStaleReviewsOnPush + self.requireCodeOwnerReview = requireCodeOwnerReview + self.requireLastPushApproval = requireLastPushApproval + self.requiredApprovingReviewCount = requiredApprovingReviewCount + self.requiredReviewThreadResolution = requiredReviewThreadResolution } public enum CodingKeys: String, CodingKey { - case allowed_merge_methods - case automatic_copilot_code_review_enabled - case dismiss_stale_reviews_on_push - case require_code_owner_review - case require_last_push_approval - case required_approving_review_count - case required_review_thread_resolution + case allowedMergeMethods = "allowed_merge_methods" + case automaticCopilotCodeReviewEnabled = "automatic_copilot_code_review_enabled" + case dismissStaleReviewsOnPush = "dismiss_stale_reviews_on_push" + case requireCodeOwnerReview = "require_code_owner_review" + case requireLastPushApproval = "require_last_push_approval" + case requiredApprovingReviewCount = "required_approving_review_count" + case requiredReviewThreadResolution = "required_review_thread_resolution" } } /// - Remark: Generated from `#/components/schemas/repository-rule-pull-request/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_pull_hyphen_request`. + public var parameters: Components.Schemas.RepositoryRulePullRequest.ParametersPayload? + /// Creates a new `RepositoryRulePullRequest`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request.parametersPayload? = nil + _type: Components.Schemas.RepositoryRulePullRequest._TypePayload, + parameters: Components.Schemas.RepositoryRulePullRequest.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12053,7 +12062,7 @@ public enum Components { /// Required status check /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-status-check-configuration`. - public struct repository_hyphen_rule_hyphen_params_hyphen_status_hyphen_check_hyphen_configuration: Codable, Hashable, Sendable { + public struct RepositoryRuleParamsStatusCheckConfiguration: Codable, Hashable, Sendable { /// The status check context name that must be present on the commit. /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-status-check-configuration/context`. @@ -12061,79 +12070,79 @@ public enum Components { /// The optional integration ID that this status check must originate from. /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-status-check-configuration/integration_id`. - public var integration_id: Swift.Int? - /// Creates a new `repository_hyphen_rule_hyphen_params_hyphen_status_hyphen_check_hyphen_configuration`. + public var integrationId: Swift.Int? + /// Creates a new `RepositoryRuleParamsStatusCheckConfiguration`. /// /// - Parameters: /// - context: The status check context name that must be present on the commit. - /// - integration_id: The optional integration ID that this status check must originate from. + /// - integrationId: The optional integration ID that this status check must originate from. public init( context: Swift.String, - integration_id: Swift.Int? = nil + integrationId: Swift.Int? = nil ) { self.context = context - self.integration_id = integration_id + self.integrationId = integrationId } public enum CodingKeys: String, CodingKey { case context - case integration_id + case integrationId = "integration_id" } } /// Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks`. - public struct repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks: Codable, Hashable, Sendable { + public struct RepositoryRuleRequiredStatusChecks: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case required_status_checks = "required_status_checks" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case requiredStatusChecks = "required_status_checks" } /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks._typePayload + public var _type: Components.Schemas.RepositoryRuleRequiredStatusChecks._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// Allow repositories and branches to be created if a check would otherwise prohibit it. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/parameters/do_not_enforce_on_create`. - public var do_not_enforce_on_create: Swift.Bool? + public var doNotEnforceOnCreate: Swift.Bool? /// Status checks that are required. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/parameters/required_status_checks`. - public var required_status_checks: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_status_hyphen_check_hyphen_configuration] + public var requiredStatusChecks: [Components.Schemas.RepositoryRuleParamsStatusCheckConfiguration] /// Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. /// /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/parameters/strict_required_status_checks_policy`. - public var strict_required_status_checks_policy: Swift.Bool - /// Creates a new `parametersPayload`. + public var strictRequiredStatusChecksPolicy: Swift.Bool + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - do_not_enforce_on_create: Allow repositories and branches to be created if a check would otherwise prohibit it. - /// - required_status_checks: Status checks that are required. - /// - strict_required_status_checks_policy: Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. + /// - doNotEnforceOnCreate: Allow repositories and branches to be created if a check would otherwise prohibit it. + /// - requiredStatusChecks: Status checks that are required. + /// - strictRequiredStatusChecksPolicy: Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. public init( - do_not_enforce_on_create: Swift.Bool? = nil, - required_status_checks: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_status_hyphen_check_hyphen_configuration], - strict_required_status_checks_policy: Swift.Bool + doNotEnforceOnCreate: Swift.Bool? = nil, + requiredStatusChecks: [Components.Schemas.RepositoryRuleParamsStatusCheckConfiguration], + strictRequiredStatusChecksPolicy: Swift.Bool ) { - self.do_not_enforce_on_create = do_not_enforce_on_create - self.required_status_checks = required_status_checks - self.strict_required_status_checks_policy = strict_required_status_checks_policy + self.doNotEnforceOnCreate = doNotEnforceOnCreate + self.requiredStatusChecks = requiredStatusChecks + self.strictRequiredStatusChecksPolicy = strictRequiredStatusChecksPolicy } public enum CodingKeys: String, CodingKey { - case do_not_enforce_on_create - case required_status_checks - case strict_required_status_checks_policy + case doNotEnforceOnCreate = "do_not_enforce_on_create" + case requiredStatusChecks = "required_status_checks" + case strictRequiredStatusChecksPolicy = "strict_required_status_checks_policy" } } /// - Remark: Generated from `#/components/schemas/repository-rule-required-status-checks/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks`. + public var parameters: Components.Schemas.RepositoryRuleRequiredStatusChecks.ParametersPayload? + /// Creates a new `RepositoryRuleRequiredStatusChecks`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleRequiredStatusChecks._TypePayload, + parameters: Components.Schemas.RepositoryRuleRequiredStatusChecks.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12146,18 +12155,18 @@ public enum Components { /// Prevent users with push access from force pushing to refs. /// /// - Remark: Generated from `#/components/schemas/repository-rule-non-fast-forward`. - public struct repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward: Codable, Hashable, Sendable { + public struct RepositoryRuleNonFastForward: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-non-fast-forward/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case non_fast_forward = "non_fast_forward" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case nonFastForward = "non_fast_forward" } /// - Remark: Generated from `#/components/schemas/repository-rule-non-fast-forward/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward._typePayload - /// Creates a new `repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward`. + public var _type: Components.Schemas.RepositoryRuleNonFastForward._TypePayload + /// Creates a new `RepositoryRuleNonFastForward`. /// /// - Parameters: /// - _type: - public init(_type: Components.Schemas.repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward._typePayload) { + public init(_type: Components.Schemas.RepositoryRuleNonFastForward._TypePayload) { self._type = _type } public enum CodingKeys: String, CodingKey { @@ -12167,15 +12176,15 @@ public enum Components { /// Parameters to be used for the commit_message_pattern rule /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern`. - public struct repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern: Codable, Hashable, Sendable { + public struct RepositoryRuleCommitMessagePattern: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case commit_message_pattern = "commit_message_pattern" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case commitMessagePattern = "commit_message_pattern" } /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern._typePayload + public var _type: Components.Schemas.RepositoryRuleCommitMessagePattern._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// How this rule will appear to users. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters/name`. @@ -12187,21 +12196,21 @@ public enum Components { /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters/operator`. - @frozen public enum _operatorPayload: String, Codable, Hashable, Sendable { - case starts_with = "starts_with" - case ends_with = "ends_with" + @frozen public enum OperatorPayload: String, Codable, Hashable, Sendable, CaseIterable { + case startsWith = "starts_with" + case endsWith = "ends_with" case contains = "contains" case regex = "regex" } /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters/operator`. - public var _operator: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern.parametersPayload._operatorPayload + public var _operator: Components.Schemas.RepositoryRuleCommitMessagePattern.ParametersPayload.OperatorPayload /// The pattern to match with. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters/pattern`. public var pattern: Swift.String - /// Creates a new `parametersPayload`. + /// Creates a new `ParametersPayload`. /// /// - Parameters: /// - name: How this rule will appear to users. @@ -12211,7 +12220,7 @@ public enum Components { public init( name: Swift.String? = nil, negate: Swift.Bool? = nil, - _operator: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern.parametersPayload._operatorPayload, + _operator: Components.Schemas.RepositoryRuleCommitMessagePattern.ParametersPayload.OperatorPayload, pattern: Swift.String ) { self.name = name @@ -12227,15 +12236,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-rule-commit-message-pattern/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern`. + public var parameters: Components.Schemas.RepositoryRuleCommitMessagePattern.ParametersPayload? + /// Creates a new `RepositoryRuleCommitMessagePattern`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleCommitMessagePattern._TypePayload, + parameters: Components.Schemas.RepositoryRuleCommitMessagePattern.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12248,15 +12257,15 @@ public enum Components { /// Parameters to be used for the commit_author_email_pattern rule /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern`. - public struct repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern: Codable, Hashable, Sendable { + public struct RepositoryRuleCommitAuthorEmailPattern: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case commit_author_email_pattern = "commit_author_email_pattern" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case commitAuthorEmailPattern = "commit_author_email_pattern" } /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern._typePayload + public var _type: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// How this rule will appear to users. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters/name`. @@ -12268,21 +12277,21 @@ public enum Components { /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters/operator`. - @frozen public enum _operatorPayload: String, Codable, Hashable, Sendable { - case starts_with = "starts_with" - case ends_with = "ends_with" + @frozen public enum OperatorPayload: String, Codable, Hashable, Sendable, CaseIterable { + case startsWith = "starts_with" + case endsWith = "ends_with" case contains = "contains" case regex = "regex" } /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters/operator`. - public var _operator: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern.parametersPayload._operatorPayload + public var _operator: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern.ParametersPayload.OperatorPayload /// The pattern to match with. /// /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters/pattern`. public var pattern: Swift.String - /// Creates a new `parametersPayload`. + /// Creates a new `ParametersPayload`. /// /// - Parameters: /// - name: How this rule will appear to users. @@ -12292,7 +12301,7 @@ public enum Components { public init( name: Swift.String? = nil, negate: Swift.Bool? = nil, - _operator: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern.parametersPayload._operatorPayload, + _operator: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern.ParametersPayload.OperatorPayload, pattern: Swift.String ) { self.name = name @@ -12308,15 +12317,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-rule-commit-author-email-pattern/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern`. + public var parameters: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern.ParametersPayload? + /// Creates a new `RepositoryRuleCommitAuthorEmailPattern`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern._TypePayload, + parameters: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12329,15 +12338,15 @@ public enum Components { /// Parameters to be used for the committer_email_pattern rule /// /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern`. - public struct repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern: Codable, Hashable, Sendable { + public struct RepositoryRuleCommitterEmailPattern: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case committer_email_pattern = "committer_email_pattern" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case committerEmailPattern = "committer_email_pattern" } /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern._typePayload + public var _type: Components.Schemas.RepositoryRuleCommitterEmailPattern._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// How this rule will appear to users. /// /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters/name`. @@ -12349,21 +12358,21 @@ public enum Components { /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters/operator`. - @frozen public enum _operatorPayload: String, Codable, Hashable, Sendable { - case starts_with = "starts_with" - case ends_with = "ends_with" + @frozen public enum OperatorPayload: String, Codable, Hashable, Sendable, CaseIterable { + case startsWith = "starts_with" + case endsWith = "ends_with" case contains = "contains" case regex = "regex" } /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters/operator`. - public var _operator: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern.parametersPayload._operatorPayload + public var _operator: Components.Schemas.RepositoryRuleCommitterEmailPattern.ParametersPayload.OperatorPayload /// The pattern to match with. /// /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters/pattern`. public var pattern: Swift.String - /// Creates a new `parametersPayload`. + /// Creates a new `ParametersPayload`. /// /// - Parameters: /// - name: How this rule will appear to users. @@ -12373,7 +12382,7 @@ public enum Components { public init( name: Swift.String? = nil, negate: Swift.Bool? = nil, - _operator: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern.parametersPayload._operatorPayload, + _operator: Components.Schemas.RepositoryRuleCommitterEmailPattern.ParametersPayload.OperatorPayload, pattern: Swift.String ) { self.name = name @@ -12389,15 +12398,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-rule-committer-email-pattern/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern`. + public var parameters: Components.Schemas.RepositoryRuleCommitterEmailPattern.ParametersPayload? + /// Creates a new `RepositoryRuleCommitterEmailPattern`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleCommitterEmailPattern._TypePayload, + parameters: Components.Schemas.RepositoryRuleCommitterEmailPattern.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12410,15 +12419,15 @@ public enum Components { /// Parameters to be used for the branch_name_pattern rule /// /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern`. - public struct repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern: Codable, Hashable, Sendable { + public struct RepositoryRuleBranchNamePattern: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case branch_name_pattern = "branch_name_pattern" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case branchNamePattern = "branch_name_pattern" } /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern._typePayload + public var _type: Components.Schemas.RepositoryRuleBranchNamePattern._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// How this rule will appear to users. /// /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters/name`. @@ -12430,21 +12439,21 @@ public enum Components { /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters/operator`. - @frozen public enum _operatorPayload: String, Codable, Hashable, Sendable { - case starts_with = "starts_with" - case ends_with = "ends_with" + @frozen public enum OperatorPayload: String, Codable, Hashable, Sendable, CaseIterable { + case startsWith = "starts_with" + case endsWith = "ends_with" case contains = "contains" case regex = "regex" } /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters/operator`. - public var _operator: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern.parametersPayload._operatorPayload + public var _operator: Components.Schemas.RepositoryRuleBranchNamePattern.ParametersPayload.OperatorPayload /// The pattern to match with. /// /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters/pattern`. public var pattern: Swift.String - /// Creates a new `parametersPayload`. + /// Creates a new `ParametersPayload`. /// /// - Parameters: /// - name: How this rule will appear to users. @@ -12454,7 +12463,7 @@ public enum Components { public init( name: Swift.String? = nil, negate: Swift.Bool? = nil, - _operator: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern.parametersPayload._operatorPayload, + _operator: Components.Schemas.RepositoryRuleBranchNamePattern.ParametersPayload.OperatorPayload, pattern: Swift.String ) { self.name = name @@ -12470,15 +12479,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-rule-branch-name-pattern/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern`. + public var parameters: Components.Schemas.RepositoryRuleBranchNamePattern.ParametersPayload? + /// Creates a new `RepositoryRuleBranchNamePattern`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleBranchNamePattern._TypePayload, + parameters: Components.Schemas.RepositoryRuleBranchNamePattern.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12491,15 +12500,15 @@ public enum Components { /// Parameters to be used for the tag_name_pattern rule /// /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern`. - public struct repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern: Codable, Hashable, Sendable { + public struct RepositoryRuleTagNamePattern: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case tag_name_pattern = "tag_name_pattern" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case tagNamePattern = "tag_name_pattern" } /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern._typePayload + public var _type: Components.Schemas.RepositoryRuleTagNamePattern._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// How this rule will appear to users. /// /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters/name`. @@ -12511,21 +12520,21 @@ public enum Components { /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters/operator`. - @frozen public enum _operatorPayload: String, Codable, Hashable, Sendable { - case starts_with = "starts_with" - case ends_with = "ends_with" + @frozen public enum OperatorPayload: String, Codable, Hashable, Sendable, CaseIterable { + case startsWith = "starts_with" + case endsWith = "ends_with" case contains = "contains" case regex = "regex" } /// The operator to use for matching. /// /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters/operator`. - public var _operator: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern.parametersPayload._operatorPayload + public var _operator: Components.Schemas.RepositoryRuleTagNamePattern.ParametersPayload.OperatorPayload /// The pattern to match with. /// /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters/pattern`. public var pattern: Swift.String - /// Creates a new `parametersPayload`. + /// Creates a new `ParametersPayload`. /// /// - Parameters: /// - name: How this rule will appear to users. @@ -12535,7 +12544,7 @@ public enum Components { public init( name: Swift.String? = nil, negate: Swift.Bool? = nil, - _operator: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern.parametersPayload._operatorPayload, + _operator: Components.Schemas.RepositoryRuleTagNamePattern.ParametersPayload.OperatorPayload, pattern: Swift.String ) { self.name = name @@ -12551,15 +12560,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-rule-tag-name-pattern/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern`. + public var parameters: Components.Schemas.RepositoryRuleTagNamePattern.ParametersPayload? + /// Creates a new `RepositoryRuleTagNamePattern`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleTagNamePattern._TypePayload, + parameters: Components.Schemas.RepositoryRuleTagNamePattern.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12572,40 +12581,40 @@ public enum Components { /// Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names. /// /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction`. - public struct repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction: Codable, Hashable, Sendable { + public struct RepositoryRuleFilePathRestriction: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case file_path_restriction = "file_path_restriction" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case filePathRestriction = "file_path_restriction" } /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction._typePayload + public var _type: Components.Schemas.RepositoryRuleFilePathRestriction._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// The file paths that are restricted from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction/parameters/restricted_file_paths`. - public var restricted_file_paths: [Swift.String] - /// Creates a new `parametersPayload`. + public var restrictedFilePaths: [Swift.String] + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - restricted_file_paths: The file paths that are restricted from being pushed to the commit graph. - public init(restricted_file_paths: [Swift.String]) { - self.restricted_file_paths = restricted_file_paths + /// - restrictedFilePaths: The file paths that are restricted from being pushed to the commit graph. + public init(restrictedFilePaths: [Swift.String]) { + self.restrictedFilePaths = restrictedFilePaths } public enum CodingKeys: String, CodingKey { - case restricted_file_paths + case restrictedFilePaths = "restricted_file_paths" } } /// - Remark: Generated from `#/components/schemas/repository-rule-file-path-restriction/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction`. + public var parameters: Components.Schemas.RepositoryRuleFilePathRestriction.ParametersPayload? + /// Creates a new `RepositoryRuleFilePathRestriction`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleFilePathRestriction._TypePayload, + parameters: Components.Schemas.RepositoryRuleFilePathRestriction.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12618,40 +12627,40 @@ public enum Components { /// Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length`. - public struct repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length: Codable, Hashable, Sendable { + public struct RepositoryRuleMaxFilePathLength: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case max_file_path_length = "max_file_path_length" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case maxFilePathLength = "max_file_path_length" } /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length._typePayload + public var _type: Components.Schemas.RepositoryRuleMaxFilePathLength._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// The maximum amount of characters allowed in file paths. /// /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length/parameters/max_file_path_length`. - public var max_file_path_length: Swift.Int - /// Creates a new `parametersPayload`. + public var maxFilePathLength: Swift.Int + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - max_file_path_length: The maximum amount of characters allowed in file paths. - public init(max_file_path_length: Swift.Int) { - self.max_file_path_length = max_file_path_length + /// - maxFilePathLength: The maximum amount of characters allowed in file paths. + public init(maxFilePathLength: Swift.Int) { + self.maxFilePathLength = maxFilePathLength } public enum CodingKeys: String, CodingKey { - case max_file_path_length + case maxFilePathLength = "max_file_path_length" } } /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-path-length/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length`. + public var parameters: Components.Schemas.RepositoryRuleMaxFilePathLength.ParametersPayload? + /// Creates a new `RepositoryRuleMaxFilePathLength`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleMaxFilePathLength._TypePayload, + parameters: Components.Schemas.RepositoryRuleMaxFilePathLength.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12664,40 +12673,40 @@ public enum Components { /// Prevent commits that include files with specified file extensions from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction`. - public struct repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction: Codable, Hashable, Sendable { + public struct RepositoryRuleFileExtensionRestriction: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case file_extension_restriction = "file_extension_restriction" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case fileExtensionRestriction = "file_extension_restriction" } /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction._typePayload + public var _type: Components.Schemas.RepositoryRuleFileExtensionRestriction._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// The file extensions that are restricted from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction/parameters/restricted_file_extensions`. - public var restricted_file_extensions: [Swift.String] - /// Creates a new `parametersPayload`. + public var restrictedFileExtensions: [Swift.String] + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - restricted_file_extensions: The file extensions that are restricted from being pushed to the commit graph. - public init(restricted_file_extensions: [Swift.String]) { - self.restricted_file_extensions = restricted_file_extensions + /// - restrictedFileExtensions: The file extensions that are restricted from being pushed to the commit graph. + public init(restrictedFileExtensions: [Swift.String]) { + self.restrictedFileExtensions = restrictedFileExtensions } public enum CodingKeys: String, CodingKey { - case restricted_file_extensions + case restrictedFileExtensions = "restricted_file_extensions" } } /// - Remark: Generated from `#/components/schemas/repository-rule-file-extension-restriction/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction`. + public var parameters: Components.Schemas.RepositoryRuleFileExtensionRestriction.ParametersPayload? + /// Creates a new `RepositoryRuleFileExtensionRestriction`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleFileExtensionRestriction._TypePayload, + parameters: Components.Schemas.RepositoryRuleFileExtensionRestriction.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12710,40 +12719,40 @@ public enum Components { /// Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size`. - public struct repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size: Codable, Hashable, Sendable { + public struct RepositoryRuleMaxFileSize: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case max_file_size = "max_file_size" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case maxFileSize = "max_file_size" } /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size._typePayload + public var _type: Components.Schemas.RepositoryRuleMaxFileSize._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). /// /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size/parameters/max_file_size`. - public var max_file_size: Swift.Int - /// Creates a new `parametersPayload`. + public var maxFileSize: Swift.Int + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - max_file_size: The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). - public init(max_file_size: Swift.Int) { - self.max_file_size = max_file_size + /// - maxFileSize: The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). + public init(maxFileSize: Swift.Int) { + self.maxFileSize = maxFileSize } public enum CodingKeys: String, CodingKey { - case max_file_size + case maxFileSize = "max_file_size" } } /// - Remark: Generated from `#/components/schemas/repository-rule-max-file-size/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size`. + public var parameters: Components.Schemas.RepositoryRuleMaxFileSize.ParametersPayload? + /// Creates a new `RepositoryRuleMaxFileSize`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleMaxFileSize._TypePayload, + parameters: Components.Schemas.RepositoryRuleMaxFileSize.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12756,7 +12765,7 @@ public enum Components { /// A workflow that must run for this rule to pass /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-workflow-file-reference`. - public struct repository_hyphen_rule_hyphen_params_hyphen_workflow_hyphen_file_hyphen_reference: Codable, Hashable, Sendable { + public struct RepositoryRuleParamsWorkflowFileReference: Codable, Hashable, Sendable { /// The path to the workflow file /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-workflow-file-reference/path`. @@ -12768,83 +12777,83 @@ public enum Components { /// The ID of the repository where the workflow is defined /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-workflow-file-reference/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// The commit SHA of the workflow file to use /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-workflow-file-reference/sha`. public var sha: Swift.String? - /// Creates a new `repository_hyphen_rule_hyphen_params_hyphen_workflow_hyphen_file_hyphen_reference`. + /// Creates a new `RepositoryRuleParamsWorkflowFileReference`. /// /// - Parameters: /// - path: The path to the workflow file /// - ref: The ref (branch or tag) of the workflow file to use - /// - repository_id: The ID of the repository where the workflow is defined + /// - repositoryId: The ID of the repository where the workflow is defined /// - sha: The commit SHA of the workflow file to use public init( path: Swift.String, ref: Swift.String? = nil, - repository_id: Swift.Int, + repositoryId: Swift.Int, sha: Swift.String? = nil ) { self.path = path self.ref = ref - self.repository_id = repository_id + self.repositoryId = repositoryId self.sha = sha } public enum CodingKeys: String, CodingKey { case path case ref - case repository_id + case repositoryId = "repository_id" case sha } } /// Require all changes made to a targeted branch to pass the specified workflows before they can be merged. /// /// - Remark: Generated from `#/components/schemas/repository-rule-workflows`. - public struct repository_hyphen_rule_hyphen_workflows: Codable, Hashable, Sendable { + public struct RepositoryRuleWorkflows: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case workflows = "workflows" } /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_workflows._typePayload + public var _type: Components.Schemas.RepositoryRuleWorkflows._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// Allow repositories and branches to be created if a check would otherwise prohibit it. /// /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/parameters/do_not_enforce_on_create`. - public var do_not_enforce_on_create: Swift.Bool? + public var doNotEnforceOnCreate: Swift.Bool? /// Workflows that must pass for this rule to pass. /// /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/parameters/workflows`. - public var workflows: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_workflow_hyphen_file_hyphen_reference] - /// Creates a new `parametersPayload`. + public var workflows: [Components.Schemas.RepositoryRuleParamsWorkflowFileReference] + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - do_not_enforce_on_create: Allow repositories and branches to be created if a check would otherwise prohibit it. + /// - doNotEnforceOnCreate: Allow repositories and branches to be created if a check would otherwise prohibit it. /// - workflows: Workflows that must pass for this rule to pass. public init( - do_not_enforce_on_create: Swift.Bool? = nil, - workflows: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_workflow_hyphen_file_hyphen_reference] + doNotEnforceOnCreate: Swift.Bool? = nil, + workflows: [Components.Schemas.RepositoryRuleParamsWorkflowFileReference] ) { - self.do_not_enforce_on_create = do_not_enforce_on_create + self.doNotEnforceOnCreate = doNotEnforceOnCreate self.workflows = workflows } public enum CodingKeys: String, CodingKey { - case do_not_enforce_on_create + case doNotEnforceOnCreate = "do_not_enforce_on_create" case workflows } } /// - Remark: Generated from `#/components/schemas/repository-rule-workflows/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_workflows.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_workflows`. + public var parameters: Components.Schemas.RepositoryRuleWorkflows.ParametersPayload? + /// Creates a new `RepositoryRuleWorkflows`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_workflows._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_workflows.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleWorkflows._TypePayload, + parameters: Components.Schemas.RepositoryRuleWorkflows.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12857,96 +12866,96 @@ public enum Components { /// A tool that must provide code scanning results for this rule to pass. /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool`. - public struct repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool: Codable, Hashable, Sendable { + public struct RepositoryRuleParamsCodeScanningTool: Codable, Hashable, Sendable { /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/alerts_threshold`. - @frozen public enum alerts_thresholdPayload: String, Codable, Hashable, Sendable { + @frozen public enum AlertsThresholdPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case errors = "errors" - case errors_and_warnings = "errors_and_warnings" + case errorsAndWarnings = "errors_and_warnings" case all = "all" } /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/alerts_threshold`. - public var alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.alerts_thresholdPayload + public var alertsThreshold: Components.Schemas.RepositoryRuleParamsCodeScanningTool.AlertsThresholdPayload /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/security_alerts_threshold`. - @frozen public enum security_alerts_thresholdPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecurityAlertsThresholdPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case critical = "critical" - case high_or_higher = "high_or_higher" - case medium_or_higher = "medium_or_higher" + case highOrHigher = "high_or_higher" + case mediumOrHigher = "medium_or_higher" case all = "all" } /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/security_alerts_threshold`. - public var security_alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.security_alerts_thresholdPayload + public var securityAlertsThreshold: Components.Schemas.RepositoryRuleParamsCodeScanningTool.SecurityAlertsThresholdPayload /// The name of a code scanning tool /// /// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/tool`. public var tool: Swift.String - /// Creates a new `repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool`. + /// Creates a new `RepositoryRuleParamsCodeScanningTool`. /// /// - Parameters: - /// - alerts_threshold: The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." - /// - security_alerts_threshold: The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + /// - alertsThreshold: The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + /// - securityAlertsThreshold: The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// - tool: The name of a code scanning tool public init( - alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.alerts_thresholdPayload, - security_alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.security_alerts_thresholdPayload, + alertsThreshold: Components.Schemas.RepositoryRuleParamsCodeScanningTool.AlertsThresholdPayload, + securityAlertsThreshold: Components.Schemas.RepositoryRuleParamsCodeScanningTool.SecurityAlertsThresholdPayload, tool: Swift.String ) { - self.alerts_threshold = alerts_threshold - self.security_alerts_threshold = security_alerts_threshold + self.alertsThreshold = alertsThreshold + self.securityAlertsThreshold = securityAlertsThreshold self.tool = tool } public enum CodingKeys: String, CodingKey { - case alerts_threshold - case security_alerts_threshold + case alertsThreshold = "alerts_threshold" + case securityAlertsThreshold = "security_alerts_threshold" case tool } } /// Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. /// /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning`. - public struct repository_hyphen_rule_hyphen_code_hyphen_scanning: Codable, Hashable, Sendable { + public struct RepositoryRuleCodeScanning: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case code_scanning = "code_scanning" + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case codeScanning = "code_scanning" } /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/type`. - public var _type: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning._typePayload + public var _type: Components.Schemas.RepositoryRuleCodeScanning._TypePayload /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters`. - public struct parametersPayload: Codable, Hashable, Sendable { + public struct ParametersPayload: Codable, Hashable, Sendable { /// Tools that must provide code scanning results for this rule to pass. /// /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters/code_scanning_tools`. - public var code_scanning_tools: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool] - /// Creates a new `parametersPayload`. + public var codeScanningTools: [Components.Schemas.RepositoryRuleParamsCodeScanningTool] + /// Creates a new `ParametersPayload`. /// /// - Parameters: - /// - code_scanning_tools: Tools that must provide code scanning results for this rule to pass. - public init(code_scanning_tools: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool]) { - self.code_scanning_tools = code_scanning_tools + /// - codeScanningTools: Tools that must provide code scanning results for this rule to pass. + public init(codeScanningTools: [Components.Schemas.RepositoryRuleParamsCodeScanningTool]) { + self.codeScanningTools = codeScanningTools } public enum CodingKeys: String, CodingKey { - case code_scanning_tools + case codeScanningTools = "code_scanning_tools" } } /// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters`. - public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning.parametersPayload? - /// Creates a new `repository_hyphen_rule_hyphen_code_hyphen_scanning`. + public var parameters: Components.Schemas.RepositoryRuleCodeScanning.ParametersPayload? + /// Creates a new `RepositoryRuleCodeScanning`. /// /// - Parameters: /// - _type: /// - parameters: public init( - _type: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning._typePayload, - parameters: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning.parametersPayload? = nil + _type: Components.Schemas.RepositoryRuleCodeScanning._TypePayload, + parameters: Components.Schemas.RepositoryRuleCodeScanning.ParametersPayload? = nil ) { self._type = _type self.parameters = parameters @@ -12959,173 +12968,173 @@ public enum Components { /// A repository rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule`. - @frozen public enum repository_hyphen_rule: Codable, Hashable, Sendable { + @frozen public enum RepositoryRule: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule/case1`. - case repository_hyphen_rule_hyphen_creation(Components.Schemas.repository_hyphen_rule_hyphen_creation) + case RepositoryRuleCreation(Components.Schemas.RepositoryRuleCreation) /// - Remark: Generated from `#/components/schemas/repository-rule/case2`. - case repository_hyphen_rule_hyphen_update(Components.Schemas.repository_hyphen_rule_hyphen_update) + case RepositoryRuleUpdate(Components.Schemas.RepositoryRuleUpdate) /// - Remark: Generated from `#/components/schemas/repository-rule/case3`. - case repository_hyphen_rule_hyphen_deletion(Components.Schemas.repository_hyphen_rule_hyphen_deletion) + case RepositoryRuleDeletion(Components.Schemas.RepositoryRuleDeletion) /// - Remark: Generated from `#/components/schemas/repository-rule/case4`. - case repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history(Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history) + case RepositoryRuleRequiredLinearHistory(Components.Schemas.RepositoryRuleRequiredLinearHistory) /// - Remark: Generated from `#/components/schemas/repository-rule/case5`. - case repository_hyphen_rule_hyphen_merge_hyphen_queue(Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue) + case RepositoryRuleMergeQueue(Components.Schemas.RepositoryRuleMergeQueue) /// - Remark: Generated from `#/components/schemas/repository-rule/case6`. - case repository_hyphen_rule_hyphen_required_hyphen_deployments(Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments) + case RepositoryRuleRequiredDeployments(Components.Schemas.RepositoryRuleRequiredDeployments) /// - Remark: Generated from `#/components/schemas/repository-rule/case7`. - case repository_hyphen_rule_hyphen_required_hyphen_signatures(Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_signatures) + case RepositoryRuleRequiredSignatures(Components.Schemas.RepositoryRuleRequiredSignatures) /// - Remark: Generated from `#/components/schemas/repository-rule/case8`. - case repository_hyphen_rule_hyphen_pull_hyphen_request(Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request) + case RepositoryRulePullRequest(Components.Schemas.RepositoryRulePullRequest) /// - Remark: Generated from `#/components/schemas/repository-rule/case9`. - case repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks(Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks) + case RepositoryRuleRequiredStatusChecks(Components.Schemas.RepositoryRuleRequiredStatusChecks) /// - Remark: Generated from `#/components/schemas/repository-rule/case10`. - case repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward(Components.Schemas.repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward) + case RepositoryRuleNonFastForward(Components.Schemas.RepositoryRuleNonFastForward) /// - Remark: Generated from `#/components/schemas/repository-rule/case11`. - case repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern) + case RepositoryRuleCommitMessagePattern(Components.Schemas.RepositoryRuleCommitMessagePattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case12`. - case repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern) + case RepositoryRuleCommitAuthorEmailPattern(Components.Schemas.RepositoryRuleCommitAuthorEmailPattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case13`. - case repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern) + case RepositoryRuleCommitterEmailPattern(Components.Schemas.RepositoryRuleCommitterEmailPattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case14`. - case repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern) + case RepositoryRuleBranchNamePattern(Components.Schemas.RepositoryRuleBranchNamePattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case15`. - case repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern) + case RepositoryRuleTagNamePattern(Components.Schemas.RepositoryRuleTagNamePattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case16`. - case repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction(Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction) + case RepositoryRuleFilePathRestriction(Components.Schemas.RepositoryRuleFilePathRestriction) /// - Remark: Generated from `#/components/schemas/repository-rule/case17`. - case repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length(Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length) + case RepositoryRuleMaxFilePathLength(Components.Schemas.RepositoryRuleMaxFilePathLength) /// - Remark: Generated from `#/components/schemas/repository-rule/case18`. - case repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction(Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction) + case RepositoryRuleFileExtensionRestriction(Components.Schemas.RepositoryRuleFileExtensionRestriction) /// - Remark: Generated from `#/components/schemas/repository-rule/case19`. - case repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size(Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size) + case RepositoryRuleMaxFileSize(Components.Schemas.RepositoryRuleMaxFileSize) /// - Remark: Generated from `#/components/schemas/repository-rule/case20`. - case repository_hyphen_rule_hyphen_workflows(Components.Schemas.repository_hyphen_rule_hyphen_workflows) + case RepositoryRuleWorkflows(Components.Schemas.RepositoryRuleWorkflows) /// - Remark: Generated from `#/components/schemas/repository-rule/case21`. - case repository_hyphen_rule_hyphen_code_hyphen_scanning(Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning) + case RepositoryRuleCodeScanning(Components.Schemas.RepositoryRuleCodeScanning) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .repository_hyphen_rule_hyphen_creation(try .init(from: decoder)) + self = .RepositoryRuleCreation(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_update(try .init(from: decoder)) + self = .RepositoryRuleUpdate(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_deletion(try .init(from: decoder)) + self = .RepositoryRuleDeletion(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history(try .init(from: decoder)) + self = .RepositoryRuleRequiredLinearHistory(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_merge_hyphen_queue(try .init(from: decoder)) + self = .RepositoryRuleMergeQueue(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_required_hyphen_deployments(try .init(from: decoder)) + self = .RepositoryRuleRequiredDeployments(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_required_hyphen_signatures(try .init(from: decoder)) + self = .RepositoryRuleRequiredSignatures(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_pull_hyphen_request(try .init(from: decoder)) + self = .RepositoryRulePullRequest(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks(try .init(from: decoder)) + self = .RepositoryRuleRequiredStatusChecks(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward(try .init(from: decoder)) + self = .RepositoryRuleNonFastForward(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern(try .init(from: decoder)) + self = .RepositoryRuleCommitMessagePattern(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern(try .init(from: decoder)) + self = .RepositoryRuleCommitAuthorEmailPattern(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern(try .init(from: decoder)) + self = .RepositoryRuleCommitterEmailPattern(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern(try .init(from: decoder)) + self = .RepositoryRuleBranchNamePattern(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern(try .init(from: decoder)) + self = .RepositoryRuleTagNamePattern(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction(try .init(from: decoder)) + self = .RepositoryRuleFilePathRestriction(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length(try .init(from: decoder)) + self = .RepositoryRuleMaxFilePathLength(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction(try .init(from: decoder)) + self = .RepositoryRuleFileExtensionRestriction(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size(try .init(from: decoder)) + self = .RepositoryRuleMaxFileSize(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_workflows(try .init(from: decoder)) + self = .RepositoryRuleWorkflows(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_code_hyphen_scanning(try .init(from: decoder)) + self = .RepositoryRuleCodeScanning(try .init(from: decoder)) return } catch { errors.append(error) @@ -13138,47 +13147,47 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .repository_hyphen_rule_hyphen_creation(value): + case let .RepositoryRuleCreation(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_update(value): + case let .RepositoryRuleUpdate(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_deletion(value): + case let .RepositoryRuleDeletion(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history(value): + case let .RepositoryRuleRequiredLinearHistory(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_merge_hyphen_queue(value): + case let .RepositoryRuleMergeQueue(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_required_hyphen_deployments(value): + case let .RepositoryRuleRequiredDeployments(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_required_hyphen_signatures(value): + case let .RepositoryRuleRequiredSignatures(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_pull_hyphen_request(value): + case let .RepositoryRulePullRequest(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks(value): + case let .RepositoryRuleRequiredStatusChecks(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward(value): + case let .RepositoryRuleNonFastForward(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern(value): + case let .RepositoryRuleCommitMessagePattern(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern(value): + case let .RepositoryRuleCommitAuthorEmailPattern(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern(value): + case let .RepositoryRuleCommitterEmailPattern(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern(value): + case let .RepositoryRuleBranchNamePattern(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern(value): + case let .RepositoryRuleTagNamePattern(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction(value): + case let .RepositoryRuleFilePathRestriction(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length(value): + case let .RepositoryRuleMaxFilePathLength(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction(value): + case let .RepositoryRuleFileExtensionRestriction(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size(value): + case let .RepositoryRuleMaxFileSize(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_workflows(value): + case let .RepositoryRuleWorkflows(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_code_hyphen_scanning(value): + case let .RepositoryRuleCodeScanning(value): try value.encode(to: encoder) } } @@ -13186,7 +13195,7 @@ public enum Components { /// A set of rules to apply when specified conditions are met. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset`. - public struct repository_hyphen_ruleset: Codable, Hashable, Sendable { + public struct RepositoryRuleset: Codable, Hashable, Sendable { /// The ID of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/id`. @@ -13198,7 +13207,7 @@ public enum Components { /// The target of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/target`. - @frozen public enum targetPayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetPayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" case push = "push" @@ -13207,54 +13216,54 @@ public enum Components { /// The target of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/target`. - public var target: Components.Schemas.repository_hyphen_ruleset.targetPayload? + public var target: Components.Schemas.RepositoryRuleset.TargetPayload? /// The type of the source of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/source_type`. - @frozen public enum source_typePayload: String, Codable, Hashable, Sendable { - case Repository = "Repository" - case Organization = "Organization" - case Enterprise = "Enterprise" + @frozen public enum SourceTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case repository = "Repository" + case organization = "Organization" + case enterprise = "Enterprise" } /// The type of the source of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/source_type`. - public var source_type: Components.Schemas.repository_hyphen_ruleset.source_typePayload? + public var sourceType: Components.Schemas.RepositoryRuleset.SourceTypePayload? /// The name of the source /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/source`. public var source: Swift.String /// - Remark: Generated from `#/components/schemas/repository-ruleset/enforcement`. - public var enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement + public var enforcement: Components.Schemas.RepositoryRuleEnforcement /// The actors that can bypass the rules in this ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/bypass_actors`. - public var bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? + public var bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? /// The bypass type of the user making the API request for this ruleset. This field is only returned when /// querying the repository-level endpoint. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/current_user_can_bypass`. - @frozen public enum current_user_can_bypassPayload: String, Codable, Hashable, Sendable { + @frozen public enum CurrentUserCanBypassPayload: String, Codable, Hashable, Sendable, CaseIterable { case always = "always" - case pull_requests_only = "pull_requests_only" + case pullRequestsOnly = "pull_requests_only" case never = "never" } /// The bypass type of the user making the API request for this ruleset. This field is only returned when /// querying the repository-level endpoint. /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/current_user_can_bypass`. - public var current_user_can_bypass: Components.Schemas.repository_hyphen_ruleset.current_user_can_bypassPayload? + public var currentUserCanBypass: Components.Schemas.RepositoryRuleset.CurrentUserCanBypassPayload? /// - Remark: Generated from `#/components/schemas/repository-ruleset/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/self`. - public struct _selfPayload: Codable, Hashable, Sendable { + public struct _SelfPayload: Codable, Hashable, Sendable { /// The URL of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/self/href`. public var href: Swift.String? - /// Creates a new `_selfPayload`. + /// Creates a new `_SelfPayload`. /// /// - Parameters: /// - href: The URL of the ruleset @@ -13266,14 +13275,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/self`. - public var _self: Components.Schemas.repository_hyphen_ruleset._linksPayload._selfPayload? + public var _self: Components.Schemas.RepositoryRuleset._LinksPayload._SelfPayload? /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/html`. - public struct htmlPayload: Codable, Hashable, Sendable { + public struct HtmlPayload: Codable, Hashable, Sendable { /// The html URL of the ruleset /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/html/href`. public var href: Swift.String? - /// Creates a new `htmlPayload`. + /// Creates a new `HtmlPayload`. /// /// - Parameters: /// - href: The html URL of the ruleset @@ -13285,15 +13294,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links/html`. - public var html: Components.Schemas.repository_hyphen_ruleset._linksPayload.htmlPayload? - /// Creates a new `_linksPayload`. + public var html: Components.Schemas.RepositoryRuleset._LinksPayload.HtmlPayload? + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - _self: /// - html: public init( - _self: Components.Schemas.repository_hyphen_ruleset._linksPayload._selfPayload? = nil, - html: Components.Schemas.repository_hyphen_ruleset._linksPayload.htmlPayload? = nil + _self: Components.Schemas.RepositoryRuleset._LinksPayload._SelfPayload? = nil, + html: Components.Schemas.RepositoryRuleset._LinksPayload.HtmlPayload? = nil ) { self._self = _self self.html = html @@ -13304,21 +13313,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-ruleset/_links`. - public var _links: Components.Schemas.repository_hyphen_ruleset._linksPayload? + public var _links: Components.Schemas.RepositoryRuleset._LinksPayload? /// - Remark: Generated from `#/components/schemas/repository-ruleset/conditions`. - public struct conditionsPayload: Codable, Hashable, Sendable { + public struct ConditionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-ruleset/conditions/value1`. - public var value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? + public var value1: Components.Schemas.RepositoryRulesetConditions? /// - Remark: Generated from `#/components/schemas/repository-ruleset/conditions/value2`. - public var value2: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? - /// Creates a new `conditionsPayload`. + public var value2: Components.Schemas.OrgRulesetConditions? + /// Creates a new `ConditionsPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? = nil, - value2: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? = nil + value1: Components.Schemas.RepositoryRulesetConditions? = nil, + value2: Components.Schemas.OrgRulesetConditions? = nil ) { self.value1 = value1 self.value2 = value2 @@ -13326,19 +13335,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -13346,204 +13355,204 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-ruleset/conditions`. - public var conditions: Components.Schemas.repository_hyphen_ruleset.conditionsPayload? + public var conditions: Components.Schemas.RepositoryRuleset.ConditionsPayload? /// - Remark: Generated from `#/components/schemas/repository-ruleset/rules`. - public var rules: [Components.Schemas.repository_hyphen_rule]? + public var rules: [Components.Schemas.RepositoryRule]? /// - Remark: Generated from `#/components/schemas/repository-ruleset/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository-ruleset/updated_at`. - public var updated_at: Foundation.Date? - /// Creates a new `repository_hyphen_ruleset`. + public var updatedAt: Foundation.Date? + /// Creates a new `RepositoryRuleset`. /// /// - Parameters: /// - id: The ID of the ruleset /// - name: The name of the ruleset /// - target: The target of the ruleset - /// - source_type: The type of the source of the ruleset + /// - sourceType: The type of the source of the ruleset /// - source: The name of the source /// - enforcement: - /// - bypass_actors: The actors that can bypass the rules in this ruleset - /// - current_user_can_bypass: The bypass type of the user making the API request for this ruleset. This field is only returned when - /// - node_id: + /// - bypassActors: The actors that can bypass the rules in this ruleset + /// - currentUserCanBypass: The bypass type of the user making the API request for this ruleset. This field is only returned when + /// - nodeId: /// - _links: /// - conditions: /// - rules: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( id: Swift.Int, name: Swift.String, - target: Components.Schemas.repository_hyphen_ruleset.targetPayload? = nil, - source_type: Components.Schemas.repository_hyphen_ruleset.source_typePayload? = nil, + target: Components.Schemas.RepositoryRuleset.TargetPayload? = nil, + sourceType: Components.Schemas.RepositoryRuleset.SourceTypePayload? = nil, source: Swift.String, - enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement, - bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? = nil, - current_user_can_bypass: Components.Schemas.repository_hyphen_ruleset.current_user_can_bypassPayload? = nil, - node_id: Swift.String? = nil, - _links: Components.Schemas.repository_hyphen_ruleset._linksPayload? = nil, - conditions: Components.Schemas.repository_hyphen_ruleset.conditionsPayload? = nil, - rules: [Components.Schemas.repository_hyphen_rule]? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil + enforcement: Components.Schemas.RepositoryRuleEnforcement, + bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? = nil, + currentUserCanBypass: Components.Schemas.RepositoryRuleset.CurrentUserCanBypassPayload? = nil, + nodeId: Swift.String? = nil, + _links: Components.Schemas.RepositoryRuleset._LinksPayload? = nil, + conditions: Components.Schemas.RepositoryRuleset.ConditionsPayload? = nil, + rules: [Components.Schemas.RepositoryRule]? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil ) { self.id = id self.name = name self.target = target - self.source_type = source_type + self.sourceType = sourceType self.source = source self.enforcement = enforcement - self.bypass_actors = bypass_actors - self.current_user_can_bypass = current_user_can_bypass - self.node_id = node_id + self.bypassActors = bypassActors + self.currentUserCanBypass = currentUserCanBypass + self.nodeId = nodeId self._links = _links self.conditions = conditions self.rules = rules - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name case target - case source_type + case sourceType = "source_type" case source case enforcement - case bypass_actors - case current_user_can_bypass - case node_id + case bypassActors = "bypass_actors" + case currentUserCanBypass = "current_user_can_bypass" + case nodeId = "node_id" case _links case conditions case rules - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites`. - public struct rule_hyphen_suitesPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/RuleSuites`. + public struct RuleSuitesPayload: Codable, Hashable, Sendable { /// The unique identifier of the rule insight. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/id`. + /// - Remark: Generated from `#/components/schemas/RuleSuites/id`. public var id: Swift.Int? /// The number that identifies the user. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/actor_id`. - public var actor_id: Swift.Int? + /// - Remark: Generated from `#/components/schemas/RuleSuites/actor_id`. + public var actorId: Swift.Int? /// The handle for the GitHub user account. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/actor_name`. - public var actor_name: Swift.String? + /// - Remark: Generated from `#/components/schemas/RuleSuites/actor_name`. + public var actorName: Swift.String? /// The first commit sha before the push evaluation. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/before_sha`. - public var before_sha: Swift.String? + /// - Remark: Generated from `#/components/schemas/RuleSuites/before_sha`. + public var beforeSha: Swift.String? /// The last commit sha in the push evaluation. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/after_sha`. - public var after_sha: Swift.String? + /// - Remark: Generated from `#/components/schemas/RuleSuites/after_sha`. + public var afterSha: Swift.String? /// The ref name that the evaluation ran on. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/ref`. + /// - Remark: Generated from `#/components/schemas/RuleSuites/ref`. public var ref: Swift.String? /// The ID of the repository associated with the rule evaluation. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/repository_id`. - public var repository_id: Swift.Int? + /// - Remark: Generated from `#/components/schemas/RuleSuites/repository_id`. + public var repositoryId: Swift.Int? /// The name of the repository without the `.git` extension. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/repository_name`. - public var repository_name: Swift.String? - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/pushed_at`. - public var pushed_at: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/RuleSuites/repository_name`. + public var repositoryName: Swift.String? + /// - Remark: Generated from `#/components/schemas/RuleSuites/pushed_at`. + public var pushedAt: Foundation.Date? /// The result of the rule evaluations for rules with the `active` enforcement status. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/result`. - @frozen public enum resultPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/RuleSuites/result`. + @frozen public enum ResultPayload: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" } /// The result of the rule evaluations for rules with the `active` enforcement status. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/result`. - public var result: Components.Schemas.rule_hyphen_suitesPayload.resultPayload? + /// - Remark: Generated from `#/components/schemas/RuleSuites/result`. + public var result: Components.Schemas.RuleSuitesPayload.ResultPayload? /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/evaluation_result`. - @frozen public enum evaluation_resultPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/RuleSuites/evaluation_result`. + @frozen public enum EvaluationResultPayload: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" } /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. /// - /// - Remark: Generated from `#/components/schemas/rule_hyphen_suites/evaluation_result`. - public var evaluation_result: Components.Schemas.rule_hyphen_suitesPayload.evaluation_resultPayload? - /// Creates a new `rule_hyphen_suitesPayload`. + /// - Remark: Generated from `#/components/schemas/RuleSuites/evaluation_result`. + public var evaluationResult: Components.Schemas.RuleSuitesPayload.EvaluationResultPayload? + /// Creates a new `RuleSuitesPayload`. /// /// - Parameters: /// - id: The unique identifier of the rule insight. - /// - actor_id: The number that identifies the user. - /// - actor_name: The handle for the GitHub user account. - /// - before_sha: The first commit sha before the push evaluation. - /// - after_sha: The last commit sha in the push evaluation. + /// - actorId: The number that identifies the user. + /// - actorName: The handle for the GitHub user account. + /// - beforeSha: The first commit sha before the push evaluation. + /// - afterSha: The last commit sha in the push evaluation. /// - ref: The ref name that the evaluation ran on. - /// - repository_id: The ID of the repository associated with the rule evaluation. - /// - repository_name: The name of the repository without the `.git` extension. - /// - pushed_at: + /// - repositoryId: The ID of the repository associated with the rule evaluation. + /// - repositoryName: The name of the repository without the `.git` extension. + /// - pushedAt: /// - result: The result of the rule evaluations for rules with the `active` enforcement status. - /// - evaluation_result: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. + /// - evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. public init( id: Swift.Int? = nil, - actor_id: Swift.Int? = nil, - actor_name: Swift.String? = nil, - before_sha: Swift.String? = nil, - after_sha: Swift.String? = nil, + actorId: Swift.Int? = nil, + actorName: Swift.String? = nil, + beforeSha: Swift.String? = nil, + afterSha: Swift.String? = nil, ref: Swift.String? = nil, - repository_id: Swift.Int? = nil, - repository_name: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - result: Components.Schemas.rule_hyphen_suitesPayload.resultPayload? = nil, - evaluation_result: Components.Schemas.rule_hyphen_suitesPayload.evaluation_resultPayload? = nil + repositoryId: Swift.Int? = nil, + repositoryName: Swift.String? = nil, + pushedAt: Foundation.Date? = nil, + result: Components.Schemas.RuleSuitesPayload.ResultPayload? = nil, + evaluationResult: Components.Schemas.RuleSuitesPayload.EvaluationResultPayload? = nil ) { self.id = id - self.actor_id = actor_id - self.actor_name = actor_name - self.before_sha = before_sha - self.after_sha = after_sha + self.actorId = actorId + self.actorName = actorName + self.beforeSha = beforeSha + self.afterSha = afterSha self.ref = ref - self.repository_id = repository_id - self.repository_name = repository_name - self.pushed_at = pushed_at + self.repositoryId = repositoryId + self.repositoryName = repositoryName + self.pushedAt = pushedAt self.result = result - self.evaluation_result = evaluation_result + self.evaluationResult = evaluationResult } public enum CodingKeys: String, CodingKey { case id - case actor_id - case actor_name - case before_sha - case after_sha + case actorId = "actor_id" + case actorName = "actor_name" + case beforeSha = "before_sha" + case afterSha = "after_sha" case ref - case repository_id - case repository_name - case pushed_at + case repositoryId = "repository_id" + case repositoryName = "repository_name" + case pushedAt = "pushed_at" case result - case evaluation_result + case evaluationResult = "evaluation_result" } } /// Response /// /// - Remark: Generated from `#/components/schemas/rule-suites`. - public typealias rule_hyphen_suites = [Components.Schemas.rule_hyphen_suitesPayload] + public typealias RuleSuites = [Components.Schemas.RuleSuitesPayload] /// Response /// /// - Remark: Generated from `#/components/schemas/rule-suite`. - public struct rule_hyphen_suite: Codable, Hashable, Sendable { + public struct RuleSuite: Codable, Hashable, Sendable { /// The unique identifier of the rule insight. /// /// - Remark: Generated from `#/components/schemas/rule-suite/id`. @@ -13551,19 +13560,19 @@ public enum Components { /// The number that identifies the user. /// /// - Remark: Generated from `#/components/schemas/rule-suite/actor_id`. - public var actor_id: Swift.Int? + public var actorId: Swift.Int? /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/schemas/rule-suite/actor_name`. - public var actor_name: Swift.String? + public var actorName: Swift.String? /// The first commit sha before the push evaluation. /// /// - Remark: Generated from `#/components/schemas/rule-suite/before_sha`. - public var before_sha: Swift.String? + public var beforeSha: Swift.String? /// The last commit sha in the push evaluation. /// /// - Remark: Generated from `#/components/schemas/rule-suite/after_sha`. - public var after_sha: Swift.String? + public var afterSha: Swift.String? /// The ref name that the evaluation ran on. /// /// - Remark: Generated from `#/components/schemas/rule-suite/ref`. @@ -13571,17 +13580,17 @@ public enum Components { /// The ID of the repository associated with the rule evaluation. /// /// - Remark: Generated from `#/components/schemas/rule-suite/repository_id`. - public var repository_id: Swift.Int? + public var repositoryId: Swift.Int? /// The name of the repository without the `.git` extension. /// /// - Remark: Generated from `#/components/schemas/rule-suite/repository_name`. - public var repository_name: Swift.String? + public var repositoryName: Swift.String? /// - Remark: Generated from `#/components/schemas/rule-suite/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// The result of the rule evaluations for rules with the `active` enforcement status. /// /// - Remark: Generated from `#/components/schemas/rule-suite/result`. - @frozen public enum resultPayload: String, Codable, Hashable, Sendable { + @frozen public enum ResultPayload: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" @@ -13589,11 +13598,11 @@ public enum Components { /// The result of the rule evaluations for rules with the `active` enforcement status. /// /// - Remark: Generated from `#/components/schemas/rule-suite/result`. - public var result: Components.Schemas.rule_hyphen_suite.resultPayload? + public var result: Components.Schemas.RuleSuite.ResultPayload? /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. /// /// - Remark: Generated from `#/components/schemas/rule-suite/evaluation_result`. - @frozen public enum evaluation_resultPayload: String, Codable, Hashable, Sendable { + @frozen public enum EvaluationResultPayload: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" @@ -13601,24 +13610,24 @@ public enum Components { /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. /// /// - Remark: Generated from `#/components/schemas/rule-suite/evaluation_result`. - public var evaluation_result: Components.Schemas.rule_hyphen_suite.evaluation_resultPayload? - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload`. - public struct rule_evaluationsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_source`. - public struct rule_sourcePayload: Codable, Hashable, Sendable { + public var evaluationResult: Components.Schemas.RuleSuite.EvaluationResultPayload? + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload`. + public struct RuleEvaluationsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_source`. + public struct RuleSourcePayload: Codable, Hashable, Sendable { /// The type of rule source. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_source/type`. + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_source/type`. public var _type: Swift.String? /// The ID of the rule source. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_source/id`. + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_source/id`. public var id: Swift.Int? /// The name of the rule source. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_source/name`. + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_source/name`. public var name: Swift.String? - /// Creates a new `rule_sourcePayload`. + /// Creates a new `RuleSourcePayload`. /// /// - Parameters: /// - _type: The type of rule source. @@ -13639,150 +13648,150 @@ public enum Components { case name } } - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_source`. - public var rule_source: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.rule_sourcePayload? + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_source`. + public var ruleSource: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.RuleSourcePayload? /// The enforcement level of this rule source. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/enforcement`. + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case evaluate = "evaluate" - case deleted_space_ruleset = "deleted ruleset" + case deletedRuleset = "deleted ruleset" } /// The enforcement level of this rule source. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/enforcement`. - public var enforcement: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.enforcementPayload? + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/enforcement`. + public var enforcement: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.EnforcementPayload? /// The result of the evaluation of the individual rule. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/result`. - @frozen public enum resultPayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/result`. + @frozen public enum ResultPayload: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" } /// The result of the evaluation of the individual rule. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/result`. - public var result: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.resultPayload? + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/result`. + public var result: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.ResultPayload? /// The type of rule. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/rule_type`. - public var rule_type: Swift.String? + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/rule_type`. + public var ruleType: Swift.String? /// The detailed failure message for the rule. Null if the rule passed. /// - /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluationsPayload/details`. + /// - Remark: Generated from `#/components/schemas/rule-suite/RuleEvaluationsPayload/details`. public var details: Swift.String? - /// Creates a new `rule_evaluationsPayloadPayload`. + /// Creates a new `RuleEvaluationsPayloadPayload`. /// /// - Parameters: - /// - rule_source: + /// - ruleSource: /// - enforcement: The enforcement level of this rule source. /// - result: The result of the evaluation of the individual rule. - /// - rule_type: The type of rule. + /// - ruleType: The type of rule. /// - details: The detailed failure message for the rule. Null if the rule passed. public init( - rule_source: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.rule_sourcePayload? = nil, - enforcement: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.enforcementPayload? = nil, - result: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload.resultPayload? = nil, - rule_type: Swift.String? = nil, + ruleSource: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.RuleSourcePayload? = nil, + enforcement: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.EnforcementPayload? = nil, + result: Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload.ResultPayload? = nil, + ruleType: Swift.String? = nil, details: Swift.String? = nil ) { - self.rule_source = rule_source + self.ruleSource = ruleSource self.enforcement = enforcement self.result = result - self.rule_type = rule_type + self.ruleType = ruleType self.details = details } public enum CodingKeys: String, CodingKey { - case rule_source + case ruleSource = "rule_source" case enforcement case result - case rule_type + case ruleType = "rule_type" case details } } /// Details on the evaluated rules. /// /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluations`. - public typealias rule_evaluationsPayload = [Components.Schemas.rule_hyphen_suite.rule_evaluationsPayloadPayload] + public typealias RuleEvaluationsPayload = [Components.Schemas.RuleSuite.RuleEvaluationsPayloadPayload] /// Details on the evaluated rules. /// /// - Remark: Generated from `#/components/schemas/rule-suite/rule_evaluations`. - public var rule_evaluations: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayload? - /// Creates a new `rule_hyphen_suite`. + public var ruleEvaluations: Components.Schemas.RuleSuite.RuleEvaluationsPayload? + /// Creates a new `RuleSuite`. /// /// - Parameters: /// - id: The unique identifier of the rule insight. - /// - actor_id: The number that identifies the user. - /// - actor_name: The handle for the GitHub user account. - /// - before_sha: The first commit sha before the push evaluation. - /// - after_sha: The last commit sha in the push evaluation. + /// - actorId: The number that identifies the user. + /// - actorName: The handle for the GitHub user account. + /// - beforeSha: The first commit sha before the push evaluation. + /// - afterSha: The last commit sha in the push evaluation. /// - ref: The ref name that the evaluation ran on. - /// - repository_id: The ID of the repository associated with the rule evaluation. - /// - repository_name: The name of the repository without the `.git` extension. - /// - pushed_at: + /// - repositoryId: The ID of the repository associated with the rule evaluation. + /// - repositoryName: The name of the repository without the `.git` extension. + /// - pushedAt: /// - result: The result of the rule evaluations for rules with the `active` enforcement status. - /// - evaluation_result: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. - /// - rule_evaluations: Details on the evaluated rules. + /// - evaluationResult: The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. + /// - ruleEvaluations: Details on the evaluated rules. public init( id: Swift.Int? = nil, - actor_id: Swift.Int? = nil, - actor_name: Swift.String? = nil, - before_sha: Swift.String? = nil, - after_sha: Swift.String? = nil, + actorId: Swift.Int? = nil, + actorName: Swift.String? = nil, + beforeSha: Swift.String? = nil, + afterSha: Swift.String? = nil, ref: Swift.String? = nil, - repository_id: Swift.Int? = nil, - repository_name: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - result: Components.Schemas.rule_hyphen_suite.resultPayload? = nil, - evaluation_result: Components.Schemas.rule_hyphen_suite.evaluation_resultPayload? = nil, - rule_evaluations: Components.Schemas.rule_hyphen_suite.rule_evaluationsPayload? = nil + repositoryId: Swift.Int? = nil, + repositoryName: Swift.String? = nil, + pushedAt: Foundation.Date? = nil, + result: Components.Schemas.RuleSuite.ResultPayload? = nil, + evaluationResult: Components.Schemas.RuleSuite.EvaluationResultPayload? = nil, + ruleEvaluations: Components.Schemas.RuleSuite.RuleEvaluationsPayload? = nil ) { self.id = id - self.actor_id = actor_id - self.actor_name = actor_name - self.before_sha = before_sha - self.after_sha = after_sha + self.actorId = actorId + self.actorName = actorName + self.beforeSha = beforeSha + self.afterSha = afterSha self.ref = ref - self.repository_id = repository_id - self.repository_name = repository_name - self.pushed_at = pushed_at + self.repositoryId = repositoryId + self.repositoryName = repositoryName + self.pushedAt = pushedAt self.result = result - self.evaluation_result = evaluation_result - self.rule_evaluations = rule_evaluations + self.evaluationResult = evaluationResult + self.ruleEvaluations = ruleEvaluations } public enum CodingKeys: String, CodingKey { case id - case actor_id - case actor_name - case before_sha - case after_sha + case actorId = "actor_id" + case actorName = "actor_name" + case beforeSha = "before_sha" + case afterSha = "after_sha" case ref - case repository_id - case repository_name - case pushed_at + case repositoryId = "repository_id" + case repositoryName = "repository_name" + case pushedAt = "pushed_at" case result - case evaluation_result - case rule_evaluations + case evaluationResult = "evaluation_result" + case ruleEvaluations = "rule_evaluations" } } /// The historical version of a ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version`. - public struct ruleset_hyphen_version: Codable, Hashable, Sendable { + public struct RulesetVersion: Codable, Hashable, Sendable { /// The ID of the previous version of the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/version_id`. - public var version_id: Swift.Int + public var versionId: Swift.Int /// The actor who updated the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/actor`. - public struct actorPayload: Codable, Hashable, Sendable { + public struct ActorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/ruleset-version/actor/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/ruleset-version/actor/type`. public var _type: Swift.String? - /// Creates a new `actorPayload`. + /// Creates a new `ActorPayload`. /// /// - Parameters: /// - id: @@ -13802,34 +13811,34 @@ public enum Components { /// The actor who updated the ruleset /// /// - Remark: Generated from `#/components/schemas/ruleset-version/actor`. - public var actor: Components.Schemas.ruleset_hyphen_version.actorPayload + public var actor: Components.Schemas.RulesetVersion.ActorPayload /// - Remark: Generated from `#/components/schemas/ruleset-version/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `ruleset_hyphen_version`. + public var updatedAt: Foundation.Date + /// Creates a new `RulesetVersion`. /// /// - Parameters: - /// - version_id: The ID of the previous version of the ruleset + /// - versionId: The ID of the previous version of the ruleset /// - actor: The actor who updated the ruleset - /// - updated_at: + /// - updatedAt: public init( - version_id: Swift.Int, - actor: Components.Schemas.ruleset_hyphen_version.actorPayload, - updated_at: Foundation.Date + versionId: Swift.Int, + actor: Components.Schemas.RulesetVersion.ActorPayload, + updatedAt: Foundation.Date ) { - self.version_id = version_id + self.versionId = versionId self.actor = actor - self.updated_at = updated_at + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { - case version_id + case versionId = "version_id" case actor - case updated_at + case updatedAt = "updated_at" } } /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state`. - public struct ruleset_hyphen_version_hyphen_with_hyphen_state: Codable, Hashable, Sendable { + public struct RulesetVersionWithState: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value1`. - public var value1: Components.Schemas.ruleset_hyphen_version + public var value1: Components.Schemas.RulesetVersion /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// The state of the ruleset version @@ -13848,39 +13857,39 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/ruleset-version-with-state/value2`. - public var value2: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.Value2Payload - /// Creates a new `ruleset_hyphen_version_hyphen_with_hyphen_state`. + public var value2: Components.Schemas.RulesetVersionWithState.Value2Payload + /// Creates a new `RulesetVersionWithState`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.ruleset_hyphen_version, - value2: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state.Value2Payload + value1: Components.Schemas.RulesetVersion, + value2: Components.Schemas.RulesetVersionWithState.Value2Payload ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// The type of reviewer. /// /// - Remark: Generated from `#/components/schemas/deployment-reviewer-type`. - @frozen public enum deployment_hyphen_reviewer_hyphen_type: String, Codable, Hashable, Sendable { - case User = "User" - case Team = "Team" + @frozen public enum DeploymentReviewerType: String, Codable, Hashable, Sendable, CaseIterable { + case user = "User" + case team = "Team" } /// A request for a specific ref(branch,sha,tag) to be deployed /// /// - Remark: Generated from `#/components/schemas/deployment`. - public struct deployment: Codable, Hashable, Sendable { + public struct Deployment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment/url`. public var url: Swift.String /// Unique identifier of the deployment @@ -13888,7 +13897,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/sha`. public var sha: Swift.String /// The ref to deploy. This can be a branch, tag, or sha. @@ -13900,7 +13909,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/task`. public var task: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/payload`. - @frozen public enum payloadPayload: Codable, Hashable, Sendable { + @frozen public enum PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment/payload/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// A container of undocumented properties. @@ -13920,7 +13929,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/deployment/payload/case1`. - case case1(Components.Schemas.deployment.payloadPayload.Case1Payload) + case case1(Components.Schemas.Deployment.PayloadPayload.Case1Payload) /// - Remark: Generated from `#/components/schemas/deployment/payload/case2`. case case2(Swift.String) public init(from decoder: any Decoder) throws { @@ -13953,9 +13962,9 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/deployment/payload`. - public var payload: Components.Schemas.deployment.payloadPayload + public var payload: Components.Schemas.Deployment.PayloadPayload /// - Remark: Generated from `#/components/schemas/deployment/original_environment`. - public var original_environment: Swift.String? + public var originalEnvironment: Swift.String? /// Name for the target deployment environment. /// /// - Remark: Generated from `#/components/schemas/deployment/environment`. @@ -13963,114 +13972,114 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deployment/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/deployment/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/deployment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/deployment/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// Specifies if the given environment is will no longer exist at some point in the future. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment/transient_environment`. - public var transient_environment: Swift.Bool? + public var transientEnvironment: Swift.Bool? /// Specifies if the given environment is one that end-users directly interact with. Default: false. /// /// - Remark: Generated from `#/components/schemas/deployment/production_environment`. - public var production_environment: Swift.Bool? + public var productionEnvironment: Swift.Bool? /// - Remark: Generated from `#/components/schemas/deployment/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? - /// Creates a new `deployment`. + public var performedViaGithubApp: Components.Schemas.NullableIntegration? + /// Creates a new `Deployment`. /// /// - Parameters: /// - url: /// - id: Unique identifier of the deployment - /// - node_id: + /// - nodeId: /// - sha: /// - ref: The ref to deploy. This can be a branch, tag, or sha. /// - task: Parameter to specify a task to execute /// - payload: - /// - original_environment: + /// - originalEnvironment: /// - environment: Name for the target deployment environment. /// - description: /// - creator: - /// - created_at: - /// - updated_at: - /// - statuses_url: - /// - repository_url: - /// - transient_environment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. - /// - production_environment: Specifies if the given environment is one that end-users directly interact with. Default: false. - /// - performed_via_github_app: + /// - createdAt: + /// - updatedAt: + /// - statusesUrl: + /// - repositoryUrl: + /// - transientEnvironment: Specifies if the given environment is will no longer exist at some point in the future. Default: false. + /// - productionEnvironment: Specifies if the given environment is one that end-users directly interact with. Default: false. + /// - performedViaGithubApp: public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, sha: Swift.String, ref: Swift.String, task: Swift.String, - payload: Components.Schemas.deployment.payloadPayload, - original_environment: Swift.String? = nil, + payload: Components.Schemas.Deployment.PayloadPayload, + originalEnvironment: Swift.String? = nil, environment: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - statuses_url: Swift.String, - repository_url: Swift.String, - transient_environment: Swift.Bool? = nil, - production_environment: Swift.Bool? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + statusesUrl: Swift.String, + repositoryUrl: Swift.String, + transientEnvironment: Swift.Bool? = nil, + productionEnvironment: Swift.Bool? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil ) { self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.sha = sha self.ref = ref self.task = task self.payload = payload - self.original_environment = original_environment + self.originalEnvironment = originalEnvironment self.environment = environment self.description = description self.creator = creator - self.created_at = created_at - self.updated_at = updated_at - self.statuses_url = statuses_url - self.repository_url = repository_url - self.transient_environment = transient_environment - self.production_environment = production_environment - self.performed_via_github_app = performed_via_github_app + self.createdAt = createdAt + self.updatedAt = updatedAt + self.statusesUrl = statusesUrl + self.repositoryUrl = repositoryUrl + self.transientEnvironment = transientEnvironment + self.productionEnvironment = productionEnvironment + self.performedViaGithubApp = performedViaGithubApp } public enum CodingKeys: String, CodingKey { case url case id - case node_id + case nodeId = "node_id" case sha case ref case task case payload - case original_environment + case originalEnvironment = "original_environment" case environment case description case creator - case created_at - case updated_at - case statuses_url - case repository_url - case transient_environment - case production_environment - case performed_via_github_app + case createdAt = "created_at" + case updatedAt = "updated_at" + case statusesUrl = "statuses_url" + case repositoryUrl = "repository_url" + case transientEnvironment = "transient_environment" + case productionEnvironment = "production_environment" + case performedViaGithubApp = "performed_via_github_app" } } /// Activity /// /// - Remark: Generated from `#/components/schemas/activity`. - public struct activity: Codable, Hashable, Sendable { + public struct Activity: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/activity/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/activity/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The SHA of the commit before the activity. /// /// - Remark: Generated from `#/components/schemas/activity/before`. @@ -14090,108 +14099,108 @@ public enum Components { /// The type of the activity that was performed. /// /// - Remark: Generated from `#/components/schemas/activity/activity_type`. - @frozen public enum activity_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum ActivityTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case push = "push" - case force_push = "force_push" - case branch_deletion = "branch_deletion" - case branch_creation = "branch_creation" - case pr_merge = "pr_merge" - case merge_queue_merge = "merge_queue_merge" + case forcePush = "force_push" + case branchDeletion = "branch_deletion" + case branchCreation = "branch_creation" + case prMerge = "pr_merge" + case mergeQueueMerge = "merge_queue_merge" } /// The type of the activity that was performed. /// /// - Remark: Generated from `#/components/schemas/activity/activity_type`. - public var activity_type: Components.Schemas.activity.activity_typePayload + public var activityType: Components.Schemas.Activity.ActivityTypePayload /// - Remark: Generated from `#/components/schemas/activity/actor`. - public var actor: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `activity`. + public var actor: Components.Schemas.NullableSimpleUser? + /// Creates a new `Activity`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - before: The SHA of the commit before the activity. /// - after: The SHA of the commit after the activity. /// - ref: The full Git reference, formatted as `refs/heads/`. /// - timestamp: The time when the activity occurred. - /// - activity_type: The type of the activity that was performed. + /// - activityType: The type of the activity that was performed. /// - actor: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, before: Swift.String, after: Swift.String, ref: Swift.String, timestamp: Foundation.Date, - activity_type: Components.Schemas.activity.activity_typePayload, - actor: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + activityType: Components.Schemas.Activity.ActivityTypePayload, + actor: Components.Schemas.NullableSimpleUser? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.before = before self.after = after self.ref = ref self.timestamp = timestamp - self.activity_type = activity_type + self.activityType = activityType self.actor = actor } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case before case after case ref case timestamp - case activity_type + case activityType = "activity_type" case actor } } /// An autolink reference. /// /// - Remark: Generated from `#/components/schemas/autolink`. - public struct autolink: Codable, Hashable, Sendable { + public struct Autolink: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/autolink/id`. public var id: Swift.Int /// The prefix of a key that is linkified. /// /// - Remark: Generated from `#/components/schemas/autolink/key_prefix`. - public var key_prefix: Swift.String + public var keyPrefix: Swift.String /// A template for the target URL that is generated if a key was found. /// /// - Remark: Generated from `#/components/schemas/autolink/url_template`. - public var url_template: Swift.String + public var urlTemplate: Swift.String /// Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. /// /// - Remark: Generated from `#/components/schemas/autolink/is_alphanumeric`. - public var is_alphanumeric: Swift.Bool - /// Creates a new `autolink`. + public var isAlphanumeric: Swift.Bool + /// Creates a new `Autolink`. /// /// - Parameters: /// - id: - /// - key_prefix: The prefix of a key that is linkified. - /// - url_template: A template for the target URL that is generated if a key was found. - /// - is_alphanumeric: Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. + /// - keyPrefix: The prefix of a key that is linkified. + /// - urlTemplate: A template for the target URL that is generated if a key was found. + /// - isAlphanumeric: Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. public init( id: Swift.Int, - key_prefix: Swift.String, - url_template: Swift.String, - is_alphanumeric: Swift.Bool + keyPrefix: Swift.String, + urlTemplate: Swift.String, + isAlphanumeric: Swift.Bool ) { self.id = id - self.key_prefix = key_prefix - self.url_template = url_template - self.is_alphanumeric = is_alphanumeric + self.keyPrefix = keyPrefix + self.urlTemplate = urlTemplate + self.isAlphanumeric = isAlphanumeric } public enum CodingKeys: String, CodingKey { case id - case key_prefix - case url_template - case is_alphanumeric + case keyPrefix = "key_prefix" + case urlTemplate = "url_template" + case isAlphanumeric = "is_alphanumeric" } } /// Check Dependabot security updates /// /// - Remark: Generated from `#/components/schemas/check-automated-security-fixes`. - public struct check_hyphen_automated_hyphen_security_hyphen_fixes: Codable, Hashable, Sendable { + public struct CheckAutomatedSecurityFixes: Codable, Hashable, Sendable { /// Whether Dependabot security updates are enabled for the repository. /// /// - Remark: Generated from `#/components/schemas/check-automated-security-fixes/enabled`. @@ -14200,7 +14209,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/check-automated-security-fixes/paused`. public var paused: Swift.Bool - /// Creates a new `check_hyphen_automated_hyphen_security_hyphen_fixes`. + /// Creates a new `CheckAutomatedSecurityFixes`. /// /// - Parameters: /// - enabled: Whether Dependabot security updates are enabled for the repository. @@ -14220,86 +14229,86 @@ public enum Components { /// Protected Branch Required Status Check /// /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check`. - public struct protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check: Codable, Hashable, Sendable { + public struct ProtectedBranchRequiredStatusCheck: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/enforcement_level`. - public var enforcement_level: Swift.String? + public var enforcementLevel: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/contexts`. public var contexts: [Swift.String] - /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/checksPayload`. - public struct checksPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/checksPayload/context`. + /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/ChecksPayload`. + public struct ChecksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/ChecksPayload/context`. public var context: Swift.String - /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/checksPayload/app_id`. - public var app_id: Swift.Int? - /// Creates a new `checksPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/ChecksPayload/app_id`. + public var appId: Swift.Int? + /// Creates a new `ChecksPayloadPayload`. /// /// - Parameters: /// - context: - /// - app_id: + /// - appId: public init( context: Swift.String, - app_id: Swift.Int? = nil + appId: Swift.Int? = nil ) { self.context = context - self.app_id = app_id + self.appId = appId } public enum CodingKeys: String, CodingKey { case context - case app_id + case appId = "app_id" } } /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/checks`. - public typealias checksPayload = [Components.Schemas.protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check.checksPayloadPayload] + public typealias ChecksPayload = [Components.Schemas.ProtectedBranchRequiredStatusCheck.ChecksPayloadPayload] /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/checks`. - public var checks: Components.Schemas.protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check.checksPayload + public var checks: Components.Schemas.ProtectedBranchRequiredStatusCheck.ChecksPayload /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/contexts_url`. - public var contexts_url: Swift.String? + public var contextsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-required-status-check/strict`. public var strict: Swift.Bool? - /// Creates a new `protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check`. + /// Creates a new `ProtectedBranchRequiredStatusCheck`. /// /// - Parameters: /// - url: - /// - enforcement_level: + /// - enforcementLevel: /// - contexts: /// - checks: - /// - contexts_url: + /// - contextsUrl: /// - strict: public init( url: Swift.String? = nil, - enforcement_level: Swift.String? = nil, + enforcementLevel: Swift.String? = nil, contexts: [Swift.String], - checks: Components.Schemas.protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check.checksPayload, - contexts_url: Swift.String? = nil, + checks: Components.Schemas.ProtectedBranchRequiredStatusCheck.ChecksPayload, + contextsUrl: Swift.String? = nil, strict: Swift.Bool? = nil ) { self.url = url - self.enforcement_level = enforcement_level + self.enforcementLevel = enforcementLevel self.contexts = contexts self.checks = checks - self.contexts_url = contexts_url + self.contextsUrl = contextsUrl self.strict = strict } public enum CodingKeys: String, CodingKey { case url - case enforcement_level + case enforcementLevel = "enforcement_level" case contexts case checks - case contexts_url + case contextsUrl = "contexts_url" case strict } } /// Protected Branch Admin Enforced /// /// - Remark: Generated from `#/components/schemas/protected-branch-admin-enforced`. - public struct protected_hyphen_branch_hyphen_admin_hyphen_enforced: Codable, Hashable, Sendable { + public struct ProtectedBranchAdminEnforced: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch-admin-enforced/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch-admin-enforced/enabled`. public var enabled: Swift.Bool - /// Creates a new `protected_hyphen_branch_hyphen_admin_hyphen_enforced`. + /// Creates a new `ProtectedBranchAdminEnforced`. /// /// - Parameters: /// - url: @@ -14319,90 +14328,90 @@ public enum Components { /// Protected Branch Pull Request Review /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review`. - public struct protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review: Codable, Hashable, Sendable { + public struct ProtectedBranchPullRequestReview: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions`. - public struct dismissal_restrictionsPayload: Codable, Hashable, Sendable { + public struct DismissalRestrictionsPayload: Codable, Hashable, Sendable { /// The list of users with review dismissal access. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/users`. - public var users: [Components.Schemas.simple_hyphen_user]? + public var users: [Components.Schemas.SimpleUser]? /// The list of teams with review dismissal access. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/teams`. - public var teams: [Components.Schemas.team]? + public var teams: [Components.Schemas.Team]? /// The list of apps with review dismissal access. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/apps`. - public var apps: [Components.Schemas.integration]? + public var apps: [Components.Schemas.Integration]? /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/users_url`. - public var users_url: Swift.String? + public var usersUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions/teams_url`. - public var teams_url: Swift.String? - /// Creates a new `dismissal_restrictionsPayload`. + public var teamsUrl: Swift.String? + /// Creates a new `DismissalRestrictionsPayload`. /// /// - Parameters: /// - users: The list of users with review dismissal access. /// - teams: The list of teams with review dismissal access. /// - apps: The list of apps with review dismissal access. /// - url: - /// - users_url: - /// - teams_url: + /// - usersUrl: + /// - teamsUrl: public init( - users: [Components.Schemas.simple_hyphen_user]? = nil, - teams: [Components.Schemas.team]? = nil, - apps: [Components.Schemas.integration]? = nil, + users: [Components.Schemas.SimpleUser]? = nil, + teams: [Components.Schemas.Team]? = nil, + apps: [Components.Schemas.Integration]? = nil, url: Swift.String? = nil, - users_url: Swift.String? = nil, - teams_url: Swift.String? = nil + usersUrl: Swift.String? = nil, + teamsUrl: Swift.String? = nil ) { self.users = users self.teams = teams self.apps = apps self.url = url - self.users_url = users_url - self.teams_url = teams_url + self.usersUrl = usersUrl + self.teamsUrl = teamsUrl } public enum CodingKeys: String, CodingKey { case users case teams case apps case url - case users_url - case teams_url + case usersUrl = "users_url" + case teamsUrl = "teams_url" } } /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismissal_restrictions`. - public var dismissal_restrictions: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.dismissal_restrictionsPayload? + public var dismissalRestrictions: Components.Schemas.ProtectedBranchPullRequestReview.DismissalRestrictionsPayload? /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/bypass_pull_request_allowances`. - public struct bypass_pull_request_allowancesPayload: Codable, Hashable, Sendable { + public struct BypassPullRequestAllowancesPayload: Codable, Hashable, Sendable { /// The list of users allowed to bypass pull request requirements. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/bypass_pull_request_allowances/users`. - public var users: [Components.Schemas.simple_hyphen_user]? + public var users: [Components.Schemas.SimpleUser]? /// The list of teams allowed to bypass pull request requirements. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/bypass_pull_request_allowances/teams`. - public var teams: [Components.Schemas.team]? + public var teams: [Components.Schemas.Team]? /// The list of apps allowed to bypass pull request requirements. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/bypass_pull_request_allowances/apps`. - public var apps: [Components.Schemas.integration]? - /// Creates a new `bypass_pull_request_allowancesPayload`. + public var apps: [Components.Schemas.Integration]? + /// Creates a new `BypassPullRequestAllowancesPayload`. /// /// - Parameters: /// - users: The list of users allowed to bypass pull request requirements. /// - teams: The list of teams allowed to bypass pull request requirements. /// - apps: The list of apps allowed to bypass pull request requirements. public init( - users: [Components.Schemas.simple_hyphen_user]? = nil, - teams: [Components.Schemas.team]? = nil, - apps: [Components.Schemas.integration]? = nil + users: [Components.Schemas.SimpleUser]? = nil, + teams: [Components.Schemas.Team]? = nil, + apps: [Components.Schemas.Integration]? = nil ) { self.users = users self.teams = teams @@ -14417,603 +14426,603 @@ public enum Components { /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/bypass_pull_request_allowances`. - public var bypass_pull_request_allowances: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.bypass_pull_request_allowancesPayload? + public var bypassPullRequestAllowances: Components.Schemas.ProtectedBranchPullRequestReview.BypassPullRequestAllowancesPayload? /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/dismiss_stale_reviews`. - public var dismiss_stale_reviews: Swift.Bool + public var dismissStaleReviews: Swift.Bool /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/require_code_owner_reviews`. - public var require_code_owner_reviews: Swift.Bool + public var requireCodeOwnerReviews: Swift.Bool /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/required_approving_review_count`. - public var required_approving_review_count: Swift.Int? + public var requiredApprovingReviewCount: Swift.Int? /// Whether the most recent push must be approved by someone other than the person who pushed it. /// /// - Remark: Generated from `#/components/schemas/protected-branch-pull-request-review/require_last_push_approval`. - public var require_last_push_approval: Swift.Bool? - /// Creates a new `protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review`. + public var requireLastPushApproval: Swift.Bool? + /// Creates a new `ProtectedBranchPullRequestReview`. /// /// - Parameters: /// - url: - /// - dismissal_restrictions: - /// - bypass_pull_request_allowances: Allow specific users, teams, or apps to bypass pull request requirements. - /// - dismiss_stale_reviews: - /// - require_code_owner_reviews: - /// - required_approving_review_count: - /// - require_last_push_approval: Whether the most recent push must be approved by someone other than the person who pushed it. + /// - dismissalRestrictions: + /// - bypassPullRequestAllowances: Allow specific users, teams, or apps to bypass pull request requirements. + /// - dismissStaleReviews: + /// - requireCodeOwnerReviews: + /// - requiredApprovingReviewCount: + /// - requireLastPushApproval: Whether the most recent push must be approved by someone other than the person who pushed it. public init( url: Swift.String? = nil, - dismissal_restrictions: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.dismissal_restrictionsPayload? = nil, - bypass_pull_request_allowances: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review.bypass_pull_request_allowancesPayload? = nil, - dismiss_stale_reviews: Swift.Bool, - require_code_owner_reviews: Swift.Bool, - required_approving_review_count: Swift.Int? = nil, - require_last_push_approval: Swift.Bool? = nil + dismissalRestrictions: Components.Schemas.ProtectedBranchPullRequestReview.DismissalRestrictionsPayload? = nil, + bypassPullRequestAllowances: Components.Schemas.ProtectedBranchPullRequestReview.BypassPullRequestAllowancesPayload? = nil, + dismissStaleReviews: Swift.Bool, + requireCodeOwnerReviews: Swift.Bool, + requiredApprovingReviewCount: Swift.Int? = nil, + requireLastPushApproval: Swift.Bool? = nil ) { self.url = url - self.dismissal_restrictions = dismissal_restrictions - self.bypass_pull_request_allowances = bypass_pull_request_allowances - self.dismiss_stale_reviews = dismiss_stale_reviews - self.require_code_owner_reviews = require_code_owner_reviews - self.required_approving_review_count = required_approving_review_count - self.require_last_push_approval = require_last_push_approval + self.dismissalRestrictions = dismissalRestrictions + self.bypassPullRequestAllowances = bypassPullRequestAllowances + self.dismissStaleReviews = dismissStaleReviews + self.requireCodeOwnerReviews = requireCodeOwnerReviews + self.requiredApprovingReviewCount = requiredApprovingReviewCount + self.requireLastPushApproval = requireLastPushApproval } public enum CodingKeys: String, CodingKey { case url - case dismissal_restrictions - case bypass_pull_request_allowances - case dismiss_stale_reviews - case require_code_owner_reviews - case required_approving_review_count - case require_last_push_approval + case dismissalRestrictions = "dismissal_restrictions" + case bypassPullRequestAllowances = "bypass_pull_request_allowances" + case dismissStaleReviews = "dismiss_stale_reviews" + case requireCodeOwnerReviews = "require_code_owner_reviews" + case requiredApprovingReviewCount = "required_approving_review_count" + case requireLastPushApproval = "require_last_push_approval" } } /// Branch Restriction Policy /// /// - Remark: Generated from `#/components/schemas/branch-restriction-policy`. - public struct branch_hyphen_restriction_hyphen_policy: Codable, Hashable, Sendable { + public struct BranchRestrictionPolicy: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/users_url`. - public var users_url: Swift.String + public var usersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/apps_url`. - public var apps_url: Swift.String - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload`. - public struct usersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/login`. + public var appsUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload`. + public struct UsersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/login`. public var login: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/id`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/avatar_url`. - public var avatar_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/gravatar_id`. - public var gravatar_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/url`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/avatar_url`. + public var avatarUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/gravatar_id`. + public var gravatarId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/followers_url`. - public var followers_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/following_url`. - public var following_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/gists_url`. - public var gists_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/starred_url`. - public var starred_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/subscriptions_url`. - public var subscriptions_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/organizations_url`. - public var organizations_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/repos_url`. - public var repos_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/events_url`. - public var events_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/received_events_url`. - public var received_events_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/type`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/followers_url`. + public var followersUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/following_url`. + public var followingUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/gists_url`. + public var gistsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/starred_url`. + public var starredUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/subscriptions_url`. + public var subscriptionsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/organizations_url`. + public var organizationsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/repos_url`. + public var reposUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/events_url`. + public var eventsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/received_events_url`. + public var receivedEventsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/type`. public var _type: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/site_admin`. - public var site_admin: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `usersPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/site_admin`. + public var siteAdmin: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/UsersPayload/user_view_type`. + public var userViewType: Swift.String? + /// Creates a new `UsersPayloadPayload`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - user_view_type: + /// - siteAdmin: + /// - userViewType: public init( login: Swift.String? = nil, id: Swift.Int64? = nil, - node_id: Swift.String? = nil, - avatar_url: Swift.String? = nil, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String? = nil, + avatarUrl: Swift.String? = nil, + gravatarId: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - followers_url: Swift.String? = nil, - following_url: Swift.String? = nil, - gists_url: Swift.String? = nil, - starred_url: Swift.String? = nil, - subscriptions_url: Swift.String? = nil, - organizations_url: Swift.String? = nil, - repos_url: Swift.String? = nil, - events_url: Swift.String? = nil, - received_events_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + followersUrl: Swift.String? = nil, + followingUrl: Swift.String? = nil, + gistsUrl: Swift.String? = nil, + starredUrl: Swift.String? = nil, + subscriptionsUrl: Swift.String? = nil, + organizationsUrl: Swift.String? = nil, + reposUrl: Swift.String? = nil, + eventsUrl: Swift.String? = nil, + receivedEventsUrl: Swift.String? = nil, _type: Swift.String? = nil, - site_admin: Swift.Bool? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool? = nil, + userViewType: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case user_view_type + case siteAdmin = "site_admin" + case userViewType = "user_view_type" } } /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/users`. - public typealias usersPayload = [Components.Schemas.branch_hyphen_restriction_hyphen_policy.usersPayloadPayload] + public typealias UsersPayload = [Components.Schemas.BranchRestrictionPolicy.UsersPayloadPayload] /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/users`. - public var users: Components.Schemas.branch_hyphen_restriction_hyphen_policy.usersPayload - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload`. - public struct teamsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/id`. + public var users: Components.Schemas.BranchRestrictionPolicy.UsersPayload + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload`. + public struct TeamsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/url`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/name`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/slug`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/slug`. public var slug: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/description`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/privacy`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/privacy`. public var privacy: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/notification_setting`. - public var notification_setting: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/permission`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/notification_setting`. + public var notificationSetting: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/permission`. public var permission: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/members_url`. - public var members_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/repositories_url`. - public var repositories_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teamsPayload/parent`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/members_url`. + public var membersUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/repositories_url`. + public var repositoriesUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/TeamsPayload/parent`. public var parent: Swift.String? - /// Creates a new `teamsPayloadPayload`. + /// Creates a new `TeamsPayloadPayload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - html_url: + /// - htmlUrl: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: - /// - members_url: - /// - repositories_url: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, name: Swift.String? = nil, slug: Swift.String? = nil, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String? = nil, - members_url: Swift.String? = nil, - repositories_url: Swift.String? = nil, + membersUrl: Swift.String? = nil, + repositoriesUrl: Swift.String? = nil, parent: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission - self.members_url = members_url - self.repositories_url = repositories_url + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case html_url + case htmlUrl = "html_url" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission - case members_url - case repositories_url + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teams`. - public typealias teamsPayload = [Components.Schemas.branch_hyphen_restriction_hyphen_policy.teamsPayloadPayload] + public typealias TeamsPayload = [Components.Schemas.BranchRestrictionPolicy.TeamsPayloadPayload] /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/teams`. - public var teams: Components.Schemas.branch_hyphen_restriction_hyphen_policy.teamsPayload - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload`. - public struct appsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/id`. + public var teams: Components.Schemas.BranchRestrictionPolicy.TeamsPayload + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload`. + public struct AppsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/slug`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/slug`. public var slug: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner`. - public struct ownerPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/login`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner`. + public struct OwnerPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/login`. public var login: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/id`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/url`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/repos_url`. - public var repos_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/events_url`. - public var events_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/hooks_url`. - public var hooks_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/issues_url`. - public var issues_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/members_url`. - public var members_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/public_members_url`. - public var public_members_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/avatar_url`. - public var avatar_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/description`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/repos_url`. + public var reposUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/events_url`. + public var eventsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/hooks_url`. + public var hooksUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/issues_url`. + public var issuesUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/members_url`. + public var membersUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/public_members_url`. + public var publicMembersUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/avatar_url`. + public var avatarUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/gravatar_id`. - public var gravatar_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/followers_url`. - public var followers_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/following_url`. - public var following_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/gists_url`. - public var gists_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/starred_url`. - public var starred_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/subscriptions_url`. - public var subscriptions_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/organizations_url`. - public var organizations_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/received_events_url`. - public var received_events_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/type`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/gravatar_id`. + public var gravatarId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/followers_url`. + public var followersUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/following_url`. + public var followingUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/gists_url`. + public var gistsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/starred_url`. + public var starredUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/subscriptions_url`. + public var subscriptionsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/organizations_url`. + public var organizationsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/received_events_url`. + public var receivedEventsUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/type`. public var _type: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/site_admin`. - public var site_admin: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `ownerPayload`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/site_admin`. + public var siteAdmin: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner/user_view_type`. + public var userViewType: Swift.String? + /// Creates a new `OwnerPayload`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - repos_url: - /// - events_url: - /// - hooks_url: - /// - issues_url: - /// - members_url: - /// - public_members_url: - /// - avatar_url: + /// - reposUrl: + /// - eventsUrl: + /// - hooksUrl: + /// - issuesUrl: + /// - membersUrl: + /// - publicMembersUrl: + /// - avatarUrl: /// - description: - /// - gravatar_id: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - received_events_url: + /// - gravatarId: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - user_view_type: + /// - siteAdmin: + /// - userViewType: public init( login: Swift.String? = nil, id: Swift.Int? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, - repos_url: Swift.String? = nil, - events_url: Swift.String? = nil, - hooks_url: Swift.String? = nil, - issues_url: Swift.String? = nil, - members_url: Swift.String? = nil, - public_members_url: Swift.String? = nil, - avatar_url: Swift.String? = nil, + reposUrl: Swift.String? = nil, + eventsUrl: Swift.String? = nil, + hooksUrl: Swift.String? = nil, + issuesUrl: Swift.String? = nil, + membersUrl: Swift.String? = nil, + publicMembersUrl: Swift.String? = nil, + avatarUrl: Swift.String? = nil, description: Swift.String? = nil, - gravatar_id: Swift.String? = nil, - html_url: Swift.String? = nil, - followers_url: Swift.String? = nil, - following_url: Swift.String? = nil, - gists_url: Swift.String? = nil, - starred_url: Swift.String? = nil, - subscriptions_url: Swift.String? = nil, - organizations_url: Swift.String? = nil, - received_events_url: Swift.String? = nil, + gravatarId: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + followersUrl: Swift.String? = nil, + followingUrl: Swift.String? = nil, + gistsUrl: Swift.String? = nil, + starredUrl: Swift.String? = nil, + subscriptionsUrl: Swift.String? = nil, + organizationsUrl: Swift.String? = nil, + receivedEventsUrl: Swift.String? = nil, _type: Swift.String? = nil, - site_admin: Swift.Bool? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool? = nil, + userViewType: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repos_url = repos_url - self.events_url = events_url - self.hooks_url = hooks_url - self.issues_url = issues_url - self.members_url = members_url - self.public_members_url = public_members_url - self.avatar_url = avatar_url + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.hooksUrl = hooksUrl + self.issuesUrl = issuesUrl + self.membersUrl = membersUrl + self.publicMembersUrl = publicMembersUrl + self.avatarUrl = avatarUrl self.description = description - self.gravatar_id = gravatar_id - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.received_events_url = received_events_url + self.gravatarId = gravatarId + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id - case node_id + case nodeId = "node_id" case url - case repos_url - case events_url - case hooks_url - case issues_url - case members_url - case public_members_url - case avatar_url + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case hooksUrl = "hooks_url" + case issuesUrl = "issues_url" + case membersUrl = "members_url" + case publicMembersUrl = "public_members_url" + case avatarUrl = "avatar_url" case description - case gravatar_id - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case received_events_url + case gravatarId = "gravatar_id" + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case user_view_type + case siteAdmin = "site_admin" + case userViewType = "user_view_type" } } - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner`. - public var owner: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.ownerPayload? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/name`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/owner`. + public var owner: Components.Schemas.BranchRestrictionPolicy.AppsPayloadPayload.OwnerPayload? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/client_id`. - public var client_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/description`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/client_id`. + public var clientId: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/description`. public var description: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/external_url`. - public var external_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/created_at`. - public var created_at: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/updated_at`. - public var updated_at: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions/metadata`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/external_url`. + public var externalUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/created_at`. + public var createdAt: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/updated_at`. + public var updatedAt: Swift.String? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions`. + public struct PermissionsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions/metadata`. public var metadata: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions/contents`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions/contents`. public var contents: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions/issues`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions/issues`. public var issues: Swift.String? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions/single_file`. - public var single_file: Swift.String? - /// Creates a new `permissionsPayload`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions/single_file`. + public var singleFile: Swift.String? + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - metadata: /// - contents: /// - issues: - /// - single_file: + /// - singleFile: public init( metadata: Swift.String? = nil, contents: Swift.String? = nil, issues: Swift.String? = nil, - single_file: Swift.String? = nil + singleFile: Swift.String? = nil ) { self.metadata = metadata self.contents = contents self.issues = issues - self.single_file = single_file + self.singleFile = singleFile } public enum CodingKeys: String, CodingKey { case metadata case contents case issues - case single_file + case singleFile = "single_file" } } - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/permissions`. - public var permissions: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.permissionsPayload? - /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/events`. + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/permissions`. + public var permissions: Components.Schemas.BranchRestrictionPolicy.AppsPayloadPayload.PermissionsPayload? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/AppsPayload/events`. public var events: [Swift.String]? - /// Creates a new `appsPayloadPayload`. + /// Creates a new `AppsPayloadPayload`. /// /// - Parameters: /// - id: /// - slug: - /// - node_id: + /// - nodeId: /// - owner: /// - name: - /// - client_id: + /// - clientId: /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: /// - events: public init( id: Swift.Int? = nil, slug: Swift.String? = nil, - node_id: Swift.String? = nil, - owner: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.ownerPayload? = nil, + nodeId: Swift.String? = nil, + owner: Components.Schemas.BranchRestrictionPolicy.AppsPayloadPayload.OwnerPayload? = nil, name: Swift.String? = nil, - client_id: Swift.String? = nil, + clientId: Swift.String? = nil, description: Swift.String? = nil, - external_url: Swift.String? = nil, - html_url: Swift.String? = nil, - created_at: Swift.String? = nil, - updated_at: Swift.String? = nil, - permissions: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload.permissionsPayload? = nil, + externalUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + createdAt: Swift.String? = nil, + updatedAt: Swift.String? = nil, + permissions: Components.Schemas.BranchRestrictionPolicy.AppsPayloadPayload.PermissionsPayload? = nil, events: [Swift.String]? = nil ) { self.id = id self.slug = slug - self.node_id = node_id + self.nodeId = nodeId self.owner = owner self.name = name - self.client_id = client_id + self.clientId = clientId self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events } public enum CodingKeys: String, CodingKey { case id case slug - case node_id + case nodeId = "node_id" case owner case name - case client_id + case clientId = "client_id" case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events } } /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/apps`. - public typealias appsPayload = [Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayloadPayload] + public typealias AppsPayload = [Components.Schemas.BranchRestrictionPolicy.AppsPayloadPayload] /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/apps`. - public var apps: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayload - /// Creates a new `branch_hyphen_restriction_hyphen_policy`. + public var apps: Components.Schemas.BranchRestrictionPolicy.AppsPayload + /// Creates a new `BranchRestrictionPolicy`. /// /// - Parameters: /// - url: - /// - users_url: - /// - teams_url: - /// - apps_url: + /// - usersUrl: + /// - teamsUrl: + /// - appsUrl: /// - users: /// - teams: /// - apps: public init( url: Swift.String, - users_url: Swift.String, - teams_url: Swift.String, - apps_url: Swift.String, - users: Components.Schemas.branch_hyphen_restriction_hyphen_policy.usersPayload, - teams: Components.Schemas.branch_hyphen_restriction_hyphen_policy.teamsPayload, - apps: Components.Schemas.branch_hyphen_restriction_hyphen_policy.appsPayload + usersUrl: Swift.String, + teamsUrl: Swift.String, + appsUrl: Swift.String, + users: Components.Schemas.BranchRestrictionPolicy.UsersPayload, + teams: Components.Schemas.BranchRestrictionPolicy.TeamsPayload, + apps: Components.Schemas.BranchRestrictionPolicy.AppsPayload ) { self.url = url - self.users_url = users_url - self.teams_url = teams_url - self.apps_url = apps_url + self.usersUrl = usersUrl + self.teamsUrl = teamsUrl + self.appsUrl = appsUrl self.users = users self.teams = teams self.apps = apps } public enum CodingKeys: String, CodingKey { case url - case users_url - case teams_url - case apps_url + case usersUrl = "users_url" + case teamsUrl = "teams_url" + case appsUrl = "apps_url" case users case teams case apps @@ -15022,24 +15031,24 @@ public enum Components { /// Branch Protection /// /// - Remark: Generated from `#/components/schemas/branch-protection`. - public struct branch_hyphen_protection: Codable, Hashable, Sendable { + public struct BranchProtection: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-protection/enabled`. public var enabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/branch-protection/required_status_checks`. - public var required_status_checks: Components.Schemas.protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check? + public var requiredStatusChecks: Components.Schemas.ProtectedBranchRequiredStatusCheck? /// - Remark: Generated from `#/components/schemas/branch-protection/enforce_admins`. - public var enforce_admins: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced? + public var enforceAdmins: Components.Schemas.ProtectedBranchAdminEnforced? /// - Remark: Generated from `#/components/schemas/branch-protection/required_pull_request_reviews`. - public var required_pull_request_reviews: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review? + public var requiredPullRequestReviews: Components.Schemas.ProtectedBranchPullRequestReview? /// - Remark: Generated from `#/components/schemas/branch-protection/restrictions`. - public var restrictions: Components.Schemas.branch_hyphen_restriction_hyphen_policy? + public var restrictions: Components.Schemas.BranchRestrictionPolicy? /// - Remark: Generated from `#/components/schemas/branch-protection/required_linear_history`. - public struct required_linear_historyPayload: Codable, Hashable, Sendable { + public struct RequiredLinearHistoryPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/required_linear_history/enabled`. public var enabled: Swift.Bool? - /// Creates a new `required_linear_historyPayload`. + /// Creates a new `RequiredLinearHistoryPayload`. /// /// - Parameters: /// - enabled: @@ -15051,12 +15060,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/required_linear_history`. - public var required_linear_history: Components.Schemas.branch_hyphen_protection.required_linear_historyPayload? + public var requiredLinearHistory: Components.Schemas.BranchProtection.RequiredLinearHistoryPayload? /// - Remark: Generated from `#/components/schemas/branch-protection/allow_force_pushes`. - public struct allow_force_pushesPayload: Codable, Hashable, Sendable { + public struct AllowForcePushesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/allow_force_pushes/enabled`. public var enabled: Swift.Bool? - /// Creates a new `allow_force_pushesPayload`. + /// Creates a new `AllowForcePushesPayload`. /// /// - Parameters: /// - enabled: @@ -15068,12 +15077,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/allow_force_pushes`. - public var allow_force_pushes: Components.Schemas.branch_hyphen_protection.allow_force_pushesPayload? + public var allowForcePushes: Components.Schemas.BranchProtection.AllowForcePushesPayload? /// - Remark: Generated from `#/components/schemas/branch-protection/allow_deletions`. - public struct allow_deletionsPayload: Codable, Hashable, Sendable { + public struct AllowDeletionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/allow_deletions/enabled`. public var enabled: Swift.Bool? - /// Creates a new `allow_deletionsPayload`. + /// Creates a new `AllowDeletionsPayload`. /// /// - Parameters: /// - enabled: @@ -15085,12 +15094,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/allow_deletions`. - public var allow_deletions: Components.Schemas.branch_hyphen_protection.allow_deletionsPayload? + public var allowDeletions: Components.Schemas.BranchProtection.AllowDeletionsPayload? /// - Remark: Generated from `#/components/schemas/branch-protection/block_creations`. - public struct block_creationsPayload: Codable, Hashable, Sendable { + public struct BlockCreationsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/block_creations/enabled`. public var enabled: Swift.Bool? - /// Creates a new `block_creationsPayload`. + /// Creates a new `BlockCreationsPayload`. /// /// - Parameters: /// - enabled: @@ -15102,12 +15111,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/block_creations`. - public var block_creations: Components.Schemas.branch_hyphen_protection.block_creationsPayload? + public var blockCreations: Components.Schemas.BranchProtection.BlockCreationsPayload? /// - Remark: Generated from `#/components/schemas/branch-protection/required_conversation_resolution`. - public struct required_conversation_resolutionPayload: Codable, Hashable, Sendable { + public struct RequiredConversationResolutionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/required_conversation_resolution/enabled`. public var enabled: Swift.Bool? - /// Creates a new `required_conversation_resolutionPayload`. + /// Creates a new `RequiredConversationResolutionPayload`. /// /// - Parameters: /// - enabled: @@ -15119,18 +15128,18 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/required_conversation_resolution`. - public var required_conversation_resolution: Components.Schemas.branch_hyphen_protection.required_conversation_resolutionPayload? + public var requiredConversationResolution: Components.Schemas.BranchProtection.RequiredConversationResolutionPayload? /// - Remark: Generated from `#/components/schemas/branch-protection/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-protection/protection_url`. - public var protection_url: Swift.String? + public var protectionUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-protection/required_signatures`. - public struct required_signaturesPayload: Codable, Hashable, Sendable { + public struct RequiredSignaturesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/required_signatures/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/branch-protection/required_signatures/enabled`. public var enabled: Swift.Bool - /// Creates a new `required_signaturesPayload`. + /// Creates a new `RequiredSignaturesPayload`. /// /// - Parameters: /// - url: @@ -15148,14 +15157,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-protection/required_signatures`. - public var required_signatures: Components.Schemas.branch_hyphen_protection.required_signaturesPayload? + public var requiredSignatures: Components.Schemas.BranchProtection.RequiredSignaturesPayload? /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// /// - Remark: Generated from `#/components/schemas/branch-protection/lock_branch`. - public struct lock_branchPayload: Codable, Hashable, Sendable { + public struct LockBranchPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/lock_branch/enabled`. public var enabled: Swift.Bool? - /// Creates a new `lock_branchPayload`. + /// Creates a new `LockBranchPayload`. /// /// - Parameters: /// - enabled: @@ -15169,14 +15178,14 @@ public enum Components { /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// /// - Remark: Generated from `#/components/schemas/branch-protection/lock_branch`. - public var lock_branch: Components.Schemas.branch_hyphen_protection.lock_branchPayload? + public var lockBranch: Components.Schemas.BranchProtection.LockBranchPayload? /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// /// - Remark: Generated from `#/components/schemas/branch-protection/allow_fork_syncing`. - public struct allow_fork_syncingPayload: Codable, Hashable, Sendable { + public struct AllowForkSyncingPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-protection/allow_fork_syncing/enabled`. public var enabled: Swift.Bool? - /// Creates a new `allow_fork_syncingPayload`. + /// Creates a new `AllowForkSyncingPayload`. /// /// - Parameters: /// - enabled: @@ -15190,93 +15199,93 @@ public enum Components { /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// /// - Remark: Generated from `#/components/schemas/branch-protection/allow_fork_syncing`. - public var allow_fork_syncing: Components.Schemas.branch_hyphen_protection.allow_fork_syncingPayload? - /// Creates a new `branch_hyphen_protection`. + public var allowForkSyncing: Components.Schemas.BranchProtection.AllowForkSyncingPayload? + /// Creates a new `BranchProtection`. /// /// - Parameters: /// - url: /// - enabled: - /// - required_status_checks: - /// - enforce_admins: - /// - required_pull_request_reviews: + /// - requiredStatusChecks: + /// - enforceAdmins: + /// - requiredPullRequestReviews: /// - restrictions: - /// - required_linear_history: - /// - allow_force_pushes: - /// - allow_deletions: - /// - block_creations: - /// - required_conversation_resolution: + /// - requiredLinearHistory: + /// - allowForcePushes: + /// - allowDeletions: + /// - blockCreations: + /// - requiredConversationResolution: /// - name: - /// - protection_url: - /// - required_signatures: - /// - lock_branch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. - /// - allow_fork_syncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. + /// - protectionUrl: + /// - requiredSignatures: + /// - lockBranch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. + /// - allowForkSyncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. public init( url: Swift.String? = nil, enabled: Swift.Bool? = nil, - required_status_checks: Components.Schemas.protected_hyphen_branch_hyphen_required_hyphen_status_hyphen_check? = nil, - enforce_admins: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced? = nil, - required_pull_request_reviews: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review? = nil, - restrictions: Components.Schemas.branch_hyphen_restriction_hyphen_policy? = nil, - required_linear_history: Components.Schemas.branch_hyphen_protection.required_linear_historyPayload? = nil, - allow_force_pushes: Components.Schemas.branch_hyphen_protection.allow_force_pushesPayload? = nil, - allow_deletions: Components.Schemas.branch_hyphen_protection.allow_deletionsPayload? = nil, - block_creations: Components.Schemas.branch_hyphen_protection.block_creationsPayload? = nil, - required_conversation_resolution: Components.Schemas.branch_hyphen_protection.required_conversation_resolutionPayload? = nil, + requiredStatusChecks: Components.Schemas.ProtectedBranchRequiredStatusCheck? = nil, + enforceAdmins: Components.Schemas.ProtectedBranchAdminEnforced? = nil, + requiredPullRequestReviews: Components.Schemas.ProtectedBranchPullRequestReview? = nil, + restrictions: Components.Schemas.BranchRestrictionPolicy? = nil, + requiredLinearHistory: Components.Schemas.BranchProtection.RequiredLinearHistoryPayload? = nil, + allowForcePushes: Components.Schemas.BranchProtection.AllowForcePushesPayload? = nil, + allowDeletions: Components.Schemas.BranchProtection.AllowDeletionsPayload? = nil, + blockCreations: Components.Schemas.BranchProtection.BlockCreationsPayload? = nil, + requiredConversationResolution: Components.Schemas.BranchProtection.RequiredConversationResolutionPayload? = nil, name: Swift.String? = nil, - protection_url: Swift.String? = nil, - required_signatures: Components.Schemas.branch_hyphen_protection.required_signaturesPayload? = nil, - lock_branch: Components.Schemas.branch_hyphen_protection.lock_branchPayload? = nil, - allow_fork_syncing: Components.Schemas.branch_hyphen_protection.allow_fork_syncingPayload? = nil + protectionUrl: Swift.String? = nil, + requiredSignatures: Components.Schemas.BranchProtection.RequiredSignaturesPayload? = nil, + lockBranch: Components.Schemas.BranchProtection.LockBranchPayload? = nil, + allowForkSyncing: Components.Schemas.BranchProtection.AllowForkSyncingPayload? = nil ) { self.url = url self.enabled = enabled - self.required_status_checks = required_status_checks - self.enforce_admins = enforce_admins - self.required_pull_request_reviews = required_pull_request_reviews + self.requiredStatusChecks = requiredStatusChecks + self.enforceAdmins = enforceAdmins + self.requiredPullRequestReviews = requiredPullRequestReviews self.restrictions = restrictions - self.required_linear_history = required_linear_history - self.allow_force_pushes = allow_force_pushes - self.allow_deletions = allow_deletions - self.block_creations = block_creations - self.required_conversation_resolution = required_conversation_resolution + self.requiredLinearHistory = requiredLinearHistory + self.allowForcePushes = allowForcePushes + self.allowDeletions = allowDeletions + self.blockCreations = blockCreations + self.requiredConversationResolution = requiredConversationResolution self.name = name - self.protection_url = protection_url - self.required_signatures = required_signatures - self.lock_branch = lock_branch - self.allow_fork_syncing = allow_fork_syncing + self.protectionUrl = protectionUrl + self.requiredSignatures = requiredSignatures + self.lockBranch = lockBranch + self.allowForkSyncing = allowForkSyncing } public enum CodingKeys: String, CodingKey { case url case enabled - case required_status_checks - case enforce_admins - case required_pull_request_reviews + case requiredStatusChecks = "required_status_checks" + case enforceAdmins = "enforce_admins" + case requiredPullRequestReviews = "required_pull_request_reviews" case restrictions - case required_linear_history - case allow_force_pushes - case allow_deletions - case block_creations - case required_conversation_resolution + case requiredLinearHistory = "required_linear_history" + case allowForcePushes = "allow_force_pushes" + case allowDeletions = "allow_deletions" + case blockCreations = "block_creations" + case requiredConversationResolution = "required_conversation_resolution" case name - case protection_url - case required_signatures - case lock_branch - case allow_fork_syncing + case protectionUrl = "protection_url" + case requiredSignatures = "required_signatures" + case lockBranch = "lock_branch" + case allowForkSyncing = "allow_fork_syncing" } } /// Short Branch /// /// - Remark: Generated from `#/components/schemas/short-branch`. - public struct short_hyphen_branch: Codable, Hashable, Sendable { + public struct ShortBranch: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/short-branch/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/short-branch/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/short-branch/commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/short-branch/commit/url`. public var url: Swift.String - /// Creates a new `commitPayload`. + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - sha: @@ -15294,53 +15303,53 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/short-branch/commit`. - public var commit: Components.Schemas.short_hyphen_branch.commitPayload + public var commit: Components.Schemas.ShortBranch.CommitPayload /// - Remark: Generated from `#/components/schemas/short-branch/protected`. public var protected: Swift.Bool /// - Remark: Generated from `#/components/schemas/short-branch/protection`. - public var protection: Components.Schemas.branch_hyphen_protection? + public var protection: Components.Schemas.BranchProtection? /// - Remark: Generated from `#/components/schemas/short-branch/protection_url`. - public var protection_url: Swift.String? - /// Creates a new `short_hyphen_branch`. + public var protectionUrl: Swift.String? + /// Creates a new `ShortBranch`. /// /// - Parameters: /// - name: /// - commit: /// - protected: /// - protection: - /// - protection_url: + /// - protectionUrl: public init( name: Swift.String, - commit: Components.Schemas.short_hyphen_branch.commitPayload, + commit: Components.Schemas.ShortBranch.CommitPayload, protected: Swift.Bool, - protection: Components.Schemas.branch_hyphen_protection? = nil, - protection_url: Swift.String? = nil + protection: Components.Schemas.BranchProtection? = nil, + protectionUrl: Swift.String? = nil ) { self.name = name self.commit = commit self.protected = protected self.protection = protection - self.protection_url = protection_url + self.protectionUrl = protectionUrl } public enum CodingKeys: String, CodingKey { case name case commit case protected case protection - case protection_url + case protectionUrl = "protection_url" } } /// Metaproperties for Git author/committer information. /// /// - Remark: Generated from `#/components/schemas/nullable-git-user`. - public struct nullable_hyphen_git_hyphen_user: Codable, Hashable, Sendable { + public struct NullableGitUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-git-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/date`. public var date: Swift.String? - /// Creates a new `nullable_hyphen_git_hyphen_user`. + /// Creates a new `NullableGitUser`. /// /// - Parameters: /// - name: @@ -15362,7 +15371,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/verification`. - public struct verification: Codable, Hashable, Sendable { + public struct Verification: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/verification/reason`. @@ -15372,46 +15381,46 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/verification/signature`. public var signature: Swift.String? /// - Remark: Generated from `#/components/schemas/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verification`. + public var verifiedAt: Swift.String? + /// Creates a new `Verification`. /// /// - Parameters: /// - verified: /// - reason: /// - payload: /// - signature: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, payload: Swift.String? = nil, signature: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.payload = payload self.signature = signature - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case payload case signature - case verified_at + case verifiedAt = "verified_at" } } /// Diff Entry /// /// - Remark: Generated from `#/components/schemas/diff-entry`. - public struct diff_hyphen_entry: Codable, Hashable, Sendable { + public struct DiffEntry: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/diff-entry/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/filename`. public var filename: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case added = "added" case removed = "removed" case modified = "modified" @@ -15421,7 +15430,7 @@ public enum Components { case unchanged = "unchanged" } /// - Remark: Generated from `#/components/schemas/diff-entry/status`. - public var status: Components.Schemas.diff_hyphen_entry.statusPayload + public var status: Components.Schemas.DiffEntry.StatusPayload /// - Remark: Generated from `#/components/schemas/diff-entry/additions`. public var additions: Swift.Int /// - Remark: Generated from `#/components/schemas/diff-entry/deletions`. @@ -15429,16 +15438,16 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/diff-entry/changes`. public var changes: Swift.Int /// - Remark: Generated from `#/components/schemas/diff-entry/blob_url`. - public var blob_url: Swift.String + public var blobUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/raw_url`. - public var raw_url: Swift.String + public var rawUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/diff-entry/patch`. public var patch: Swift.String? /// - Remark: Generated from `#/components/schemas/diff-entry/previous_filename`. - public var previous_filename: Swift.String? - /// Creates a new `diff_hyphen_entry`. + public var previousFilename: Swift.String? + /// Creates a new `DiffEntry`. /// /// - Parameters: /// - sha: @@ -15447,23 +15456,23 @@ public enum Components { /// - additions: /// - deletions: /// - changes: - /// - blob_url: - /// - raw_url: - /// - contents_url: + /// - blobUrl: + /// - rawUrl: + /// - contentsUrl: /// - patch: - /// - previous_filename: + /// - previousFilename: public init( sha: Swift.String, filename: Swift.String, - status: Components.Schemas.diff_hyphen_entry.statusPayload, + status: Components.Schemas.DiffEntry.StatusPayload, additions: Swift.Int, deletions: Swift.Int, changes: Swift.Int, - blob_url: Swift.String, - raw_url: Swift.String, - contents_url: Swift.String, + blobUrl: Swift.String, + rawUrl: Swift.String, + contentsUrl: Swift.String, patch: Swift.String? = nil, - previous_filename: Swift.String? = nil + previousFilename: Swift.String? = nil ) { self.sha = sha self.filename = filename @@ -15471,11 +15480,11 @@ public enum Components { self.additions = additions self.deletions = deletions self.changes = changes - self.blob_url = blob_url - self.raw_url = raw_url - self.contents_url = contents_url + self.blobUrl = blobUrl + self.rawUrl = rawUrl + self.contentsUrl = contentsUrl self.patch = patch - self.previous_filename = previous_filename + self.previousFilename = previousFilename } public enum CodingKeys: String, CodingKey { case sha @@ -15484,46 +15493,46 @@ public enum Components { case additions case deletions case changes - case blob_url - case raw_url - case contents_url + case blobUrl = "blob_url" + case rawUrl = "raw_url" + case contentsUrl = "contents_url" case patch - case previous_filename + case previousFilename = "previous_filename" } } /// Commit /// /// - Remark: Generated from `#/components/schemas/commit`. - public struct commit: Codable, Hashable, Sendable { + public struct Commit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/commit/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/author`. - public var author: Components.Schemas.nullable_hyphen_git_hyphen_user? + public var author: Components.Schemas.NullableGitUser? /// - Remark: Generated from `#/components/schemas/commit/commit/committer`. - public var committer: Components.Schemas.nullable_hyphen_git_hyphen_user? + public var committer: Components.Schemas.NullableGitUser? /// - Remark: Generated from `#/components/schemas/commit/commit/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/comment_count`. - public var comment_count: Swift.Int + public var commentCount: Swift.Int /// - Remark: Generated from `#/components/schemas/commit/commit/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/commit/tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit/commit/tree/url`. public var url: Swift.String - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - sha: @@ -15541,33 +15550,33 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit/commit/tree`. - public var tree: Components.Schemas.commit.commitPayload.treePayload + public var tree: Components.Schemas.Commit.CommitPayload.TreePayload /// - Remark: Generated from `#/components/schemas/commit/commit/verification`. - public var verification: Components.Schemas.verification? - /// Creates a new `commitPayload`. + public var verification: Components.Schemas.Verification? + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - url: /// - author: /// - committer: /// - message: - /// - comment_count: + /// - commentCount: /// - tree: /// - verification: public init( url: Swift.String, - author: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, - committer: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, + author: Components.Schemas.NullableGitUser? = nil, + committer: Components.Schemas.NullableGitUser? = nil, message: Swift.String, - comment_count: Swift.Int, - tree: Components.Schemas.commit.commitPayload.treePayload, - verification: Components.Schemas.verification? = nil + commentCount: Swift.Int, + tree: Components.Schemas.Commit.CommitPayload.TreePayload, + verification: Components.Schemas.Verification? = nil ) { self.url = url self.author = author self.committer = committer self.message = message - self.comment_count = comment_count + self.commentCount = commentCount self.tree = tree self.verification = verification } @@ -15576,29 +15585,29 @@ public enum Components { case author case committer case message - case comment_count + case commentCount = "comment_count" case tree case verification } } /// - Remark: Generated from `#/components/schemas/commit/commit`. - public var commit: Components.Schemas.commit.commitPayload + public var commit: Components.Schemas.Commit.CommitPayload /// - Remark: Generated from `#/components/schemas/commit/author`. - @frozen public enum authorPayload: Codable, Hashable, Sendable { + @frozen public enum AuthorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/author/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/commit/author/case2`. - case empty_hyphen_object(Components.Schemas.empty_hyphen_object) + case EmptyObject(Components.Schemas.EmptyObject) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .empty_hyphen_object(try .init(from: decoder)) + self = .EmptyObject(try .init(from: decoder)) return } catch { errors.append(error) @@ -15611,31 +15620,31 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .empty_hyphen_object(value): + case let .EmptyObject(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/commit/author`. - public var author: Components.Schemas.commit.authorPayload? + public var author: Components.Schemas.Commit.AuthorPayload? /// - Remark: Generated from `#/components/schemas/commit/committer`. - @frozen public enum committerPayload: Codable, Hashable, Sendable { + @frozen public enum CommitterPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/committer/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/commit/committer/case2`. - case empty_hyphen_object(Components.Schemas.empty_hyphen_object) + case EmptyObject(Components.Schemas.EmptyObject) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .empty_hyphen_object(try .init(from: decoder)) + self = .EmptyObject(try .init(from: decoder)) return } catch { errors.append(error) @@ -15648,57 +15657,57 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .empty_hyphen_object(value): + case let .EmptyObject(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/commit/committer`. - public var committer: Components.Schemas.commit.committerPayload? - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/sha`. + public var committer: Components.Schemas.Commit.CommitterPayload? + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/url`. + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/html_url`. - public var html_url: Swift.String? - /// Creates a new `parentsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/commit/ParentsPayload/html_url`. + public var htmlUrl: Swift.String? + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - sha: /// - url: - /// - html_url: + /// - htmlUrl: public init( sha: Swift.String, url: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.sha = sha self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case sha case url - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/commit/parents`. - public typealias parentsPayload = [Components.Schemas.commit.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.Commit.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/commit/parents`. - public var parents: Components.Schemas.commit.parentsPayload + public var parents: Components.Schemas.Commit.ParentsPayload /// - Remark: Generated from `#/components/schemas/commit/stats`. - public struct statsPayload: Codable, Hashable, Sendable { + public struct StatsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit/stats/additions`. public var additions: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit/stats/deletions`. public var deletions: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit/stats/total`. public var total: Swift.Int? - /// Creates a new `statsPayload`. + /// Creates a new `StatsPayload`. /// /// - Parameters: /// - additions: @@ -15720,17 +15729,17 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit/stats`. - public var stats: Components.Schemas.commit.statsPayload? + public var stats: Components.Schemas.Commit.StatsPayload? /// - Remark: Generated from `#/components/schemas/commit/files`. - public var files: [Components.Schemas.diff_hyphen_entry]? - /// Creates a new `commit`. + public var files: [Components.Schemas.DiffEntry]? + /// Creates a new `Commit`. /// /// - Parameters: /// - url: /// - sha: - /// - node_id: - /// - html_url: - /// - comments_url: + /// - nodeId: + /// - htmlUrl: + /// - commentsUrl: /// - commit: /// - author: /// - committer: @@ -15740,21 +15749,21 @@ public enum Components { public init( url: Swift.String, sha: Swift.String, - node_id: Swift.String, - html_url: Swift.String, - comments_url: Swift.String, - commit: Components.Schemas.commit.commitPayload, - author: Components.Schemas.commit.authorPayload? = nil, - committer: Components.Schemas.commit.committerPayload? = nil, - parents: Components.Schemas.commit.parentsPayload, - stats: Components.Schemas.commit.statsPayload? = nil, - files: [Components.Schemas.diff_hyphen_entry]? = nil + nodeId: Swift.String, + htmlUrl: Swift.String, + commentsUrl: Swift.String, + commit: Components.Schemas.Commit.CommitPayload, + author: Components.Schemas.Commit.AuthorPayload? = nil, + committer: Components.Schemas.Commit.CommitterPayload? = nil, + parents: Components.Schemas.Commit.ParentsPayload, + stats: Components.Schemas.Commit.StatsPayload? = nil, + files: [Components.Schemas.DiffEntry]? = nil ) { self.url = url self.sha = sha - self.node_id = node_id - self.html_url = html_url - self.comments_url = comments_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl + self.commentsUrl = commentsUrl self.commit = commit self.author = author self.committer = committer @@ -15765,9 +15774,9 @@ public enum Components { public enum CodingKeys: String, CodingKey { case url case sha - case node_id - case html_url - case comments_url + case nodeId = "node_id" + case htmlUrl = "html_url" + case commentsUrl = "comments_url" case commit case author case committer @@ -15779,18 +15788,18 @@ public enum Components { /// Branch With Protection /// /// - Remark: Generated from `#/components/schemas/branch-with-protection`. - public struct branch_hyphen_with_hyphen_protection: Codable, Hashable, Sendable { + public struct BranchWithProtection: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-with-protection/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/branch-with-protection/commit`. - public var commit: Components.Schemas.commit + public var commit: Components.Schemas.Commit /// - Remark: Generated from `#/components/schemas/branch-with-protection/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-with-protection/_links/html`. public var html: Swift.String /// - Remark: Generated from `#/components/schemas/branch-with-protection/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - html: @@ -15808,18 +15817,18 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-with-protection/_links`. - public var _links: Components.Schemas.branch_hyphen_with_hyphen_protection._linksPayload + public var _links: Components.Schemas.BranchWithProtection._LinksPayload /// - Remark: Generated from `#/components/schemas/branch-with-protection/protected`. public var protected: Swift.Bool /// - Remark: Generated from `#/components/schemas/branch-with-protection/protection`. - public var protection: Components.Schemas.branch_hyphen_protection + public var protection: Components.Schemas.BranchProtection /// - Remark: Generated from `#/components/schemas/branch-with-protection/protection_url`. - public var protection_url: Swift.String + public var protectionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/branch-with-protection/pattern`. public var pattern: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-with-protection/required_approving_review_count`. - public var required_approving_review_count: Swift.Int? - /// Creates a new `branch_hyphen_with_hyphen_protection`. + public var requiredApprovingReviewCount: Swift.Int? + /// Creates a new `BranchWithProtection`. /// /// - Parameters: /// - name: @@ -15827,27 +15836,27 @@ public enum Components { /// - _links: /// - protected: /// - protection: - /// - protection_url: + /// - protectionUrl: /// - pattern: - /// - required_approving_review_count: + /// - requiredApprovingReviewCount: public init( name: Swift.String, - commit: Components.Schemas.commit, - _links: Components.Schemas.branch_hyphen_with_hyphen_protection._linksPayload, + commit: Components.Schemas.Commit, + _links: Components.Schemas.BranchWithProtection._LinksPayload, protected: Swift.Bool, - protection: Components.Schemas.branch_hyphen_protection, - protection_url: Swift.String, + protection: Components.Schemas.BranchProtection, + protectionUrl: Swift.String, pattern: Swift.String? = nil, - required_approving_review_count: Swift.Int? = nil + requiredApprovingReviewCount: Swift.Int? = nil ) { self.name = name self.commit = commit self._links = _links self.protected = protected self.protection = protection - self.protection_url = protection_url + self.protectionUrl = protectionUrl self.pattern = pattern - self.required_approving_review_count = required_approving_review_count + self.requiredApprovingReviewCount = requiredApprovingReviewCount } public enum CodingKeys: String, CodingKey { case name @@ -15855,168 +15864,168 @@ public enum Components { case _links case protected case protection - case protection_url + case protectionUrl = "protection_url" case pattern - case required_approving_review_count + case requiredApprovingReviewCount = "required_approving_review_count" } } /// Status Check Policy /// /// - Remark: Generated from `#/components/schemas/status-check-policy`. - public struct status_hyphen_check_hyphen_policy: Codable, Hashable, Sendable { + public struct StatusCheckPolicy: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/status-check-policy/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/status-check-policy/strict`. public var strict: Swift.Bool /// - Remark: Generated from `#/components/schemas/status-check-policy/contexts`. public var contexts: [Swift.String] - /// - Remark: Generated from `#/components/schemas/status-check-policy/checksPayload`. - public struct checksPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/status-check-policy/checksPayload/context`. + /// - Remark: Generated from `#/components/schemas/status-check-policy/ChecksPayload`. + public struct ChecksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/status-check-policy/ChecksPayload/context`. public var context: Swift.String - /// - Remark: Generated from `#/components/schemas/status-check-policy/checksPayload/app_id`. - public var app_id: Swift.Int? - /// Creates a new `checksPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/status-check-policy/ChecksPayload/app_id`. + public var appId: Swift.Int? + /// Creates a new `ChecksPayloadPayload`. /// /// - Parameters: /// - context: - /// - app_id: + /// - appId: public init( context: Swift.String, - app_id: Swift.Int? = nil + appId: Swift.Int? = nil ) { self.context = context - self.app_id = app_id + self.appId = appId } public enum CodingKeys: String, CodingKey { case context - case app_id + case appId = "app_id" } } /// - Remark: Generated from `#/components/schemas/status-check-policy/checks`. - public typealias checksPayload = [Components.Schemas.status_hyphen_check_hyphen_policy.checksPayloadPayload] + public typealias ChecksPayload = [Components.Schemas.StatusCheckPolicy.ChecksPayloadPayload] /// - Remark: Generated from `#/components/schemas/status-check-policy/checks`. - public var checks: Components.Schemas.status_hyphen_check_hyphen_policy.checksPayload + public var checks: Components.Schemas.StatusCheckPolicy.ChecksPayload /// - Remark: Generated from `#/components/schemas/status-check-policy/contexts_url`. - public var contexts_url: Swift.String - /// Creates a new `status_hyphen_check_hyphen_policy`. + public var contextsUrl: Swift.String + /// Creates a new `StatusCheckPolicy`. /// /// - Parameters: /// - url: /// - strict: /// - contexts: /// - checks: - /// - contexts_url: + /// - contextsUrl: public init( url: Swift.String, strict: Swift.Bool, contexts: [Swift.String], - checks: Components.Schemas.status_hyphen_check_hyphen_policy.checksPayload, - contexts_url: Swift.String + checks: Components.Schemas.StatusCheckPolicy.ChecksPayload, + contextsUrl: Swift.String ) { self.url = url self.strict = strict self.contexts = contexts self.checks = checks - self.contexts_url = contexts_url + self.contextsUrl = contextsUrl } public enum CodingKeys: String, CodingKey { case url case strict case contexts case checks - case contexts_url + case contextsUrl = "contexts_url" } } /// Branch protections protect branches /// /// - Remark: Generated from `#/components/schemas/protected-branch`. - public struct protected_hyphen_branch: Codable, Hashable, Sendable { + public struct ProtectedBranch: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_status_checks`. - public var required_status_checks: Components.Schemas.status_hyphen_check_hyphen_policy? + public var requiredStatusChecks: Components.Schemas.StatusCheckPolicy? /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews`. - public struct required_pull_request_reviewsPayload: Codable, Hashable, Sendable { + public struct RequiredPullRequestReviewsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismiss_stale_reviews`. - public var dismiss_stale_reviews: Swift.Bool? + public var dismissStaleReviews: Swift.Bool? /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/require_code_owner_reviews`. - public var require_code_owner_reviews: Swift.Bool? + public var requireCodeOwnerReviews: Swift.Bool? /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/required_approving_review_count`. - public var required_approving_review_count: Swift.Int? + public var requiredApprovingReviewCount: Swift.Int? /// Whether the most recent push must be approved by someone other than the person who pushed it. /// /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/require_last_push_approval`. - public var require_last_push_approval: Swift.Bool? + public var requireLastPushApproval: Swift.Bool? /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions`. - public struct dismissal_restrictionsPayload: Codable, Hashable, Sendable { + public struct DismissalRestrictionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/users_url`. - public var users_url: Swift.String + public var usersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/users`. - public var users: [Components.Schemas.simple_hyphen_user] + public var users: [Components.Schemas.SimpleUser] /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/teams`. - public var teams: [Components.Schemas.team] + public var teams: [Components.Schemas.Team] /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions/apps`. - public var apps: [Components.Schemas.integration]? - /// Creates a new `dismissal_restrictionsPayload`. + public var apps: [Components.Schemas.Integration]? + /// Creates a new `DismissalRestrictionsPayload`. /// /// - Parameters: /// - url: - /// - users_url: - /// - teams_url: + /// - usersUrl: + /// - teamsUrl: /// - users: /// - teams: /// - apps: public init( url: Swift.String, - users_url: Swift.String, - teams_url: Swift.String, - users: [Components.Schemas.simple_hyphen_user], - teams: [Components.Schemas.team], - apps: [Components.Schemas.integration]? = nil + usersUrl: Swift.String, + teamsUrl: Swift.String, + users: [Components.Schemas.SimpleUser], + teams: [Components.Schemas.Team], + apps: [Components.Schemas.Integration]? = nil ) { self.url = url - self.users_url = users_url - self.teams_url = teams_url + self.usersUrl = usersUrl + self.teamsUrl = teamsUrl self.users = users self.teams = teams self.apps = apps } public enum CodingKeys: String, CodingKey { case url - case users_url - case teams_url + case usersUrl = "users_url" + case teamsUrl = "teams_url" case users case teams case apps } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/dismissal_restrictions`. - public var dismissal_restrictions: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload.dismissal_restrictionsPayload? + public var dismissalRestrictions: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload.DismissalRestrictionsPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/bypass_pull_request_allowances`. - public struct bypass_pull_request_allowancesPayload: Codable, Hashable, Sendable { + public struct BypassPullRequestAllowancesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/bypass_pull_request_allowances/users`. - public var users: [Components.Schemas.simple_hyphen_user] + public var users: [Components.Schemas.SimpleUser] /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/bypass_pull_request_allowances/teams`. - public var teams: [Components.Schemas.team] + public var teams: [Components.Schemas.Team] /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/bypass_pull_request_allowances/apps`. - public var apps: [Components.Schemas.integration]? - /// Creates a new `bypass_pull_request_allowancesPayload`. + public var apps: [Components.Schemas.Integration]? + /// Creates a new `BypassPullRequestAllowancesPayload`. /// /// - Parameters: /// - users: /// - teams: /// - apps: public init( - users: [Components.Schemas.simple_hyphen_user], - teams: [Components.Schemas.team], - apps: [Components.Schemas.integration]? = nil + users: [Components.Schemas.SimpleUser], + teams: [Components.Schemas.Team], + apps: [Components.Schemas.Integration]? = nil ) { self.users = users self.teams = teams @@ -16029,53 +16038,53 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews/bypass_pull_request_allowances`. - public var bypass_pull_request_allowances: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload.bypass_pull_request_allowancesPayload? - /// Creates a new `required_pull_request_reviewsPayload`. + public var bypassPullRequestAllowances: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload.BypassPullRequestAllowancesPayload? + /// Creates a new `RequiredPullRequestReviewsPayload`. /// /// - Parameters: /// - url: - /// - dismiss_stale_reviews: - /// - require_code_owner_reviews: - /// - required_approving_review_count: - /// - require_last_push_approval: Whether the most recent push must be approved by someone other than the person who pushed it. - /// - dismissal_restrictions: - /// - bypass_pull_request_allowances: + /// - dismissStaleReviews: + /// - requireCodeOwnerReviews: + /// - requiredApprovingReviewCount: + /// - requireLastPushApproval: Whether the most recent push must be approved by someone other than the person who pushed it. + /// - dismissalRestrictions: + /// - bypassPullRequestAllowances: public init( url: Swift.String, - dismiss_stale_reviews: Swift.Bool? = nil, - require_code_owner_reviews: Swift.Bool? = nil, - required_approving_review_count: Swift.Int? = nil, - require_last_push_approval: Swift.Bool? = nil, - dismissal_restrictions: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload.dismissal_restrictionsPayload? = nil, - bypass_pull_request_allowances: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload.bypass_pull_request_allowancesPayload? = nil + dismissStaleReviews: Swift.Bool? = nil, + requireCodeOwnerReviews: Swift.Bool? = nil, + requiredApprovingReviewCount: Swift.Int? = nil, + requireLastPushApproval: Swift.Bool? = nil, + dismissalRestrictions: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload.DismissalRestrictionsPayload? = nil, + bypassPullRequestAllowances: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload.BypassPullRequestAllowancesPayload? = nil ) { self.url = url - self.dismiss_stale_reviews = dismiss_stale_reviews - self.require_code_owner_reviews = require_code_owner_reviews - self.required_approving_review_count = required_approving_review_count - self.require_last_push_approval = require_last_push_approval - self.dismissal_restrictions = dismissal_restrictions - self.bypass_pull_request_allowances = bypass_pull_request_allowances + self.dismissStaleReviews = dismissStaleReviews + self.requireCodeOwnerReviews = requireCodeOwnerReviews + self.requiredApprovingReviewCount = requiredApprovingReviewCount + self.requireLastPushApproval = requireLastPushApproval + self.dismissalRestrictions = dismissalRestrictions + self.bypassPullRequestAllowances = bypassPullRequestAllowances } public enum CodingKeys: String, CodingKey { case url - case dismiss_stale_reviews - case require_code_owner_reviews - case required_approving_review_count - case require_last_push_approval - case dismissal_restrictions - case bypass_pull_request_allowances + case dismissStaleReviews = "dismiss_stale_reviews" + case requireCodeOwnerReviews = "require_code_owner_reviews" + case requiredApprovingReviewCount = "required_approving_review_count" + case requireLastPushApproval = "require_last_push_approval" + case dismissalRestrictions = "dismissal_restrictions" + case bypassPullRequestAllowances = "bypass_pull_request_allowances" } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_pull_request_reviews`. - public var required_pull_request_reviews: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload? + public var requiredPullRequestReviews: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/required_signatures`. - public struct required_signaturesPayload: Codable, Hashable, Sendable { + public struct RequiredSignaturesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_signatures/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/required_signatures/enabled`. public var enabled: Swift.Bool - /// Creates a new `required_signaturesPayload`. + /// Creates a new `RequiredSignaturesPayload`. /// /// - Parameters: /// - url: @@ -16093,14 +16102,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_signatures`. - public var required_signatures: Components.Schemas.protected_hyphen_branch.required_signaturesPayload? + public var requiredSignatures: Components.Schemas.ProtectedBranch.RequiredSignaturesPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/enforce_admins`. - public struct enforce_adminsPayload: Codable, Hashable, Sendable { + public struct EnforceAdminsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/enforce_admins/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/protected-branch/enforce_admins/enabled`. public var enabled: Swift.Bool - /// Creates a new `enforce_adminsPayload`. + /// Creates a new `EnforceAdminsPayload`. /// /// - Parameters: /// - url: @@ -16118,11 +16127,11 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) - enabled = try container.decode( + self.enabled = try container.decode( Swift.Bool.self, forKey: .enabled ) @@ -16133,12 +16142,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/enforce_admins`. - public var enforce_admins: Components.Schemas.protected_hyphen_branch.enforce_adminsPayload? + public var enforceAdmins: Components.Schemas.ProtectedBranch.EnforceAdminsPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/required_linear_history`. - public struct required_linear_historyPayload: Codable, Hashable, Sendable { + public struct RequiredLinearHistoryPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_linear_history/enabled`. public var enabled: Swift.Bool - /// Creates a new `required_linear_historyPayload`. + /// Creates a new `RequiredLinearHistoryPayload`. /// /// - Parameters: /// - enabled: @@ -16150,7 +16159,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decode( + self.enabled = try container.decode( Swift.Bool.self, forKey: .enabled ) @@ -16160,12 +16169,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_linear_history`. - public var required_linear_history: Components.Schemas.protected_hyphen_branch.required_linear_historyPayload? + public var requiredLinearHistory: Components.Schemas.ProtectedBranch.RequiredLinearHistoryPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/allow_force_pushes`. - public struct allow_force_pushesPayload: Codable, Hashable, Sendable { + public struct AllowForcePushesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/allow_force_pushes/enabled`. public var enabled: Swift.Bool - /// Creates a new `allow_force_pushesPayload`. + /// Creates a new `AllowForcePushesPayload`. /// /// - Parameters: /// - enabled: @@ -16177,7 +16186,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decode( + self.enabled = try container.decode( Swift.Bool.self, forKey: .enabled ) @@ -16187,12 +16196,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/allow_force_pushes`. - public var allow_force_pushes: Components.Schemas.protected_hyphen_branch.allow_force_pushesPayload? + public var allowForcePushes: Components.Schemas.ProtectedBranch.AllowForcePushesPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/allow_deletions`. - public struct allow_deletionsPayload: Codable, Hashable, Sendable { + public struct AllowDeletionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/allow_deletions/enabled`. public var enabled: Swift.Bool - /// Creates a new `allow_deletionsPayload`. + /// Creates a new `AllowDeletionsPayload`. /// /// - Parameters: /// - enabled: @@ -16204,7 +16213,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decode( + self.enabled = try container.decode( Swift.Bool.self, forKey: .enabled ) @@ -16214,14 +16223,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/allow_deletions`. - public var allow_deletions: Components.Schemas.protected_hyphen_branch.allow_deletionsPayload? + public var allowDeletions: Components.Schemas.ProtectedBranch.AllowDeletionsPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/restrictions`. - public var restrictions: Components.Schemas.branch_hyphen_restriction_hyphen_policy? + public var restrictions: Components.Schemas.BranchRestrictionPolicy? /// - Remark: Generated from `#/components/schemas/protected-branch/required_conversation_resolution`. - public struct required_conversation_resolutionPayload: Codable, Hashable, Sendable { + public struct RequiredConversationResolutionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/required_conversation_resolution/enabled`. public var enabled: Swift.Bool? - /// Creates a new `required_conversation_resolutionPayload`. + /// Creates a new `RequiredConversationResolutionPayload`. /// /// - Parameters: /// - enabled: @@ -16233,7 +16242,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decodeIfPresent( + self.enabled = try container.decodeIfPresent( Swift.Bool.self, forKey: .enabled ) @@ -16243,12 +16252,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/required_conversation_resolution`. - public var required_conversation_resolution: Components.Schemas.protected_hyphen_branch.required_conversation_resolutionPayload? + public var requiredConversationResolution: Components.Schemas.ProtectedBranch.RequiredConversationResolutionPayload? /// - Remark: Generated from `#/components/schemas/protected-branch/block_creations`. - public struct block_creationsPayload: Codable, Hashable, Sendable { + public struct BlockCreationsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/block_creations/enabled`. public var enabled: Swift.Bool - /// Creates a new `block_creationsPayload`. + /// Creates a new `BlockCreationsPayload`. /// /// - Parameters: /// - enabled: @@ -16260,7 +16269,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decode( + self.enabled = try container.decode( Swift.Bool.self, forKey: .enabled ) @@ -16270,14 +16279,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/protected-branch/block_creations`. - public var block_creations: Components.Schemas.protected_hyphen_branch.block_creationsPayload? + public var blockCreations: Components.Schemas.ProtectedBranch.BlockCreationsPayload? /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// /// - Remark: Generated from `#/components/schemas/protected-branch/lock_branch`. - public struct lock_branchPayload: Codable, Hashable, Sendable { + public struct LockBranchPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/lock_branch/enabled`. public var enabled: Swift.Bool? - /// Creates a new `lock_branchPayload`. + /// Creates a new `LockBranchPayload`. /// /// - Parameters: /// - enabled: @@ -16289,7 +16298,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decodeIfPresent( + self.enabled = try container.decodeIfPresent( Swift.Bool.self, forKey: .enabled ) @@ -16301,14 +16310,14 @@ public enum Components { /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. /// /// - Remark: Generated from `#/components/schemas/protected-branch/lock_branch`. - public var lock_branch: Components.Schemas.protected_hyphen_branch.lock_branchPayload? + public var lockBranch: Components.Schemas.ProtectedBranch.LockBranchPayload? /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// /// - Remark: Generated from `#/components/schemas/protected-branch/allow_fork_syncing`. - public struct allow_fork_syncingPayload: Codable, Hashable, Sendable { + public struct AllowForkSyncingPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/protected-branch/allow_fork_syncing/enabled`. public var enabled: Swift.Bool? - /// Creates a new `allow_fork_syncingPayload`. + /// Creates a new `AllowForkSyncingPayload`. /// /// - Parameters: /// - enabled: @@ -16320,7 +16329,7 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - enabled = try container.decodeIfPresent( + self.enabled = try container.decodeIfPresent( Swift.Bool.self, forKey: .enabled ) @@ -16332,103 +16341,103 @@ public enum Components { /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. /// /// - Remark: Generated from `#/components/schemas/protected-branch/allow_fork_syncing`. - public var allow_fork_syncing: Components.Schemas.protected_hyphen_branch.allow_fork_syncingPayload? - /// Creates a new `protected_hyphen_branch`. + public var allowForkSyncing: Components.Schemas.ProtectedBranch.AllowForkSyncingPayload? + /// Creates a new `ProtectedBranch`. /// /// - Parameters: /// - url: - /// - required_status_checks: - /// - required_pull_request_reviews: - /// - required_signatures: - /// - enforce_admins: - /// - required_linear_history: - /// - allow_force_pushes: - /// - allow_deletions: + /// - requiredStatusChecks: + /// - requiredPullRequestReviews: + /// - requiredSignatures: + /// - enforceAdmins: + /// - requiredLinearHistory: + /// - allowForcePushes: + /// - allowDeletions: /// - restrictions: - /// - required_conversation_resolution: - /// - block_creations: - /// - lock_branch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. - /// - allow_fork_syncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. + /// - requiredConversationResolution: + /// - blockCreations: + /// - lockBranch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. + /// - allowForkSyncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. public init( url: Swift.String, - required_status_checks: Components.Schemas.status_hyphen_check_hyphen_policy? = nil, - required_pull_request_reviews: Components.Schemas.protected_hyphen_branch.required_pull_request_reviewsPayload? = nil, - required_signatures: Components.Schemas.protected_hyphen_branch.required_signaturesPayload? = nil, - enforce_admins: Components.Schemas.protected_hyphen_branch.enforce_adminsPayload? = nil, - required_linear_history: Components.Schemas.protected_hyphen_branch.required_linear_historyPayload? = nil, - allow_force_pushes: Components.Schemas.protected_hyphen_branch.allow_force_pushesPayload? = nil, - allow_deletions: Components.Schemas.protected_hyphen_branch.allow_deletionsPayload? = nil, - restrictions: Components.Schemas.branch_hyphen_restriction_hyphen_policy? = nil, - required_conversation_resolution: Components.Schemas.protected_hyphen_branch.required_conversation_resolutionPayload? = nil, - block_creations: Components.Schemas.protected_hyphen_branch.block_creationsPayload? = nil, - lock_branch: Components.Schemas.protected_hyphen_branch.lock_branchPayload? = nil, - allow_fork_syncing: Components.Schemas.protected_hyphen_branch.allow_fork_syncingPayload? = nil + requiredStatusChecks: Components.Schemas.StatusCheckPolicy? = nil, + requiredPullRequestReviews: Components.Schemas.ProtectedBranch.RequiredPullRequestReviewsPayload? = nil, + requiredSignatures: Components.Schemas.ProtectedBranch.RequiredSignaturesPayload? = nil, + enforceAdmins: Components.Schemas.ProtectedBranch.EnforceAdminsPayload? = nil, + requiredLinearHistory: Components.Schemas.ProtectedBranch.RequiredLinearHistoryPayload? = nil, + allowForcePushes: Components.Schemas.ProtectedBranch.AllowForcePushesPayload? = nil, + allowDeletions: Components.Schemas.ProtectedBranch.AllowDeletionsPayload? = nil, + restrictions: Components.Schemas.BranchRestrictionPolicy? = nil, + requiredConversationResolution: Components.Schemas.ProtectedBranch.RequiredConversationResolutionPayload? = nil, + blockCreations: Components.Schemas.ProtectedBranch.BlockCreationsPayload? = nil, + lockBranch: Components.Schemas.ProtectedBranch.LockBranchPayload? = nil, + allowForkSyncing: Components.Schemas.ProtectedBranch.AllowForkSyncingPayload? = nil ) { self.url = url - self.required_status_checks = required_status_checks - self.required_pull_request_reviews = required_pull_request_reviews - self.required_signatures = required_signatures - self.enforce_admins = enforce_admins - self.required_linear_history = required_linear_history - self.allow_force_pushes = allow_force_pushes - self.allow_deletions = allow_deletions + self.requiredStatusChecks = requiredStatusChecks + self.requiredPullRequestReviews = requiredPullRequestReviews + self.requiredSignatures = requiredSignatures + self.enforceAdmins = enforceAdmins + self.requiredLinearHistory = requiredLinearHistory + self.allowForcePushes = allowForcePushes + self.allowDeletions = allowDeletions self.restrictions = restrictions - self.required_conversation_resolution = required_conversation_resolution - self.block_creations = block_creations - self.lock_branch = lock_branch - self.allow_fork_syncing = allow_fork_syncing + self.requiredConversationResolution = requiredConversationResolution + self.blockCreations = blockCreations + self.lockBranch = lockBranch + self.allowForkSyncing = allowForkSyncing } public enum CodingKeys: String, CodingKey { case url - case required_status_checks - case required_pull_request_reviews - case required_signatures - case enforce_admins - case required_linear_history - case allow_force_pushes - case allow_deletions + case requiredStatusChecks = "required_status_checks" + case requiredPullRequestReviews = "required_pull_request_reviews" + case requiredSignatures = "required_signatures" + case enforceAdmins = "enforce_admins" + case requiredLinearHistory = "required_linear_history" + case allowForcePushes = "allow_force_pushes" + case allowDeletions = "allow_deletions" case restrictions - case required_conversation_resolution - case block_creations - case lock_branch - case allow_fork_syncing + case requiredConversationResolution = "required_conversation_resolution" + case blockCreations = "block_creations" + case lockBranch = "lock_branch" + case allowForkSyncing = "allow_fork_syncing" } } /// A list of errors found in a repo's CODEOWNERS file /// /// - Remark: Generated from `#/components/schemas/codeowners-errors`. - public struct codeowners_hyphen_errors: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { + public struct CodeownersErrors: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { /// The line number where this errors occurs. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/line`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/line`. public var line: Swift.Int /// The column number where this errors occurs. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/column`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/column`. public var column: Swift.Int /// The contents of the line where the error occurs. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/source`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/source`. public var source: Swift.String? /// The type of error. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/kind`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/kind`. public var kind: Swift.String /// Suggested action to fix the error. This will usually be `null`, but is provided for some common errors. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/suggestion`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/suggestion`. public var suggestion: Swift.String? /// A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting). /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/message`. public var message: Swift.String /// The path of the file where the error occured. /// - /// - Remark: Generated from `#/components/schemas/codeowners-errors/errorsPayload/path`. + /// - Remark: Generated from `#/components/schemas/codeowners-errors/ErrorsPayload/path`. public var path: Swift.String - /// Creates a new `errorsPayloadPayload`. + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - line: The line number where this errors occurs. @@ -16466,14 +16475,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/codeowners-errors/errors`. - public typealias errorsPayload = [Components.Schemas.codeowners_hyphen_errors.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.CodeownersErrors.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/codeowners-errors/errors`. - public var errors: Components.Schemas.codeowners_hyphen_errors.errorsPayload - /// Creates a new `codeowners_hyphen_errors`. + public var errors: Components.Schemas.CodeownersErrors.ErrorsPayload + /// Creates a new `CodeownersErrors`. /// /// - Parameters: /// - errors: - public init(errors: Components.Schemas.codeowners_hyphen_errors.errorsPayload) { + public init(errors: Components.Schemas.CodeownersErrors.ErrorsPayload) { self.errors = errors } public enum CodingKeys: String, CodingKey { @@ -16483,7 +16492,7 @@ public enum Components { /// Collaborator /// /// - Remark: Generated from `#/components/schemas/collaborator`. - public struct collaborator: Codable, Hashable, Sendable { + public struct Collaborator: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/collaborator/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/id`. @@ -16493,39 +16502,39 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/collaborator/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/collaborator/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/collaborator/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/collaborator/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/collaborator/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/collaborator/permissions/triage`. @@ -16536,7 +16545,7 @@ public enum Components { public var maintain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/collaborator/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -16566,130 +16575,130 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/collaborator/permissions`. - public var permissions: Components.Schemas.collaborator.permissionsPayload? + public var permissions: Components.Schemas.Collaborator.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/collaborator/role_name`. - public var role_name: Swift.String + public var roleName: Swift.String /// - Remark: Generated from `#/components/schemas/collaborator/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `collaborator`. + public var userViewType: Swift.String? + /// Creates a new `Collaborator`. /// /// - Parameters: /// - login: /// - id: /// - email: /// - name: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - permissions: - /// - role_name: - /// - user_view_type: + /// - roleName: + /// - userViewType: public init( login: Swift.String, id: Swift.Int64, email: Swift.String? = nil, name: Swift.String? = nil, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - permissions: Components.Schemas.collaborator.permissionsPayload? = nil, - role_name: Swift.String, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + permissions: Components.Schemas.Collaborator.PermissionsPayload? = nil, + roleName: Swift.String, + userViewType: Swift.String? = nil ) { self.login = login self.id = id self.email = email self.name = name - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.permissions = permissions - self.role_name = role_name - self.user_view_type = user_view_type + self.roleName = roleName + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id case email case name - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case permissions - case role_name - case user_view_type + case roleName = "role_name" + case userViewType = "user_view_type" } } /// Repository invitations let you manage who you collaborate with. /// /// - Remark: Generated from `#/components/schemas/repository-invitation`. - public struct repository_hyphen_invitation: Codable, Hashable, Sendable { + public struct RepositoryInvitation: Codable, Hashable, Sendable { /// Unique identifier of the repository invitation. /// /// - Remark: Generated from `#/components/schemas/repository-invitation/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository-invitation/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/repository-invitation/invitee`. - public var invitee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var invitee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/repository-invitation/inviter`. - public var inviter: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var inviter: Components.Schemas.NullableSimpleUser? /// The permission associated with the invitation. /// /// - Remark: Generated from `#/components/schemas/repository-invitation/permissions`. - @frozen public enum permissionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -16699,9 +16708,9 @@ public enum Components { /// The permission associated with the invitation. /// /// - Remark: Generated from `#/components/schemas/repository-invitation/permissions`. - public var permissions: Components.Schemas.repository_hyphen_invitation.permissionsPayload + public var permissions: Components.Schemas.RepositoryInvitation.PermissionsPayload /// - Remark: Generated from `#/components/schemas/repository-invitation/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// Whether or not the invitation has expired /// /// - Remark: Generated from `#/components/schemas/repository-invitation/expired`. @@ -16711,10 +16720,10 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository-invitation/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository-invitation/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository-invitation/node_id`. - public var node_id: Swift.String - /// Creates a new `repository_hyphen_invitation`. + public var nodeId: Swift.String + /// Creates a new `RepositoryInvitation`. /// /// - Parameters: /// - id: Unique identifier of the repository invitation. @@ -16722,33 +16731,33 @@ public enum Components { /// - invitee: /// - inviter: /// - permissions: The permission associated with the invitation. - /// - created_at: + /// - createdAt: /// - expired: Whether or not the invitation has expired /// - url: URL for the repository invitation - /// - html_url: - /// - node_id: + /// - htmlUrl: + /// - nodeId: public init( id: Swift.Int64, - repository: Components.Schemas.minimal_hyphen_repository, - invitee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - inviter: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - permissions: Components.Schemas.repository_hyphen_invitation.permissionsPayload, - created_at: Foundation.Date, + repository: Components.Schemas.MinimalRepository, + invitee: Components.Schemas.NullableSimpleUser? = nil, + inviter: Components.Schemas.NullableSimpleUser? = nil, + permissions: Components.Schemas.RepositoryInvitation.PermissionsPayload, + createdAt: Foundation.Date, expired: Swift.Bool? = nil, url: Swift.String, - html_url: Swift.String, - node_id: Swift.String + htmlUrl: Swift.String, + nodeId: Swift.String ) { self.id = id self.repository = repository self.invitee = invitee self.inviter = inviter self.permissions = permissions - self.created_at = created_at + self.createdAt = createdAt self.expired = expired self.url = url - self.html_url = html_url - self.node_id = node_id + self.htmlUrl = htmlUrl + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case id @@ -16756,17 +16765,17 @@ public enum Components { case invitee case inviter case permissions - case created_at + case createdAt = "created_at" case expired case url - case html_url - case node_id + case htmlUrl = "html_url" + case nodeId = "node_id" } } /// Collaborator /// /// - Remark: Generated from `#/components/schemas/nullable-collaborator`. - public struct nullable_hyphen_collaborator: Codable, Hashable, Sendable { + public struct NullableCollaborator: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-collaborator/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/id`. @@ -16776,39 +16785,39 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-collaborator/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-collaborator/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-collaborator/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-collaborator/permissions/triage`. @@ -16819,7 +16828,7 @@ public enum Components { public var maintain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -16849,155 +16858,155 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/nullable-collaborator/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_collaborator.permissionsPayload? + public var permissions: Components.Schemas.NullableCollaborator.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/role_name`. - public var role_name: Swift.String + public var roleName: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-collaborator/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_collaborator`. + public var userViewType: Swift.String? + /// Creates a new `NullableCollaborator`. /// /// - Parameters: /// - login: /// - id: /// - email: /// - name: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - permissions: - /// - role_name: - /// - user_view_type: + /// - roleName: + /// - userViewType: public init( login: Swift.String, id: Swift.Int64, email: Swift.String? = nil, name: Swift.String? = nil, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - permissions: Components.Schemas.nullable_hyphen_collaborator.permissionsPayload? = nil, - role_name: Swift.String, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + permissions: Components.Schemas.NullableCollaborator.PermissionsPayload? = nil, + roleName: Swift.String, + userViewType: Swift.String? = nil ) { self.login = login self.id = id self.email = email self.name = name - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.permissions = permissions - self.role_name = role_name - self.user_view_type = user_view_type + self.roleName = roleName + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id case email case name - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case permissions - case role_name - case user_view_type + case roleName = "role_name" + case userViewType = "user_view_type" } } /// Repository Collaborator Permission /// /// - Remark: Generated from `#/components/schemas/repository-collaborator-permission`. - public struct repository_hyphen_collaborator_hyphen_permission: Codable, Hashable, Sendable { + public struct RepositoryCollaboratorPermission: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-collaborator-permission/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/repository-collaborator-permission/role_name`. - public var role_name: Swift.String + public var roleName: Swift.String /// - Remark: Generated from `#/components/schemas/repository-collaborator-permission/user`. - public var user: Components.Schemas.nullable_hyphen_collaborator? - /// Creates a new `repository_hyphen_collaborator_hyphen_permission`. + public var user: Components.Schemas.NullableCollaborator? + /// Creates a new `RepositoryCollaboratorPermission`. /// /// - Parameters: /// - permission: - /// - role_name: + /// - roleName: /// - user: public init( permission: Swift.String, - role_name: Swift.String, - user: Components.Schemas.nullable_hyphen_collaborator? = nil + roleName: Swift.String, + user: Components.Schemas.NullableCollaborator? = nil ) { self.permission = permission - self.role_name = role_name + self.roleName = roleName self.user = user } public enum CodingKeys: String, CodingKey { case permission - case role_name + case roleName = "role_name" case user } } /// Commit Comment /// /// - Remark: Generated from `#/components/schemas/commit-comment`. - public struct commit_hyphen_comment: Codable, Hashable, Sendable { + public struct CommitComment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/path`. @@ -17007,95 +17016,95 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/commit-comment/line`. public var line: Swift.Int? /// - Remark: Generated from `#/components/schemas/commit-comment/commit_id`. - public var commit_id: Swift.String + public var commitId: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comment/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/commit-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/commit-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/commit-comment/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/commit-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `commit_hyphen_comment`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `CommitComment`. /// /// - Parameters: - /// - html_url: + /// - htmlUrl: /// - url: /// - id: - /// - node_id: + /// - nodeId: /// - body: /// - path: /// - position: /// - line: - /// - commit_id: + /// - commitId: /// - user: - /// - created_at: - /// - updated_at: - /// - author_association: + /// - createdAt: + /// - updatedAt: + /// - authorAssociation: /// - reactions: public init( - html_url: Swift.String, + htmlUrl: Swift.String, url: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, body: Swift.String, path: Swift.String? = nil, position: Swift.Int? = nil, line: Swift.Int? = nil, - commit_id: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - author_association: Components.Schemas.author_hyphen_association, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil - ) { - self.html_url = html_url + commitId: Swift.String, + user: Components.Schemas.NullableSimpleUser? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + authorAssociation: Components.Schemas.AuthorAssociation, + reactions: Components.Schemas.ReactionRollup? = nil + ) { + self.htmlUrl = htmlUrl self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.body = body self.path = path self.position = position self.line = line - self.commit_id = commit_id + self.commitId = commitId self.user = user - self.created_at = created_at - self.updated_at = updated_at - self.author_association = author_association + self.createdAt = createdAt + self.updatedAt = updatedAt + self.authorAssociation = authorAssociation self.reactions = reactions } public enum CodingKeys: String, CodingKey { - case html_url + case htmlUrl = "html_url" case url case id - case node_id + case nodeId = "node_id" case body case path case position case line - case commit_id + case commitId = "commit_id" case user - case created_at - case updated_at - case author_association + case createdAt = "created_at" + case updatedAt = "updated_at" + case authorAssociation = "author_association" case reactions } } /// Branch Short /// /// - Remark: Generated from `#/components/schemas/branch-short`. - public struct branch_hyphen_short: Codable, Hashable, Sendable { + public struct BranchShort: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-short/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/branch-short/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/branch-short/commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/branch-short/commit/url`. public var url: Swift.String - /// Creates a new `commitPayload`. + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - sha: @@ -17113,10 +17122,10 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/branch-short/commit`. - public var commit: Components.Schemas.branch_hyphen_short.commitPayload + public var commit: Components.Schemas.BranchShort.CommitPayload /// - Remark: Generated from `#/components/schemas/branch-short/protected`. public var protected: Swift.Bool - /// Creates a new `branch_hyphen_short`. + /// Creates a new `BranchShort`. /// /// - Parameters: /// - name: @@ -17124,7 +17133,7 @@ public enum Components { /// - protected: public init( name: Swift.String, - commit: Components.Schemas.branch_hyphen_short.commitPayload, + commit: Components.Schemas.BranchShort.CommitPayload, protected: Swift.Bool ) { self.name = name @@ -17140,10 +17149,10 @@ public enum Components { /// Hypermedia Link /// /// - Remark: Generated from `#/components/schemas/link`. - public struct link: Codable, Hashable, Sendable { + public struct Link: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/link/href`. public var href: Swift.String - /// Creates a new `link`. + /// Creates a new `Link`. /// /// - Parameters: /// - href: @@ -17157,13 +17166,13 @@ public enum Components { /// The status of auto merging a pull request. /// /// - Remark: Generated from `#/components/schemas/auto-merge`. - public struct auto_hyphen_merge: Codable, Hashable, Sendable { + public struct AutoMerge: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/auto-merge/enabled_by`. - public var enabled_by: Components.Schemas.simple_hyphen_user + public var enabledBy: Components.Schemas.SimpleUser /// The merge method to use. /// /// - Remark: Generated from `#/components/schemas/auto-merge/merge_method`. - @frozen public enum merge_methodPayload: String, Codable, Hashable, Sendable { + @frozen public enum MergeMethodPayload: String, Codable, Hashable, Sendable, CaseIterable { case merge = "merge" case squash = "squash" case rebase = "rebase" @@ -17171,68 +17180,68 @@ public enum Components { /// The merge method to use. /// /// - Remark: Generated from `#/components/schemas/auto-merge/merge_method`. - public var merge_method: Components.Schemas.auto_hyphen_merge.merge_methodPayload + public var mergeMethod: Components.Schemas.AutoMerge.MergeMethodPayload /// Title for the merge commit message. /// /// - Remark: Generated from `#/components/schemas/auto-merge/commit_title`. - public var commit_title: Swift.String + public var commitTitle: Swift.String /// Commit message for the merge commit. /// /// - Remark: Generated from `#/components/schemas/auto-merge/commit_message`. - public var commit_message: Swift.String - /// Creates a new `auto_hyphen_merge`. + public var commitMessage: Swift.String + /// Creates a new `AutoMerge`. /// /// - Parameters: - /// - enabled_by: - /// - merge_method: The merge method to use. - /// - commit_title: Title for the merge commit message. - /// - commit_message: Commit message for the merge commit. + /// - enabledBy: + /// - mergeMethod: The merge method to use. + /// - commitTitle: Title for the merge commit message. + /// - commitMessage: Commit message for the merge commit. public init( - enabled_by: Components.Schemas.simple_hyphen_user, - merge_method: Components.Schemas.auto_hyphen_merge.merge_methodPayload, - commit_title: Swift.String, - commit_message: Swift.String + enabledBy: Components.Schemas.SimpleUser, + mergeMethod: Components.Schemas.AutoMerge.MergeMethodPayload, + commitTitle: Swift.String, + commitMessage: Swift.String ) { - self.enabled_by = enabled_by - self.merge_method = merge_method - self.commit_title = commit_title - self.commit_message = commit_message + self.enabledBy = enabledBy + self.mergeMethod = mergeMethod + self.commitTitle = commitTitle + self.commitMessage = commitMessage } public enum CodingKeys: String, CodingKey { - case enabled_by - case merge_method - case commit_title - case commit_message + case enabledBy = "enabled_by" + case mergeMethod = "merge_method" + case commitTitle = "commit_title" + case commitMessage = "commit_message" } } /// Pull Request Simple /// /// - Remark: Generated from `#/components/schemas/pull-request-simple`. - public struct pull_hyphen_request_hyphen_simple: Codable, Hashable, Sendable { + public struct PullRequestSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/pull-request-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/diff_url`. - public var diff_url: Swift.String + public var diffUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/patch_url`. - public var patch_url: Swift.String + public var patchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/issue_url`. - public var issue_url: Swift.String + public var issueUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/review_comments_url`. - public var review_comments_url: Swift.String + public var reviewCommentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/review_comment_url`. - public var review_comment_url: Swift.String + public var reviewCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/number`. public var number: Swift.Int /// - Remark: Generated from `#/components/schemas/pull-request-simple/state`. @@ -17242,30 +17251,30 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pull-request-simple/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var user: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request-simple/body`. public var body: Swift.String? - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/id`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/id`. public var id: Swift.Int64 - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/node_id`. - public var node_id: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/url`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/node_id`. + public var nodeId: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/description`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/description`. public var description: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/color`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/color`. public var color: Swift.String - /// - Remark: Generated from `#/components/schemas/pull-request-simple/labelsPayload/default`. + /// - Remark: Generated from `#/components/schemas/pull-request-simple/LabelsPayload/default`. public var _default: Swift.Bool - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - description: @@ -17273,7 +17282,7 @@ public enum Components { /// - _default: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, name: Swift.String, description: Swift.String, @@ -17281,7 +17290,7 @@ public enum Components { _default: Swift.Bool ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.description = description @@ -17290,7 +17299,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case description @@ -17299,44 +17308,44 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/labels`. - public typealias labelsPayload = [Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.PullRequestSimple.LabelsPayloadPayload] /// - Remark: Generated from `#/components/schemas/pull-request-simple/labels`. - public var labels: Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayload + public var labels: Components.Schemas.PullRequestSimple.LabelsPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/pull-request-simple/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-simple/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-simple/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/pull-request-simple/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request-simple/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/pull-request-simple/merge_commit_sha`. - public var merge_commit_sha: Swift.String? + public var mergeCommitSha: Swift.String? /// - Remark: Generated from `#/components/schemas/pull-request-simple/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/pull-request-simple/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/requested_reviewers`. - public var requested_reviewers: [Components.Schemas.simple_hyphen_user]? + public var requestedReviewers: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/requested_teams`. - public var requested_teams: [Components.Schemas.team]? + public var requestedTeams: [Components.Schemas.Team]? /// - Remark: Generated from `#/components/schemas/pull-request-simple/head`. - public struct headPayload: Codable, Hashable, Sendable { + public struct HeadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/head/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `headPayload`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `HeadPayload`. /// /// - Parameters: /// - label: @@ -17347,9 +17356,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + user: Components.Schemas.NullableSimpleUser? = nil ) { self.label = label self.ref = ref @@ -17366,20 +17375,20 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/head`. - public var head: Components.Schemas.pull_hyphen_request_hyphen_simple.headPayload + public var head: Components.Schemas.PullRequestSimple.HeadPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/base`. - public struct basePayload: Codable, Hashable, Sendable { + public struct BasePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/label`. public var label: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/ref`. public var ref: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/repo`. - public var repo: Components.Schemas.repository + public var repo: Components.Schemas.Repository /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request-simple/base/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `basePayload`. + public var user: Components.Schemas.NullableSimpleUser? + /// Creates a new `BasePayload`. /// /// - Parameters: /// - label: @@ -17390,9 +17399,9 @@ public enum Components { public init( label: Swift.String, ref: Swift.String, - repo: Components.Schemas.repository, + repo: Components.Schemas.Repository, sha: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + user: Components.Schemas.NullableSimpleUser? = nil ) { self.label = label self.ref = ref @@ -17409,26 +17418,26 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/base`. - public var base: Components.Schemas.pull_hyphen_request_hyphen_simple.basePayload + public var base: Components.Schemas.PullRequestSimple.BasePayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/comments`. - public var comments: Components.Schemas.link + public var comments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/commits`. - public var commits: Components.Schemas.link + public var commits: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/statuses`. - public var statuses: Components.Schemas.link + public var statuses: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/html`. - public var html: Components.Schemas.link + public var html: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/issue`. - public var issue: Components.Schemas.link + public var issue: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/review_comments`. - public var review_comments: Components.Schemas.link + public var reviewComments: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/review_comment`. - public var review_comment: Components.Schemas.link + public var reviewComment: Components.Schemas.Link /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links/self`. - public var _self: Components.Schemas.link - /// Creates a new `_linksPayload`. + public var _self: Components.Schemas.Link + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - comments: @@ -17436,26 +17445,26 @@ public enum Components { /// - statuses: /// - html: /// - issue: - /// - review_comments: - /// - review_comment: + /// - reviewComments: + /// - reviewComment: /// - _self: public init( - comments: Components.Schemas.link, - commits: Components.Schemas.link, - statuses: Components.Schemas.link, - html: Components.Schemas.link, - issue: Components.Schemas.link, - review_comments: Components.Schemas.link, - review_comment: Components.Schemas.link, - _self: Components.Schemas.link + comments: Components.Schemas.Link, + commits: Components.Schemas.Link, + statuses: Components.Schemas.Link, + html: Components.Schemas.Link, + issue: Components.Schemas.Link, + reviewComments: Components.Schemas.Link, + reviewComment: Components.Schemas.Link, + _self: Components.Schemas.Link ) { self.comments = comments self.commits = commits self.statuses = statuses self.html = html self.issue = issue - self.review_comments = review_comments - self.review_comment = review_comment + self.reviewComments = reviewComments + self.reviewComment = reviewComment self._self = _self } public enum CodingKeys: String, CodingKey { @@ -17464,36 +17473,36 @@ public enum Components { case statuses case html case issue - case review_comments - case review_comment + case reviewComments = "review_comments" + case reviewComment = "review_comment" case _self = "self" } } /// - Remark: Generated from `#/components/schemas/pull-request-simple/_links`. - public var _links: Components.Schemas.pull_hyphen_request_hyphen_simple._linksPayload + public var _links: Components.Schemas.PullRequestSimple._LinksPayload /// - Remark: Generated from `#/components/schemas/pull-request-simple/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/pull-request-simple/auto_merge`. - public var auto_merge: Components.Schemas.auto_hyphen_merge? + public var autoMerge: Components.Schemas.AutoMerge? /// Indicates whether or not the pull request is a draft. /// /// - Remark: Generated from `#/components/schemas/pull-request-simple/draft`. public var draft: Swift.Bool? - /// Creates a new `pull_hyphen_request_hyphen_simple`. + /// Creates a new `PullRequestSimple`. /// /// - Parameters: /// - url: /// - id: - /// - node_id: - /// - html_url: - /// - diff_url: - /// - patch_url: - /// - issue_url: - /// - commits_url: - /// - review_comments_url: - /// - review_comment_url: - /// - comments_url: - /// - statuses_url: + /// - nodeId: + /// - htmlUrl: + /// - diffUrl: + /// - patchUrl: + /// - issueUrl: + /// - commitsUrl: + /// - reviewCommentsUrl: + /// - reviewCommentUrl: + /// - commentsUrl: + /// - statusesUrl: /// - number: /// - state: /// - locked: @@ -17502,72 +17511,72 @@ public enum Components { /// - body: /// - labels: /// - milestone: - /// - active_lock_reason: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - merged_at: - /// - merge_commit_sha: + /// - activeLockReason: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - mergedAt: + /// - mergeCommitSha: /// - assignee: /// - assignees: - /// - requested_reviewers: - /// - requested_teams: + /// - requestedReviewers: + /// - requestedTeams: /// - head: /// - base: /// - _links: - /// - author_association: - /// - auto_merge: + /// - authorAssociation: + /// - autoMerge: /// - draft: Indicates whether or not the pull request is a draft. public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, - html_url: Swift.String, - diff_url: Swift.String, - patch_url: Swift.String, - issue_url: Swift.String, - commits_url: Swift.String, - review_comments_url: Swift.String, - review_comment_url: Swift.String, - comments_url: Swift.String, - statuses_url: Swift.String, + nodeId: Swift.String, + htmlUrl: Swift.String, + diffUrl: Swift.String, + patchUrl: Swift.String, + issueUrl: Swift.String, + commitsUrl: Swift.String, + reviewCommentsUrl: Swift.String, + reviewCommentUrl: Swift.String, + commentsUrl: Swift.String, + statusesUrl: Swift.String, number: Swift.Int, state: Swift.String, locked: Swift.Bool, title: Swift.String, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String? = nil, - labels: Components.Schemas.pull_hyphen_request_hyphen_simple.labelsPayload, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, - active_lock_reason: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - merged_at: Foundation.Date? = nil, - merge_commit_sha: Swift.String? = nil, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - requested_reviewers: [Components.Schemas.simple_hyphen_user]? = nil, - requested_teams: [Components.Schemas.team]? = nil, - head: Components.Schemas.pull_hyphen_request_hyphen_simple.headPayload, - base: Components.Schemas.pull_hyphen_request_hyphen_simple.basePayload, - _links: Components.Schemas.pull_hyphen_request_hyphen_simple._linksPayload, - author_association: Components.Schemas.author_hyphen_association, - auto_merge: Components.Schemas.auto_hyphen_merge? = nil, + labels: Components.Schemas.PullRequestSimple.LabelsPayload, + milestone: Components.Schemas.NullableMilestone? = nil, + activeLockReason: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + mergedAt: Foundation.Date? = nil, + mergeCommitSha: Swift.String? = nil, + assignee: Components.Schemas.NullableSimpleUser? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + requestedReviewers: [Components.Schemas.SimpleUser]? = nil, + requestedTeams: [Components.Schemas.Team]? = nil, + head: Components.Schemas.PullRequestSimple.HeadPayload, + base: Components.Schemas.PullRequestSimple.BasePayload, + _links: Components.Schemas.PullRequestSimple._LinksPayload, + authorAssociation: Components.Schemas.AuthorAssociation, + autoMerge: Components.Schemas.AutoMerge? = nil, draft: Swift.Bool? = nil ) { self.url = url self.id = id - self.node_id = node_id - self.html_url = html_url - self.diff_url = diff_url - self.patch_url = patch_url - self.issue_url = issue_url - self.commits_url = commits_url - self.review_comments_url = review_comments_url - self.review_comment_url = review_comment_url - self.comments_url = comments_url - self.statuses_url = statuses_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl + self.diffUrl = diffUrl + self.patchUrl = patchUrl + self.issueUrl = issueUrl + self.commitsUrl = commitsUrl + self.reviewCommentsUrl = reviewCommentsUrl + self.reviewCommentUrl = reviewCommentUrl + self.commentsUrl = commentsUrl + self.statusesUrl = statusesUrl self.number = number self.state = state self.locked = locked @@ -17576,36 +17585,36 @@ public enum Components { self.body = body self.labels = labels self.milestone = milestone - self.active_lock_reason = active_lock_reason - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.merged_at = merged_at - self.merge_commit_sha = merge_commit_sha + self.activeLockReason = activeLockReason + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.mergedAt = mergedAt + self.mergeCommitSha = mergeCommitSha self.assignee = assignee self.assignees = assignees - self.requested_reviewers = requested_reviewers - self.requested_teams = requested_teams + self.requestedReviewers = requestedReviewers + self.requestedTeams = requestedTeams self.head = head self.base = base self._links = _links - self.author_association = author_association - self.auto_merge = auto_merge + self.authorAssociation = authorAssociation + self.autoMerge = autoMerge self.draft = draft } public enum CodingKeys: String, CodingKey { case url case id - case node_id - case html_url - case diff_url - case patch_url - case issue_url - case commits_url - case review_comments_url - case review_comment_url - case comments_url - case statuses_url + case nodeId = "node_id" + case htmlUrl = "html_url" + case diffUrl = "diff_url" + case patchUrl = "patch_url" + case issueUrl = "issue_url" + case commitsUrl = "commits_url" + case reviewCommentsUrl = "review_comments_url" + case reviewCommentUrl = "review_comment_url" + case commentsUrl = "comments_url" + case statusesUrl = "statuses_url" case number case state case locked @@ -17614,239 +17623,239 @@ public enum Components { case body case labels case milestone - case active_lock_reason - case created_at - case updated_at - case closed_at - case merged_at - case merge_commit_sha + case activeLockReason = "active_lock_reason" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case mergedAt = "merged_at" + case mergeCommitSha = "merge_commit_sha" case assignee case assignees - case requested_reviewers - case requested_teams + case requestedReviewers = "requested_reviewers" + case requestedTeams = "requested_teams" case head case base case _links - case author_association - case auto_merge + case authorAssociation = "author_association" + case autoMerge = "auto_merge" case draft } } /// - Remark: Generated from `#/components/schemas/simple-commit-status`. - public struct simple_hyphen_commit_hyphen_status: Codable, Hashable, Sendable { + public struct SimpleCommitStatus: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-commit-status/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-commit-status/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/simple-commit-status/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-commit-status/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/simple-commit-status/context`. public var context: Swift.String /// - Remark: Generated from `#/components/schemas/simple-commit-status/target_url`. - public var target_url: Swift.String? + public var targetUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-commit-status/required`. public var required: Swift.Bool? /// - Remark: Generated from `#/components/schemas/simple-commit-status/avatar_url`. - public var avatar_url: Swift.String? + public var avatarUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-commit-status/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-commit-status/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/simple-commit-status/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `simple_hyphen_commit_hyphen_status`. + public var updatedAt: Foundation.Date + /// Creates a new `SimpleCommitStatus`. /// /// - Parameters: /// - description: /// - id: - /// - node_id: + /// - nodeId: /// - state: /// - context: - /// - target_url: + /// - targetUrl: /// - required: - /// - avatar_url: + /// - avatarUrl: /// - url: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( description: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, state: Swift.String, context: Swift.String, - target_url: Swift.String? = nil, + targetUrl: Swift.String? = nil, required: Swift.Bool? = nil, - avatar_url: Swift.String? = nil, + avatarUrl: Swift.String? = nil, url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.description = description self.id = id - self.node_id = node_id + self.nodeId = nodeId self.state = state self.context = context - self.target_url = target_url + self.targetUrl = targetUrl self.required = required - self.avatar_url = avatar_url + self.avatarUrl = avatarUrl self.url = url - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case description case id - case node_id + case nodeId = "node_id" case state case context - case target_url + case targetUrl = "target_url" case required - case avatar_url + case avatarUrl = "avatar_url" case url - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Combined Commit Status /// /// - Remark: Generated from `#/components/schemas/combined-commit-status`. - public struct combined_hyphen_commit_hyphen_status: Codable, Hashable, Sendable { + public struct CombinedCommitStatus: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/combined-commit-status/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/combined-commit-status/statuses`. - public var statuses: [Components.Schemas.simple_hyphen_commit_hyphen_status] + public var statuses: [Components.Schemas.SimpleCommitStatus] /// - Remark: Generated from `#/components/schemas/combined-commit-status/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/combined-commit-status/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/combined-commit-status/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/combined-commit-status/commit_url`. - public var commit_url: Swift.String + public var commitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/combined-commit-status/url`. public var url: Swift.String - /// Creates a new `combined_hyphen_commit_hyphen_status`. + /// Creates a new `CombinedCommitStatus`. /// /// - Parameters: /// - state: /// - statuses: /// - sha: - /// - total_count: + /// - totalCount: /// - repository: - /// - commit_url: + /// - commitUrl: /// - url: public init( state: Swift.String, - statuses: [Components.Schemas.simple_hyphen_commit_hyphen_status], + statuses: [Components.Schemas.SimpleCommitStatus], sha: Swift.String, - total_count: Swift.Int, - repository: Components.Schemas.minimal_hyphen_repository, - commit_url: Swift.String, + totalCount: Swift.Int, + repository: Components.Schemas.MinimalRepository, + commitUrl: Swift.String, url: Swift.String ) { self.state = state self.statuses = statuses self.sha = sha - self.total_count = total_count + self.totalCount = totalCount self.repository = repository - self.commit_url = commit_url + self.commitUrl = commitUrl self.url = url } public enum CodingKeys: String, CodingKey { case state case statuses case sha - case total_count + case totalCount = "total_count" case repository - case commit_url + case commitUrl = "commit_url" case url } } /// The status of a commit. /// /// - Remark: Generated from `#/components/schemas/status`. - public struct status: Codable, Hashable, Sendable { + public struct Status: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/status/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/status/avatar_url`. - public var avatar_url: Swift.String? + public var avatarUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/status/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/status/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/status/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/status/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/status/target_url`. - public var target_url: Swift.String? + public var targetUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/status/context`. public var context: Swift.String /// - Remark: Generated from `#/components/schemas/status/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/status/updated_at`. - public var updated_at: Swift.String + public var updatedAt: Swift.String /// - Remark: Generated from `#/components/schemas/status/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `status`. + public var creator: Components.Schemas.NullableSimpleUser? + /// Creates a new `Status`. /// /// - Parameters: /// - url: - /// - avatar_url: + /// - avatarUrl: /// - id: - /// - node_id: + /// - nodeId: /// - state: /// - description: - /// - target_url: + /// - targetUrl: /// - context: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - creator: public init( url: Swift.String, - avatar_url: Swift.String? = nil, + avatarUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, state: Swift.String, description: Swift.String? = nil, - target_url: Swift.String? = nil, + targetUrl: Swift.String? = nil, context: Swift.String, - created_at: Swift.String, - updated_at: Swift.String, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + createdAt: Swift.String, + updatedAt: Swift.String, + creator: Components.Schemas.NullableSimpleUser? = nil ) { self.url = url - self.avatar_url = avatar_url + self.avatarUrl = avatarUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.state = state self.description = description - self.target_url = target_url + self.targetUrl = targetUrl self.context = context - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.creator = creator } public enum CodingKeys: String, CodingKey { case url - case avatar_url + case avatarUrl = "avatar_url" case id - case node_id + case nodeId = "node_id" case state case description - case target_url + case targetUrl = "target_url" case context - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case creator } } /// Code of Conduct Simple /// /// - Remark: Generated from `#/components/schemas/nullable-code-of-conduct-simple`. - public struct nullable_hyphen_code_hyphen_of_hyphen_conduct_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableCodeOfConductSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-code-of-conduct-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-code-of-conduct-simple/key`. @@ -17854,251 +17863,251 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-code-of-conduct-simple/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-code-of-conduct-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_code_hyphen_of_hyphen_conduct_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableCodeOfConductSimple`. /// /// - Parameters: /// - url: /// - key: /// - name: - /// - html_url: + /// - htmlUrl: public init( url: Swift.String, key: Swift.String, name: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.url = url self.key = key self.name = name - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case url case key case name - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/nullable-community-health-file`. - public struct nullable_hyphen_community_hyphen_health_hyphen_file: Codable, Hashable, Sendable { + public struct NullableCommunityHealthFile: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-community-health-file/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-community-health-file/html_url`. - public var html_url: Swift.String - /// Creates a new `nullable_hyphen_community_hyphen_health_hyphen_file`. + public var htmlUrl: Swift.String + /// Creates a new `NullableCommunityHealthFile`. /// /// - Parameters: /// - url: - /// - html_url: + /// - htmlUrl: public init( url: Swift.String, - html_url: Swift.String + htmlUrl: Swift.String ) { self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case url - case html_url + case htmlUrl = "html_url" } } /// Community Profile /// /// - Remark: Generated from `#/components/schemas/community-profile`. - public struct community_hyphen_profile: Codable, Hashable, Sendable { + public struct CommunityProfile: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/community-profile/health_percentage`. - public var health_percentage: Swift.Int + public var healthPercentage: Swift.Int /// - Remark: Generated from `#/components/schemas/community-profile/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/community-profile/documentation`. public var documentation: Swift.String? /// - Remark: Generated from `#/components/schemas/community-profile/files`. - public struct filesPayload: Codable, Hashable, Sendable { + public struct FilesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/community-profile/files/code_of_conduct`. - public var code_of_conduct: Components.Schemas.nullable_hyphen_code_hyphen_of_hyphen_conduct_hyphen_simple? + public var codeOfConduct: Components.Schemas.NullableCodeOfConductSimple? /// - Remark: Generated from `#/components/schemas/community-profile/files/code_of_conduct_file`. - public var code_of_conduct_file: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? + public var codeOfConductFile: Components.Schemas.NullableCommunityHealthFile? /// - Remark: Generated from `#/components/schemas/community-profile/files/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/community-profile/files/contributing`. - public var contributing: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? + public var contributing: Components.Schemas.NullableCommunityHealthFile? /// - Remark: Generated from `#/components/schemas/community-profile/files/readme`. - public var readme: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? + public var readme: Components.Schemas.NullableCommunityHealthFile? /// - Remark: Generated from `#/components/schemas/community-profile/files/issue_template`. - public var issue_template: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? + public var issueTemplate: Components.Schemas.NullableCommunityHealthFile? /// - Remark: Generated from `#/components/schemas/community-profile/files/pull_request_template`. - public var pull_request_template: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? - /// Creates a new `filesPayload`. + public var pullRequestTemplate: Components.Schemas.NullableCommunityHealthFile? + /// Creates a new `FilesPayload`. /// /// - Parameters: - /// - code_of_conduct: - /// - code_of_conduct_file: + /// - codeOfConduct: + /// - codeOfConductFile: /// - license: /// - contributing: /// - readme: - /// - issue_template: - /// - pull_request_template: - public init( - code_of_conduct: Components.Schemas.nullable_hyphen_code_hyphen_of_hyphen_conduct_hyphen_simple? = nil, - code_of_conduct_file: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? = nil, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, - contributing: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? = nil, - readme: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? = nil, - issue_template: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? = nil, - pull_request_template: Components.Schemas.nullable_hyphen_community_hyphen_health_hyphen_file? = nil - ) { - self.code_of_conduct = code_of_conduct - self.code_of_conduct_file = code_of_conduct_file + /// - issueTemplate: + /// - pullRequestTemplate: + public init( + codeOfConduct: Components.Schemas.NullableCodeOfConductSimple? = nil, + codeOfConductFile: Components.Schemas.NullableCommunityHealthFile? = nil, + license: Components.Schemas.NullableLicenseSimple? = nil, + contributing: Components.Schemas.NullableCommunityHealthFile? = nil, + readme: Components.Schemas.NullableCommunityHealthFile? = nil, + issueTemplate: Components.Schemas.NullableCommunityHealthFile? = nil, + pullRequestTemplate: Components.Schemas.NullableCommunityHealthFile? = nil + ) { + self.codeOfConduct = codeOfConduct + self.codeOfConductFile = codeOfConductFile self.license = license self.contributing = contributing self.readme = readme - self.issue_template = issue_template - self.pull_request_template = pull_request_template + self.issueTemplate = issueTemplate + self.pullRequestTemplate = pullRequestTemplate } public enum CodingKeys: String, CodingKey { - case code_of_conduct - case code_of_conduct_file + case codeOfConduct = "code_of_conduct" + case codeOfConductFile = "code_of_conduct_file" case license case contributing case readme - case issue_template - case pull_request_template + case issueTemplate = "issue_template" + case pullRequestTemplate = "pull_request_template" } } /// - Remark: Generated from `#/components/schemas/community-profile/files`. - public var files: Components.Schemas.community_hyphen_profile.filesPayload + public var files: Components.Schemas.CommunityProfile.FilesPayload /// - Remark: Generated from `#/components/schemas/community-profile/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/community-profile/content_reports_enabled`. - public var content_reports_enabled: Swift.Bool? - /// Creates a new `community_hyphen_profile`. + public var contentReportsEnabled: Swift.Bool? + /// Creates a new `CommunityProfile`. /// /// - Parameters: - /// - health_percentage: + /// - healthPercentage: /// - description: /// - documentation: /// - files: - /// - updated_at: - /// - content_reports_enabled: + /// - updatedAt: + /// - contentReportsEnabled: public init( - health_percentage: Swift.Int, + healthPercentage: Swift.Int, description: Swift.String? = nil, documentation: Swift.String? = nil, - files: Components.Schemas.community_hyphen_profile.filesPayload, - updated_at: Foundation.Date? = nil, - content_reports_enabled: Swift.Bool? = nil + files: Components.Schemas.CommunityProfile.FilesPayload, + updatedAt: Foundation.Date? = nil, + contentReportsEnabled: Swift.Bool? = nil ) { - self.health_percentage = health_percentage + self.healthPercentage = healthPercentage self.description = description self.documentation = documentation self.files = files - self.updated_at = updated_at - self.content_reports_enabled = content_reports_enabled + self.updatedAt = updatedAt + self.contentReportsEnabled = contentReportsEnabled } public enum CodingKeys: String, CodingKey { - case health_percentage + case healthPercentage = "health_percentage" case description case documentation case files - case updated_at - case content_reports_enabled + case updatedAt = "updated_at" + case contentReportsEnabled = "content_reports_enabled" } } /// Commit Comparison /// /// - Remark: Generated from `#/components/schemas/commit-comparison`. - public struct commit_hyphen_comparison: Codable, Hashable, Sendable { + public struct CommitComparison: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-comparison/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comparison/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comparison/permalink_url`. - public var permalink_url: Swift.String + public var permalinkUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comparison/diff_url`. - public var diff_url: Swift.String + public var diffUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comparison/patch_url`. - public var patch_url: Swift.String + public var patchUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-comparison/base_commit`. - public var base_commit: Components.Schemas.commit + public var baseCommit: Components.Schemas.Commit /// - Remark: Generated from `#/components/schemas/commit-comparison/merge_base_commit`. - public var merge_base_commit: Components.Schemas.commit + public var mergeBaseCommit: Components.Schemas.Commit /// - Remark: Generated from `#/components/schemas/commit-comparison/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case diverged = "diverged" case ahead = "ahead" case behind = "behind" case identical = "identical" } /// - Remark: Generated from `#/components/schemas/commit-comparison/status`. - public var status: Components.Schemas.commit_hyphen_comparison.statusPayload + public var status: Components.Schemas.CommitComparison.StatusPayload /// - Remark: Generated from `#/components/schemas/commit-comparison/ahead_by`. - public var ahead_by: Swift.Int + public var aheadBy: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-comparison/behind_by`. - public var behind_by: Swift.Int + public var behindBy: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-comparison/total_commits`. - public var total_commits: Swift.Int + public var totalCommits: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-comparison/commits`. - public var commits: [Components.Schemas.commit] + public var commits: [Components.Schemas.Commit] /// - Remark: Generated from `#/components/schemas/commit-comparison/files`. - public var files: [Components.Schemas.diff_hyphen_entry]? - /// Creates a new `commit_hyphen_comparison`. + public var files: [Components.Schemas.DiffEntry]? + /// Creates a new `CommitComparison`. /// /// - Parameters: /// - url: - /// - html_url: - /// - permalink_url: - /// - diff_url: - /// - patch_url: - /// - base_commit: - /// - merge_base_commit: + /// - htmlUrl: + /// - permalinkUrl: + /// - diffUrl: + /// - patchUrl: + /// - baseCommit: + /// - mergeBaseCommit: /// - status: - /// - ahead_by: - /// - behind_by: - /// - total_commits: + /// - aheadBy: + /// - behindBy: + /// - totalCommits: /// - commits: /// - files: public init( url: Swift.String, - html_url: Swift.String, - permalink_url: Swift.String, - diff_url: Swift.String, - patch_url: Swift.String, - base_commit: Components.Schemas.commit, - merge_base_commit: Components.Schemas.commit, - status: Components.Schemas.commit_hyphen_comparison.statusPayload, - ahead_by: Swift.Int, - behind_by: Swift.Int, - total_commits: Swift.Int, - commits: [Components.Schemas.commit], - files: [Components.Schemas.diff_hyphen_entry]? = nil + htmlUrl: Swift.String, + permalinkUrl: Swift.String, + diffUrl: Swift.String, + patchUrl: Swift.String, + baseCommit: Components.Schemas.Commit, + mergeBaseCommit: Components.Schemas.Commit, + status: Components.Schemas.CommitComparison.StatusPayload, + aheadBy: Swift.Int, + behindBy: Swift.Int, + totalCommits: Swift.Int, + commits: [Components.Schemas.Commit], + files: [Components.Schemas.DiffEntry]? = nil ) { self.url = url - self.html_url = html_url - self.permalink_url = permalink_url - self.diff_url = diff_url - self.patch_url = patch_url - self.base_commit = base_commit - self.merge_base_commit = merge_base_commit + self.htmlUrl = htmlUrl + self.permalinkUrl = permalinkUrl + self.diffUrl = diffUrl + self.patchUrl = patchUrl + self.baseCommit = baseCommit + self.mergeBaseCommit = mergeBaseCommit self.status = status - self.ahead_by = ahead_by - self.behind_by = behind_by - self.total_commits = total_commits + self.aheadBy = aheadBy + self.behindBy = behindBy + self.totalCommits = totalCommits self.commits = commits self.files = files } public enum CodingKeys: String, CodingKey { case url - case html_url - case permalink_url - case diff_url - case patch_url - case base_commit - case merge_base_commit + case htmlUrl = "html_url" + case permalinkUrl = "permalink_url" + case diffUrl = "diff_url" + case patchUrl = "patch_url" + case baseCommit = "base_commit" + case mergeBaseCommit = "merge_base_commit" case status - case ahead_by - case behind_by - case total_commits + case aheadBy = "ahead_by" + case behindBy = "behind_by" + case totalCommits = "total_commits" case commits case files } @@ -18106,7 +18115,7 @@ public enum Components { /// Content Tree /// /// - Remark: Generated from `#/components/schemas/content-tree`. - public struct content_hyphen_tree: Codable, Hashable, Sendable { + public struct ContentTree: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-tree/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/content-tree/size`. @@ -18122,40 +18131,40 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/content-tree/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/content-tree/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-tree/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-tree/download_url`. - public var download_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload`. - public struct entriesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/type`. + public var downloadUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload`. + public struct EntriesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/type`. public var _type: Swift.String - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/size`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/size`. public var size: Swift.Int - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/name`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/path`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/path`. public var path: Swift.String - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/sha`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/url`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/git_url`. - public var git_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/download_url`. - public var download_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/_links/git`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/git_url`. + public var gitUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/download_url`. + public var downloadUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/_links`. + public struct _LinksPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/_links/git`. public var git: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/_links/html`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/_links/html`. public var html: Swift.String? - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/_links/self`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18176,9 +18185,9 @@ public enum Components { case _self = "self" } } - /// - Remark: Generated from `#/components/schemas/content-tree/entriesPayload/_links`. - public var _links: Components.Schemas.content_hyphen_tree.entriesPayloadPayload._linksPayload - /// Creates a new `entriesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/content-tree/EntriesPayload/_links`. + public var _links: Components.Schemas.ContentTree.EntriesPayloadPayload._LinksPayload + /// Creates a new `EntriesPayloadPayload`. /// /// - Parameters: /// - _type: @@ -18187,9 +18196,9 @@ public enum Components { /// - path: /// - sha: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - _links: public init( _type: Swift.String, @@ -18198,10 +18207,10 @@ public enum Components { path: Swift.String, sha: Swift.String, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_tree.entriesPayloadPayload._linksPayload + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + _links: Components.Schemas.ContentTree.EntriesPayloadPayload._LinksPayload ) { self._type = _type self.size = size @@ -18209,9 +18218,9 @@ public enum Components { self.path = path self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self._links = _links } public enum CodingKeys: String, CodingKey { @@ -18221,27 +18230,27 @@ public enum Components { case path case sha case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case _links } } /// - Remark: Generated from `#/components/schemas/content-tree/entries`. - public typealias entriesPayload = [Components.Schemas.content_hyphen_tree.entriesPayloadPayload] + public typealias EntriesPayload = [Components.Schemas.ContentTree.EntriesPayloadPayload] /// - Remark: Generated from `#/components/schemas/content-tree/entries`. - public var entries: Components.Schemas.content_hyphen_tree.entriesPayload? + public var entries: Components.Schemas.ContentTree.EntriesPayload? /// - Remark: Generated from `#/components/schemas/content-tree/encoding`. public var encoding: Swift.String? /// - Remark: Generated from `#/components/schemas/content-tree/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-tree/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/content-tree/_links/html`. public var html: Swift.String? /// - Remark: Generated from `#/components/schemas/content-tree/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18263,8 +18272,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/content-tree/_links`. - public var _links: Components.Schemas.content_hyphen_tree._linksPayload - /// Creates a new `content_hyphen_tree`. + public var _links: Components.Schemas.ContentTree._LinksPayload + /// Creates a new `ContentTree`. /// /// - Parameters: /// - _type: @@ -18274,9 +18283,9 @@ public enum Components { /// - sha: /// - content: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - entries: /// - encoding: /// - _links: @@ -18288,12 +18297,12 @@ public enum Components { sha: Swift.String, content: Swift.String? = nil, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - entries: Components.Schemas.content_hyphen_tree.entriesPayload? = nil, + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + entries: Components.Schemas.ContentTree.EntriesPayload? = nil, encoding: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_tree._linksPayload + _links: Components.Schemas.ContentTree._LinksPayload ) { self._type = _type self.size = size @@ -18302,9 +18311,9 @@ public enum Components { self.sha = sha self.content = content self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self.entries = entries self.encoding = encoding self._links = _links @@ -18317,52 +18326,52 @@ public enum Components { case sha case content case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case entries case encoding case _links } } - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory`. - public struct content_hyphen_directoryPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ContentDirectory`. + public struct ContentDirectoryPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ContentDirectory/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case dir = "dir" case file = "file" case submodule = "submodule" case symlink = "symlink" } - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/type`. - public var _type: Components.Schemas.content_hyphen_directoryPayload._typePayload - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/size`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/type`. + public var _type: Components.Schemas.ContentDirectoryPayload._TypePayload + /// - Remark: Generated from `#/components/schemas/ContentDirectory/size`. public var size: Swift.Int - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/name`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/name`. public var name: Swift.String - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/path`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/path`. public var path: Swift.String - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/content`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/content`. public var content: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/sha`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/sha`. public var sha: Swift.String - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/url`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/url`. public var url: Swift.String - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/git_url`. - public var git_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/download_url`. - public var download_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/_links/git`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/git_url`. + public var gitUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/ContentDirectory/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/ContentDirectory/download_url`. + public var downloadUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/ContentDirectory/_links`. + public struct _LinksPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/ContentDirectory/_links/git`. public var git: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/_links/html`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/_links/html`. public var html: Swift.String? - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/_links/self`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18383,9 +18392,9 @@ public enum Components { case _self = "self" } } - /// - Remark: Generated from `#/components/schemas/content_hyphen_directory/_links`. - public var _links: Components.Schemas.content_hyphen_directoryPayload._linksPayload - /// Creates a new `content_hyphen_directoryPayload`. + /// - Remark: Generated from `#/components/schemas/ContentDirectory/_links`. + public var _links: Components.Schemas.ContentDirectoryPayload._LinksPayload + /// Creates a new `ContentDirectoryPayload`. /// /// - Parameters: /// - _type: @@ -18395,22 +18404,22 @@ public enum Components { /// - content: /// - sha: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - _links: public init( - _type: Components.Schemas.content_hyphen_directoryPayload._typePayload, + _type: Components.Schemas.ContentDirectoryPayload._TypePayload, size: Swift.Int, name: Swift.String, path: Swift.String, content: Swift.String? = nil, sha: Swift.String, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_directoryPayload._linksPayload + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + _links: Components.Schemas.ContentDirectoryPayload._LinksPayload ) { self._type = _type self.size = size @@ -18419,9 +18428,9 @@ public enum Components { self.content = content self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self._links = _links } public enum CodingKeys: String, CodingKey { @@ -18432,26 +18441,26 @@ public enum Components { case content case sha case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case _links } } /// A list of directory items /// /// - Remark: Generated from `#/components/schemas/content-directory`. - public typealias content_hyphen_directory = [Components.Schemas.content_hyphen_directoryPayload] + public typealias ContentDirectory = [Components.Schemas.ContentDirectoryPayload] /// Content File /// /// - Remark: Generated from `#/components/schemas/content-file`. - public struct content_hyphen_file: Codable, Hashable, Sendable { + public struct ContentFile: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-file/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case file = "file" } /// - Remark: Generated from `#/components/schemas/content-file/type`. - public var _type: Components.Schemas.content_hyphen_file._typePayload + public var _type: Components.Schemas.ContentFile._TypePayload /// - Remark: Generated from `#/components/schemas/content-file/encoding`. public var encoding: Swift.String /// - Remark: Generated from `#/components/schemas/content-file/size`. @@ -18467,20 +18476,20 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/content-file/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/content-file/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/download_url`. - public var download_url: Swift.String? + public var downloadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-file/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/_links/html`. public var html: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18502,12 +18511,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/content-file/_links`. - public var _links: Components.Schemas.content_hyphen_file._linksPayload + public var _links: Components.Schemas.ContentFile._LinksPayload /// - Remark: Generated from `#/components/schemas/content-file/target`. public var target: Swift.String? /// - Remark: Generated from `#/components/schemas/content-file/submodule_git_url`. - public var submodule_git_url: Swift.String? - /// Creates a new `content_hyphen_file`. + public var submoduleGitUrl: Swift.String? + /// Creates a new `ContentFile`. /// /// - Parameters: /// - _type: @@ -18518,14 +18527,14 @@ public enum Components { /// - content: /// - sha: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - _links: /// - target: - /// - submodule_git_url: + /// - submoduleGitUrl: public init( - _type: Components.Schemas.content_hyphen_file._typePayload, + _type: Components.Schemas.ContentFile._TypePayload, encoding: Swift.String, size: Swift.Int, name: Swift.String, @@ -18533,12 +18542,12 @@ public enum Components { content: Swift.String, sha: Swift.String, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_file._linksPayload, + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + _links: Components.Schemas.ContentFile._LinksPayload, target: Swift.String? = nil, - submodule_git_url: Swift.String? = nil + submoduleGitUrl: Swift.String? = nil ) { self._type = _type self.encoding = encoding @@ -18548,12 +18557,12 @@ public enum Components { self.content = content self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self._links = _links self.target = target - self.submodule_git_url = submodule_git_url + self.submoduleGitUrl = submoduleGitUrl } public enum CodingKeys: String, CodingKey { case _type = "type" @@ -18564,24 +18573,24 @@ public enum Components { case content case sha case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case _links case target - case submodule_git_url + case submoduleGitUrl = "submodule_git_url" } } /// An object describing a symlink /// /// - Remark: Generated from `#/components/schemas/content-symlink`. - public struct content_hyphen_symlink: Codable, Hashable, Sendable { + public struct ContentSymlink: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-symlink/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case symlink = "symlink" } /// - Remark: Generated from `#/components/schemas/content-symlink/type`. - public var _type: Components.Schemas.content_hyphen_symlink._typePayload + public var _type: Components.Schemas.ContentSymlink._TypePayload /// - Remark: Generated from `#/components/schemas/content-symlink/target`. public var target: Swift.String /// - Remark: Generated from `#/components/schemas/content-symlink/size`. @@ -18595,20 +18604,20 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/content-symlink/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/content-symlink/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-symlink/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-symlink/download_url`. - public var download_url: Swift.String? + public var downloadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-symlink/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-symlink/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/content-symlink/_links/html`. public var html: Swift.String? /// - Remark: Generated from `#/components/schemas/content-symlink/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18630,8 +18639,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/content-symlink/_links`. - public var _links: Components.Schemas.content_hyphen_symlink._linksPayload - /// Creates a new `content_hyphen_symlink`. + public var _links: Components.Schemas.ContentSymlink._LinksPayload + /// Creates a new `ContentSymlink`. /// /// - Parameters: /// - _type: @@ -18641,22 +18650,22 @@ public enum Components { /// - path: /// - sha: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - _links: public init( - _type: Components.Schemas.content_hyphen_symlink._typePayload, + _type: Components.Schemas.ContentSymlink._TypePayload, target: Swift.String, size: Swift.Int, name: Swift.String, path: Swift.String, sha: Swift.String, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_symlink._linksPayload + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + _links: Components.Schemas.ContentSymlink._LinksPayload ) { self._type = _type self.target = target @@ -18665,9 +18674,9 @@ public enum Components { self.path = path self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self._links = _links } public enum CodingKeys: String, CodingKey { @@ -18678,24 +18687,24 @@ public enum Components { case path case sha case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case _links } } /// An object describing a submodule /// /// - Remark: Generated from `#/components/schemas/content-submodule`. - public struct content_hyphen_submodule: Codable, Hashable, Sendable { + public struct ContentSubmodule: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-submodule/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case submodule = "submodule" } /// - Remark: Generated from `#/components/schemas/content-submodule/type`. - public var _type: Components.Schemas.content_hyphen_submodule._typePayload + public var _type: Components.Schemas.ContentSubmodule._TypePayload /// - Remark: Generated from `#/components/schemas/content-submodule/submodule_git_url`. - public var submodule_git_url: Swift.String + public var submoduleGitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/content-submodule/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/content-submodule/name`. @@ -18707,20 +18716,20 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/content-submodule/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/content-submodule/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-submodule/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-submodule/download_url`. - public var download_url: Swift.String? + public var downloadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/content-submodule/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-submodule/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/content-submodule/_links/html`. public var html: Swift.String? /// - Remark: Generated from `#/components/schemas/content-submodule/_links/self`. public var _self: Swift.String - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - git: @@ -18742,66 +18751,66 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/content-submodule/_links`. - public var _links: Components.Schemas.content_hyphen_submodule._linksPayload - /// Creates a new `content_hyphen_submodule`. + public var _links: Components.Schemas.ContentSubmodule._LinksPayload + /// Creates a new `ContentSubmodule`. /// /// - Parameters: /// - _type: - /// - submodule_git_url: + /// - submoduleGitUrl: /// - size: /// - name: /// - path: /// - sha: /// - url: - /// - git_url: - /// - html_url: - /// - download_url: + /// - gitUrl: + /// - htmlUrl: + /// - downloadUrl: /// - _links: public init( - _type: Components.Schemas.content_hyphen_submodule._typePayload, - submodule_git_url: Swift.String, + _type: Components.Schemas.ContentSubmodule._TypePayload, + submoduleGitUrl: Swift.String, size: Swift.Int, name: Swift.String, path: Swift.String, sha: Swift.String, url: Swift.String, - git_url: Swift.String? = nil, - html_url: Swift.String? = nil, - download_url: Swift.String? = nil, - _links: Components.Schemas.content_hyphen_submodule._linksPayload + gitUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, + _links: Components.Schemas.ContentSubmodule._LinksPayload ) { self._type = _type - self.submodule_git_url = submodule_git_url + self.submoduleGitUrl = submoduleGitUrl self.size = size self.name = name self.path = path self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url - self.download_url = download_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl + self.downloadUrl = downloadUrl self._links = _links } public enum CodingKeys: String, CodingKey { case _type = "type" - case submodule_git_url + case submoduleGitUrl = "submodule_git_url" case size case name case path case sha case url - case git_url - case html_url - case download_url + case gitUrl = "git_url" + case htmlUrl = "html_url" + case downloadUrl = "download_url" case _links } } /// File Commit /// /// - Remark: Generated from `#/components/schemas/file-commit`. - public struct file_hyphen_commit: Codable, Hashable, Sendable { + public struct FileCommit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/content`. - public struct contentPayload: Codable, Hashable, Sendable { + public struct ContentPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/content/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/path`. @@ -18813,22 +18822,22 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/file-commit/content/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/download_url`. - public var download_url: Swift.String? + public var downloadUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/type`. public var _type: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/_links`. - public struct _linksPayload: Codable, Hashable, Sendable { + public struct _LinksPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/content/_links/self`. public var _self: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/_links/git`. public var git: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/content/_links/html`. public var html: Swift.String? - /// Creates a new `_linksPayload`. + /// Creates a new `_LinksPayload`. /// /// - Parameters: /// - _self: @@ -18850,8 +18859,8 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/file-commit/content/_links`. - public var _links: Components.Schemas.file_hyphen_commit.contentPayload._linksPayload? - /// Creates a new `contentPayload`. + public var _links: Components.Schemas.FileCommit.ContentPayload._LinksPayload? + /// Creates a new `ContentPayload`. /// /// - Parameters: /// - name: @@ -18859,9 +18868,9 @@ public enum Components { /// - sha: /// - size: /// - url: - /// - html_url: - /// - git_url: - /// - download_url: + /// - htmlUrl: + /// - gitUrl: + /// - downloadUrl: /// - _type: /// - _links: public init( @@ -18870,20 +18879,20 @@ public enum Components { sha: Swift.String? = nil, size: Swift.Int? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - git_url: Swift.String? = nil, - download_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + gitUrl: Swift.String? = nil, + downloadUrl: Swift.String? = nil, _type: Swift.String? = nil, - _links: Components.Schemas.file_hyphen_commit.contentPayload._linksPayload? = nil + _links: Components.Schemas.FileCommit.ContentPayload._LinksPayload? = nil ) { self.name = name self.path = path self.sha = sha self.size = size self.url = url - self.html_url = html_url - self.git_url = git_url - self.download_url = download_url + self.htmlUrl = htmlUrl + self.gitUrl = gitUrl + self.downloadUrl = downloadUrl self._type = _type self._links = _links } @@ -18893,34 +18902,34 @@ public enum Components { case sha case size case url - case html_url - case git_url - case download_url + case htmlUrl = "html_url" + case gitUrl = "git_url" + case downloadUrl = "download_url" case _type = "type" case _links } } /// - Remark: Generated from `#/components/schemas/file-commit/content`. - public var content: Components.Schemas.file_hyphen_commit.contentPayload? + public var content: Components.Schemas.FileCommit.ContentPayload? /// - Remark: Generated from `#/components/schemas/file-commit/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/commit/sha`. public var sha: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/commit/author/date`. public var date: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/author/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/author/email`. public var email: Swift.String? - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - date: @@ -18942,16 +18951,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/file-commit/commit/author`. - public var author: Components.Schemas.file_hyphen_commit.commitPayload.authorPayload? + public var author: Components.Schemas.FileCommit.CommitPayload.AuthorPayload? /// - Remark: Generated from `#/components/schemas/file-commit/commit/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/commit/committer/date`. public var date: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/committer/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/committer/email`. public var email: Swift.String? - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - date: @@ -18973,16 +18982,16 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/file-commit/commit/committer`. - public var committer: Components.Schemas.file_hyphen_commit.commitPayload.committerPayload? + public var committer: Components.Schemas.FileCommit.CommitPayload.CommitterPayload? /// - Remark: Generated from `#/components/schemas/file-commit/commit/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/commit/tree/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/tree/sha`. public var sha: Swift.String? - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - url: @@ -19000,42 +19009,42 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/file-commit/commit/tree`. - public var tree: Components.Schemas.file_hyphen_commit.commitPayload.treePayload? - /// - Remark: Generated from `#/components/schemas/file-commit/commit/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/file-commit/commit/parentsPayload/url`. + public var tree: Components.Schemas.FileCommit.CommitPayload.TreePayload? + /// - Remark: Generated from `#/components/schemas/file-commit/commit/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/file-commit/commit/ParentsPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/file-commit/commit/parentsPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/file-commit/commit/parentsPayload/sha`. + /// - Remark: Generated from `#/components/schemas/file-commit/commit/ParentsPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/file-commit/commit/ParentsPayload/sha`. public var sha: Swift.String? - /// Creates a new `parentsPayloadPayload`. + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - url: - /// - html_url: + /// - htmlUrl: /// - sha: public init( url: Swift.String? = nil, - html_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, sha: Swift.String? = nil ) { self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.sha = sha } public enum CodingKeys: String, CodingKey { case url - case html_url + case htmlUrl = "html_url" case sha } } /// - Remark: Generated from `#/components/schemas/file-commit/commit/parents`. - public typealias parentsPayload = [Components.Schemas.file_hyphen_commit.commitPayload.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.FileCommit.CommitPayload.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/file-commit/commit/parents`. - public var parents: Components.Schemas.file_hyphen_commit.commitPayload.parentsPayload? + public var parents: Components.Schemas.FileCommit.CommitPayload.ParentsPayload? /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification`. - public struct verificationPayload: Codable, Hashable, Sendable { + public struct VerificationPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification/verified`. public var verified: Swift.Bool? /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification/reason`. @@ -19045,45 +19054,45 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification/payload`. public var payload: Swift.String? /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verificationPayload`. + public var verifiedAt: Swift.String? + /// Creates a new `VerificationPayload`. /// /// - Parameters: /// - verified: /// - reason: /// - signature: /// - payload: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool? = nil, reason: Swift.String? = nil, signature: Swift.String? = nil, payload: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.signature = signature self.payload = payload - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case signature case payload - case verified_at + case verifiedAt = "verified_at" } } /// - Remark: Generated from `#/components/schemas/file-commit/commit/verification`. - public var verification: Components.Schemas.file_hyphen_commit.commitPayload.verificationPayload? - /// Creates a new `commitPayload`. + public var verification: Components.Schemas.FileCommit.CommitPayload.VerificationPayload? + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - sha: - /// - node_id: + /// - nodeId: /// - url: - /// - html_url: + /// - htmlUrl: /// - author: /// - committer: /// - message: @@ -19092,20 +19101,20 @@ public enum Components { /// - verification: public init( sha: Swift.String? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - author: Components.Schemas.file_hyphen_commit.commitPayload.authorPayload? = nil, - committer: Components.Schemas.file_hyphen_commit.commitPayload.committerPayload? = nil, + htmlUrl: Swift.String? = nil, + author: Components.Schemas.FileCommit.CommitPayload.AuthorPayload? = nil, + committer: Components.Schemas.FileCommit.CommitPayload.CommitterPayload? = nil, message: Swift.String? = nil, - tree: Components.Schemas.file_hyphen_commit.commitPayload.treePayload? = nil, - parents: Components.Schemas.file_hyphen_commit.commitPayload.parentsPayload? = nil, - verification: Components.Schemas.file_hyphen_commit.commitPayload.verificationPayload? = nil + tree: Components.Schemas.FileCommit.CommitPayload.TreePayload? = nil, + parents: Components.Schemas.FileCommit.CommitPayload.ParentsPayload? = nil, + verification: Components.Schemas.FileCommit.CommitPayload.VerificationPayload? = nil ) { self.sha = sha - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.author = author self.committer = committer self.message = message @@ -19115,9 +19124,9 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case sha - case node_id + case nodeId = "node_id" case url - case html_url + case htmlUrl = "html_url" case author case committer case message @@ -19127,15 +19136,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/file-commit/commit`. - public var commit: Components.Schemas.file_hyphen_commit.commitPayload - /// Creates a new `file_hyphen_commit`. + public var commit: Components.Schemas.FileCommit.CommitPayload + /// Creates a new `FileCommit`. /// /// - Parameters: /// - content: /// - commit: public init( - content: Components.Schemas.file_hyphen_commit.contentPayload? = nil, - commit: Components.Schemas.file_hyphen_commit.commitPayload + content: Components.Schemas.FileCommit.ContentPayload? = nil, + commit: Components.Schemas.FileCommit.CommitPayload ) { self.content = content self.commit = commit @@ -19148,95 +19157,95 @@ public enum Components { /// The ID of the push protection bypass placeholder. This value is returned on any push protected routes. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass-placeholder-id`. - public typealias secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id = Swift.String + public typealias SecretScanningPushProtectionBypassPlaceholderId = Swift.String /// Repository rule violation was detected /// /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error`. - public struct repository_hyphen_rule_hyphen_violation_hyphen_error: Codable, Hashable, Sendable { + public struct RepositoryRuleViolationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/status`. public var status: Swift.String? /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata`. - public struct metadataPayload: Codable, Hashable, Sendable { + public struct MetadataPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload`. - public struct bypass_placeholdersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload/placeholder_id`. - public var placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id? - /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholdersPayload/token_type`. - public var token_type: Swift.String? - /// Creates a new `bypass_placeholdersPayloadPayload`. + public struct SecretScanningPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload`. + public struct BypassPlaceholdersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload/placeholder_id`. + public var placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId? + /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/BypassPlaceholdersPayload/token_type`. + public var tokenType: Swift.String? + /// Creates a new `BypassPlaceholdersPayloadPayload`. /// /// - Parameters: - /// - placeholder_id: - /// - token_type: + /// - placeholderId: + /// - tokenType: public init( - placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id? = nil, - token_type: Swift.String? = nil + placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId? = nil, + tokenType: Swift.String? = nil ) { - self.placeholder_id = placeholder_id - self.token_type = token_type + self.placeholderId = placeholderId + self.tokenType = tokenType } public enum CodingKeys: String, CodingKey { - case placeholder_id - case token_type + case placeholderId = "placeholder_id" + case tokenType = "token_type" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholders`. - public typealias bypass_placeholdersPayload = [Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayloadPayload] + public typealias BypassPlaceholdersPayload = [Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayloadPayload] /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning/bypass_placeholders`. - public var bypass_placeholders: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayload? - /// Creates a new `secret_scanningPayload`. + public var bypassPlaceholders: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: - /// - bypass_placeholders: - public init(bypass_placeholders: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload.bypass_placeholdersPayload? = nil) { - self.bypass_placeholders = bypass_placeholders + /// - bypassPlaceholders: + public init(bypassPlaceholders: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload.BypassPlaceholdersPayload? = nil) { + self.bypassPlaceholders = bypassPlaceholders } public enum CodingKeys: String, CodingKey { - case bypass_placeholders + case bypassPlaceholders = "bypass_placeholders" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata/secret_scanning`. - public var secret_scanning: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload? - /// Creates a new `metadataPayload`. + public var secretScanning: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload? + /// Creates a new `MetadataPayload`. /// /// - Parameters: - /// - secret_scanning: - public init(secret_scanning: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload.secret_scanningPayload? = nil) { - self.secret_scanning = secret_scanning + /// - secretScanning: + public init(secretScanning: Components.Schemas.RepositoryRuleViolationError.MetadataPayload.SecretScanningPayload? = nil) { + self.secretScanning = secretScanning } public enum CodingKeys: String, CodingKey { - case secret_scanning + case secretScanning = "secret_scanning" } } /// - Remark: Generated from `#/components/schemas/repository-rule-violation-error/metadata`. - public var metadata: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload? - /// Creates a new `repository_hyphen_rule_hyphen_violation_hyphen_error`. + public var metadata: Components.Schemas.RepositoryRuleViolationError.MetadataPayload? + /// Creates a new `RepositoryRuleViolationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - status: /// - metadata: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, status: Swift.String? = nil, - metadata: Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error.metadataPayload? = nil + metadata: Components.Schemas.RepositoryRuleViolationError.MetadataPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.status = status self.metadata = metadata } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case status case metadata } @@ -19244,43 +19253,43 @@ public enum Components { /// Contributor /// /// - Remark: Generated from `#/components/schemas/contributor`. - public struct contributor: Codable, Hashable, Sendable { + public struct Contributor: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/contributor/login`. public var login: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/contributor/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/avatar_url`. - public var avatar_url: Swift.String? + public var avatarUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/followers_url`. - public var followers_url: Swift.String? + public var followersUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/following_url`. - public var following_url: Swift.String? + public var followingUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/gists_url`. - public var gists_url: Swift.String? + public var gistsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/starred_url`. - public var starred_url: Swift.String? + public var starredUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/subscriptions_url`. - public var subscriptions_url: Swift.String? + public var subscriptionsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/organizations_url`. - public var organizations_url: Swift.String? + public var organizationsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/repos_url`. - public var repos_url: Swift.String? + public var reposUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/events_url`. - public var events_url: Swift.String? + public var eventsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/received_events_url`. - public var received_events_url: Swift.String? + public var receivedEventsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/contributor/site_admin`. - public var site_admin: Swift.Bool? + public var siteAdmin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/contributor/contributions`. public var contributions: Swift.Int /// - Remark: Generated from `#/components/schemas/contributor/email`. @@ -19288,132 +19297,132 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/contributor/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `contributor`. + public var userViewType: Swift.String? + /// Creates a new `Contributor`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - contributions: /// - email: /// - name: - /// - user_view_type: + /// - userViewType: public init( login: Swift.String? = nil, id: Swift.Int? = nil, - node_id: Swift.String? = nil, - avatar_url: Swift.String? = nil, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String? = nil, + avatarUrl: Swift.String? = nil, + gravatarId: Swift.String? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - followers_url: Swift.String? = nil, - following_url: Swift.String? = nil, - gists_url: Swift.String? = nil, - starred_url: Swift.String? = nil, - subscriptions_url: Swift.String? = nil, - organizations_url: Swift.String? = nil, - repos_url: Swift.String? = nil, - events_url: Swift.String? = nil, - received_events_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + followersUrl: Swift.String? = nil, + followingUrl: Swift.String? = nil, + gistsUrl: Swift.String? = nil, + starredUrl: Swift.String? = nil, + subscriptionsUrl: Swift.String? = nil, + organizationsUrl: Swift.String? = nil, + reposUrl: Swift.String? = nil, + eventsUrl: Swift.String? = nil, + receivedEventsUrl: Swift.String? = nil, _type: Swift.String, - site_admin: Swift.Bool? = nil, + siteAdmin: Swift.Bool? = nil, contributions: Swift.Int, email: Swift.String? = nil, name: Swift.String? = nil, - user_view_type: Swift.String? = nil + userViewType: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.contributions = contributions self.email = email self.name = name - self.user_view_type = user_view_type + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case contributions case email case name - case user_view_type + case userViewType = "user_view_type" } } /// The status of a deployment. /// /// - Remark: Generated from `#/components/schemas/deployment-status`. - public struct deployment_hyphen_status: Codable, Hashable, Sendable { + public struct DeploymentStatus: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deployment-status/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-status/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/deployment-status/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The state of the status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case error = "error" case failure = "failure" case inactive = "inactive" case pending = "pending" case success = "success" case queued = "queued" - case in_progress = "in_progress" + case inProgress = "in_progress" } /// The state of the status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/state`. - public var state: Components.Schemas.deployment_hyphen_status.statePayload + public var state: Components.Schemas.DeploymentStatus.StatePayload /// - Remark: Generated from `#/components/schemas/deployment-status/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// A short description of the status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/description`. @@ -19425,137 +19434,137 @@ public enum Components { /// Closing down notice: the URL to associate with this status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/target_url`. - public var target_url: Swift.String + public var targetUrl: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-status/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment-status/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/deployment-status/deployment_url`. - public var deployment_url: Swift.String + public var deploymentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/deployment-status/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// The URL for accessing your environment. /// /// - Remark: Generated from `#/components/schemas/deployment-status/environment_url`. - public var environment_url: Swift.String? + public var environmentUrl: Swift.String? /// The URL to associate with this status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/log_url`. - public var log_url: Swift.String? + public var logUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/deployment-status/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? - /// Creates a new `deployment_hyphen_status`. + public var performedViaGithubApp: Components.Schemas.NullableIntegration? + /// Creates a new `DeploymentStatus`. /// /// - Parameters: /// - url: /// - id: - /// - node_id: + /// - nodeId: /// - state: The state of the status. /// - creator: /// - description: A short description of the status. /// - environment: The environment of the deployment that the status is for. - /// - target_url: Closing down notice: the URL to associate with this status. - /// - created_at: - /// - updated_at: - /// - deployment_url: - /// - repository_url: - /// - environment_url: The URL for accessing your environment. - /// - log_url: The URL to associate with this status. - /// - performed_via_github_app: + /// - targetUrl: Closing down notice: the URL to associate with this status. + /// - createdAt: + /// - updatedAt: + /// - deploymentUrl: + /// - repositoryUrl: + /// - environmentUrl: The URL for accessing your environment. + /// - logUrl: The URL to associate with this status. + /// - performedViaGithubApp: public init( url: Swift.String, id: Swift.Int64, - node_id: Swift.String, - state: Components.Schemas.deployment_hyphen_status.statePayload, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + nodeId: Swift.String, + state: Components.Schemas.DeploymentStatus.StatePayload, + creator: Components.Schemas.NullableSimpleUser? = nil, description: Swift.String, environment: Swift.String? = nil, - target_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - deployment_url: Swift.String, - repository_url: Swift.String, - environment_url: Swift.String? = nil, - log_url: Swift.String? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil + targetUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + deploymentUrl: Swift.String, + repositoryUrl: Swift.String, + environmentUrl: Swift.String? = nil, + logUrl: Swift.String? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil ) { self.url = url self.id = id - self.node_id = node_id + self.nodeId = nodeId self.state = state self.creator = creator self.description = description self.environment = environment - self.target_url = target_url - self.created_at = created_at - self.updated_at = updated_at - self.deployment_url = deployment_url - self.repository_url = repository_url - self.environment_url = environment_url - self.log_url = log_url - self.performed_via_github_app = performed_via_github_app + self.targetUrl = targetUrl + self.createdAt = createdAt + self.updatedAt = updatedAt + self.deploymentUrl = deploymentUrl + self.repositoryUrl = repositoryUrl + self.environmentUrl = environmentUrl + self.logUrl = logUrl + self.performedViaGithubApp = performedViaGithubApp } public enum CodingKeys: String, CodingKey { case url case id - case node_id + case nodeId = "node_id" case state case creator case description case environment - case target_url - case created_at - case updated_at - case deployment_url - case repository_url - case environment_url - case log_url - case performed_via_github_app + case targetUrl = "target_url" + case createdAt = "created_at" + case updatedAt = "updated_at" + case deploymentUrl = "deployment_url" + case repositoryUrl = "repository_url" + case environmentUrl = "environment_url" + case logUrl = "log_url" + case performedViaGithubApp = "performed_via_github_app" } } /// The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days). /// /// - Remark: Generated from `#/components/schemas/wait-timer`. - public typealias wait_hyphen_timer = Swift.Int + public typealias WaitTimer = Swift.Int /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-settings`. - public struct deployment_hyphen_branch_hyphen_policy_hyphen_settings: Codable, Hashable, Sendable { + public struct DeploymentBranchPolicySettings: Codable, Hashable, Sendable { /// Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-settings/protected_branches`. - public var protected_branches: Swift.Bool + public var protectedBranches: Swift.Bool /// Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-settings/custom_branch_policies`. - public var custom_branch_policies: Swift.Bool - /// Creates a new `deployment_hyphen_branch_hyphen_policy_hyphen_settings`. + public var customBranchPolicies: Swift.Bool + /// Creates a new `DeploymentBranchPolicySettings`. /// /// - Parameters: - /// - protected_branches: Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. - /// - custom_branch_policies: Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. + /// - protectedBranches: Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. + /// - customBranchPolicies: Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`. public init( - protected_branches: Swift.Bool, - custom_branch_policies: Swift.Bool + protectedBranches: Swift.Bool, + customBranchPolicies: Swift.Bool ) { - self.protected_branches = protected_branches - self.custom_branch_policies = custom_branch_policies + self.protectedBranches = protectedBranches + self.customBranchPolicies = customBranchPolicies } public enum CodingKeys: String, CodingKey { - case protected_branches - case custom_branch_policies + case protectedBranches = "protected_branches" + case customBranchPolicies = "custom_branch_policies" } } /// Details of a deployment environment /// /// - Remark: Generated from `#/components/schemas/environment`. - public struct environment: Codable, Hashable, Sendable { + public struct Environment: Codable, Hashable, Sendable { /// The id of the environment. /// /// - Remark: Generated from `#/components/schemas/environment/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/environment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the environment. /// /// - Remark: Generated from `#/components/schemas/environment/name`. @@ -19563,84 +19572,84 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/environment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/environment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The time that the environment was created, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/environment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The time that the environment was last updated, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/environment/updated_at`. - public var updated_at: Foundation.Date - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload`. - public struct protection_rulesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1`. + public var updatedAt: Foundation.Date + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload`. + public struct ProtectionRulesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1`. public struct Value1Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1/id`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1/id`. public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1/node_id`. - public var node_id: Swift.String - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1/type`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1/node_id`. + public var nodeId: Swift.String + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1/type`. public var _type: Swift.String - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1/wait_timer`. - public var wait_timer: Components.Schemas.wait_hyphen_timer? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1/wait_timer`. + public var waitTimer: Components.Schemas.WaitTimer? /// Creates a new `Value1Payload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - _type: - /// - wait_timer: + /// - waitTimer: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, _type: Swift.String, - wait_timer: Components.Schemas.wait_hyphen_timer? = nil + waitTimer: Components.Schemas.WaitTimer? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self._type = _type - self.wait_timer = wait_timer + self.waitTimer = waitTimer } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case _type = "type" - case wait_timer + case waitTimer = "wait_timer" } } - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value1`. - public var value1: Components.Schemas.environment.protection_rulesPayloadPayload.Value1Payload? - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value1`. + public var value1: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value1Payload? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2`. public struct Value2Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/id`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/id`. public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/node_id`. - public var node_id: Swift.String + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/node_id`. + public var nodeId: Swift.String /// Whether deployments to this environment can be approved by the user who created the deployment. /// - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/prevent_self_review`. - public var prevent_self_review: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/type`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/prevent_self_review`. + public var preventSelfReview: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/type`. public var _type: Swift.String - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload/type`. - public var _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload/reviewer`. - public struct reviewerPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload/reviewer/value1`. - public var value1: Components.Schemas.simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload/reviewer/value2`. - public var value2: Components.Schemas.team? - /// Creates a new `reviewerPayload`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload/type`. + public var _type: Components.Schemas.DeploymentReviewerType? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload/reviewer`. + public struct ReviewerPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload/reviewer/value1`. + public var value1: Components.Schemas.SimpleUser? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload/reviewer/value2`. + public var value2: Components.Schemas.Team? + /// Creates a new `ReviewerPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.simple_hyphen_user? = nil, - value2: Components.Schemas.team? = nil + value1: Components.Schemas.SimpleUser? = nil, + value2: Components.Schemas.Team? = nil ) { self.value1 = value1 self.value2 = value2 @@ -19648,19 +19657,19 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -19668,20 +19677,20 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewersPayload/reviewer`. - public var reviewer: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload.reviewersPayloadPayload.reviewerPayload? - /// Creates a new `reviewersPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/ReviewersPayload/reviewer`. + public var reviewer: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload.ReviewersPayloadPayload.ReviewerPayload? + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - _type: /// - reviewer: public init( - _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? = nil, - reviewer: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload.reviewersPayloadPayload.reviewerPayload? = nil + _type: Components.Schemas.DeploymentReviewerType? = nil, + reviewer: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload.ReviewersPayloadPayload.ReviewerPayload? = nil ) { self._type = _type self.reviewer = reviewer @@ -19693,84 +19702,84 @@ public enum Components { } /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewers`. - public typealias reviewersPayload = [Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload.reviewersPayloadPayload] + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/reviewers`. + public typealias ReviewersPayload = [Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload.ReviewersPayloadPayload] /// The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2/reviewers`. - public var reviewers: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload.reviewersPayload? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2/reviewers`. + public var reviewers: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload.ReviewersPayload? /// Creates a new `Value2Payload`. /// /// - Parameters: /// - id: - /// - node_id: - /// - prevent_self_review: Whether deployments to this environment can be approved by the user who created the deployment. + /// - nodeId: + /// - preventSelfReview: Whether deployments to this environment can be approved by the user who created the deployment. /// - _type: /// - reviewers: The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. public init( id: Swift.Int, - node_id: Swift.String, - prevent_self_review: Swift.Bool? = nil, + nodeId: Swift.String, + preventSelfReview: Swift.Bool? = nil, _type: Swift.String, - reviewers: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload.reviewersPayload? = nil + reviewers: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload.ReviewersPayload? = nil ) { self.id = id - self.node_id = node_id - self.prevent_self_review = prevent_self_review + self.nodeId = nodeId + self.preventSelfReview = preventSelfReview self._type = _type self.reviewers = reviewers } public enum CodingKeys: String, CodingKey { case id - case node_id - case prevent_self_review + case nodeId = "node_id" + case preventSelfReview = "prevent_self_review" case _type = "type" case reviewers } } - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value2`. - public var value2: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload? - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value3`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value2`. + public var value2: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload? + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value3`. public struct Value3Payload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value3/id`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value3/id`. public var id: Swift.Int - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value3/node_id`. - public var node_id: Swift.String - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value3/type`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value3/node_id`. + public var nodeId: Swift.String + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value3/type`. public var _type: Swift.String /// Creates a new `Value3Payload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - _type: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, _type: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self._type = _type } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case _type = "type" } } - /// - Remark: Generated from `#/components/schemas/environment/protection_rulesPayload/value3`. - public var value3: Components.Schemas.environment.protection_rulesPayloadPayload.Value3Payload? - /// Creates a new `protection_rulesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/environment/ProtectionRulesPayload/value3`. + public var value3: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value3Payload? + /// Creates a new `ProtectionRulesPayloadPayload`. /// /// - Parameters: /// - value1: /// - value2: /// - value3: public init( - value1: Components.Schemas.environment.protection_rulesPayloadPayload.Value1Payload? = nil, - value2: Components.Schemas.environment.protection_rulesPayloadPayload.Value2Payload? = nil, - value3: Components.Schemas.environment.protection_rulesPayloadPayload.Value3Payload? = nil + value1: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value1Payload? = nil, + value2: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value2Payload? = nil, + value3: Components.Schemas.Environment.ProtectionRulesPayloadPayload.Value3Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -19779,25 +19788,25 @@ public enum Components { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } do { - value3 = try .init(from: decoder) + self.value3 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2, - value3 + self.value1, + self.value2, + self.value3 ], type: Self.self, codingPath: decoder.codingPath, @@ -19805,80 +19814,80 @@ public enum Components { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) - try value3?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) + try self.value3?.encode(to: encoder) } } /// Built-in deployment protection rules for the environment. /// /// - Remark: Generated from `#/components/schemas/environment/protection_rules`. - public typealias protection_rulesPayload = [Components.Schemas.environment.protection_rulesPayloadPayload] + public typealias ProtectionRulesPayload = [Components.Schemas.Environment.ProtectionRulesPayloadPayload] /// Built-in deployment protection rules for the environment. /// /// - Remark: Generated from `#/components/schemas/environment/protection_rules`. - public var protection_rules: Components.Schemas.environment.protection_rulesPayload? + public var protectionRules: Components.Schemas.Environment.ProtectionRulesPayload? /// - Remark: Generated from `#/components/schemas/environment/deployment_branch_policy`. - public var deployment_branch_policy: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_settings? - /// Creates a new `environment`. + public var deploymentBranchPolicy: Components.Schemas.DeploymentBranchPolicySettings? + /// Creates a new `Environment`. /// /// - Parameters: /// - id: The id of the environment. - /// - node_id: + /// - nodeId: /// - name: The name of the environment. /// - url: - /// - html_url: - /// - created_at: The time that the environment was created, in ISO 8601 format. - /// - updated_at: The time that the environment was last updated, in ISO 8601 format. - /// - protection_rules: Built-in deployment protection rules for the environment. - /// - deployment_branch_policy: + /// - htmlUrl: + /// - createdAt: The time that the environment was created, in ISO 8601 format. + /// - updatedAt: The time that the environment was last updated, in ISO 8601 format. + /// - protectionRules: Built-in deployment protection rules for the environment. + /// - deploymentBranchPolicy: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - protection_rules: Components.Schemas.environment.protection_rulesPayload? = nil, - deployment_branch_policy: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_settings? = nil + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + protectionRules: Components.Schemas.Environment.ProtectionRulesPayload? = nil, + deploymentBranchPolicy: Components.Schemas.DeploymentBranchPolicySettings? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.url = url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at - self.protection_rules = protection_rules - self.deployment_branch_policy = deployment_branch_policy + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt + self.protectionRules = protectionRules + self.deploymentBranchPolicy = deploymentBranchPolicy } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case url - case html_url - case created_at - case updated_at - case protection_rules - case deployment_branch_policy + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" + case protectionRules = "protection_rules" + case deploymentBranchPolicy = "deployment_branch_policy" } } /// Whether or not a user who created the job is prevented from approving their own job. /// /// - Remark: Generated from `#/components/schemas/prevent-self-review`. - public typealias prevent_hyphen_self_hyphen_review = Swift.Bool + public typealias PreventSelfReview = Swift.Bool /// Details of a deployment branch or tag policy. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy`. - public struct deployment_hyphen_branch_hyphen_policy: Codable, Hashable, Sendable { + public struct DeploymentBranchPolicy: Codable, Hashable, Sendable { /// The unique identifier of the branch or tag policy. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/deployment-branch-policy/node_id`. - public var node_id: Swift.String? + public var nodeId: Swift.String? /// The name pattern that branches or tags must match in order to deploy to the environment. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy/name`. @@ -19886,41 +19895,41 @@ public enum Components { /// Whether this rule targets a branch or tag. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" } /// Whether this rule targets a branch or tag. /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy/type`. - public var _type: Components.Schemas.deployment_hyphen_branch_hyphen_policy._typePayload? - /// Creates a new `deployment_hyphen_branch_hyphen_policy`. + public var _type: Components.Schemas.DeploymentBranchPolicy._TypePayload? + /// Creates a new `DeploymentBranchPolicy`. /// /// - Parameters: /// - id: The unique identifier of the branch or tag policy. - /// - node_id: + /// - nodeId: /// - name: The name pattern that branches or tags must match in order to deploy to the environment. /// - _type: Whether this rule targets a branch or tag. public init( id: Swift.Int? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, name: Swift.String? = nil, - _type: Components.Schemas.deployment_hyphen_branch_hyphen_policy._typePayload? = nil + _type: Components.Schemas.DeploymentBranchPolicy._TypePayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self._type = _type } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case _type = "type" } } /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-name-pattern-with-type`. - public struct deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern_hyphen_with_hyphen_type: Codable, Hashable, Sendable { + public struct DeploymentBranchPolicyNamePatternWithType: Codable, Hashable, Sendable { /// The name pattern that branches or tags must match in order to deploy to the environment. /// /// Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`. @@ -19931,22 +19940,22 @@ public enum Components { /// Whether this rule targets a branch or tag /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-name-pattern-with-type/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" } /// Whether this rule targets a branch or tag /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-name-pattern-with-type/type`. - public var _type: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern_hyphen_with_hyphen_type._typePayload? - /// Creates a new `deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern_hyphen_with_hyphen_type`. + public var _type: Components.Schemas.DeploymentBranchPolicyNamePatternWithType._TypePayload? + /// Creates a new `DeploymentBranchPolicyNamePatternWithType`. /// /// - Parameters: /// - name: The name pattern that branches or tags must match in order to deploy to the environment. /// - _type: Whether this rule targets a branch or tag public init( name: Swift.String, - _type: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern_hyphen_with_hyphen_type._typePayload? = nil + _type: Components.Schemas.DeploymentBranchPolicyNamePatternWithType._TypePayload? = nil ) { self.name = name self._type = _type @@ -19957,7 +19966,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-name-pattern`. - public struct deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern: Codable, Hashable, Sendable { + public struct DeploymentBranchPolicyNamePattern: Codable, Hashable, Sendable { /// The name pattern that branches must match in order to deploy to the environment. /// /// Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`. @@ -19965,7 +19974,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/deployment-branch-policy-name-pattern/name`. public var name: Swift.String - /// Creates a new `deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern`. + /// Creates a new `DeploymentBranchPolicyNamePattern`. /// /// - Parameters: /// - name: The name pattern that branches must match in order to deploy to the environment. @@ -19979,7 +19988,7 @@ public enum Components { /// A GitHub App that is providing a custom deployment protection rule. /// /// - Remark: Generated from `#/components/schemas/custom-deployment-rule-app`. - public struct custom_hyphen_deployment_hyphen_rule_hyphen_app: Codable, Hashable, Sendable { + public struct CustomDeploymentRuleApp: Codable, Hashable, Sendable { /// The unique identifier of the deployment protection rule integration. /// /// - Remark: Generated from `#/components/schemas/custom-deployment-rule-app/id`. @@ -19991,40 +20000,40 @@ public enum Components { /// The URL for the endpoint to get details about the app. /// /// - Remark: Generated from `#/components/schemas/custom-deployment-rule-app/integration_url`. - public var integration_url: Swift.String + public var integrationUrl: Swift.String /// The node ID for the deployment protection rule integration. /// /// - Remark: Generated from `#/components/schemas/custom-deployment-rule-app/node_id`. - public var node_id: Swift.String - /// Creates a new `custom_hyphen_deployment_hyphen_rule_hyphen_app`. + public var nodeId: Swift.String + /// Creates a new `CustomDeploymentRuleApp`. /// /// - Parameters: /// - id: The unique identifier of the deployment protection rule integration. /// - slug: The slugified name of the deployment protection rule integration. - /// - integration_url: The URL for the endpoint to get details about the app. - /// - node_id: The node ID for the deployment protection rule integration. + /// - integrationUrl: The URL for the endpoint to get details about the app. + /// - nodeId: The node ID for the deployment protection rule integration. public init( id: Swift.Int, slug: Swift.String, - integration_url: Swift.String, - node_id: Swift.String + integrationUrl: Swift.String, + nodeId: Swift.String ) { self.id = id self.slug = slug - self.integration_url = integration_url - self.node_id = node_id + self.integrationUrl = integrationUrl + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case id case slug - case integration_url - case node_id + case integrationUrl = "integration_url" + case nodeId = "node_id" } } /// Deployment protection rule /// /// - Remark: Generated from `#/components/schemas/deployment-protection-rule`. - public struct deployment_hyphen_protection_hyphen_rule: Codable, Hashable, Sendable { + public struct DeploymentProtectionRule: Codable, Hashable, Sendable { /// The unique identifier for the deployment protection rule. /// /// - Remark: Generated from `#/components/schemas/deployment-protection-rule/id`. @@ -20032,47 +20041,47 @@ public enum Components { /// The node ID for the deployment protection rule. /// /// - Remark: Generated from `#/components/schemas/deployment-protection-rule/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Whether the deployment protection rule is enabled for the environment. /// /// - Remark: Generated from `#/components/schemas/deployment-protection-rule/enabled`. public var enabled: Swift.Bool /// - Remark: Generated from `#/components/schemas/deployment-protection-rule/app`. - public var app: Components.Schemas.custom_hyphen_deployment_hyphen_rule_hyphen_app - /// Creates a new `deployment_hyphen_protection_hyphen_rule`. + public var app: Components.Schemas.CustomDeploymentRuleApp + /// Creates a new `DeploymentProtectionRule`. /// /// - Parameters: /// - id: The unique identifier for the deployment protection rule. - /// - node_id: The node ID for the deployment protection rule. + /// - nodeId: The node ID for the deployment protection rule. /// - enabled: Whether the deployment protection rule is enabled for the environment. /// - app: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, enabled: Swift.Bool, - app: Components.Schemas.custom_hyphen_deployment_hyphen_rule_hyphen_app + app: Components.Schemas.CustomDeploymentRuleApp ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.enabled = enabled self.app = app } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case enabled case app } } /// - Remark: Generated from `#/components/schemas/hook-response`. - public struct hook_hyphen_response: Codable, Hashable, Sendable { + public struct HookResponse: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/hook-response/code`. public var code: Swift.Int? /// - Remark: Generated from `#/components/schemas/hook-response/status`. public var status: Swift.String? /// - Remark: Generated from `#/components/schemas/hook-response/message`. public var message: Swift.String? - /// Creates a new `hook_hyphen_response`. + /// Creates a new `HookResponse`. /// /// - Parameters: /// - code: @@ -20096,7 +20105,7 @@ public enum Components { /// Webhooks for repositories. /// /// - Remark: Generated from `#/components/schemas/hook`. - public struct hook: Codable, Hashable, Sendable { + public struct Hook: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/hook/type`. public var _type: Swift.String /// Unique identifier of the webhook. @@ -20116,22 +20125,22 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/hook/events`. public var events: [Swift.String] /// - Remark: Generated from `#/components/schemas/hook/config`. - public var config: Components.Schemas.webhook_hyphen_config + public var config: Components.Schemas.WebhookConfig /// - Remark: Generated from `#/components/schemas/hook/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/hook/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/hook/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/hook/test_url`. - public var test_url: Swift.String + public var testUrl: Swift.String /// - Remark: Generated from `#/components/schemas/hook/ping_url`. - public var ping_url: Swift.String + public var pingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/hook/deliveries_url`. - public var deliveries_url: Swift.String? + public var deliveriesUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/hook/last_response`. - public var last_response: Components.Schemas.hook_hyphen_response - /// Creates a new `hook`. + public var lastResponse: Components.Schemas.HookResponse + /// Creates a new `Hook`. /// /// - Parameters: /// - _type: @@ -20140,27 +20149,27 @@ public enum Components { /// - active: Determines whether the hook is actually triggered on pushes. /// - events: Determines what events the hook is triggered for. Default: ['push']. /// - config: - /// - updated_at: - /// - created_at: + /// - updatedAt: + /// - createdAt: /// - url: - /// - test_url: - /// - ping_url: - /// - deliveries_url: - /// - last_response: + /// - testUrl: + /// - pingUrl: + /// - deliveriesUrl: + /// - lastResponse: public init( _type: Swift.String, id: Swift.Int, name: Swift.String, active: Swift.Bool, events: [Swift.String], - config: Components.Schemas.webhook_hyphen_config, - updated_at: Foundation.Date, - created_at: Foundation.Date, + config: Components.Schemas.WebhookConfig, + updatedAt: Foundation.Date, + createdAt: Foundation.Date, url: Swift.String, - test_url: Swift.String, - ping_url: Swift.String, - deliveries_url: Swift.String? = nil, - last_response: Components.Schemas.hook_hyphen_response + testUrl: Swift.String, + pingUrl: Swift.String, + deliveriesUrl: Swift.String? = nil, + lastResponse: Components.Schemas.HookResponse ) { self._type = _type self.id = id @@ -20168,13 +20177,13 @@ public enum Components { self.active = active self.events = events self.config = config - self.updated_at = updated_at - self.created_at = created_at + self.updatedAt = updatedAt + self.createdAt = createdAt self.url = url - self.test_url = test_url - self.ping_url = ping_url - self.deliveries_url = deliveries_url - self.last_response = last_response + self.testUrl = testUrl + self.pingUrl = pingUrl + self.deliveriesUrl = deliveriesUrl + self.lastResponse = lastResponse } public enum CodingKeys: String, CodingKey { case _type = "type" @@ -20183,19 +20192,19 @@ public enum Components { case active case events case config - case updated_at - case created_at + case updatedAt = "updated_at" + case createdAt = "created_at" case url - case test_url - case ping_url - case deliveries_url - case last_response + case testUrl = "test_url" + case pingUrl = "ping_url" + case deliveriesUrl = "deliveries_url" + case lastResponse = "last_response" } } /// An SSH key granting access to a single repository. /// /// - Remark: Generated from `#/components/schemas/deploy-key`. - public struct deploy_hyphen_key: Codable, Hashable, Sendable { + public struct DeployKey: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/deploy-key/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/deploy-key/key`. @@ -20207,16 +20216,16 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/deploy-key/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/deploy-key/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/deploy-key/read_only`. - public var read_only: Swift.Bool + public var readOnly: Swift.Bool /// - Remark: Generated from `#/components/schemas/deploy-key/added_by`. - public var added_by: Swift.String? + public var addedBy: Swift.String? /// - Remark: Generated from `#/components/schemas/deploy-key/last_used`. - public var last_used: Swift.String? + public var lastUsed: Swift.String? /// - Remark: Generated from `#/components/schemas/deploy-key/enabled`. public var enabled: Swift.Bool? - /// Creates a new `deploy_hyphen_key`. + /// Creates a new `DeployKey`. /// /// - Parameters: /// - id: @@ -20224,10 +20233,10 @@ public enum Components { /// - url: /// - title: /// - verified: - /// - created_at: - /// - read_only: - /// - added_by: - /// - last_used: + /// - createdAt: + /// - readOnly: + /// - addedBy: + /// - lastUsed: /// - enabled: public init( id: Swift.Int, @@ -20235,10 +20244,10 @@ public enum Components { url: Swift.String, title: Swift.String, verified: Swift.Bool, - created_at: Swift.String, - read_only: Swift.Bool, - added_by: Swift.String? = nil, - last_used: Swift.String? = nil, + createdAt: Swift.String, + readOnly: Swift.Bool, + addedBy: Swift.String? = nil, + lastUsed: Swift.String? = nil, enabled: Swift.Bool? = nil ) { self.id = id @@ -20246,10 +20255,10 @@ public enum Components { self.url = url self.title = title self.verified = verified - self.created_at = created_at - self.read_only = read_only - self.added_by = added_by - self.last_used = last_used + self.createdAt = createdAt + self.readOnly = readOnly + self.addedBy = addedBy + self.lastUsed = lastUsed self.enabled = enabled } public enum CodingKeys: String, CodingKey { @@ -20258,20 +20267,20 @@ public enum Components { case url case title case verified - case created_at - case read_only - case added_by - case last_used + case createdAt = "created_at" + case readOnly = "read_only" + case addedBy = "added_by" + case lastUsed = "last_used" case enabled } } /// Language /// /// - Remark: Generated from `#/components/schemas/language`. - public struct language: Codable, Hashable, Sendable { + public struct Language: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: [String: Swift.Int] - /// Creates a new `language`. + /// Creates a new `Language`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -20288,47 +20297,47 @@ public enum Components { /// Results of a successful merge upstream request /// /// - Remark: Generated from `#/components/schemas/merged-upstream`. - public struct merged_hyphen_upstream: Codable, Hashable, Sendable { + public struct MergedUpstream: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/merged-upstream/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/merged-upstream/merge_type`. - @frozen public enum merge_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum MergeTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case merge = "merge" - case fast_hyphen_forward = "fast-forward" + case fastForward = "fast-forward" case none = "none" } /// - Remark: Generated from `#/components/schemas/merged-upstream/merge_type`. - public var merge_type: Components.Schemas.merged_hyphen_upstream.merge_typePayload? + public var mergeType: Components.Schemas.MergedUpstream.MergeTypePayload? /// - Remark: Generated from `#/components/schemas/merged-upstream/base_branch`. - public var base_branch: Swift.String? - /// Creates a new `merged_hyphen_upstream`. + public var baseBranch: Swift.String? + /// Creates a new `MergedUpstream`. /// /// - Parameters: /// - message: - /// - merge_type: - /// - base_branch: + /// - mergeType: + /// - baseBranch: public init( message: Swift.String? = nil, - merge_type: Components.Schemas.merged_hyphen_upstream.merge_typePayload? = nil, - base_branch: Swift.String? = nil + mergeType: Components.Schemas.MergedUpstream.MergeTypePayload? = nil, + baseBranch: Swift.String? = nil ) { self.message = message - self.merge_type = merge_type - self.base_branch = base_branch + self.mergeType = mergeType + self.baseBranch = baseBranch } public enum CodingKeys: String, CodingKey { case message - case merge_type - case base_branch + case mergeType = "merge_type" + case baseBranch = "base_branch" } } /// - Remark: Generated from `#/components/schemas/pages-source-hash`. - public struct pages_hyphen_source_hyphen_hash: Codable, Hashable, Sendable { + public struct PagesSourceHash: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pages-source-hash/branch`. public var branch: Swift.String /// - Remark: Generated from `#/components/schemas/pages-source-hash/path`. public var path: Swift.String - /// Creates a new `pages_hyphen_source_hyphen_hash`. + /// Creates a new `PagesSourceHash`. /// /// - Parameters: /// - branch: @@ -20346,24 +20355,24 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/pages-https-certificate`. - public struct pages_hyphen_https_hyphen_certificate: Codable, Hashable, Sendable { + public struct PagesHttpsCertificate: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pages-https-certificate/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case new = "new" - case authorization_created = "authorization_created" - case authorization_pending = "authorization_pending" + case authorizationCreated = "authorization_created" + case authorizationPending = "authorization_pending" case authorized = "authorized" - case authorization_revoked = "authorization_revoked" + case authorizationRevoked = "authorization_revoked" case issued = "issued" case uploaded = "uploaded" case approved = "approved" case errored = "errored" - case bad_authz = "bad_authz" - case destroy_pending = "destroy_pending" - case dns_changed = "dns_changed" + case badAuthz = "bad_authz" + case destroyPending = "destroy_pending" + case dnsChanged = "dns_changed" } /// - Remark: Generated from `#/components/schemas/pages-https-certificate/state`. - public var state: Components.Schemas.pages_hyphen_https_hyphen_certificate.statePayload + public var state: Components.Schemas.PagesHttpsCertificate.StatePayload /// - Remark: Generated from `#/components/schemas/pages-https-certificate/description`. public var description: Swift.String /// Array of the domain set and its alternate name (if it is configured) @@ -20371,36 +20380,36 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pages-https-certificate/domains`. public var domains: [Swift.String] /// - Remark: Generated from `#/components/schemas/pages-https-certificate/expires_at`. - public var expires_at: Swift.String? - /// Creates a new `pages_hyphen_https_hyphen_certificate`. + public var expiresAt: Swift.String? + /// Creates a new `PagesHttpsCertificate`. /// /// - Parameters: /// - state: /// - description: /// - domains: Array of the domain set and its alternate name (if it is configured) - /// - expires_at: + /// - expiresAt: public init( - state: Components.Schemas.pages_hyphen_https_hyphen_certificate.statePayload, + state: Components.Schemas.PagesHttpsCertificate.StatePayload, description: Swift.String, domains: [Swift.String], - expires_at: Swift.String? = nil + expiresAt: Swift.String? = nil ) { self.state = state self.description = description self.domains = domains - self.expires_at = expires_at + self.expiresAt = expiresAt } public enum CodingKeys: String, CodingKey { case state case description case domains - case expires_at + case expiresAt = "expires_at" } } /// The configuration for GitHub Pages for a repository. /// /// - Remark: Generated from `#/components/schemas/page`. - public struct page: Codable, Hashable, Sendable { + public struct Page: Codable, Hashable, Sendable { /// The API address for accessing this Page resource. /// /// - Remark: Generated from `#/components/schemas/page/url`. @@ -20408,7 +20417,7 @@ public enum Components { /// The status of the most recent build of the Page. /// /// - Remark: Generated from `#/components/schemas/page/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case built = "built" case building = "building" case errored = "errored" @@ -20416,7 +20425,7 @@ public enum Components { /// The status of the most recent build of the Page. /// /// - Remark: Generated from `#/components/schemas/page/status`. - public var status: Components.Schemas.page.statusPayload? + public var status: Components.Schemas.Page.StatusPayload? /// The Pages site's custom domain /// /// - Remark: Generated from `#/components/schemas/page/cname`. @@ -20424,7 +20433,7 @@ public enum Components { /// The state if the domain is verified /// /// - Remark: Generated from `#/components/schemas/page/protected_domain_state`. - @frozen public enum protected_domain_statePayload: String, Codable, Hashable, Sendable { + @frozen public enum ProtectedDomainStatePayload: String, Codable, Hashable, Sendable, CaseIterable { case pending = "pending" case verified = "verified" case unverified = "unverified" @@ -20432,112 +20441,112 @@ public enum Components { /// The state if the domain is verified /// /// - Remark: Generated from `#/components/schemas/page/protected_domain_state`. - public var protected_domain_state: Components.Schemas.page.protected_domain_statePayload? + public var protectedDomainState: Components.Schemas.Page.ProtectedDomainStatePayload? /// The timestamp when a pending domain becomes unverified. /// /// - Remark: Generated from `#/components/schemas/page/pending_domain_unverified_at`. - public var pending_domain_unverified_at: Foundation.Date? + public var pendingDomainUnverifiedAt: Foundation.Date? /// Whether the Page has a custom 404 page. /// /// - Remark: Generated from `#/components/schemas/page/custom_404`. - public var custom_404: Swift.Bool + public var custom404: Swift.Bool /// The web address the Page can be accessed from. /// /// - Remark: Generated from `#/components/schemas/page/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// The process in which the Page will be built. /// /// - Remark: Generated from `#/components/schemas/page/build_type`. - @frozen public enum build_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum BuildTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case legacy = "legacy" case workflow = "workflow" } /// The process in which the Page will be built. /// /// - Remark: Generated from `#/components/schemas/page/build_type`. - public var build_type: Components.Schemas.page.build_typePayload? + public var buildType: Components.Schemas.Page.BuildTypePayload? /// - Remark: Generated from `#/components/schemas/page/source`. - public var source: Components.Schemas.pages_hyphen_source_hyphen_hash? + public var source: Components.Schemas.PagesSourceHash? /// Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. /// /// - Remark: Generated from `#/components/schemas/page/public`. public var _public: Swift.Bool /// - Remark: Generated from `#/components/schemas/page/https_certificate`. - public var https_certificate: Components.Schemas.pages_hyphen_https_hyphen_certificate? + public var httpsCertificate: Components.Schemas.PagesHttpsCertificate? /// Whether https is enabled on the domain /// /// - Remark: Generated from `#/components/schemas/page/https_enforced`. - public var https_enforced: Swift.Bool? - /// Creates a new `page`. + public var httpsEnforced: Swift.Bool? + /// Creates a new `Page`. /// /// - Parameters: /// - url: The API address for accessing this Page resource. /// - status: The status of the most recent build of the Page. /// - cname: The Pages site's custom domain - /// - protected_domain_state: The state if the domain is verified - /// - pending_domain_unverified_at: The timestamp when a pending domain becomes unverified. - /// - custom_404: Whether the Page has a custom 404 page. - /// - html_url: The web address the Page can be accessed from. - /// - build_type: The process in which the Page will be built. + /// - protectedDomainState: The state if the domain is verified + /// - pendingDomainUnverifiedAt: The timestamp when a pending domain becomes unverified. + /// - custom404: Whether the Page has a custom 404 page. + /// - htmlUrl: The web address the Page can be accessed from. + /// - buildType: The process in which the Page will be built. /// - source: /// - _public: Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. - /// - https_certificate: - /// - https_enforced: Whether https is enabled on the domain + /// - httpsCertificate: + /// - httpsEnforced: Whether https is enabled on the domain public init( url: Swift.String, - status: Components.Schemas.page.statusPayload? = nil, + status: Components.Schemas.Page.StatusPayload? = nil, cname: Swift.String? = nil, - protected_domain_state: Components.Schemas.page.protected_domain_statePayload? = nil, - pending_domain_unverified_at: Foundation.Date? = nil, - custom_404: Swift.Bool, - html_url: Swift.String? = nil, - build_type: Components.Schemas.page.build_typePayload? = nil, - source: Components.Schemas.pages_hyphen_source_hyphen_hash? = nil, + protectedDomainState: Components.Schemas.Page.ProtectedDomainStatePayload? = nil, + pendingDomainUnverifiedAt: Foundation.Date? = nil, + custom404: Swift.Bool, + htmlUrl: Swift.String? = nil, + buildType: Components.Schemas.Page.BuildTypePayload? = nil, + source: Components.Schemas.PagesSourceHash? = nil, _public: Swift.Bool, - https_certificate: Components.Schemas.pages_hyphen_https_hyphen_certificate? = nil, - https_enforced: Swift.Bool? = nil + httpsCertificate: Components.Schemas.PagesHttpsCertificate? = nil, + httpsEnforced: Swift.Bool? = nil ) { self.url = url self.status = status self.cname = cname - self.protected_domain_state = protected_domain_state - self.pending_domain_unverified_at = pending_domain_unverified_at - self.custom_404 = custom_404 - self.html_url = html_url - self.build_type = build_type + self.protectedDomainState = protectedDomainState + self.pendingDomainUnverifiedAt = pendingDomainUnverifiedAt + self.custom404 = custom404 + self.htmlUrl = htmlUrl + self.buildType = buildType self.source = source self._public = _public - self.https_certificate = https_certificate - self.https_enforced = https_enforced + self.httpsCertificate = httpsCertificate + self.httpsEnforced = httpsEnforced } public enum CodingKeys: String, CodingKey { case url case status case cname - case protected_domain_state - case pending_domain_unverified_at - case custom_404 - case html_url - case build_type + case protectedDomainState = "protected_domain_state" + case pendingDomainUnverifiedAt = "pending_domain_unverified_at" + case custom404 = "custom_404" + case htmlUrl = "html_url" + case buildType = "build_type" case source case _public = "public" - case https_certificate - case https_enforced + case httpsCertificate = "https_certificate" + case httpsEnforced = "https_enforced" } } /// Page Build /// /// - Remark: Generated from `#/components/schemas/page-build`. - public struct page_hyphen_build: Codable, Hashable, Sendable { + public struct PageBuild: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/page-build/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/page-build/status`. public var status: Swift.String /// - Remark: Generated from `#/components/schemas/page-build/error`. - public struct errorPayload: Codable, Hashable, Sendable { + public struct _ErrorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/page-build/error/message`. public var message: Swift.String? - /// Creates a new `errorPayload`. + /// Creates a new `_ErrorPayload`. /// /// - Parameters: /// - message: @@ -20549,18 +20558,18 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/page-build/error`. - public var error: Components.Schemas.page_hyphen_build.errorPayload + public var error: Components.Schemas.PageBuild._ErrorPayload /// - Remark: Generated from `#/components/schemas/page-build/pusher`. - public var pusher: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var pusher: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/page-build/commit`. public var commit: Swift.String /// - Remark: Generated from `#/components/schemas/page-build/duration`. public var duration: Swift.Int /// - Remark: Generated from `#/components/schemas/page-build/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/page-build/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `page_hyphen_build`. + public var updatedAt: Foundation.Date + /// Creates a new `PageBuild`. /// /// - Parameters: /// - url: @@ -20569,17 +20578,17 @@ public enum Components { /// - pusher: /// - commit: /// - duration: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( url: Swift.String, status: Swift.String, - error: Components.Schemas.page_hyphen_build.errorPayload, - pusher: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + error: Components.Schemas.PageBuild._ErrorPayload, + pusher: Components.Schemas.NullableSimpleUser? = nil, commit: Swift.String, duration: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.url = url self.status = status @@ -20587,8 +20596,8 @@ public enum Components { self.pusher = pusher self.commit = commit self.duration = duration - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case url @@ -20597,19 +20606,19 @@ public enum Components { case pusher case commit case duration - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Page Build Status /// /// - Remark: Generated from `#/components/schemas/page-build-status`. - public struct page_hyphen_build_hyphen_status: Codable, Hashable, Sendable { + public struct PageBuildStatus: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/page-build-status/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/page-build-status/status`. public var status: Swift.String - /// Creates a new `page_hyphen_build_hyphen_status`. + /// Creates a new `PageBuildStatus`. /// /// - Parameters: /// - url: @@ -20629,11 +20638,11 @@ public enum Components { /// The GitHub Pages deployment status. /// /// - Remark: Generated from `#/components/schemas/page-deployment`. - public struct page_hyphen_deployment: Codable, Hashable, Sendable { + public struct PageDeployment: Codable, Hashable, Sendable { /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. /// /// - Remark: Generated from `#/components/schemas/page-deployment/id`. - @frozen public enum idPayload: Codable, Hashable, Sendable { + @frozen public enum IdPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/page-deployment/id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/schemas/page-deployment/id/case2`. @@ -20670,71 +20679,71 @@ public enum Components { /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. /// /// - Remark: Generated from `#/components/schemas/page-deployment/id`. - public var id: Components.Schemas.page_hyphen_deployment.idPayload + public var id: Components.Schemas.PageDeployment.IdPayload /// The URI to monitor GitHub Pages deployment status. /// /// - Remark: Generated from `#/components/schemas/page-deployment/status_url`. - public var status_url: Swift.String + public var statusUrl: Swift.String /// The URI to the deployed GitHub Pages. /// /// - Remark: Generated from `#/components/schemas/page-deployment/page_url`. - public var page_url: Swift.String + public var pageUrl: Swift.String /// The URI to the deployed GitHub Pages preview. /// /// - Remark: Generated from `#/components/schemas/page-deployment/preview_url`. - public var preview_url: Swift.String? - /// Creates a new `page_hyphen_deployment`. + public var previewUrl: Swift.String? + /// Creates a new `PageDeployment`. /// /// - Parameters: /// - id: The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. - /// - status_url: The URI to monitor GitHub Pages deployment status. - /// - page_url: The URI to the deployed GitHub Pages. - /// - preview_url: The URI to the deployed GitHub Pages preview. + /// - statusUrl: The URI to monitor GitHub Pages deployment status. + /// - pageUrl: The URI to the deployed GitHub Pages. + /// - previewUrl: The URI to the deployed GitHub Pages preview. public init( - id: Components.Schemas.page_hyphen_deployment.idPayload, - status_url: Swift.String, - page_url: Swift.String, - preview_url: Swift.String? = nil + id: Components.Schemas.PageDeployment.IdPayload, + statusUrl: Swift.String, + pageUrl: Swift.String, + previewUrl: Swift.String? = nil ) { self.id = id - self.status_url = status_url - self.page_url = page_url - self.preview_url = preview_url + self.statusUrl = statusUrl + self.pageUrl = pageUrl + self.previewUrl = previewUrl } public enum CodingKeys: String, CodingKey { case id - case status_url - case page_url - case preview_url + case statusUrl = "status_url" + case pageUrl = "page_url" + case previewUrl = "preview_url" } } /// - Remark: Generated from `#/components/schemas/pages-deployment-status`. - public struct pages_hyphen_deployment_hyphen_status: Codable, Hashable, Sendable { + public struct PagesDeploymentStatus: Codable, Hashable, Sendable { /// The current status of the deployment. /// /// - Remark: Generated from `#/components/schemas/pages-deployment-status/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { - case deployment_in_progress = "deployment_in_progress" - case syncing_files = "syncing_files" - case finished_file_sync = "finished_file_sync" - case updating_pages = "updating_pages" - case purging_cdn = "purging_cdn" - case deployment_cancelled = "deployment_cancelled" - case deployment_failed = "deployment_failed" - case deployment_content_failed = "deployment_content_failed" - case deployment_attempt_error = "deployment_attempt_error" - case deployment_lost = "deployment_lost" + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { + case deploymentInProgress = "deployment_in_progress" + case syncingFiles = "syncing_files" + case finishedFileSync = "finished_file_sync" + case updatingPages = "updating_pages" + case purgingCdn = "purging_cdn" + case deploymentCancelled = "deployment_cancelled" + case deploymentFailed = "deployment_failed" + case deploymentContentFailed = "deployment_content_failed" + case deploymentAttemptError = "deployment_attempt_error" + case deploymentLost = "deployment_lost" case succeed = "succeed" } /// The current status of the deployment. /// /// - Remark: Generated from `#/components/schemas/pages-deployment-status/status`. - public var status: Components.Schemas.pages_hyphen_deployment_hyphen_status.statusPayload? - /// Creates a new `pages_hyphen_deployment_hyphen_status`. + public var status: Components.Schemas.PagesDeploymentStatus.StatusPayload? + /// Creates a new `PagesDeploymentStatus`. /// /// - Parameters: /// - status: The current status of the deployment. - public init(status: Components.Schemas.pages_hyphen_deployment_hyphen_status.statusPayload? = nil) { + public init(status: Components.Schemas.PagesDeploymentStatus.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -20744,9 +20753,9 @@ public enum Components { /// Pages Health Check Status /// /// - Remark: Generated from `#/components/schemas/pages-health-check`. - public struct pages_hyphen_health_hyphen_check: Codable, Hashable, Sendable { + public struct PagesHealthCheck: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pages-health-check/domain`. - public struct domainPayload: Codable, Hashable, Sendable { + public struct DomainPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/host`. public var host: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/uri`. @@ -20754,180 +20763,180 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/nameservers`. public var nameservers: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/dns_resolves`. - public var dns_resolves: Swift.Bool? + public var dnsResolves: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_proxied`. - public var is_proxied: Swift.Bool? + public var isProxied: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_cloudflare_ip`. - public var is_cloudflare_ip: Swift.Bool? + public var isCloudflareIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_fastly_ip`. - public var is_fastly_ip: Swift.Bool? + public var isFastlyIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_old_ip_address`. - public var is_old_ip_address: Swift.Bool? + public var isOldIpAddress: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_a_record`. - public var is_a_record: Swift.Bool? + public var isARecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/has_cname_record`. - public var has_cname_record: Swift.Bool? + public var hasCnameRecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/has_mx_records_present`. - public var has_mx_records_present: Swift.Bool? + public var hasMxRecordsPresent: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_valid_domain`. - public var is_valid_domain: Swift.Bool? + public var isValidDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_apex_domain`. - public var is_apex_domain: Swift.Bool? + public var isApexDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/should_be_a_record`. - public var should_be_a_record: Swift.Bool? + public var shouldBeARecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_cname_to_github_user_domain`. - public var is_cname_to_github_user_domain: Swift.Bool? + public var isCnameToGithubUserDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_cname_to_pages_dot_github_dot_com`. - public var is_cname_to_pages_dot_github_dot_com: Swift.Bool? + public var isCnameToPagesDotGithubDotCom: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_cname_to_fastly`. - public var is_cname_to_fastly: Swift.Bool? + public var isCnameToFastly: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_pointed_to_github_pages_ip`. - public var is_pointed_to_github_pages_ip: Swift.Bool? + public var isPointedToGithubPagesIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_non_github_pages_ip_present`. - public var is_non_github_pages_ip_present: Swift.Bool? + public var isNonGithubPagesIpPresent: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_pages_domain`. - public var is_pages_domain: Swift.Bool? + public var isPagesDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_served_by_pages`. - public var is_served_by_pages: Swift.Bool? + public var isServedByPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_valid`. - public var is_valid: Swift.Bool? + public var isValid: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/responds_to_https`. - public var responds_to_https: Swift.Bool? + public var respondsToHttps: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/enforces_https`. - public var enforces_https: Swift.Bool? + public var enforcesHttps: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/https_error`. - public var https_error: Swift.String? + public var httpsError: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/is_https_eligible`. - public var is_https_eligible: Swift.Bool? + public var isHttpsEligible: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/domain/caa_error`. - public var caa_error: Swift.String? - /// Creates a new `domainPayload`. + public var caaError: Swift.String? + /// Creates a new `DomainPayload`. /// /// - Parameters: /// - host: /// - uri: /// - nameservers: - /// - dns_resolves: - /// - is_proxied: - /// - is_cloudflare_ip: - /// - is_fastly_ip: - /// - is_old_ip_address: - /// - is_a_record: - /// - has_cname_record: - /// - has_mx_records_present: - /// - is_valid_domain: - /// - is_apex_domain: - /// - should_be_a_record: - /// - is_cname_to_github_user_domain: - /// - is_cname_to_pages_dot_github_dot_com: - /// - is_cname_to_fastly: - /// - is_pointed_to_github_pages_ip: - /// - is_non_github_pages_ip_present: - /// - is_pages_domain: - /// - is_served_by_pages: - /// - is_valid: + /// - dnsResolves: + /// - isProxied: + /// - isCloudflareIp: + /// - isFastlyIp: + /// - isOldIpAddress: + /// - isARecord: + /// - hasCnameRecord: + /// - hasMxRecordsPresent: + /// - isValidDomain: + /// - isApexDomain: + /// - shouldBeARecord: + /// - isCnameToGithubUserDomain: + /// - isCnameToPagesDotGithubDotCom: + /// - isCnameToFastly: + /// - isPointedToGithubPagesIp: + /// - isNonGithubPagesIpPresent: + /// - isPagesDomain: + /// - isServedByPages: + /// - isValid: /// - reason: - /// - responds_to_https: - /// - enforces_https: - /// - https_error: - /// - is_https_eligible: - /// - caa_error: + /// - respondsToHttps: + /// - enforcesHttps: + /// - httpsError: + /// - isHttpsEligible: + /// - caaError: public init( host: Swift.String? = nil, uri: Swift.String? = nil, nameservers: Swift.String? = nil, - dns_resolves: Swift.Bool? = nil, - is_proxied: Swift.Bool? = nil, - is_cloudflare_ip: Swift.Bool? = nil, - is_fastly_ip: Swift.Bool? = nil, - is_old_ip_address: Swift.Bool? = nil, - is_a_record: Swift.Bool? = nil, - has_cname_record: Swift.Bool? = nil, - has_mx_records_present: Swift.Bool? = nil, - is_valid_domain: Swift.Bool? = nil, - is_apex_domain: Swift.Bool? = nil, - should_be_a_record: Swift.Bool? = nil, - is_cname_to_github_user_domain: Swift.Bool? = nil, - is_cname_to_pages_dot_github_dot_com: Swift.Bool? = nil, - is_cname_to_fastly: Swift.Bool? = nil, - is_pointed_to_github_pages_ip: Swift.Bool? = nil, - is_non_github_pages_ip_present: Swift.Bool? = nil, - is_pages_domain: Swift.Bool? = nil, - is_served_by_pages: Swift.Bool? = nil, - is_valid: Swift.Bool? = nil, + dnsResolves: Swift.Bool? = nil, + isProxied: Swift.Bool? = nil, + isCloudflareIp: Swift.Bool? = nil, + isFastlyIp: Swift.Bool? = nil, + isOldIpAddress: Swift.Bool? = nil, + isARecord: Swift.Bool? = nil, + hasCnameRecord: Swift.Bool? = nil, + hasMxRecordsPresent: Swift.Bool? = nil, + isValidDomain: Swift.Bool? = nil, + isApexDomain: Swift.Bool? = nil, + shouldBeARecord: Swift.Bool? = nil, + isCnameToGithubUserDomain: Swift.Bool? = nil, + isCnameToPagesDotGithubDotCom: Swift.Bool? = nil, + isCnameToFastly: Swift.Bool? = nil, + isPointedToGithubPagesIp: Swift.Bool? = nil, + isNonGithubPagesIpPresent: Swift.Bool? = nil, + isPagesDomain: Swift.Bool? = nil, + isServedByPages: Swift.Bool? = nil, + isValid: Swift.Bool? = nil, reason: Swift.String? = nil, - responds_to_https: Swift.Bool? = nil, - enforces_https: Swift.Bool? = nil, - https_error: Swift.String? = nil, - is_https_eligible: Swift.Bool? = nil, - caa_error: Swift.String? = nil + respondsToHttps: Swift.Bool? = nil, + enforcesHttps: Swift.Bool? = nil, + httpsError: Swift.String? = nil, + isHttpsEligible: Swift.Bool? = nil, + caaError: Swift.String? = nil ) { self.host = host self.uri = uri self.nameservers = nameservers - self.dns_resolves = dns_resolves - self.is_proxied = is_proxied - self.is_cloudflare_ip = is_cloudflare_ip - self.is_fastly_ip = is_fastly_ip - self.is_old_ip_address = is_old_ip_address - self.is_a_record = is_a_record - self.has_cname_record = has_cname_record - self.has_mx_records_present = has_mx_records_present - self.is_valid_domain = is_valid_domain - self.is_apex_domain = is_apex_domain - self.should_be_a_record = should_be_a_record - self.is_cname_to_github_user_domain = is_cname_to_github_user_domain - self.is_cname_to_pages_dot_github_dot_com = is_cname_to_pages_dot_github_dot_com - self.is_cname_to_fastly = is_cname_to_fastly - self.is_pointed_to_github_pages_ip = is_pointed_to_github_pages_ip - self.is_non_github_pages_ip_present = is_non_github_pages_ip_present - self.is_pages_domain = is_pages_domain - self.is_served_by_pages = is_served_by_pages - self.is_valid = is_valid + self.dnsResolves = dnsResolves + self.isProxied = isProxied + self.isCloudflareIp = isCloudflareIp + self.isFastlyIp = isFastlyIp + self.isOldIpAddress = isOldIpAddress + self.isARecord = isARecord + self.hasCnameRecord = hasCnameRecord + self.hasMxRecordsPresent = hasMxRecordsPresent + self.isValidDomain = isValidDomain + self.isApexDomain = isApexDomain + self.shouldBeARecord = shouldBeARecord + self.isCnameToGithubUserDomain = isCnameToGithubUserDomain + self.isCnameToPagesDotGithubDotCom = isCnameToPagesDotGithubDotCom + self.isCnameToFastly = isCnameToFastly + self.isPointedToGithubPagesIp = isPointedToGithubPagesIp + self.isNonGithubPagesIpPresent = isNonGithubPagesIpPresent + self.isPagesDomain = isPagesDomain + self.isServedByPages = isServedByPages + self.isValid = isValid self.reason = reason - self.responds_to_https = responds_to_https - self.enforces_https = enforces_https - self.https_error = https_error - self.is_https_eligible = is_https_eligible - self.caa_error = caa_error + self.respondsToHttps = respondsToHttps + self.enforcesHttps = enforcesHttps + self.httpsError = httpsError + self.isHttpsEligible = isHttpsEligible + self.caaError = caaError } public enum CodingKeys: String, CodingKey { case host case uri case nameservers - case dns_resolves - case is_proxied - case is_cloudflare_ip - case is_fastly_ip - case is_old_ip_address - case is_a_record - case has_cname_record - case has_mx_records_present - case is_valid_domain - case is_apex_domain - case should_be_a_record - case is_cname_to_github_user_domain - case is_cname_to_pages_dot_github_dot_com - case is_cname_to_fastly - case is_pointed_to_github_pages_ip - case is_non_github_pages_ip_present - case is_pages_domain - case is_served_by_pages - case is_valid + case dnsResolves = "dns_resolves" + case isProxied = "is_proxied" + case isCloudflareIp = "is_cloudflare_ip" + case isFastlyIp = "is_fastly_ip" + case isOldIpAddress = "is_old_ip_address" + case isARecord = "is_a_record" + case hasCnameRecord = "has_cname_record" + case hasMxRecordsPresent = "has_mx_records_present" + case isValidDomain = "is_valid_domain" + case isApexDomain = "is_apex_domain" + case shouldBeARecord = "should_be_a_record" + case isCnameToGithubUserDomain = "is_cname_to_github_user_domain" + case isCnameToPagesDotGithubDotCom = "is_cname_to_pages_dot_github_dot_com" + case isCnameToFastly = "is_cname_to_fastly" + case isPointedToGithubPagesIp = "is_pointed_to_github_pages_ip" + case isNonGithubPagesIpPresent = "is_non_github_pages_ip_present" + case isPagesDomain = "is_pages_domain" + case isServedByPages = "is_served_by_pages" + case isValid = "is_valid" case reason - case responds_to_https - case enforces_https - case https_error - case is_https_eligible - case caa_error + case respondsToHttps = "responds_to_https" + case enforcesHttps = "enforces_https" + case httpsError = "https_error" + case isHttpsEligible = "is_https_eligible" + case caaError = "caa_error" } } /// - Remark: Generated from `#/components/schemas/pages-health-check/domain`. - public var domain: Components.Schemas.pages_hyphen_health_hyphen_check.domainPayload? + public var domain: Components.Schemas.PagesHealthCheck.DomainPayload? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain`. - public struct alt_domainPayload: Codable, Hashable, Sendable { + public struct AltDomainPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/host`. public var host: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/uri`. @@ -20935,207 +20944,207 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/nameservers`. public var nameservers: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/dns_resolves`. - public var dns_resolves: Swift.Bool? + public var dnsResolves: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_proxied`. - public var is_proxied: Swift.Bool? + public var isProxied: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_cloudflare_ip`. - public var is_cloudflare_ip: Swift.Bool? + public var isCloudflareIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_fastly_ip`. - public var is_fastly_ip: Swift.Bool? + public var isFastlyIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_old_ip_address`. - public var is_old_ip_address: Swift.Bool? + public var isOldIpAddress: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_a_record`. - public var is_a_record: Swift.Bool? + public var isARecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/has_cname_record`. - public var has_cname_record: Swift.Bool? + public var hasCnameRecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/has_mx_records_present`. - public var has_mx_records_present: Swift.Bool? + public var hasMxRecordsPresent: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_valid_domain`. - public var is_valid_domain: Swift.Bool? + public var isValidDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_apex_domain`. - public var is_apex_domain: Swift.Bool? + public var isApexDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/should_be_a_record`. - public var should_be_a_record: Swift.Bool? + public var shouldBeARecord: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_cname_to_github_user_domain`. - public var is_cname_to_github_user_domain: Swift.Bool? + public var isCnameToGithubUserDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_cname_to_pages_dot_github_dot_com`. - public var is_cname_to_pages_dot_github_dot_com: Swift.Bool? + public var isCnameToPagesDotGithubDotCom: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_cname_to_fastly`. - public var is_cname_to_fastly: Swift.Bool? + public var isCnameToFastly: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_pointed_to_github_pages_ip`. - public var is_pointed_to_github_pages_ip: Swift.Bool? + public var isPointedToGithubPagesIp: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_non_github_pages_ip_present`. - public var is_non_github_pages_ip_present: Swift.Bool? + public var isNonGithubPagesIpPresent: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_pages_domain`. - public var is_pages_domain: Swift.Bool? + public var isPagesDomain: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_served_by_pages`. - public var is_served_by_pages: Swift.Bool? + public var isServedByPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_valid`. - public var is_valid: Swift.Bool? + public var isValid: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/reason`. public var reason: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/responds_to_https`. - public var responds_to_https: Swift.Bool? + public var respondsToHttps: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/enforces_https`. - public var enforces_https: Swift.Bool? + public var enforcesHttps: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/https_error`. - public var https_error: Swift.String? + public var httpsError: Swift.String? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/is_https_eligible`. - public var is_https_eligible: Swift.Bool? + public var isHttpsEligible: Swift.Bool? /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain/caa_error`. - public var caa_error: Swift.String? - /// Creates a new `alt_domainPayload`. + public var caaError: Swift.String? + /// Creates a new `AltDomainPayload`. /// /// - Parameters: /// - host: /// - uri: /// - nameservers: - /// - dns_resolves: - /// - is_proxied: - /// - is_cloudflare_ip: - /// - is_fastly_ip: - /// - is_old_ip_address: - /// - is_a_record: - /// - has_cname_record: - /// - has_mx_records_present: - /// - is_valid_domain: - /// - is_apex_domain: - /// - should_be_a_record: - /// - is_cname_to_github_user_domain: - /// - is_cname_to_pages_dot_github_dot_com: - /// - is_cname_to_fastly: - /// - is_pointed_to_github_pages_ip: - /// - is_non_github_pages_ip_present: - /// - is_pages_domain: - /// - is_served_by_pages: - /// - is_valid: + /// - dnsResolves: + /// - isProxied: + /// - isCloudflareIp: + /// - isFastlyIp: + /// - isOldIpAddress: + /// - isARecord: + /// - hasCnameRecord: + /// - hasMxRecordsPresent: + /// - isValidDomain: + /// - isApexDomain: + /// - shouldBeARecord: + /// - isCnameToGithubUserDomain: + /// - isCnameToPagesDotGithubDotCom: + /// - isCnameToFastly: + /// - isPointedToGithubPagesIp: + /// - isNonGithubPagesIpPresent: + /// - isPagesDomain: + /// - isServedByPages: + /// - isValid: /// - reason: - /// - responds_to_https: - /// - enforces_https: - /// - https_error: - /// - is_https_eligible: - /// - caa_error: + /// - respondsToHttps: + /// - enforcesHttps: + /// - httpsError: + /// - isHttpsEligible: + /// - caaError: public init( host: Swift.String? = nil, uri: Swift.String? = nil, nameservers: Swift.String? = nil, - dns_resolves: Swift.Bool? = nil, - is_proxied: Swift.Bool? = nil, - is_cloudflare_ip: Swift.Bool? = nil, - is_fastly_ip: Swift.Bool? = nil, - is_old_ip_address: Swift.Bool? = nil, - is_a_record: Swift.Bool? = nil, - has_cname_record: Swift.Bool? = nil, - has_mx_records_present: Swift.Bool? = nil, - is_valid_domain: Swift.Bool? = nil, - is_apex_domain: Swift.Bool? = nil, - should_be_a_record: Swift.Bool? = nil, - is_cname_to_github_user_domain: Swift.Bool? = nil, - is_cname_to_pages_dot_github_dot_com: Swift.Bool? = nil, - is_cname_to_fastly: Swift.Bool? = nil, - is_pointed_to_github_pages_ip: Swift.Bool? = nil, - is_non_github_pages_ip_present: Swift.Bool? = nil, - is_pages_domain: Swift.Bool? = nil, - is_served_by_pages: Swift.Bool? = nil, - is_valid: Swift.Bool? = nil, + dnsResolves: Swift.Bool? = nil, + isProxied: Swift.Bool? = nil, + isCloudflareIp: Swift.Bool? = nil, + isFastlyIp: Swift.Bool? = nil, + isOldIpAddress: Swift.Bool? = nil, + isARecord: Swift.Bool? = nil, + hasCnameRecord: Swift.Bool? = nil, + hasMxRecordsPresent: Swift.Bool? = nil, + isValidDomain: Swift.Bool? = nil, + isApexDomain: Swift.Bool? = nil, + shouldBeARecord: Swift.Bool? = nil, + isCnameToGithubUserDomain: Swift.Bool? = nil, + isCnameToPagesDotGithubDotCom: Swift.Bool? = nil, + isCnameToFastly: Swift.Bool? = nil, + isPointedToGithubPagesIp: Swift.Bool? = nil, + isNonGithubPagesIpPresent: Swift.Bool? = nil, + isPagesDomain: Swift.Bool? = nil, + isServedByPages: Swift.Bool? = nil, + isValid: Swift.Bool? = nil, reason: Swift.String? = nil, - responds_to_https: Swift.Bool? = nil, - enforces_https: Swift.Bool? = nil, - https_error: Swift.String? = nil, - is_https_eligible: Swift.Bool? = nil, - caa_error: Swift.String? = nil + respondsToHttps: Swift.Bool? = nil, + enforcesHttps: Swift.Bool? = nil, + httpsError: Swift.String? = nil, + isHttpsEligible: Swift.Bool? = nil, + caaError: Swift.String? = nil ) { self.host = host self.uri = uri self.nameservers = nameservers - self.dns_resolves = dns_resolves - self.is_proxied = is_proxied - self.is_cloudflare_ip = is_cloudflare_ip - self.is_fastly_ip = is_fastly_ip - self.is_old_ip_address = is_old_ip_address - self.is_a_record = is_a_record - self.has_cname_record = has_cname_record - self.has_mx_records_present = has_mx_records_present - self.is_valid_domain = is_valid_domain - self.is_apex_domain = is_apex_domain - self.should_be_a_record = should_be_a_record - self.is_cname_to_github_user_domain = is_cname_to_github_user_domain - self.is_cname_to_pages_dot_github_dot_com = is_cname_to_pages_dot_github_dot_com - self.is_cname_to_fastly = is_cname_to_fastly - self.is_pointed_to_github_pages_ip = is_pointed_to_github_pages_ip - self.is_non_github_pages_ip_present = is_non_github_pages_ip_present - self.is_pages_domain = is_pages_domain - self.is_served_by_pages = is_served_by_pages - self.is_valid = is_valid + self.dnsResolves = dnsResolves + self.isProxied = isProxied + self.isCloudflareIp = isCloudflareIp + self.isFastlyIp = isFastlyIp + self.isOldIpAddress = isOldIpAddress + self.isARecord = isARecord + self.hasCnameRecord = hasCnameRecord + self.hasMxRecordsPresent = hasMxRecordsPresent + self.isValidDomain = isValidDomain + self.isApexDomain = isApexDomain + self.shouldBeARecord = shouldBeARecord + self.isCnameToGithubUserDomain = isCnameToGithubUserDomain + self.isCnameToPagesDotGithubDotCom = isCnameToPagesDotGithubDotCom + self.isCnameToFastly = isCnameToFastly + self.isPointedToGithubPagesIp = isPointedToGithubPagesIp + self.isNonGithubPagesIpPresent = isNonGithubPagesIpPresent + self.isPagesDomain = isPagesDomain + self.isServedByPages = isServedByPages + self.isValid = isValid self.reason = reason - self.responds_to_https = responds_to_https - self.enforces_https = enforces_https - self.https_error = https_error - self.is_https_eligible = is_https_eligible - self.caa_error = caa_error + self.respondsToHttps = respondsToHttps + self.enforcesHttps = enforcesHttps + self.httpsError = httpsError + self.isHttpsEligible = isHttpsEligible + self.caaError = caaError } public enum CodingKeys: String, CodingKey { case host case uri case nameservers - case dns_resolves - case is_proxied - case is_cloudflare_ip - case is_fastly_ip - case is_old_ip_address - case is_a_record - case has_cname_record - case has_mx_records_present - case is_valid_domain - case is_apex_domain - case should_be_a_record - case is_cname_to_github_user_domain - case is_cname_to_pages_dot_github_dot_com - case is_cname_to_fastly - case is_pointed_to_github_pages_ip - case is_non_github_pages_ip_present - case is_pages_domain - case is_served_by_pages - case is_valid + case dnsResolves = "dns_resolves" + case isProxied = "is_proxied" + case isCloudflareIp = "is_cloudflare_ip" + case isFastlyIp = "is_fastly_ip" + case isOldIpAddress = "is_old_ip_address" + case isARecord = "is_a_record" + case hasCnameRecord = "has_cname_record" + case hasMxRecordsPresent = "has_mx_records_present" + case isValidDomain = "is_valid_domain" + case isApexDomain = "is_apex_domain" + case shouldBeARecord = "should_be_a_record" + case isCnameToGithubUserDomain = "is_cname_to_github_user_domain" + case isCnameToPagesDotGithubDotCom = "is_cname_to_pages_dot_github_dot_com" + case isCnameToFastly = "is_cname_to_fastly" + case isPointedToGithubPagesIp = "is_pointed_to_github_pages_ip" + case isNonGithubPagesIpPresent = "is_non_github_pages_ip_present" + case isPagesDomain = "is_pages_domain" + case isServedByPages = "is_served_by_pages" + case isValid = "is_valid" case reason - case responds_to_https - case enforces_https - case https_error - case is_https_eligible - case caa_error + case respondsToHttps = "responds_to_https" + case enforcesHttps = "enforces_https" + case httpsError = "https_error" + case isHttpsEligible = "is_https_eligible" + case caaError = "caa_error" } } /// - Remark: Generated from `#/components/schemas/pages-health-check/alt_domain`. - public var alt_domain: Components.Schemas.pages_hyphen_health_hyphen_check.alt_domainPayload? - /// Creates a new `pages_hyphen_health_hyphen_check`. + public var altDomain: Components.Schemas.PagesHealthCheck.AltDomainPayload? + /// Creates a new `PagesHealthCheck`. /// /// - Parameters: /// - domain: - /// - alt_domain: + /// - altDomain: public init( - domain: Components.Schemas.pages_hyphen_health_hyphen_check.domainPayload? = nil, - alt_domain: Components.Schemas.pages_hyphen_health_hyphen_check.alt_domainPayload? = nil + domain: Components.Schemas.PagesHealthCheck.DomainPayload? = nil, + altDomain: Components.Schemas.PagesHealthCheck.AltDomainPayload? = nil ) { self.domain = domain - self.alt_domain = alt_domain + self.altDomain = altDomain } public enum CodingKeys: String, CodingKey { case domain - case alt_domain + case altDomain = "alt_domain" } } /// Data related to a release. /// /// - Remark: Generated from `#/components/schemas/release-asset`. - public struct release_hyphen_asset: Codable, Hashable, Sendable { + public struct ReleaseAsset: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/release-asset/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/release-asset/browser_download_url`. - public var browser_download_url: Swift.String + public var browserDownloadUrl: Swift.String /// - Remark: Generated from `#/components/schemas/release-asset/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/release-asset/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The file name of the asset. /// /// - Remark: Generated from `#/components/schemas/release-asset/name`. @@ -21145,115 +21154,115 @@ public enum Components { /// State of the release asset. /// /// - Remark: Generated from `#/components/schemas/release-asset/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case uploaded = "uploaded" case open = "open" } /// State of the release asset. /// /// - Remark: Generated from `#/components/schemas/release-asset/state`. - public var state: Components.Schemas.release_hyphen_asset.statePayload + public var state: Components.Schemas.ReleaseAsset.StatePayload /// - Remark: Generated from `#/components/schemas/release-asset/content_type`. - public var content_type: Swift.String + public var contentType: Swift.String /// - Remark: Generated from `#/components/schemas/release-asset/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/release-asset/download_count`. - public var download_count: Swift.Int + public var downloadCount: Swift.Int /// - Remark: Generated from `#/components/schemas/release-asset/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/release-asset/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/release-asset/uploader`. - public var uploader: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// Creates a new `release_hyphen_asset`. + public var uploader: Components.Schemas.NullableSimpleUser? + /// Creates a new `ReleaseAsset`. /// /// - Parameters: /// - url: - /// - browser_download_url: + /// - browserDownloadUrl: /// - id: - /// - node_id: + /// - nodeId: /// - name: The file name of the asset. /// - label: /// - state: State of the release asset. - /// - content_type: + /// - contentType: /// - size: - /// - download_count: - /// - created_at: - /// - updated_at: + /// - downloadCount: + /// - createdAt: + /// - updatedAt: /// - uploader: public init( url: Swift.String, - browser_download_url: Swift.String, + browserDownloadUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, label: Swift.String? = nil, - state: Components.Schemas.release_hyphen_asset.statePayload, - content_type: Swift.String, + state: Components.Schemas.ReleaseAsset.StatePayload, + contentType: Swift.String, size: Swift.Int, - download_count: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - uploader: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil + downloadCount: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + uploader: Components.Schemas.NullableSimpleUser? = nil ) { self.url = url - self.browser_download_url = browser_download_url + self.browserDownloadUrl = browserDownloadUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.label = label self.state = state - self.content_type = content_type + self.contentType = contentType self.size = size - self.download_count = download_count - self.created_at = created_at - self.updated_at = updated_at + self.downloadCount = downloadCount + self.createdAt = createdAt + self.updatedAt = updatedAt self.uploader = uploader } public enum CodingKeys: String, CodingKey { case url - case browser_download_url + case browserDownloadUrl = "browser_download_url" case id - case node_id + case nodeId = "node_id" case name case label case state - case content_type + case contentType = "content_type" case size - case download_count - case created_at - case updated_at + case downloadCount = "download_count" + case createdAt = "created_at" + case updatedAt = "updated_at" case uploader } } /// A release. /// /// - Remark: Generated from `#/components/schemas/release`. - public struct release: Codable, Hashable, Sendable { + public struct Release: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/release/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/release/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/release/assets_url`. - public var assets_url: Swift.String + public var assetsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/release/upload_url`. - public var upload_url: Swift.String + public var uploadUrl: Swift.String /// - Remark: Generated from `#/components/schemas/release/tarball_url`. - public var tarball_url: Swift.String? + public var tarballUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/release/zipball_url`. - public var zipball_url: Swift.String? + public var zipballUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/release/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/release/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the tag. /// /// - Remark: Generated from `#/components/schemas/release/tag_name`. - public var tag_name: Swift.String + public var tagName: Swift.String /// Specifies the commitish value that determines where the Git tag is created from. /// /// - Remark: Generated from `#/components/schemas/release/target_commitish`. - public var target_commitish: Swift.String + public var targetCommitish: Swift.String /// - Remark: Generated from `#/components/schemas/release/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/release/body`. @@ -21267,130 +21276,130 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/release/prerelease`. public var prerelease: Swift.Bool /// - Remark: Generated from `#/components/schemas/release/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/release/published_at`. - public var published_at: Foundation.Date? + public var publishedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/release/author`. - public var author: Components.Schemas.simple_hyphen_user + public var author: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/release/assets`. - public var assets: [Components.Schemas.release_hyphen_asset] + public var assets: [Components.Schemas.ReleaseAsset] /// - Remark: Generated from `#/components/schemas/release/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/release/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/release/mentions_count`. - public var mentions_count: Swift.Int? + public var mentionsCount: Swift.Int? /// The URL of the release discussion. /// /// - Remark: Generated from `#/components/schemas/release/discussion_url`. - public var discussion_url: Swift.String? + public var discussionUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/release/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `release`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `Release`. /// /// - Parameters: /// - url: - /// - html_url: - /// - assets_url: - /// - upload_url: - /// - tarball_url: - /// - zipball_url: + /// - htmlUrl: + /// - assetsUrl: + /// - uploadUrl: + /// - tarballUrl: + /// - zipballUrl: /// - id: - /// - node_id: - /// - tag_name: The name of the tag. - /// - target_commitish: Specifies the commitish value that determines where the Git tag is created from. + /// - nodeId: + /// - tagName: The name of the tag. + /// - targetCommitish: Specifies the commitish value that determines where the Git tag is created from. /// - name: /// - body: /// - draft: true to create a draft (unpublished) release, false to create a published one. /// - prerelease: Whether to identify the release as a prerelease or a full release. - /// - created_at: - /// - published_at: + /// - createdAt: + /// - publishedAt: /// - author: /// - assets: - /// - body_html: - /// - body_text: - /// - mentions_count: - /// - discussion_url: The URL of the release discussion. + /// - bodyHtml: + /// - bodyText: + /// - mentionsCount: + /// - discussionUrl: The URL of the release discussion. /// - reactions: public init( url: Swift.String, - html_url: Swift.String, - assets_url: Swift.String, - upload_url: Swift.String, - tarball_url: Swift.String? = nil, - zipball_url: Swift.String? = nil, + htmlUrl: Swift.String, + assetsUrl: Swift.String, + uploadUrl: Swift.String, + tarballUrl: Swift.String? = nil, + zipballUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, - tag_name: Swift.String, - target_commitish: Swift.String, + nodeId: Swift.String, + tagName: Swift.String, + targetCommitish: Swift.String, name: Swift.String? = nil, body: Swift.String? = nil, draft: Swift.Bool, prerelease: Swift.Bool, - created_at: Foundation.Date, - published_at: Foundation.Date? = nil, - author: Components.Schemas.simple_hyphen_user, - assets: [Components.Schemas.release_hyphen_asset], - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - mentions_count: Swift.Int? = nil, - discussion_url: Swift.String? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + createdAt: Foundation.Date, + publishedAt: Foundation.Date? = nil, + author: Components.Schemas.SimpleUser, + assets: [Components.Schemas.ReleaseAsset], + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + mentionsCount: Swift.Int? = nil, + discussionUrl: Swift.String? = nil, + reactions: Components.Schemas.ReactionRollup? = nil ) { self.url = url - self.html_url = html_url - self.assets_url = assets_url - self.upload_url = upload_url - self.tarball_url = tarball_url - self.zipball_url = zipball_url + self.htmlUrl = htmlUrl + self.assetsUrl = assetsUrl + self.uploadUrl = uploadUrl + self.tarballUrl = tarballUrl + self.zipballUrl = zipballUrl self.id = id - self.node_id = node_id - self.tag_name = tag_name - self.target_commitish = target_commitish + self.nodeId = nodeId + self.tagName = tagName + self.targetCommitish = targetCommitish self.name = name self.body = body self.draft = draft self.prerelease = prerelease - self.created_at = created_at - self.published_at = published_at + self.createdAt = createdAt + self.publishedAt = publishedAt self.author = author self.assets = assets - self.body_html = body_html - self.body_text = body_text - self.mentions_count = mentions_count - self.discussion_url = discussion_url + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.mentionsCount = mentionsCount + self.discussionUrl = discussionUrl self.reactions = reactions } public enum CodingKeys: String, CodingKey { case url - case html_url - case assets_url - case upload_url - case tarball_url - case zipball_url + case htmlUrl = "html_url" + case assetsUrl = "assets_url" + case uploadUrl = "upload_url" + case tarballUrl = "tarball_url" + case zipballUrl = "zipball_url" case id - case node_id - case tag_name - case target_commitish + case nodeId = "node_id" + case tagName = "tag_name" + case targetCommitish = "target_commitish" case name case body case draft case prerelease - case created_at - case published_at + case createdAt = "created_at" + case publishedAt = "published_at" case author case assets - case body_html - case body_text - case mentions_count - case discussion_url + case bodyHtml = "body_html" + case bodyText = "body_text" + case mentionsCount = "mentions_count" + case discussionUrl = "discussion_url" case reactions } } /// Generated name and body describing a release /// /// - Remark: Generated from `#/components/schemas/release-notes-content`. - public struct release_hyphen_notes_hyphen_content: Codable, Hashable, Sendable { + public struct ReleaseNotesContent: Codable, Hashable, Sendable { /// The generated name of the release /// /// - Remark: Generated from `#/components/schemas/release-notes-content/name`. @@ -21399,7 +21408,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/release-notes-content/body`. public var body: Swift.String - /// Creates a new `release_hyphen_notes_hyphen_content`. + /// Creates a new `ReleaseNotesContent`. /// /// - Parameters: /// - name: The generated name of the release @@ -21419,660 +21428,660 @@ public enum Components { /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. /// /// - Remark: Generated from `#/components/schemas/repository-rule-ruleset-info`. - public struct repository_hyphen_rule_hyphen_ruleset_hyphen_info: Codable, Hashable, Sendable { + public struct RepositoryRuleRulesetInfo: Codable, Hashable, Sendable { /// The type of source for the ruleset that includes this rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule-ruleset-info/ruleset_source_type`. - @frozen public enum ruleset_source_typePayload: String, Codable, Hashable, Sendable { - case Repository = "Repository" - case Organization = "Organization" + @frozen public enum RulesetSourceTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case repository = "Repository" + case organization = "Organization" } /// The type of source for the ruleset that includes this rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule-ruleset-info/ruleset_source_type`. - public var ruleset_source_type: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info.ruleset_source_typePayload? + public var rulesetSourceType: Components.Schemas.RepositoryRuleRulesetInfo.RulesetSourceTypePayload? /// The name of the source of the ruleset that includes this rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule-ruleset-info/ruleset_source`. - public var ruleset_source: Swift.String? + public var rulesetSource: Swift.String? /// The ID of the ruleset that includes this rule. /// /// - Remark: Generated from `#/components/schemas/repository-rule-ruleset-info/ruleset_id`. - public var ruleset_id: Swift.Int? - /// Creates a new `repository_hyphen_rule_hyphen_ruleset_hyphen_info`. + public var rulesetId: Swift.Int? + /// Creates a new `RepositoryRuleRulesetInfo`. /// /// - Parameters: - /// - ruleset_source_type: The type of source for the ruleset that includes this rule. - /// - ruleset_source: The name of the source of the ruleset that includes this rule. - /// - ruleset_id: The ID of the ruleset that includes this rule. + /// - rulesetSourceType: The type of source for the ruleset that includes this rule. + /// - rulesetSource: The name of the source of the ruleset that includes this rule. + /// - rulesetId: The ID of the ruleset that includes this rule. public init( - ruleset_source_type: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info.ruleset_source_typePayload? = nil, - ruleset_source: Swift.String? = nil, - ruleset_id: Swift.Int? = nil + rulesetSourceType: Components.Schemas.RepositoryRuleRulesetInfo.RulesetSourceTypePayload? = nil, + rulesetSource: Swift.String? = nil, + rulesetId: Swift.Int? = nil ) { - self.ruleset_source_type = ruleset_source_type - self.ruleset_source = ruleset_source - self.ruleset_id = ruleset_id + self.rulesetSourceType = rulesetSourceType + self.rulesetSource = rulesetSource + self.rulesetId = rulesetId } public enum CodingKeys: String, CodingKey { - case ruleset_source_type - case ruleset_source - case ruleset_id + case rulesetSourceType = "ruleset_source_type" + case rulesetSource = "ruleset_source" + case rulesetId = "ruleset_id" } } /// A repository rule with ruleset details. /// /// - Remark: Generated from `#/components/schemas/repository-rule-detailed`. - @frozen public enum repository_hyphen_rule_hyphen_detailed: Codable, Hashable, Sendable { + @frozen public enum RepositoryRuleDetailed: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case1/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_creation + public var value1: Components.Schemas.RepositoryRuleCreation /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case1/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case1Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_creation, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleCreation, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case1`. - case case1(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case1Payload) + case case1(Components.Schemas.RepositoryRuleDetailed.Case1Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case2`. public struct Case2Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case2/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_update + public var value1: Components.Schemas.RepositoryRuleUpdate /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case2/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case2Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_update, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleUpdate, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case2`. - case case2(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case2Payload) + case case2(Components.Schemas.RepositoryRuleDetailed.Case2Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case3`. public struct Case3Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case3/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_deletion + public var value1: Components.Schemas.RepositoryRuleDeletion /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case3/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case3Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_deletion, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleDeletion, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case3`. - case case3(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case3Payload) + case case3(Components.Schemas.RepositoryRuleDetailed.Case3Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case4`. public struct Case4Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case4/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history + public var value1: Components.Schemas.RepositoryRuleRequiredLinearHistory /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case4/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case4Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_linear_hyphen_history, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleRequiredLinearHistory, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case4`. - case case4(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case4Payload) + case case4(Components.Schemas.RepositoryRuleDetailed.Case4Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case5`. public struct Case5Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case5/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue + public var value1: Components.Schemas.RepositoryRuleMergeQueue /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case5/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case5Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_merge_hyphen_queue, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleMergeQueue, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case5`. - case case5(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case5Payload) + case case5(Components.Schemas.RepositoryRuleDetailed.Case5Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case6`. public struct Case6Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case6/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments + public var value1: Components.Schemas.RepositoryRuleRequiredDeployments /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case6/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case6Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_deployments, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleRequiredDeployments, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case6`. - case case6(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case6Payload) + case case6(Components.Schemas.RepositoryRuleDetailed.Case6Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case7`. public struct Case7Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case7/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_signatures + public var value1: Components.Schemas.RepositoryRuleRequiredSignatures /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case7/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case7Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_signatures, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleRequiredSignatures, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case7`. - case case7(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case7Payload) + case case7(Components.Schemas.RepositoryRuleDetailed.Case7Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case8`. public struct Case8Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case8/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request + public var value1: Components.Schemas.RepositoryRulePullRequest /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case8/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case8Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_pull_hyphen_request, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRulePullRequest, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case8`. - case case8(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case8Payload) + case case8(Components.Schemas.RepositoryRuleDetailed.Case8Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case9`. public struct Case9Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case9/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks + public var value1: Components.Schemas.RepositoryRuleRequiredStatusChecks /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case9/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case9Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_required_hyphen_status_hyphen_checks, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleRequiredStatusChecks, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case9`. - case case9(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case9Payload) + case case9(Components.Schemas.RepositoryRuleDetailed.Case9Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case10`. public struct Case10Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case10/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward + public var value1: Components.Schemas.RepositoryRuleNonFastForward /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case10/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case10Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_non_hyphen_fast_hyphen_forward, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleNonFastForward, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case10`. - case case10(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case10Payload) + case case10(Components.Schemas.RepositoryRuleDetailed.Case10Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case11`. public struct Case11Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case11/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern + public var value1: Components.Schemas.RepositoryRuleCommitMessagePattern /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case11/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case11Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_message_hyphen_pattern, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleCommitMessagePattern, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case11`. - case case11(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case11Payload) + case case11(Components.Schemas.RepositoryRuleDetailed.Case11Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case12`. public struct Case12Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case12/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern + public var value1: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case12/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case12Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_commit_hyphen_author_hyphen_email_hyphen_pattern, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleCommitAuthorEmailPattern, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case12`. - case case12(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case12Payload) + case case12(Components.Schemas.RepositoryRuleDetailed.Case12Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case13`. public struct Case13Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case13/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern + public var value1: Components.Schemas.RepositoryRuleCommitterEmailPattern /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case13/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case13Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_committer_hyphen_email_hyphen_pattern, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleCommitterEmailPattern, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case13`. - case case13(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case13Payload) + case case13(Components.Schemas.RepositoryRuleDetailed.Case13Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case14`. public struct Case14Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case14/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern + public var value1: Components.Schemas.RepositoryRuleBranchNamePattern /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case14/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case14Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleBranchNamePattern, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case14`. - case case14(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case14Payload) + case case14(Components.Schemas.RepositoryRuleDetailed.Case14Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case15`. public struct Case15Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case15/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern + public var value1: Components.Schemas.RepositoryRuleTagNamePattern /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case15/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case15Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleTagNamePattern, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case15`. - case case15(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case15Payload) + case case15(Components.Schemas.RepositoryRuleDetailed.Case15Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case16`. public struct Case16Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case16/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction + public var value1: Components.Schemas.RepositoryRuleFilePathRestriction /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case16/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case16Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_path_hyphen_restriction, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleFilePathRestriction, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case16`. - case case16(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case16Payload) + case case16(Components.Schemas.RepositoryRuleDetailed.Case16Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case17`. public struct Case17Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case17/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length + public var value1: Components.Schemas.RepositoryRuleMaxFilePathLength /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case17/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case17Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_path_hyphen_length, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleMaxFilePathLength, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case17`. - case case17(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case17Payload) + case case17(Components.Schemas.RepositoryRuleDetailed.Case17Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case18`. public struct Case18Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case18/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction + public var value1: Components.Schemas.RepositoryRuleFileExtensionRestriction /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case18/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case18Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_file_hyphen_extension_hyphen_restriction, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleFileExtensionRestriction, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case18`. - case case18(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case18Payload) + case case18(Components.Schemas.RepositoryRuleDetailed.Case18Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case19`. public struct Case19Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case19/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size + public var value1: Components.Schemas.RepositoryRuleMaxFileSize /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case19/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case19Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_max_hyphen_file_hyphen_size, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleMaxFileSize, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case19`. - case case19(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case19Payload) + case case19(Components.Schemas.RepositoryRuleDetailed.Case19Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case20`. public struct Case20Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case20/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_workflows + public var value1: Components.Schemas.RepositoryRuleWorkflows /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case20/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case20Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_workflows, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleWorkflows, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case20`. - case case20(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case20Payload) + case case20(Components.Schemas.RepositoryRuleDetailed.Case20Payload) /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case21`. public struct Case21Payload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case21/value1`. - public var value1: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning + public var value1: Components.Schemas.RepositoryRuleCodeScanning /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case21/value2`. - public var value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + public var value2: Components.Schemas.RepositoryRuleRulesetInfo /// Creates a new `Case21Payload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning, - value2: Components.Schemas.repository_hyphen_rule_hyphen_ruleset_hyphen_info + value1: Components.Schemas.RepositoryRuleCodeScanning, + value2: Components.Schemas.RepositoryRuleRulesetInfo ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/repository-rule-detailed/case21`. - case case21(Components.Schemas.repository_hyphen_rule_hyphen_detailed.Case21Payload) + case case21(Components.Schemas.RepositoryRuleDetailed.Case21Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -22257,18 +22266,18 @@ public enum Components { /// Code Frequency Stat /// /// - Remark: Generated from `#/components/schemas/code-frequency-stat`. - public typealias code_hyphen_frequency_hyphen_stat = [Swift.Int] + public typealias CodeFrequencyStat = [Swift.Int] /// Commit Activity /// /// - Remark: Generated from `#/components/schemas/commit-activity`. - public struct commit_hyphen_activity: Codable, Hashable, Sendable { + public struct CommitActivity: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-activity/days`. public var days: [Swift.Int] /// - Remark: Generated from `#/components/schemas/commit-activity/total`. public var total: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-activity/week`. public var week: Swift.Int - /// Creates a new `commit_hyphen_activity`. + /// Creates a new `CommitActivity`. /// /// - Parameters: /// - days: @@ -22292,22 +22301,22 @@ public enum Components { /// Contributor Activity /// /// - Remark: Generated from `#/components/schemas/contributor-activity`. - public struct contributor_hyphen_activity: Codable, Hashable, Sendable { + public struct ContributorActivity: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/contributor-activity/author`. - public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var author: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/contributor-activity/total`. public var total: Swift.Int - /// - Remark: Generated from `#/components/schemas/contributor-activity/weeksPayload`. - public struct weeksPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/contributor-activity/weeksPayload/w`. + /// - Remark: Generated from `#/components/schemas/contributor-activity/WeeksPayload`. + public struct WeeksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/contributor-activity/WeeksPayload/w`. public var w: Swift.Int? - /// - Remark: Generated from `#/components/schemas/contributor-activity/weeksPayload/a`. + /// - Remark: Generated from `#/components/schemas/contributor-activity/WeeksPayload/a`. public var a: Swift.Int? - /// - Remark: Generated from `#/components/schemas/contributor-activity/weeksPayload/d`. + /// - Remark: Generated from `#/components/schemas/contributor-activity/WeeksPayload/d`. public var d: Swift.Int? - /// - Remark: Generated from `#/components/schemas/contributor-activity/weeksPayload/c`. + /// - Remark: Generated from `#/components/schemas/contributor-activity/WeeksPayload/c`. public var c: Swift.Int? - /// Creates a new `weeksPayloadPayload`. + /// Creates a new `WeeksPayloadPayload`. /// /// - Parameters: /// - w: @@ -22333,19 +22342,19 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/contributor-activity/weeks`. - public typealias weeksPayload = [Components.Schemas.contributor_hyphen_activity.weeksPayloadPayload] + public typealias WeeksPayload = [Components.Schemas.ContributorActivity.WeeksPayloadPayload] /// - Remark: Generated from `#/components/schemas/contributor-activity/weeks`. - public var weeks: Components.Schemas.contributor_hyphen_activity.weeksPayload - /// Creates a new `contributor_hyphen_activity`. + public var weeks: Components.Schemas.ContributorActivity.WeeksPayload + /// Creates a new `ContributorActivity`. /// /// - Parameters: /// - author: /// - total: /// - weeks: public init( - author: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + author: Components.Schemas.NullableSimpleUser? = nil, total: Swift.Int, - weeks: Components.Schemas.contributor_hyphen_activity.weeksPayload + weeks: Components.Schemas.ContributorActivity.WeeksPayload ) { self.author = author self.total = total @@ -22358,12 +22367,12 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/participation-stats`. - public struct participation_hyphen_stats: Codable, Hashable, Sendable { + public struct ParticipationStats: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/participation-stats/all`. public var all: [Swift.Int] /// - Remark: Generated from `#/components/schemas/participation-stats/owner`. public var owner: [Swift.Int] - /// Creates a new `participation_hyphen_stats`. + /// Creates a new `ParticipationStats`. /// /// - Parameters: /// - all: @@ -22383,16 +22392,16 @@ public enum Components { /// Tag /// /// - Remark: Generated from `#/components/schemas/tag`. - public struct tag: Codable, Hashable, Sendable { + public struct Tag: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/tag/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/tag/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/tag/commit/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/tag/commit/url`. public var url: Swift.String - /// Creates a new `commitPayload`. + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - sha: @@ -22410,81 +22419,81 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/tag/commit`. - public var commit: Components.Schemas.tag.commitPayload + public var commit: Components.Schemas.Tag.CommitPayload /// - Remark: Generated from `#/components/schemas/tag/zipball_url`. - public var zipball_url: Swift.String + public var zipballUrl: Swift.String /// - Remark: Generated from `#/components/schemas/tag/tarball_url`. - public var tarball_url: Swift.String + public var tarballUrl: Swift.String /// - Remark: Generated from `#/components/schemas/tag/node_id`. - public var node_id: Swift.String - /// Creates a new `tag`. + public var nodeId: Swift.String + /// Creates a new `Tag`. /// /// - Parameters: /// - name: /// - commit: - /// - zipball_url: - /// - tarball_url: - /// - node_id: + /// - zipballUrl: + /// - tarballUrl: + /// - nodeId: public init( name: Swift.String, - commit: Components.Schemas.tag.commitPayload, - zipball_url: Swift.String, - tarball_url: Swift.String, - node_id: Swift.String + commit: Components.Schemas.Tag.CommitPayload, + zipballUrl: Swift.String, + tarballUrl: Swift.String, + nodeId: Swift.String ) { self.name = name self.commit = commit - self.zipball_url = zipball_url - self.tarball_url = tarball_url - self.node_id = node_id + self.zipballUrl = zipballUrl + self.tarballUrl = tarballUrl + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case name case commit - case zipball_url - case tarball_url - case node_id + case zipballUrl = "zipball_url" + case tarballUrl = "tarball_url" + case nodeId = "node_id" } } /// Tag protection /// /// - Remark: Generated from `#/components/schemas/tag-protection`. - public struct tag_hyphen_protection: Codable, Hashable, Sendable { + public struct TagProtection: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/tag-protection/id`. public var id: Swift.Int? /// - Remark: Generated from `#/components/schemas/tag-protection/created_at`. - public var created_at: Swift.String? + public var createdAt: Swift.String? /// - Remark: Generated from `#/components/schemas/tag-protection/updated_at`. - public var updated_at: Swift.String? + public var updatedAt: Swift.String? /// - Remark: Generated from `#/components/schemas/tag-protection/enabled`. public var enabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/tag-protection/pattern`. public var pattern: Swift.String - /// Creates a new `tag_hyphen_protection`. + /// Creates a new `TagProtection`. /// /// - Parameters: /// - id: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - enabled: /// - pattern: public init( id: Swift.Int? = nil, - created_at: Swift.String? = nil, - updated_at: Swift.String? = nil, + createdAt: Swift.String? = nil, + updatedAt: Swift.String? = nil, enabled: Swift.Bool? = nil, pattern: Swift.String ) { self.id = id - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.enabled = enabled self.pattern = pattern } public enum CodingKeys: String, CodingKey { case id - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case enabled case pattern } @@ -22492,10 +22501,10 @@ public enum Components { /// A topic aggregates entities that are related to a subject. /// /// - Remark: Generated from `#/components/schemas/topic`. - public struct topic: Codable, Hashable, Sendable { + public struct Topic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/topic/names`. public var names: [Swift.String] - /// Creates a new `topic`. + /// Creates a new `Topic`. /// /// - Parameters: /// - names: @@ -22507,14 +22516,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/traffic`. - public struct traffic: Codable, Hashable, Sendable { + public struct Traffic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/traffic/timestamp`. public var timestamp: Foundation.Date /// - Remark: Generated from `#/components/schemas/traffic/uniques`. public var uniques: Swift.Int /// - Remark: Generated from `#/components/schemas/traffic/count`. public var count: Swift.Int - /// Creates a new `traffic`. + /// Creates a new `Traffic`. /// /// - Parameters: /// - timestamp: @@ -22538,14 +22547,14 @@ public enum Components { /// Clone Traffic /// /// - Remark: Generated from `#/components/schemas/clone-traffic`. - public struct clone_hyphen_traffic: Codable, Hashable, Sendable { + public struct CloneTraffic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/clone-traffic/count`. public var count: Swift.Int /// - Remark: Generated from `#/components/schemas/clone-traffic/uniques`. public var uniques: Swift.Int /// - Remark: Generated from `#/components/schemas/clone-traffic/clones`. - public var clones: [Components.Schemas.traffic] - /// Creates a new `clone_hyphen_traffic`. + public var clones: [Components.Schemas.Traffic] + /// Creates a new `CloneTraffic`. /// /// - Parameters: /// - count: @@ -22554,7 +22563,7 @@ public enum Components { public init( count: Swift.Int, uniques: Swift.Int, - clones: [Components.Schemas.traffic] + clones: [Components.Schemas.Traffic] ) { self.count = count self.uniques = uniques @@ -22569,7 +22578,7 @@ public enum Components { /// Content Traffic /// /// - Remark: Generated from `#/components/schemas/content-traffic`. - public struct content_hyphen_traffic: Codable, Hashable, Sendable { + public struct ContentTraffic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/content-traffic/path`. public var path: Swift.String /// - Remark: Generated from `#/components/schemas/content-traffic/title`. @@ -22578,7 +22587,7 @@ public enum Components { public var count: Swift.Int /// - Remark: Generated from `#/components/schemas/content-traffic/uniques`. public var uniques: Swift.Int - /// Creates a new `content_hyphen_traffic`. + /// Creates a new `ContentTraffic`. /// /// - Parameters: /// - path: @@ -22606,14 +22615,14 @@ public enum Components { /// Referrer Traffic /// /// - Remark: Generated from `#/components/schemas/referrer-traffic`. - public struct referrer_hyphen_traffic: Codable, Hashable, Sendable { + public struct ReferrerTraffic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/referrer-traffic/referrer`. public var referrer: Swift.String /// - Remark: Generated from `#/components/schemas/referrer-traffic/count`. public var count: Swift.Int /// - Remark: Generated from `#/components/schemas/referrer-traffic/uniques`. public var uniques: Swift.Int - /// Creates a new `referrer_hyphen_traffic`. + /// Creates a new `ReferrerTraffic`. /// /// - Parameters: /// - referrer: @@ -22637,14 +22646,14 @@ public enum Components { /// View Traffic /// /// - Remark: Generated from `#/components/schemas/view-traffic`. - public struct view_hyphen_traffic: Codable, Hashable, Sendable { + public struct ViewTraffic: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/view-traffic/count`. public var count: Swift.Int /// - Remark: Generated from `#/components/schemas/view-traffic/uniques`. public var uniques: Swift.Int /// - Remark: Generated from `#/components/schemas/view-traffic/views`. - public var views: [Components.Schemas.traffic] - /// Creates a new `view_hyphen_traffic`. + public var views: [Components.Schemas.Traffic] + /// Creates a new `ViewTraffic`. /// /// - Parameters: /// - count: @@ -22653,7 +22662,7 @@ public enum Components { public init( count: Swift.Int, uniques: Swift.Int, - views: [Components.Schemas.traffic] + views: [Components.Schemas.Traffic] ) { self.count = count self.uniques = uniques @@ -22671,81 +22680,81 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/components/parameters/cursor`. - public typealias cursor = Swift.String + public typealias Cursor = Swift.String /// - Remark: Generated from `#/components/parameters/delivery-id`. - public typealias delivery_hyphen_id = Swift.Int + public typealias DeliveryId = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int64 + public typealias CommentId = Swift.Int64 /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/components/parameters/hook-id`. - public typealias hook_hyphen_id = Swift.Int + public typealias HookId = Swift.Int /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/components/parameters/invitation-id`. - public typealias invitation_hyphen_id = Swift.Int + public typealias InvitationId = 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 + public typealias RulesetTargets = 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`. - public typealias ref_hyphen_in_hyphen_query = Swift.String + public typealias RefInQuery = Swift.String /// The name of the repository to filter on. /// /// - Remark: Generated from `#/components/parameters/repository-name-in-query`. - public typealias repository_hyphen_name_hyphen_in_hyphen_query = Swift.String + public typealias RepositoryNameInQuery = Swift.String /// The time period to filter by. /// /// For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). /// /// - Remark: Generated from `#/components/parameters/time-period`. - @frozen public enum time_hyphen_period: String, Codable, Hashable, Sendable { + @frozen public enum TimePeriod: String, Codable, Hashable, Sendable, CaseIterable { case hour = "hour" case day = "day" case week = "week" @@ -22754,11 +22763,11 @@ public enum Components { /// The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. /// /// - Remark: Generated from `#/components/parameters/actor-name-in-query`. - public typealias actor_hyphen_name_hyphen_in_hyphen_query = Swift.String + public typealias ActorNameInQuery = Swift.String /// The rule results to filter on. When specified, only suites with this result will be returned. /// /// - Remark: Generated from `#/components/parameters/rule-suite-result`. - @frozen public enum rule_hyphen_suite_hyphen_result: String, Codable, Hashable, Sendable { + @frozen public enum RuleSuiteResult: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" @@ -22770,47 +22779,47 @@ public enum Components { /// for organizations. /// /// - Remark: Generated from `#/components/parameters/rule-suite-id`. - public typealias rule_hyphen_suite_hyphen_id = Swift.Int + public typealias RuleSuiteId = Swift.Int /// The unique identifier of the autolink. /// /// - Remark: Generated from `#/components/parameters/autolink-id`. - public typealias autolink_hyphen_id = Swift.Int + public typealias AutolinkId = Swift.Int /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/components/parameters/branch`. - public typealias branch = Swift.String + public typealias Branch = Swift.String /// The SHA of the commit. /// /// - Remark: Generated from `#/components/parameters/commit-sha`. - public typealias commit_hyphen_sha = Swift.String + public typealias CommitSha = Swift.String /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/components/parameters/commit-ref`. - public typealias commit_hyphen_ref = Swift.String + public typealias CommitRef = Swift.String /// deployment_id parameter /// /// - Remark: Generated from `#/components/parameters/deployment-id`. - public typealias deployment_hyphen_id = Swift.Int + public typealias DeploymentId = Swift.Int /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/components/parameters/environment-name`. - public typealias environment_hyphen_name = Swift.String + public typealias EnvironmentName = Swift.String /// The unique identifier of the branch policy. /// /// - Remark: Generated from `#/components/parameters/branch-policy-id`. - public typealias branch_hyphen_policy_hyphen_id = Swift.Int + public typealias BranchPolicyId = Swift.Int /// The unique identifier of the protection rule. /// /// - Remark: Generated from `#/components/parameters/protection-rule-id`. - public typealias protection_hyphen_rule_hyphen_id = Swift.Int + public typealias ProtectionRuleId = Swift.Int /// The unique identifier of the key. /// /// - Remark: Generated from `#/components/parameters/key-id`. - public typealias key_hyphen_id = Swift.Int + public typealias KeyId = Swift.Int /// The ID of the Pages deployment. You can also give the commit SHA of the deployment. /// /// - Remark: Generated from `#/components/parameters/pages-deployment-id`. - @frozen public enum pages_hyphen_deployment_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum PagesDeploymentId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case2`. @@ -22847,49 +22856,49 @@ public enum Components { /// The unique identifier of the asset. /// /// - Remark: Generated from `#/components/parameters/asset-id`. - public typealias asset_hyphen_id = Swift.Int + public typealias AssetId = Swift.Int /// The unique identifier of the release. /// /// - Remark: Generated from `#/components/parameters/release-id`. - public typealias release_hyphen_id = Swift.Int + public typealias ReleaseId = Swift.Int /// The unique identifier of the tag protection. /// /// - Remark: Generated from `#/components/parameters/tag-protection-id`. - public typealias tag_hyphen_protection_hyphen_id = Swift.Int + public typealias TagProtectionId = Swift.Int /// The time frame to display results for. /// /// - Remark: Generated from `#/components/parameters/per`. - @frozen public enum per: String, Codable, Hashable, Sendable { + @frozen public enum Per: String, Codable, Hashable, Sendable, CaseIterable { case day = "day" case week = "week" } /// A repository ID. Only return repositories with an ID greater than this ID. /// /// - Remark: Generated from `#/components/parameters/since-repo`. - public typealias since_hyphen_repo = Swift.Int + public typealias SinceRepo = Swift.Int /// Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/since-repo-date`. - public typealias since_hyphen_repo_hyphen_date = Foundation.Date + public typealias SinceRepoDate = Foundation.Date /// Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/parameters/before-repo-date`. - public typealias before_hyphen_repo_hyphen_date = Foundation.Date + public typealias BeforeRepoDate = Foundation.Date } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -22899,25 +22908,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -22927,25 +22936,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -22959,15 +22968,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -22979,25 +22988,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -23007,16 +23016,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -23035,29 +23044,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -23067,25 +23076,53 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BasicError { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Components.Responses.Forbidden.Body) { + self.body = body + } + } + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -23095,25 +23132,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { + public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -23123,58 +23160,58 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } - public struct no_content: Sendable, Hashable { - /// Creates a new `no_content`. + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. public init() {} } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -23184,25 +23221,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } - public struct moved_permanently: Sendable, Hashable { + public struct MovedPermanently: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/moved_permanently/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -23212,53 +23249,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.moved_permanently.Body - /// Creates a new `moved_permanently`. + public var body: Components.Responses.MovedPermanently.Body + /// Creates a new `MovedPermanently`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.moved_permanently.Body) { + public init(body: Components.Responses.MovedPermanently.Body) { self.body = body } } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { - self.body = body - } - } - public struct temporary_redirect: Sendable, Hashable { + public struct TemporaryRedirect: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/temporary_redirect/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/temporary_redirect/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -23268,24 +23277,24 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.temporary_redirect.Body - /// Creates a new `temporary_redirect`. + public var body: Components.Responses.TemporaryRedirect.Body + /// Creates a new `TemporaryRedirect`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.temporary_redirect.Body) { + public init(body: Components.Responses.TemporaryRedirect.Body) { self.body = body } } - public struct found: Sendable, Hashable { - /// Creates a new `found`. + public struct Found: Sendable, Hashable { + /// Creates a new `Found`. public init() {} } } /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -23300,7 +23309,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/get(repos/list-for-org)`. - public enum repos_sol_list_hyphen_for_hyphen_org { + public enum ReposListForOrg { public static let id: Swift.String = "repos/list-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/path`. @@ -23308,20 +23317,20 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Path + public var path: Operations.ReposListForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _public = "public" case _private = "private" @@ -23332,70 +23341,70 @@ public enum Operations { /// Specifies the types of repositories you want returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/type`. - public var _type: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query._typePayload? + public var _type: Operations.ReposListForOrg.Input.Query._TypePayload? /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case pushed = "pushed" - case full_name = "full_name" + case fullName = "full_name" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/sort`. - public var sort: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query.sortPayload? + public var sort: Operations.ReposListForOrg.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/direction`. - public var direction: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query.directionPayload? + public var direction: Operations.ReposListForOrg.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - _type: Specifies the types of repositories you want returned. /// - sort: The property to sort the results by. /// - direction: The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. - /// - 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)." + /// - perPage: 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)." public init( - _type: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query._typePayload? = nil, - sort: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query.sortPayload? = nil, - direction: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + _type: Operations.ReposListForOrg.Input.Query._TypePayload? = nil, + sort: Operations.ReposListForOrg.Input.Query.SortPayload? = nil, + direction: Operations.ReposListForOrg.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self._type = _type self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query + public var query: Operations.ReposListForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.ReposListForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -23403,9 +23412,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Path, - query: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.ReposListForOrg.Input.Path, + query: Operations.ReposListForOrg.Input.Query = .init(), + headers: Operations.ReposListForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -23417,26 +23426,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.ReposListForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -23446,15 +23455,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.ReposListForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.ReposListForOrg.Output.Ok.Headers = .init(), + body: Operations.ReposListForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -23465,12 +23474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/repos/get(repos/list-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.ReposListForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.ReposListForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -23522,7 +23531,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)`. - public enum repos_sol_create_hyphen_in_hyphen_org { + public enum ReposCreateInOrg { public static let id: Swift.String = "repos/create-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/path`. @@ -23530,32 +23539,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Path + public var path: Operations.ReposCreateInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.ReposCreateInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/name`. @@ -23575,75 +23584,75 @@ public enum Operations { /// The visibility of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" } /// The visibility of the repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/visibility`. - public var visibility: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.ReposCreateInOrg.Input.Body.JsonPayload.VisibilityPayload? /// Either `true` to enable issues for this repository or `false` to disable them. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// Either `true` to enable the wiki for this repository or `false` to disable it. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// Whether downloads are enabled. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// Either `true` to make this repo available as a template repository or `false` to prevent it. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/team_id`. - public var team_id: Swift.Int? + public var teamId: Swift.Int? /// Pass `true` to create an initial commit with empty README. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/auto_init`. - public var auto_init: Swift.Bool? + public var autoInit: Swift.Bool? /// Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell". /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/gitignore_template`. - public var gitignore_template: Swift.String? + public var gitignoreTemplate: Swift.String? /// Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/license_template`. - public var license_template: Swift.String? + public var licenseTemplate: Swift.String? /// Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.** /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// Required when using `squash_merge_commit_message`. /// /// The default value for a squash merge commit title: @@ -23652,9 +23661,9 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// Required when using `squash_merge_commit_message`. /// @@ -23664,7 +23673,7 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/squash_merge_commit_title`. - public var squash_merge_commit_title: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Operations.ReposCreateInOrg.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -23672,10 +23681,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -23684,7 +23693,7 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/squash_merge_commit_message`. - public var squash_merge_commit_message: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Operations.ReposCreateInOrg.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? /// Required when using `merge_commit_message`. /// /// The default value for a merge commit title. @@ -23693,9 +23702,9 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// Required when using `merge_commit_message`. /// @@ -23705,7 +23714,7 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/merge_commit_title`. - public var merge_commit_title: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.merge_commit_titlePayload? + public var mergeCommitTitle: Operations.ReposCreateInOrg.Input.Body.JsonPayload.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -23713,10 +23722,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -23725,14 +23734,14 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/merge_commit_message`. - public var merge_commit_message: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.merge_commit_messagePayload? + public var mergeCommitMessage: Operations.ReposCreateInOrg.Input.Body.JsonPayload.MergeCommitMessagePayload? /// The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/custom_properties`. - public struct custom_propertiesPayload: Codable, Hashable, Sendable { + public struct CustomPropertiesPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `custom_propertiesPayload`. + /// Creates a new `CustomPropertiesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -23749,8 +23758,8 @@ public enum Operations { /// The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/custom_properties`. - public var custom_properties: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.custom_propertiesPayload? - /// Creates a new `jsonPayload`. + public var customProperties: Operations.ReposCreateInOrg.Input.Body.JsonPayload.CustomPropertiesPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the repository. @@ -23758,78 +23767,78 @@ public enum Operations { /// - homepage: A URL with more information about the repository. /// - _private: Whether the repository is private. /// - visibility: The visibility of the repository. - /// - has_issues: Either `true` to enable issues for this repository or `false` to disable them. - /// - has_projects: Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - /// - has_wiki: Either `true` to enable the wiki for this repository or `false` to disable it. - /// - has_downloads: Whether downloads are enabled. - /// - is_template: Either `true` to make this repo available as a template repository or `false` to prevent it. - /// - team_id: The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - /// - auto_init: Pass `true` to create an initial commit with empty README. - /// - gitignore_template: Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell". - /// - license_template: Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". - /// - allow_squash_merge: Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - /// - allow_merge_commit: Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - /// - allow_rebase_merge: Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - /// - allow_auto_merge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. - /// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.** - /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: Required when using `squash_merge_commit_message`. - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: Required when using `merge_commit_message`. - /// - merge_commit_message: The default value for a merge commit message. - /// - custom_properties: The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. + /// - hasIssues: Either `true` to enable issues for this repository or `false` to disable them. + /// - hasProjects: Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. + /// - hasWiki: Either `true` to enable the wiki for this repository or `false` to disable it. + /// - hasDownloads: Whether downloads are enabled. + /// - isTemplate: Either `true` to make this repo available as a template repository or `false` to prevent it. + /// - teamId: The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + /// - autoInit: Pass `true` to create an initial commit with empty README. + /// - gitignoreTemplate: Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell". + /// - licenseTemplate: Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". + /// - allowSquashMerge: Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + /// - allowMergeCommit: Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + /// - allowRebaseMerge: Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + /// - allowAutoMerge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. + /// - deleteBranchOnMerge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.** + /// - useSquashPrTitleAsDefault: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: Required when using `squash_merge_commit_message`. + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: Required when using `merge_commit_message`. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - customProperties: The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values. public init( name: Swift.String, description: Swift.String? = nil, homepage: Swift.String? = nil, _private: Swift.Bool? = nil, - visibility: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.visibilityPayload? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - is_template: Swift.Bool? = nil, - team_id: Swift.Int? = nil, - auto_init: Swift.Bool? = nil, - gitignore_template: Swift.String? = nil, - license_template: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_rebase_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.merge_commit_titlePayload? = nil, - merge_commit_message: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.merge_commit_messagePayload? = nil, - custom_properties: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload.custom_propertiesPayload? = nil + visibility: Operations.ReposCreateInOrg.Input.Body.JsonPayload.VisibilityPayload? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + isTemplate: Swift.Bool? = nil, + teamId: Swift.Int? = nil, + autoInit: Swift.Bool? = nil, + gitignoreTemplate: Swift.String? = nil, + licenseTemplate: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowRebaseMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Operations.ReposCreateInOrg.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Operations.ReposCreateInOrg.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Operations.ReposCreateInOrg.Input.Body.JsonPayload.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Operations.ReposCreateInOrg.Input.Body.JsonPayload.MergeCommitMessagePayload? = nil, + customProperties: Operations.ReposCreateInOrg.Input.Body.JsonPayload.CustomPropertiesPayload? = nil ) { self.name = name self.description = description self.homepage = homepage self._private = _private self.visibility = visibility - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_downloads = has_downloads - self.is_template = is_template - self.team_id = team_id - self.auto_init = auto_init - self.gitignore_template = gitignore_template - self.license_template = license_template - self.allow_squash_merge = allow_squash_merge - self.allow_merge_commit = allow_merge_commit - self.allow_rebase_merge = allow_rebase_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.custom_properties = custom_properties + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasDownloads = hasDownloads + self.isTemplate = isTemplate + self.teamId = teamId + self.autoInit = autoInit + self.gitignoreTemplate = gitignoreTemplate + self.licenseTemplate = licenseTemplate + self.allowSquashMerge = allowSquashMerge + self.allowMergeCommit = allowMergeCommit + self.allowRebaseMerge = allowRebaseMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.customProperties = customProperties } public enum CodingKeys: String, CodingKey { case name @@ -23837,32 +23846,32 @@ public enum Operations { case homepage case _private = "private" case visibility - case has_issues - case has_projects - case has_wiki - case has_downloads - case is_template - case team_id - case auto_init - case gitignore_template - case license_template - case allow_squash_merge - case allow_merge_commit - case allow_rebase_merge - case allow_auto_merge - case delete_branch_on_merge - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case custom_properties + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasDownloads = "has_downloads" + case isTemplate = "is_template" + case teamId = "team_id" + case autoInit = "auto_init" + case gitignoreTemplate = "gitignore_template" + case licenseTemplate = "license_template" + case allowSquashMerge = "allow_squash_merge" + case allowMergeCommit = "allow_merge_commit" + case allowRebaseMerge = "allow_rebase_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case customProperties = "custom_properties" } } /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.ReposCreateInOrg.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body + public var body: Operations.ReposCreateInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -23870,9 +23879,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Path, - headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_in_hyphen_org.Input.Body + path: Operations.ReposCreateInOrg.Input.Path, + headers: Operations.ReposCreateInOrg.Input.Headers = .init(), + body: Operations.ReposCreateInOrg.Input.Body ) { self.path = path self.headers = headers @@ -23884,26 +23893,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Headers + public var headers: Operations.ReposCreateInOrg.Output.Created.Headers /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/responses/201/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -23913,15 +23922,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.ReposCreateInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created.Body + headers: Operations.ReposCreateInOrg.Output.Created.Headers = .init(), + body: Operations.ReposCreateInOrg.Output.Created.Body ) { self.headers = headers self.body = body @@ -23932,12 +23941,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created) + case created(Operations.ReposCreateInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.ReposCreateInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -23955,12 +23964,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -23978,12 +23987,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/repos/post(repos/create-in-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -24033,7 +24042,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)`. - public enum repos_sol_get_hyphen_org_hyphen_rulesets { + public enum ReposGetOrgRulesets { public static let id: Swift.String = "repos/get-org-rulesets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/path`. @@ -24041,62 +24050,62 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Path + public var path: Operations.ReposGetOrgRulesets.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/query/page`. - public var page: Components.Parameters.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? + public var targets: Components.Parameters.RulesetTargets? /// 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)." + /// - perPage: 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, - targets: Components.Parameters.ruleset_hyphen_targets? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + targets: Components.Parameters.RulesetTargets? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page self.targets = targets } } - public var query: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Query + public var query: Operations.ReposGetOrgRulesets.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Headers + public var headers: Operations.ReposGetOrgRulesets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -24104,9 +24113,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Path, - query: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Input.Headers = .init() + path: Operations.ReposGetOrgRulesets.Input.Path, + query: Operations.ReposGetOrgRulesets.Input.Query = .init(), + headers: Operations.ReposGetOrgRulesets.Input.Headers = .init() ) { self.path = path self.query = query @@ -24118,12 +24127,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_ruleset]) + case json([Components.Schemas.RepositoryRuleset]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_ruleset] { + public var json: [Components.Schemas.RepositoryRuleset] { get throws { switch self { case let .json(body): @@ -24133,12 +24142,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output.Ok.Body + public var body: Operations.ReposGetOrgRulesets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output.Ok.Body) { + public init(body: Operations.ReposGetOrgRulesets.Output.Ok.Body) { self.body = body } } @@ -24147,12 +24156,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output.Ok) + case ok(Operations.ReposGetOrgRulesets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_org_hyphen_rulesets.Output.Ok { + public var ok: Operations.ReposGetOrgRulesets.Output.Ok { get throws { switch self { case let .ok(response): @@ -24170,12 +24179,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24193,12 +24202,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/get(repos/get-org-rulesets)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24248,7 +24257,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/rulesets`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)`. - public enum repos_sol_create_hyphen_org_hyphen_ruleset { + public enum ReposCreateOrgRuleset { public static let id: Swift.String = "repos/create-org-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/path`. @@ -24256,32 +24265,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Path + public var path: Operations.ReposCreateOrgRuleset.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposCreateOrgRuleset.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/name`. @@ -24289,7 +24298,7 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/target`. - @frozen public enum targetPayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetPayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" case push = "push" @@ -24298,40 +24307,40 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/target`. - public var target: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? + public var target: Operations.ReposCreateOrgRuleset.Input.Body.JsonPayload.TargetPayload? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/enforcement`. - public var enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement + public var enforcement: Components.Schemas.RepositoryRuleEnforcement /// The actors that can bypass the rules in this ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/bypass_actors`. - public var bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? + public var bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/conditions`. - public var conditions: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? + public var conditions: Components.Schemas.OrgRulesetConditions? /// An array of rules within the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/rules`. - public var rules: [Components.Schemas.repository_hyphen_rule]? - /// Creates a new `jsonPayload`. + public var rules: [Components.Schemas.RepositoryRule]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the ruleset. /// - target: The target of the ruleset /// - enforcement: - /// - bypass_actors: The actors that can bypass the rules in this ruleset + /// - bypassActors: The actors that can bypass the rules in this ruleset /// - conditions: /// - rules: An array of rules within the ruleset. public init( name: Swift.String, - target: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? = nil, - enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement, - bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? = nil, - conditions: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? = nil, - rules: [Components.Schemas.repository_hyphen_rule]? = nil + target: Operations.ReposCreateOrgRuleset.Input.Body.JsonPayload.TargetPayload? = nil, + enforcement: Components.Schemas.RepositoryRuleEnforcement, + bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? = nil, + conditions: Components.Schemas.OrgRulesetConditions? = nil, + rules: [Components.Schemas.RepositoryRule]? = nil ) { self.name = name self.target = target self.enforcement = enforcement - self.bypass_actors = bypass_actors + self.bypassActors = bypassActors self.conditions = conditions self.rules = rules } @@ -24339,15 +24348,15 @@ public enum Operations { case name case target case enforcement - case bypass_actors + case bypassActors = "bypass_actors" case conditions case rules } } /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload) + case json(Operations.ReposCreateOrgRuleset.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body + public var body: Operations.ReposCreateOrgRuleset.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -24355,9 +24364,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body + path: Operations.ReposCreateOrgRuleset.Input.Path, + headers: Operations.ReposCreateOrgRuleset.Input.Headers = .init(), + body: Operations.ReposCreateOrgRuleset.Input.Body ) { self.path = path self.headers = headers @@ -24369,12 +24378,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/responses/201/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -24384,12 +24393,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output.Created.Body + public var body: Operations.ReposCreateOrgRuleset.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output.Created.Body) { + public init(body: Operations.ReposCreateOrgRuleset.Output.Created.Body) { self.body = body } } @@ -24398,12 +24407,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output.Created) + case created(Operations.ReposCreateOrgRuleset.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Output.Created { + public var created: Operations.ReposCreateOrgRuleset.Output.Created { get throws { switch self { case let .created(response): @@ -24421,12 +24430,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24444,12 +24453,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/post(repos/create-org-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24500,7 +24509,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)`. - public enum repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites { + public enum ReposGetOrgRuleSuites { public static let id: Swift.String = "repos/get-org-rule-suites" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/path`. @@ -24508,28 +24517,28 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Path + public var path: Operations.ReposGetOrgRuleSuites.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query`. public struct Query: Sendable, Hashable { /// 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 `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/ref`. - public var ref: Components.Parameters.ref_hyphen_in_hyphen_query? + public var ref: Components.Parameters.RefInQuery? /// The name of the repository to filter on. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/repository_name`. - public var repository_name: Components.Parameters.repository_hyphen_name_hyphen_in_hyphen_query? + public var repositoryName: Components.Parameters.RepositoryNameInQuery? /// - Remark: Generated from `#/components/parameters/time-period`. - @frozen public enum time_hyphen_period: String, Codable, Hashable, Sendable { + @frozen public enum TimePeriod: String, Codable, Hashable, Sendable, CaseIterable { case hour = "hour" case day = "day" case week = "week" @@ -24540,13 +24549,13 @@ public enum Operations { /// For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/time_period`. - public var time_period: Components.Parameters.time_hyphen_period? + public var timePeriod: Components.Parameters.TimePeriod? /// The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/actor_name`. - public var actor_name: Components.Parameters.actor_hyphen_name_hyphen_in_hyphen_query? + public var actorName: Components.Parameters.ActorNameInQuery? /// - Remark: Generated from `#/components/parameters/rule-suite-result`. - @frozen public enum rule_hyphen_suite_hyphen_result: String, Codable, Hashable, Sendable { + @frozen public enum RuleSuiteResult: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" @@ -24555,56 +24564,56 @@ public enum Operations { /// The rule results to filter on. When specified, only suites with this result will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/rule_suite_result`. - public var rule_suite_result: Components.Parameters.rule_hyphen_suite_hyphen_result? + public var ruleSuiteResult: Components.Parameters.RuleSuiteResult? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - ref: 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. - /// - repository_name: The name of the repository to filter on. - /// - time_period: The time period to filter by. - /// - actor_name: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. - /// - rule_suite_result: The rule results to filter on. When specified, only suites with this result will be returned. - /// - 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)." + /// - repositoryName: The name of the repository to filter on. + /// - timePeriod: The time period to filter by. + /// - actorName: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. + /// - ruleSuiteResult: The rule results to filter on. When specified, only suites with this result will be returned. + /// - perPage: 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)." public init( - ref: Components.Parameters.ref_hyphen_in_hyphen_query? = nil, - repository_name: Components.Parameters.repository_hyphen_name_hyphen_in_hyphen_query? = nil, - time_period: Components.Parameters.time_hyphen_period? = nil, - actor_name: Components.Parameters.actor_hyphen_name_hyphen_in_hyphen_query? = nil, - rule_suite_result: Components.Parameters.rule_hyphen_suite_hyphen_result? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + ref: Components.Parameters.RefInQuery? = nil, + repositoryName: Components.Parameters.RepositoryNameInQuery? = nil, + timePeriod: Components.Parameters.TimePeriod? = nil, + actorName: Components.Parameters.ActorNameInQuery? = nil, + ruleSuiteResult: Components.Parameters.RuleSuiteResult? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.ref = ref - self.repository_name = repository_name - self.time_period = time_period - self.actor_name = actor_name - self.rule_suite_result = rule_suite_result - self.per_page = per_page + self.repositoryName = repositoryName + self.timePeriod = timePeriod + self.actorName = actorName + self.ruleSuiteResult = ruleSuiteResult + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Query + public var query: Operations.ReposGetOrgRuleSuites.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Headers + public var headers: Operations.ReposGetOrgRuleSuites.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -24612,9 +24621,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Path, - query: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Input.Headers = .init() + path: Operations.ReposGetOrgRuleSuites.Input.Path, + query: Operations.ReposGetOrgRuleSuites.Input.Query = .init(), + headers: Operations.ReposGetOrgRuleSuites.Input.Headers = .init() ) { self.path = path self.query = query @@ -24626,12 +24635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/responses/200/content/application\/json`. - case json(Components.Schemas.rule_hyphen_suites) + case json(Components.Schemas.RuleSuites) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.rule_hyphen_suites { + public var json: Components.Schemas.RuleSuites { get throws { switch self { case let .json(body): @@ -24641,12 +24650,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output.Ok.Body + public var body: Operations.ReposGetOrgRuleSuites.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output.Ok.Body) { + public init(body: Operations.ReposGetOrgRuleSuites.Output.Ok.Body) { self.body = body } } @@ -24655,12 +24664,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output.Ok) + case ok(Operations.ReposGetOrgRuleSuites.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suites.Output.Ok { + public var ok: Operations.ReposGetOrgRuleSuites.Output.Ok { get throws { switch self { case let .ok(response): @@ -24678,12 +24687,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24701,12 +24710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/get(repos/get-org-rule-suites)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24757,7 +24766,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)`. - public enum repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite { + public enum ReposGetOrgRuleSuite { public static let id: Swift.String = "repos/get-org-rule-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/path`. @@ -24765,48 +24774,48 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the rule suite result. /// To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) /// for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) /// for organizations. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/path/rule_suite_id`. - public var rule_suite_id: Components.Parameters.rule_hyphen_suite_hyphen_id + public var ruleSuiteId: Components.Parameters.RuleSuiteId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - rule_suite_id: The unique identifier of the rule suite result. + /// - ruleSuiteId: The unique identifier of the rule suite result. public init( - org: Components.Parameters.org, - rule_suite_id: Components.Parameters.rule_hyphen_suite_hyphen_id + org: Components.Parameters.Org, + ruleSuiteId: Components.Parameters.RuleSuiteId ) { self.org = org - self.rule_suite_id = rule_suite_id + self.ruleSuiteId = ruleSuiteId } } - public var path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Path + public var path: Operations.ReposGetOrgRuleSuite.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Headers + public var headers: Operations.ReposGetOrgRuleSuite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Path, - headers: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Input.Headers = .init() + path: Operations.ReposGetOrgRuleSuite.Input.Path, + headers: Operations.ReposGetOrgRuleSuite.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -24817,12 +24826,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/{rule_suite_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.rule_hyphen_suite) + case json(Components.Schemas.RuleSuite) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.rule_hyphen_suite { + public var json: Components.Schemas.RuleSuite { get throws { switch self { case let .json(body): @@ -24832,12 +24841,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output.Ok.Body + public var body: Operations.ReposGetOrgRuleSuite.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output.Ok.Body) { + public init(body: Operations.ReposGetOrgRuleSuite.Output.Ok.Body) { self.body = body } } @@ -24846,12 +24855,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output.Ok) + case ok(Operations.ReposGetOrgRuleSuite.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_org_hyphen_rule_hyphen_suite.Output.Ok { + public var ok: Operations.ReposGetOrgRuleSuite.Output.Ok { get throws { switch self { case let .ok(response): @@ -24869,12 +24878,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -24892,12 +24901,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-org-rule-suite)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -24950,7 +24959,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)`. - public enum repos_sol_get_hyphen_org_hyphen_ruleset { + public enum ReposGetOrgRuleset { public static let id: Swift.String = "repos/get-org-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/path`. @@ -24958,45 +24967,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - org: Components.Parameters.org, - ruleset_id: Swift.Int + org: Components.Parameters.Org, + rulesetId: Swift.Int ) { self.org = org - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Path + public var path: Operations.ReposGetOrgRuleset.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposGetOrgRuleset.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Input.Headers = .init() + path: Operations.ReposGetOrgRuleset.Input.Path, + headers: Operations.ReposGetOrgRuleset.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25007,12 +25016,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -25022,12 +25031,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output.Ok.Body + public var body: Operations.ReposGetOrgRuleset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output.Ok.Body) { + public init(body: Operations.ReposGetOrgRuleset.Output.Ok.Body) { self.body = body } } @@ -25036,12 +25045,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output.Ok) + case ok(Operations.ReposGetOrgRuleset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_org_hyphen_ruleset.Output.Ok { + public var ok: Operations.ReposGetOrgRuleset.Output.Ok { get throws { switch self { case let .ok(response): @@ -25059,12 +25068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25082,12 +25091,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/get(repos/get-org-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -25137,7 +25146,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)`. - public enum repos_sol_update_hyphen_org_hyphen_ruleset { + public enum ReposUpdateOrgRuleset { public static let id: Swift.String = "repos/update-org-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/path`. @@ -25145,41 +25154,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - org: Components.Parameters.org, - ruleset_id: Swift.Int + org: Components.Parameters.Org, + rulesetId: Swift.Int ) { self.org = org - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Path + public var path: Operations.ReposUpdateOrgRuleset.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposUpdateOrgRuleset.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/name`. @@ -25187,7 +25196,7 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. - @frozen public enum targetPayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetPayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" case push = "push" @@ -25196,40 +25205,40 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. - public var target: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? + public var target: Operations.ReposUpdateOrgRuleset.Input.Body.JsonPayload.TargetPayload? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/enforcement`. - public var enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement? + public var enforcement: Components.Schemas.RepositoryRuleEnforcement? /// The actors that can bypass the rules in this ruleset /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/bypass_actors`. - public var bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? + public var bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/conditions`. - public var conditions: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? + public var conditions: Components.Schemas.OrgRulesetConditions? /// An array of rules within the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/rules`. - public var rules: [Components.Schemas.repository_hyphen_rule]? - /// Creates a new `jsonPayload`. + public var rules: [Components.Schemas.RepositoryRule]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the ruleset. /// - target: The target of the ruleset /// - enforcement: - /// - bypass_actors: The actors that can bypass the rules in this ruleset + /// - bypassActors: The actors that can bypass the rules in this ruleset /// - conditions: /// - rules: An array of rules within the ruleset. public init( name: Swift.String? = nil, - target: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? = nil, - enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement? = nil, - bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? = nil, - conditions: Components.Schemas.org_hyphen_ruleset_hyphen_conditions? = nil, - rules: [Components.Schemas.repository_hyphen_rule]? = nil + target: Operations.ReposUpdateOrgRuleset.Input.Body.JsonPayload.TargetPayload? = nil, + enforcement: Components.Schemas.RepositoryRuleEnforcement? = nil, + bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? = nil, + conditions: Components.Schemas.OrgRulesetConditions? = nil, + rules: [Components.Schemas.RepositoryRule]? = nil ) { self.name = name self.target = target self.enforcement = enforcement - self.bypass_actors = bypass_actors + self.bypassActors = bypassActors self.conditions = conditions self.rules = rules } @@ -25237,15 +25246,15 @@ public enum Operations { case name case target case enforcement - case bypass_actors + case bypassActors = "bypass_actors" case conditions case rules } } /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload) + case json(Operations.ReposUpdateOrgRuleset.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body? + public var body: Operations.ReposUpdateOrgRuleset.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -25253,9 +25262,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body? = nil + path: Operations.ReposUpdateOrgRuleset.Input.Path, + headers: Operations.ReposUpdateOrgRuleset.Input.Headers = .init(), + body: Operations.ReposUpdateOrgRuleset.Input.Body? = nil ) { self.path = path self.headers = headers @@ -25267,12 +25276,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -25282,12 +25291,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output.Ok.Body + public var body: Operations.ReposUpdateOrgRuleset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output.Ok.Body) { + public init(body: Operations.ReposUpdateOrgRuleset.Output.Ok.Body) { self.body = body } } @@ -25296,12 +25305,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output.Ok) + case ok(Operations.ReposUpdateOrgRuleset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Output.Ok { + public var ok: Operations.ReposUpdateOrgRuleset.Output.Ok { get throws { switch self { case let .ok(response): @@ -25319,12 +25328,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25342,12 +25351,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/put(repos/update-org-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -25397,7 +25406,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)`. - public enum repos_sol_delete_hyphen_org_hyphen_ruleset { + public enum ReposDeleteOrgRuleset { public static let id: Swift.String = "repos/delete-org-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/DELETE/path`. @@ -25405,45 +25414,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/DELETE/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - org: Components.Parameters.org, - ruleset_id: Swift.Int + org: Components.Parameters.Org, + rulesetId: Swift.Int ) { self.org = org - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Path + public var path: Operations.ReposDeleteOrgRuleset.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposDeleteOrgRuleset.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Input.Headers = .init() + path: Operations.ReposDeleteOrgRuleset.Input.Path, + headers: Operations.ReposDeleteOrgRuleset.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25459,12 +25468,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Output.NoContent) + case noContent(Operations.ReposDeleteOrgRuleset.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_org_hyphen_ruleset.Output.NoContent { + public var noContent: Operations.ReposDeleteOrgRuleset.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -25482,12 +25499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25505,12 +25522,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/rulesets/{ruleset_id}/delete(repos/delete-org-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -25563,7 +25580,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)`. - public enum repos_sol_get { + public enum ReposGet { public static let id: Swift.String = "repos/get" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/path`. @@ -25571,45 +25588,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get.Input.Path + public var path: Operations.ReposGet.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get.Input.Headers + public var headers: Operations.ReposGet.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get.Input.Path, - headers: Operations.repos_sol_get.Input.Headers = .init() + path: Operations.ReposGet.Input.Path, + headers: Operations.ReposGet.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -25620,12 +25637,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -25635,12 +25652,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get.Output.Ok.Body + public var body: Operations.ReposGet.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get.Output.Ok.Body) { + public init(body: Operations.ReposGet.Output.Ok.Body) { self.body = body } } @@ -25649,12 +25666,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get.Output.Ok) + case ok(Operations.ReposGet.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get.Output.Ok { + public var ok: Operations.ReposGet.Output.Ok { get throws { switch self { case let .ok(response): @@ -25672,12 +25689,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -25695,12 +25712,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -25718,12 +25735,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/get(repos/get)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -25773,7 +25790,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)`. - public enum repos_sol_update { + public enum ReposUpdate { public static let id: Swift.String = "repos/update" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/path`. @@ -25781,41 +25798,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_update.Input.Path + public var path: Operations.ReposUpdate.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update.Input.Headers + public var headers: Operations.ReposUpdate.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/name`. @@ -25836,14 +25853,14 @@ public enum Operations { /// The visibility of the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" } /// The visibility of the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/visibility`. - public var visibility: Operations.repos_sol_update.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.ReposUpdate.Input.Body.JsonPayload.VisibilityPayload? /// Specify which security and analysis features to enable or disable for the repository. /// /// To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." @@ -25854,16 +25871,16 @@ public enum Operations { /// You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis`. - public struct security_and_analysisPayload: Codable, Hashable, Sendable { + public struct SecurityAndAnalysisPayload: Codable, Hashable, Sendable { /// Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/advanced_security/status`. public var status: Swift.String? - /// Creates a new `advanced_securityPayload`. + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25877,16 +25894,16 @@ public enum Operations { /// Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/advanced_security`. - public var advanced_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.advanced_securityPayload? + public var advancedSecurity: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.AdvancedSecurityPayload? /// Use the `status` property to enable or disable GitHub Code Security for this repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/code_security/status`. public var status: Swift.String? - /// Creates a new `code_securityPayload`. + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25900,16 +25917,16 @@ public enum Operations { /// Use the `status` property to enable or disable GitHub Code Security for this repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/code_security`. - public var code_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.code_securityPayload? + public var codeSecurity: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.CodeSecurityPayload? /// Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning/status`. public var status: Swift.String? - /// Creates a new `secret_scanningPayload`. + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25923,16 +25940,16 @@ public enum Operations { /// Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning`. - public var secret_scanning: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanningPayload? + public var secretScanning: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningPayload? /// Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection/status`. public var status: Swift.String? - /// Creates a new `secret_scanning_push_protectionPayload`. + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25946,16 +25963,16 @@ public enum Operations { /// Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningPushProtectionPayload? /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection/status`. public var status: Swift.String? - /// Creates a new `secret_scanning_ai_detectionPayload`. + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25969,16 +25986,16 @@ public enum Operations { /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_ai_detectionPayload? + public var secretScanningAiDetection: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningAiDetectionPayload? /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// Can be `enabled` or `disabled`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns/status`. public var status: Swift.String? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: Can be `enabled` or `disabled`. @@ -25992,38 +26009,38 @@ public enum Operations { /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload? - /// Creates a new `security_and_analysisPayload`. + public var secretScanningNonProviderPatterns: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningNonProviderPatternsPayload? + /// Creates a new `SecurityAndAnalysisPayload`. /// /// - Parameters: - /// - advanced_security: Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." - /// - code_security: Use the `status` property to enable or disable GitHub Code Security for this repository. - /// - secret_scanning: Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." - /// - secret_scanning_push_protection: Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." - /// - secret_scanning_ai_detection: Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." - /// - secret_scanning_non_provider_patterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + /// - advancedSecurity: Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." + /// - codeSecurity: Use the `status` property to enable or disable GitHub Code Security for this repository. + /// - secretScanning: Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." + /// - secretScanningPushProtection: Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." + /// - secretScanningAiDetection: Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + /// - secretScanningNonProviderPatterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." public init( - advanced_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.advanced_securityPayload? = nil, - code_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.code_securityPayload? = nil, - secret_scanning: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanningPayload? = nil, - secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? = nil, - secret_scanning_ai_detection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_ai_detectionPayload? = nil, - secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload? = nil + advancedSecurity: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.AdvancedSecurityPayload? = nil, + codeSecurity: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.CodeSecurityPayload? = nil, + secretScanning: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningPayload? = nil, + secretScanningPushProtection: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningPushProtectionPayload? = nil, + secretScanningAiDetection: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningAiDetectionPayload? = nil, + secretScanningNonProviderPatterns: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningNonProviderPatternsPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_ai_detection = secret_scanning_ai_detection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningAiDetection = secretScanningAiDetection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_ai_detection - case secret_scanning_non_provider_patterns + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningAiDetection = "secret_scanning_ai_detection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" } } /// Specify which security and analysis features to enable or disable for the repository. @@ -26036,56 +26053,56 @@ public enum Operations { /// You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis`. - public var security_and_analysis: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload? + public var securityAndAnalysis: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload? /// Either `true` to enable issues for this repository or `false` to disable them. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// Either `true` to enable the wiki for this repository or `false` to disable it. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// Either `true` to make this repo available as a template repository or `false` to prevent it. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// Updates the default branch for this repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// Required when using `squash_merge_commit_message`. /// /// The default value for a squash merge commit title: @@ -26094,9 +26111,9 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// Required when using `squash_merge_commit_message`. /// @@ -26106,7 +26123,7 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/squash_merge_commit_title`. - public var squash_merge_commit_title: Operations.repos_sol_update.Input.Body.jsonPayload.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Operations.ReposUpdate.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -26114,10 +26131,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -26126,7 +26143,7 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/squash_merge_commit_message`. - public var squash_merge_commit_message: Operations.repos_sol_update.Input.Body.jsonPayload.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Operations.ReposUpdate.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? /// Required when using `merge_commit_message`. /// /// The default value for a merge commit title. @@ -26135,9 +26152,9 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// Required when using `merge_commit_message`. /// @@ -26147,7 +26164,7 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/merge_commit_title`. - public var merge_commit_title: Operations.repos_sol_update.Input.Body.jsonPayload.merge_commit_titlePayload? + public var mergeCommitTitle: Operations.ReposUpdate.Input.Body.JsonPayload.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -26155,10 +26172,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -26167,7 +26184,7 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/merge_commit_message`. - public var merge_commit_message: Operations.repos_sol_update.Input.Body.jsonPayload.merge_commit_messagePayload? + public var mergeCommitMessage: Operations.ReposUpdate.Input.Body.JsonPayload.MergeCommitMessagePayload? /// Whether to archive this repository. `false` will unarchive a previously archived repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/archived`. @@ -26175,12 +26192,12 @@ public enum Operations { /// Either `true` to allow private forks, or `false` to prevent private forks. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? - /// Creates a new `jsonPayload`. + public var webCommitSignoffRequired: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the repository. @@ -26188,78 +26205,78 @@ public enum Operations { /// - homepage: A URL with more information about the repository. /// - _private: Either `true` to make the repository private or `false` to make it public. Default: `false`. /// - visibility: The visibility of the repository. - /// - security_and_analysis: Specify which security and analysis features to enable or disable for the repository. - /// - has_issues: Either `true` to enable issues for this repository or `false` to disable them. - /// - has_projects: Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - /// - has_wiki: Either `true` to enable the wiki for this repository or `false` to disable it. - /// - is_template: Either `true` to make this repo available as a template repository or `false` to prevent it. - /// - default_branch: Updates the default branch for this repository. - /// - allow_squash_merge: Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - /// - allow_merge_commit: Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - /// - allow_rebase_merge: Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - /// - allow_auto_merge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. - /// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - /// - allow_update_branch: Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. - /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: Required when using `squash_merge_commit_message`. - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: Required when using `merge_commit_message`. - /// - merge_commit_message: The default value for a merge commit message. + /// - securityAndAnalysis: Specify which security and analysis features to enable or disable for the repository. + /// - hasIssues: Either `true` to enable issues for this repository or `false` to disable them. + /// - hasProjects: Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. + /// - hasWiki: Either `true` to enable the wiki for this repository or `false` to disable it. + /// - isTemplate: Either `true` to make this repo available as a template repository or `false` to prevent it. + /// - defaultBranch: Updates the default branch for this repository. + /// - allowSquashMerge: Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + /// - allowMergeCommit: Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + /// - allowRebaseMerge: Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + /// - allowAutoMerge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. + /// - deleteBranchOnMerge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + /// - allowUpdateBranch: Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. + /// - useSquashPrTitleAsDefault: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: Required when using `squash_merge_commit_message`. + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: Required when using `merge_commit_message`. + /// - mergeCommitMessage: The default value for a merge commit message. /// - archived: Whether to archive this repository. `false` will unarchive a previously archived repository. - /// - allow_forking: Either `true` to allow private forks, or `false` to prevent private forks. - /// - web_commit_signoff_required: Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. + /// - allowForking: Either `true` to allow private forks, or `false` to prevent private forks. + /// - webCommitSignoffRequired: Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. public init( name: Swift.String? = nil, description: Swift.String? = nil, homepage: Swift.String? = nil, _private: Swift.Bool? = nil, - visibility: Operations.repos_sol_update.Input.Body.jsonPayload.visibilityPayload? = nil, - security_and_analysis: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - is_template: Swift.Bool? = nil, - default_branch: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_rebase_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Operations.repos_sol_update.Input.Body.jsonPayload.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Operations.repos_sol_update.Input.Body.jsonPayload.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Operations.repos_sol_update.Input.Body.jsonPayload.merge_commit_titlePayload? = nil, - merge_commit_message: Operations.repos_sol_update.Input.Body.jsonPayload.merge_commit_messagePayload? = nil, + visibility: Operations.ReposUpdate.Input.Body.JsonPayload.VisibilityPayload? = nil, + securityAndAnalysis: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + isTemplate: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowRebaseMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Operations.ReposUpdate.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Operations.ReposUpdate.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Operations.ReposUpdate.Input.Body.JsonPayload.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Operations.ReposUpdate.Input.Body.JsonPayload.MergeCommitMessagePayload? = nil, archived: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil ) { self.name = name self.description = description self.homepage = homepage self._private = _private self.visibility = visibility - self.security_and_analysis = security_and_analysis - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.is_template = is_template - self.default_branch = default_branch - self.allow_squash_merge = allow_squash_merge - self.allow_merge_commit = allow_merge_commit - self.allow_rebase_merge = allow_rebase_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message + self.securityAndAnalysis = securityAndAnalysis + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.isTemplate = isTemplate + self.defaultBranch = defaultBranch + self.allowSquashMerge = allowSquashMerge + self.allowMergeCommit = allowMergeCommit + self.allowRebaseMerge = allowRebaseMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage self.archived = archived - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired } public enum CodingKeys: String, CodingKey { case name @@ -26267,32 +26284,32 @@ public enum Operations { case homepage case _private = "private" case visibility - case security_and_analysis - case has_issues - case has_projects - case has_wiki - case is_template - case default_branch - case allow_squash_merge - case allow_merge_commit - case allow_rebase_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message + case securityAndAnalysis = "security_and_analysis" + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case isTemplate = "is_template" + case defaultBranch = "default_branch" + case allowSquashMerge = "allow_squash_merge" + case allowMergeCommit = "allow_merge_commit" + case allowRebaseMerge = "allow_rebase_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" case archived - case allow_forking - case web_commit_signoff_required + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update.Input.Body.jsonPayload) + case json(Operations.ReposUpdate.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update.Input.Body? + public var body: Operations.ReposUpdate.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -26300,9 +26317,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update.Input.Path, - headers: Operations.repos_sol_update.Input.Headers = .init(), - body: Operations.repos_sol_update.Input.Body? = nil + path: Operations.ReposUpdate.Input.Path, + headers: Operations.ReposUpdate.Input.Headers = .init(), + body: Operations.ReposUpdate.Input.Body? = nil ) { self.path = path self.headers = headers @@ -26314,12 +26331,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -26329,12 +26346,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update.Output.Ok.Body + public var body: Operations.ReposUpdate.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update.Output.Ok.Body) { + public init(body: Operations.ReposUpdate.Output.Ok.Body) { self.body = body } } @@ -26343,12 +26360,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update.Output.Ok) + case ok(Operations.ReposUpdate.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update.Output.Ok { + public var ok: Operations.ReposUpdate.Output.Ok { get throws { switch self { case let .ok(response): @@ -26366,12 +26383,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)/responses/307`. /// /// HTTP response code: `307 temporaryRedirect`. - case temporaryRedirect(Components.Responses.temporary_redirect) + case temporaryRedirect(Components.Responses.TemporaryRedirect) /// The associated value of the enum case if `self` is `.temporaryRedirect`. /// /// - Throws: An error if `self` is not `.temporaryRedirect`. /// - SeeAlso: `.temporaryRedirect`. - public var temporaryRedirect: Components.Responses.temporary_redirect { + public var temporaryRedirect: Components.Responses.TemporaryRedirect { get throws { switch self { case let .temporaryRedirect(response): @@ -26389,12 +26406,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -26412,12 +26429,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -26435,12 +26452,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/patch(repos/update)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -26495,7 +26512,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)`. - public enum repos_sol_delete { + public enum ReposDelete { public static let id: Swift.String = "repos/delete" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/path`. @@ -26503,45 +26520,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_delete.Input.Path + public var path: Operations.ReposDelete.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete.Input.Headers + public var headers: Operations.ReposDelete.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete.Input.Path, - headers: Operations.repos_sol_delete.Input.Headers = .init() + path: Operations.ReposDelete.Input.Path, + headers: Operations.ReposDelete.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -26557,12 +26574,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete.Output.NoContent) + case noContent(Operations.ReposDelete.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete.Output.NoContent { + public var noContent: Operations.ReposDelete.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -26579,35 +26604,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/DELETE/responses/403/content/application\/json`. - case json(Operations.repos_sol_delete.Output.Forbidden.Body.jsonPayload) + case json(Operations.ReposDelete.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_delete.Output.Forbidden.Body.jsonPayload { + public var json: Operations.ReposDelete.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -26617,12 +26642,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_delete.Output.Forbidden.Body + public var body: Operations.ReposDelete.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_delete.Output.Forbidden.Body) { + public init(body: Operations.ReposDelete.Output.Forbidden.Body) { self.body = body } } @@ -26631,12 +26656,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.repos_sol_delete.Output.Forbidden) + case forbidden(Operations.ReposDelete.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.repos_sol_delete.Output.Forbidden { + public var forbidden: Operations.ReposDelete.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -26654,12 +26679,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/307`. /// /// HTTP response code: `307 temporaryRedirect`. - case temporaryRedirect(Components.Responses.temporary_redirect) + case temporaryRedirect(Components.Responses.TemporaryRedirect) /// The associated value of the enum case if `self` is `.temporaryRedirect`. /// /// - Throws: An error if `self` is not `.temporaryRedirect`. /// - SeeAlso: `.temporaryRedirect`. - public var temporaryRedirect: Components.Responses.temporary_redirect { + public var temporaryRedirect: Components.Responses.TemporaryRedirect { get throws { switch self { case let .temporaryRedirect(response): @@ -26677,12 +26702,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -26735,7 +26760,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)`. - public enum repos_sol_list_hyphen_activities { + public enum ReposListActivities { public static let id: Swift.String = "repos/list-activities" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/path`. @@ -26743,48 +26768,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_activities.Input.Path + public var path: Operations.ReposListActivities.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// The Git reference for the activities you want to list. /// /// The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. @@ -26796,7 +26821,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/actor`. public var actor: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/time_period`. - @frozen public enum time_periodPayload: String, Codable, Hashable, Sendable { + @frozen public enum TimePeriodPayload: String, Codable, Hashable, Sendable, CaseIterable { case day = "day" case week = "week" case month = "month" @@ -26808,66 +26833,66 @@ public enum Operations { /// For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/time_period`. - public var time_period: Operations.repos_sol_list_hyphen_activities.Input.Query.time_periodPayload? + public var timePeriod: Operations.ReposListActivities.Input.Query.TimePeriodPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/activity_type`. - @frozen public enum activity_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum ActivityTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case push = "push" - case force_push = "force_push" - case branch_creation = "branch_creation" - case branch_deletion = "branch_deletion" - case pr_merge = "pr_merge" - case merge_queue_merge = "merge_queue_merge" + case forcePush = "force_push" + case branchCreation = "branch_creation" + case branchDeletion = "branch_deletion" + case prMerge = "pr_merge" + case mergeQueueMerge = "merge_queue_merge" } /// The activity type to filter by. /// /// For example, you can choose to filter by "force_push", to see all force pushes to the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/query/activity_type`. - public var activity_type: Operations.repos_sol_list_hyphen_activities.Input.Query.activity_typePayload? + public var activityType: Operations.ReposListActivities.Input.Query.ActivityTypePayload? /// Creates a new `Query`. /// /// - Parameters: /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - ref: The Git reference for the activities you want to list. /// - actor: The GitHub username to use to filter by the actor who performed the activity. - /// - time_period: The time period to filter by. - /// - activity_type: The activity type to filter by. + /// - timePeriod: The time period to filter by. + /// - activityType: The activity type to filter by. public init( - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, ref: Swift.String? = nil, actor: Swift.String? = nil, - time_period: Operations.repos_sol_list_hyphen_activities.Input.Query.time_periodPayload? = nil, - activity_type: Operations.repos_sol_list_hyphen_activities.Input.Query.activity_typePayload? = nil + timePeriod: Operations.ReposListActivities.Input.Query.TimePeriodPayload? = nil, + activityType: Operations.ReposListActivities.Input.Query.ActivityTypePayload? = nil ) { self.direction = direction - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.ref = ref self.actor = actor - self.time_period = time_period - self.activity_type = activity_type + self.timePeriod = timePeriod + self.activityType = activityType } } - public var query: Operations.repos_sol_list_hyphen_activities.Input.Query + public var query: Operations.ReposListActivities.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_activities.Input.Headers + public var headers: Operations.ReposListActivities.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -26875,9 +26900,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_activities.Input.Path, - query: Operations.repos_sol_list_hyphen_activities.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_activities.Input.Headers = .init() + path: Operations.ReposListActivities.Input.Path, + query: Operations.ReposListActivities.Input.Query = .init(), + headers: Operations.ReposListActivities.Input.Headers = .init() ) { self.path = path self.query = query @@ -26889,26 +26914,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_activities.Output.Ok.Headers + public var headers: Operations.ReposListActivities.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/activity/GET/responses/200/content/application\/json`. - case json([Components.Schemas.activity]) + case json([Components.Schemas.Activity]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.activity] { + public var json: [Components.Schemas.Activity] { get throws { switch self { case let .json(body): @@ -26918,15 +26943,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_activities.Output.Ok.Body + public var body: Operations.ReposListActivities.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_activities.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_activities.Output.Ok.Body + headers: Operations.ReposListActivities.Output.Ok.Headers = .init(), + body: Operations.ReposListActivities.Output.Ok.Body ) { self.headers = headers self.body = body @@ -26937,12 +26962,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_activities.Output.Ok) + case ok(Operations.ReposListActivities.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_activities.Output.Ok { + public var ok: Operations.ReposListActivities.Output.Ok { get throws { switch self { case let .ok(response): @@ -26960,12 +26985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/activity/get(repos/list-activities)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -27019,7 +27044,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. - public enum repos_sol_create_hyphen_attestation { + public enum ReposCreateAttestation { public static let id: Swift.String = "repos/create-attestation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/path`. @@ -27027,53 +27052,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_attestation.Input.Path + public var path: Operations.ReposCreateAttestation.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_attestation.Input.Headers + public var headers: Operations.ReposCreateAttestation.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle`. - public struct bundlePayload: Codable, Hashable, Sendable { + public struct BundlePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle/mediaType`. public var mediaType: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle/verificationMaterial`. - public struct verificationMaterialPayload: Codable, Hashable, Sendable { + public struct VerificationMaterialPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `verificationMaterialPayload`. + /// Creates a new `VerificationMaterialPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -27088,12 +27113,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle/verificationMaterial`. - public var verificationMaterial: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload.verificationMaterialPayload? + public var verificationMaterial: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload.VerificationMaterialPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle/dsseEnvelope`. - public struct dsseEnvelopePayload: Codable, Hashable, Sendable { + public struct DsseEnvelopePayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `dsseEnvelopePayload`. + /// Creates a new `DsseEnvelopePayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -27108,8 +27133,8 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle/dsseEnvelope`. - public var dsseEnvelope: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload.dsseEnvelopePayload? - /// Creates a new `bundlePayload`. + public var dsseEnvelope: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload.DsseEnvelopePayload? + /// Creates a new `BundlePayload`. /// /// - Parameters: /// - mediaType: @@ -27117,8 +27142,8 @@ public enum Operations { /// - dsseEnvelope: public init( mediaType: Swift.String? = nil, - verificationMaterial: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload.verificationMaterialPayload? = nil, - dsseEnvelope: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload.dsseEnvelopePayload? = nil + verificationMaterial: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload.VerificationMaterialPayload? = nil, + dsseEnvelope: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload.DsseEnvelopePayload? = nil ) { self.mediaType = mediaType self.verificationMaterial = verificationMaterial @@ -27134,12 +27159,12 @@ public enum Operations { /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/json/bundle`. - public var bundle: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload - /// Creates a new `jsonPayload`. + public var bundle: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - bundle: The attestation's Sigstore Bundle. - public init(bundle: Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload.bundlePayload) { + public init(bundle: Operations.ReposCreateAttestation.Input.Body.JsonPayload.BundlePayload) { self.bundle = bundle } public enum CodingKeys: String, CodingKey { @@ -27147,9 +27172,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_attestation.Input.Body.jsonPayload) + case json(Operations.ReposCreateAttestation.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_attestation.Input.Body + public var body: Operations.ReposCreateAttestation.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -27157,9 +27182,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_attestation.Input.Path, - headers: Operations.repos_sol_create_hyphen_attestation.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_attestation.Input.Body + path: Operations.ReposCreateAttestation.Input.Path, + headers: Operations.ReposCreateAttestation.Input.Headers = .init(), + body: Operations.ReposCreateAttestation.Input.Body ) { self.path = path self.headers = headers @@ -27171,12 +27196,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The ID of the attestation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/responses/201/content/json/id`. public var id: Swift.Int? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - id: The ID of the attestation. @@ -27188,12 +27213,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/POST/responses/201/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_attestation.Output.Created.Body.jsonPayload) + case json(Operations.ReposCreateAttestation.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_create_hyphen_attestation.Output.Created.Body.jsonPayload { + public var json: Operations.ReposCreateAttestation.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -27203,12 +27228,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_attestation.Output.Created.Body + public var body: Operations.ReposCreateAttestation.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_attestation.Output.Created.Body) { + public init(body: Operations.ReposCreateAttestation.Output.Created.Body) { self.body = body } } @@ -27217,12 +27242,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_attestation.Output.Created) + case created(Operations.ReposCreateAttestation.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_attestation.Output.Created { + public var created: Operations.ReposCreateAttestation.Output.Created { get throws { switch self { case let .created(response): @@ -27240,12 +27265,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -27263,12 +27288,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -27322,7 +27347,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/{subject_digest}/get(repos/list-attestations)`. - public enum repos_sol_list_hyphen_attestations { + public enum ReposListAttestations { public static let id: Swift.String = "repos/list-attestations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/path`. @@ -27330,83 +27355,83 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/path/subject_digest`. - public var subject_digest: Swift.String + public var subjectDigest: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - subject_digest: The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. + /// - subjectDigest: The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - subject_digest: Swift.String + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + subjectDigest: Swift.String ) { self.owner = owner self.repo = repo - self.subject_digest = subject_digest + self.subjectDigest = subjectDigest } } - public var path: Operations.repos_sol_list_hyphen_attestations.Input.Path + public var path: Operations.ReposListAttestations.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// Optional filter for fetching attestations with a given predicate type. /// This option accepts `provenance`, `sbom`, or freeform text for custom predicate types. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/query/predicate_type`. - public var predicate_type: Swift.String? + public var predicateType: Swift.String? /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - predicate_type: Optional filter for fetching attestations with a given predicate type. + /// - predicateType: Optional filter for fetching attestations with a given predicate type. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - predicate_type: Swift.String? = nil + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + predicateType: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after - self.predicate_type = predicate_type + self.predicateType = predicateType } } - public var query: Operations.repos_sol_list_hyphen_attestations.Input.Query + public var query: Operations.ReposListAttestations.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_attestations.Input.Headers + public var headers: Operations.ReposListAttestations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -27414,9 +27439,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_attestations.Input.Path, - query: Operations.repos_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_attestations.Input.Headers = .init() + path: Operations.ReposListAttestations.Input.Path, + query: Operations.ReposListAttestations.Input.Query = .init(), + headers: Operations.ReposListAttestations.Input.Headers = .init() ) { self.path = path self.query = query @@ -27428,21 +27453,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload`. - public struct attestationsPayloadPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload`. + public struct AttestationsPayloadPayload: Codable, Hashable, Sendable { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public struct bundlePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/mediaType`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public struct BundlePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/mediaType`. public var mediaType: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public struct verificationMaterialPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public struct VerificationMaterialPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `verificationMaterialPayload`. + /// Creates a new `VerificationMaterialPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -27456,13 +27481,13 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public var verificationMaterial: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public struct dsseEnvelopePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public var verificationMaterial: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public struct DsseEnvelopePayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `dsseEnvelopePayload`. + /// Creates a new `DsseEnvelopePayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -27476,9 +27501,9 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public var dsseEnvelope: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? - /// Creates a new `bundlePayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public var dsseEnvelope: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? + /// Creates a new `BundlePayload`. /// /// - Parameters: /// - mediaType: @@ -27486,8 +27511,8 @@ public enum Operations { /// - dsseEnvelope: public init( mediaType: Swift.String? = nil, - verificationMaterial: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? = nil, - dsseEnvelope: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? = nil + verificationMaterial: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? = nil, + dsseEnvelope: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? = nil ) { self.mediaType = mediaType self.verificationMaterial = verificationMaterial @@ -27502,42 +27527,42 @@ public enum Operations { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public var bundle: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/repository_id`. - public var repository_id: Swift.Int? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle_url`. - public var bundle_url: Swift.String? - /// Creates a new `attestationsPayloadPayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public var bundle: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/repository_id`. + public var repositoryId: Swift.Int? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`. + public var bundleUrl: Swift.String? + /// Creates a new `AttestationsPayloadPayload`. /// /// - Parameters: /// - bundle: The attestation's Sigstore Bundle. - /// - repository_id: - /// - bundle_url: + /// - repositoryId: + /// - bundleUrl: public init( - bundle: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? = nil, - repository_id: Swift.Int? = nil, - bundle_url: Swift.String? = nil + bundle: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil, + repositoryId: Swift.Int? = nil, + bundleUrl: Swift.String? = nil ) { self.bundle = bundle - self.repository_id = repository_id - self.bundle_url = bundle_url + self.repositoryId = repositoryId + self.bundleUrl = bundleUrl } public enum CodingKeys: String, CodingKey { case bundle - case repository_id - case bundle_url + case repositoryId = "repository_id" + case bundleUrl = "bundle_url" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public typealias attestationsPayload = [Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload] + public typealias AttestationsPayload = [Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public var attestations: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? - /// Creates a new `jsonPayload`. + public var attestations: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - attestations: - public init(attestations: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? = nil) { + public init(attestations: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? = nil) { self.attestations = attestations } public enum CodingKeys: String, CodingKey { @@ -27545,12 +27570,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/attestations/{subject_digest}/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload) + case json(Operations.ReposListAttestations.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposListAttestations.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -27560,12 +27585,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body + public var body: Operations.ReposListAttestations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_attestations.Output.Ok.Body) { + public init(body: Operations.ReposListAttestations.Output.Ok.Body) { self.body = body } } @@ -27574,12 +27599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/{subject_digest}/get(repos/list-attestations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_attestations.Output.Ok) + case ok(Operations.ReposListAttestations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_attestations.Output.Ok { + public var ok: Operations.ReposListAttestations.Output.Ok { get throws { switch self { case let .ok(response): @@ -27631,7 +27656,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/get(repos/list-autolinks)`. - public enum repos_sol_list_hyphen_autolinks { + public enum ReposListAutolinks { public static let id: Swift.String = "repos/list-autolinks" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/path`. @@ -27639,45 +27664,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_autolinks.Input.Path + public var path: Operations.ReposListAutolinks.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_autolinks.Input.Headers + public var headers: Operations.ReposListAutolinks.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_autolinks.Input.Path, - headers: Operations.repos_sol_list_hyphen_autolinks.Input.Headers = .init() + path: Operations.ReposListAutolinks.Input.Path, + headers: Operations.ReposListAutolinks.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -27688,12 +27713,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.autolink]) + case json([Components.Schemas.Autolink]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.autolink] { + public var json: [Components.Schemas.Autolink] { get throws { switch self { case let .json(body): @@ -27703,12 +27728,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_autolinks.Output.Ok.Body + public var body: Operations.ReposListAutolinks.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_autolinks.Output.Ok.Body) { + public init(body: Operations.ReposListAutolinks.Output.Ok.Body) { self.body = body } } @@ -27717,12 +27742,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/get(repos/list-autolinks)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_autolinks.Output.Ok) + case ok(Operations.ReposListAutolinks.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_autolinks.Output.Ok { + public var ok: Operations.ReposListAutolinks.Output.Ok { get throws { switch self { case let .ok(response): @@ -27772,7 +27797,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/autolinks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)`. - public enum repos_sol_create_hyphen_autolink { + public enum ReposCreateAutolink { public static let id: Swift.String = "repos/create-autolink" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/path`. @@ -27780,78 +27805,78 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_autolink.Input.Path + public var path: Operations.ReposCreateAutolink.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_autolink.Input.Headers + public var headers: Operations.ReposCreateAutolink.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody/json/key_prefix`. - public var key_prefix: Swift.String + public var keyPrefix: Swift.String /// The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody/json/url_template`. - public var url_template: Swift.String + public var urlTemplate: Swift.String /// Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody/json/is_alphanumeric`. - public var is_alphanumeric: Swift.Bool? - /// Creates a new `jsonPayload`. + public var isAlphanumeric: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - key_prefix: This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit. - /// - url_template: The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`. - /// - is_alphanumeric: Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters. + /// - keyPrefix: This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit. + /// - urlTemplate: The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`. + /// - isAlphanumeric: Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters. public init( - key_prefix: Swift.String, - url_template: Swift.String, - is_alphanumeric: Swift.Bool? = nil + keyPrefix: Swift.String, + urlTemplate: Swift.String, + isAlphanumeric: Swift.Bool? = nil ) { - self.key_prefix = key_prefix - self.url_template = url_template - self.is_alphanumeric = is_alphanumeric + self.keyPrefix = keyPrefix + self.urlTemplate = urlTemplate + self.isAlphanumeric = isAlphanumeric } public enum CodingKeys: String, CodingKey { - case key_prefix - case url_template - case is_alphanumeric + case keyPrefix = "key_prefix" + case urlTemplate = "url_template" + case isAlphanumeric = "is_alphanumeric" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_autolink.Input.Body.jsonPayload) + case json(Operations.ReposCreateAutolink.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_autolink.Input.Body + public var body: Operations.ReposCreateAutolink.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -27859,9 +27884,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_create_hyphen_autolink.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_autolink.Input.Body + path: Operations.ReposCreateAutolink.Input.Path, + headers: Operations.ReposCreateAutolink.Input.Headers = .init(), + body: Operations.ReposCreateAutolink.Input.Body ) { self.path = path self.headers = headers @@ -27873,26 +27898,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_autolink.Output.Created.Headers + public var headers: Operations.ReposCreateAutolink.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/POST/responses/201/content/application\/json`. - case json(Components.Schemas.autolink) + case json(Components.Schemas.Autolink) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.autolink { + public var json: Components.Schemas.Autolink { get throws { switch self { case let .json(body): @@ -27902,15 +27927,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_autolink.Output.Created.Body + public var body: Operations.ReposCreateAutolink.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_autolink.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_autolink.Output.Created.Body + headers: Operations.ReposCreateAutolink.Output.Created.Headers = .init(), + body: Operations.ReposCreateAutolink.Output.Created.Body ) { self.headers = headers self.body = body @@ -27921,12 +27946,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_autolink.Output.Created) + case created(Operations.ReposCreateAutolink.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_autolink.Output.Created { + public var created: Operations.ReposCreateAutolink.Output.Created { get throws { switch self { case let .created(response): @@ -27944,12 +27969,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/post(repos/create-autolink)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -28001,7 +28026,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)`. - public enum repos_sol_get_hyphen_autolink { + public enum ReposGetAutolink { public static let id: Swift.String = "repos/get-autolink" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/path`. @@ -28009,52 +28034,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the autolink. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/path/autolink_id`. - public var autolink_id: Components.Parameters.autolink_hyphen_id + public var autolinkId: Components.Parameters.AutolinkId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - autolink_id: The unique identifier of the autolink. + /// - autolinkId: The unique identifier of the autolink. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - autolink_id: Components.Parameters.autolink_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + autolinkId: Components.Parameters.AutolinkId ) { self.owner = owner self.repo = repo - self.autolink_id = autolink_id + self.autolinkId = autolinkId } } - public var path: Operations.repos_sol_get_hyphen_autolink.Input.Path + public var path: Operations.ReposGetAutolink.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_autolink.Input.Headers + public var headers: Operations.ReposGetAutolink.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_get_hyphen_autolink.Input.Headers = .init() + path: Operations.ReposGetAutolink.Input.Path, + headers: Operations.ReposGetAutolink.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28065,12 +28090,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.autolink) + case json(Components.Schemas.Autolink) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.autolink { + public var json: Components.Schemas.Autolink { get throws { switch self { case let .json(body): @@ -28080,12 +28105,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_autolink.Output.Ok.Body + public var body: Operations.ReposGetAutolink.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_autolink.Output.Ok.Body) { + public init(body: Operations.ReposGetAutolink.Output.Ok.Body) { self.body = body } } @@ -28094,12 +28119,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_autolink.Output.Ok) + case ok(Operations.ReposGetAutolink.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_autolink.Output.Ok { + public var ok: Operations.ReposGetAutolink.Output.Ok { get throws { switch self { case let .ok(response): @@ -28117,12 +28142,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/get(repos/get-autolink)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -28174,7 +28199,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)`. - public enum repos_sol_delete_hyphen_autolink { + public enum ReposDeleteAutolink { public static let id: Swift.String = "repos/delete-autolink" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/DELETE/path`. @@ -28182,52 +28207,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the autolink. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/DELETE/path/autolink_id`. - public var autolink_id: Components.Parameters.autolink_hyphen_id + public var autolinkId: Components.Parameters.AutolinkId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - autolink_id: The unique identifier of the autolink. + /// - autolinkId: The unique identifier of the autolink. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - autolink_id: Components.Parameters.autolink_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + autolinkId: Components.Parameters.AutolinkId ) { self.owner = owner self.repo = repo - self.autolink_id = autolink_id + self.autolinkId = autolinkId } } - public var path: Operations.repos_sol_delete_hyphen_autolink.Input.Path + public var path: Operations.ReposDeleteAutolink.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/autolinks/{autolink_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_autolink.Input.Headers + public var headers: Operations.ReposDeleteAutolink.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_autolink.Input.Path, - headers: Operations.repos_sol_delete_hyphen_autolink.Input.Headers = .init() + path: Operations.ReposDeleteAutolink.Input.Path, + headers: Operations.ReposDeleteAutolink.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28243,12 +28268,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_autolink.Output.NoContent) + case noContent(Operations.ReposDeleteAutolink.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_autolink.Output.NoContent { + public var noContent: Operations.ReposDeleteAutolink.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -28266,12 +28299,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/autolinks/{autolink_id}/delete(repos/delete-autolink)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -28321,7 +28354,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)`. - public enum repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes { + public enum ReposCheckAutomatedSecurityFixes { public static let id: Swift.String = "repos/check-automated-security-fixes" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/path`. @@ -28329,45 +28362,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path + public var path: Operations.ReposCheckAutomatedSecurityFixes.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Headers + public var headers: Operations.ReposCheckAutomatedSecurityFixes.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path, - headers: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Input.Headers = .init() + path: Operations.ReposCheckAutomatedSecurityFixes.Input.Path, + headers: Operations.ReposCheckAutomatedSecurityFixes.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28378,12 +28411,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/GET/responses/200/content/application\/json`. - case json(Components.Schemas.check_hyphen_automated_hyphen_security_hyphen_fixes) + case json(Components.Schemas.CheckAutomatedSecurityFixes) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.check_hyphen_automated_hyphen_security_hyphen_fixes { + public var json: Components.Schemas.CheckAutomatedSecurityFixes { get throws { switch self { case let .json(body): @@ -28393,12 +28426,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.Ok.Body + public var body: Operations.ReposCheckAutomatedSecurityFixes.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.Ok.Body) { + public init(body: Operations.ReposCheckAutomatedSecurityFixes.Output.Ok.Body) { self.body = body } } @@ -28407,12 +28440,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.Ok) + case ok(Operations.ReposCheckAutomatedSecurityFixes.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.Ok { + public var ok: Operations.ReposCheckAutomatedSecurityFixes.Output.Ok { get throws { switch self { case let .ok(response): @@ -28434,12 +28467,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.NotFound) + case notFound(Operations.ReposCheckAutomatedSecurityFixes.Output.NotFound) + /// Not Found if Dependabot is not enabled for the repository + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/get(repos/check-automated-security-fixes)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_check_hyphen_automated_hyphen_security_hyphen_fixes.Output.NotFound { + public var notFound: Operations.ReposCheckAutomatedSecurityFixes.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -28489,7 +28530,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)`. - public enum repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes { + public enum ReposEnableAutomatedSecurityFixes { public static let id: Swift.String = "repos/enable-automated-security-fixes" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/PUT/path`. @@ -28497,30 +28538,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path + public var path: Operations.ReposEnableAutomatedSecurityFixes.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path) { + public init(path: Operations.ReposEnableAutomatedSecurityFixes.Input.Path) { self.path = path } } @@ -28534,12 +28575,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Output.NoContent) + case noContent(Operations.ReposEnableAutomatedSecurityFixes.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/put(repos/enable-automated-security-fixes)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_enable_hyphen_automated_hyphen_security_hyphen_fixes.Output.NoContent { + public var noContent: Operations.ReposEnableAutomatedSecurityFixes.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -28564,7 +28613,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/automated-security-fixes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)`. - public enum repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes { + public enum ReposDisableAutomatedSecurityFixes { public static let id: Swift.String = "repos/disable-automated-security-fixes" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/DELETE/path`. @@ -28572,30 +28621,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/automated-security-fixes/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path + public var path: Operations.ReposDisableAutomatedSecurityFixes.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Input.Path) { + public init(path: Operations.ReposDisableAutomatedSecurityFixes.Input.Path) { self.path = path } } @@ -28609,12 +28658,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Output.NoContent) + case noContent(Operations.ReposDisableAutomatedSecurityFixes.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/automated-security-fixes/delete(repos/disable-automated-security-fixes)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_disable_hyphen_automated_hyphen_security_hyphen_fixes.Output.NoContent { + public var noContent: Operations.ReposDisableAutomatedSecurityFixes.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -28639,7 +28696,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)`. - public enum repos_sol_list_hyphen_branches { + public enum ReposListBranches { public static let id: Swift.String = "repos/list-branches" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/path`. @@ -28647,25 +28704,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_branches.Input.Path + public var path: Operations.ReposListBranches.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/query`. public struct Query: Sendable, Hashable { /// Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. @@ -28675,40 +28732,40 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - protected: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - /// - 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)." + /// - perPage: 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)." public init( protected: Swift.Bool? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.protected = protected - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_branches.Input.Query + public var query: Operations.ReposListBranches.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_branches.Input.Headers + public var headers: Operations.ReposListBranches.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -28716,9 +28773,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_branches.Input.Path, - query: Operations.repos_sol_list_hyphen_branches.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_branches.Input.Headers = .init() + path: Operations.ReposListBranches.Input.Path, + query: Operations.ReposListBranches.Input.Query = .init(), + headers: Operations.ReposListBranches.Input.Headers = .init() ) { self.path = path self.query = query @@ -28730,26 +28787,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_branches.Output.Ok.Headers + public var headers: Operations.ReposListBranches.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/GET/responses/200/content/application\/json`. - case json([Components.Schemas.short_hyphen_branch]) + case json([Components.Schemas.ShortBranch]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.short_hyphen_branch] { + public var json: [Components.Schemas.ShortBranch] { get throws { switch self { case let .json(body): @@ -28759,15 +28816,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_branches.Output.Ok.Body + public var body: Operations.ReposListBranches.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_branches.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_branches.Output.Ok.Body + headers: Operations.ReposListBranches.Output.Ok.Headers = .init(), + body: Operations.ReposListBranches.Output.Ok.Body ) { self.headers = headers self.body = body @@ -28778,12 +28835,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_branches.Output.Ok) + case ok(Operations.ReposListBranches.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_branches.Output.Ok { + public var ok: Operations.ReposListBranches.Output.Ok { get throws { switch self { case let .ok(response): @@ -28801,12 +28858,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/get(repos/list-branches)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -28856,7 +28913,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)`. - public enum repos_sol_get_hyphen_branch { + public enum ReposGetBranch { public static let id: Swift.String = "repos/get-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/path`. @@ -28864,15 +28921,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -28880,36 +28937,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_branch.Input.Path + public var path: Operations.ReposGetBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_branch.Input.Headers + public var headers: Operations.ReposGetBranch.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_branch.Input.Headers = .init() + path: Operations.ReposGetBranch.Input.Path, + headers: Operations.ReposGetBranch.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -28920,12 +28977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.branch_hyphen_with_hyphen_protection) + case json(Components.Schemas.BranchWithProtection) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.branch_hyphen_with_hyphen_protection { + public var json: Components.Schemas.BranchWithProtection { get throws { switch self { case let .json(body): @@ -28935,12 +28992,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_branch.Output.Ok.Body + public var body: Operations.ReposGetBranch.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_branch.Output.Ok.Body) { + public init(body: Operations.ReposGetBranch.Output.Ok.Body) { self.body = body } } @@ -28949,12 +29006,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_branch.Output.Ok) + case ok(Operations.ReposGetBranch.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_branch.Output.Ok { + public var ok: Operations.ReposGetBranch.Output.Ok { get throws { switch self { case let .ok(response): @@ -28972,12 +29029,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -28995,12 +29052,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/get(repos/get-branch)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -29050,7 +29107,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)`. - public enum repos_sol_get_hyphen_branch_hyphen_protection { + public enum ReposGetBranchProtection { public static let id: Swift.String = "repos/get-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/path`. @@ -29058,15 +29115,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -29074,36 +29131,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposGetBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposGetBranchProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Input.Headers = .init() + path: Operations.ReposGetBranchProtection.Input.Path, + headers: Operations.ReposGetBranchProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -29114,12 +29171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/GET/responses/200/content/application\/json`. - case json(Components.Schemas.branch_hyphen_protection) + case json(Components.Schemas.BranchProtection) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.branch_hyphen_protection { + public var json: Components.Schemas.BranchProtection { get throws { switch self { case let .json(body): @@ -29129,12 +29186,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposGetBranchProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposGetBranchProtection.Output.Ok.Body) { self.body = body } } @@ -29143,12 +29200,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output.Ok) + case ok(Operations.ReposGetBranchProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_branch_hyphen_protection.Output.Ok { + public var ok: Operations.ReposGetBranchProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -29166,12 +29223,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/get(repos/get-branch-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -29229,7 +29286,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)`. - public enum repos_sol_update_hyphen_branch_hyphen_protection { + public enum ReposUpdateBranchProtection { public static let id: Swift.String = "repos/update-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/path`. @@ -29237,15 +29294,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -29253,36 +29310,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposUpdateBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposUpdateBranchProtection.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Require status checks to pass before merging. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks`. - public struct required_status_checksPayload: Codable, Hashable, Sendable { + public struct RequiredStatusChecksPayload: Codable, Hashable, Sendable { /// Require branches to be up to date before merging. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/strict`. @@ -29292,42 +29349,42 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/contexts`. @available(*, deprecated) public var contexts: [Swift.String] - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/checksPayload`. - public struct checksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/ChecksPayload`. + public struct ChecksPayloadPayload: Codable, Hashable, Sendable { /// The name of the required check /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/checksPayload/context`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/ChecksPayload/context`. public var context: Swift.String /// The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/checksPayload/app_id`. - public var app_id: Swift.Int? - /// Creates a new `checksPayloadPayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/ChecksPayload/app_id`. + public var appId: Swift.Int? + /// Creates a new `ChecksPayloadPayload`. /// /// - Parameters: /// - context: The name of the required check - /// - app_id: The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. + /// - appId: The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. public init( context: Swift.String, - app_id: Swift.Int? = nil + appId: Swift.Int? = nil ) { self.context = context - self.app_id = app_id + self.appId = appId } public enum CodingKeys: String, CodingKey { case context - case app_id + case appId = "app_id" } } /// The list of status checks to require in order to merge into this branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/checks`. - public typealias checksPayload = [Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_status_checksPayload.checksPayloadPayload] + public typealias ChecksPayload = [Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredStatusChecksPayload.ChecksPayloadPayload] /// The list of status checks to require in order to merge into this branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/checks`. - public var checks: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_status_checksPayload.checksPayload? - /// Creates a new `required_status_checksPayload`. + public var checks: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredStatusChecksPayload.ChecksPayload? + /// Creates a new `RequiredStatusChecksPayload`. /// /// - Parameters: /// - strict: Require branches to be up to date before merging. @@ -29336,7 +29393,7 @@ public enum Operations { public init( strict: Swift.Bool, contexts: [Swift.String], - checks: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_status_checksPayload.checksPayload? = nil + checks: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredStatusChecksPayload.ChecksPayload? = nil ) { self.strict = strict self.contexts = contexts @@ -29351,19 +29408,19 @@ public enum Operations { /// Require status checks to pass before merging. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks`. - public var required_status_checks: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_status_checksPayload? + public var requiredStatusChecks: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredStatusChecksPayload? /// Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/enforce_admins`. - public var enforce_admins: Swift.Bool? + public var enforceAdmins: Swift.Bool? /// Require at least one approving review on a pull request, before merging. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews`. - public struct required_pull_request_reviewsPayload: Codable, Hashable, Sendable { + public struct RequiredPullRequestReviewsPayload: Codable, Hashable, Sendable { /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/dismissal_restrictions`. - public struct dismissal_restrictionsPayload: Codable, Hashable, Sendable { + public struct DismissalRestrictionsPayload: Codable, Hashable, Sendable { /// The list of user `login`s with dismissal access /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/dismissal_restrictions/users`. @@ -29376,7 +29433,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/dismissal_restrictions/apps`. public var apps: [Swift.String]? - /// Creates a new `dismissal_restrictionsPayload`. + /// Creates a new `DismissalRestrictionsPayload`. /// /// - Parameters: /// - users: The list of user `login`s with dismissal access @@ -29400,27 +29457,27 @@ public enum Operations { /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/dismissal_restrictions`. - public var dismissal_restrictions: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload.dismissal_restrictionsPayload? + public var dismissalRestrictions: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload.DismissalRestrictionsPayload? /// Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/dismiss_stale_reviews`. - public var dismiss_stale_reviews: Swift.Bool? + public var dismissStaleReviews: Swift.Bool? /// Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/require_code_owner_reviews`. - public var require_code_owner_reviews: Swift.Bool? + public var requireCodeOwnerReviews: Swift.Bool? /// Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/required_approving_review_count`. - public var required_approving_review_count: Swift.Int? + public var requiredApprovingReviewCount: Swift.Int? /// Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/require_last_push_approval`. - public var require_last_push_approval: Swift.Bool? + public var requireLastPushApproval: Swift.Bool? /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/bypass_pull_request_allowances`. - public struct bypass_pull_request_allowancesPayload: Codable, Hashable, Sendable { + public struct BypassPullRequestAllowancesPayload: Codable, Hashable, Sendable { /// The list of user `login`s allowed to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/bypass_pull_request_allowances/users`. @@ -29433,7 +29490,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/bypass_pull_request_allowances/apps`. public var apps: [Swift.String]? - /// Creates a new `bypass_pull_request_allowancesPayload`. + /// Creates a new `BypassPullRequestAllowancesPayload`. /// /// - Parameters: /// - users: The list of user `login`s allowed to bypass pull request requirements. @@ -29457,48 +29514,48 @@ public enum Operations { /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews/bypass_pull_request_allowances`. - public var bypass_pull_request_allowances: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload.bypass_pull_request_allowancesPayload? - /// Creates a new `required_pull_request_reviewsPayload`. + public var bypassPullRequestAllowances: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload.BypassPullRequestAllowancesPayload? + /// Creates a new `RequiredPullRequestReviewsPayload`. /// /// - Parameters: - /// - dismissal_restrictions: Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. - /// - dismiss_stale_reviews: Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - /// - require_code_owner_reviews: Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them. - /// - required_approving_review_count: Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. - /// - require_last_push_approval: Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`. - /// - bypass_pull_request_allowances: Allow specific users, teams, or apps to bypass pull request requirements. + /// - dismissalRestrictions: Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. + /// - dismissStaleReviews: Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + /// - requireCodeOwnerReviews: Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them. + /// - requiredApprovingReviewCount: Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. + /// - requireLastPushApproval: Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`. + /// - bypassPullRequestAllowances: Allow specific users, teams, or apps to bypass pull request requirements. public init( - dismissal_restrictions: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload.dismissal_restrictionsPayload? = nil, - dismiss_stale_reviews: Swift.Bool? = nil, - require_code_owner_reviews: Swift.Bool? = nil, - required_approving_review_count: Swift.Int? = nil, - require_last_push_approval: Swift.Bool? = nil, - bypass_pull_request_allowances: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload.bypass_pull_request_allowancesPayload? = nil + dismissalRestrictions: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload.DismissalRestrictionsPayload? = nil, + dismissStaleReviews: Swift.Bool? = nil, + requireCodeOwnerReviews: Swift.Bool? = nil, + requiredApprovingReviewCount: Swift.Int? = nil, + requireLastPushApproval: Swift.Bool? = nil, + bypassPullRequestAllowances: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload.BypassPullRequestAllowancesPayload? = nil ) { - self.dismissal_restrictions = dismissal_restrictions - self.dismiss_stale_reviews = dismiss_stale_reviews - self.require_code_owner_reviews = require_code_owner_reviews - self.required_approving_review_count = required_approving_review_count - self.require_last_push_approval = require_last_push_approval - self.bypass_pull_request_allowances = bypass_pull_request_allowances + self.dismissalRestrictions = dismissalRestrictions + self.dismissStaleReviews = dismissStaleReviews + self.requireCodeOwnerReviews = requireCodeOwnerReviews + self.requiredApprovingReviewCount = requiredApprovingReviewCount + self.requireLastPushApproval = requireLastPushApproval + self.bypassPullRequestAllowances = bypassPullRequestAllowances } public enum CodingKeys: String, CodingKey { - case dismissal_restrictions - case dismiss_stale_reviews - case require_code_owner_reviews - case required_approving_review_count - case require_last_push_approval - case bypass_pull_request_allowances + case dismissalRestrictions = "dismissal_restrictions" + case dismissStaleReviews = "dismiss_stale_reviews" + case requireCodeOwnerReviews = "require_code_owner_reviews" + case requiredApprovingReviewCount = "required_approving_review_count" + case requireLastPushApproval = "require_last_push_approval" + case bypassPullRequestAllowances = "bypass_pull_request_allowances" } } /// Require at least one approving review on a pull request, before merging. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_pull_request_reviews`. - public var required_pull_request_reviews: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload? + public var requiredPullRequestReviews: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload? /// Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/restrictions`. - public struct restrictionsPayload: Codable, Hashable, Sendable { + public struct RestrictionsPayload: Codable, Hashable, Sendable { /// The list of user `login`s with push access /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/restrictions/users`. @@ -29511,7 +29568,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/restrictions/apps`. public var apps: [Swift.String]? - /// Creates a new `restrictionsPayload`. + /// Creates a new `RestrictionsPayload`. /// /// - Parameters: /// - users: The list of user `login`s with push access @@ -29535,92 +29592,92 @@ public enum Operations { /// Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/restrictions`. - public var restrictions: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.restrictionsPayload? + public var restrictions: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RestrictionsPayload? /// Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_linear_history`. - public var required_linear_history: Swift.Bool? + public var requiredLinearHistory: Swift.Bool? /// Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/allow_force_pushes`. - public var allow_force_pushes: Swift.Bool? + public var allowForcePushes: Swift.Bool? /// Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/allow_deletions`. - public var allow_deletions: Swift.Bool? + public var allowDeletions: Swift.Bool? /// If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/block_creations`. - public var block_creations: Swift.Bool? + public var blockCreations: Swift.Bool? /// Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_conversation_resolution`. - public var required_conversation_resolution: Swift.Bool? + public var requiredConversationResolution: Swift.Bool? /// Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/lock_branch`. - public var lock_branch: Swift.Bool? + public var lockBranch: Swift.Bool? /// Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/allow_fork_syncing`. - public var allow_fork_syncing: Swift.Bool? - /// Creates a new `jsonPayload`. + public var allowForkSyncing: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - required_status_checks: Require status checks to pass before merging. Set to `null` to disable. - /// - enforce_admins: Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - /// - required_pull_request_reviews: Require at least one approving review on a pull request, before merging. Set to `null` to disable. + /// - requiredStatusChecks: Require status checks to pass before merging. Set to `null` to disable. + /// - enforceAdmins: Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. + /// - requiredPullRequestReviews: Require at least one approving review on a pull request, before merging. Set to `null` to disable. /// - restrictions: Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. - /// - required_linear_history: Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation. - /// - allow_force_pushes: Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation." - /// - allow_deletions: Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. - /// - block_creations: If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`. - /// - required_conversation_resolution: Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`. - /// - lock_branch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`. - /// - allow_fork_syncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`. + /// - requiredLinearHistory: Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation. + /// - allowForcePushes: Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation." + /// - allowDeletions: Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. + /// - blockCreations: If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`. + /// - requiredConversationResolution: Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`. + /// - lockBranch: Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`. + /// - allowForkSyncing: Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`. public init( - required_status_checks: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_status_checksPayload? = nil, - enforce_admins: Swift.Bool? = nil, - required_pull_request_reviews: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.required_pull_request_reviewsPayload? = nil, - restrictions: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload.restrictionsPayload? = nil, - required_linear_history: Swift.Bool? = nil, - allow_force_pushes: Swift.Bool? = nil, - allow_deletions: Swift.Bool? = nil, - block_creations: Swift.Bool? = nil, - required_conversation_resolution: Swift.Bool? = nil, - lock_branch: Swift.Bool? = nil, - allow_fork_syncing: Swift.Bool? = nil + requiredStatusChecks: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredStatusChecksPayload? = nil, + enforceAdmins: Swift.Bool? = nil, + requiredPullRequestReviews: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RequiredPullRequestReviewsPayload? = nil, + restrictions: Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload.RestrictionsPayload? = nil, + requiredLinearHistory: Swift.Bool? = nil, + allowForcePushes: Swift.Bool? = nil, + allowDeletions: Swift.Bool? = nil, + blockCreations: Swift.Bool? = nil, + requiredConversationResolution: Swift.Bool? = nil, + lockBranch: Swift.Bool? = nil, + allowForkSyncing: Swift.Bool? = nil ) { - self.required_status_checks = required_status_checks - self.enforce_admins = enforce_admins - self.required_pull_request_reviews = required_pull_request_reviews + self.requiredStatusChecks = requiredStatusChecks + self.enforceAdmins = enforceAdmins + self.requiredPullRequestReviews = requiredPullRequestReviews self.restrictions = restrictions - self.required_linear_history = required_linear_history - self.allow_force_pushes = allow_force_pushes - self.allow_deletions = allow_deletions - self.block_creations = block_creations - self.required_conversation_resolution = required_conversation_resolution - self.lock_branch = lock_branch - self.allow_fork_syncing = allow_fork_syncing + self.requiredLinearHistory = requiredLinearHistory + self.allowForcePushes = allowForcePushes + self.allowDeletions = allowDeletions + self.blockCreations = blockCreations + self.requiredConversationResolution = requiredConversationResolution + self.lockBranch = lockBranch + self.allowForkSyncing = allowForkSyncing } public enum CodingKeys: String, CodingKey { - case required_status_checks - case enforce_admins - case required_pull_request_reviews + case requiredStatusChecks = "required_status_checks" + case enforceAdmins = "enforce_admins" + case requiredPullRequestReviews = "required_pull_request_reviews" case restrictions - case required_linear_history - case allow_force_pushes - case allow_deletions - case block_creations - case required_conversation_resolution - case lock_branch - case allow_fork_syncing + case requiredLinearHistory = "required_linear_history" + case allowForcePushes = "allow_force_pushes" + case allowDeletions = "allow_deletions" + case blockCreations = "block_creations" + case requiredConversationResolution = "required_conversation_resolution" + case lockBranch = "lock_branch" + case allowForkSyncing = "allow_fork_syncing" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body.jsonPayload) + case json(Operations.ReposUpdateBranchProtection.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body + public var body: Operations.ReposUpdateBranchProtection.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -29628,9 +29685,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Input.Body + path: Operations.ReposUpdateBranchProtection.Input.Path, + headers: Operations.ReposUpdateBranchProtection.Input.Headers = .init(), + body: Operations.ReposUpdateBranchProtection.Input.Body ) { self.path = path self.headers = headers @@ -29642,12 +29699,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch) + case json(Components.Schemas.ProtectedBranch) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch { + public var json: Components.Schemas.ProtectedBranch { get throws { switch self { case let .json(body): @@ -29657,12 +29714,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposUpdateBranchProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposUpdateBranchProtection.Output.Ok.Body) { self.body = body } } @@ -29671,12 +29728,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output.Ok) + case ok(Operations.ReposUpdateBranchProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_branch_hyphen_protection.Output.Ok { + public var ok: Operations.ReposUpdateBranchProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -29694,12 +29751,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -29717,12 +29774,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -29740,12 +29797,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/put(repos/update-branch-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -29795,7 +29852,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)`. - public enum repos_sol_delete_hyphen_branch_hyphen_protection { + public enum ReposDeleteBranchProtection { public static let id: Swift.String = "repos/delete-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/DELETE/path`. @@ -29803,15 +29860,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -29819,36 +29876,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposDeleteBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposDeleteBranchProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Input.Headers = .init() + path: Operations.ReposDeleteBranchProtection.Input.Path, + headers: Operations.ReposDeleteBranchProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -29864,12 +29921,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposDeleteBranchProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_branch_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposDeleteBranchProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -29887,12 +29952,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/delete(repos/delete-branch-protection)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -29942,7 +30007,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/get(repos/get-admin-branch-protection)`. - public enum repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection { + public enum ReposGetAdminBranchProtection { public static let id: Swift.String = "repos/get-admin-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/path`. @@ -29950,15 +30015,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -29966,36 +30031,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposGetAdminBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposGetAdminBranchProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() + path: Operations.ReposGetAdminBranchProtection.Input.Path, + headers: Operations.ReposGetAdminBranchProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30006,12 +30071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/GET/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced) + case json(Components.Schemas.ProtectedBranchAdminEnforced) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced { + public var json: Components.Schemas.ProtectedBranchAdminEnforced { get throws { switch self { case let .json(body): @@ -30021,12 +30086,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposGetAdminBranchProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposGetAdminBranchProtection.Output.Ok.Body) { self.body = body } } @@ -30035,12 +30100,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/get(repos/get-admin-branch-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok) + case ok(Operations.ReposGetAdminBranchProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok { + public var ok: Operations.ReposGetAdminBranchProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -30092,7 +30157,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/post(repos/set-admin-branch-protection)`. - public enum repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection { + public enum ReposSetAdminBranchProtection { public static let id: Swift.String = "repos/set-admin-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/path`. @@ -30100,15 +30165,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -30116,36 +30181,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposSetAdminBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposSetAdminBranchProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() + path: Operations.ReposSetAdminBranchProtection.Input.Path, + headers: Operations.ReposSetAdminBranchProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30156,12 +30221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/POST/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced) + case json(Components.Schemas.ProtectedBranchAdminEnforced) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced { + public var json: Components.Schemas.ProtectedBranchAdminEnforced { get throws { switch self { case let .json(body): @@ -30171,12 +30236,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposSetAdminBranchProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposSetAdminBranchProtection.Output.Ok.Body) { self.body = body } } @@ -30185,12 +30250,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/post(repos/set-admin-branch-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok) + case ok(Operations.ReposSetAdminBranchProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_set_hyphen_admin_hyphen_branch_hyphen_protection.Output.Ok { + public var ok: Operations.ReposSetAdminBranchProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -30242,7 +30307,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)`. - public enum repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection { + public enum ReposDeleteAdminBranchProtection { public static let id: Swift.String = "repos/delete-admin-branch-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/DELETE/path`. @@ -30250,15 +30315,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -30266,36 +30331,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path + public var path: Operations.ReposDeleteAdminBranchProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers + public var headers: Operations.ReposDeleteAdminBranchProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Input.Headers = .init() + path: Operations.ReposDeleteAdminBranchProtection.Input.Path, + headers: Operations.ReposDeleteAdminBranchProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30311,12 +30376,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposDeleteAdminBranchProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_admin_hyphen_branch_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposDeleteAdminBranchProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -30334,12 +30407,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins/delete(repos/delete-admin-branch-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -30389,7 +30462,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/get(repos/get-pull-request-review-protection)`. - public enum repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection { + public enum ReposGetPullRequestReviewProtection { public static let id: Swift.String = "repos/get-pull-request-review-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/path`. @@ -30397,15 +30470,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -30413,36 +30486,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path + public var path: Operations.ReposGetPullRequestReviewProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers + public var headers: Operations.ReposGetPullRequestReviewProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init() + path: Operations.ReposGetPullRequestReviewProtection.Input.Path, + headers: Operations.ReposGetPullRequestReviewProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30453,12 +30526,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/GET/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review) + case json(Components.Schemas.ProtectedBranchPullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.ProtectedBranchPullRequestReview { get throws { switch self { case let .json(body): @@ -30468,12 +30541,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposGetPullRequestReviewProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposGetPullRequestReviewProtection.Output.Ok.Body) { self.body = body } } @@ -30482,12 +30555,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/get(repos/get-pull-request-review-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok) + case ok(Operations.ReposGetPullRequestReviewProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok { + public var ok: Operations.ReposGetPullRequestReviewProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -30542,7 +30615,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)`. - public enum repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection { + public enum ReposUpdatePullRequestReviewProtection { public static let id: Swift.String = "repos/update-pull-request-review-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/path`. @@ -30550,15 +30623,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -30566,36 +30639,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path + public var path: Operations.ReposUpdatePullRequestReviewProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers + public var headers: Operations.ReposUpdatePullRequestReviewProtection.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/dismissal_restrictions`. - public struct dismissal_restrictionsPayload: Codable, Hashable, Sendable { + public struct DismissalRestrictionsPayload: Codable, Hashable, Sendable { /// The list of user `login`s with dismissal access /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/dismissal_restrictions/users`. @@ -30608,7 +30681,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/dismissal_restrictions/apps`. public var apps: [Swift.String]? - /// Creates a new `dismissal_restrictionsPayload`. + /// Creates a new `DismissalRestrictionsPayload`. /// /// - Parameters: /// - users: The list of user `login`s with dismissal access @@ -30632,27 +30705,27 @@ public enum Operations { /// Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/dismissal_restrictions`. - public var dismissal_restrictions: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body.jsonPayload.dismissal_restrictionsPayload? + public var dismissalRestrictions: Operations.ReposUpdatePullRequestReviewProtection.Input.Body.JsonPayload.DismissalRestrictionsPayload? /// Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/dismiss_stale_reviews`. - public var dismiss_stale_reviews: Swift.Bool? + public var dismissStaleReviews: Swift.Bool? /// Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/require_code_owner_reviews`. - public var require_code_owner_reviews: Swift.Bool? + public var requireCodeOwnerReviews: Swift.Bool? /// Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/required_approving_review_count`. - public var required_approving_review_count: Swift.Int? + public var requiredApprovingReviewCount: Swift.Int? /// Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/require_last_push_approval`. - public var require_last_push_approval: Swift.Bool? + public var requireLastPushApproval: Swift.Bool? /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/bypass_pull_request_allowances`. - public struct bypass_pull_request_allowancesPayload: Codable, Hashable, Sendable { + public struct BypassPullRequestAllowancesPayload: Codable, Hashable, Sendable { /// The list of user `login`s allowed to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/bypass_pull_request_allowances/users`. @@ -30665,7 +30738,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/bypass_pull_request_allowances/apps`. public var apps: [Swift.String]? - /// Creates a new `bypass_pull_request_allowancesPayload`. + /// Creates a new `BypassPullRequestAllowancesPayload`. /// /// - Parameters: /// - users: The list of user `login`s allowed to bypass pull request requirements. @@ -30689,44 +30762,44 @@ public enum Operations { /// Allow specific users, teams, or apps to bypass pull request requirements. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/json/bypass_pull_request_allowances`. - public var bypass_pull_request_allowances: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body.jsonPayload.bypass_pull_request_allowancesPayload? - /// Creates a new `jsonPayload`. + public var bypassPullRequestAllowances: Operations.ReposUpdatePullRequestReviewProtection.Input.Body.JsonPayload.BypassPullRequestAllowancesPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - dismissal_restrictions: Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. - /// - dismiss_stale_reviews: Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - /// - require_code_owner_reviews: Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed. - /// - required_approving_review_count: Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. - /// - require_last_push_approval: Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false` - /// - bypass_pull_request_allowances: Allow specific users, teams, or apps to bypass pull request requirements. + /// - dismissalRestrictions: Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. + /// - dismissStaleReviews: Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + /// - requireCodeOwnerReviews: Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed. + /// - requiredApprovingReviewCount: Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers. + /// - requireLastPushApproval: Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false` + /// - bypassPullRequestAllowances: Allow specific users, teams, or apps to bypass pull request requirements. public init( - dismissal_restrictions: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body.jsonPayload.dismissal_restrictionsPayload? = nil, - dismiss_stale_reviews: Swift.Bool? = nil, - require_code_owner_reviews: Swift.Bool? = nil, - required_approving_review_count: Swift.Int? = nil, - require_last_push_approval: Swift.Bool? = nil, - bypass_pull_request_allowances: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body.jsonPayload.bypass_pull_request_allowancesPayload? = nil + dismissalRestrictions: Operations.ReposUpdatePullRequestReviewProtection.Input.Body.JsonPayload.DismissalRestrictionsPayload? = nil, + dismissStaleReviews: Swift.Bool? = nil, + requireCodeOwnerReviews: Swift.Bool? = nil, + requiredApprovingReviewCount: Swift.Int? = nil, + requireLastPushApproval: Swift.Bool? = nil, + bypassPullRequestAllowances: Operations.ReposUpdatePullRequestReviewProtection.Input.Body.JsonPayload.BypassPullRequestAllowancesPayload? = nil ) { - self.dismissal_restrictions = dismissal_restrictions - self.dismiss_stale_reviews = dismiss_stale_reviews - self.require_code_owner_reviews = require_code_owner_reviews - self.required_approving_review_count = required_approving_review_count - self.require_last_push_approval = require_last_push_approval - self.bypass_pull_request_allowances = bypass_pull_request_allowances + self.dismissalRestrictions = dismissalRestrictions + self.dismissStaleReviews = dismissStaleReviews + self.requireCodeOwnerReviews = requireCodeOwnerReviews + self.requiredApprovingReviewCount = requiredApprovingReviewCount + self.requireLastPushApproval = requireLastPushApproval + self.bypassPullRequestAllowances = bypassPullRequestAllowances } public enum CodingKeys: String, CodingKey { - case dismissal_restrictions - case dismiss_stale_reviews - case require_code_owner_reviews - case required_approving_review_count - case require_last_push_approval - case bypass_pull_request_allowances + case dismissalRestrictions = "dismissal_restrictions" + case dismissStaleReviews = "dismiss_stale_reviews" + case requireCodeOwnerReviews = "require_code_owner_reviews" + case requiredApprovingReviewCount = "required_approving_review_count" + case requireLastPushApproval = "require_last_push_approval" + case bypassPullRequestAllowances = "bypass_pull_request_allowances" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body.jsonPayload) + case json(Operations.ReposUpdatePullRequestReviewProtection.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body? + public var body: Operations.ReposUpdatePullRequestReviewProtection.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -30734,9 +30807,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Body? = nil + path: Operations.ReposUpdatePullRequestReviewProtection.Input.Path, + headers: Operations.ReposUpdatePullRequestReviewProtection.Input.Headers = .init(), + body: Operations.ReposUpdatePullRequestReviewProtection.Input.Body? = nil ) { self.path = path self.headers = headers @@ -30748,12 +30821,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review) + case json(Components.Schemas.ProtectedBranchPullRequestReview) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_pull_hyphen_request_hyphen_review { + public var json: Components.Schemas.ProtectedBranchPullRequestReview { get throws { switch self { case let .json(body): @@ -30763,12 +30836,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposUpdatePullRequestReviewProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposUpdatePullRequestReviewProtection.Output.Ok.Body) { self.body = body } } @@ -30777,12 +30850,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok) + case ok(Operations.ReposUpdatePullRequestReviewProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.Ok { + public var ok: Operations.ReposUpdatePullRequestReviewProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -30800,12 +30873,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/patch(repos/update-pull-request-review-protection)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -30855,7 +30928,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)`. - public enum repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection { + public enum ReposDeletePullRequestReviewProtection { public static let id: Swift.String = "repos/delete-pull-request-review-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/DELETE/path`. @@ -30863,15 +30936,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -30879,36 +30952,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path + public var path: Operations.ReposDeletePullRequestReviewProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers + public var headers: Operations.ReposDeletePullRequestReviewProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Input.Headers = .init() + path: Operations.ReposDeletePullRequestReviewProtection.Input.Path, + headers: Operations.ReposDeletePullRequestReviewProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -30924,12 +30997,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposDeletePullRequestReviewProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_pull_hyphen_request_hyphen_review_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposDeletePullRequestReviewProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -30947,12 +31028,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews/delete(repos/delete-pull-request-review-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31007,7 +31088,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)`. - public enum repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection { + public enum ReposGetCommitSignatureProtection { public static let id: Swift.String = "repos/get-commit-signature-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/path`. @@ -31015,15 +31096,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31031,36 +31112,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path + public var path: Operations.ReposGetCommitSignatureProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers + public var headers: Operations.ReposGetCommitSignatureProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() + path: Operations.ReposGetCommitSignatureProtection.Input.Path, + headers: Operations.ReposGetCommitSignatureProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31071,12 +31152,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/GET/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced) + case json(Components.Schemas.ProtectedBranchAdminEnforced) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced { + public var json: Components.Schemas.ProtectedBranchAdminEnforced { get throws { switch self { case let .json(body): @@ -31086,12 +31167,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposGetCommitSignatureProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposGetCommitSignatureProtection.Output.Ok.Body) { self.body = body } } @@ -31100,12 +31181,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok) + case ok(Operations.ReposGetCommitSignatureProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok { + public var ok: Operations.ReposGetCommitSignatureProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -31123,12 +31204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/get(repos/get-commit-signature-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31180,7 +31261,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)`. - public enum repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection { + public enum ReposCreateCommitSignatureProtection { public static let id: Swift.String = "repos/create-commit-signature-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/path`. @@ -31188,15 +31269,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31204,36 +31285,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path + public var path: Operations.ReposCreateCommitSignatureProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers + public var headers: Operations.ReposCreateCommitSignatureProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() + path: Operations.ReposCreateCommitSignatureProtection.Input.Path, + headers: Operations.ReposCreateCommitSignatureProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31244,12 +31325,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/POST/responses/200/content/application\/json`. - case json(Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced) + case json(Components.Schemas.ProtectedBranchAdminEnforced) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.protected_hyphen_branch_hyphen_admin_hyphen_enforced { + public var json: Components.Schemas.ProtectedBranchAdminEnforced { get throws { switch self { case let .json(body): @@ -31259,12 +31340,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposCreateCommitSignatureProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposCreateCommitSignatureProtection.Output.Ok.Body) { self.body = body } } @@ -31273,12 +31354,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok) + case ok(Operations.ReposCreateCommitSignatureProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_create_hyphen_commit_hyphen_signature_hyphen_protection.Output.Ok { + public var ok: Operations.ReposCreateCommitSignatureProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -31296,12 +31377,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/post(repos/create-commit-signature-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31353,7 +31434,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)`. - public enum repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection { + public enum ReposDeleteCommitSignatureProtection { public static let id: Swift.String = "repos/delete-commit-signature-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/DELETE/path`. @@ -31361,15 +31442,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31377,36 +31458,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path + public var path: Operations.ReposDeleteCommitSignatureProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers + public var headers: Operations.ReposDeleteCommitSignatureProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Input.Headers = .init() + path: Operations.ReposDeleteCommitSignatureProtection.Input.Path, + headers: Operations.ReposDeleteCommitSignatureProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31422,12 +31503,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposDeleteCommitSignatureProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_commit_hyphen_signature_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposDeleteCommitSignatureProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -31445,12 +31534,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_signatures/delete(repos/delete-commit-signature-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31500,7 +31589,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)`. - public enum repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection { + public enum ReposGetStatusChecksProtection { public static let id: Swift.String = "repos/get-status-checks-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/path`. @@ -31508,15 +31597,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31524,36 +31613,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Path + public var path: Operations.ReposGetStatusChecksProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Headers + public var headers: Operations.ReposGetStatusChecksProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Path, - headers: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Input.Headers = .init() + path: Operations.ReposGetStatusChecksProtection.Input.Path, + headers: Operations.ReposGetStatusChecksProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -31564,12 +31653,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/GET/responses/200/content/application\/json`. - case json(Components.Schemas.status_hyphen_check_hyphen_policy) + case json(Components.Schemas.StatusCheckPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.status_hyphen_check_hyphen_policy { + public var json: Components.Schemas.StatusCheckPolicy { get throws { switch self { case let .json(body): @@ -31579,12 +31668,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposGetStatusChecksProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposGetStatusChecksProtection.Output.Ok.Body) { self.body = body } } @@ -31593,12 +31682,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output.Ok) + case ok(Operations.ReposGetStatusChecksProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_status_hyphen_checks_hyphen_protection.Output.Ok { + public var ok: Operations.ReposGetStatusChecksProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -31616,12 +31705,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/get(repos/get-status-checks-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31673,7 +31762,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)`. - public enum repos_sol_update_hyphen_status_hyphen_check_hyphen_protection { + public enum ReposUpdateStatusCheckProtection { public static let id: Swift.String = "repos/update-status-check-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/path`. @@ -31681,15 +31770,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31697,32 +31786,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Path + public var path: Operations.ReposUpdateStatusCheckProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Headers + public var headers: Operations.ReposUpdateStatusCheckProtection.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Require branches to be up to date before merging. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/strict`. @@ -31732,42 +31821,42 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/contexts`. @available(*, deprecated) public var contexts: [Swift.String]? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/checksPayload`. - public struct checksPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/ChecksPayload`. + public struct ChecksPayloadPayload: Codable, Hashable, Sendable { /// The name of the required check /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/checksPayload/context`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/ChecksPayload/context`. public var context: Swift.String /// The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/checksPayload/app_id`. - public var app_id: Swift.Int? - /// Creates a new `checksPayloadPayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/ChecksPayload/app_id`. + public var appId: Swift.Int? + /// Creates a new `ChecksPayloadPayload`. /// /// - Parameters: /// - context: The name of the required check - /// - app_id: The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. + /// - appId: The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. public init( context: Swift.String, - app_id: Swift.Int? = nil + appId: Swift.Int? = nil ) { self.context = context - self.app_id = app_id + self.appId = appId } public enum CodingKeys: String, CodingKey { case context - case app_id + case appId = "app_id" } } /// The list of status checks to require in order to merge into this branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/checks`. - public typealias checksPayload = [Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body.jsonPayload.checksPayloadPayload] + public typealias ChecksPayload = [Operations.ReposUpdateStatusCheckProtection.Input.Body.JsonPayload.ChecksPayloadPayload] /// The list of status checks to require in order to merge into this branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/checks`. - public var checks: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body.jsonPayload.checksPayload? - /// Creates a new `jsonPayload`. + public var checks: Operations.ReposUpdateStatusCheckProtection.Input.Body.JsonPayload.ChecksPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - strict: Require branches to be up to date before merging. @@ -31776,7 +31865,7 @@ public enum Operations { public init( strict: Swift.Bool? = nil, contexts: [Swift.String]? = nil, - checks: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body.jsonPayload.checksPayload? = nil + checks: Operations.ReposUpdateStatusCheckProtection.Input.Body.JsonPayload.ChecksPayload? = nil ) { self.strict = strict self.contexts = contexts @@ -31789,9 +31878,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body.jsonPayload) + case json(Operations.ReposUpdateStatusCheckProtection.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body? + public var body: Operations.ReposUpdateStatusCheckProtection.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -31799,9 +31888,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Path, - headers: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Input.Body? = nil + path: Operations.ReposUpdateStatusCheckProtection.Input.Path, + headers: Operations.ReposUpdateStatusCheckProtection.Input.Headers = .init(), + body: Operations.ReposUpdateStatusCheckProtection.Input.Body? = nil ) { self.path = path self.headers = headers @@ -31813,12 +31902,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.status_hyphen_check_hyphen_policy) + case json(Components.Schemas.StatusCheckPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.status_hyphen_check_hyphen_policy { + public var json: Components.Schemas.StatusCheckPolicy { get throws { switch self { case let .json(body): @@ -31828,12 +31917,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposUpdateStatusCheckProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposUpdateStatusCheckProtection.Output.Ok.Body) { self.body = body } } @@ -31842,12 +31931,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output.Ok) + case ok(Operations.ReposUpdateStatusCheckProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_status_hyphen_check_hyphen_protection.Output.Ok { + public var ok: Operations.ReposUpdateStatusCheckProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -31865,12 +31954,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -31888,12 +31977,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/patch(repos/update-status-check-protection)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -31943,7 +32032,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)`. - public enum repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection { + public enum ReposRemoveStatusCheckProtection { public static let id: Swift.String = "repos/remove-status-check-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/DELETE/path`. @@ -31951,15 +32040,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -31967,21 +32056,21 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input.Path + public var path: Operations.ReposRemoveStatusCheckProtection.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Input.Path) { + public init(path: Operations.ReposRemoveStatusCheckProtection.Input.Path) { self.path = path } } @@ -31995,12 +32084,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposRemoveStatusCheckProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/delete(repos/remove-status-check-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposRemoveStatusCheckProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -32025,7 +32122,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)`. - public enum repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts { + public enum ReposGetAllStatusCheckContexts { public static let id: Swift.String = "repos/get-all-status-check-contexts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/GET/path`. @@ -32033,15 +32130,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -32049,36 +32146,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Path + public var path: Operations.ReposGetAllStatusCheckContexts.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers + public var headers: Operations.ReposGetAllStatusCheckContexts.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init() + path: Operations.ReposGetAllStatusCheckContexts.Input.Path, + headers: Operations.ReposGetAllStatusCheckContexts.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -32104,12 +32201,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + public var body: Operations.ReposGetAllStatusCheckContexts.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body) { + public init(body: Operations.ReposGetAllStatusCheckContexts.Output.Ok.Body) { self.body = body } } @@ -32118,12 +32215,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok) + case ok(Operations.ReposGetAllStatusCheckContexts.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_all_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok { + public var ok: Operations.ReposGetAllStatusCheckContexts.Output.Ok { get throws { switch self { case let .ok(response): @@ -32141,12 +32238,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/get(repos/get-all-status-check-contexts)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -32196,7 +32293,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)`. - public enum repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts { + public enum ReposAddStatusCheckContexts { public static let id: Swift.String = "repos/add-status-check-contexts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/path`. @@ -32204,15 +32301,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -32220,32 +32317,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Path + public var path: Operations.ReposAddStatusCheckContexts.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers + public var headers: Operations.ReposAddStatusCheckContexts.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The name of the status checks @@ -32264,7 +32361,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody/json/case1`. - case case1(Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposAddStatusCheckContexts.Input.Body.JsonPayload.Case1Payload) /// The name of the status checks /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody/json/case2`. @@ -32299,9 +32396,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload) + case json(Operations.ReposAddStatusCheckContexts.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? + public var body: Operations.ReposAddStatusCheckContexts.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -32309,9 +32406,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil + path: Operations.ReposAddStatusCheckContexts.Input.Path, + headers: Operations.ReposAddStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposAddStatusCheckContexts.Input.Body? = nil ) { self.path = path self.headers = headers @@ -32338,12 +32435,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + public var body: Operations.ReposAddStatusCheckContexts.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body) { + public init(body: Operations.ReposAddStatusCheckContexts.Output.Ok.Body) { self.body = body } } @@ -32352,12 +32449,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok) + case ok(Operations.ReposAddStatusCheckContexts.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_add_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok { + public var ok: Operations.ReposAddStatusCheckContexts.Output.Ok { get throws { switch self { case let .ok(response): @@ -32375,12 +32472,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -32398,12 +32495,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -32421,12 +32518,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/post(repos/add-status-check-contexts)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -32476,7 +32573,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)`. - public enum repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts { + public enum ReposSetStatusCheckContexts { public static let id: Swift.String = "repos/set-status-check-contexts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/path`. @@ -32484,15 +32581,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -32500,32 +32597,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Path + public var path: Operations.ReposSetStatusCheckContexts.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers + public var headers: Operations.ReposSetStatusCheckContexts.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The name of the status checks @@ -32544,7 +32641,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody/json/case1`. - case case1(Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposSetStatusCheckContexts.Input.Body.JsonPayload.Case1Payload) /// The name of the status checks /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody/json/case2`. @@ -32579,9 +32676,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload) + case json(Operations.ReposSetStatusCheckContexts.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? + public var body: Operations.ReposSetStatusCheckContexts.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -32589,9 +32686,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil + path: Operations.ReposSetStatusCheckContexts.Input.Path, + headers: Operations.ReposSetStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposSetStatusCheckContexts.Input.Body? = nil ) { self.path = path self.headers = headers @@ -32618,12 +32715,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + public var body: Operations.ReposSetStatusCheckContexts.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body) { + public init(body: Operations.ReposSetStatusCheckContexts.Output.Ok.Body) { self.body = body } } @@ -32632,12 +32729,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok) + case ok(Operations.ReposSetStatusCheckContexts.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_set_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok { + public var ok: Operations.ReposSetStatusCheckContexts.Output.Ok { get throws { switch self { case let .ok(response): @@ -32655,12 +32752,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -32678,12 +32775,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/put(repos/set-status-check-contexts)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -32733,7 +32830,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)`. - public enum repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts { + public enum ReposRemoveStatusCheckContexts { public static let id: Swift.String = "repos/remove-status-check-contexts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/path`. @@ -32741,15 +32838,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -32757,32 +32854,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Path + public var path: Operations.ReposRemoveStatusCheckContexts.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers + public var headers: Operations.ReposRemoveStatusCheckContexts.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The name of the status checks @@ -32801,7 +32898,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody/json/case1`. - case case1(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposRemoveStatusCheckContexts.Input.Body.JsonPayload.Case1Payload) /// The name of the status checks /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody/json/case2`. @@ -32836,9 +32933,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/DELETE/requestBody/content/application\/json`. - case json(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Body.jsonPayload) + case json(Operations.ReposRemoveStatusCheckContexts.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? + public var body: Operations.ReposRemoveStatusCheckContexts.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -32846,9 +32943,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Path, - headers: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Input.Body? = nil + path: Operations.ReposRemoveStatusCheckContexts.Input.Path, + headers: Operations.ReposRemoveStatusCheckContexts.Input.Headers = .init(), + body: Operations.ReposRemoveStatusCheckContexts.Input.Body? = nil ) { self.path = path self.headers = headers @@ -32875,12 +32972,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body + public var body: Operations.ReposRemoveStatusCheckContexts.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok.Body) { + public init(body: Operations.ReposRemoveStatusCheckContexts.Output.Ok.Body) { self.body = body } } @@ -32889,12 +32986,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok) + case ok(Operations.ReposRemoveStatusCheckContexts.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_remove_hyphen_status_hyphen_check_hyphen_contexts.Output.Ok { + public var ok: Operations.ReposRemoveStatusCheckContexts.Output.Ok { get throws { switch self { case let .ok(response): @@ -32912,12 +33009,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -32935,12 +33032,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts/delete(repos/remove-status-check-contexts)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -32995,7 +33092,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)`. - public enum repos_sol_get_hyphen_access_hyphen_restrictions { + public enum ReposGetAccessRestrictions { public static let id: Swift.String = "repos/get-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/path`. @@ -33003,15 +33100,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33019,36 +33116,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposGetAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposGetAccessRestrictions.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Input.Headers = .init() + path: Operations.ReposGetAccessRestrictions.Input.Path, + headers: Operations.ReposGetAccessRestrictions.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -33059,12 +33156,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/GET/responses/200/content/application\/json`. - case json(Components.Schemas.branch_hyphen_restriction_hyphen_policy) + case json(Components.Schemas.BranchRestrictionPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.branch_hyphen_restriction_hyphen_policy { + public var json: Components.Schemas.BranchRestrictionPolicy { get throws { switch self { case let .json(body): @@ -33074,12 +33171,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposGetAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposGetAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -33088,12 +33185,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposGetAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposGetAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -33111,12 +33208,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/get(repos/get-access-restrictions)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -33168,7 +33265,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)`. - public enum repos_sol_delete_hyphen_access_hyphen_restrictions { + public enum ReposDeleteAccessRestrictions { public static let id: Swift.String = "repos/delete-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/DELETE/path`. @@ -33176,15 +33273,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33192,21 +33289,21 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposDeleteAccessRestrictions.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Input.Path) { + public init(path: Operations.ReposDeleteAccessRestrictions.Input.Path) { self.path = path } } @@ -33220,12 +33317,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Output.NoContent) + case noContent(Operations.ReposDeleteAccessRestrictions.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/delete(repos/delete-access-restrictions)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_access_hyphen_restrictions.Output.NoContent { + public var noContent: Operations.ReposDeleteAccessRestrictions.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -33252,7 +33357,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)`. - public enum repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch { + public enum ReposGetAppsWithAccessToProtectedBranch { public static let id: Swift.String = "repos/get-apps-with-access-to-protected-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/path`. @@ -33260,15 +33365,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33276,36 +33381,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path + public var path: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers + public var headers: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() + path: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetAppsWithAccessToProtectedBranch.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -33316,12 +33421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/GET/responses/200/content/application\/json`. - case json([Components.Schemas.integration]) + case json([Components.Schemas.Integration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.integration] { + public var json: [Components.Schemas.Integration] { get throws { switch self { case let .json(body): @@ -33331,12 +33436,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + public var body: Operations.ReposGetAppsWithAccessToProtectedBranch.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body) { + public init(body: Operations.ReposGetAppsWithAccessToProtectedBranch.Output.Ok.Body) { self.body = body } } @@ -33345,12 +33450,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok) + case ok(Operations.ReposGetAppsWithAccessToProtectedBranch.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_apps_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok { + public var ok: Operations.ReposGetAppsWithAccessToProtectedBranch.Output.Ok { get throws { switch self { case let .ok(response): @@ -33368,12 +33473,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/get(repos/get-apps-with-access-to-protected-branch)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -33425,7 +33530,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)`. - public enum repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions { + public enum ReposAddAppAccessRestrictions { public static let id: Swift.String = "repos/add-app-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/path`. @@ -33433,15 +33538,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33449,37 +33554,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposAddAppAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposAddAppAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/requestBody/json/apps`. public var apps: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - apps: The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. @@ -33491,9 +33596,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposAddAppAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposAddAppAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -33501,9 +33606,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposAddAppAccessRestrictions.Input.Path, + headers: Operations.ReposAddAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddAppAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -33515,12 +33620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/POST/responses/200/content/application\/json`. - case json([Components.Schemas.integration]) + case json([Components.Schemas.Integration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.integration] { + public var json: [Components.Schemas.Integration] { get throws { switch self { case let .json(body): @@ -33530,12 +33635,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposAddAppAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposAddAppAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -33544,12 +33649,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposAddAppAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_add_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposAddAppAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -33567,12 +33672,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/post(repos/add-app-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -33624,7 +33729,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)`. - public enum repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions { + public enum ReposSetAppAccessRestrictions { public static let id: Swift.String = "repos/set-app-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/path`. @@ -33632,15 +33737,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33648,37 +33753,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposSetAppAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposSetAppAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/requestBody/json/apps`. public var apps: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - apps: The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. @@ -33690,9 +33795,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposSetAppAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposSetAppAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -33700,9 +33805,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposSetAppAccessRestrictions.Input.Path, + headers: Operations.ReposSetAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetAppAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -33714,12 +33819,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/PUT/responses/200/content/application\/json`. - case json([Components.Schemas.integration]) + case json([Components.Schemas.Integration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.integration] { + public var json: [Components.Schemas.Integration] { get throws { switch self { case let .json(body): @@ -33729,12 +33834,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposSetAppAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposSetAppAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -33743,12 +33848,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposSetAppAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_set_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposSetAppAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -33766,12 +33871,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/put(repos/set-app-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -33823,7 +33928,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)`. - public enum repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions { + public enum ReposRemoveAppAccessRestrictions { public static let id: Swift.String = "repos/remove-app-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/path`. @@ -33831,15 +33936,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -33847,37 +33952,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposRemoveAppAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposRemoveAppAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/requestBody/json/apps`. public var apps: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - apps: The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items. @@ -33889,9 +33994,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/requestBody/content/application\/json`. - case json(Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposRemoveAppAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposRemoveAppAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -33899,9 +34004,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposRemoveAppAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveAppAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveAppAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -33913,12 +34018,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/DELETE/responses/200/content/application\/json`. - case json([Components.Schemas.integration]) + case json([Components.Schemas.Integration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.integration] { + public var json: [Components.Schemas.Integration] { get throws { switch self { case let .json(body): @@ -33928,12 +34033,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposRemoveAppAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposRemoveAppAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -33942,12 +34047,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposRemoveAppAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_remove_hyphen_app_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposRemoveAppAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -33965,12 +34070,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps/delete(repos/remove-app-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -34022,7 +34127,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)`. - public enum repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch { + public enum ReposGetTeamsWithAccessToProtectedBranch { public static let id: Swift.String = "repos/get-teams-with-access-to-protected-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/path`. @@ -34030,15 +34135,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -34046,36 +34151,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path + public var path: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers + public var headers: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() + path: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetTeamsWithAccessToProtectedBranch.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -34086,12 +34191,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -34101,12 +34206,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + public var body: Operations.ReposGetTeamsWithAccessToProtectedBranch.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body) { + public init(body: Operations.ReposGetTeamsWithAccessToProtectedBranch.Output.Ok.Body) { self.body = body } } @@ -34115,12 +34220,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok) + case ok(Operations.ReposGetTeamsWithAccessToProtectedBranch.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_teams_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok { + public var ok: Operations.ReposGetTeamsWithAccessToProtectedBranch.Output.Ok { get throws { switch self { case let .ok(response): @@ -34138,12 +34243,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/get(repos/get-teams-with-access-to-protected-branch)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -34195,7 +34300,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)`. - public enum repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions { + public enum ReposAddTeamAccessRestrictions { public static let id: Swift.String = "repos/add-team-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/path`. @@ -34203,15 +34308,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -34219,32 +34324,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposAddTeamAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposAddTeamAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The slug values for teams @@ -34263,7 +34368,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody/json/case1`. - case case1(Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposAddTeamAccessRestrictions.Input.Body.JsonPayload.Case1Payload) /// The slug values for teams /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody/json/case2`. @@ -34298,9 +34403,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposAddTeamAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? + public var body: Operations.ReposAddTeamAccessRestrictions.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -34308,9 +34413,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil + path: Operations.ReposAddTeamAccessRestrictions.Input.Path, + headers: Operations.ReposAddTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddTeamAccessRestrictions.Input.Body? = nil ) { self.path = path self.headers = headers @@ -34322,12 +34427,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/POST/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -34337,12 +34442,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposAddTeamAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposAddTeamAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -34351,12 +34456,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposAddTeamAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_add_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposAddTeamAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -34374,12 +34479,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/post(repos/add-team-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -34431,7 +34536,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)`. - public enum repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions { + public enum ReposSetTeamAccessRestrictions { public static let id: Swift.String = "repos/set-team-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/path`. @@ -34439,15 +34544,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -34455,32 +34560,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposSetTeamAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposSetTeamAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The slug values for teams @@ -34499,7 +34604,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody/json/case1`. - case case1(Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposSetTeamAccessRestrictions.Input.Body.JsonPayload.Case1Payload) /// The slug values for teams /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody/json/case2`. @@ -34534,9 +34639,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposSetTeamAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? + public var body: Operations.ReposSetTeamAccessRestrictions.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -34544,9 +34649,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil + path: Operations.ReposSetTeamAccessRestrictions.Input.Path, + headers: Operations.ReposSetTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetTeamAccessRestrictions.Input.Body? = nil ) { self.path = path self.headers = headers @@ -34558,12 +34663,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/PUT/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -34573,12 +34678,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposSetTeamAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposSetTeamAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -34587,12 +34692,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposSetTeamAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_set_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposSetTeamAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -34610,12 +34715,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/put(repos/set-team-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -34667,7 +34772,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)`. - public enum repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions { + public enum ReposRemoveTeamAccessRestrictions { public static let id: Swift.String = "repos/remove-team-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/path`. @@ -34675,15 +34780,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -34691,32 +34796,32 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposRemoveTeamAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposRemoveTeamAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// The slug values for teams @@ -34735,7 +34840,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody/json/case1`. - case case1(Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.ReposRemoveTeamAccessRestrictions.Input.Body.JsonPayload.Case1Payload) /// The slug values for teams /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody/json/case2`. @@ -34770,9 +34875,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/requestBody/content/application\/json`. - case json(Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposRemoveTeamAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? + public var body: Operations.ReposRemoveTeamAccessRestrictions.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -34780,9 +34885,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Input.Body? = nil + path: Operations.ReposRemoveTeamAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveTeamAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveTeamAccessRestrictions.Input.Body? = nil ) { self.path = path self.headers = headers @@ -34794,12 +34899,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/DELETE/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -34809,12 +34914,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposRemoveTeamAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposRemoveTeamAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -34823,12 +34928,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposRemoveTeamAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_remove_hyphen_team_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposRemoveTeamAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -34846,12 +34951,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams/delete(repos/remove-team-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -34903,7 +35008,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)`. - public enum repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch { + public enum ReposGetUsersWithAccessToProtectedBranch { public static let id: Swift.String = "repos/get-users-with-access-to-protected-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/path`. @@ -34911,15 +35016,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -34927,36 +35032,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path + public var path: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers + public var headers: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Path, - headers: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Input.Headers = .init() + path: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Path, + headers: Operations.ReposGetUsersWithAccessToProtectedBranch.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -34967,12 +35072,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -34982,12 +35087,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body + public var body: Operations.ReposGetUsersWithAccessToProtectedBranch.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok.Body) { + public init(body: Operations.ReposGetUsersWithAccessToProtectedBranch.Output.Ok.Body) { self.body = body } } @@ -34996,12 +35101,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok) + case ok(Operations.ReposGetUsersWithAccessToProtectedBranch.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_users_hyphen_with_hyphen_access_hyphen_to_hyphen_protected_hyphen_branch.Output.Ok { + public var ok: Operations.ReposGetUsersWithAccessToProtectedBranch.Output.Ok { get throws { switch self { case let .ok(response): @@ -35019,12 +35124,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/get(repos/get-users-with-access-to-protected-branch)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -35080,7 +35185,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)`. - public enum repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions { + public enum ReposAddUserAccessRestrictions { public static let id: Swift.String = "repos/add-user-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/path`. @@ -35088,15 +35193,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -35104,37 +35209,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposAddUserAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposAddUserAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The username for users /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/requestBody/json/users`. public var users: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - users: The username for users @@ -35146,9 +35251,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposAddUserAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposAddUserAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -35156,9 +35261,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposAddUserAccessRestrictions.Input.Path, + headers: Operations.ReposAddUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposAddUserAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -35170,12 +35275,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/POST/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -35185,12 +35290,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposAddUserAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposAddUserAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -35199,12 +35304,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposAddUserAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_add_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposAddUserAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -35222,12 +35327,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/post(repos/add-user-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -35283,7 +35388,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)`. - public enum repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions { + public enum ReposSetUserAccessRestrictions { public static let id: Swift.String = "repos/set-user-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/path`. @@ -35291,15 +35396,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -35307,37 +35412,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposSetUserAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposSetUserAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The username for users /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/requestBody/json/users`. public var users: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - users: The username for users @@ -35349,9 +35454,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposSetUserAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposSetUserAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -35359,9 +35464,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposSetUserAccessRestrictions.Input.Path, + headers: Operations.ReposSetUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposSetUserAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -35373,12 +35478,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/PUT/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -35388,12 +35493,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposSetUserAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposSetUserAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -35402,12 +35507,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposSetUserAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_set_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposSetUserAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -35425,12 +35530,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/put(repos/set-user-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -35486,7 +35591,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)`. - public enum repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions { + public enum ReposRemoveUserAccessRestrictions { public static let id: Swift.String = "repos/remove-user-access-restrictions" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/path`. @@ -35494,15 +35599,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -35510,37 +35615,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path + public var path: Operations.ReposRemoveUserAccessRestrictions.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers + public var headers: Operations.ReposRemoveUserAccessRestrictions.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The username for users /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/requestBody/json/users`. public var users: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - users: The username for users @@ -35552,9 +35657,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/requestBody/content/application\/json`. - case json(Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body.jsonPayload) + case json(Operations.ReposRemoveUserAccessRestrictions.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + public var body: Operations.ReposRemoveUserAccessRestrictions.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -35562,9 +35667,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Path, - headers: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Headers = .init(), - body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Input.Body + path: Operations.ReposRemoveUserAccessRestrictions.Input.Path, + headers: Operations.ReposRemoveUserAccessRestrictions.Input.Headers = .init(), + body: Operations.ReposRemoveUserAccessRestrictions.Input.Body ) { self.path = path self.headers = headers @@ -35576,12 +35681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/DELETE/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -35591,12 +35696,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body + public var body: Operations.ReposRemoveUserAccessRestrictions.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok.Body) { + public init(body: Operations.ReposRemoveUserAccessRestrictions.Output.Ok.Body) { self.body = body } } @@ -35605,12 +35710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok) + case ok(Operations.ReposRemoveUserAccessRestrictions.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_remove_hyphen_user_hyphen_access_hyphen_restrictions.Output.Ok { + public var ok: Operations.ReposRemoveUserAccessRestrictions.Output.Ok { get throws { switch self { case let .ok(response): @@ -35628,12 +35733,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users/delete(repos/remove-user-access-restrictions)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -35690,7 +35795,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/branches/{branch}/rename`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)`. - public enum repos_sol_rename_hyphen_branch { + public enum ReposRenameBranch { public static let id: Swift.String = "repos/rename-branch" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/path`. @@ -35698,15 +35803,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -35714,51 +35819,51 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_rename_hyphen_branch.Input.Path + public var path: Operations.ReposRenameBranch.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_rename_hyphen_branch.Input.Headers + public var headers: Operations.ReposRenameBranch.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The new name of the branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/requestBody/json/new_name`. - public var new_name: Swift.String - /// Creates a new `jsonPayload`. + public var newName: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - new_name: The new name of the branch. - public init(new_name: Swift.String) { - self.new_name = new_name + /// - newName: The new name of the branch. + public init(newName: Swift.String) { + self.newName = newName } public enum CodingKeys: String, CodingKey { - case new_name + case newName = "new_name" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_rename_hyphen_branch.Input.Body.jsonPayload) + case json(Operations.ReposRenameBranch.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_rename_hyphen_branch.Input.Body + public var body: Operations.ReposRenameBranch.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -35766,9 +35871,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_rename_hyphen_branch.Input.Path, - headers: Operations.repos_sol_rename_hyphen_branch.Input.Headers = .init(), - body: Operations.repos_sol_rename_hyphen_branch.Input.Body + path: Operations.ReposRenameBranch.Input.Path, + headers: Operations.ReposRenameBranch.Input.Headers = .init(), + body: Operations.ReposRenameBranch.Input.Body ) { self.path = path self.headers = headers @@ -35780,12 +35885,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/rename/POST/responses/201/content/application\/json`. - case json(Components.Schemas.branch_hyphen_with_hyphen_protection) + case json(Components.Schemas.BranchWithProtection) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.branch_hyphen_with_hyphen_protection { + public var json: Components.Schemas.BranchWithProtection { get throws { switch self { case let .json(body): @@ -35795,12 +35900,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_rename_hyphen_branch.Output.Created.Body + public var body: Operations.ReposRenameBranch.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_rename_hyphen_branch.Output.Created.Body) { + public init(body: Operations.ReposRenameBranch.Output.Created.Body) { self.body = body } } @@ -35809,12 +35914,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_rename_hyphen_branch.Output.Created) + case created(Operations.ReposRenameBranch.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_rename_hyphen_branch.Output.Created { + public var created: Operations.ReposRenameBranch.Output.Created { get throws { switch self { case let .created(response): @@ -35832,12 +35937,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -35855,12 +35960,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -35878,12 +35983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/branches/{branch}/rename/post(repos/rename-branch)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -35937,7 +36042,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codeowners/errors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)`. - public enum repos_sol_codeowners_hyphen_errors { + public enum ReposCodeownersErrors { public static let id: Swift.String = "repos/codeowners-errors" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/path`. @@ -35945,25 +36050,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_codeowners_hyphen_errors.Input.Path + public var path: Operations.ReposCodeownersErrors.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/query`. public struct Query: Sendable, Hashable { /// A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. `main`) @@ -35978,19 +36083,19 @@ public enum Operations { self.ref = ref } } - public var query: Operations.repos_sol_codeowners_hyphen_errors.Input.Query + public var query: Operations.ReposCodeownersErrors.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_codeowners_hyphen_errors.Input.Headers + public var headers: Operations.ReposCodeownersErrors.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -35998,9 +36103,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_codeowners_hyphen_errors.Input.Path, - query: Operations.repos_sol_codeowners_hyphen_errors.Input.Query = .init(), - headers: Operations.repos_sol_codeowners_hyphen_errors.Input.Headers = .init() + path: Operations.ReposCodeownersErrors.Input.Path, + query: Operations.ReposCodeownersErrors.Input.Query = .init(), + headers: Operations.ReposCodeownersErrors.Input.Headers = .init() ) { self.path = path self.query = query @@ -36012,12 +36117,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codeowners/errors/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codeowners_hyphen_errors) + case json(Components.Schemas.CodeownersErrors) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codeowners_hyphen_errors { + public var json: Components.Schemas.CodeownersErrors { get throws { switch self { case let .json(body): @@ -36027,12 +36132,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_codeowners_hyphen_errors.Output.Ok.Body + public var body: Operations.ReposCodeownersErrors.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_codeowners_hyphen_errors.Output.Ok.Body) { + public init(body: Operations.ReposCodeownersErrors.Output.Ok.Body) { self.body = body } } @@ -36041,12 +36146,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_codeowners_hyphen_errors.Output.Ok) + case ok(Operations.ReposCodeownersErrors.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_codeowners_hyphen_errors.Output.Ok { + public var ok: Operations.ReposCodeownersErrors.Output.Ok { get throws { switch self { case let .ok(response): @@ -36068,12 +36173,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_codeowners_hyphen_errors.Output.NotFound) + case notFound(Operations.ReposCodeownersErrors.Output.NotFound) + /// Resource not found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codeowners/errors/get(repos/codeowners-errors)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_codeowners_hyphen_errors.Output.NotFound { + public var notFound: Operations.ReposCodeownersErrors.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -36130,7 +36243,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)`. - public enum repos_sol_list_hyphen_collaborators { + public enum ReposListCollaborators { public static let id: Swift.String = "repos/list-collaborators" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/path`. @@ -36138,29 +36251,29 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_collaborators.Input.Path + public var path: Operations.ReposListCollaborators.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/affiliation`. - @frozen public enum affiliationPayload: String, Codable, Hashable, Sendable { + @frozen public enum AffiliationPayload: String, Codable, Hashable, Sendable, CaseIterable { case outside = "outside" case direct = "direct" case all = "all" @@ -36168,9 +36281,9 @@ public enum Operations { /// Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/affiliation`. - public var affiliation: Operations.repos_sol_list_hyphen_collaborators.Input.Query.affiliationPayload? + public var affiliation: Operations.ReposListCollaborators.Input.Query.AffiliationPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case pull = "pull" case triage = "triage" case push = "push" @@ -36180,47 +36293,47 @@ public enum Operations { /// Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/permission`. - public var permission: Operations.repos_sol_list_hyphen_collaborators.Input.Query.permissionPayload? + public var permission: Operations.ReposListCollaborators.Input.Query.PermissionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - affiliation: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. /// - permission: Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. - /// - 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)." + /// - perPage: 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)." public init( - affiliation: Operations.repos_sol_list_hyphen_collaborators.Input.Query.affiliationPayload? = nil, - permission: Operations.repos_sol_list_hyphen_collaborators.Input.Query.permissionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + affiliation: Operations.ReposListCollaborators.Input.Query.AffiliationPayload? = nil, + permission: Operations.ReposListCollaborators.Input.Query.PermissionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.affiliation = affiliation self.permission = permission - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_collaborators.Input.Query + public var query: Operations.ReposListCollaborators.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_collaborators.Input.Headers + public var headers: Operations.ReposListCollaborators.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -36228,9 +36341,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_collaborators.Input.Path, - query: Operations.repos_sol_list_hyphen_collaborators.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_collaborators.Input.Headers = .init() + path: Operations.ReposListCollaborators.Input.Path, + query: Operations.ReposListCollaborators.Input.Query = .init(), + headers: Operations.ReposListCollaborators.Input.Headers = .init() ) { self.path = path self.query = query @@ -36242,26 +36355,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Headers + public var headers: Operations.ReposListCollaborators.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/GET/responses/200/content/application\/json`. - case json([Components.Schemas.collaborator]) + case json([Components.Schemas.Collaborator]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.collaborator] { + public var json: [Components.Schemas.Collaborator] { get throws { switch self { case let .json(body): @@ -36271,15 +36384,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Body + public var body: Operations.ReposListCollaborators.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_collaborators.Output.Ok.Body + headers: Operations.ReposListCollaborators.Output.Ok.Headers = .init(), + body: Operations.ReposListCollaborators.Output.Ok.Body ) { self.headers = headers self.body = body @@ -36290,12 +36403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_collaborators.Output.Ok) + case ok(Operations.ReposListCollaborators.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_collaborators.Output.Ok { + public var ok: Operations.ReposListCollaborators.Output.Ok { get throws { switch self { case let .ok(response): @@ -36313,12 +36426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/get(repos/list-collaborators)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -36374,7 +36487,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)`. - public enum repos_sol_check_hyphen_collaborator { + public enum ReposCheckCollaborator { public static let id: Swift.String = "repos/check-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/GET/path`. @@ -36382,15 +36495,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: @@ -36398,21 +36511,21 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - username: Components.Parameters.username + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + username: Components.Parameters.Username ) { self.owner = owner self.repo = repo self.username = username } } - public var path: Operations.repos_sol_check_hyphen_collaborator.Input.Path + public var path: Operations.ReposCheckCollaborator.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_check_hyphen_collaborator.Input.Path) { + public init(path: Operations.ReposCheckCollaborator.Input.Path) { self.path = path } } @@ -36426,12 +36539,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_check_hyphen_collaborator.Output.NoContent) + case noContent(Operations.ReposCheckCollaborator.Output.NoContent) + /// Response if user is a collaborator + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_check_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.ReposCheckCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -36453,12 +36574,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_check_hyphen_collaborator.Output.NotFound) + case notFound(Operations.ReposCheckCollaborator.Output.NotFound) + /// Not Found if user is not a collaborator + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/get(repos/check-collaborator)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_check_hyphen_collaborator.Output.NotFound { + public var notFound: Operations.ReposCheckCollaborator.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -36503,7 +36632,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)`. - public enum repos_sol_add_hyphen_collaborator { + public enum ReposAddCollaborator { public static let id: Swift.String = "repos/add-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/path`. @@ -36511,15 +36640,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: @@ -36527,37 +36656,37 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - username: Components.Parameters.username + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + username: Components.Parameters.Username ) { self.owner = owner self.repo = repo self.username = username } } - public var path: Operations.repos_sol_add_hyphen_collaborator.Input.Path + public var path: Operations.ReposAddCollaborator.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_add_hyphen_collaborator.Input.Headers + public var headers: Operations.ReposAddCollaborator.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/requestBody/json/permission`. public var permission: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. @@ -36569,9 +36698,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_add_hyphen_collaborator.Input.Body.jsonPayload) + case json(Operations.ReposAddCollaborator.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_add_hyphen_collaborator.Input.Body? + public var body: Operations.ReposAddCollaborator.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -36579,9 +36708,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_add_hyphen_collaborator.Input.Path, - headers: Operations.repos_sol_add_hyphen_collaborator.Input.Headers = .init(), - body: Operations.repos_sol_add_hyphen_collaborator.Input.Body? = nil + path: Operations.ReposAddCollaborator.Input.Path, + headers: Operations.ReposAddCollaborator.Input.Headers = .init(), + body: Operations.ReposAddCollaborator.Input.Body? = nil ) { self.path = path self.headers = headers @@ -36593,12 +36722,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.repository_hyphen_invitation) + case json(Components.Schemas.RepositoryInvitation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_invitation { + public var json: Components.Schemas.RepositoryInvitation { get throws { switch self { case let .json(body): @@ -36608,12 +36737,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_add_hyphen_collaborator.Output.Created.Body + public var body: Operations.ReposAddCollaborator.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_add_hyphen_collaborator.Output.Created.Body) { + public init(body: Operations.ReposAddCollaborator.Output.Created.Body) { self.body = body } } @@ -36622,12 +36751,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_add_hyphen_collaborator.Output.Created) + case created(Operations.ReposAddCollaborator.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_add_hyphen_collaborator.Output.Created { + public var created: Operations.ReposAddCollaborator.Output.Created { get throws { switch self { case let .created(response): @@ -36652,12 +36781,23 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_add_hyphen_collaborator.Output.NoContent) + case noContent(Operations.ReposAddCollaborator.Output.NoContent) + /// Response when: + /// - an existing collaborator is added as a collaborator + /// - an organization member is added as an individual collaborator + /// - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_add_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.ReposAddCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -36675,12 +36815,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -36698,12 +36838,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/put(repos/add-collaborator)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -36774,7 +36914,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/collaborators/{username}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)`. - public enum repos_sol_remove_hyphen_collaborator { + public enum ReposRemoveCollaborator { public static let id: Swift.String = "repos/remove-collaborator" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/DELETE/path`. @@ -36782,15 +36922,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: @@ -36798,36 +36938,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - username: Components.Parameters.username + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + username: Components.Parameters.Username ) { self.owner = owner self.repo = repo self.username = username } } - public var path: Operations.repos_sol_remove_hyphen_collaborator.Input.Path + public var path: Operations.ReposRemoveCollaborator.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_remove_hyphen_collaborator.Input.Headers + public var headers: Operations.ReposRemoveCollaborator.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_remove_hyphen_collaborator.Input.Path, - headers: Operations.repos_sol_remove_hyphen_collaborator.Input.Headers = .init() + path: Operations.ReposRemoveCollaborator.Input.Path, + headers: Operations.ReposRemoveCollaborator.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -36843,12 +36983,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_remove_hyphen_collaborator.Output.NoContent) + case noContent(Operations.ReposRemoveCollaborator.Output.NoContent) + /// No Content when collaborator was removed from the repository. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_remove_hyphen_collaborator.Output.NoContent { + public var noContent: Operations.ReposRemoveCollaborator.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -36866,12 +37014,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -36889,12 +37037,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/delete(repos/remove-collaborator)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -36950,7 +37098,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/collaborators/{username}/permission`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)`. - public enum repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level { + public enum ReposGetCollaboratorPermissionLevel { public static let id: Swift.String = "repos/get-collaborator-permission-level" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/path`. @@ -36958,15 +37106,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: @@ -36974,36 +37122,36 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - username: Components.Parameters.username + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + username: Components.Parameters.Username ) { self.owner = owner self.repo = repo self.username = username } } - public var path: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Path + public var path: Operations.ReposGetCollaboratorPermissionLevel.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Headers + public var headers: Operations.ReposGetCollaboratorPermissionLevel.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Path, - headers: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Input.Headers = .init() + path: Operations.ReposGetCollaboratorPermissionLevel.Input.Path, + headers: Operations.ReposGetCollaboratorPermissionLevel.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -37014,12 +37162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/collaborators/{username}/permission/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_collaborator_hyphen_permission) + case json(Components.Schemas.RepositoryCollaboratorPermission) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_collaborator_hyphen_permission { + public var json: Components.Schemas.RepositoryCollaboratorPermission { get throws { switch self { case let .json(body): @@ -37029,12 +37177,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output.Ok.Body + public var body: Operations.ReposGetCollaboratorPermissionLevel.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output.Ok.Body) { + public init(body: Operations.ReposGetCollaboratorPermissionLevel.Output.Ok.Body) { self.body = body } } @@ -37043,12 +37191,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output.Ok) + case ok(Operations.ReposGetCollaboratorPermissionLevel.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_collaborator_hyphen_permission_hyphen_level.Output.Ok { + public var ok: Operations.ReposGetCollaboratorPermissionLevel.Output.Ok { get throws { switch self { case let .ok(response): @@ -37066,12 +37214,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/collaborators/{username}/permission/get(repos/get-collaborator-permission-level)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -37128,7 +37276,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/get(repos/list-commit-comments-for-repo)`. - public enum repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo { + public enum ReposListCommitCommentsForRepo { public static let id: Swift.String = "repos/list-commit-comments-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/path`. @@ -37136,61 +37284,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ReposListCommitCommentsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.ReposListCommitCommentsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ReposListCommitCommentsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -37198,9 +37346,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Path, - query: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ReposListCommitCommentsForRepo.Input.Path, + query: Operations.ReposListCommitCommentsForRepo.Input.Query = .init(), + headers: Operations.ReposListCommitCommentsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -37212,26 +37360,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers + public var headers: Operations.ReposListCommitCommentsForRepo.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.commit_hyphen_comment]) + case json([Components.Schemas.CommitComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.commit_hyphen_comment] { + public var json: [Components.Schemas.CommitComment] { get throws { switch self { case let .json(body): @@ -37241,15 +37389,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ReposListCommitCommentsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok.Body + headers: Operations.ReposListCommitCommentsForRepo.Output.Ok.Headers = .init(), + body: Operations.ReposListCommitCommentsForRepo.Output.Ok.Body ) { self.headers = headers self.body = body @@ -37260,12 +37408,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/get(repos/list-commit-comments-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ReposListCommitCommentsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_commit_hyphen_comments_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ReposListCommitCommentsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -37322,7 +37470,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)`. - public enum repos_sol_get_hyphen_commit_hyphen_comment { + public enum ReposGetCommitComment { public static let id: Swift.String = "repos/get-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/path`. @@ -37330,52 +37478,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReposGetCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReposGetCommitComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Input.Headers = .init() + path: Operations.ReposGetCommitComment.Input.Path, + headers: Operations.ReposGetCommitComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -37386,12 +37534,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.commit_hyphen_comment) + case json(Components.Schemas.CommitComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit_hyphen_comment { + public var json: Components.Schemas.CommitComment { get throws { switch self { case let .json(body): @@ -37401,12 +37549,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output.Ok.Body + public var body: Operations.ReposGetCommitComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.ReposGetCommitComment.Output.Ok.Body) { self.body = body } } @@ -37415,12 +37563,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output.Ok) + case ok(Operations.ReposGetCommitComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_commit_hyphen_comment.Output.Ok { + public var ok: Operations.ReposGetCommitComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -37438,12 +37586,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/get(repos/get-commit-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -37500,7 +37648,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)`. - public enum repos_sol_update_hyphen_commit_hyphen_comment { + public enum ReposUpdateCommitComment { public static let id: Swift.String = "repos/update-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/path`. @@ -37508,53 +37656,53 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReposUpdateCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReposUpdateCommitComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The contents of the comment /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The contents of the comment @@ -37566,9 +37714,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.ReposUpdateCommitComment.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Body + public var body: Operations.ReposUpdateCommitComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -37576,9 +37724,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Input.Body + path: Operations.ReposUpdateCommitComment.Input.Path, + headers: Operations.ReposUpdateCommitComment.Input.Headers = .init(), + body: Operations.ReposUpdateCommitComment.Input.Body ) { self.path = path self.headers = headers @@ -37590,12 +37738,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.commit_hyphen_comment) + case json(Components.Schemas.CommitComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit_hyphen_comment { + public var json: Components.Schemas.CommitComment { get throws { switch self { case let .json(body): @@ -37605,12 +37753,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output.Ok.Body + public var body: Operations.ReposUpdateCommitComment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output.Ok.Body) { + public init(body: Operations.ReposUpdateCommitComment.Output.Ok.Body) { self.body = body } } @@ -37619,12 +37767,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output.Ok) + case ok(Operations.ReposUpdateCommitComment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_commit_hyphen_comment.Output.Ok { + public var ok: Operations.ReposUpdateCommitComment.Output.Ok { get throws { switch self { case let .ok(response): @@ -37642,12 +37790,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/patch(repos/update-commit-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -37697,7 +37845,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)`. - public enum repos_sol_delete_hyphen_commit_hyphen_comment { + public enum ReposDeleteCommitComment { public static let id: Swift.String = "repos/delete-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/DELETE/path`. @@ -37705,52 +37853,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/DELETE/path/comment_id`. - public var comment_id: Components.Parameters.comment_hyphen_id + public var commentId: Components.Parameters.CommentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - comment_id: The unique identifier of the comment. + /// - commentId: The unique identifier of the comment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - comment_id: Components.Parameters.comment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commentId: Components.Parameters.CommentId ) { self.owner = owner self.repo = repo - self.comment_id = comment_id + self.commentId = commentId } } - public var path: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReposDeleteCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/comments/{comment_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReposDeleteCommitComment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Input.Headers = .init() + path: Operations.ReposDeleteCommitComment.Input.Path, + headers: Operations.ReposDeleteCommitComment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -37766,12 +37914,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Output.NoContent) + case noContent(Operations.ReposDeleteCommitComment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_commit_hyphen_comment.Output.NoContent { + public var noContent: Operations.ReposDeleteCommitComment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -37789,12 +37945,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/comments/{comment_id}/delete(repos/delete-commit-comment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -37872,7 +38028,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)`. - public enum repos_sol_list_hyphen_commits { + public enum ReposListCommits { public static let id: Swift.String = "repos/list-commits" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/path`. @@ -37880,25 +38036,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_commits.Input.Path + public var path: Operations.ReposListCommits.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query`. public struct Query: Sendable, Hashable { /// SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`). @@ -37928,11 +38084,11 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -37942,7 +38098,7 @@ public enum Operations { /// - committer: GitHub username or email address to use to filter by commit committer. /// - since: Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned. /// - until: Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned. - /// - 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)." + /// - perPage: 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)." public init( sha: Swift.String? = nil, @@ -37951,8 +38107,8 @@ public enum Operations { committer: Swift.String? = nil, since: Foundation.Date? = nil, until: Foundation.Date? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sha = sha self.path = path @@ -37960,23 +38116,23 @@ public enum Operations { self.committer = committer self.since = since self.until = until - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_commits.Input.Query + public var query: Operations.ReposListCommits.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_commits.Input.Headers + public var headers: Operations.ReposListCommits.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -37984,9 +38140,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_commits.Input.Path, - query: Operations.repos_sol_list_hyphen_commits.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commits.Input.Headers = .init() + path: Operations.ReposListCommits.Input.Path, + query: Operations.ReposListCommits.Input.Query = .init(), + headers: Operations.ReposListCommits.Input.Headers = .init() ) { self.path = path self.query = query @@ -37998,26 +38154,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_commits.Output.Ok.Headers + public var headers: Operations.ReposListCommits.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/GET/responses/200/content/application\/json`. - case json([Components.Schemas.commit]) + case json([Components.Schemas.Commit]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.commit] { + public var json: [Components.Schemas.Commit] { get throws { switch self { case let .json(body): @@ -38027,15 +38183,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_commits.Output.Ok.Body + public var body: Operations.ReposListCommits.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_commits.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_commits.Output.Ok.Body + headers: Operations.ReposListCommits.Output.Ok.Headers = .init(), + body: Operations.ReposListCommits.Output.Ok.Body ) { self.headers = headers self.body = body @@ -38046,12 +38202,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_commits.Output.Ok) + case ok(Operations.ReposListCommits.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_commits.Output.Ok { + public var ok: Operations.ReposListCommits.Output.Ok { get throws { switch self { case let .ok(response): @@ -38069,12 +38225,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -38092,12 +38248,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -38115,12 +38271,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -38138,12 +38294,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/get(repos/list-commits)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -38163,14 +38319,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -38181,14 +38337,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -38201,7 +38357,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)`. - public enum repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit { + public enum ReposListBranchesForHeadCommit { public static let id: Swift.String = "repos/list-branches-for-head-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/path`. @@ -38209,52 +38365,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA of the commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/path/commit_sha`. - public var commit_sha: Components.Parameters.commit_hyphen_sha + public var commitSha: Components.Parameters.CommitSha /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - commit_sha: The SHA of the commit. + /// - commitSha: The SHA of the commit. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - commit_sha: Components.Parameters.commit_hyphen_sha + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commitSha: Components.Parameters.CommitSha ) { self.owner = owner self.repo = repo - self.commit_sha = commit_sha + self.commitSha = commitSha } } - public var path: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Path + public var path: Operations.ReposListBranchesForHeadCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Headers + public var headers: Operations.ReposListBranchesForHeadCommit.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Path, - headers: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Input.Headers = .init() + path: Operations.ReposListBranchesForHeadCommit.Input.Path, + headers: Operations.ReposListBranchesForHeadCommit.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -38265,12 +38421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/GET/responses/200/content/application\/json`. - case json([Components.Schemas.branch_hyphen_short]) + case json([Components.Schemas.BranchShort]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.branch_hyphen_short] { + public var json: [Components.Schemas.BranchShort] { get throws { switch self { case let .json(body): @@ -38280,12 +38436,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output.Ok.Body + public var body: Operations.ReposListBranchesForHeadCommit.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output.Ok.Body) { + public init(body: Operations.ReposListBranchesForHeadCommit.Output.Ok.Body) { self.body = body } } @@ -38294,12 +38450,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output.Ok) + case ok(Operations.ReposListBranchesForHeadCommit.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_branches_hyphen_for_hyphen_head_hyphen_commit.Output.Ok { + public var ok: Operations.ReposListBranchesForHeadCommit.Output.Ok { get throws { switch self { case let .ok(response): @@ -38317,12 +38473,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -38340,12 +38496,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head/get(repos/list-branches-for-head-commit)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -38402,7 +38558,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/get(repos/list-comments-for-commit)`. - public enum repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit { + public enum ReposListCommentsForCommit { public static let id: Swift.String = "repos/list-comments-for-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/path`. @@ -38410,68 +38566,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA of the commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/path/commit_sha`. - public var commit_sha: Components.Parameters.commit_hyphen_sha + public var commitSha: Components.Parameters.CommitSha /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - commit_sha: The SHA of the commit. + /// - commitSha: The SHA of the commit. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - commit_sha: Components.Parameters.commit_hyphen_sha + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commitSha: Components.Parameters.CommitSha ) { self.owner = owner self.repo = repo - self.commit_sha = commit_sha + self.commitSha = commitSha } } - public var path: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Path + public var path: Operations.ReposListCommentsForCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Query + public var query: Operations.ReposListCommentsForCommit.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Headers + public var headers: Operations.ReposListCommentsForCommit.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -38479,9 +38635,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Path, - query: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Input.Headers = .init() + path: Operations.ReposListCommentsForCommit.Input.Path, + query: Operations.ReposListCommentsForCommit.Input.Query = .init(), + headers: Operations.ReposListCommentsForCommit.Input.Headers = .init() ) { self.path = path self.query = query @@ -38493,26 +38649,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Headers + public var headers: Operations.ReposListCommentsForCommit.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.commit_hyphen_comment]) + case json([Components.Schemas.CommitComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.commit_hyphen_comment] { + public var json: [Components.Schemas.CommitComment] { get throws { switch self { case let .json(body): @@ -38522,15 +38678,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Body + public var body: Operations.ReposListCommentsForCommit.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok.Body + headers: Operations.ReposListCommentsForCommit.Output.Ok.Headers = .init(), + body: Operations.ReposListCommentsForCommit.Output.Ok.Body ) { self.headers = headers self.body = body @@ -38541,12 +38697,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/get(repos/list-comments-for-commit)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok) + case ok(Operations.ReposListCommentsForCommit.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_comments_hyphen_for_hyphen_commit.Output.Ok { + public var ok: Operations.ReposListCommentsForCommit.Output.Ok { get throws { switch self { case let .ok(response): @@ -38605,7 +38761,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)`. - public enum repos_sol_create_hyphen_commit_hyphen_comment { + public enum ReposCreateCommitComment { public static let id: Swift.String = "repos/create-commit-comment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/path`. @@ -38613,48 +38769,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA of the commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/path/commit_sha`. - public var commit_sha: Components.Parameters.commit_hyphen_sha + public var commitSha: Components.Parameters.CommitSha /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - commit_sha: The SHA of the commit. + /// - commitSha: The SHA of the commit. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - commit_sha: Components.Parameters.commit_hyphen_sha + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commitSha: Components.Parameters.CommitSha ) { self.owner = owner self.repo = repo - self.commit_sha = commit_sha + self.commitSha = commitSha } } - public var path: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Path + public var path: Operations.ReposCreateCommitComment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Headers + public var headers: Operations.ReposCreateCommitComment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The contents of the comment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/json/body`. @@ -38671,7 +38827,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/json/line`. public var line: Swift.Int? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The contents of the comment. @@ -38697,9 +38853,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Body.jsonPayload) + case json(Operations.ReposCreateCommitComment.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Body + public var body: Operations.ReposCreateCommitComment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -38707,9 +38863,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Input.Body + path: Operations.ReposCreateCommitComment.Input.Path, + headers: Operations.ReposCreateCommitComment.Input.Headers = .init(), + body: Operations.ReposCreateCommitComment.Input.Body ) { self.path = path self.headers = headers @@ -38721,26 +38877,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Headers + public var headers: Operations.ReposCreateCommitComment.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.commit_hyphen_comment) + case json(Components.Schemas.CommitComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit_hyphen_comment { + public var json: Components.Schemas.CommitComment { get throws { switch self { case let .json(body): @@ -38750,15 +38906,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Body + public var body: Operations.ReposCreateCommitComment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created.Body + headers: Operations.ReposCreateCommitComment.Output.Created.Headers = .init(), + body: Operations.ReposCreateCommitComment.Output.Created.Body ) { self.headers = headers self.body = body @@ -38769,12 +38925,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created) + case created(Operations.ReposCreateCommitComment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_commit_hyphen_comment.Output.Created { + public var created: Operations.ReposCreateCommitComment.Output.Created { get throws { switch self { case let .created(response): @@ -38792,12 +38948,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -38815,12 +38971,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/comments/post(repos/create-commit-comment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -38872,7 +39028,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)`. - public enum repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit { + public enum ReposListPullRequestsAssociatedWithCommit { public static let id: Swift.String = "repos/list-pull-requests-associated-with-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/path`. @@ -38880,68 +39036,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The SHA of the commit. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/path/commit_sha`. - public var commit_sha: Components.Parameters.commit_hyphen_sha + public var commitSha: Components.Parameters.CommitSha /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - commit_sha: The SHA of the commit. + /// - commitSha: The SHA of the commit. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - commit_sha: Components.Parameters.commit_hyphen_sha + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + commitSha: Components.Parameters.CommitSha ) { self.owner = owner self.repo = repo - self.commit_sha = commit_sha + self.commitSha = commitSha } } - public var path: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Path + public var path: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Query + public var query: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Headers + public var headers: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -38949,9 +39105,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Path, - query: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Input.Headers = .init() + path: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Path, + query: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Query = .init(), + headers: Operations.ReposListPullRequestsAssociatedWithCommit.Input.Headers = .init() ) { self.path = path self.query = query @@ -38963,26 +39119,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Headers + public var headers: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/pulls/GET/responses/200/content/application\/json`. - case json([Components.Schemas.pull_hyphen_request_hyphen_simple]) + case json([Components.Schemas.PullRequestSimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.pull_hyphen_request_hyphen_simple] { + public var json: [Components.Schemas.PullRequestSimple] { get throws { switch self { case let .json(body): @@ -38992,15 +39148,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Body + public var body: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok.Body + headers: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Headers = .init(), + body: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok.Body ) { self.headers = headers self.body = body @@ -39011,12 +39167,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok) + case ok(Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_pull_hyphen_requests_hyphen_associated_hyphen_with_hyphen_commit.Output.Ok { + public var ok: Operations.ReposListPullRequestsAssociatedWithCommit.Output.Ok { get throws { switch self { case let .ok(response): @@ -39034,12 +39190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{commit_sha}/pulls/get(repos/list-pull-requests-associated-with-commit)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -39128,7 +39284,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)`. - public enum repos_sol_get_hyphen_commit { + public enum ReposGetCommit { public static let id: Swift.String = "repos/get-commit" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/path`. @@ -39136,15 +39292,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/path/ref`. - public var ref: Components.Parameters.commit_hyphen_ref + public var ref: Components.Parameters.CommitRef /// Creates a new `Path`. /// /// - Parameters: @@ -39152,52 +39308,52 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.commit_hyphen_ref + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.CommitRef ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.repos_sol_get_hyphen_commit.Input.Path + public var path: Operations.ReposGetCommit.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.repos_sol_get_hyphen_commit.Input.Query + public var query: Operations.ReposGetCommit.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_commit.Input.Headers + public var headers: Operations.ReposGetCommit.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -39205,9 +39361,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_commit.Input.Path, - query: Operations.repos_sol_get_hyphen_commit.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_commit.Input.Headers = .init() + path: Operations.ReposGetCommit.Input.Path, + query: Operations.ReposGetCommit.Input.Query = .init(), + headers: Operations.ReposGetCommit.Input.Headers = .init() ) { self.path = path self.query = query @@ -39219,12 +39375,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.commit) + case json(Components.Schemas.Commit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit { + public var json: Components.Schemas.Commit { get throws { switch self { case let .json(body): @@ -39234,12 +39390,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_commit.Output.Ok.Body + public var body: Operations.ReposGetCommit.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_commit.Output.Ok.Body) { + public init(body: Operations.ReposGetCommit.Output.Ok.Body) { self.body = body } } @@ -39248,12 +39404,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_commit.Output.Ok) + case ok(Operations.ReposGetCommit.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_commit.Output.Ok { + public var ok: Operations.ReposGetCommit.Output.Ok { get throws { switch self { case let .ok(response): @@ -39271,12 +39427,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -39294,12 +39450,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -39317,12 +39473,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -39340,12 +39496,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -39363,12 +39519,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/get(repos/get-commit)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -39425,7 +39581,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/status`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)`. - public enum repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref { + public enum ReposGetCombinedStatusForRef { public static let id: Swift.String = "repos/get-combined-status-for-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/path`. @@ -39433,15 +39589,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/path/ref`. - public var ref: Components.Parameters.commit_hyphen_ref + public var ref: Components.Parameters.CommitRef /// Creates a new `Path`. /// /// - Parameters: @@ -39449,52 +39605,52 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.commit_hyphen_ref + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.CommitRef ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Path + public var path: Operations.ReposGetCombinedStatusForRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Query + public var query: Operations.ReposGetCombinedStatusForRef.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Headers + public var headers: Operations.ReposGetCombinedStatusForRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -39502,9 +39658,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Path, - query: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Input.Headers = .init() + path: Operations.ReposGetCombinedStatusForRef.Input.Path, + query: Operations.ReposGetCombinedStatusForRef.Input.Query = .init(), + headers: Operations.ReposGetCombinedStatusForRef.Input.Headers = .init() ) { self.path = path self.query = query @@ -39516,12 +39672,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/status/GET/responses/200/content/application\/json`. - case json(Components.Schemas.combined_hyphen_commit_hyphen_status) + case json(Components.Schemas.CombinedCommitStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.combined_hyphen_commit_hyphen_status { + public var json: Components.Schemas.CombinedCommitStatus { get throws { switch self { case let .json(body): @@ -39531,12 +39687,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output.Ok.Body + public var body: Operations.ReposGetCombinedStatusForRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output.Ok.Body) { + public init(body: Operations.ReposGetCombinedStatusForRef.Output.Ok.Body) { self.body = body } } @@ -39545,12 +39701,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output.Ok) + case ok(Operations.ReposGetCombinedStatusForRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_combined_hyphen_status_hyphen_for_hyphen_ref.Output.Ok { + public var ok: Operations.ReposGetCombinedStatusForRef.Output.Ok { get throws { switch self { case let .ok(response): @@ -39568,12 +39724,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/status/get(repos/get-combined-status-for-ref)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -39625,7 +39781,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/commits/{ref}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)`. - public enum repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref { + public enum ReposListCommitStatusesForRef { public static let id: Swift.String = "repos/list-commit-statuses-for-ref" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/path`. @@ -39633,15 +39789,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/path/ref`. - public var ref: Components.Parameters.commit_hyphen_ref + public var ref: Components.Parameters.CommitRef /// Creates a new `Path`. /// /// - Parameters: @@ -39649,52 +39805,52 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ref: Components.Parameters.commit_hyphen_ref + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ref: Components.Parameters.CommitRef ) { self.owner = owner self.repo = repo self.ref = ref } } - public var path: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Path + public var path: Operations.ReposListCommitStatusesForRef.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Query + public var query: Operations.ReposListCommitStatusesForRef.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Headers + public var headers: Operations.ReposListCommitStatusesForRef.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -39702,9 +39858,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Path, - query: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Input.Headers = .init() + path: Operations.ReposListCommitStatusesForRef.Input.Path, + query: Operations.ReposListCommitStatusesForRef.Input.Query = .init(), + headers: Operations.ReposListCommitStatusesForRef.Input.Headers = .init() ) { self.path = path self.query = query @@ -39716,26 +39872,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Headers + public var headers: Operations.ReposListCommitStatusesForRef.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/statuses/GET/responses/200/content/application\/json`. - case json([Components.Schemas.status]) + case json([Components.Schemas.Status]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.status] { + public var json: [Components.Schemas.Status] { get throws { switch self { case let .json(body): @@ -39745,15 +39901,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Body + public var body: Operations.ReposListCommitStatusesForRef.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok.Body + headers: Operations.ReposListCommitStatusesForRef.Output.Ok.Headers = .init(), + body: Operations.ReposListCommitStatusesForRef.Output.Ok.Body ) { self.headers = headers self.body = body @@ -39764,12 +39920,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok) + case ok(Operations.ReposListCommitStatusesForRef.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_commit_hyphen_statuses_hyphen_for_hyphen_ref.Output.Ok { + public var ok: Operations.ReposListCommitStatusesForRef.Output.Ok { get throws { switch self { case let .ok(response): @@ -39787,12 +39943,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/commits/{ref}/statuses/get(repos/list-commit-statuses-for-ref)/responses/301`. /// /// HTTP response code: `301 movedPermanently`. - case movedPermanently(Components.Responses.moved_permanently) + case movedPermanently(Components.Responses.MovedPermanently) /// The associated value of the enum case if `self` is `.movedPermanently`. /// /// - Throws: An error if `self` is not `.movedPermanently`. /// - SeeAlso: `.movedPermanently`. - public var movedPermanently: Components.Responses.moved_permanently { + public var movedPermanently: Components.Responses.MovedPermanently { get throws { switch self { case let .movedPermanently(response): @@ -39852,7 +40008,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/community/profile`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/community/profile/get(repos/get-community-profile-metrics)`. - public enum repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics { + public enum ReposGetCommunityProfileMetrics { public static let id: Swift.String = "repos/get-community-profile-metrics" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/path`. @@ -39860,45 +40016,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Path + public var path: Operations.ReposGetCommunityProfileMetrics.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Headers + public var headers: Operations.ReposGetCommunityProfileMetrics.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Path, - headers: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Input.Headers = .init() + path: Operations.ReposGetCommunityProfileMetrics.Input.Path, + headers: Operations.ReposGetCommunityProfileMetrics.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -39909,12 +40065,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/community/profile/GET/responses/200/content/application\/json`. - case json(Components.Schemas.community_hyphen_profile) + case json(Components.Schemas.CommunityProfile) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.community_hyphen_profile { + public var json: Components.Schemas.CommunityProfile { get throws { switch self { case let .json(body): @@ -39924,12 +40080,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output.Ok.Body + public var body: Operations.ReposGetCommunityProfileMetrics.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output.Ok.Body) { + public init(body: Operations.ReposGetCommunityProfileMetrics.Output.Ok.Body) { self.body = body } } @@ -39938,12 +40094,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/community/profile/get(repos/get-community-profile-metrics)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output.Ok) + case ok(Operations.ReposGetCommunityProfileMetrics.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_community_hyphen_profile_hyphen_metrics.Output.Ok { + public var ok: Operations.ReposGetCommunityProfileMetrics.Output.Ok { get throws { switch self { case let .ok(response): @@ -40043,7 +40199,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/compare/{basehead}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)`. - public enum repos_sol_compare_hyphen_commits { + public enum ReposCompareCommits { public static let id: Swift.String = "repos/compare-commits" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/path`. @@ -40051,11 +40207,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The base branch and head branch to compare. This parameter expects the format `BASE...HEAD`. Both must be branch names in `repo`. To compare with a branch that exists in a different repository in the same network as `repo`, the `basehead` parameter expects the format `USERNAME:BASE...USERNAME:HEAD`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/path/basehead`. @@ -40067,8 +40223,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - basehead: The base branch and head branch to compare. This parameter expects the format `BASE...HEAD`. Both must be branch names in `repo`. To compare with a branch that exists in a different repository in the same network as `repo`, the `basehead` parameter expects the format `USERNAME:BASE...USERNAME:HEAD`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, basehead: Swift.String ) { self.owner = owner @@ -40076,43 +40232,43 @@ public enum Operations { self.basehead = basehead } } - public var path: Operations.repos_sol_compare_hyphen_commits.Input.Path + public var path: Operations.ReposCompareCommits.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.repos_sol_compare_hyphen_commits.Input.Query + public var query: Operations.ReposCompareCommits.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_compare_hyphen_commits.Input.Headers + public var headers: Operations.ReposCompareCommits.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -40120,9 +40276,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_compare_hyphen_commits.Input.Path, - query: Operations.repos_sol_compare_hyphen_commits.Input.Query = .init(), - headers: Operations.repos_sol_compare_hyphen_commits.Input.Headers = .init() + path: Operations.ReposCompareCommits.Input.Path, + query: Operations.ReposCompareCommits.Input.Query = .init(), + headers: Operations.ReposCompareCommits.Input.Headers = .init() ) { self.path = path self.query = query @@ -40134,12 +40290,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.commit_hyphen_comparison) + case json(Components.Schemas.CommitComparison) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit_hyphen_comparison { + public var json: Components.Schemas.CommitComparison { get throws { switch self { case let .json(body): @@ -40149,12 +40305,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_compare_hyphen_commits.Output.Ok.Body + public var body: Operations.ReposCompareCommits.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_compare_hyphen_commits.Output.Ok.Body) { + public init(body: Operations.ReposCompareCommits.Output.Ok.Body) { self.body = body } } @@ -40163,12 +40319,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_compare_hyphen_commits.Output.Ok) + case ok(Operations.ReposCompareCommits.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_compare_hyphen_commits.Output.Ok { + public var ok: Operations.ReposCompareCommits.Output.Ok { get throws { switch self { case let .ok(response): @@ -40186,12 +40342,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -40209,12 +40365,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -40232,12 +40388,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/compare/{basehead}/get(repos/compare-commits)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -40311,7 +40467,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)`. - public enum repos_sol_get_hyphen_content { + public enum ReposGetContent { public static let id: Swift.String = "repos/get-content" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/path`. @@ -40319,11 +40475,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// path parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/path/path`. @@ -40335,8 +40491,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - path: path parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, path: Swift.String ) { self.owner = owner @@ -40344,7 +40500,7 @@ public enum Operations { self.path = path } } - public var path: Operations.repos_sol_get_hyphen_content.Input.Path + public var path: Operations.ReposGetContent.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/query`. public struct Query: Sendable, Hashable { /// The name of the commit/branch/tag. Default: the repository’s default branch. @@ -40359,19 +40515,19 @@ public enum Operations { self.ref = ref } } - public var query: Operations.repos_sol_get_hyphen_content.Input.Query + public var query: Operations.ReposGetContent.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_content.Input.Headers + public var headers: Operations.ReposGetContent.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -40379,9 +40535,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_content.Input.Path, - query: Operations.repos_sol_get_hyphen_content.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_content.Input.Headers = .init() + path: Operations.ReposGetContent.Input.Path, + query: Operations.ReposGetContent.Input.Query = .init(), + headers: Operations.ReposGetContent.Input.Headers = .init() ) { self.path = path self.query = query @@ -40393,27 +40549,27 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/GET/responses/200/content/application\/vnd.github.object`. - case application_vnd_period_github_period_object(OpenAPIRuntime.HTTPBody) - /// The associated value of the enum case if `self` is `.application_vnd_period_github_period_object`. + case applicationVnd_github_object(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_object`. /// - /// - Throws: An error if `self` is not `.application_vnd_period_github_period_object`. - /// - SeeAlso: `.application_vnd_period_github_period_object`. - public var application_vnd_period_github_period_object: OpenAPIRuntime.HTTPBody { + /// - Throws: An error if `self` is not `.applicationVnd_github_object`. + /// - SeeAlso: `.applicationVnd_github_object`. + public var applicationVnd_github_object: OpenAPIRuntime.HTTPBody { get throws { switch self { - case let .application_vnd_period_github_period_object(body): + case let .applicationVnd_github_object(body): return body } } } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_content.Output.Ok.Body + public var body: Operations.ReposGetContent.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_content.Output.Ok.Body) { + public init(body: Operations.ReposGetContent.Output.Ok.Body) { self.body = body } } @@ -40422,12 +40578,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_content.Output.Ok) + case ok(Operations.ReposGetContent.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_content.Output.Ok { + public var ok: Operations.ReposGetContent.Output.Ok { get throws { switch self { case let .ok(response): @@ -40445,12 +40601,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -40468,12 +40624,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -40491,12 +40647,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Components.Responses.found) + case found(Components.Responses.Found) + /// Found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/302`. + /// + /// HTTP response code: `302 found`. + public static var found: Self { + .found(.init()) + } /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Components.Responses.found { + public var found: Components.Responses.Found { get throws { switch self { case let .found(response): @@ -40514,12 +40678,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/get(repos/get-content)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -40538,13 +40710,13 @@ public enum Operations { case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) } @frozen public enum AcceptableContentType: AcceptableProtocol { - case application_vnd_period_github_period_object + case applicationVnd_github_object case json case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/vnd.github.object": - self = .application_vnd_period_github_period_object + self = .applicationVnd_github_object case "application/json": self = .json default: @@ -40555,7 +40727,7 @@ public enum Operations { switch self { case let .other(string): return string - case .application_vnd_period_github_period_object: + case .applicationVnd_github_object: return "application/vnd.github.object" case .json: return "application/json" @@ -40563,7 +40735,7 @@ public enum Operations { } public static var allCases: [Self] { [ - .application_vnd_period_github_period_object, + .applicationVnd_github_object, .json ] } @@ -40580,7 +40752,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)`. - public enum repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents { + public enum ReposCreateOrUpdateFileContents { public static let id: Swift.String = "repos/create-or-update-file-contents" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/path`. @@ -40588,11 +40760,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// path parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/path/path`. @@ -40604,8 +40776,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - path: path parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, path: Swift.String ) { self.owner = owner @@ -40613,23 +40785,23 @@ public enum Operations { self.path = path } } - public var path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Path + public var path: Operations.ReposCreateOrUpdateFileContents.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Headers + public var headers: Operations.ReposCreateOrUpdateFileContents.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/message`. @@ -40649,7 +40821,7 @@ public enum Operations { /// The person that committed the file. Default: the authenticated user. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/committer/name`. @@ -40660,7 +40832,7 @@ public enum Operations { public var email: Swift.String /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/committer/date`. public var date: Swift.String? - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - name: The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. @@ -40684,11 +40856,11 @@ public enum Operations { /// The person that committed the file. Default: the authenticated user. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/committer`. - public var committer: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body.jsonPayload.committerPayload? + public var committer: Operations.ReposCreateOrUpdateFileContents.Input.Body.JsonPayload.CommitterPayload? /// The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/author/name`. @@ -40699,7 +40871,7 @@ public enum Operations { public var email: Swift.String /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/author/date`. public var date: Swift.String? - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. @@ -40723,8 +40895,8 @@ public enum Operations { /// The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/json/author`. - public var author: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body.jsonPayload.authorPayload? - /// Creates a new `jsonPayload`. + public var author: Operations.ReposCreateOrUpdateFileContents.Input.Body.JsonPayload.AuthorPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: The commit message. @@ -40738,8 +40910,8 @@ public enum Operations { content: Swift.String, sha: Swift.String? = nil, branch: Swift.String? = nil, - committer: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body.jsonPayload.committerPayload? = nil, - author: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body.jsonPayload.authorPayload? = nil + committer: Operations.ReposCreateOrUpdateFileContents.Input.Body.JsonPayload.CommitterPayload? = nil, + author: Operations.ReposCreateOrUpdateFileContents.Input.Body.JsonPayload.AuthorPayload? = nil ) { self.message = message self.content = content @@ -40758,9 +40930,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body.jsonPayload) + case json(Operations.ReposCreateOrUpdateFileContents.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body + public var body: Operations.ReposCreateOrUpdateFileContents.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -40768,9 +40940,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Input.Body + path: Operations.ReposCreateOrUpdateFileContents.Input.Path, + headers: Operations.ReposCreateOrUpdateFileContents.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateFileContents.Input.Body ) { self.path = path self.headers = headers @@ -40782,12 +40954,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.file_hyphen_commit) + case json(Components.Schemas.FileCommit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.file_hyphen_commit { + public var json: Components.Schemas.FileCommit { get throws { switch self { case let .json(body): @@ -40797,12 +40969,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Ok.Body + public var body: Operations.ReposCreateOrUpdateFileContents.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Ok.Body) { + public init(body: Operations.ReposCreateOrUpdateFileContents.Output.Ok.Body) { self.body = body } } @@ -40811,12 +40983,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Ok) + case ok(Operations.ReposCreateOrUpdateFileContents.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Ok { + public var ok: Operations.ReposCreateOrUpdateFileContents.Output.Ok { get throws { switch self { case let .ok(response): @@ -40833,12 +41005,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.file_hyphen_commit) + case json(Components.Schemas.FileCommit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.file_hyphen_commit { + public var json: Components.Schemas.FileCommit { get throws { switch self { case let .json(body): @@ -40848,12 +41020,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Created.Body + public var body: Operations.ReposCreateOrUpdateFileContents.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Created.Body) { + public init(body: Operations.ReposCreateOrUpdateFileContents.Output.Created.Body) { self.body = body } } @@ -40862,12 +41034,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Created) + case created(Operations.ReposCreateOrUpdateFileContents.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Created { + public var created: Operations.ReposCreateOrUpdateFileContents.Output.Created { get throws { switch self { case let .created(response): @@ -40885,12 +41057,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -40908,12 +41080,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -40930,21 +41102,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/409/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/409/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/409/content/json/case1`. - case basic_hyphen_error(Components.Schemas.basic_hyphen_error) + case BasicError(Components.Schemas.BasicError) /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/409/content/json/case2`. - case repository_hyphen_rule_hyphen_violation_hyphen_error(Components.Schemas.repository_hyphen_rule_hyphen_violation_hyphen_error) + case RepositoryRuleViolationError(Components.Schemas.RepositoryRuleViolationError) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .basic_hyphen_error(try .init(from: decoder)) + self = .BasicError(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .repository_hyphen_rule_hyphen_violation_hyphen_error(try .init(from: decoder)) + self = .RepositoryRuleViolationError(try .init(from: decoder)) return } catch { errors.append(error) @@ -40957,20 +41129,20 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { switch self { - case let .basic_hyphen_error(value): + case let .BasicError(value): try value.encode(to: encoder) - case let .repository_hyphen_rule_hyphen_violation_hyphen_error(value): + case let .RepositoryRuleViolationError(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/PUT/responses/409/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body.jsonPayload) + case json(Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body.jsonPayload { + public var json: Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -40980,12 +41152,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body + public var body: Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict.Body) { + public init(body: Operations.ReposCreateOrUpdateFileContents.Output.Conflict.Body) { self.body = body } } @@ -40994,12 +41166,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/put(repos/create-or-update-file-contents)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict) + case conflict(Operations.ReposCreateOrUpdateFileContents.Output.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_file_hyphen_contents.Output.Conflict { + public var conflict: Operations.ReposCreateOrUpdateFileContents.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -41058,7 +41230,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/contents/{path}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)`. - public enum repos_sol_delete_hyphen_file { + public enum ReposDeleteFile { public static let id: Swift.String = "repos/delete-file" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/path`. @@ -41066,11 +41238,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// path parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/path/path`. @@ -41082,8 +41254,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - path: path parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, path: Swift.String ) { self.owner = owner @@ -41091,23 +41263,23 @@ public enum Operations { self.path = path } } - public var path: Operations.repos_sol_delete_hyphen_file.Input.Path + public var path: Operations.ReposDeleteFile.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_file.Input.Headers + public var headers: Operations.ReposDeleteFile.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The commit message. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/message`. @@ -41123,7 +41295,7 @@ public enum Operations { /// object containing information about the committer. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/committer`. - public struct committerPayload: Codable, Hashable, Sendable { + public struct CommitterPayload: Codable, Hashable, Sendable { /// The name of the author (or committer) of the commit /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/committer/name`. @@ -41132,7 +41304,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/committer/email`. public var email: Swift.String? - /// Creates a new `committerPayload`. + /// Creates a new `CommitterPayload`. /// /// - Parameters: /// - name: The name of the author (or committer) of the commit @@ -41152,11 +41324,11 @@ public enum Operations { /// object containing information about the committer. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/committer`. - public var committer: Operations.repos_sol_delete_hyphen_file.Input.Body.jsonPayload.committerPayload? + public var committer: Operations.ReposDeleteFile.Input.Body.JsonPayload.CommitterPayload? /// object containing information about the author. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// The name of the author (or committer) of the commit /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/author/name`. @@ -41165,7 +41337,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/author/email`. public var email: Swift.String? - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: The name of the author (or committer) of the commit @@ -41185,8 +41357,8 @@ public enum Operations { /// object containing information about the author. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/json/author`. - public var author: Operations.repos_sol_delete_hyphen_file.Input.Body.jsonPayload.authorPayload? - /// Creates a new `jsonPayload`. + public var author: Operations.ReposDeleteFile.Input.Body.JsonPayload.AuthorPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: The commit message. @@ -41198,8 +41370,8 @@ public enum Operations { message: Swift.String, sha: Swift.String, branch: Swift.String? = nil, - committer: Operations.repos_sol_delete_hyphen_file.Input.Body.jsonPayload.committerPayload? = nil, - author: Operations.repos_sol_delete_hyphen_file.Input.Body.jsonPayload.authorPayload? = nil + committer: Operations.ReposDeleteFile.Input.Body.JsonPayload.CommitterPayload? = nil, + author: Operations.ReposDeleteFile.Input.Body.JsonPayload.AuthorPayload? = nil ) { self.message = message self.sha = sha @@ -41216,9 +41388,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/requestBody/content/application\/json`. - case json(Operations.repos_sol_delete_hyphen_file.Input.Body.jsonPayload) + case json(Operations.ReposDeleteFile.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_delete_hyphen_file.Input.Body + public var body: Operations.ReposDeleteFile.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -41226,9 +41398,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_delete_hyphen_file.Input.Path, - headers: Operations.repos_sol_delete_hyphen_file.Input.Headers = .init(), - body: Operations.repos_sol_delete_hyphen_file.Input.Body + path: Operations.ReposDeleteFile.Input.Path, + headers: Operations.ReposDeleteFile.Input.Headers = .init(), + body: Operations.ReposDeleteFile.Input.Body ) { self.path = path self.headers = headers @@ -41240,12 +41412,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contents/{path}/DELETE/responses/200/content/application\/json`. - case json(Components.Schemas.file_hyphen_commit) + case json(Components.Schemas.FileCommit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.file_hyphen_commit { + public var json: Components.Schemas.FileCommit { get throws { switch self { case let .json(body): @@ -41255,12 +41427,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_delete_hyphen_file.Output.Ok.Body + public var body: Operations.ReposDeleteFile.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_delete_hyphen_file.Output.Ok.Body) { + public init(body: Operations.ReposDeleteFile.Output.Ok.Body) { self.body = body } } @@ -41269,12 +41441,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_delete_hyphen_file.Output.Ok) + case ok(Operations.ReposDeleteFile.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_delete_hyphen_file.Output.Ok { + public var ok: Operations.ReposDeleteFile.Output.Ok { get throws { switch self { case let .ok(response): @@ -41292,12 +41464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -41315,12 +41487,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -41338,12 +41510,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -41361,12 +41533,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contents/{path}/delete(repos/delete-file)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -41418,7 +41590,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)`. - public enum repos_sol_list_hyphen_contributors { + public enum ReposListContributors { public static let id: Swift.String = "repos/list-contributors" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/path`. @@ -41426,25 +41598,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_contributors.Input.Path + public var path: Operations.ReposListContributors.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/query`. public struct Query: Sendable, Hashable { /// Set to `1` or `true` to include anonymous contributors in results. @@ -41454,40 +41626,40 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - anon: Set to `1` or `true` to include anonymous contributors in results. - /// - 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)." + /// - perPage: 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)." public init( anon: Swift.String? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.anon = anon - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_contributors.Input.Query + public var query: Operations.ReposListContributors.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_contributors.Input.Headers + public var headers: Operations.ReposListContributors.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -41495,9 +41667,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_contributors.Input.Path, - query: Operations.repos_sol_list_hyphen_contributors.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_contributors.Input.Headers = .init() + path: Operations.ReposListContributors.Input.Path, + query: Operations.ReposListContributors.Input.Query = .init(), + headers: Operations.ReposListContributors.Input.Headers = .init() ) { self.path = path self.query = query @@ -41509,26 +41681,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Headers + public var headers: Operations.ReposListContributors.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/contributors/GET/responses/200/content/application\/json`. - case json([Components.Schemas.contributor]) + case json([Components.Schemas.Contributor]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.contributor] { + public var json: [Components.Schemas.Contributor] { get throws { switch self { case let .json(body): @@ -41538,15 +41710,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Body + public var body: Operations.ReposListContributors.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_contributors.Output.Ok.Body + headers: Operations.ReposListContributors.Output.Ok.Headers = .init(), + body: Operations.ReposListContributors.Output.Ok.Body ) { self.headers = headers self.body = body @@ -41557,12 +41729,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_contributors.Output.Ok) + case ok(Operations.ReposListContributors.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_contributors.Output.Ok { + public var ok: Operations.ReposListContributors.Output.Ok { get throws { switch self { case let .ok(response): @@ -41584,12 +41756,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_list_hyphen_contributors.Output.NoContent) + case noContent(Operations.ReposListContributors.Output.NoContent) + /// Response if repository is empty + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_list_hyphen_contributors.Output.NoContent { + public var noContent: Operations.ReposListContributors.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -41607,12 +41787,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -41630,12 +41810,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/contributors/get(repos/list-contributors)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -41685,7 +41865,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/get(repos/list-deployments)`. - public enum repos_sol_list_hyphen_deployments { + public enum ReposListDeployments { public static let id: Swift.String = "repos/list-deployments" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/path`. @@ -41693,25 +41873,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_deployments.Input.Path + public var path: Operations.ReposListDeployments.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/query`. public struct Query: Sendable, Hashable { /// The SHA recorded at creation time. @@ -41733,11 +41913,11 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: @@ -41745,37 +41925,37 @@ public enum Operations { /// - ref: The name of the ref. This can be a branch, tag, or SHA. /// - task: The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). /// - environment: The name of the environment that was deployed to (e.g., `staging` or `production`). - /// - 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)." + /// - perPage: 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)." public init( sha: Swift.String? = nil, ref: Swift.String? = nil, task: Swift.String? = nil, environment: Swift.String? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sha = sha self.ref = ref self.task = task self.environment = environment - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_deployments.Input.Query + public var query: Operations.ReposListDeployments.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_deployments.Input.Headers + public var headers: Operations.ReposListDeployments.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -41783,9 +41963,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_deployments.Input.Path, - query: Operations.repos_sol_list_hyphen_deployments.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployments.Input.Headers = .init() + path: Operations.ReposListDeployments.Input.Path, + query: Operations.ReposListDeployments.Input.Query = .init(), + headers: Operations.ReposListDeployments.Input.Headers = .init() ) { self.path = path self.query = query @@ -41797,26 +41977,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Headers + public var headers: Operations.ReposListDeployments.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.deployment]) + case json([Components.Schemas.Deployment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.deployment] { + public var json: [Components.Schemas.Deployment] { get throws { switch self { case let .json(body): @@ -41826,15 +42006,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Body + public var body: Operations.ReposListDeployments.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_deployments.Output.Ok.Body + headers: Operations.ReposListDeployments.Output.Ok.Headers = .init(), + body: Operations.ReposListDeployments.Output.Ok.Body ) { self.headers = headers self.body = body @@ -41845,12 +42025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/get(repos/list-deployments)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_deployments.Output.Ok) + case ok(Operations.ReposListDeployments.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_deployments.Output.Ok { + public var ok: Operations.ReposListDeployments.Output.Ok { get throws { switch self { case let .ok(response): @@ -41947,7 +42127,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)`. - public enum repos_sol_create_hyphen_deployment { + public enum ReposCreateDeployment { public static let id: Swift.String = "repos/create-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/path`. @@ -41955,41 +42135,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_deployment.Input.Path + public var path: Operations.ReposCreateDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_deployment.Input.Headers + public var headers: Operations.ReposCreateDeployment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The ref to deploy. This can be a branch, tag, or SHA. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/ref`. @@ -42001,13 +42181,13 @@ public enum Operations { /// Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/auto_merge`. - public var auto_merge: Swift.Bool? + public var autoMerge: Swift.Bool? /// The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/required_contexts`. - public var required_contexts: [Swift.String]? + public var requiredContexts: [Swift.String]? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/payload`. - @frozen public enum payloadPayload: Codable, Hashable, Sendable { + @frozen public enum PayloadPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/payload/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// A container of undocumented properties. @@ -42027,7 +42207,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/payload/case1`. - case case1(Operations.repos_sol_create_hyphen_deployment.Input.Body.jsonPayload.payloadPayload.Case1Payload) + case case1(Operations.ReposCreateDeployment.Input.Body.JsonPayload.PayloadPayload.Case1Payload) /// JSON payload with extra information about the deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/payload/case2`. @@ -42062,7 +42242,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/payload`. - public var payload: Operations.repos_sol_create_hyphen_deployment.Input.Body.jsonPayload.payloadPayload? + public var payload: Operations.ReposCreateDeployment.Input.Body.JsonPayload.PayloadPayload? /// Name for the target deployment environment (e.g., `production`, `staging`, `qa`). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/environment`. @@ -42074,60 +42254,60 @@ public enum Operations { /// Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/transient_environment`. - public var transient_environment: Swift.Bool? + public var transientEnvironment: Swift.Bool? /// Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/json/production_environment`. - public var production_environment: Swift.Bool? - /// Creates a new `jsonPayload`. + public var productionEnvironment: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - ref: The ref to deploy. This can be a branch, tag, or SHA. /// - task: Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - /// - auto_merge: Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - /// - required_contexts: The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. + /// - autoMerge: Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. + /// - requiredContexts: The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. /// - payload: /// - environment: Name for the target deployment environment (e.g., `production`, `staging`, `qa`). /// - description: Short description of the deployment. - /// - transient_environment: Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` - /// - production_environment: Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. + /// - transientEnvironment: Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` + /// - productionEnvironment: Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. public init( ref: Swift.String, task: Swift.String? = nil, - auto_merge: Swift.Bool? = nil, - required_contexts: [Swift.String]? = nil, - payload: Operations.repos_sol_create_hyphen_deployment.Input.Body.jsonPayload.payloadPayload? = nil, + autoMerge: Swift.Bool? = nil, + requiredContexts: [Swift.String]? = nil, + payload: Operations.ReposCreateDeployment.Input.Body.JsonPayload.PayloadPayload? = nil, environment: Swift.String? = nil, description: Swift.String? = nil, - transient_environment: Swift.Bool? = nil, - production_environment: Swift.Bool? = nil + transientEnvironment: Swift.Bool? = nil, + productionEnvironment: Swift.Bool? = nil ) { self.ref = ref self.task = task - self.auto_merge = auto_merge - self.required_contexts = required_contexts + self.autoMerge = autoMerge + self.requiredContexts = requiredContexts self.payload = payload self.environment = environment self.description = description - self.transient_environment = transient_environment - self.production_environment = production_environment + self.transientEnvironment = transientEnvironment + self.productionEnvironment = productionEnvironment } public enum CodingKeys: String, CodingKey { case ref case task - case auto_merge - case required_contexts + case autoMerge = "auto_merge" + case requiredContexts = "required_contexts" case payload case environment case description - case transient_environment - case production_environment + case transientEnvironment = "transient_environment" + case productionEnvironment = "production_environment" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_deployment.Input.Body.jsonPayload) + case json(Operations.ReposCreateDeployment.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_deployment.Input.Body + public var body: Operations.ReposCreateDeployment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -42135,9 +42315,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment.Input.Body + path: Operations.ReposCreateDeployment.Input.Path, + headers: Operations.ReposCreateDeployment.Input.Headers = .init(), + body: Operations.ReposCreateDeployment.Input.Body ) { self.path = path self.headers = headers @@ -42149,12 +42329,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.deployment) + case json(Components.Schemas.Deployment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment { + public var json: Components.Schemas.Deployment { get throws { switch self { case let .json(body): @@ -42164,12 +42344,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deployment.Output.Created.Body + public var body: Operations.ReposCreateDeployment.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_deployment.Output.Created.Body) { + public init(body: Operations.ReposCreateDeployment.Output.Created.Body) { self.body = body } } @@ -42178,12 +42358,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_deployment.Output.Created) + case created(Operations.ReposCreateDeployment.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_deployment.Output.Created { + public var created: Operations.ReposCreateDeployment.Output.Created { get throws { switch self { case let .created(response): @@ -42200,10 +42380,10 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/202/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/202/content/json/message`. public var message: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: @@ -42215,12 +42395,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/POST/responses/202/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body.jsonPayload) + case json(Operations.ReposCreateDeployment.Output.Accepted.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body.jsonPayload { + public var json: Operations.ReposCreateDeployment.Output.Accepted.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -42230,12 +42410,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body + public var body: Operations.ReposCreateDeployment.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_deployment.Output.Accepted.Body) { + public init(body: Operations.ReposCreateDeployment.Output.Accepted.Body) { self.body = body } } @@ -42244,12 +42424,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.repos_sol_create_hyphen_deployment.Output.Accepted) + case accepted(Operations.ReposCreateDeployment.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.repos_sol_create_hyphen_deployment.Output.Accepted { + public var accepted: Operations.ReposCreateDeployment.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -42271,12 +42451,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.repos_sol_create_hyphen_deployment.Output.Conflict) + case conflict(Operations.ReposCreateDeployment.Output.Conflict) + /// Conflict when there is a merge conflict or the commit's status checks failed + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.repos_sol_create_hyphen_deployment.Output.Conflict { + public var conflict: Operations.ReposCreateDeployment.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -42294,12 +42482,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/post(repos/create-deployment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -42349,7 +42537,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)`. - public enum repos_sol_get_hyphen_deployment { + public enum ReposGetDeployment { public static let id: Swift.String = "repos/get-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/path`. @@ -42357,52 +42545,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// deployment_id parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/path/deployment_id`. - public var deployment_id: Components.Parameters.deployment_hyphen_id + public var deploymentId: Components.Parameters.DeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - deployment_id: deployment_id parameter + /// - deploymentId: deployment_id parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - deployment_id: Components.Parameters.deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + deploymentId: Components.Parameters.DeploymentId ) { self.owner = owner self.repo = repo - self.deployment_id = deployment_id + self.deploymentId = deploymentId } } - public var path: Operations.repos_sol_get_hyphen_deployment.Input.Path + public var path: Operations.ReposGetDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_deployment.Input.Headers + public var headers: Operations.ReposGetDeployment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment.Input.Headers = .init() + path: Operations.ReposGetDeployment.Input.Path, + headers: Operations.ReposGetDeployment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -42413,12 +42601,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.deployment) + case json(Components.Schemas.Deployment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment { + public var json: Components.Schemas.Deployment { get throws { switch self { case let .json(body): @@ -42428,12 +42616,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_deployment.Output.Ok.Body + public var body: Operations.ReposGetDeployment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_deployment.Output.Ok.Body) { + public init(body: Operations.ReposGetDeployment.Output.Ok.Body) { self.body = body } } @@ -42442,12 +42630,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_deployment.Output.Ok) + case ok(Operations.ReposGetDeployment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_deployment.Output.Ok { + public var ok: Operations.ReposGetDeployment.Output.Ok { get throws { switch self { case let .ok(response): @@ -42465,12 +42653,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/get(repos/get-deployment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -42529,7 +42717,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)`. - public enum repos_sol_delete_hyphen_deployment { + public enum ReposDeleteDeployment { public static let id: Swift.String = "repos/delete-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/DELETE/path`. @@ -42537,52 +42725,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// deployment_id parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/DELETE/path/deployment_id`. - public var deployment_id: Components.Parameters.deployment_hyphen_id + public var deploymentId: Components.Parameters.DeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - deployment_id: deployment_id parameter + /// - deploymentId: deployment_id parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - deployment_id: Components.Parameters.deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + deploymentId: Components.Parameters.DeploymentId ) { self.owner = owner self.repo = repo - self.deployment_id = deployment_id + self.deploymentId = deploymentId } } - public var path: Operations.repos_sol_delete_hyphen_deployment.Input.Path + public var path: Operations.ReposDeleteDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_deployment.Input.Headers + public var headers: Operations.ReposDeleteDeployment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_delete_hyphen_deployment.Input.Headers = .init() + path: Operations.ReposDeleteDeployment.Input.Path, + headers: Operations.ReposDeleteDeployment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -42598,12 +42786,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_deployment.Output.NoContent) + case noContent(Operations.ReposDeleteDeployment.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_deployment.Output.NoContent { + public var noContent: Operations.ReposDeleteDeployment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -42621,12 +42817,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -42644,12 +42840,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/delete(repos/delete-deployment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -42699,7 +42895,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)`. - public enum repos_sol_list_hyphen_deployment_hyphen_statuses { + public enum ReposListDeploymentStatuses { public static let id: Swift.String = "repos/list-deployment-statuses" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/path`. @@ -42707,68 +42903,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// deployment_id parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/path/deployment_id`. - public var deployment_id: Components.Parameters.deployment_hyphen_id + public var deploymentId: Components.Parameters.DeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - deployment_id: deployment_id parameter + /// - deploymentId: deployment_id parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - deployment_id: Components.Parameters.deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + deploymentId: Components.Parameters.DeploymentId ) { self.owner = owner self.repo = repo - self.deployment_id = deployment_id + self.deploymentId = deploymentId } } - public var path: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Path + public var path: Operations.ReposListDeploymentStatuses.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Query + public var query: Operations.ReposListDeploymentStatuses.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Headers + public var headers: Operations.ReposListDeploymentStatuses.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -42776,9 +42972,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Path, - query: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Input.Headers = .init() + path: Operations.ReposListDeploymentStatuses.Input.Path, + query: Operations.ReposListDeploymentStatuses.Input.Query = .init(), + headers: Operations.ReposListDeploymentStatuses.Input.Headers = .init() ) { self.path = path self.query = query @@ -42790,26 +42986,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Headers + public var headers: Operations.ReposListDeploymentStatuses.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/GET/responses/200/content/application\/json`. - case json([Components.Schemas.deployment_hyphen_status]) + case json([Components.Schemas.DeploymentStatus]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.deployment_hyphen_status] { + public var json: [Components.Schemas.DeploymentStatus] { get throws { switch self { case let .json(body): @@ -42819,15 +43015,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Body + public var body: Operations.ReposListDeploymentStatuses.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok.Body + headers: Operations.ReposListDeploymentStatuses.Output.Ok.Headers = .init(), + body: Operations.ReposListDeploymentStatuses.Output.Ok.Body ) { self.headers = headers self.body = body @@ -42838,12 +43034,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok) + case ok(Operations.ReposListDeploymentStatuses.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_deployment_hyphen_statuses.Output.Ok { + public var ok: Operations.ReposListDeploymentStatuses.Output.Ok { get throws { switch self { case let .ok(response): @@ -42861,12 +43057,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/get(repos/list-deployment-statuses)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -42918,7 +43114,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)`. - public enum repos_sol_create_hyphen_deployment_hyphen_status { + public enum ReposCreateDeploymentStatus { public static let id: Swift.String = "repos/create-deployment-status" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/path`. @@ -42926,56 +43122,56 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// deployment_id parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/path/deployment_id`. - public var deployment_id: Components.Parameters.deployment_hyphen_id + public var deploymentId: Components.Parameters.DeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - deployment_id: deployment_id parameter + /// - deploymentId: deployment_id parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - deployment_id: Components.Parameters.deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + deploymentId: Components.Parameters.DeploymentId ) { self.owner = owner self.repo = repo - self.deployment_id = deployment_id + self.deploymentId = deploymentId } } - public var path: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Path + public var path: Operations.ReposCreateDeploymentStatus.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Headers + public var headers: Operations.ReposCreateDeploymentStatus.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case error = "error" case failure = "failure" case inactive = "inactive" - case in_progress = "in_progress" + case inProgress = "in_progress" case queued = "queued" case pending = "pending" case success = "success" @@ -42983,18 +43179,18 @@ public enum Operations { /// The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/state`. - public var state: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body.jsonPayload.statePayload + public var state: Operations.ReposCreateDeploymentStatus.Input.Body.JsonPayload.StatePayload /// The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. /// /// > [!NOTE] /// > It's recommended to use the `log_url` parameter, which replaces `target_url`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/target_url`. - public var target_url: Swift.String? + public var targetUrl: Swift.String? /// The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/log_url`. - public var log_url: Swift.String? + public var logUrl: Swift.String? /// A short description of the status. The maximum description length is 140 characters. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/description`. @@ -43006,52 +43202,52 @@ public enum Operations { /// Sets the URL for accessing your environment. Default: `""` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/environment_url`. - public var environment_url: Swift.String? + public var environmentUrl: Swift.String? /// Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/json/auto_inactive`. - public var auto_inactive: Swift.Bool? - /// Creates a new `jsonPayload`. + public var autoInactive: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. - /// - target_url: The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. - /// - log_url: The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` + /// - targetUrl: The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. + /// - logUrl: The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` /// - description: A short description of the status. The maximum description length is 140 characters. /// - environment: Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used. - /// - environment_url: Sets the URL for accessing your environment. Default: `""` - /// - auto_inactive: Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` + /// - environmentUrl: Sets the URL for accessing your environment. Default: `""` + /// - autoInactive: Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` public init( - state: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body.jsonPayload.statePayload, - target_url: Swift.String? = nil, - log_url: Swift.String? = nil, + state: Operations.ReposCreateDeploymentStatus.Input.Body.JsonPayload.StatePayload, + targetUrl: Swift.String? = nil, + logUrl: Swift.String? = nil, description: Swift.String? = nil, environment: Swift.String? = nil, - environment_url: Swift.String? = nil, - auto_inactive: Swift.Bool? = nil + environmentUrl: Swift.String? = nil, + autoInactive: Swift.Bool? = nil ) { self.state = state - self.target_url = target_url - self.log_url = log_url + self.targetUrl = targetUrl + self.logUrl = logUrl self.description = description self.environment = environment - self.environment_url = environment_url - self.auto_inactive = auto_inactive + self.environmentUrl = environmentUrl + self.autoInactive = autoInactive } public enum CodingKeys: String, CodingKey { case state - case target_url - case log_url + case targetUrl = "target_url" + case logUrl = "log_url" case description case environment - case environment_url - case auto_inactive + case environmentUrl = "environment_url" + case autoInactive = "auto_inactive" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body.jsonPayload) + case json(Operations.ReposCreateDeploymentStatus.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body + public var body: Operations.ReposCreateDeploymentStatus.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -43059,9 +43255,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Input.Body + path: Operations.ReposCreateDeploymentStatus.Input.Path, + headers: Operations.ReposCreateDeploymentStatus.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentStatus.Input.Body ) { self.path = path self.headers = headers @@ -43073,26 +43269,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Headers + public var headers: Operations.ReposCreateDeploymentStatus.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/POST/responses/201/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_status) + case json(Components.Schemas.DeploymentStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_status { + public var json: Components.Schemas.DeploymentStatus { get throws { switch self { case let .json(body): @@ -43102,15 +43298,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Body + public var body: Operations.ReposCreateDeploymentStatus.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created.Body + headers: Operations.ReposCreateDeploymentStatus.Output.Created.Headers = .init(), + body: Operations.ReposCreateDeploymentStatus.Output.Created.Body ) { self.headers = headers self.body = body @@ -43121,12 +43317,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created) + case created(Operations.ReposCreateDeploymentStatus.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_deployment_hyphen_status.Output.Created { + public var created: Operations.ReposCreateDeploymentStatus.Output.Created { get throws { switch self { case let .created(response): @@ -43144,12 +43340,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/post(repos/create-deployment-status)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -43199,7 +43395,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)`. - public enum repos_sol_get_hyphen_deployment_hyphen_status { + public enum ReposGetDeploymentStatus { public static let id: Swift.String = "repos/get-deployment-status" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/path`. @@ -43207,57 +43403,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// deployment_id parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/path/deployment_id`. - public var deployment_id: Components.Parameters.deployment_hyphen_id + public var deploymentId: Components.Parameters.DeploymentId /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/path/status_id`. - public var status_id: Swift.Int + public var statusId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - deployment_id: deployment_id parameter - /// - status_id: + /// - deploymentId: deployment_id parameter + /// - statusId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - deployment_id: Components.Parameters.deployment_hyphen_id, - status_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + deploymentId: Components.Parameters.DeploymentId, + statusId: Swift.Int ) { self.owner = owner self.repo = repo - self.deployment_id = deployment_id - self.status_id = status_id + self.deploymentId = deploymentId + self.statusId = statusId } } - public var path: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Path + public var path: Operations.ReposGetDeploymentStatus.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Headers + public var headers: Operations.ReposGetDeploymentStatus.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Input.Headers = .init() + path: Operations.ReposGetDeploymentStatus.Input.Path, + headers: Operations.ReposGetDeploymentStatus.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -43268,12 +43464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_status) + case json(Components.Schemas.DeploymentStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_status { + public var json: Components.Schemas.DeploymentStatus { get throws { switch self { case let .json(body): @@ -43283,12 +43479,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output.Ok.Body + public var body: Operations.ReposGetDeploymentStatus.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output.Ok.Body) { + public init(body: Operations.ReposGetDeploymentStatus.Output.Ok.Body) { self.body = body } } @@ -43297,12 +43493,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output.Ok) + case ok(Operations.ReposGetDeploymentStatus.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_deployment_hyphen_status.Output.Ok { + public var ok: Operations.ReposGetDeploymentStatus.Output.Ok { get throws { switch self { case let .ok(response): @@ -43320,12 +43516,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}/get(repos/get-deployment-status)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -43381,7 +43577,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/dispatches`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)`. - public enum repos_sol_create_hyphen_dispatch_hyphen_event { + public enum ReposCreateDispatchEvent { public static let id: Swift.String = "repos/create-dispatch-event" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/path`. @@ -43389,52 +43585,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Path + public var path: Operations.ReposCreateDispatchEvent.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Headers + public var headers: Operations.ReposCreateDispatchEvent.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A custom webhook event name. Must be 100 characters or fewer. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody/json/event_type`. - public var event_type: Swift.String + public var eventType: Swift.String /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody/json/client_payload`. - public struct client_payloadPayload: Codable, Hashable, Sendable { + public struct ClientPayloadPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `client_payloadPayload`. + /// Creates a new `ClientPayloadPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -43451,28 +43647,28 @@ public enum Operations { /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody/json/client_payload`. - public var client_payload: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body.jsonPayload.client_payloadPayload? - /// Creates a new `jsonPayload`. + public var clientPayload: Operations.ReposCreateDispatchEvent.Input.Body.JsonPayload.ClientPayloadPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - event_type: A custom webhook event name. Must be 100 characters or fewer. - /// - client_payload: JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. + /// - eventType: A custom webhook event name. Must be 100 characters or fewer. + /// - clientPayload: JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. public init( - event_type: Swift.String, - client_payload: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body.jsonPayload.client_payloadPayload? = nil + eventType: Swift.String, + clientPayload: Operations.ReposCreateDispatchEvent.Input.Body.JsonPayload.ClientPayloadPayload? = nil ) { - self.event_type = event_type - self.client_payload = client_payload + self.eventType = eventType + self.clientPayload = clientPayload } public enum CodingKeys: String, CodingKey { - case event_type - case client_payload + case eventType = "event_type" + case clientPayload = "client_payload" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dispatches/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body.jsonPayload) + case json(Operations.ReposCreateDispatchEvent.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body + public var body: Operations.ReposCreateDispatchEvent.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -43480,9 +43676,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Path, - headers: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Input.Body + path: Operations.ReposCreateDispatchEvent.Input.Path, + headers: Operations.ReposCreateDispatchEvent.Input.Headers = .init(), + body: Operations.ReposCreateDispatchEvent.Input.Body ) { self.path = path self.headers = headers @@ -43499,12 +43695,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Output.NoContent) + case noContent(Operations.ReposCreateDispatchEvent.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_create_hyphen_dispatch_hyphen_event.Output.NoContent { + public var noContent: Operations.ReposCreateDispatchEvent.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -43522,12 +43726,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -43545,12 +43749,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dispatches/post(repos/create-dispatch-event)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -43604,7 +43808,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/get(repos/get-all-environments)`. - public enum repos_sol_get_hyphen_all_hyphen_environments { + public enum ReposGetAllEnvironments { public static let id: Swift.String = "repos/get-all-environments" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/path`. @@ -43612,61 +43816,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Path + public var path: Operations.ReposGetAllEnvironments.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Query + public var query: Operations.ReposGetAllEnvironments.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Headers + public var headers: Operations.ReposGetAllEnvironments.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -43674,9 +43878,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Path, - query: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_all_hyphen_environments.Input.Headers = .init() + path: Operations.ReposGetAllEnvironments.Input.Path, + query: Operations.ReposGetAllEnvironments.Input.Query = .init(), + headers: Operations.ReposGetAllEnvironments.Input.Headers = .init() ) { self.path = path self.query = query @@ -43688,37 +43892,37 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The number of environments in this repository /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int? + public var totalCount: Swift.Int? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/responses/200/content/json/environments`. - public var environments: [Components.Schemas.environment]? - /// Creates a new `jsonPayload`. + public var environments: [Components.Schemas.Environment]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: The number of environments in this repository + /// - totalCount: The number of environments in this repository /// - environments: public init( - total_count: Swift.Int? = nil, - environments: [Components.Schemas.environment]? = nil + totalCount: Swift.Int? = nil, + environments: [Components.Schemas.Environment]? = nil ) { - self.total_count = total_count + self.totalCount = totalCount self.environments = environments } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case environments } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body.jsonPayload) + case json(Operations.ReposGetAllEnvironments.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposGetAllEnvironments.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -43728,12 +43932,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body + public var body: Operations.ReposGetAllEnvironments.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok.Body) { + public init(body: Operations.ReposGetAllEnvironments.Output.Ok.Body) { self.body = body } } @@ -43742,12 +43946,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/get(repos/get-all-environments)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok) + case ok(Operations.ReposGetAllEnvironments.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_all_hyphen_environments.Output.Ok { + public var ok: Operations.ReposGetAllEnvironments.Output.Ok { get throws { switch self { case let .ok(response): @@ -43802,7 +44006,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/get(repos/get-environment)`. - public enum repos_sol_get_hyphen_environment { + public enum ReposGetEnvironment { public static let id: Swift.String = "repos/get-environment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/path`. @@ -43810,52 +44014,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.repos_sol_get_hyphen_environment.Input.Path + public var path: Operations.ReposGetEnvironment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_environment.Input.Headers + public var headers: Operations.ReposGetEnvironment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_environment.Input.Path, - headers: Operations.repos_sol_get_hyphen_environment.Input.Headers = .init() + path: Operations.ReposGetEnvironment.Input.Path, + headers: Operations.ReposGetEnvironment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -43866,12 +44070,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.environment) + case json(Components.Schemas.Environment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.environment { + public var json: Components.Schemas.Environment { get throws { switch self { case let .json(body): @@ -43881,12 +44085,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_environment.Output.Ok.Body + public var body: Operations.ReposGetEnvironment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_environment.Output.Ok.Body) { + public init(body: Operations.ReposGetEnvironment.Output.Ok.Body) { self.body = body } } @@ -43895,12 +44099,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/get(repos/get-environment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_environment.Output.Ok) + case ok(Operations.ReposGetEnvironment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_environment.Output.Ok { + public var ok: Operations.ReposGetEnvironment.Output.Ok { get throws { switch self { case let .ok(response): @@ -43958,7 +44162,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)`. - public enum repos_sol_create_hyphen_or_hyphen_update_hyphen_environment { + public enum ReposCreateOrUpdateEnvironment { public static let id: Swift.String = "repos/create-or-update-environment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/path`. @@ -43966,67 +44170,67 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Path + public var path: Operations.ReposCreateOrUpdateEnvironment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Headers + public var headers: Operations.ReposCreateOrUpdateEnvironment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/wait_timer`. - public var wait_timer: Components.Schemas.wait_hyphen_timer? + public var waitTimer: Components.Schemas.WaitTimer? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/prevent_self_review`. - public var prevent_self_review: Components.Schemas.prevent_hyphen_self_hyphen_review? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/reviewersPayload/type`. - public var _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? + public var preventSelfReview: Components.Schemas.PreventSelfReview? + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/ReviewersPayload/type`. + public var _type: Components.Schemas.DeploymentReviewerType? /// The id of the user or team who can review the deployment /// - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/reviewersPayload/id`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/ReviewersPayload/id`. public var id: Swift.Int? - /// Creates a new `reviewersPayloadPayload`. + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - _type: /// - id: The id of the user or team who can review the deployment public init( - _type: Components.Schemas.deployment_hyphen_reviewer_hyphen_type? = nil, + _type: Components.Schemas.DeploymentReviewerType? = nil, id: Swift.Int? = nil ) { self._type = _type @@ -44040,54 +44244,54 @@ public enum Operations { /// The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/reviewers`. - public typealias reviewersPayload = [Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body.jsonPayload.reviewersPayloadPayload] + public typealias ReviewersPayload = [Operations.ReposCreateOrUpdateEnvironment.Input.Body.JsonPayload.ReviewersPayloadPayload] /// The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/reviewers`. - public var reviewers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body.jsonPayload.reviewersPayload? + public var reviewers: Operations.ReposCreateOrUpdateEnvironment.Input.Body.JsonPayload.ReviewersPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/json/deployment_branch_policy`. - public var deployment_branch_policy: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_settings? - /// Creates a new `jsonPayload`. + public var deploymentBranchPolicy: Components.Schemas.DeploymentBranchPolicySettings? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - wait_timer: - /// - prevent_self_review: + /// - waitTimer: + /// - preventSelfReview: /// - reviewers: The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed. - /// - deployment_branch_policy: + /// - deploymentBranchPolicy: public init( - wait_timer: Components.Schemas.wait_hyphen_timer? = nil, - prevent_self_review: Components.Schemas.prevent_hyphen_self_hyphen_review? = nil, - reviewers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body.jsonPayload.reviewersPayload? = nil, - deployment_branch_policy: Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_settings? = nil + waitTimer: Components.Schemas.WaitTimer? = nil, + preventSelfReview: Components.Schemas.PreventSelfReview? = nil, + reviewers: Operations.ReposCreateOrUpdateEnvironment.Input.Body.JsonPayload.ReviewersPayload? = nil, + deploymentBranchPolicy: Components.Schemas.DeploymentBranchPolicySettings? = nil ) { - self.wait_timer = wait_timer - self.prevent_self_review = prevent_self_review + self.waitTimer = waitTimer + self.preventSelfReview = preventSelfReview self.reviewers = reviewers - self.deployment_branch_policy = deployment_branch_policy + self.deploymentBranchPolicy = deploymentBranchPolicy } public enum CodingKeys: String, CodingKey { - case wait_timer - case prevent_self_review + case waitTimer = "wait_timer" + case preventSelfReview = "prevent_self_review" case reviewers - case deployment_branch_policy + case deploymentBranchPolicy = "deployment_branch_policy" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - wait_timer = try container.decodeIfPresent( - Components.Schemas.wait_hyphen_timer.self, - forKey: .wait_timer + self.waitTimer = try container.decodeIfPresent( + Components.Schemas.WaitTimer.self, + forKey: .waitTimer ) - prevent_self_review = try container.decodeIfPresent( - Components.Schemas.prevent_hyphen_self_hyphen_review.self, - forKey: .prevent_self_review + self.preventSelfReview = try container.decodeIfPresent( + Components.Schemas.PreventSelfReview.self, + forKey: .preventSelfReview ) - reviewers = try container.decodeIfPresent( - Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body.jsonPayload.reviewersPayload.self, + self.reviewers = try container.decodeIfPresent( + Operations.ReposCreateOrUpdateEnvironment.Input.Body.JsonPayload.ReviewersPayload.self, forKey: .reviewers ) - deployment_branch_policy = try container.decodeIfPresent( - Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_settings.self, - forKey: .deployment_branch_policy + self.deploymentBranchPolicy = try container.decodeIfPresent( + Components.Schemas.DeploymentBranchPolicySettings.self, + forKey: .deploymentBranchPolicy ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "wait_timer", @@ -44098,9 +44302,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body.jsonPayload) + case json(Operations.ReposCreateOrUpdateEnvironment.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body? + public var body: Operations.ReposCreateOrUpdateEnvironment.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -44108,9 +44312,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Input.Body? = nil + path: Operations.ReposCreateOrUpdateEnvironment.Input.Path, + headers: Operations.ReposCreateOrUpdateEnvironment.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateEnvironment.Input.Body? = nil ) { self.path = path self.headers = headers @@ -44122,12 +44326,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.environment) + case json(Components.Schemas.Environment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.environment { + public var json: Components.Schemas.Environment { get throws { switch self { case let .json(body): @@ -44137,12 +44341,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.Ok.Body + public var body: Operations.ReposCreateOrUpdateEnvironment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.Ok.Body) { + public init(body: Operations.ReposCreateOrUpdateEnvironment.Output.Ok.Body) { self.body = body } } @@ -44151,12 +44355,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.Ok) + case ok(Operations.ReposCreateOrUpdateEnvironment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.Ok { + public var ok: Operations.ReposCreateOrUpdateEnvironment.Output.Ok { get throws { switch self { case let .ok(response): @@ -44173,12 +44377,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/PUT/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -44188,12 +44392,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.UnprocessableContent.Body + public var body: Operations.ReposCreateOrUpdateEnvironment.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.UnprocessableContent.Body) { + public init(body: Operations.ReposCreateOrUpdateEnvironment.Output.UnprocessableContent.Body) { self.body = body } } @@ -44202,12 +44406,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/put(repos/create-or-update-environment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.UnprocessableContent) + case unprocessableContent(Operations.ReposCreateOrUpdateEnvironment.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_environment.Output.UnprocessableContent { + public var unprocessableContent: Operations.ReposCreateOrUpdateEnvironment.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -44257,7 +44461,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)`. - public enum repos_sol_delete_hyphen_an_hyphen_environment { + public enum ReposDeleteAnEnvironment { public static let id: Swift.String = "repos/delete-an-environment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/DELETE/path`. @@ -44265,37 +44469,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/DELETE/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input.Path + public var path: Operations.ReposDeleteAnEnvironment.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Input.Path) { + public init(path: Operations.ReposDeleteAnEnvironment.Input.Path) { self.path = path } } @@ -44309,12 +44513,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_an_hyphen_environment.Output.NoContent) + case noContent(Operations.ReposDeleteAnEnvironment.Output.NoContent) + /// Default response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/delete(repos/delete-an-environment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_an_hyphen_environment.Output.NoContent { + public var noContent: Operations.ReposDeleteAnEnvironment.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -44343,7 +44555,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/get(repos/list-deployment-branch-policies)`. - public enum repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies { + public enum ReposListDeploymentBranchPolicies { public static let id: Swift.String = "repos/list-deployment-branch-policies" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/path`. @@ -44351,68 +44563,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Path + public var path: Operations.ReposListDeploymentBranchPolicies.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Query + public var query: Operations.ReposListDeploymentBranchPolicies.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Headers + public var headers: Operations.ReposListDeploymentBranchPolicies.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -44420,9 +44632,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Path, - query: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Input.Headers = .init() + path: Operations.ReposListDeploymentBranchPolicies.Input.Path, + query: Operations.ReposListDeploymentBranchPolicies.Input.Query = .init(), + headers: Operations.ReposListDeploymentBranchPolicies.Input.Headers = .init() ) { self.path = path self.query = query @@ -44434,37 +44646,37 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The number of deployment branch policies for the environment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/responses/200/content/json/branch_policies`. - public var branch_policies: [Components.Schemas.deployment_hyphen_branch_hyphen_policy] - /// Creates a new `jsonPayload`. + public var branchPolicies: [Components.Schemas.DeploymentBranchPolicy] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: The number of deployment branch policies for the environment. - /// - branch_policies: + /// - totalCount: The number of deployment branch policies for the environment. + /// - branchPolicies: public init( - total_count: Swift.Int, - branch_policies: [Components.Schemas.deployment_hyphen_branch_hyphen_policy] + totalCount: Swift.Int, + branchPolicies: [Components.Schemas.DeploymentBranchPolicy] ) { - self.total_count = total_count - self.branch_policies = branch_policies + self.totalCount = totalCount + self.branchPolicies = branchPolicies } public enum CodingKeys: String, CodingKey { - case total_count - case branch_policies + case totalCount = "total_count" + case branchPolicies = "branch_policies" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body.jsonPayload) + case json(Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -44474,12 +44686,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body + public var body: Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok.Body) { + public init(body: Operations.ReposListDeploymentBranchPolicies.Output.Ok.Body) { self.body = body } } @@ -44488,12 +44700,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/get(repos/list-deployment-branch-policies)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok) + case ok(Operations.ReposListDeploymentBranchPolicies.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_deployment_hyphen_branch_hyphen_policies.Output.Ok { + public var ok: Operations.ReposListDeploymentBranchPolicies.Output.Ok { get throws { switch self { case let .ok(response): @@ -44545,7 +44757,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)`. - public enum repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy { + public enum ReposCreateDeploymentBranchPolicy { public static let id: Swift.String = "repos/create-deployment-branch-policy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/path`. @@ -44553,50 +44765,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName ) { self.owner = owner self.repo = repo - self.environment_name = environment_name + self.environmentName = environmentName } } - public var path: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path + public var path: Operations.ReposCreateDeploymentBranchPolicy.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers + public var headers: Operations.ReposCreateDeploymentBranchPolicy.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/requestBody/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern_hyphen_with_hyphen_type) + case json(Components.Schemas.DeploymentBranchPolicyNamePatternWithType) } - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body + public var body: Operations.ReposCreateDeploymentBranchPolicy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -44604,9 +44816,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body + path: Operations.ReposCreateDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposCreateDeploymentBranchPolicy.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentBranchPolicy.Input.Body ) { self.path = path self.headers = headers @@ -44618,12 +44830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/POST/responses/200/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_branch_hyphen_policy) + case json(Components.Schemas.DeploymentBranchPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_branch_hyphen_policy { + public var json: Components.Schemas.DeploymentBranchPolicy { get throws { switch self { case let .json(body): @@ -44633,12 +44845,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + public var body: Operations.ReposCreateDeploymentBranchPolicy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body) { + public init(body: Operations.ReposCreateDeploymentBranchPolicy.Output.Ok.Body) { self.body = body } } @@ -44647,12 +44859,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok) + case ok(Operations.ReposCreateDeploymentBranchPolicy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok { + public var ok: Operations.ReposCreateDeploymentBranchPolicy.Output.Ok { get throws { switch self { case let .ok(response): @@ -44674,12 +44886,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.NotFound) + case notFound(Operations.ReposCreateDeploymentBranchPolicy.Output.NotFound) + /// Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.NotFound { + public var notFound: Operations.ReposCreateDeploymentBranchPolicy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -44701,12 +44921,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)/responses/303`. /// /// HTTP response code: `303 seeOther`. - case seeOther(Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.SeeOther) + case seeOther(Operations.ReposCreateDeploymentBranchPolicy.Output.SeeOther) + /// Response if the same branch name pattern already exists + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/post(repos/create-deployment-branch-policy)/responses/303`. + /// + /// HTTP response code: `303 seeOther`. + public static var seeOther: Self { + .seeOther(.init()) + } /// The associated value of the enum case if `self` is `.seeOther`. /// /// - Throws: An error if `self` is not `.seeOther`. /// - SeeAlso: `.seeOther`. - public var seeOther: Operations.repos_sol_create_hyphen_deployment_hyphen_branch_hyphen_policy.Output.SeeOther { + public var seeOther: Operations.ReposCreateDeploymentBranchPolicy.Output.SeeOther { get throws { switch self { case let .seeOther(response): @@ -44760,7 +44988,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/get(repos/get-deployment-branch-policy)`. - public enum repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy { + public enum ReposGetDeploymentBranchPolicy { public static let id: Swift.String = "repos/get-deployment-branch-policy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/path`. @@ -44768,59 +44996,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The unique identifier of the branch policy. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/path/branch_policy_id`. - public var branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + public var branchPolicyId: Components.Parameters.BranchPolicyId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - branch_policy_id: The unique identifier of the branch policy. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - branchPolicyId: The unique identifier of the branch policy. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + branchPolicyId: Components.Parameters.BranchPolicyId ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.branch_policy_id = branch_policy_id + self.environmentName = environmentName + self.branchPolicyId = branchPolicyId } } - public var path: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path + public var path: Operations.ReposGetDeploymentBranchPolicy.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers + public var headers: Operations.ReposGetDeploymentBranchPolicy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init() + path: Operations.ReposGetDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposGetDeploymentBranchPolicy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -44831,12 +45059,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_branch_hyphen_policy) + case json(Components.Schemas.DeploymentBranchPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_branch_hyphen_policy { + public var json: Components.Schemas.DeploymentBranchPolicy { get throws { switch self { case let .json(body): @@ -44846,12 +45074,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + public var body: Operations.ReposGetDeploymentBranchPolicy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body) { + public init(body: Operations.ReposGetDeploymentBranchPolicy.Output.Ok.Body) { self.body = body } } @@ -44860,12 +45088,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/get(repos/get-deployment-branch-policy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok) + case ok(Operations.ReposGetDeploymentBranchPolicy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok { + public var ok: Operations.ReposGetDeploymentBranchPolicy.Output.Ok { get throws { switch self { case let .ok(response): @@ -44917,7 +45145,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/put(repos/update-deployment-branch-policy)`. - public enum repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy { + public enum ReposUpdateDeploymentBranchPolicy { public static let id: Swift.String = "repos/update-deployment-branch-policy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/path`. @@ -44925,57 +45153,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The unique identifier of the branch policy. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/path/branch_policy_id`. - public var branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + public var branchPolicyId: Components.Parameters.BranchPolicyId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - branch_policy_id: The unique identifier of the branch policy. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - branchPolicyId: The unique identifier of the branch policy. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + branchPolicyId: Components.Parameters.BranchPolicyId ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.branch_policy_id = branch_policy_id + self.environmentName = environmentName + self.branchPolicyId = branchPolicyId } } - public var path: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path + public var path: Operations.ReposUpdateDeploymentBranchPolicy.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers + public var headers: Operations.ReposUpdateDeploymentBranchPolicy.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_branch_hyphen_policy_hyphen_name_hyphen_pattern) + case json(Components.Schemas.DeploymentBranchPolicyNamePattern) } - public var body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body + public var body: Operations.ReposUpdateDeploymentBranchPolicy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -44983,9 +45211,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path, - headers: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Body + path: Operations.ReposUpdateDeploymentBranchPolicy.Input.Path, + headers: Operations.ReposUpdateDeploymentBranchPolicy.Input.Headers = .init(), + body: Operations.ReposUpdateDeploymentBranchPolicy.Input.Body ) { self.path = path self.headers = headers @@ -44997,12 +45225,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_branch_hyphen_policy) + case json(Components.Schemas.DeploymentBranchPolicy) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_branch_hyphen_policy { + public var json: Components.Schemas.DeploymentBranchPolicy { get throws { switch self { case let .json(body): @@ -45012,12 +45240,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body + public var body: Operations.ReposUpdateDeploymentBranchPolicy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok.Body) { + public init(body: Operations.ReposUpdateDeploymentBranchPolicy.Output.Ok.Body) { self.body = body } } @@ -45026,12 +45254,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/put(repos/update-deployment-branch-policy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok) + case ok(Operations.ReposUpdateDeploymentBranchPolicy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_deployment_hyphen_branch_hyphen_policy.Output.Ok { + public var ok: Operations.ReposUpdateDeploymentBranchPolicy.Output.Ok { get throws { switch self { case let .ok(response): @@ -45083,7 +45311,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)`. - public enum repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy { + public enum ReposDeleteDeploymentBranchPolicy { public static let id: Swift.String = "repos/delete-deployment-branch-policy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/DELETE/path`. @@ -45091,44 +45319,44 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/DELETE/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The unique identifier of the branch policy. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/DELETE/path/branch_policy_id`. - public var branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + public var branchPolicyId: Components.Parameters.BranchPolicyId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - branch_policy_id: The unique identifier of the branch policy. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - branchPolicyId: The unique identifier of the branch policy. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - branch_policy_id: Components.Parameters.branch_hyphen_policy_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + branchPolicyId: Components.Parameters.BranchPolicyId ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.branch_policy_id = branch_policy_id + self.environmentName = environmentName + self.branchPolicyId = branchPolicyId } } - public var path: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path + public var path: Operations.ReposDeleteDeploymentBranchPolicy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Input.Path) { + public init(path: Operations.ReposDeleteDeploymentBranchPolicy.Input.Path) { self.path = path } } @@ -45142,12 +45370,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Output.NoContent) + case noContent(Operations.ReposDeleteDeploymentBranchPolicy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}/delete(repos/delete-deployment-branch-policy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_deployment_hyphen_branch_hyphen_policy.Output.NoContent { + public var noContent: Operations.ReposDeleteDeploymentBranchPolicy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -45176,7 +45412,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/get(repos/get-all-deployment-protection-rules)`. - public enum repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules { + public enum ReposGetAllDeploymentProtectionRules { public static let id: Swift.String = "repos/get-all-deployment-protection-rules" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/path`. @@ -45184,52 +45420,52 @@ public enum Operations { /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// Creates a new `Path`. /// /// - Parameters: - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - owner: The account owner of the repository. The name is not case sensitive. public init( - environment_name: Components.Parameters.environment_hyphen_name, - repo: Components.Parameters.repo, - owner: Components.Parameters.owner + environmentName: Components.Parameters.EnvironmentName, + repo: Components.Parameters.Repo, + owner: Components.Parameters.Owner ) { - self.environment_name = environment_name + self.environmentName = environmentName self.repo = repo self.owner = owner } } - public var path: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Path + public var path: Operations.ReposGetAllDeploymentProtectionRules.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Headers + public var headers: Operations.ReposGetAllDeploymentProtectionRules.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Path, - headers: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Input.Headers = .init() + path: Operations.ReposGetAllDeploymentProtectionRules.Input.Path, + headers: Operations.ReposGetAllDeploymentProtectionRules.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -45240,37 +45476,37 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The number of enabled custom deployment protection rules for this environment /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int? + public var totalCount: Swift.Int? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/responses/200/content/json/custom_deployment_protection_rules`. - public var custom_deployment_protection_rules: [Components.Schemas.deployment_hyphen_protection_hyphen_rule]? - /// Creates a new `jsonPayload`. + public var customDeploymentProtectionRules: [Components.Schemas.DeploymentProtectionRule]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: The number of enabled custom deployment protection rules for this environment - /// - custom_deployment_protection_rules: + /// - totalCount: The number of enabled custom deployment protection rules for this environment + /// - customDeploymentProtectionRules: public init( - total_count: Swift.Int? = nil, - custom_deployment_protection_rules: [Components.Schemas.deployment_hyphen_protection_hyphen_rule]? = nil + totalCount: Swift.Int? = nil, + customDeploymentProtectionRules: [Components.Schemas.DeploymentProtectionRule]? = nil ) { - self.total_count = total_count - self.custom_deployment_protection_rules = custom_deployment_protection_rules + self.totalCount = totalCount + self.customDeploymentProtectionRules = customDeploymentProtectionRules } public enum CodingKeys: String, CodingKey { - case total_count - case custom_deployment_protection_rules + case totalCount = "total_count" + case customDeploymentProtectionRules = "custom_deployment_protection_rules" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body.jsonPayload) + case json(Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -45280,12 +45516,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body + public var body: Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok.Body) { + public init(body: Operations.ReposGetAllDeploymentProtectionRules.Output.Ok.Body) { self.body = body } } @@ -45294,12 +45530,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/get(repos/get-all-deployment-protection-rules)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok) + case ok(Operations.ReposGetAllDeploymentProtectionRules.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_all_hyphen_deployment_hyphen_protection_hyphen_rules.Output.Ok { + public var ok: Operations.ReposGetAllDeploymentProtectionRules.Output.Ok { get throws { switch self { case let .ok(response): @@ -45355,7 +45591,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/post(repos/create-deployment-protection-rule)`. - public enum repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule { + public enum ReposCreateDeploymentProtectionRule { public static let id: Swift.String = "repos/create-deployment-protection-rule" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/path`. @@ -45363,67 +45599,67 @@ public enum Operations { /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// Creates a new `Path`. /// /// - Parameters: - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - owner: The account owner of the repository. The name is not case sensitive. public init( - environment_name: Components.Parameters.environment_hyphen_name, - repo: Components.Parameters.repo, - owner: Components.Parameters.owner + environmentName: Components.Parameters.EnvironmentName, + repo: Components.Parameters.Repo, + owner: Components.Parameters.Owner ) { - self.environment_name = environment_name + self.environmentName = environmentName self.repo = repo self.owner = owner } } - public var path: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path + public var path: Operations.ReposCreateDeploymentProtectionRule.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers + public var headers: Operations.ReposCreateDeploymentProtectionRule.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The ID of the custom app that will be enabled on the environment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/requestBody/json/integration_id`. - public var integration_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var integrationId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - integration_id: The ID of the custom app that will be enabled on the environment. - public init(integration_id: Swift.Int? = nil) { - self.integration_id = integration_id + /// - integrationId: The ID of the custom app that will be enabled on the environment. + public init(integrationId: Swift.Int? = nil) { + self.integrationId = integrationId } public enum CodingKeys: String, CodingKey { - case integration_id + case integrationId = "integration_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Body.jsonPayload) + case json(Operations.ReposCreateDeploymentProtectionRule.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Body + public var body: Operations.ReposCreateDeploymentProtectionRule.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -45431,9 +45667,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path, - headers: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Body + path: Operations.ReposCreateDeploymentProtectionRule.Input.Path, + headers: Operations.ReposCreateDeploymentProtectionRule.Input.Headers = .init(), + body: Operations.ReposCreateDeploymentProtectionRule.Input.Body ) { self.path = path self.headers = headers @@ -45445,12 +45681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/POST/responses/201/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_protection_hyphen_rule) + case json(Components.Schemas.DeploymentProtectionRule) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_protection_hyphen_rule { + public var json: Components.Schemas.DeploymentProtectionRule { get throws { switch self { case let .json(body): @@ -45460,12 +45696,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Created.Body + public var body: Operations.ReposCreateDeploymentProtectionRule.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Created.Body) { + public init(body: Operations.ReposCreateDeploymentProtectionRule.Output.Created.Body) { self.body = body } } @@ -45474,12 +45710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/post(repos/create-deployment-protection-rule)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Created) + case created(Operations.ReposCreateDeploymentProtectionRule.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Created { + public var created: Operations.ReposCreateDeploymentProtectionRule.Output.Created { get throws { switch self { case let .created(response): @@ -45537,7 +45773,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/get(repos/list-custom-deployment-rule-integrations)`. - public enum repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations { + public enum ReposListCustomDeploymentRuleIntegrations { public static let id: Swift.String = "repos/list-custom-deployment-rule-integrations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/path`. @@ -45545,68 +45781,68 @@ public enum Operations { /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// Creates a new `Path`. /// /// - Parameters: - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - owner: The account owner of the repository. The name is not case sensitive. public init( - environment_name: Components.Parameters.environment_hyphen_name, - repo: Components.Parameters.repo, - owner: Components.Parameters.owner + environmentName: Components.Parameters.EnvironmentName, + repo: Components.Parameters.Repo, + owner: Components.Parameters.Owner ) { - self.environment_name = environment_name + self.environmentName = environmentName self.repo = repo self.owner = owner } } - public var path: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Path + public var path: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Query + public var query: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Headers + public var headers: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -45614,9 +45850,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Path, - query: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Input.Headers = .init() + path: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Path, + query: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Query = .init(), + headers: Operations.ReposListCustomDeploymentRuleIntegrations.Input.Headers = .init() ) { self.path = path self.query = query @@ -45628,37 +45864,37 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The total number of custom deployment protection rule integrations available for this environment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int? + public var totalCount: Swift.Int? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/responses/200/content/json/available_custom_deployment_protection_rule_integrations`. - public var available_custom_deployment_protection_rule_integrations: [Components.Schemas.custom_hyphen_deployment_hyphen_rule_hyphen_app]? - /// Creates a new `jsonPayload`. + public var availableCustomDeploymentProtectionRuleIntegrations: [Components.Schemas.CustomDeploymentRuleApp]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: The total number of custom deployment protection rule integrations available for this environment. - /// - available_custom_deployment_protection_rule_integrations: + /// - totalCount: The total number of custom deployment protection rule integrations available for this environment. + /// - availableCustomDeploymentProtectionRuleIntegrations: public init( - total_count: Swift.Int? = nil, - available_custom_deployment_protection_rule_integrations: [Components.Schemas.custom_hyphen_deployment_hyphen_rule_hyphen_app]? = nil + totalCount: Swift.Int? = nil, + availableCustomDeploymentProtectionRuleIntegrations: [Components.Schemas.CustomDeploymentRuleApp]? = nil ) { - self.total_count = total_count - self.available_custom_deployment_protection_rule_integrations = available_custom_deployment_protection_rule_integrations + self.totalCount = totalCount + self.availableCustomDeploymentProtectionRuleIntegrations = availableCustomDeploymentProtectionRuleIntegrations } public enum CodingKeys: String, CodingKey { - case total_count - case available_custom_deployment_protection_rule_integrations + case totalCount = "total_count" + case availableCustomDeploymentProtectionRuleIntegrations = "available_custom_deployment_protection_rule_integrations" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body.jsonPayload) + case json(Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -45668,12 +45904,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body + public var body: Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok.Body) { + public init(body: Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok.Body) { self.body = body } } @@ -45682,12 +45918,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps/get(repos/list-custom-deployment-rule-integrations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok) + case ok(Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_custom_hyphen_deployment_hyphen_rule_hyphen_integrations.Output.Ok { + public var ok: Operations.ReposListCustomDeploymentRuleIntegrations.Output.Ok { get throws { switch self { case let .ok(response): @@ -45741,7 +45977,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/get(repos/get-custom-deployment-protection-rule)`. - public enum repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule { + public enum ReposGetCustomDeploymentProtectionRule { public static let id: Swift.String = "repos/get-custom-deployment-protection-rule" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/path`. @@ -45749,59 +45985,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The unique identifier of the protection rule. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/path/protection_rule_id`. - public var protection_rule_id: Components.Parameters.protection_hyphen_rule_hyphen_id + public var protectionRuleId: Components.Parameters.ProtectionRuleId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. - /// - protection_rule_id: The unique identifier of the protection rule. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - protectionRuleId: The unique identifier of the protection rule. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - environment_name: Components.Parameters.environment_hyphen_name, - protection_rule_id: Components.Parameters.protection_hyphen_rule_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + environmentName: Components.Parameters.EnvironmentName, + protectionRuleId: Components.Parameters.ProtectionRuleId ) { self.owner = owner self.repo = repo - self.environment_name = environment_name - self.protection_rule_id = protection_rule_id + self.environmentName = environmentName + self.protectionRuleId = protectionRuleId } } - public var path: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path + public var path: Operations.ReposGetCustomDeploymentProtectionRule.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers + public var headers: Operations.ReposGetCustomDeploymentProtectionRule.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path, - headers: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Headers = .init() + path: Operations.ReposGetCustomDeploymentProtectionRule.Input.Path, + headers: Operations.ReposGetCustomDeploymentProtectionRule.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -45812,12 +46048,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.deployment_hyphen_protection_hyphen_rule) + case json(Components.Schemas.DeploymentProtectionRule) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deployment_hyphen_protection_hyphen_rule { + public var json: Components.Schemas.DeploymentProtectionRule { get throws { switch self { case let .json(body): @@ -45827,12 +46063,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Ok.Body + public var body: Operations.ReposGetCustomDeploymentProtectionRule.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Ok.Body) { + public init(body: Operations.ReposGetCustomDeploymentProtectionRule.Output.Ok.Body) { self.body = body } } @@ -45841,12 +46077,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/get(repos/get-custom-deployment-protection-rule)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Ok) + case ok(Operations.ReposGetCustomDeploymentProtectionRule.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_custom_hyphen_deployment_hyphen_protection_hyphen_rule.Output.Ok { + public var ok: Operations.ReposGetCustomDeploymentProtectionRule.Output.Ok { get throws { switch self { case let .ok(response): @@ -45900,7 +46136,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)`. - public enum repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule { + public enum ReposDisableDeploymentProtectionRule { public static let id: Swift.String = "repos/disable-deployment-protection-rule" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/DELETE/path`. @@ -45908,44 +46144,44 @@ public enum Operations { /// The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/DELETE/path/environment_name`. - public var environment_name: Components.Parameters.environment_hyphen_name + public var environmentName: Components.Parameters.EnvironmentName /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The unique identifier of the protection rule. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/DELETE/path/protection_rule_id`. - public var protection_rule_id: Components.Parameters.protection_hyphen_rule_hyphen_id + public var protectionRuleId: Components.Parameters.ProtectionRuleId /// Creates a new `Path`. /// /// - Parameters: - /// - environment_name: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. + /// - environmentName: The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - owner: The account owner of the repository. The name is not case sensitive. - /// - protection_rule_id: The unique identifier of the protection rule. + /// - protectionRuleId: The unique identifier of the protection rule. public init( - environment_name: Components.Parameters.environment_hyphen_name, - repo: Components.Parameters.repo, - owner: Components.Parameters.owner, - protection_rule_id: Components.Parameters.protection_hyphen_rule_hyphen_id + environmentName: Components.Parameters.EnvironmentName, + repo: Components.Parameters.Repo, + owner: Components.Parameters.Owner, + protectionRuleId: Components.Parameters.ProtectionRuleId ) { - self.environment_name = environment_name + self.environmentName = environmentName self.repo = repo self.owner = owner - self.protection_rule_id = protection_rule_id + self.protectionRuleId = protectionRuleId } } - public var path: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path + public var path: Operations.ReposDisableDeploymentProtectionRule.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Input.Path) { + public init(path: Operations.ReposDisableDeploymentProtectionRule.Input.Path) { self.path = path } } @@ -45959,12 +46195,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Output.NoContent) + case noContent(Operations.ReposDisableDeploymentProtectionRule.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}/delete(repos/disable-deployment-protection-rule)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_disable_hyphen_deployment_hyphen_protection_hyphen_rule.Output.NoContent { + public var noContent: Operations.ReposDisableDeploymentProtectionRule.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -45989,7 +46233,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)`. - public enum repos_sol_list_hyphen_forks { + public enum ReposListForks { public static let id: Swift.String = "repos/list-forks" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/path`. @@ -45997,29 +46241,29 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_forks.Input.Path + public var path: Operations.ReposListForks.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case newest = "newest" case oldest = "oldest" case stargazers = "stargazers" @@ -46028,44 +46272,44 @@ public enum Operations { /// The sort order. `stargazers` will sort by star count. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/query/sort`. - public var sort: Operations.repos_sol_list_hyphen_forks.Input.Query.sortPayload? + public var sort: Operations.ReposListForks.Input.Query.SortPayload? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - sort: The sort order. `stargazers` will sort by star count. - /// - 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)." + /// - perPage: 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)." public init( - sort: Operations.repos_sol_list_hyphen_forks.Input.Query.sortPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.ReposListForks.Input.Query.SortPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.sort = sort - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_forks.Input.Query + public var query: Operations.ReposListForks.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_forks.Input.Headers + public var headers: Operations.ReposListForks.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -46073,9 +46317,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_forks.Input.Path, - query: Operations.repos_sol_list_hyphen_forks.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_forks.Input.Headers = .init() + path: Operations.ReposListForks.Input.Path, + query: Operations.ReposListForks.Input.Query = .init(), + headers: Operations.ReposListForks.Input.Headers = .init() ) { self.path = path self.query = query @@ -46087,26 +46331,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_forks.Output.Ok.Headers + public var headers: Operations.ReposListForks.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -46116,15 +46360,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_forks.Output.Ok.Body + public var body: Operations.ReposListForks.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_forks.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_forks.Output.Ok.Body + headers: Operations.ReposListForks.Output.Ok.Headers = .init(), + body: Operations.ReposListForks.Output.Ok.Body ) { self.headers = headers self.body = body @@ -46135,12 +46379,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_forks.Output.Ok) + case ok(Operations.ReposListForks.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_forks.Output.Ok { + public var ok: Operations.ReposListForks.Output.Ok { get throws { switch self { case let .ok(response): @@ -46158,12 +46402,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/get(repos/list-forks)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -46183,14 +46427,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -46201,14 +46445,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -46225,7 +46469,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)`. - public enum repos_sol_create_hyphen_fork { + public enum ReposCreateFork { public static let id: Swift.String = "repos/create-fork" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/path`. @@ -46233,41 +46477,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_fork.Input.Path + public var path: Operations.ReposCreateFork.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_fork.Input.Headers + public var headers: Operations.ReposCreateFork.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Optional parameter to specify the organization name if forking into an organization. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/requestBody/json/organization`. @@ -46279,32 +46523,32 @@ public enum Operations { /// When forking from an existing repository, fork with only the default branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/requestBody/json/default_branch_only`. - public var default_branch_only: Swift.Bool? - /// Creates a new `jsonPayload`. + public var defaultBranchOnly: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - organization: Optional parameter to specify the organization name if forking into an organization. /// - name: When forking from an existing repository, a new name for the fork. - /// - default_branch_only: When forking from an existing repository, fork with only the default branch. + /// - defaultBranchOnly: When forking from an existing repository, fork with only the default branch. public init( organization: Swift.String? = nil, name: Swift.String? = nil, - default_branch_only: Swift.Bool? = nil + defaultBranchOnly: Swift.Bool? = nil ) { self.organization = organization self.name = name - self.default_branch_only = default_branch_only + self.defaultBranchOnly = defaultBranchOnly } public enum CodingKeys: String, CodingKey { case organization case name - case default_branch_only + case defaultBranchOnly = "default_branch_only" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_fork.Input.Body.jsonPayload) + case json(Operations.ReposCreateFork.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_fork.Input.Body? + public var body: Operations.ReposCreateFork.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -46312,9 +46556,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_fork.Input.Path, - headers: Operations.repos_sol_create_hyphen_fork.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_fork.Input.Body? = nil + path: Operations.ReposCreateFork.Input.Path, + headers: Operations.ReposCreateFork.Input.Headers = .init(), + body: Operations.ReposCreateFork.Input.Body? = nil ) { self.path = path self.headers = headers @@ -46326,12 +46570,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/forks/POST/responses/202/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -46341,12 +46585,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_fork.Output.Accepted.Body + public var body: Operations.ReposCreateFork.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_fork.Output.Accepted.Body) { + public init(body: Operations.ReposCreateFork.Output.Accepted.Body) { self.body = body } } @@ -46355,12 +46599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.repos_sol_create_hyphen_fork.Output.Accepted) + case accepted(Operations.ReposCreateFork.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.repos_sol_create_hyphen_fork.Output.Accepted { + public var accepted: Operations.ReposCreateFork.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -46378,12 +46622,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -46401,12 +46645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -46424,12 +46668,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -46447,12 +46691,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/forks/post(repos/create-fork)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -46472,14 +46716,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -46490,14 +46734,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -46508,7 +46752,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)`. - public enum repos_sol_list_hyphen_webhooks { + public enum ReposListWebhooks { public static let id: Swift.String = "repos/list-webhooks" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/path`. @@ -46516,61 +46760,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_webhooks.Input.Path + public var path: Operations.ReposListWebhooks.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_webhooks.Input.Query + public var query: Operations.ReposListWebhooks.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_webhooks.Input.Headers + public var headers: Operations.ReposListWebhooks.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -46578,9 +46822,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_webhooks.Input.Path, - query: Operations.repos_sol_list_hyphen_webhooks.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_webhooks.Input.Headers = .init() + path: Operations.ReposListWebhooks.Input.Path, + query: Operations.ReposListWebhooks.Input.Query = .init(), + headers: Operations.ReposListWebhooks.Input.Headers = .init() ) { self.path = path self.query = query @@ -46592,26 +46836,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Headers + public var headers: Operations.ReposListWebhooks.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.hook]) + case json([Components.Schemas.Hook]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.hook] { + public var json: [Components.Schemas.Hook] { get throws { switch self { case let .json(body): @@ -46621,15 +46865,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Body + public var body: Operations.ReposListWebhooks.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_webhooks.Output.Ok.Body + headers: Operations.ReposListWebhooks.Output.Ok.Headers = .init(), + body: Operations.ReposListWebhooks.Output.Ok.Body ) { self.headers = headers self.body = body @@ -46640,12 +46884,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_webhooks.Output.Ok) + case ok(Operations.ReposListWebhooks.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_webhooks.Output.Ok { + public var ok: Operations.ReposListWebhooks.Output.Ok { get throws { switch self { case let .ok(response): @@ -46663,12 +46907,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/get(repos/list-webhooks)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -46719,7 +46963,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)`. - public enum repos_sol_create_hyphen_webhook { + public enum ReposCreateWebhook { public static let id: Swift.String = "repos/create-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/path`. @@ -46727,41 +46971,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_webhook.Input.Path + public var path: Operations.ReposCreateWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_webhook.Input.Headers + public var headers: Operations.ReposCreateWebhook.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/name`. @@ -46769,44 +47013,44 @@ public enum Operations { /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config`. - public struct configPayload: Codable, Hashable, Sendable { + public struct ConfigPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `configPayload`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `ConfigPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } } /// Key/value pairs to provide settings for this webhook. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/config`. - public var config: Operations.repos_sol_create_hyphen_webhook.Input.Body.jsonPayload.configPayload? + public var config: Operations.ReposCreateWebhook.Input.Body.JsonPayload.ConfigPayload? /// Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/events`. @@ -46815,7 +47059,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/json/active`. public var active: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. @@ -46824,7 +47068,7 @@ public enum Operations { /// - active: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. public init( name: Swift.String? = nil, - config: Operations.repos_sol_create_hyphen_webhook.Input.Body.jsonPayload.configPayload? = nil, + config: Operations.ReposCreateWebhook.Input.Body.JsonPayload.ConfigPayload? = nil, events: [Swift.String]? = nil, active: Swift.Bool? = nil ) { @@ -46841,19 +47085,19 @@ public enum Operations { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - config = try container.decodeIfPresent( - Operations.repos_sol_create_hyphen_webhook.Input.Body.jsonPayload.configPayload.self, + self.config = try container.decodeIfPresent( + Operations.ReposCreateWebhook.Input.Body.JsonPayload.ConfigPayload.self, forKey: .config ) - events = try container.decodeIfPresent( + self.events = try container.decodeIfPresent( [Swift.String].self, forKey: .events ) - active = try container.decodeIfPresent( + self.active = try container.decodeIfPresent( Swift.Bool.self, forKey: .active ) @@ -46866,9 +47110,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_webhook.Input.Body.jsonPayload) + case json(Operations.ReposCreateWebhook.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_webhook.Input.Body? + public var body: Operations.ReposCreateWebhook.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -46876,9 +47120,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_create_hyphen_webhook.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_webhook.Input.Body? = nil + path: Operations.ReposCreateWebhook.Input.Path, + headers: Operations.ReposCreateWebhook.Input.Headers = .init(), + body: Operations.ReposCreateWebhook.Input.Body? = nil ) { self.path = path self.headers = headers @@ -46890,26 +47134,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_webhook.Output.Created.Headers + public var headers: Operations.ReposCreateWebhook.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/POST/responses/201/content/application\/json`. - case json(Components.Schemas.hook) + case json(Components.Schemas.Hook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook { + public var json: Components.Schemas.Hook { get throws { switch self { case let .json(body): @@ -46919,15 +47163,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_webhook.Output.Created.Body + public var body: Operations.ReposCreateWebhook.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_webhook.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_webhook.Output.Created.Body + headers: Operations.ReposCreateWebhook.Output.Created.Headers = .init(), + body: Operations.ReposCreateWebhook.Output.Created.Body ) { self.headers = headers self.body = body @@ -46938,12 +47182,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_webhook.Output.Created) + case created(Operations.ReposCreateWebhook.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_webhook.Output.Created { + public var created: Operations.ReposCreateWebhook.Output.Created { get throws { switch self { case let .created(response): @@ -46961,12 +47205,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -46984,12 +47228,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -47007,12 +47251,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/post(repos/create-webhook)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -47062,7 +47306,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)`. - public enum repos_sol_get_hyphen_webhook { + public enum ReposGetWebhook { public static let id: Swift.String = "repos/get-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/path`. @@ -47070,52 +47314,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_get_hyphen_webhook.Input.Path + public var path: Operations.ReposGetWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_webhook.Input.Headers + public var headers: Operations.ReposGetWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook.Input.Headers = .init() + path: Operations.ReposGetWebhook.Input.Path, + headers: Operations.ReposGetWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -47126,12 +47370,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.hook) + case json(Components.Schemas.Hook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook { + public var json: Components.Schemas.Hook { get throws { switch self { case let .json(body): @@ -47141,12 +47385,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_webhook.Output.Ok.Body + public var body: Operations.ReposGetWebhook.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_webhook.Output.Ok.Body) { + public init(body: Operations.ReposGetWebhook.Output.Ok.Body) { self.body = body } } @@ -47155,12 +47399,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_webhook.Output.Ok) + case ok(Operations.ReposGetWebhook.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_webhook.Output.Ok { + public var ok: Operations.ReposGetWebhook.Output.Ok { get throws { switch self { case let .ok(response): @@ -47178,12 +47422,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/get(repos/get-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -47233,7 +47477,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)`. - public enum repos_sol_update_hyphen_webhook { + public enum ReposUpdateWebhook { public static let id: Swift.String = "repos/update-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/path`. @@ -47241,50 +47485,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_update_hyphen_webhook.Input.Path + public var path: Operations.ReposUpdateWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_webhook.Input.Headers + public var headers: Operations.ReposUpdateWebhook.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json/config`. - public var config: Components.Schemas.webhook_hyphen_config? + public var config: Components.Schemas.WebhookConfig? /// Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json/events`. @@ -47292,48 +47536,48 @@ public enum Operations { /// Determines a list of events to be added to the list of events that the Hook triggers for. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json/add_events`. - public var add_events: [Swift.String]? + public var addEvents: [Swift.String]? /// Determines a list of events to be removed from the list of events that the Hook triggers for. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json/remove_events`. - public var remove_events: [Swift.String]? + public var removeEvents: [Swift.String]? /// Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/json/active`. public var active: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - config: /// - events: Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events. - /// - add_events: Determines a list of events to be added to the list of events that the Hook triggers for. - /// - remove_events: Determines a list of events to be removed from the list of events that the Hook triggers for. + /// - addEvents: Determines a list of events to be added to the list of events that the Hook triggers for. + /// - removeEvents: Determines a list of events to be removed from the list of events that the Hook triggers for. /// - active: Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. public init( - config: Components.Schemas.webhook_hyphen_config? = nil, + config: Components.Schemas.WebhookConfig? = nil, events: [Swift.String]? = nil, - add_events: [Swift.String]? = nil, - remove_events: [Swift.String]? = nil, + addEvents: [Swift.String]? = nil, + removeEvents: [Swift.String]? = nil, active: Swift.Bool? = nil ) { self.config = config self.events = events - self.add_events = add_events - self.remove_events = remove_events + self.addEvents = addEvents + self.removeEvents = removeEvents self.active = active } public enum CodingKeys: String, CodingKey { case config case events - case add_events - case remove_events + case addEvents = "add_events" + case removeEvents = "remove_events" case active } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_webhook.Input.Body.jsonPayload) + case json(Operations.ReposUpdateWebhook.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_webhook.Input.Body + public var body: Operations.ReposUpdateWebhook.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -47341,9 +47585,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_update_hyphen_webhook.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_webhook.Input.Body + path: Operations.ReposUpdateWebhook.Input.Path, + headers: Operations.ReposUpdateWebhook.Input.Headers = .init(), + body: Operations.ReposUpdateWebhook.Input.Body ) { self.path = path self.headers = headers @@ -47355,12 +47599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.hook) + case json(Components.Schemas.Hook) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook { + public var json: Components.Schemas.Hook { get throws { switch self { case let .json(body): @@ -47370,12 +47614,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_webhook.Output.Ok.Body + public var body: Operations.ReposUpdateWebhook.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_webhook.Output.Ok.Body) { + public init(body: Operations.ReposUpdateWebhook.Output.Ok.Body) { self.body = body } } @@ -47384,12 +47628,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_webhook.Output.Ok) + case ok(Operations.ReposUpdateWebhook.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_webhook.Output.Ok { + public var ok: Operations.ReposUpdateWebhook.Output.Ok { get throws { switch self { case let .ok(response): @@ -47407,12 +47651,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -47430,12 +47674,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/patch(repos/update-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -47487,7 +47731,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/hooks/{hook_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)`. - public enum repos_sol_delete_hyphen_webhook { + public enum ReposDeleteWebhook { public static let id: Swift.String = "repos/delete-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/DELETE/path`. @@ -47495,52 +47739,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/DELETE/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_delete_hyphen_webhook.Input.Path + public var path: Operations.ReposDeleteWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_webhook.Input.Headers + public var headers: Operations.ReposDeleteWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_delete_hyphen_webhook.Input.Headers = .init() + path: Operations.ReposDeleteWebhook.Input.Path, + headers: Operations.ReposDeleteWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -47556,12 +47800,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_webhook.Output.NoContent) + case noContent(Operations.ReposDeleteWebhook.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_webhook.Output.NoContent { + public var noContent: Operations.ReposDeleteWebhook.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -47579,12 +47831,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/delete(repos/delete-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -47636,7 +47888,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/get(repos/get-webhook-config-for-repo)`. - public enum repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo { + public enum ReposGetWebhookConfigForRepo { public static let id: Swift.String = "repos/get-webhook-config-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/path`. @@ -47644,52 +47896,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ReposGetWebhookConfigForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ReposGetWebhookConfigForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.ReposGetWebhookConfigForRepo.Input.Path, + headers: Operations.ReposGetWebhookConfigForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -47700,12 +47952,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/GET/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -47715,12 +47967,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ReposGetWebhookConfigForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.ReposGetWebhookConfigForRepo.Output.Ok.Body) { self.body = body } } @@ -47729,12 +47981,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/get(repos/get-webhook-config-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ReposGetWebhookConfigForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ReposGetWebhookConfigForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -47786,7 +48038,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/patch(repos/update-webhook-config-for-repo)`. - public enum repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo { + public enum ReposUpdateWebhookConfigForRepo { public static let id: Swift.String = "repos/update-webhook-config-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/path`. @@ -47794,97 +48046,97 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.ReposUpdateWebhookConfigForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.ReposUpdateWebhookConfigForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/json/url`. - public var url: Components.Schemas.webhook_hyphen_config_hyphen_url? + public var url: Components.Schemas.WebhookConfigUrl? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/json/content_type`. - public var content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? + public var contentType: Components.Schemas.WebhookConfigContentType? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/json/secret`. - public var secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? + public var secret: Components.Schemas.WebhookConfigSecret? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/json/insecure_ssl`. - public var insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? - /// Creates a new `jsonPayload`. + public var insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - url: - /// - content_type: + /// - contentType: /// - secret: - /// - insecure_ssl: + /// - insecureSsl: public init( - url: Components.Schemas.webhook_hyphen_config_hyphen_url? = nil, - content_type: Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type? = nil, - secret: Components.Schemas.webhook_hyphen_config_hyphen_secret? = nil, - insecure_ssl: Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl? = nil + url: Components.Schemas.WebhookConfigUrl? = nil, + contentType: Components.Schemas.WebhookConfigContentType? = nil, + secret: Components.Schemas.WebhookConfigSecret? = nil, + insecureSsl: Components.Schemas.WebhookConfigInsecureSsl? = nil ) { self.url = url - self.content_type = content_type + self.contentType = contentType self.secret = secret - self.insecure_ssl = insecure_ssl + self.insecureSsl = insecureSsl } public enum CodingKeys: String, CodingKey { case url - case content_type + case contentType = "content_type" case secret - case insecure_ssl + case insecureSsl = "insecure_ssl" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - url = try container.decodeIfPresent( - Components.Schemas.webhook_hyphen_config_hyphen_url.self, + self.url = try container.decodeIfPresent( + Components.Schemas.WebhookConfigUrl.self, forKey: .url ) - content_type = try container.decodeIfPresent( - Components.Schemas.webhook_hyphen_config_hyphen_content_hyphen_type.self, - forKey: .content_type + self.contentType = try container.decodeIfPresent( + Components.Schemas.WebhookConfigContentType.self, + forKey: .contentType ) - secret = try container.decodeIfPresent( - Components.Schemas.webhook_hyphen_config_hyphen_secret.self, + self.secret = try container.decodeIfPresent( + Components.Schemas.WebhookConfigSecret.self, forKey: .secret ) - insecure_ssl = try container.decodeIfPresent( - Components.Schemas.webhook_hyphen_config_hyphen_insecure_hyphen_ssl.self, - forKey: .insecure_ssl + self.insecureSsl = try container.decodeIfPresent( + Components.Schemas.WebhookConfigInsecureSsl.self, + forKey: .insecureSsl ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "url", @@ -47895,9 +48147,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Body.jsonPayload) + case json(Operations.ReposUpdateWebhookConfigForRepo.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Body? + public var body: Operations.ReposUpdateWebhookConfigForRepo.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -47905,9 +48157,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Input.Body? = nil + path: Operations.ReposUpdateWebhookConfigForRepo.Input.Path, + headers: Operations.ReposUpdateWebhookConfigForRepo.Input.Headers = .init(), + body: Operations.ReposUpdateWebhookConfigForRepo.Input.Body? = nil ) { self.path = path self.headers = headers @@ -47919,12 +48171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/config/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.webhook_hyphen_config) + case json(Components.Schemas.WebhookConfig) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.webhook_hyphen_config { + public var json: Components.Schemas.WebhookConfig { get throws { switch self { case let .json(body): @@ -47934,12 +48186,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.ReposUpdateWebhookConfigForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.ReposUpdateWebhookConfigForRepo.Output.Ok.Body) { self.body = body } } @@ -47948,12 +48200,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/config/patch(repos/update-webhook-config-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.ReposUpdateWebhookConfigForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_webhook_hyphen_config_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.ReposUpdateWebhookConfigForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -48003,7 +48255,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)`. - public enum repos_sol_list_hyphen_webhook_hyphen_deliveries { + public enum ReposListWebhookDeliveries { public static let id: Swift.String = "repos/list-webhook-deliveries" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/path`. @@ -48011,68 +48263,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path + public var path: Operations.ReposListWebhookDeliveries.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/query/cursor`. - public var cursor: Components.Parameters.cursor? + public var cursor: Components.Parameters.Cursor? /// 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)." + /// - perPage: 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)." /// - cursor: Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - cursor: Components.Parameters.cursor? = nil + perPage: Components.Parameters.PerPage? = nil, + cursor: Components.Parameters.Cursor? = nil ) { - self.per_page = per_page + self.perPage = perPage self.cursor = cursor } } - public var query: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query + public var query: Operations.ReposListWebhookDeliveries.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers + public var headers: Operations.ReposListWebhookDeliveries.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -48080,9 +48332,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Path, - query: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Input.Headers = .init() + path: Operations.ReposListWebhookDeliveries.Input.Path, + query: Operations.ReposListWebhookDeliveries.Input.Query = .init(), + headers: Operations.ReposListWebhookDeliveries.Input.Headers = .init() ) { self.path = path self.query = query @@ -48094,12 +48346,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/GET/responses/200/content/application\/json`. - case json([Components.Schemas.hook_hyphen_delivery_hyphen_item]) + case json([Components.Schemas.HookDeliveryItem]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.hook_hyphen_delivery_hyphen_item] { + public var json: [Components.Schemas.HookDeliveryItem] { get throws { switch self { case let .json(body): @@ -48109,12 +48361,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body + public var body: Operations.ReposListWebhookDeliveries.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok.Body) { + public init(body: Operations.ReposListWebhookDeliveries.Output.Ok.Body) { self.body = body } } @@ -48123,12 +48375,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok) + case ok(Operations.ReposListWebhookDeliveries.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_webhook_hyphen_deliveries.Output.Ok { + public var ok: Operations.ReposListWebhookDeliveries.Output.Ok { get throws { switch self { case let .ok(response): @@ -48146,12 +48398,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -48169,12 +48421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/get(repos/list-webhook-deliveries)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -48194,14 +48446,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -48212,14 +48464,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -48230,7 +48482,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)`. - public enum repos_sol_get_hyphen_webhook_hyphen_delivery { + public enum ReposGetWebhookDelivery { public static let id: Swift.String = "repos/get-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path`. @@ -48238,57 +48490,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// - delivery_id: + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - deliveryId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id, - delivery_id: Components.Parameters.delivery_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId, + deliveryId: Components.Parameters.DeliveryId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id - self.delivery_id = delivery_id + self.hookId = hookId + self.deliveryId = deliveryId } } - public var path: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.ReposGetWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.ReposGetWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.ReposGetWebhookDelivery.Input.Path, + headers: Operations.ReposGetWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -48299,12 +48551,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.hook_hyphen_delivery) + case json(Components.Schemas.HookDelivery) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hook_hyphen_delivery { + public var json: Components.Schemas.HookDelivery { get throws { switch self { case let .json(body): @@ -48314,12 +48566,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body + public var body: Operations.ReposGetWebhookDelivery.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok.Body) { + public init(body: Operations.ReposGetWebhookDelivery.Output.Ok.Body) { self.body = body } } @@ -48328,12 +48580,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok) + case ok(Operations.ReposGetWebhookDelivery.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_webhook_hyphen_delivery.Output.Ok { + public var ok: Operations.ReposGetWebhookDelivery.Output.Ok { get throws { switch self { case let .ok(response): @@ -48351,12 +48603,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -48374,12 +48626,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/get(repos/get-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -48399,14 +48651,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -48417,14 +48669,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -48435,7 +48687,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)`. - public enum repos_sol_redeliver_hyphen_webhook_hyphen_delivery { + public enum ReposRedeliverWebhookDelivery { public static let id: Swift.String = "repos/redeliver-webhook-delivery" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path`. @@ -48443,57 +48695,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/path/delivery_id`. - public var delivery_id: Components.Parameters.delivery_hyphen_id + public var deliveryId: Components.Parameters.DeliveryId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. - /// - delivery_id: + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - deliveryId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id, - delivery_id: Components.Parameters.delivery_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId, + deliveryId: Components.Parameters.DeliveryId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id - self.delivery_id = delivery_id + self.hookId = hookId + self.deliveryId = deliveryId } } - public var path: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path + public var path: Operations.ReposRedeliverWebhookDelivery.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers + public var headers: Operations.ReposRedeliverWebhookDelivery.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Path, - headers: Operations.repos_sol_redeliver_hyphen_webhook_hyphen_delivery.Input.Headers = .init() + path: Operations.ReposRedeliverWebhookDelivery.Input.Path, + headers: Operations.ReposRedeliverWebhookDelivery.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -48505,12 +48757,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -48528,12 +48780,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -48551,12 +48803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts/post(repos/redeliver-webhook-delivery)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -48576,14 +48828,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -48594,14 +48846,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -48612,7 +48864,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)`. - public enum repos_sol_ping_hyphen_webhook { + public enum ReposPingWebhook { public static let id: Swift.String = "repos/ping-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/pings/POST/path`. @@ -48620,52 +48872,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/pings/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/pings/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/pings/POST/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_ping_hyphen_webhook.Input.Path + public var path: Operations.ReposPingWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/pings/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_ping_hyphen_webhook.Input.Headers + public var headers: Operations.ReposPingWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_ping_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_ping_hyphen_webhook.Input.Headers = .init() + path: Operations.ReposPingWebhook.Input.Path, + headers: Operations.ReposPingWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -48681,12 +48933,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_ping_hyphen_webhook.Output.NoContent) + case noContent(Operations.ReposPingWebhook.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_ping_hyphen_webhook.Output.NoContent { + public var noContent: Operations.ReposPingWebhook.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -48704,12 +48964,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/pings/post(repos/ping-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -48762,7 +49022,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)`. - public enum repos_sol_test_hyphen_push_hyphen_webhook { + public enum ReposTestPushWebhook { public static let id: Swift.String = "repos/test-push-webhook" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/tests/POST/path`. @@ -48770,52 +49030,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/tests/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/tests/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/tests/POST/path/hook_id`. - public var hook_id: Components.Parameters.hook_hyphen_id + public var hookId: Components.Parameters.HookId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - hook_id: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. + /// - hookId: The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - hook_id: Components.Parameters.hook_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + hookId: Components.Parameters.HookId ) { self.owner = owner self.repo = repo - self.hook_id = hook_id + self.hookId = hookId } } - public var path: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Path + public var path: Operations.ReposTestPushWebhook.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/hooks/{hook_id}/tests/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Headers + public var headers: Operations.ReposTestPushWebhook.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Path, - headers: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Input.Headers = .init() + path: Operations.ReposTestPushWebhook.Input.Path, + headers: Operations.ReposTestPushWebhook.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -48831,12 +49091,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_test_hyphen_push_hyphen_webhook.Output.NoContent) + case noContent(Operations.ReposTestPushWebhook.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_test_hyphen_push_hyphen_webhook.Output.NoContent { + public var noContent: Operations.ReposTestPushWebhook.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -48854,12 +49122,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hooks/{hook_id}/tests/post(repos/test-push-webhook)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -48909,7 +49177,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/invitations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/get(repos/list-invitations)`. - public enum repos_sol_list_hyphen_invitations { + public enum ReposListInvitations { public static let id: Swift.String = "repos/list-invitations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/path`. @@ -48917,61 +49185,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_invitations.Input.Path + public var path: Operations.ReposListInvitations.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_invitations.Input.Query + public var query: Operations.ReposListInvitations.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_invitations.Input.Headers + public var headers: Operations.ReposListInvitations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -48979,9 +49247,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_invitations.Input.Path, - query: Operations.repos_sol_list_hyphen_invitations.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_invitations.Input.Headers = .init() + path: Operations.ReposListInvitations.Input.Path, + query: Operations.ReposListInvitations.Input.Query = .init(), + headers: Operations.ReposListInvitations.Input.Headers = .init() ) { self.path = path self.query = query @@ -48993,26 +49261,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Headers + public var headers: Operations.ReposListInvitations.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_invitation]) + case json([Components.Schemas.RepositoryInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_invitation] { + public var json: [Components.Schemas.RepositoryInvitation] { get throws { switch self { case let .json(body): @@ -49022,15 +49290,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Body + public var body: Operations.ReposListInvitations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_invitations.Output.Ok.Body + headers: Operations.ReposListInvitations.Output.Ok.Headers = .init(), + body: Operations.ReposListInvitations.Output.Ok.Body ) { self.headers = headers self.body = body @@ -49041,12 +49309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/get(repos/list-invitations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_invitations.Output.Ok) + case ok(Operations.ReposListInvitations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_invitations.Output.Ok { + public var ok: Operations.ReposListInvitations.Output.Ok { get throws { switch self { case let .ok(response): @@ -49096,7 +49364,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/patch(repos/update-invitation)`. - public enum repos_sol_update_hyphen_invitation { + public enum ReposUpdateInvitation { public static let id: Swift.String = "repos/update-invitation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/path`. @@ -49104,52 +49372,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - invitation_id: The unique identifier of the invitation. + /// - invitationId: The unique identifier of the invitation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - invitation_id: Components.Parameters.invitation_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + invitationId: Components.Parameters.InvitationId ) { self.owner = owner self.repo = repo - self.invitation_id = invitation_id + self.invitationId = invitationId } } - public var path: Operations.repos_sol_update_hyphen_invitation.Input.Path + public var path: Operations.ReposUpdateInvitation.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_invitation.Input.Headers + public var headers: Operations.ReposUpdateInvitation.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/requestBody/json/permissions`. - @frozen public enum permissionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case maintain = "maintain" @@ -49159,12 +49427,12 @@ public enum Operations { /// The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/requestBody/json/permissions`. - public var permissions: Operations.repos_sol_update_hyphen_invitation.Input.Body.jsonPayload.permissionsPayload? - /// Creates a new `jsonPayload`. + public var permissions: Operations.ReposUpdateInvitation.Input.Body.JsonPayload.PermissionsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permissions: The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. - public init(permissions: Operations.repos_sol_update_hyphen_invitation.Input.Body.jsonPayload.permissionsPayload? = nil) { + public init(permissions: Operations.ReposUpdateInvitation.Input.Body.JsonPayload.PermissionsPayload? = nil) { self.permissions = permissions } public enum CodingKeys: String, CodingKey { @@ -49172,9 +49440,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_invitation.Input.Body.jsonPayload) + case json(Operations.ReposUpdateInvitation.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_invitation.Input.Body? + public var body: Operations.ReposUpdateInvitation.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -49182,9 +49450,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_invitation.Input.Path, - headers: Operations.repos_sol_update_hyphen_invitation.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_invitation.Input.Body? = nil + path: Operations.ReposUpdateInvitation.Input.Path, + headers: Operations.ReposUpdateInvitation.Input.Headers = .init(), + body: Operations.ReposUpdateInvitation.Input.Body? = nil ) { self.path = path self.headers = headers @@ -49196,12 +49464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_invitation) + case json(Components.Schemas.RepositoryInvitation) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_invitation { + public var json: Components.Schemas.RepositoryInvitation { get throws { switch self { case let .json(body): @@ -49211,12 +49479,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_invitation.Output.Ok.Body + public var body: Operations.ReposUpdateInvitation.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_invitation.Output.Ok.Body) { + public init(body: Operations.ReposUpdateInvitation.Output.Ok.Body) { self.body = body } } @@ -49225,12 +49493,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/patch(repos/update-invitation)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_invitation.Output.Ok) + case ok(Operations.ReposUpdateInvitation.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_invitation.Output.Ok { + public var ok: Operations.ReposUpdateInvitation.Output.Ok { get throws { switch self { case let .ok(response): @@ -49280,7 +49548,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)`. - public enum repos_sol_delete_hyphen_invitation { + public enum ReposDeleteInvitation { public static let id: Swift.String = "repos/delete-invitation" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/DELETE/path`. @@ -49288,37 +49556,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/invitations/{invitation_id}/DELETE/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - invitation_id: The unique identifier of the invitation. + /// - invitationId: The unique identifier of the invitation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - invitation_id: Components.Parameters.invitation_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + invitationId: Components.Parameters.InvitationId ) { self.owner = owner self.repo = repo - self.invitation_id = invitation_id + self.invitationId = invitationId } } - public var path: Operations.repos_sol_delete_hyphen_invitation.Input.Path + public var path: Operations.ReposDeleteInvitation.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_invitation.Input.Path) { + public init(path: Operations.ReposDeleteInvitation.Input.Path) { self.path = path } } @@ -49332,12 +49600,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_invitation.Output.NoContent) + case noContent(Operations.ReposDeleteInvitation.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/invitations/{invitation_id}/delete(repos/delete-invitation)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_invitation.Output.NoContent { + public var noContent: Operations.ReposDeleteInvitation.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -49362,7 +49638,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/get(repos/list-deploy-keys)`. - public enum repos_sol_list_hyphen_deploy_hyphen_keys { + public enum ReposListDeployKeys { public static let id: Swift.String = "repos/list-deploy-keys" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/path`. @@ -49370,61 +49646,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Path + public var path: Operations.ReposListDeployKeys.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Query + public var query: Operations.ReposListDeployKeys.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Headers + public var headers: Operations.ReposListDeployKeys.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -49432,9 +49708,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Path, - query: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Input.Headers = .init() + path: Operations.ReposListDeployKeys.Input.Path, + query: Operations.ReposListDeployKeys.Input.Query = .init(), + headers: Operations.ReposListDeployKeys.Input.Headers = .init() ) { self.path = path self.query = query @@ -49446,26 +49722,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Headers + public var headers: Operations.ReposListDeployKeys.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.deploy_hyphen_key]) + case json([Components.Schemas.DeployKey]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.deploy_hyphen_key] { + public var json: [Components.Schemas.DeployKey] { get throws { switch self { case let .json(body): @@ -49475,15 +49751,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Body + public var body: Operations.ReposListDeployKeys.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok.Body + headers: Operations.ReposListDeployKeys.Output.Ok.Headers = .init(), + body: Operations.ReposListDeployKeys.Output.Ok.Body ) { self.headers = headers self.body = body @@ -49494,12 +49770,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/get(repos/list-deploy-keys)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok) + case ok(Operations.ReposListDeployKeys.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_deploy_hyphen_keys.Output.Ok { + public var ok: Operations.ReposListDeployKeys.Output.Ok { get throws { switch self { case let .ok(response): @@ -49549,7 +49825,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/keys`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)`. - public enum repos_sol_create_hyphen_deploy_hyphen_key { + public enum ReposCreateDeployKey { public static let id: Swift.String = "repos/create-deploy-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/path`. @@ -49557,41 +49833,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Path + public var path: Operations.ReposCreateDeployKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Headers + public var headers: Operations.ReposCreateDeployKey.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A name for the key. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/requestBody/json/title`. @@ -49605,32 +49881,32 @@ public enum Operations { /// Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/requestBody/json/read_only`. - public var read_only: Swift.Bool? - /// Creates a new `jsonPayload`. + public var readOnly: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: A name for the key. /// - key: The contents of the key. - /// - read_only: If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /// - readOnly: If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. public init( title: Swift.String? = nil, key: Swift.String, - read_only: Swift.Bool? = nil + readOnly: Swift.Bool? = nil ) { self.title = title self.key = key - self.read_only = read_only + self.readOnly = readOnly } public enum CodingKeys: String, CodingKey { case title case key - case read_only + case readOnly = "read_only" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Body.jsonPayload) + case json(Operations.ReposCreateDeployKey.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Body + public var body: Operations.ReposCreateDeployKey.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -49638,9 +49914,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Path, - headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Input.Body + path: Operations.ReposCreateDeployKey.Input.Path, + headers: Operations.ReposCreateDeployKey.Input.Headers = .init(), + body: Operations.ReposCreateDeployKey.Input.Body ) { self.path = path self.headers = headers @@ -49652,26 +49928,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Headers + public var headers: Operations.ReposCreateDeployKey.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/POST/responses/201/content/application\/json`. - case json(Components.Schemas.deploy_hyphen_key) + case json(Components.Schemas.DeployKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deploy_hyphen_key { + public var json: Components.Schemas.DeployKey { get throws { switch self { case let .json(body): @@ -49681,15 +49957,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Body + public var body: Operations.ReposCreateDeployKey.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created.Body + headers: Operations.ReposCreateDeployKey.Output.Created.Headers = .init(), + body: Operations.ReposCreateDeployKey.Output.Created.Body ) { self.headers = headers self.body = body @@ -49700,12 +49976,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created) + case created(Operations.ReposCreateDeployKey.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_deploy_hyphen_key.Output.Created { + public var created: Operations.ReposCreateDeployKey.Output.Created { get throws { switch self { case let .created(response): @@ -49723,12 +49999,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/post(repos/create-deploy-key)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -49778,7 +50054,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)`. - public enum repos_sol_get_hyphen_deploy_hyphen_key { + public enum ReposGetDeployKey { public static let id: Swift.String = "repos/get-deploy-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/path`. @@ -49786,52 +50062,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the key. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/path/key_id`. - public var key_id: Components.Parameters.key_hyphen_id + public var keyId: Components.Parameters.KeyId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - key_id: The unique identifier of the key. + /// - keyId: The unique identifier of the key. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - key_id: Components.Parameters.key_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + keyId: Components.Parameters.KeyId ) { self.owner = owner self.repo = repo - self.key_id = key_id + self.keyId = keyId } } - public var path: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Path + public var path: Operations.ReposGetDeployKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Headers + public var headers: Operations.ReposGetDeployKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Path, - headers: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Input.Headers = .init() + path: Operations.ReposGetDeployKey.Input.Path, + headers: Operations.ReposGetDeployKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -49842,12 +50118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.deploy_hyphen_key) + case json(Components.Schemas.DeployKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.deploy_hyphen_key { + public var json: Components.Schemas.DeployKey { get throws { switch self { case let .json(body): @@ -49857,12 +50133,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output.Ok.Body + public var body: Operations.ReposGetDeployKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output.Ok.Body) { + public init(body: Operations.ReposGetDeployKey.Output.Ok.Body) { self.body = body } } @@ -49871,12 +50147,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output.Ok) + case ok(Operations.ReposGetDeployKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_deploy_hyphen_key.Output.Ok { + public var ok: Operations.ReposGetDeployKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -49894,12 +50170,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/get(repos/get-deploy-key)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -49949,7 +50225,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/keys/{key_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)`. - public enum repos_sol_delete_hyphen_deploy_hyphen_key { + public enum ReposDeleteDeployKey { public static let id: Swift.String = "repos/delete-deploy-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/DELETE/path`. @@ -49957,37 +50233,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the key. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/keys/{key_id}/DELETE/path/key_id`. - public var key_id: Components.Parameters.key_hyphen_id + public var keyId: Components.Parameters.KeyId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - key_id: The unique identifier of the key. + /// - keyId: The unique identifier of the key. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - key_id: Components.Parameters.key_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + keyId: Components.Parameters.KeyId ) { self.owner = owner self.repo = repo - self.key_id = key_id + self.keyId = keyId } } - public var path: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input.Path + public var path: Operations.ReposDeleteDeployKey.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Input.Path) { + public init(path: Operations.ReposDeleteDeployKey.Input.Path) { self.path = path } } @@ -50001,12 +50277,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Output.NoContent) + case noContent(Operations.ReposDeleteDeployKey.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/keys/{key_id}/delete(repos/delete-deploy-key)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_deploy_hyphen_key.Output.NoContent { + public var noContent: Operations.ReposDeleteDeployKey.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -50031,7 +50315,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/languages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/languages/get(repos/list-languages)`. - public enum repos_sol_list_hyphen_languages { + public enum ReposListLanguages { public static let id: Swift.String = "repos/list-languages" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/path`. @@ -50039,45 +50323,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_languages.Input.Path + public var path: Operations.ReposListLanguages.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_languages.Input.Headers + public var headers: Operations.ReposListLanguages.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_languages.Input.Path, - headers: Operations.repos_sol_list_hyphen_languages.Input.Headers = .init() + path: Operations.ReposListLanguages.Input.Path, + headers: Operations.ReposListLanguages.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -50088,12 +50372,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/languages/GET/responses/200/content/application\/json`. - case json(Components.Schemas.language) + case json(Components.Schemas.Language) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.language { + public var json: Components.Schemas.Language { get throws { switch self { case let .json(body): @@ -50103,12 +50387,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_languages.Output.Ok.Body + public var body: Operations.ReposListLanguages.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_languages.Output.Ok.Body) { + public init(body: Operations.ReposListLanguages.Output.Ok.Body) { self.body = body } } @@ -50117,12 +50401,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/languages/get(repos/list-languages)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_languages.Output.Ok) + case ok(Operations.ReposListLanguages.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_languages.Output.Ok { + public var ok: Operations.ReposListLanguages.Output.Ok { get throws { switch self { case let .ok(response): @@ -50172,7 +50456,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merge-upstream`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)`. - public enum repos_sol_merge_hyphen_upstream { + public enum ReposMergeUpstream { public static let id: Swift.String = "repos/merge-upstream" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/path`. @@ -50180,46 +50464,46 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_merge_hyphen_upstream.Input.Path + public var path: Operations.ReposMergeUpstream.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_merge_hyphen_upstream.Input.Headers + public var headers: Operations.ReposMergeUpstream.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the branch which should be updated to match upstream. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/requestBody/json/branch`. public var branch: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - branch: The name of the branch which should be updated to match upstream. @@ -50231,9 +50515,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_merge_hyphen_upstream.Input.Body.jsonPayload) + case json(Operations.ReposMergeUpstream.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_merge_hyphen_upstream.Input.Body + public var body: Operations.ReposMergeUpstream.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -50241,9 +50525,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_merge_hyphen_upstream.Input.Path, - headers: Operations.repos_sol_merge_hyphen_upstream.Input.Headers = .init(), - body: Operations.repos_sol_merge_hyphen_upstream.Input.Body + path: Operations.ReposMergeUpstream.Input.Path, + headers: Operations.ReposMergeUpstream.Input.Headers = .init(), + body: Operations.ReposMergeUpstream.Input.Body ) { self.path = path self.headers = headers @@ -50255,12 +50539,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merge-upstream/POST/responses/200/content/application\/json`. - case json(Components.Schemas.merged_hyphen_upstream) + case json(Components.Schemas.MergedUpstream) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.merged_hyphen_upstream { + public var json: Components.Schemas.MergedUpstream { get throws { switch self { case let .json(body): @@ -50270,12 +50554,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_merge_hyphen_upstream.Output.Ok.Body + public var body: Operations.ReposMergeUpstream.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_merge_hyphen_upstream.Output.Ok.Body) { + public init(body: Operations.ReposMergeUpstream.Output.Ok.Body) { self.body = body } } @@ -50284,12 +50568,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_merge_hyphen_upstream.Output.Ok) + case ok(Operations.ReposMergeUpstream.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_merge_hyphen_upstream.Output.Ok { + public var ok: Operations.ReposMergeUpstream.Output.Ok { get throws { switch self { case let .ok(response): @@ -50311,12 +50595,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.repos_sol_merge_hyphen_upstream.Output.Conflict) + case conflict(Operations.ReposMergeUpstream.Output.Conflict) + /// The branch could not be synced because of a merge conflict + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.repos_sol_merge_hyphen_upstream.Output.Conflict { + public var conflict: Operations.ReposMergeUpstream.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -50338,12 +50630,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.repos_sol_merge_hyphen_upstream.Output.UnprocessableContent) + case unprocessableContent(Operations.ReposMergeUpstream.Output.UnprocessableContent) + /// The branch could not be synced for some other reason + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merge-upstream/post(repos/merge-upstream)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.repos_sol_merge_hyphen_upstream.Output.UnprocessableContent { + public var unprocessableContent: Operations.ReposMergeUpstream.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -50393,7 +50693,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/merges`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)`. - public enum repos_sol_merge { + public enum ReposMerge { public static let id: Swift.String = "repos/merge" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/path`. @@ -50401,41 +50701,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_merge.Input.Path + public var path: Operations.ReposMerge.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_merge.Input.Headers + public var headers: Operations.ReposMerge.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the base branch that the head will be merged into. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/requestBody/json/base`. @@ -50447,32 +50747,32 @@ public enum Operations { /// Commit message to use for the merge commit. If omitted, a default message will be used. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/requestBody/json/commit_message`. - public var commit_message: Swift.String? - /// Creates a new `jsonPayload`. + public var commitMessage: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - base: The name of the base branch that the head will be merged into. /// - head: The head to merge. This can be a branch name or a commit SHA1. - /// - commit_message: Commit message to use for the merge commit. If omitted, a default message will be used. + /// - commitMessage: Commit message to use for the merge commit. If omitted, a default message will be used. public init( base: Swift.String, head: Swift.String, - commit_message: Swift.String? = nil + commitMessage: Swift.String? = nil ) { self.base = base self.head = head - self.commit_message = commit_message + self.commitMessage = commitMessage } public enum CodingKeys: String, CodingKey { case base case head - case commit_message + case commitMessage = "commit_message" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_merge.Input.Body.jsonPayload) + case json(Operations.ReposMerge.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_merge.Input.Body + public var body: Operations.ReposMerge.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -50480,9 +50780,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_merge.Input.Path, - headers: Operations.repos_sol_merge.Input.Headers = .init(), - body: Operations.repos_sol_merge.Input.Body + path: Operations.ReposMerge.Input.Path, + headers: Operations.ReposMerge.Input.Headers = .init(), + body: Operations.ReposMerge.Input.Body ) { self.path = path self.headers = headers @@ -50494,12 +50794,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/merges/POST/responses/201/content/application\/json`. - case json(Components.Schemas.commit) + case json(Components.Schemas.Commit) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.commit { + public var json: Components.Schemas.Commit { get throws { switch self { case let .json(body): @@ -50509,12 +50809,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_merge.Output.Created.Body + public var body: Operations.ReposMerge.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_merge.Output.Created.Body) { + public init(body: Operations.ReposMerge.Output.Created.Body) { self.body = body } } @@ -50523,12 +50823,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_merge.Output.Created) + case created(Operations.ReposMerge.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_merge.Output.Created { + public var created: Operations.ReposMerge.Output.Created { get throws { switch self { case let .created(response): @@ -50550,12 +50850,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_merge.Output.NoContent) + case noContent(Operations.ReposMerge.Output.NoContent) + /// Response when already merged + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_merge.Output.NoContent { + public var noContent: Operations.ReposMerge.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -50577,12 +50885,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_merge.Output.NotFound) + case notFound(Operations.ReposMerge.Output.NotFound) + /// Not Found when the base or head does not exist + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_merge.Output.NotFound { + public var notFound: Operations.ReposMerge.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -50604,12 +50920,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.repos_sol_merge.Output.Conflict) + case conflict(Operations.ReposMerge.Output.Conflict) + /// Conflict when there is a merge conflict + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.repos_sol_merge.Output.Conflict { + public var conflict: Operations.ReposMerge.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -50627,12 +50951,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -50650,12 +50974,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/merges/post(repos/merge)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -50707,7 +51031,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)`. - public enum repos_sol_get_hyphen_pages { + public enum ReposGetPages { public static let id: Swift.String = "repos/get-pages" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/path`. @@ -50715,45 +51039,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_pages.Input.Path + public var path: Operations.ReposGetPages.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_pages.Input.Headers + public var headers: Operations.ReposGetPages.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_pages.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages.Input.Headers = .init() + path: Operations.ReposGetPages.Input.Path, + headers: Operations.ReposGetPages.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -50764,12 +51088,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/GET/responses/200/content/application\/json`. - case json(Components.Schemas.page) + case json(Components.Schemas.Page) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page { + public var json: Components.Schemas.Page { get throws { switch self { case let .json(body): @@ -50779,12 +51103,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pages.Output.Ok.Body + public var body: Operations.ReposGetPages.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pages.Output.Ok.Body) { + public init(body: Operations.ReposGetPages.Output.Ok.Body) { self.body = body } } @@ -50793,12 +51117,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_pages.Output.Ok) + case ok(Operations.ReposGetPages.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_pages.Output.Ok { + public var ok: Operations.ReposGetPages.Output.Ok { get throws { switch self { case let .ok(response): @@ -50816,12 +51140,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/get(repos/get-pages)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -50875,7 +51199,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)`. - public enum repos_sol_create_hyphen_pages_hyphen_site { + public enum ReposCreatePagesSite { public static let id: Swift.String = "repos/create-pages-site" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/path`. @@ -50883,65 +51207,65 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Path + public var path: Operations.ReposCreatePagesSite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Headers + public var headers: Operations.ReposCreatePagesSite.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// The source branch and directory used to publish your Pages site. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/json/value1`. public struct Value1Payload: Codable, Hashable, Sendable { /// Creates a new `Value1Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/json/value1`. - public var value1: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value1Payload? + public var value1: Operations.ReposCreatePagesSite.Input.Body.JsonPayload.Value1Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/json/value2`. - public var value2: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.ReposCreatePagesSite.Input.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value1Payload? = nil, - value2: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value2Payload? = nil + value1: Operations.ReposCreatePagesSite.Input.Body.JsonPayload.Value1Payload? = nil, + value2: Operations.ReposCreatePagesSite.Input.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -50949,19 +51273,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -50969,14 +51293,14 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body.jsonPayload) + case json(Operations.ReposCreatePagesSite.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body + public var body: Operations.ReposCreatePagesSite.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -50984,9 +51308,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Input.Body + path: Operations.ReposCreatePagesSite.Input.Path, + headers: Operations.ReposCreatePagesSite.Input.Headers = .init(), + body: Operations.ReposCreatePagesSite.Input.Body ) { self.path = path self.headers = headers @@ -50998,12 +51322,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/POST/responses/201/content/application\/json`. - case json(Components.Schemas.page) + case json(Components.Schemas.Page) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page { + public var json: Components.Schemas.Page { get throws { switch self { case let .json(body): @@ -51013,12 +51337,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Output.Created.Body + public var body: Operations.ReposCreatePagesSite.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_pages_hyphen_site.Output.Created.Body) { + public init(body: Operations.ReposCreatePagesSite.Output.Created.Body) { self.body = body } } @@ -51027,12 +51351,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_pages_hyphen_site.Output.Created) + case created(Operations.ReposCreatePagesSite.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_pages_hyphen_site.Output.Created { + public var created: Operations.ReposCreatePagesSite.Output.Created { get throws { switch self { case let .created(response): @@ -51050,12 +51374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -51073,12 +51397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/post(repos/create-pages-site)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -51132,7 +51456,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)`. - public enum repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site { + public enum ReposUpdateInformationAboutPagesSite { public static let id: Swift.String = "repos/update-information-about-pages-site" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/path`. @@ -51140,77 +51464,77 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Path + public var path: Operations.ReposUpdateInformationAboutPagesSite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Headers + public var headers: Operations.ReposUpdateInformationAboutPagesSite.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value1`. public struct Value1Payload: Codable, Hashable, Sendable { /// Creates a new `Value1Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value1`. - public var value1: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value1Payload? + public var value1: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value1Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value2`. - public var value2: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value2Payload? + public var value2: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value2Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value3`. public struct Value3Payload: Codable, Hashable, Sendable { /// Creates a new `Value3Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value3`. - public var value3: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value3Payload? + public var value3: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value3Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value4`. public struct Value4Payload: Codable, Hashable, Sendable { /// Creates a new `Value4Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value4`. - public var value4: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value4Payload? + public var value4: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value4Payload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value5`. public struct Value5Payload: Codable, Hashable, Sendable { /// Creates a new `Value5Payload`. public init() {} } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/json/value5`. - public var value5: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value5Payload? - /// Creates a new `jsonPayload`. + public var value5: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value5Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: @@ -51219,11 +51543,11 @@ public enum Operations { /// - value4: /// - value5: public init( - value1: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value1Payload? = nil, - value2: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value2Payload? = nil, - value3: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value3Payload? = nil, - value4: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value4Payload? = nil, - value5: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload.Value5Payload? = nil + value1: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value1Payload? = nil, + value2: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value2Payload? = nil, + value3: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value3Payload? = nil, + value4: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value4Payload? = nil, + value5: Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload.Value5Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -51234,37 +51558,37 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } do { - value3 = try .init(from: decoder) + self.value3 = try .init(from: decoder) } catch { errors.append(error) } do { - value4 = try .init(from: decoder) + self.value4 = try .init(from: decoder) } catch { errors.append(error) } do { - value5 = try .init(from: decoder) + self.value5 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2, - value3, - value4, - value5 + self.value1, + self.value2, + self.value3, + self.value4, + self.value5 ], type: Self.self, codingPath: decoder.codingPath, @@ -51272,17 +51596,17 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) - try value3?.encode(to: encoder) - try value4?.encode(to: encoder) - try value5?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) + try self.value3?.encode(to: encoder) + try self.value4?.encode(to: encoder) + try self.value5?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body.jsonPayload) + case json(Operations.ReposUpdateInformationAboutPagesSite.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body + public var body: Operations.ReposUpdateInformationAboutPagesSite.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -51290,9 +51614,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Input.Body + path: Operations.ReposUpdateInformationAboutPagesSite.Input.Path, + headers: Operations.ReposUpdateInformationAboutPagesSite.Input.Headers = .init(), + body: Operations.ReposUpdateInformationAboutPagesSite.Input.Body ) { self.path = path self.headers = headers @@ -51309,12 +51633,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Output.NoContent) + case noContent(Operations.ReposUpdateInformationAboutPagesSite.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_update_hyphen_information_hyphen_about_hyphen_pages_hyphen_site.Output.NoContent { + public var noContent: Operations.ReposUpdateInformationAboutPagesSite.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -51332,12 +51664,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -51355,12 +51687,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -51378,12 +51710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/put(repos/update-information-about-pages-site)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -51403,14 +51735,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -51421,14 +51753,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -51443,7 +51775,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/pages`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)`. - public enum repos_sol_delete_hyphen_pages_hyphen_site { + public enum ReposDeletePagesSite { public static let id: Swift.String = "repos/delete-pages-site" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/DELETE/path`. @@ -51451,45 +51783,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Path + public var path: Operations.ReposDeletePagesSite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Headers + public var headers: Operations.ReposDeletePagesSite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Path, - headers: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Input.Headers = .init() + path: Operations.ReposDeletePagesSite.Input.Path, + headers: Operations.ReposDeletePagesSite.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -51505,12 +51837,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_pages_hyphen_site.Output.NoContent) + case noContent(Operations.ReposDeletePagesSite.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_pages_hyphen_site.Output.NoContent { + public var noContent: Operations.ReposDeletePagesSite.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -51528,12 +51868,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -51551,12 +51891,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -51574,12 +51914,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/delete(repos/delete-pages-site)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -51631,7 +51971,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/get(repos/list-pages-builds)`. - public enum repos_sol_list_hyphen_pages_hyphen_builds { + public enum ReposListPagesBuilds { public static let id: Swift.String = "repos/list-pages-builds" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/path`. @@ -51639,61 +51979,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Path + public var path: Operations.ReposListPagesBuilds.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Query + public var query: Operations.ReposListPagesBuilds.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Headers + public var headers: Operations.ReposListPagesBuilds.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -51701,9 +52041,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Path, - query: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Input.Headers = .init() + path: Operations.ReposListPagesBuilds.Input.Path, + query: Operations.ReposListPagesBuilds.Input.Query = .init(), + headers: Operations.ReposListPagesBuilds.Input.Headers = .init() ) { self.path = path self.query = query @@ -51715,26 +52055,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Headers + public var headers: Operations.ReposListPagesBuilds.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/GET/responses/200/content/application\/json`. - case json([Components.Schemas.page_hyphen_build]) + case json([Components.Schemas.PageBuild]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.page_hyphen_build] { + public var json: [Components.Schemas.PageBuild] { get throws { switch self { case let .json(body): @@ -51744,15 +52084,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Body + public var body: Operations.ReposListPagesBuilds.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok.Body + headers: Operations.ReposListPagesBuilds.Output.Ok.Headers = .init(), + body: Operations.ReposListPagesBuilds.Output.Ok.Body ) { self.headers = headers self.body = body @@ -51763,12 +52103,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/get(repos/list-pages-builds)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok) + case ok(Operations.ReposListPagesBuilds.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_pages_hyphen_builds.Output.Ok { + public var ok: Operations.ReposListPagesBuilds.Output.Ok { get throws { switch self { case let .ok(response): @@ -51820,7 +52160,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/builds`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/post(repos/request-pages-build)`. - public enum repos_sol_request_hyphen_pages_hyphen_build { + public enum ReposRequestPagesBuild { public static let id: Swift.String = "repos/request-pages-build" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/path`. @@ -51828,45 +52168,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Path + public var path: Operations.ReposRequestPagesBuild.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Headers + public var headers: Operations.ReposRequestPagesBuild.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_request_hyphen_pages_hyphen_build.Input.Headers = .init() + path: Operations.ReposRequestPagesBuild.Input.Path, + headers: Operations.ReposRequestPagesBuild.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -51877,12 +52217,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/POST/responses/201/content/application\/json`. - case json(Components.Schemas.page_hyphen_build_hyphen_status) + case json(Components.Schemas.PageBuildStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page_hyphen_build_hyphen_status { + public var json: Components.Schemas.PageBuildStatus { get throws { switch self { case let .json(body): @@ -51892,12 +52232,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_request_hyphen_pages_hyphen_build.Output.Created.Body + public var body: Operations.ReposRequestPagesBuild.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_request_hyphen_pages_hyphen_build.Output.Created.Body) { + public init(body: Operations.ReposRequestPagesBuild.Output.Created.Body) { self.body = body } } @@ -51906,12 +52246,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/post(repos/request-pages-build)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_request_hyphen_pages_hyphen_build.Output.Created) + case created(Operations.ReposRequestPagesBuild.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_request_hyphen_pages_hyphen_build.Output.Created { + public var created: Operations.ReposRequestPagesBuild.Output.Created { get throws { switch self { case let .created(response): @@ -51963,7 +52303,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/latest/get(repos/get-latest-pages-build)`. - public enum repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build { + public enum ReposGetLatestPagesBuild { public static let id: Swift.String = "repos/get-latest-pages-build" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/path`. @@ -51971,45 +52311,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Path + public var path: Operations.ReposGetLatestPagesBuild.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Headers + public var headers: Operations.ReposGetLatestPagesBuild.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Input.Headers = .init() + path: Operations.ReposGetLatestPagesBuild.Input.Path, + headers: Operations.ReposGetLatestPagesBuild.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -52020,12 +52360,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/latest/GET/responses/200/content/application\/json`. - case json(Components.Schemas.page_hyphen_build) + case json(Components.Schemas.PageBuild) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page_hyphen_build { + public var json: Components.Schemas.PageBuild { get throws { switch self { case let .json(body): @@ -52035,12 +52375,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output.Ok.Body + public var body: Operations.ReposGetLatestPagesBuild.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output.Ok.Body) { + public init(body: Operations.ReposGetLatestPagesBuild.Output.Ok.Body) { self.body = body } } @@ -52049,12 +52389,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/latest/get(repos/get-latest-pages-build)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output.Ok) + case ok(Operations.ReposGetLatestPagesBuild.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_latest_hyphen_pages_hyphen_build.Output.Ok { + public var ok: Operations.ReposGetLatestPagesBuild.Output.Ok { get throws { switch self { case let .ok(response): @@ -52106,7 +52446,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/builds/{build_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/{build_id}/get(repos/get-pages-build)`. - public enum repos_sol_get_hyphen_pages_hyphen_build { + public enum ReposGetPagesBuild { public static let id: Swift.String = "repos/get-pages-build" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/path`. @@ -52114,50 +52454,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/path/build_id`. - public var build_id: Swift.Int + public var buildId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - build_id: + /// - buildId: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - build_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + buildId: Swift.Int ) { self.owner = owner self.repo = repo - self.build_id = build_id + self.buildId = buildId } } - public var path: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Path + public var path: Operations.ReposGetPagesBuild.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Headers + public var headers: Operations.ReposGetPagesBuild.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_build.Input.Headers = .init() + path: Operations.ReposGetPagesBuild.Input.Path, + headers: Operations.ReposGetPagesBuild.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -52168,12 +52508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/builds/{build_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.page_hyphen_build) + case json(Components.Schemas.PageBuild) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page_hyphen_build { + public var json: Components.Schemas.PageBuild { get throws { switch self { case let .json(body): @@ -52183,12 +52523,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pages_hyphen_build.Output.Ok.Body + public var body: Operations.ReposGetPagesBuild.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pages_hyphen_build.Output.Ok.Body) { + public init(body: Operations.ReposGetPagesBuild.Output.Ok.Body) { self.body = body } } @@ -52197,12 +52537,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/builds/{build_id}/get(repos/get-pages-build)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_pages_hyphen_build.Output.Ok) + case ok(Operations.ReposGetPagesBuild.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_pages_hyphen_build.Output.Ok { + public var ok: Operations.ReposGetPagesBuild.Output.Ok { get throws { switch self { case let .ok(response): @@ -52254,7 +52594,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)`. - public enum repos_sol_create_hyphen_pages_hyphen_deployment { + public enum ReposCreatePagesDeployment { public static let id: Swift.String = "repos/create-pages-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/path`. @@ -52262,51 +52602,51 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Path + public var path: Operations.ReposCreatePagesDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Headers + public var headers: Operations.ReposCreatePagesDeployment.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// The object used to create GitHub Pages deployment /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json/artifact_id`. - public var artifact_id: Swift.Double? + public var artifactId: Swift.Double? /// The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json/artifact_url`. - public var artifact_url: Swift.String? + public var artifactUrl: Swift.String? /// The target environment for this GitHub Pages deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json/environment`. @@ -52314,44 +52654,44 @@ public enum Operations { /// A unique string that represents the version of the build for this deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json/pages_build_version`. - public var pages_build_version: Swift.String + public var pagesBuildVersion: Swift.String /// The OIDC token issued by GitHub Actions certifying the origin of the deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/json/oidc_token`. - public var oidc_token: Swift.String - /// Creates a new `jsonPayload`. + public var oidcToken: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - artifact_id: The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. - /// - artifact_url: The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. + /// - artifactId: The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. + /// - artifactUrl: The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required. /// - environment: The target environment for this GitHub Pages deployment. - /// - pages_build_version: A unique string that represents the version of the build for this deployment. - /// - oidc_token: The OIDC token issued by GitHub Actions certifying the origin of the deployment. + /// - pagesBuildVersion: A unique string that represents the version of the build for this deployment. + /// - oidcToken: The OIDC token issued by GitHub Actions certifying the origin of the deployment. public init( - artifact_id: Swift.Double? = nil, - artifact_url: Swift.String? = nil, + artifactId: Swift.Double? = nil, + artifactUrl: Swift.String? = nil, environment: Swift.String? = nil, - pages_build_version: Swift.String, - oidc_token: Swift.String + pagesBuildVersion: Swift.String, + oidcToken: Swift.String ) { - self.artifact_id = artifact_id - self.artifact_url = artifact_url + self.artifactId = artifactId + self.artifactUrl = artifactUrl self.environment = environment - self.pages_build_version = pages_build_version - self.oidc_token = oidc_token + self.pagesBuildVersion = pagesBuildVersion + self.oidcToken = oidcToken } public enum CodingKeys: String, CodingKey { - case artifact_id - case artifact_url + case artifactId = "artifact_id" + case artifactUrl = "artifact_url" case environment - case pages_build_version - case oidc_token + case pagesBuildVersion = "pages_build_version" + case oidcToken = "oidc_token" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Body.jsonPayload) + case json(Operations.ReposCreatePagesDeployment.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Body + public var body: Operations.ReposCreatePagesDeployment.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -52359,9 +52699,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Input.Body + path: Operations.ReposCreatePagesDeployment.Input.Path, + headers: Operations.ReposCreatePagesDeployment.Input.Headers = .init(), + body: Operations.ReposCreatePagesDeployment.Input.Body ) { self.path = path self.headers = headers @@ -52373,12 +52713,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/POST/responses/200/content/application\/json`. - case json(Components.Schemas.page_hyphen_deployment) + case json(Components.Schemas.PageDeployment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.page_hyphen_deployment { + public var json: Components.Schemas.PageDeployment { get throws { switch self { case let .json(body): @@ -52388,12 +52728,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output.Ok.Body + public var body: Operations.ReposCreatePagesDeployment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output.Ok.Body) { + public init(body: Operations.ReposCreatePagesDeployment.Output.Ok.Body) { self.body = body } } @@ -52402,12 +52742,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output.Ok) + case ok(Operations.ReposCreatePagesDeployment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_create_hyphen_pages_hyphen_deployment.Output.Ok { + public var ok: Operations.ReposCreatePagesDeployment.Output.Ok { get throws { switch self { case let .ok(response): @@ -52425,12 +52765,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -52448,12 +52788,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -52471,12 +52811,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/post(repos/create-pages-deployment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -52496,14 +52836,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -52514,14 +52854,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -52534,7 +52874,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)`. - public enum repos_sol_get_hyphen_pages_hyphen_deployment { + public enum ReposGetPagesDeployment { public static let id: Swift.String = "repos/get-pages-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/path`. @@ -52542,13 +52882,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/pages-deployment-id`. - @frozen public enum pages_hyphen_deployment_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum PagesDeploymentId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case2`. @@ -52585,44 +52925,44 @@ public enum Operations { /// The ID of the Pages deployment. You can also give the commit SHA of the deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/path/pages_deployment_id`. - public var pages_deployment_id: Components.Parameters.pages_hyphen_deployment_hyphen_id + public var pagesDeploymentId: Components.Parameters.PagesDeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pages_deployment_id: The ID of the Pages deployment. You can also give the commit SHA of the deployment. + /// - pagesDeploymentId: The ID of the Pages deployment. You can also give the commit SHA of the deployment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pages_deployment_id: Components.Parameters.pages_hyphen_deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pagesDeploymentId: Components.Parameters.PagesDeploymentId ) { self.owner = owner self.repo = repo - self.pages_deployment_id = pages_deployment_id + self.pagesDeploymentId = pagesDeploymentId } } - public var path: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Path + public var path: Operations.ReposGetPagesDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Headers + public var headers: Operations.ReposGetPagesDeployment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Input.Headers = .init() + path: Operations.ReposGetPagesDeployment.Input.Path, + headers: Operations.ReposGetPagesDeployment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -52633,12 +52973,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pages_hyphen_deployment_hyphen_status) + case json(Components.Schemas.PagesDeploymentStatus) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pages_hyphen_deployment_hyphen_status { + public var json: Components.Schemas.PagesDeploymentStatus { get throws { switch self { case let .json(body): @@ -52648,12 +52988,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output.Ok.Body + public var body: Operations.ReposGetPagesDeployment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output.Ok.Body) { + public init(body: Operations.ReposGetPagesDeployment.Output.Ok.Body) { self.body = body } } @@ -52662,12 +53002,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output.Ok) + case ok(Operations.ReposGetPagesDeployment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_pages_hyphen_deployment.Output.Ok { + public var ok: Operations.ReposGetPagesDeployment.Output.Ok { get throws { switch self { case let .ok(response): @@ -52685,12 +53025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/get(repos/get-pages-deployment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -52742,7 +53082,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)`. - public enum repos_sol_cancel_hyphen_pages_hyphen_deployment { + public enum ReposCancelPagesDeployment { public static let id: Swift.String = "repos/cancel-pages-deployment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/POST/path`. @@ -52750,13 +53090,13 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/components/parameters/pages-deployment-id`. - @frozen public enum pages_hyphen_deployment_hyphen_id: Codable, Hashable, Sendable { + @frozen public enum PagesDeploymentId: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case1`. case case1(Swift.Int) /// - Remark: Generated from `#/components/parameters/pages-deployment-id/case2`. @@ -52793,44 +53133,44 @@ public enum Operations { /// The ID of the Pages deployment. You can also give the commit SHA of the deployment. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/POST/path/pages_deployment_id`. - public var pages_deployment_id: Components.Parameters.pages_hyphen_deployment_hyphen_id + public var pagesDeploymentId: Components.Parameters.PagesDeploymentId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pages_deployment_id: The ID of the Pages deployment. You can also give the commit SHA of the deployment. + /// - pagesDeploymentId: The ID of the Pages deployment. You can also give the commit SHA of the deployment. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pages_deployment_id: Components.Parameters.pages_hyphen_deployment_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pagesDeploymentId: Components.Parameters.PagesDeploymentId ) { self.owner = owner self.repo = repo - self.pages_deployment_id = pages_deployment_id + self.pagesDeploymentId = pagesDeploymentId } } - public var path: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Path + public var path: Operations.ReposCancelPagesDeployment.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Headers + public var headers: Operations.ReposCancelPagesDeployment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Path, - headers: Operations.repos_sol_cancel_hyphen_pages_hyphen_deployment.Input.Headers = .init() + path: Operations.ReposCancelPagesDeployment.Input.Path, + headers: Operations.ReposCancelPagesDeployment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -52842,12 +53182,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -52865,12 +53213,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel/post(repos/cancel-pages-deployment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -52926,7 +53274,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/pages/health`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)`. - public enum repos_sol_get_hyphen_pages_hyphen_health_hyphen_check { + public enum ReposGetPagesHealthCheck { public static let id: Swift.String = "repos/get-pages-health-check" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/path`. @@ -52934,45 +53282,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Path + public var path: Operations.ReposGetPagesHealthCheck.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Headers + public var headers: Operations.ReposGetPagesHealthCheck.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Path, - headers: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Input.Headers = .init() + path: Operations.ReposGetPagesHealthCheck.Input.Path, + headers: Operations.ReposGetPagesHealthCheck.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -52983,12 +53331,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/responses/200/content/application\/json`. - case json(Components.Schemas.pages_hyphen_health_hyphen_check) + case json(Components.Schemas.PagesHealthCheck) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.pages_hyphen_health_hyphen_check { + public var json: Components.Schemas.PagesHealthCheck { get throws { switch self { case let .json(body): @@ -52998,12 +53346,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Ok.Body + public var body: Operations.ReposGetPagesHealthCheck.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Ok.Body) { + public init(body: Operations.ReposGetPagesHealthCheck.Output.Ok.Body) { self.body = body } } @@ -53012,12 +53360,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Ok) + case ok(Operations.ReposGetPagesHealthCheck.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Ok { + public var ok: Operations.ReposGetPagesHealthCheck.Output.Ok { get throws { switch self { case let .ok(response): @@ -53034,12 +53382,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pages/health/GET/responses/202/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -53049,12 +53397,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Accepted.Body + public var body: Operations.ReposGetPagesHealthCheck.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Accepted.Body) { + public init(body: Operations.ReposGetPagesHealthCheck.Output.Accepted.Body) { self.body = body } } @@ -53063,12 +53411,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Accepted) + case accepted(Operations.ReposGetPagesHealthCheck.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.Accepted { + public var accepted: Operations.ReposGetPagesHealthCheck.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -53090,12 +53438,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.BadRequest) + case badRequest(Operations.ReposGetPagesHealthCheck.Output.BadRequest) + /// Custom domains are not available for GitHub Pages + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.BadRequest { + public var badRequest: Operations.ReposGetPagesHealthCheck.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -53117,12 +53473,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.UnprocessableContent) + case unprocessableContent(Operations.ReposGetPagesHealthCheck.Output.UnprocessableContent) + /// There isn't a CNAME for this page + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.repos_sol_get_hyphen_pages_hyphen_health_hyphen_check.Output.UnprocessableContent { + public var unprocessableContent: Operations.ReposGetPagesHealthCheck.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -53140,12 +53504,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pages/health/get(repos/get-pages-health-check)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -53195,7 +53559,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)`. - public enum repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting { + public enum ReposCheckPrivateVulnerabilityReporting { public static let id: Swift.String = "repos/check-private-vulnerability-reporting" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/path`. @@ -53203,45 +53567,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path + public var path: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers + public var headers: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() + path: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposCheckPrivateVulnerabilityReporting.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -53252,12 +53616,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Whether or not private vulnerability reporting is enabled for the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/responses/200/content/json/enabled`. public var enabled: Swift.Bool - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - enabled: Whether or not private vulnerability reporting is enabled for the repository. @@ -53269,12 +53633,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/GET/responses/200/content/application\/json`. - case json(Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body.jsonPayload) + case json(Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body.jsonPayload { + public var json: Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -53284,12 +53648,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body + public var body: Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok.Body) { + public init(body: Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok.Body) { self.body = body } } @@ -53298,12 +53662,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok) + case ok(Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_check_hyphen_private_hyphen_vulnerability_hyphen_reporting.Output.Ok { + public var ok: Operations.ReposCheckPrivateVulnerabilityReporting.Output.Ok { get throws { switch self { case let .ok(response): @@ -53321,12 +53685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/get(repos/check-private-vulnerability-reporting)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.bad_request) + case unprocessableContent(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.bad_request { + public var unprocessableContent: Components.Responses.BadRequest { get throws { switch self { case let .unprocessableContent(response): @@ -53346,14 +53710,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -53364,14 +53728,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -53382,7 +53746,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)`. - public enum repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting { + public enum ReposEnablePrivateVulnerabilityReporting { public static let id: Swift.String = "repos/enable-private-vulnerability-reporting" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/PUT/path`. @@ -53390,45 +53754,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path + public var path: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers + public var headers: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_enable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() + path: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposEnablePrivateVulnerabilityReporting.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -53440,12 +53804,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -53463,12 +53835,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/put(repos/enable-private-vulnerability-reporting)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.bad_request) + case unprocessableContent(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.bad_request { + public var unprocessableContent: Components.Responses.BadRequest { get throws { switch self { case let .unprocessableContent(response): @@ -53488,14 +53860,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -53506,14 +53878,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -53524,7 +53896,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)`. - public enum repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting { + public enum ReposDisablePrivateVulnerabilityReporting { public static let id: Swift.String = "repos/disable-private-vulnerability-reporting" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/DELETE/path`. @@ -53532,45 +53904,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path + public var path: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/private-vulnerability-reporting/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers + public var headers: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Path, - headers: Operations.repos_sol_disable_hyphen_private_hyphen_vulnerability_hyphen_reporting.Input.Headers = .init() + path: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Path, + headers: Operations.ReposDisablePrivateVulnerabilityReporting.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -53582,12 +53954,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -53605,12 +53985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/private-vulnerability-reporting/delete(repos/disable-private-vulnerability-reporting)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.bad_request) + case unprocessableContent(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.bad_request { + public var unprocessableContent: Components.Responses.BadRequest { get throws { switch self { case let .unprocessableContent(response): @@ -53630,14 +54010,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -53648,14 +54028,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -53667,7 +54047,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)`. - public enum repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values { + public enum ReposGetCustomPropertiesValues { public static let id: Swift.String = "repos/get-custom-properties-values" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/path`. @@ -53675,45 +54055,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Path + public var path: Operations.ReposGetCustomPropertiesValues.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers + public var headers: Operations.ReposGetCustomPropertiesValues.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Path, - headers: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers = .init() + path: Operations.ReposGetCustomPropertiesValues.Input.Path, + headers: Operations.ReposGetCustomPropertiesValues.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -53724,12 +54104,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/GET/responses/200/content/application\/json`. - case json([Components.Schemas.custom_hyphen_property_hyphen_value]) + case json([Components.Schemas.CustomPropertyValue]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.custom_hyphen_property_hyphen_value] { + public var json: [Components.Schemas.CustomPropertyValue] { get throws { switch self { case let .json(body): @@ -53739,12 +54119,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output.Ok.Body + public var body: Operations.ReposGetCustomPropertiesValues.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output.Ok.Body) { + public init(body: Operations.ReposGetCustomPropertiesValues.Output.Ok.Body) { self.body = body } } @@ -53753,12 +54133,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output.Ok) + case ok(Operations.ReposGetCustomPropertiesValues.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_custom_hyphen_properties_hyphen_values.Output.Ok { + public var ok: Operations.ReposGetCustomPropertiesValues.Output.Ok { get throws { switch self { case let .ok(response): @@ -53776,12 +54156,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -53799,12 +54179,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/get(repos/get-custom-properties-values)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -53857,7 +54237,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/properties/values`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)`. - public enum repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values { + public enum ReposCreateOrUpdateCustomPropertiesValues { public static let id: Swift.String = "repos/create-or-update-custom-properties-values" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/path`. @@ -53865,50 +54245,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Path + public var path: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers + public var headers: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A list of custom property names and associated values to apply to the repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/requestBody/json/properties`. - public var properties: [Components.Schemas.custom_hyphen_property_hyphen_value] - /// Creates a new `jsonPayload`. + public var properties: [Components.Schemas.CustomPropertyValue] + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - properties: A list of custom property names and associated values to apply to the repositories. - public init(properties: [Components.Schemas.custom_hyphen_property_hyphen_value]) { + public init(properties: [Components.Schemas.CustomPropertyValue]) { self.properties = properties } public enum CodingKeys: String, CodingKey { @@ -53916,9 +54296,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/properties/values/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Body.jsonPayload) + case json(Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Body + public var body: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -53926,9 +54306,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Path, - headers: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Input.Body + path: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Path, + headers: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Headers = .init(), + body: Operations.ReposCreateOrUpdateCustomPropertiesValues.Input.Body ) { self.path = path self.headers = headers @@ -53945,12 +54325,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Output.NoContent) + case noContent(Operations.ReposCreateOrUpdateCustomPropertiesValues.Output.NoContent) + /// No Content when custom property values are successfully created or updated + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_create_hyphen_or_hyphen_update_hyphen_custom_hyphen_properties_hyphen_values.Output.NoContent { + public var noContent: Operations.ReposCreateOrUpdateCustomPropertiesValues.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -53968,12 +54356,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -53991,12 +54379,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -54014,12 +54402,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/properties/values/patch(repos/create-or-update-custom-properties-values)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -54074,7 +54462,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)`. - public enum repos_sol_get_hyphen_readme { + public enum ReposGetReadme { public static let id: Swift.String = "repos/get-readme" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/path`. @@ -54082,25 +54470,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_readme.Input.Path + public var path: Operations.ReposGetReadme.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/query`. public struct Query: Sendable, Hashable { /// The name of the commit/branch/tag. Default: the repository’s default branch. @@ -54115,19 +54503,19 @@ public enum Operations { self.ref = ref } } - public var query: Operations.repos_sol_get_hyphen_readme.Input.Query + public var query: Operations.ReposGetReadme.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_readme.Input.Headers + public var headers: Operations.ReposGetReadme.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -54135,9 +54523,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_readme.Input.Path, - query: Operations.repos_sol_get_hyphen_readme.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_readme.Input.Headers = .init() + path: Operations.ReposGetReadme.Input.Path, + query: Operations.ReposGetReadme.Input.Query = .init(), + headers: Operations.ReposGetReadme.Input.Headers = .init() ) { self.path = path self.query = query @@ -54149,12 +54537,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/GET/responses/200/content/application\/json`. - case json(Components.Schemas.content_hyphen_file) + case json(Components.Schemas.ContentFile) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.content_hyphen_file { + public var json: Components.Schemas.ContentFile { get throws { switch self { case let .json(body): @@ -54164,12 +54552,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_readme.Output.Ok.Body + public var body: Operations.ReposGetReadme.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_readme.Output.Ok.Body) { + public init(body: Operations.ReposGetReadme.Output.Ok.Body) { self.body = body } } @@ -54178,12 +54566,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_readme.Output.Ok) + case ok(Operations.ReposGetReadme.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_readme.Output.Ok { + public var ok: Operations.ReposGetReadme.Output.Ok { get throws { switch self { case let .ok(response): @@ -54201,12 +54589,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -54224,12 +54620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -54247,12 +54643,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/get(repos/get-readme)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -54307,7 +54703,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/readme/{dir}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)`. - public enum repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory { + public enum ReposGetReadmeInDirectory { public static let id: Swift.String = "repos/get-readme-in-directory" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/path`. @@ -54315,11 +54711,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The alternate path to look for a README file /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/path/dir`. @@ -54331,8 +54727,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - dir: The alternate path to look for a README file public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, dir: Swift.String ) { self.owner = owner @@ -54340,7 +54736,7 @@ public enum Operations { self.dir = dir } } - public var path: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Path + public var path: Operations.ReposGetReadmeInDirectory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/query`. public struct Query: Sendable, Hashable { /// The name of the commit/branch/tag. Default: the repository’s default branch. @@ -54355,19 +54751,19 @@ public enum Operations { self.ref = ref } } - public var query: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Query + public var query: Operations.ReposGetReadmeInDirectory.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Headers + public var headers: Operations.ReposGetReadmeInDirectory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -54375,9 +54771,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Path, - query: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Input.Headers = .init() + path: Operations.ReposGetReadmeInDirectory.Input.Path, + query: Operations.ReposGetReadmeInDirectory.Input.Query = .init(), + headers: Operations.ReposGetReadmeInDirectory.Input.Headers = .init() ) { self.path = path self.query = query @@ -54389,12 +54785,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/readme/{dir}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.content_hyphen_file) + case json(Components.Schemas.ContentFile) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.content_hyphen_file { + public var json: Components.Schemas.ContentFile { get throws { switch self { case let .json(body): @@ -54404,12 +54800,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output.Ok.Body + public var body: Operations.ReposGetReadmeInDirectory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output.Ok.Body) { + public init(body: Operations.ReposGetReadmeInDirectory.Output.Ok.Body) { self.body = body } } @@ -54418,12 +54814,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output.Ok) + case ok(Operations.ReposGetReadmeInDirectory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_readme_hyphen_in_hyphen_directory.Output.Ok { + public var ok: Operations.ReposGetReadmeInDirectory.Output.Ok { get throws { switch self { case let .ok(response): @@ -54441,12 +54837,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -54464,12 +54860,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/readme/{dir}/get(repos/get-readme-in-directory)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -54521,7 +54917,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)`. - public enum repos_sol_list_hyphen_releases { + public enum ReposListReleases { public static let id: Swift.String = "repos/list-releases" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/path`. @@ -54529,61 +54925,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_releases.Input.Path + public var path: Operations.ReposListReleases.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_releases.Input.Query + public var query: Operations.ReposListReleases.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_releases.Input.Headers + public var headers: Operations.ReposListReleases.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -54591,9 +54987,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_releases.Input.Path, - query: Operations.repos_sol_list_hyphen_releases.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_releases.Input.Headers = .init() + path: Operations.ReposListReleases.Input.Path, + query: Operations.ReposListReleases.Input.Query = .init(), + headers: Operations.ReposListReleases.Input.Headers = .init() ) { self.path = path self.query = query @@ -54605,26 +55001,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_releases.Output.Ok.Headers + public var headers: Operations.ReposListReleases.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/GET/responses/200/content/application\/json`. - case json([Components.Schemas.release]) + case json([Components.Schemas.Release]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.release] { + public var json: [Components.Schemas.Release] { get throws { switch self { case let .json(body): @@ -54634,15 +55030,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_releases.Output.Ok.Body + public var body: Operations.ReposListReleases.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_releases.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_releases.Output.Ok.Body + headers: Operations.ReposListReleases.Output.Ok.Headers = .init(), + body: Operations.ReposListReleases.Output.Ok.Body ) { self.headers = headers self.body = body @@ -54653,12 +55049,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_releases.Output.Ok) + case ok(Operations.ReposListReleases.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_releases.Output.Ok { + public var ok: Operations.ReposListReleases.Output.Ok { get throws { switch self { case let .ok(response): @@ -54676,12 +55072,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/get(repos/list-releases)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -54733,7 +55129,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)`. - public enum repos_sol_create_hyphen_release { + public enum ReposCreateRelease { public static let id: Swift.String = "repos/create-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/path`. @@ -54741,49 +55137,49 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_release.Input.Path + public var path: Operations.ReposCreateRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_release.Input.Headers + public var headers: Operations.ReposCreateRelease.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the tag. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/tag_name`. - public var tag_name: Swift.String + public var tagName: Swift.String /// Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/target_commitish`. - public var target_commitish: Swift.String? + public var targetCommitish: Swift.String? /// The name of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/name`. @@ -54803,15 +55199,15 @@ public enum Operations { /// If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/discussion_category_name`. - public var discussion_category_name: Swift.String? + public var discussionCategoryName: Swift.String? /// Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/generate_release_notes`. - public var generate_release_notes: Swift.Bool? + public var generateReleaseNotes: Swift.Bool? /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/make_latest`. - @frozen public enum make_latestPayload: String, Codable, Hashable, Sendable { + @frozen public enum MakeLatestPayload: String, Codable, Hashable, Sendable, CaseIterable { case _true = "true" case _false = "false" case legacy = "legacy" @@ -54819,56 +55215,56 @@ public enum Operations { /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/json/make_latest`. - public var make_latest: Operations.repos_sol_create_hyphen_release.Input.Body.jsonPayload.make_latestPayload? - /// Creates a new `jsonPayload`. + public var makeLatest: Operations.ReposCreateRelease.Input.Body.JsonPayload.MakeLatestPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - tag_name: The name of the tag. - /// - target_commitish: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. + /// - tagName: The name of the tag. + /// - targetCommitish: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. /// - name: The name of the release. /// - body: Text describing the contents of the tag. /// - draft: `true` to create a draft (unpublished) release, `false` to create a published one. /// - prerelease: `true` to identify the release as a prerelease. `false` to identify the release as a full release. - /// - discussion_category_name: If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." - /// - generate_release_notes: Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes. - /// - make_latest: Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. + /// - discussionCategoryName: If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." + /// - generateReleaseNotes: Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes. + /// - makeLatest: Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. public init( - tag_name: Swift.String, - target_commitish: Swift.String? = nil, + tagName: Swift.String, + targetCommitish: Swift.String? = nil, name: Swift.String? = nil, body: Swift.String? = nil, draft: Swift.Bool? = nil, prerelease: Swift.Bool? = nil, - discussion_category_name: Swift.String? = nil, - generate_release_notes: Swift.Bool? = nil, - make_latest: Operations.repos_sol_create_hyphen_release.Input.Body.jsonPayload.make_latestPayload? = nil + discussionCategoryName: Swift.String? = nil, + generateReleaseNotes: Swift.Bool? = nil, + makeLatest: Operations.ReposCreateRelease.Input.Body.JsonPayload.MakeLatestPayload? = nil ) { - self.tag_name = tag_name - self.target_commitish = target_commitish + self.tagName = tagName + self.targetCommitish = targetCommitish self.name = name self.body = body self.draft = draft self.prerelease = prerelease - self.discussion_category_name = discussion_category_name - self.generate_release_notes = generate_release_notes - self.make_latest = make_latest + self.discussionCategoryName = discussionCategoryName + self.generateReleaseNotes = generateReleaseNotes + self.makeLatest = makeLatest } public enum CodingKeys: String, CodingKey { - case tag_name - case target_commitish + case tagName = "tag_name" + case targetCommitish = "target_commitish" case name case body case draft case prerelease - case discussion_category_name - case generate_release_notes - case make_latest + case discussionCategoryName = "discussion_category_name" + case generateReleaseNotes = "generate_release_notes" + case makeLatest = "make_latest" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_release.Input.Body.jsonPayload) + case json(Operations.ReposCreateRelease.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_release.Input.Body + public var body: Operations.ReposCreateRelease.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -54876,9 +55272,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_release.Input.Path, - headers: Operations.repos_sol_create_hyphen_release.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_release.Input.Body + path: Operations.ReposCreateRelease.Input.Path, + headers: Operations.ReposCreateRelease.Input.Headers = .init(), + body: Operations.ReposCreateRelease.Input.Body ) { self.path = path self.headers = headers @@ -54890,26 +55286,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_release.Output.Created.Headers + public var headers: Operations.ReposCreateRelease.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/201/content/application\/json`. - case json(Components.Schemas.release) + case json(Components.Schemas.Release) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release { + public var json: Components.Schemas.Release { get throws { switch self { case let .json(body): @@ -54919,15 +55315,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_release.Output.Created.Body + public var body: Operations.ReposCreateRelease.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_release.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_release.Output.Created.Body + headers: Operations.ReposCreateRelease.Output.Created.Headers = .init(), + body: Operations.ReposCreateRelease.Output.Created.Body ) { self.headers = headers self.body = body @@ -54938,12 +55334,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_release.Output.Created) + case created(Operations.ReposCreateRelease.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_release.Output.Created { + public var created: Operations.ReposCreateRelease.Output.Created { get throws { switch self { case let .created(response): @@ -54960,12 +55356,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/POST/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -54975,12 +55371,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_release.Output.NotFound.Body + public var body: Operations.ReposCreateRelease.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_release.Output.NotFound.Body) { + public init(body: Operations.ReposCreateRelease.Output.NotFound.Body) { self.body = body } } @@ -54989,12 +55385,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_create_hyphen_release.Output.NotFound) + case notFound(Operations.ReposCreateRelease.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_create_hyphen_release.Output.NotFound { + public var notFound: Operations.ReposCreateRelease.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -55012,12 +55408,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/post(repos/create-release)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -55073,7 +55469,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`. - public enum repos_sol_get_hyphen_release_hyphen_asset { + public enum ReposGetReleaseAsset { public static let id: Swift.String = "repos/get-release-asset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/path`. @@ -55081,52 +55477,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the asset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/path/asset_id`. - public var asset_id: Components.Parameters.asset_hyphen_id + public var assetId: Components.Parameters.AssetId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - asset_id: The unique identifier of the asset. + /// - assetId: The unique identifier of the asset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - asset_id: Components.Parameters.asset_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + assetId: Components.Parameters.AssetId ) { self.owner = owner self.repo = repo - self.asset_id = asset_id + self.assetId = assetId } } - public var path: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Path + public var path: Operations.ReposGetReleaseAsset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Headers + public var headers: Operations.ReposGetReleaseAsset.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Path, - headers: Operations.repos_sol_get_hyphen_release_hyphen_asset.Input.Headers = .init() + path: Operations.ReposGetReleaseAsset.Input.Path, + headers: Operations.ReposGetReleaseAsset.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -55137,12 +55533,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.release_hyphen_asset) + case json(Components.Schemas.ReleaseAsset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release_hyphen_asset { + public var json: Components.Schemas.ReleaseAsset { get throws { switch self { case let .json(body): @@ -55152,12 +55548,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_release_hyphen_asset.Output.Ok.Body + public var body: Operations.ReposGetReleaseAsset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_release_hyphen_asset.Output.Ok.Body) { + public init(body: Operations.ReposGetReleaseAsset.Output.Ok.Body) { self.body = body } } @@ -55166,12 +55562,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_release_hyphen_asset.Output.Ok) + case ok(Operations.ReposGetReleaseAsset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_release_hyphen_asset.Output.Ok { + public var ok: Operations.ReposGetReleaseAsset.Output.Ok { get throws { switch self { case let .ok(response): @@ -55189,12 +55585,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -55212,12 +55608,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Components.Responses.found) + case found(Components.Responses.Found) + /// Found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)/responses/302`. + /// + /// HTTP response code: `302 found`. + public static var found: Self { + .found(.init()) + } /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Components.Responses.found { + public var found: Components.Responses.Found { get throws { switch self { case let .found(response): @@ -55267,7 +55671,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/patch(repos/update-release-asset)`. - public enum repos_sol_update_hyphen_release_hyphen_asset { + public enum ReposUpdateReleaseAsset { public static let id: Swift.String = "repos/update-release-asset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/path`. @@ -55275,48 +55679,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the asset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/path/asset_id`. - public var asset_id: Components.Parameters.asset_hyphen_id + public var assetId: Components.Parameters.AssetId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - asset_id: The unique identifier of the asset. + /// - assetId: The unique identifier of the asset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - asset_id: Components.Parameters.asset_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + assetId: Components.Parameters.AssetId ) { self.owner = owner self.repo = repo - self.asset_id = asset_id + self.assetId = assetId } } - public var path: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Path + public var path: Operations.ReposUpdateReleaseAsset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Headers + public var headers: Operations.ReposUpdateReleaseAsset.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The file name of the asset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/requestBody/json/name`. @@ -55327,7 +55731,7 @@ public enum Operations { public var label: Swift.String? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/requestBody/json/state`. public var state: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The file name of the asset. @@ -55349,9 +55753,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Body.jsonPayload) + case json(Operations.ReposUpdateReleaseAsset.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Body? + public var body: Operations.ReposUpdateReleaseAsset.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -55359,9 +55763,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Path, - headers: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Input.Body? = nil + path: Operations.ReposUpdateReleaseAsset.Input.Path, + headers: Operations.ReposUpdateReleaseAsset.Input.Headers = .init(), + body: Operations.ReposUpdateReleaseAsset.Input.Body? = nil ) { self.path = path self.headers = headers @@ -55373,12 +55777,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.release_hyphen_asset) + case json(Components.Schemas.ReleaseAsset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release_hyphen_asset { + public var json: Components.Schemas.ReleaseAsset { get throws { switch self { case let .json(body): @@ -55388,12 +55792,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Output.Ok.Body + public var body: Operations.ReposUpdateReleaseAsset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_release_hyphen_asset.Output.Ok.Body) { + public init(body: Operations.ReposUpdateReleaseAsset.Output.Ok.Body) { self.body = body } } @@ -55402,12 +55806,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/patch(repos/update-release-asset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_release_hyphen_asset.Output.Ok) + case ok(Operations.ReposUpdateReleaseAsset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_release_hyphen_asset.Output.Ok { + public var ok: Operations.ReposUpdateReleaseAsset.Output.Ok { get throws { switch self { case let .ok(response): @@ -55457,7 +55861,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)`. - public enum repos_sol_delete_hyphen_release_hyphen_asset { + public enum ReposDeleteReleaseAsset { public static let id: Swift.String = "repos/delete-release-asset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/DELETE/path`. @@ -55465,37 +55869,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the asset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/assets/{asset_id}/DELETE/path/asset_id`. - public var asset_id: Components.Parameters.asset_hyphen_id + public var assetId: Components.Parameters.AssetId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - asset_id: The unique identifier of the asset. + /// - assetId: The unique identifier of the asset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - asset_id: Components.Parameters.asset_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + assetId: Components.Parameters.AssetId ) { self.owner = owner self.repo = repo - self.asset_id = asset_id + self.assetId = assetId } } - public var path: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input.Path + public var path: Operations.ReposDeleteReleaseAsset.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Input.Path) { + public init(path: Operations.ReposDeleteReleaseAsset.Input.Path) { self.path = path } } @@ -55509,12 +55913,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_release_hyphen_asset.Output.NoContent) + case noContent(Operations.ReposDeleteReleaseAsset.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/delete(repos/delete-release-asset)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_release_hyphen_asset.Output.NoContent { + public var noContent: Operations.ReposDeleteReleaseAsset.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -55539,7 +55951,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/generate-notes`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)`. - public enum repos_sol_generate_hyphen_release_hyphen_notes { + public enum ReposGenerateReleaseNotes { public static let id: Swift.String = "repos/generate-release-notes" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/path`. @@ -55547,86 +55959,86 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Path + public var path: Operations.ReposGenerateReleaseNotes.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Headers + public var headers: Operations.ReposGenerateReleaseNotes.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The tag name for the release. This can be an existing tag or a new one. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/json/tag_name`. - public var tag_name: Swift.String + public var tagName: Swift.String /// Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/json/target_commitish`. - public var target_commitish: Swift.String? + public var targetCommitish: Swift.String? /// The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/json/previous_tag_name`. - public var previous_tag_name: Swift.String? + public var previousTagName: Swift.String? /// Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/json/configuration_file_path`. - public var configuration_file_path: Swift.String? - /// Creates a new `jsonPayload`. + public var configurationFilePath: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - tag_name: The tag name for the release. This can be an existing tag or a new one. - /// - target_commitish: Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists. - /// - previous_tag_name: The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release. - /// - configuration_file_path: Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used. + /// - tagName: The tag name for the release. This can be an existing tag or a new one. + /// - targetCommitish: Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists. + /// - previousTagName: The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release. + /// - configurationFilePath: Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used. public init( - tag_name: Swift.String, - target_commitish: Swift.String? = nil, - previous_tag_name: Swift.String? = nil, - configuration_file_path: Swift.String? = nil + tagName: Swift.String, + targetCommitish: Swift.String? = nil, + previousTagName: Swift.String? = nil, + configurationFilePath: Swift.String? = nil ) { - self.tag_name = tag_name - self.target_commitish = target_commitish - self.previous_tag_name = previous_tag_name - self.configuration_file_path = configuration_file_path + self.tagName = tagName + self.targetCommitish = targetCommitish + self.previousTagName = previousTagName + self.configurationFilePath = configurationFilePath } public enum CodingKeys: String, CodingKey { - case tag_name - case target_commitish - case previous_tag_name - case configuration_file_path + case tagName = "tag_name" + case targetCommitish = "target_commitish" + case previousTagName = "previous_tag_name" + case configurationFilePath = "configuration_file_path" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Body.jsonPayload) + case json(Operations.ReposGenerateReleaseNotes.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Body + public var body: Operations.ReposGenerateReleaseNotes.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -55634,9 +56046,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Path, - headers: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Headers = .init(), - body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Input.Body + path: Operations.ReposGenerateReleaseNotes.Input.Path, + headers: Operations.ReposGenerateReleaseNotes.Input.Headers = .init(), + body: Operations.ReposGenerateReleaseNotes.Input.Body ) { self.path = path self.headers = headers @@ -55648,12 +56060,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/generate-notes/POST/responses/200/content/application\/json`. - case json(Components.Schemas.release_hyphen_notes_hyphen_content) + case json(Components.Schemas.ReleaseNotesContent) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release_hyphen_notes_hyphen_content { + public var json: Components.Schemas.ReleaseNotesContent { get throws { switch self { case let .json(body): @@ -55663,12 +56075,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output.Ok.Body + public var body: Operations.ReposGenerateReleaseNotes.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output.Ok.Body) { + public init(body: Operations.ReposGenerateReleaseNotes.Output.Ok.Body) { self.body = body } } @@ -55677,12 +56089,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output.Ok) + case ok(Operations.ReposGenerateReleaseNotes.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_generate_hyphen_release_hyphen_notes.Output.Ok { + public var ok: Operations.ReposGenerateReleaseNotes.Output.Ok { get throws { switch self { case let .ok(response): @@ -55700,12 +56112,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/generate-notes/post(repos/generate-release-notes)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -55757,7 +56169,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/latest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/latest/get(repos/get-latest-release)`. - public enum repos_sol_get_hyphen_latest_hyphen_release { + public enum ReposGetLatestRelease { public static let id: Swift.String = "repos/get-latest-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/path`. @@ -55765,45 +56177,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Path + public var path: Operations.ReposGetLatestRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Headers + public var headers: Operations.ReposGetLatestRelease.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Path, - headers: Operations.repos_sol_get_hyphen_latest_hyphen_release.Input.Headers = .init() + path: Operations.ReposGetLatestRelease.Input.Path, + headers: Operations.ReposGetLatestRelease.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -55814,12 +56226,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/latest/GET/responses/200/content/application\/json`. - case json(Components.Schemas.release) + case json(Components.Schemas.Release) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release { + public var json: Components.Schemas.Release { get throws { switch self { case let .json(body): @@ -55829,12 +56241,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_latest_hyphen_release.Output.Ok.Body + public var body: Operations.ReposGetLatestRelease.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_latest_hyphen_release.Output.Ok.Body) { + public init(body: Operations.ReposGetLatestRelease.Output.Ok.Body) { self.body = body } } @@ -55843,12 +56255,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/latest/get(repos/get-latest-release)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_latest_hyphen_release.Output.Ok) + case ok(Operations.ReposGetLatestRelease.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_latest_hyphen_release.Output.Ok { + public var ok: Operations.ReposGetLatestRelease.Output.Ok { get throws { switch self { case let .ok(response): @@ -55898,7 +56310,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/tags/{tag}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)`. - public enum repos_sol_get_hyphen_release_hyphen_by_hyphen_tag { + public enum ReposGetReleaseByTag { public static let id: Swift.String = "repos/get-release-by-tag" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/path`. @@ -55906,11 +56318,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// tag parameter /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/path/tag`. @@ -55922,8 +56334,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - tag: tag parameter public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, tag: Swift.String ) { self.owner = owner @@ -55931,27 +56343,27 @@ public enum Operations { self.tag = tag } } - public var path: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Path + public var path: Operations.ReposGetReleaseByTag.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Headers + public var headers: Operations.ReposGetReleaseByTag.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Path, - headers: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Input.Headers = .init() + path: Operations.ReposGetReleaseByTag.Input.Path, + headers: Operations.ReposGetReleaseByTag.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -55962,12 +56374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/tags/{tag}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.release) + case json(Components.Schemas.Release) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release { + public var json: Components.Schemas.Release { get throws { switch self { case let .json(body): @@ -55977,12 +56389,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output.Ok.Body + public var body: Operations.ReposGetReleaseByTag.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output.Ok.Body) { + public init(body: Operations.ReposGetReleaseByTag.Output.Ok.Body) { self.body = body } } @@ -55991,12 +56403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output.Ok) + case ok(Operations.ReposGetReleaseByTag.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_release_hyphen_by_hyphen_tag.Output.Ok { + public var ok: Operations.ReposGetReleaseByTag.Output.Ok { get throws { switch self { case let .ok(response): @@ -56014,12 +56426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/tags/{tag}/get(repos/get-release-by-tag)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -56072,7 +56484,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)`. - public enum repos_sol_get_hyphen_release { + public enum ReposGetRelease { public static let id: Swift.String = "repos/get-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/path`. @@ -56080,52 +56492,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.repos_sol_get_hyphen_release.Input.Path + public var path: Operations.ReposGetRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_release.Input.Headers + public var headers: Operations.ReposGetRelease.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_release.Input.Path, - headers: Operations.repos_sol_get_hyphen_release.Input.Headers = .init() + path: Operations.ReposGetRelease.Input.Path, + headers: Operations.ReposGetRelease.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -56136,12 +56548,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.release) + case json(Components.Schemas.Release) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release { + public var json: Components.Schemas.Release { get throws { switch self { case let .json(body): @@ -56151,12 +56563,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_release.Output.Ok.Body + public var body: Operations.ReposGetRelease.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_release.Output.Ok.Body) { + public init(body: Operations.ReposGetRelease.Output.Ok.Body) { self.body = body } } @@ -56165,12 +56577,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_release.Output.Ok) + case ok(Operations.ReposGetRelease.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_release.Output.Ok { + public var ok: Operations.ReposGetRelease.Output.Ok { get throws { switch self { case let .ok(response): @@ -56192,12 +56604,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Operations.repos_sol_get_hyphen_release.Output.Unauthorized) + case unauthorized(Operations.ReposGetRelease.Output.Unauthorized) + /// Unauthorized + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/get(repos/get-release)/responses/401`. + /// + /// HTTP response code: `401 unauthorized`. + public static var unauthorized: Self { + .unauthorized(.init()) + } /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Operations.repos_sol_get_hyphen_release.Output.Unauthorized { + public var unauthorized: Operations.ReposGetRelease.Output.Unauthorized { get throws { switch self { case let .unauthorized(response): @@ -56247,7 +56667,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)`. - public enum repos_sol_update_hyphen_release { + public enum ReposUpdateRelease { public static let id: Swift.String = "repos/update-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/path`. @@ -56255,56 +56675,56 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.repos_sol_update_hyphen_release.Input.Path + public var path: Operations.ReposUpdateRelease.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_release.Input.Headers + public var headers: Operations.ReposUpdateRelease.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the tag. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/tag_name`. - public var tag_name: Swift.String? + public var tagName: Swift.String? /// Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/target_commitish`. - public var target_commitish: Swift.String? + public var targetCommitish: Swift.String? /// The name of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/name`. @@ -56324,7 +56744,7 @@ public enum Operations { /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/make_latest`. - @frozen public enum make_latestPayload: String, Codable, Hashable, Sendable { + @frozen public enum MakeLatestPayload: String, Codable, Hashable, Sendable, CaseIterable { case _true = "true" case _false = "false" case legacy = "legacy" @@ -56332,56 +56752,56 @@ public enum Operations { /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/make_latest`. - public var make_latest: Operations.repos_sol_update_hyphen_release.Input.Body.jsonPayload.make_latestPayload? + public var makeLatest: Operations.ReposUpdateRelease.Input.Body.JsonPayload.MakeLatestPayload? /// If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/json/discussion_category_name`. - public var discussion_category_name: Swift.String? - /// Creates a new `jsonPayload`. + public var discussionCategoryName: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - tag_name: The name of the tag. - /// - target_commitish: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. + /// - tagName: The name of the tag. + /// - targetCommitish: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. /// - name: The name of the release. /// - body: Text describing the contents of the tag. /// - draft: `true` makes the release a draft, and `false` publishes the release. /// - prerelease: `true` to identify the release as a prerelease, `false` to identify the release as a full release. - /// - make_latest: Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. - /// - discussion_category_name: If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." + /// - makeLatest: Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. + /// - discussionCategoryName: If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." public init( - tag_name: Swift.String? = nil, - target_commitish: Swift.String? = nil, + tagName: Swift.String? = nil, + targetCommitish: Swift.String? = nil, name: Swift.String? = nil, body: Swift.String? = nil, draft: Swift.Bool? = nil, prerelease: Swift.Bool? = nil, - make_latest: Operations.repos_sol_update_hyphen_release.Input.Body.jsonPayload.make_latestPayload? = nil, - discussion_category_name: Swift.String? = nil + makeLatest: Operations.ReposUpdateRelease.Input.Body.JsonPayload.MakeLatestPayload? = nil, + discussionCategoryName: Swift.String? = nil ) { - self.tag_name = tag_name - self.target_commitish = target_commitish + self.tagName = tagName + self.targetCommitish = targetCommitish self.name = name self.body = body self.draft = draft self.prerelease = prerelease - self.make_latest = make_latest - self.discussion_category_name = discussion_category_name + self.makeLatest = makeLatest + self.discussionCategoryName = discussionCategoryName } public enum CodingKeys: String, CodingKey { - case tag_name - case target_commitish + case tagName = "tag_name" + case targetCommitish = "target_commitish" case name case body case draft case prerelease - case make_latest - case discussion_category_name + case makeLatest = "make_latest" + case discussionCategoryName = "discussion_category_name" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_release.Input.Body.jsonPayload) + case json(Operations.ReposUpdateRelease.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_release.Input.Body? + public var body: Operations.ReposUpdateRelease.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -56389,9 +56809,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_release.Input.Path, - headers: Operations.repos_sol_update_hyphen_release.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_release.Input.Body? = nil + path: Operations.ReposUpdateRelease.Input.Path, + headers: Operations.ReposUpdateRelease.Input.Headers = .init(), + body: Operations.ReposUpdateRelease.Input.Body? = nil ) { self.path = path self.headers = headers @@ -56403,12 +56823,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.release) + case json(Components.Schemas.Release) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release { + public var json: Components.Schemas.Release { get throws { switch self { case let .json(body): @@ -56418,12 +56838,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_release.Output.Ok.Body + public var body: Operations.ReposUpdateRelease.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_release.Output.Ok.Body) { + public init(body: Operations.ReposUpdateRelease.Output.Ok.Body) { self.body = body } } @@ -56432,12 +56852,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_release.Output.Ok) + case ok(Operations.ReposUpdateRelease.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_release.Output.Ok { + public var ok: Operations.ReposUpdateRelease.Output.Ok { get throws { switch self { case let .ok(response): @@ -56454,12 +56874,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/PATCH/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -56469,12 +56889,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_release.Output.NotFound.Body + public var body: Operations.ReposUpdateRelease.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_release.Output.NotFound.Body) { + public init(body: Operations.ReposUpdateRelease.Output.NotFound.Body) { self.body = body } } @@ -56483,12 +56903,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/patch(repos/update-release)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_update_hyphen_release.Output.NotFound) + case notFound(Operations.ReposUpdateRelease.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_update_hyphen_release.Output.NotFound { + public var notFound: Operations.ReposUpdateRelease.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -56538,7 +56958,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/releases/{release_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)`. - public enum repos_sol_delete_hyphen_release { + public enum ReposDeleteRelease { public static let id: Swift.String = "repos/delete-release" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/DELETE/path`. @@ -56546,37 +56966,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/DELETE/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.repos_sol_delete_hyphen_release.Input.Path + public var path: Operations.ReposDeleteRelease.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_delete_hyphen_release.Input.Path) { + public init(path: Operations.ReposDeleteRelease.Input.Path) { self.path = path } } @@ -56590,12 +57010,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_release.Output.NoContent) + case noContent(Operations.ReposDeleteRelease.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/delete(repos/delete-release)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_release.Output.NoContent { + public var noContent: Operations.ReposDeleteRelease.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -56620,7 +57048,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/get(repos/list-release-assets)`. - public enum repos_sol_list_hyphen_release_hyphen_assets { + public enum ReposListReleaseAssets { public static let id: Swift.String = "repos/list-release-assets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/path`. @@ -56628,68 +57056,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Path + public var path: Operations.ReposListReleaseAssets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Query + public var query: Operations.ReposListReleaseAssets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Headers + public var headers: Operations.ReposListReleaseAssets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -56697,9 +57125,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Path, - query: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Input.Headers = .init() + path: Operations.ReposListReleaseAssets.Input.Path, + query: Operations.ReposListReleaseAssets.Input.Query = .init(), + headers: Operations.ReposListReleaseAssets.Input.Headers = .init() ) { self.path = path self.query = query @@ -56711,26 +57139,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Headers + public var headers: Operations.ReposListReleaseAssets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/GET/responses/200/content/application\/json`. - case json([Components.Schemas.release_hyphen_asset]) + case json([Components.Schemas.ReleaseAsset]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.release_hyphen_asset] { + public var json: [Components.Schemas.ReleaseAsset] { get throws { switch self { case let .json(body): @@ -56740,15 +57168,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Body + public var body: Operations.ReposListReleaseAssets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok.Body + headers: Operations.ReposListReleaseAssets.Output.Ok.Headers = .init(), + body: Operations.ReposListReleaseAssets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -56759,12 +57187,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/get(repos/list-release-assets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok) + case ok(Operations.ReposListReleaseAssets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_release_hyphen_assets.Output.Ok { + public var ok: Operations.ReposListReleaseAssets.Output.Ok { get throws { switch self { case let .ok(response): @@ -56832,7 +57260,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/releases/{release_id}/assets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)`. - public enum repos_sol_upload_hyphen_release_hyphen_asset { + public enum ReposUploadReleaseAsset { public static let id: Swift.String = "repos/upload-release-asset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/path`. @@ -56840,32 +57268,32 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the release. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/path/release_id`. - public var release_id: Components.Parameters.release_hyphen_id + public var releaseId: Components.Parameters.ReleaseId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - release_id: The unique identifier of the release. + /// - releaseId: The unique identifier of the release. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - release_id: Components.Parameters.release_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + releaseId: Components.Parameters.ReleaseId ) { self.owner = owner self.repo = repo - self.release_id = release_id + self.releaseId = releaseId } } - public var path: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Path + public var path: Operations.ReposUploadReleaseAsset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/query/name`. @@ -56885,25 +57313,25 @@ public enum Operations { self.label = label } } - public var query: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Query + public var query: Operations.ReposUploadReleaseAsset.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Headers + public var headers: Operations.ReposUploadReleaseAsset.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/requestBody/content/application\/octet-stream`. case binary(OpenAPIRuntime.HTTPBody) } - public var body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Body? + public var body: Operations.ReposUploadReleaseAsset.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -56912,10 +57340,10 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Path, - query: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Query, - headers: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Headers = .init(), - body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Input.Body? = nil + path: Operations.ReposUploadReleaseAsset.Input.Path, + query: Operations.ReposUploadReleaseAsset.Input.Query, + headers: Operations.ReposUploadReleaseAsset.Input.Headers = .init(), + body: Operations.ReposUploadReleaseAsset.Input.Body? = nil ) { self.path = path self.query = query @@ -56928,12 +57356,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/releases/{release_id}/assets/POST/responses/201/content/application\/json`. - case json(Components.Schemas.release_hyphen_asset) + case json(Components.Schemas.ReleaseAsset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.release_hyphen_asset { + public var json: Components.Schemas.ReleaseAsset { get throws { switch self { case let .json(body): @@ -56943,12 +57371,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.Created.Body + public var body: Operations.ReposUploadReleaseAsset.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.Created.Body) { + public init(body: Operations.ReposUploadReleaseAsset.Output.Created.Body) { self.body = body } } @@ -56957,12 +57385,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.Created) + case created(Operations.ReposUploadReleaseAsset.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.Created { + public var created: Operations.ReposUploadReleaseAsset.Output.Created { get throws { switch self { case let .created(response): @@ -56984,12 +57412,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.UnprocessableContent) + case unprocessableContent(Operations.ReposUploadReleaseAsset.Output.UnprocessableContent) + /// Response if you upload an asset with the same filename as another uploaded asset + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/{release_id}/assets/post(repos/upload-release-asset)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.repos_sol_upload_hyphen_release_hyphen_asset.Output.UnprocessableContent { + public var unprocessableContent: Operations.ReposUploadReleaseAsset.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -57042,7 +57478,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rules/branches/{branch}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rules/branches/{branch}/get(repos/get-branch-rules)`. - public enum repos_sol_get_hyphen_branch_hyphen_rules { + public enum ReposGetBranchRules { public static let id: Swift.String = "repos/get-branch-rules" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/path`. @@ -57050,15 +57486,15 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/path/branch`. - public var branch: Components.Parameters.branch + public var branch: Components.Parameters.Branch /// Creates a new `Path`. /// /// - Parameters: @@ -57066,52 +57502,52 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - branch: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - branch: Components.Parameters.branch + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + branch: Components.Parameters.Branch ) { self.owner = owner self.repo = repo self.branch = branch } } - public var path: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Path + public var path: Operations.ReposGetBranchRules.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Query + public var query: Operations.ReposGetBranchRules.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Headers + public var headers: Operations.ReposGetBranchRules.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -57119,9 +57555,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Path, - query: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Input.Headers = .init() + path: Operations.ReposGetBranchRules.Input.Path, + query: Operations.ReposGetBranchRules.Input.Query = .init(), + headers: Operations.ReposGetBranchRules.Input.Headers = .init() ) { self.path = path self.query = query @@ -57133,12 +57569,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rules/branches/{branch}/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_rule_hyphen_detailed]) + case json([Components.Schemas.RepositoryRuleDetailed]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_rule_hyphen_detailed] { + public var json: [Components.Schemas.RepositoryRuleDetailed] { get throws { switch self { case let .json(body): @@ -57148,12 +57584,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output.Ok.Body + public var body: Operations.ReposGetBranchRules.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output.Ok.Body) { + public init(body: Operations.ReposGetBranchRules.Output.Ok.Body) { self.body = body } } @@ -57162,12 +57598,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rules/branches/{branch}/get(repos/get-branch-rules)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output.Ok) + case ok(Operations.ReposGetBranchRules.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_branch_hyphen_rules.Output.Ok { + public var ok: Operations.ReposGetBranchRules.Output.Ok { get throws { switch self { case let .ok(response): @@ -57217,7 +57653,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)`. - public enum repos_sol_get_hyphen_repo_hyphen_rulesets { + public enum ReposGetRepoRulesets { public static let id: Swift.String = "repos/get-repo-rulesets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/path`. @@ -57225,78 +57661,78 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Path + public var path: Operations.ReposGetRepoRulesets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Include rulesets configured at higher levels that apply to this repository /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/query/includes_parents`. - public var includes_parents: Swift.Bool? + public var includesParents: 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? + public var targets: Components.Parameters.RulesetTargets? /// 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)." + /// - perPage: 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 + /// - includesParents: 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, - targets: Components.Parameters.ruleset_hyphen_targets? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + includesParents: Swift.Bool? = nil, + targets: Components.Parameters.RulesetTargets? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page - self.includes_parents = includes_parents + self.includesParents = includesParents self.targets = targets } } - public var query: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Query + public var query: Operations.ReposGetRepoRulesets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Headers + public var headers: Operations.ReposGetRepoRulesets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -57304,9 +57740,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Input.Headers = .init() + path: Operations.ReposGetRepoRulesets.Input.Path, + query: Operations.ReposGetRepoRulesets.Input.Query = .init(), + headers: Operations.ReposGetRepoRulesets.Input.Headers = .init() ) { self.path = path self.query = query @@ -57318,12 +57754,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_ruleset]) + case json([Components.Schemas.RepositoryRuleset]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_ruleset] { + public var json: [Components.Schemas.RepositoryRuleset] { get throws { switch self { case let .json(body): @@ -57333,12 +57769,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output.Ok.Body + public var body: Operations.ReposGetRepoRulesets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRulesets.Output.Ok.Body) { self.body = body } } @@ -57347,12 +57783,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output.Ok) + case ok(Operations.ReposGetRepoRulesets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_rulesets.Output.Ok { + public var ok: Operations.ReposGetRepoRulesets.Output.Ok { get throws { switch self { case let .ok(response): @@ -57370,12 +57806,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -57393,12 +57829,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/get(repos/get-repo-rulesets)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -57448,7 +57884,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/rulesets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)`. - public enum repos_sol_create_hyphen_repo_hyphen_ruleset { + public enum ReposCreateRepoRuleset { public static let id: Swift.String = "repos/create-repo-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/path`. @@ -57456,41 +57892,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Path + public var path: Operations.ReposCreateRepoRuleset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposCreateRepoRuleset.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/name`. @@ -57498,7 +57934,7 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/target`. - @frozen public enum targetPayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetPayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" case push = "push" @@ -57506,40 +57942,40 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/target`. - public var target: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? + public var target: Operations.ReposCreateRepoRuleset.Input.Body.JsonPayload.TargetPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/enforcement`. - public var enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement + public var enforcement: Components.Schemas.RepositoryRuleEnforcement /// The actors that can bypass the rules in this ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/bypass_actors`. - public var bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? + public var bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/conditions`. - public var conditions: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? + public var conditions: Components.Schemas.RepositoryRulesetConditions? /// An array of rules within the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/rules`. - public var rules: [Components.Schemas.repository_hyphen_rule]? - /// Creates a new `jsonPayload`. + public var rules: [Components.Schemas.RepositoryRule]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the ruleset. /// - target: The target of the ruleset /// - enforcement: - /// - bypass_actors: The actors that can bypass the rules in this ruleset + /// - bypassActors: The actors that can bypass the rules in this ruleset /// - conditions: /// - rules: An array of rules within the ruleset. public init( name: Swift.String, - target: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? = nil, - enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement, - bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? = nil, - conditions: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? = nil, - rules: [Components.Schemas.repository_hyphen_rule]? = nil + target: Operations.ReposCreateRepoRuleset.Input.Body.JsonPayload.TargetPayload? = nil, + enforcement: Components.Schemas.RepositoryRuleEnforcement, + bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? = nil, + conditions: Components.Schemas.RepositoryRulesetConditions? = nil, + rules: [Components.Schemas.RepositoryRule]? = nil ) { self.name = name self.target = target self.enforcement = enforcement - self.bypass_actors = bypass_actors + self.bypassActors = bypassActors self.conditions = conditions self.rules = rules } @@ -57547,15 +57983,15 @@ public enum Operations { case name case target case enforcement - case bypass_actors + case bypassActors = "bypass_actors" case conditions case rules } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload) + case json(Operations.ReposCreateRepoRuleset.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body + public var body: Operations.ReposCreateRepoRuleset.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -57563,9 +57999,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body + path: Operations.ReposCreateRepoRuleset.Input.Path, + headers: Operations.ReposCreateRepoRuleset.Input.Headers = .init(), + body: Operations.ReposCreateRepoRuleset.Input.Body ) { self.path = path self.headers = headers @@ -57577,12 +58013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/responses/201/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -57592,12 +58028,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output.Created.Body + public var body: Operations.ReposCreateRepoRuleset.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output.Created.Body) { + public init(body: Operations.ReposCreateRepoRuleset.Output.Created.Body) { self.body = body } } @@ -57606,12 +58042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output.Created) + case created(Operations.ReposCreateRepoRuleset.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Output.Created { + public var created: Operations.ReposCreateRepoRuleset.Output.Created { get throws { switch self { case let .created(response): @@ -57629,12 +58065,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -57652,12 +58088,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/post(repos/create-repo-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -57708,7 +58144,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)`. - public enum repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites { + public enum ReposGetRepoRuleSuites { public static let id: Swift.String = "repos/get-repo-rule-suites" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/path`. @@ -57716,33 +58152,33 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Path + public var path: Operations.ReposGetRepoRuleSuites.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query`. public struct Query: Sendable, Hashable { /// 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 `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/ref`. - public var ref: Components.Parameters.ref_hyphen_in_hyphen_query? + public var ref: Components.Parameters.RefInQuery? /// - Remark: Generated from `#/components/parameters/time-period`. - @frozen public enum time_hyphen_period: String, Codable, Hashable, Sendable { + @frozen public enum TimePeriod: String, Codable, Hashable, Sendable, CaseIterable { case hour = "hour" case day = "day" case week = "week" @@ -57753,13 +58189,13 @@ public enum Operations { /// For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/time_period`. - public var time_period: Components.Parameters.time_hyphen_period? + public var timePeriod: Components.Parameters.TimePeriod? /// The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/actor_name`. - public var actor_name: Components.Parameters.actor_hyphen_name_hyphen_in_hyphen_query? + public var actorName: Components.Parameters.ActorNameInQuery? /// - Remark: Generated from `#/components/parameters/rule-suite-result`. - @frozen public enum rule_hyphen_suite_hyphen_result: String, Codable, Hashable, Sendable { + @frozen public enum RuleSuiteResult: String, Codable, Hashable, Sendable, CaseIterable { case pass = "pass" case fail = "fail" case bypass = "bypass" @@ -57768,53 +58204,53 @@ public enum Operations { /// The rule results to filter on. When specified, only suites with this result will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/rule_suite_result`. - public var rule_suite_result: Components.Parameters.rule_hyphen_suite_hyphen_result? + public var ruleSuiteResult: Components.Parameters.RuleSuiteResult? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - ref: 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. - /// - time_period: The time period to filter by. - /// - actor_name: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. - /// - rule_suite_result: The rule results to filter on. When specified, only suites with this result will be returned. - /// - 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)." + /// - timePeriod: The time period to filter by. + /// - actorName: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. + /// - ruleSuiteResult: The rule results to filter on. When specified, only suites with this result will be returned. + /// - perPage: 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)." public init( - ref: Components.Parameters.ref_hyphen_in_hyphen_query? = nil, - time_period: Components.Parameters.time_hyphen_period? = nil, - actor_name: Components.Parameters.actor_hyphen_name_hyphen_in_hyphen_query? = nil, - rule_suite_result: Components.Parameters.rule_hyphen_suite_hyphen_result? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + ref: Components.Parameters.RefInQuery? = nil, + timePeriod: Components.Parameters.TimePeriod? = nil, + actorName: Components.Parameters.ActorNameInQuery? = nil, + ruleSuiteResult: Components.Parameters.RuleSuiteResult? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.ref = ref - self.time_period = time_period - self.actor_name = actor_name - self.rule_suite_result = rule_suite_result - self.per_page = per_page + self.timePeriod = timePeriod + self.actorName = actorName + self.ruleSuiteResult = ruleSuiteResult + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Query + public var query: Operations.ReposGetRepoRuleSuites.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Headers + public var headers: Operations.ReposGetRepoRuleSuites.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -57822,9 +58258,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Input.Headers = .init() + path: Operations.ReposGetRepoRuleSuites.Input.Path, + query: Operations.ReposGetRepoRuleSuites.Input.Query = .init(), + headers: Operations.ReposGetRepoRuleSuites.Input.Headers = .init() ) { self.path = path self.query = query @@ -57836,12 +58272,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/responses/200/content/application\/json`. - case json(Components.Schemas.rule_hyphen_suites) + case json(Components.Schemas.RuleSuites) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.rule_hyphen_suites { + public var json: Components.Schemas.RuleSuites { get throws { switch self { case let .json(body): @@ -57851,12 +58287,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output.Ok.Body + public var body: Operations.ReposGetRepoRuleSuites.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRuleSuites.Output.Ok.Body) { self.body = body } } @@ -57865,12 +58301,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output.Ok) + case ok(Operations.ReposGetRepoRuleSuites.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suites.Output.Ok { + public var ok: Operations.ReposGetRepoRuleSuites.Output.Ok { get throws { switch self { case let .ok(response): @@ -57888,12 +58324,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -57911,12 +58347,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/get(repos/get-repo-rule-suites)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -57967,7 +58403,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)`. - public enum repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite { + public enum ReposGetRepoRuleSuite { public static let id: Swift.String = "repos/get-repo-rule-suite" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/path`. @@ -57975,55 +58411,55 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the rule suite result. /// To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) /// for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) /// for organizations. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/path/rule_suite_id`. - public var rule_suite_id: Components.Parameters.rule_hyphen_suite_hyphen_id + public var ruleSuiteId: Components.Parameters.RuleSuiteId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - rule_suite_id: The unique identifier of the rule suite result. + /// - ruleSuiteId: The unique identifier of the rule suite result. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - rule_suite_id: Components.Parameters.rule_hyphen_suite_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ruleSuiteId: Components.Parameters.RuleSuiteId ) { self.owner = owner self.repo = repo - self.rule_suite_id = rule_suite_id + self.ruleSuiteId = ruleSuiteId } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Path + public var path: Operations.ReposGetRepoRuleSuite.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Headers + public var headers: Operations.ReposGetRepoRuleSuite.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Path, - headers: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Input.Headers = .init() + path: Operations.ReposGetRepoRuleSuite.Input.Path, + headers: Operations.ReposGetRepoRuleSuite.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -58034,12 +58470,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.rule_hyphen_suite) + case json(Components.Schemas.RuleSuite) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.rule_hyphen_suite { + public var json: Components.Schemas.RuleSuite { get throws { switch self { case let .json(body): @@ -58049,12 +58485,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output.Ok.Body + public var body: Operations.ReposGetRepoRuleSuite.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRuleSuite.Output.Ok.Body) { self.body = body } } @@ -58063,12 +58499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output.Ok) + case ok(Operations.ReposGetRepoRuleSuite.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_rule_hyphen_suite.Output.Ok { + public var ok: Operations.ReposGetRepoRuleSuite.Output.Ok { get throws { switch self { case let .ok(response): @@ -58086,12 +58522,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -58109,12 +58545,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}/get(repos/get-repo-rule-suite)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -58167,7 +58603,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)`. - public enum repos_sol_get_hyphen_repo_hyphen_ruleset { + public enum ReposGetRepoRuleset { public static let id: Swift.String = "repos/get-repo-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/path`. @@ -58175,59 +58611,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ruleset_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + rulesetId: Swift.Int ) { self.owner = owner self.repo = repo - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Path + public var path: Operations.ReposGetRepoRuleset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/query`. public struct Query: Sendable, Hashable { /// Include rulesets configured at higher levels that apply to this repository /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/query/includes_parents`. - public var includes_parents: Swift.Bool? + public var includesParents: Swift.Bool? /// Creates a new `Query`. /// /// - Parameters: - /// - includes_parents: Include rulesets configured at higher levels that apply to this repository - public init(includes_parents: Swift.Bool? = nil) { - self.includes_parents = includes_parents + /// - includesParents: Include rulesets configured at higher levels that apply to this repository + public init(includesParents: Swift.Bool? = nil) { + self.includesParents = includesParents } } - public var query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Query + public var query: Operations.ReposGetRepoRuleset.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposGetRepoRuleset.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -58235,9 +58671,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Input.Headers = .init() + path: Operations.ReposGetRepoRuleset.Input.Path, + query: Operations.ReposGetRepoRuleset.Input.Query = .init(), + headers: Operations.ReposGetRepoRuleset.Input.Headers = .init() ) { self.path = path self.query = query @@ -58249,12 +58685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -58264,12 +58700,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output.Ok.Body + public var body: Operations.ReposGetRepoRuleset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRuleset.Output.Ok.Body) { self.body = body } } @@ -58278,12 +58714,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output.Ok) + case ok(Operations.ReposGetRepoRuleset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset.Output.Ok { + public var ok: Operations.ReposGetRepoRuleset.Output.Ok { get throws { switch self { case let .ok(response): @@ -58301,12 +58737,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -58324,12 +58760,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/get(repos/get-repo-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -58379,7 +58815,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)`. - public enum repos_sol_update_hyphen_repo_hyphen_ruleset { + public enum ReposUpdateRepoRuleset { public static let id: Swift.String = "repos/update-repo-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/path`. @@ -58387,48 +58823,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ruleset_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + rulesetId: Swift.Int ) { self.owner = owner self.repo = repo - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Path + public var path: Operations.ReposUpdateRepoRuleset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposUpdateRepoRuleset.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/name`. @@ -58436,7 +58872,7 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. - @frozen public enum targetPayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetPayload: String, Codable, Hashable, Sendable, CaseIterable { case branch = "branch" case tag = "tag" case push = "push" @@ -58444,40 +58880,40 @@ public enum Operations { /// The target of the ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. - public var target: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? + public var target: Operations.ReposUpdateRepoRuleset.Input.Body.JsonPayload.TargetPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/enforcement`. - public var enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement? + public var enforcement: Components.Schemas.RepositoryRuleEnforcement? /// The actors that can bypass the rules in this ruleset /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/bypass_actors`. - public var bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? + public var bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/conditions`. - public var conditions: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? + public var conditions: Components.Schemas.RepositoryRulesetConditions? /// An array of rules within the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/rules`. - public var rules: [Components.Schemas.repository_hyphen_rule]? - /// Creates a new `jsonPayload`. + public var rules: [Components.Schemas.RepositoryRule]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the ruleset. /// - target: The target of the ruleset /// - enforcement: - /// - bypass_actors: The actors that can bypass the rules in this ruleset + /// - bypassActors: The actors that can bypass the rules in this ruleset /// - conditions: /// - rules: An array of rules within the ruleset. public init( name: Swift.String? = nil, - target: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? = nil, - enforcement: Components.Schemas.repository_hyphen_rule_hyphen_enforcement? = nil, - bypass_actors: [Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor]? = nil, - conditions: Components.Schemas.repository_hyphen_ruleset_hyphen_conditions? = nil, - rules: [Components.Schemas.repository_hyphen_rule]? = nil + target: Operations.ReposUpdateRepoRuleset.Input.Body.JsonPayload.TargetPayload? = nil, + enforcement: Components.Schemas.RepositoryRuleEnforcement? = nil, + bypassActors: [Components.Schemas.RepositoryRulesetBypassActor]? = nil, + conditions: Components.Schemas.RepositoryRulesetConditions? = nil, + rules: [Components.Schemas.RepositoryRule]? = nil ) { self.name = name self.target = target self.enforcement = enforcement - self.bypass_actors = bypass_actors + self.bypassActors = bypassActors self.conditions = conditions self.rules = rules } @@ -58485,15 +58921,15 @@ public enum Operations { case name case target case enforcement - case bypass_actors + case bypassActors = "bypass_actors" case conditions case rules } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload) + case json(Operations.ReposUpdateRepoRuleset.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body? + public var body: Operations.ReposUpdateRepoRuleset.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -58501,9 +58937,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Headers = .init(), - body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body? = nil + path: Operations.ReposUpdateRepoRuleset.Input.Path, + headers: Operations.ReposUpdateRepoRuleset.Input.Headers = .init(), + body: Operations.ReposUpdateRepoRuleset.Input.Body? = nil ) { self.path = path self.headers = headers @@ -58515,12 +58951,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_ruleset) + case json(Components.Schemas.RepositoryRuleset) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_ruleset { + public var json: Components.Schemas.RepositoryRuleset { get throws { switch self { case let .json(body): @@ -58530,12 +58966,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output.Ok.Body + public var body: Operations.ReposUpdateRepoRuleset.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output.Ok.Body) { + public init(body: Operations.ReposUpdateRepoRuleset.Output.Ok.Body) { self.body = body } } @@ -58544,12 +58980,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output.Ok) + case ok(Operations.ReposUpdateRepoRuleset.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Output.Ok { + public var ok: Operations.ReposUpdateRepoRuleset.Output.Ok { get throws { switch self { case let .ok(response): @@ -58567,12 +59003,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -58590,12 +59026,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/put(repos/update-repo-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -58645,7 +59081,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)`. - public enum repos_sol_delete_hyphen_repo_hyphen_ruleset { + public enum ReposDeleteRepoRuleset { public static let id: Swift.String = "repos/delete-repo-ruleset" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/DELETE/path`. @@ -58653,52 +59089,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/DELETE/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ruleset_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + rulesetId: Swift.Int ) { self.owner = owner self.repo = repo - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Path + public var path: Operations.ReposDeleteRepoRuleset.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Headers + public var headers: Operations.ReposDeleteRepoRuleset.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Path, - headers: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input.Headers = .init() + path: Operations.ReposDeleteRepoRuleset.Input.Path, + headers: Operations.ReposDeleteRepoRuleset.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -58714,12 +59150,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output.NoContent) + case noContent(Operations.ReposDeleteRepoRuleset.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output.NoContent { + public var noContent: Operations.ReposDeleteRepoRuleset.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -58737,12 +59181,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -58760,12 +59204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/delete(repos/delete-repo-ruleset)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -58815,7 +59259,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)`. - public enum repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history { + public enum ReposGetRepoRulesetHistory { public static let id: Swift.String = "repos/get-repo-ruleset-history" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/path`. @@ -58823,68 +59267,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. + /// - rulesetId: The ID of the ruleset. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ruleset_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + rulesetId: Swift.Int ) { self.owner = owner self.repo = repo - self.ruleset_id = ruleset_id + self.rulesetId = rulesetId } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Path + public var path: Operations.ReposGetRepoRulesetHistory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Query + public var query: Operations.ReposGetRepoRulesetHistory.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Headers + public var headers: Operations.ReposGetRepoRulesetHistory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -58892,9 +59336,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Path, - query: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Input.Headers = .init() + path: Operations.ReposGetRepoRulesetHistory.Input.Path, + query: Operations.ReposGetRepoRulesetHistory.Input.Query = .init(), + headers: Operations.ReposGetRepoRulesetHistory.Input.Headers = .init() ) { self.path = path self.query = query @@ -58906,12 +59350,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/GET/responses/200/content/application\/json`. - case json([Components.Schemas.ruleset_hyphen_version]) + case json([Components.Schemas.RulesetVersion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.ruleset_hyphen_version] { + public var json: [Components.Schemas.RulesetVersion] { get throws { switch self { case let .json(body): @@ -58921,12 +59365,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output.Ok.Body + public var body: Operations.ReposGetRepoRulesetHistory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRulesetHistory.Output.Ok.Body) { self.body = body } } @@ -58935,12 +59379,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output.Ok) + case ok(Operations.ReposGetRepoRulesetHistory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_history.Output.Ok { + public var ok: Operations.ReposGetRepoRulesetHistory.Output.Ok { get throws { switch self { case let .ok(response): @@ -58958,12 +59402,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -58981,12 +59425,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/get(repos/get-repo-ruleset-history)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -59036,7 +59480,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)`. - public enum repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version { + public enum ReposGetRepoRulesetVersion { public static let id: Swift.String = "repos/get-repo-ruleset-version" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/path`. @@ -59044,59 +59488,59 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The ID of the ruleset. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/path/ruleset_id`. - public var ruleset_id: Swift.Int + public var rulesetId: Swift.Int /// The ID of the version /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/path/version_id`. - public var version_id: Swift.Int + public var versionId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ruleset_id: The ID of the ruleset. - /// - version_id: The ID of the version + /// - rulesetId: The ID of the ruleset. + /// - versionId: The ID of the version public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ruleset_id: Swift.Int, - version_id: Swift.Int + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + rulesetId: Swift.Int, + versionId: Swift.Int ) { self.owner = owner self.repo = repo - self.ruleset_id = ruleset_id - self.version_id = version_id + self.rulesetId = rulesetId + self.versionId = versionId } } - public var path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Path + public var path: Operations.ReposGetRepoRulesetVersion.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Headers + public var headers: Operations.ReposGetRepoRulesetVersion.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Path, - headers: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Input.Headers = .init() + path: Operations.ReposGetRepoRulesetVersion.Input.Path, + headers: Operations.ReposGetRepoRulesetVersion.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -59107,12 +59551,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state) + case json(Components.Schemas.RulesetVersionWithState) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.ruleset_hyphen_version_hyphen_with_hyphen_state { + public var json: Components.Schemas.RulesetVersionWithState { get throws { switch self { case let .json(body): @@ -59122,12 +59566,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output.Ok.Body + public var body: Operations.ReposGetRepoRulesetVersion.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output.Ok.Body) { + public init(body: Operations.ReposGetRepoRulesetVersion.Output.Ok.Body) { self.body = body } } @@ -59136,12 +59580,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output.Ok) + case ok(Operations.ReposGetRepoRulesetVersion.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_repo_hyphen_ruleset_hyphen_version.Output.Ok { + public var ok: Operations.ReposGetRepoRulesetVersion.Output.Ok { get throws { switch self { case let .ok(response): @@ -59159,12 +59603,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -59182,12 +59626,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}/get(repos/get-repo-ruleset-version)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -59240,7 +59684,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`. - public enum repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats { + public enum ReposGetCodeFrequencyStats { public static let id: Swift.String = "repos/get-code-frequency-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/path`. @@ -59248,45 +59692,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Path + public var path: Operations.ReposGetCodeFrequencyStats.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Headers + public var headers: Operations.ReposGetCodeFrequencyStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input.Headers = .init() + path: Operations.ReposGetCodeFrequencyStats.Input.Path, + headers: Operations.ReposGetCodeFrequencyStats.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -59297,12 +59741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/code_frequency/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_frequency_hyphen_stat]) + case json([Components.Schemas.CodeFrequencyStat]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_frequency_hyphen_stat] { + public var json: [Components.Schemas.CodeFrequencyStat] { get throws { switch self { case let .json(body): @@ -59312,12 +59756,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.Ok.Body + public var body: Operations.ReposGetCodeFrequencyStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ReposGetCodeFrequencyStats.Output.Ok.Body) { self.body = body } } @@ -59326,12 +59770,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.Ok) + case ok(Operations.ReposGetCodeFrequencyStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.Ok { + public var ok: Operations.ReposGetCodeFrequencyStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -59349,12 +59793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -59372,12 +59816,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -59399,12 +59851,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent) + case unprocessableContent(Operations.ReposGetCodeFrequencyStats.Output.UnprocessableContent) + /// Repository contains more than 10,000 commits + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent { + public var unprocessableContent: Operations.ReposGetCodeFrequencyStats.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -59454,7 +59914,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/commit_activity`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)`. - public enum repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats { + public enum ReposGetCommitActivityStats { public static let id: Swift.String = "repos/get-commit-activity-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/path`. @@ -59462,45 +59922,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Path + public var path: Operations.ReposGetCommitActivityStats.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Headers + public var headers: Operations.ReposGetCommitActivityStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Input.Headers = .init() + path: Operations.ReposGetCommitActivityStats.Input.Path, + headers: Operations.ReposGetCommitActivityStats.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -59511,12 +59971,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/commit_activity/GET/responses/200/content/application\/json`. - case json([Components.Schemas.commit_hyphen_activity]) + case json([Components.Schemas.CommitActivity]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.commit_hyphen_activity] { + public var json: [Components.Schemas.CommitActivity] { get throws { switch self { case let .json(body): @@ -59526,12 +59986,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output.Ok.Body + public var body: Operations.ReposGetCommitActivityStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ReposGetCommitActivityStats.Output.Ok.Body) { self.body = body } } @@ -59540,12 +60000,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output.Ok) + case ok(Operations.ReposGetCommitActivityStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_commit_hyphen_activity_hyphen_stats.Output.Ok { + public var ok: Operations.ReposGetCommitActivityStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -59563,12 +60023,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -59586,12 +60046,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/commit_activity/get(repos/get-commit-activity-stats)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -59650,7 +60118,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`. - public enum repos_sol_get_hyphen_contributors_hyphen_stats { + public enum ReposGetContributorsStats { public static let id: Swift.String = "repos/get-contributors-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/path`. @@ -59658,45 +60126,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Path + public var path: Operations.ReposGetContributorsStats.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Headers + public var headers: Operations.ReposGetContributorsStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input.Headers = .init() + path: Operations.ReposGetContributorsStats.Input.Path, + headers: Operations.ReposGetContributorsStats.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -59707,12 +60175,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/contributors/GET/responses/200/content/application\/json`. - case json([Components.Schemas.contributor_hyphen_activity]) + case json([Components.Schemas.ContributorActivity]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.contributor_hyphen_activity] { + public var json: [Components.Schemas.ContributorActivity] { get throws { switch self { case let .json(body): @@ -59722,12 +60190,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output.Ok.Body + public var body: Operations.ReposGetContributorsStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ReposGetContributorsStats.Output.Ok.Body) { self.body = body } } @@ -59736,12 +60204,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output.Ok) + case ok(Operations.ReposGetContributorsStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output.Ok { + public var ok: Operations.ReposGetContributorsStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -59759,12 +60227,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -59782,12 +60250,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -59841,7 +60317,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/participation`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)`. - public enum repos_sol_get_hyphen_participation_hyphen_stats { + public enum ReposGetParticipationStats { public static let id: Swift.String = "repos/get-participation-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/path`. @@ -59849,45 +60325,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Path + public var path: Operations.ReposGetParticipationStats.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Headers + public var headers: Operations.ReposGetParticipationStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Input.Headers = .init() + path: Operations.ReposGetParticipationStats.Input.Path, + headers: Operations.ReposGetParticipationStats.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -59898,12 +60374,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/participation/GET/responses/200/content/application\/json`. - case json(Components.Schemas.participation_hyphen_stats) + case json(Components.Schemas.ParticipationStats) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.participation_hyphen_stats { + public var json: Components.Schemas.ParticipationStats { get throws { switch self { case let .json(body): @@ -59913,12 +60389,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output.Ok.Body + public var body: Operations.ReposGetParticipationStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ReposGetParticipationStats.Output.Ok.Body) { self.body = body } } @@ -59927,12 +60403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output.Ok) + case ok(Operations.ReposGetParticipationStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_participation_hyphen_stats.Output.Ok { + public var ok: Operations.ReposGetParticipationStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -59950,12 +60426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/participation/get(repos/get-participation-stats)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -60011,7 +60487,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/punch_card`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)`. - public enum repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats { + public enum ReposGetPunchCardStats { public static let id: Swift.String = "repos/get-punch-card-stats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/path`. @@ -60019,45 +60495,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Path + public var path: Operations.ReposGetPunchCardStats.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Headers + public var headers: Operations.ReposGetPunchCardStats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Path, - headers: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Input.Headers = .init() + path: Operations.ReposGetPunchCardStats.Input.Path, + headers: Operations.ReposGetPunchCardStats.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -60068,12 +60544,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/stats/punch_card/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_frequency_hyphen_stat]) + case json([Components.Schemas.CodeFrequencyStat]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_frequency_hyphen_stat] { + public var json: [Components.Schemas.CodeFrequencyStat] { get throws { switch self { case let .json(body): @@ -60083,12 +60559,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output.Ok.Body + public var body: Operations.ReposGetPunchCardStats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output.Ok.Body) { + public init(body: Operations.ReposGetPunchCardStats.Output.Ok.Body) { self.body = body } } @@ -60097,12 +60573,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output.Ok) + case ok(Operations.ReposGetPunchCardStats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_punch_hyphen_card_hyphen_stats.Output.Ok { + public var ok: Operations.ReposGetPunchCardStats.Output.Ok { get throws { switch self { case let .ok(response): @@ -60120,12 +60596,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/punch_card/get(repos/get-punch-card-stats)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -60177,7 +60661,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/statuses/{sha}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/statuses/{sha}/post(repos/create-commit-status)`. - public enum repos_sol_create_hyphen_commit_hyphen_status { + public enum ReposCreateCommitStatus { public static let id: Swift.String = "repos/create-commit-status" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/path`. @@ -60185,11 +60669,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/path/sha`. public var sha: Swift.String /// Creates a new `Path`. @@ -60199,8 +60683,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - sha: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, sha: Swift.String ) { self.owner = owner @@ -60208,27 +60692,27 @@ public enum Operations { self.sha = sha } } - public var path: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Path + public var path: Operations.ReposCreateCommitStatus.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Headers + public var headers: Operations.ReposCreateCommitStatus.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The state of the status. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case error = "error" case failure = "failure" case pending = "pending" @@ -60237,13 +60721,13 @@ public enum Operations { /// The state of the status. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json/state`. - public var state: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body.jsonPayload.statePayload + public var state: Operations.ReposCreateCommitStatus.Input.Body.JsonPayload.StatePayload /// The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. /// For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: /// `http://ci.example.com/user/repo/build/sha` /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json/target_url`. - public var target_url: Swift.String? + public var targetUrl: Swift.String? /// A short description of the status. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json/description`. @@ -60252,35 +60736,35 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/json/context`. public var context: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: The state of the status. - /// - target_url: The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /// - targetUrl: The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. /// - description: A short description of the status. /// - context: A string label to differentiate this status from the status of other systems. This field is case-insensitive. public init( - state: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body.jsonPayload.statePayload, - target_url: Swift.String? = nil, + state: Operations.ReposCreateCommitStatus.Input.Body.JsonPayload.StatePayload, + targetUrl: Swift.String? = nil, description: Swift.String? = nil, context: Swift.String? = nil ) { self.state = state - self.target_url = target_url + self.targetUrl = targetUrl self.description = description self.context = context } public enum CodingKeys: String, CodingKey { case state - case target_url + case targetUrl = "target_url" case description case context } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body.jsonPayload) + case json(Operations.ReposCreateCommitStatus.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body + public var body: Operations.ReposCreateCommitStatus.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -60288,9 +60772,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Path, - headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Input.Body + path: Operations.ReposCreateCommitStatus.Input.Path, + headers: Operations.ReposCreateCommitStatus.Input.Headers = .init(), + body: Operations.ReposCreateCommitStatus.Input.Body ) { self.path = path self.headers = headers @@ -60302,26 +60786,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Headers + public var headers: Operations.ReposCreateCommitStatus.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/statuses/{sha}/POST/responses/201/content/application\/json`. - case json(Components.Schemas.status) + case json(Components.Schemas.Status) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.status { + public var json: Components.Schemas.Status { get throws { switch self { case let .json(body): @@ -60331,15 +60815,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Body + public var body: Operations.ReposCreateCommitStatus.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created.Body + headers: Operations.ReposCreateCommitStatus.Output.Created.Headers = .init(), + body: Operations.ReposCreateCommitStatus.Output.Created.Body ) { self.headers = headers self.body = body @@ -60350,12 +60834,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/statuses/{sha}/post(repos/create-commit-status)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created) + case created(Operations.ReposCreateCommitStatus.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_commit_hyphen_status.Output.Created { + public var created: Operations.ReposCreateCommitStatus.Output.Created { get throws { switch self { case let .created(response): @@ -60405,7 +60889,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`. - public enum repos_sol_list_hyphen_tags { + public enum ReposListTags { public static let id: Swift.String = "repos/list-tags" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/path`. @@ -60413,61 +60897,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_tags.Input.Path + public var path: Operations.ReposListTags.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_tags.Input.Query + public var query: Operations.ReposListTags.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_tags.Input.Headers + public var headers: Operations.ReposListTags.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -60475,9 +60959,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_tags.Input.Path, - query: Operations.repos_sol_list_hyphen_tags.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_tags.Input.Headers = .init() + path: Operations.ReposListTags.Input.Path, + query: Operations.ReposListTags.Input.Query = .init(), + headers: Operations.ReposListTags.Input.Headers = .init() ) { self.path = path self.query = query @@ -60489,26 +60973,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_tags.Output.Ok.Headers + public var headers: Operations.ReposListTags.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/GET/responses/200/content/application\/json`. - case json([Components.Schemas.tag]) + case json([Components.Schemas.Tag]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.tag] { + public var json: [Components.Schemas.Tag] { get throws { switch self { case let .json(body): @@ -60518,15 +61002,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_tags.Output.Ok.Body + public var body: Operations.ReposListTags.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_tags.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_tags.Output.Ok.Body + headers: Operations.ReposListTags.Output.Ok.Headers = .init(), + body: Operations.ReposListTags.Output.Ok.Body ) { self.headers = headers self.body = body @@ -60537,12 +61021,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_tags.Output.Ok) + case ok(Operations.ReposListTags.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_tags.Output.Ok { + public var ok: Operations.ReposListTags.Output.Ok { get throws { switch self { case let .ok(response): @@ -60597,7 +61081,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`. - public enum repos_sol_list_hyphen_tag_hyphen_protection { + public enum ReposListTagProtection { public static let id: Swift.String = "repos/list-tag-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/path`. @@ -60605,45 +61089,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Path + public var path: Operations.ReposListTagProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Headers + public var headers: Operations.ReposListTagProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Headers = .init() + path: Operations.ReposListTagProtection.Input.Path, + headers: Operations.ReposListTagProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -60654,12 +61138,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/GET/responses/200/content/application\/json`. - case json([Components.Schemas.tag_hyphen_protection]) + case json([Components.Schemas.TagProtection]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.tag_hyphen_protection] { + public var json: [Components.Schemas.TagProtection] { get throws { switch self { case let .json(body): @@ -60669,12 +61153,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output.Ok.Body + public var body: Operations.ReposListTagProtection.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output.Ok.Body) { + public init(body: Operations.ReposListTagProtection.Output.Ok.Body) { self.body = body } } @@ -60683,12 +61167,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output.Ok) + case ok(Operations.ReposListTagProtection.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output.Ok { + public var ok: Operations.ReposListTagProtection.Output.Ok { get throws { switch self { case let .ok(response): @@ -60706,12 +61190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -60729,12 +61213,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -60788,7 +61272,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`. - public enum repos_sol_create_hyphen_tag_hyphen_protection { + public enum ReposCreateTagProtection { public static let id: Swift.String = "repos/create-tag-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/path`. @@ -60796,46 +61280,46 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Path + public var path: Operations.ReposCreateTagProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Headers + public var headers: Operations.ReposCreateTagProtection.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An optional glob pattern to match against when enforcing tag protection. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/requestBody/json/pattern`. public var pattern: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - pattern: An optional glob pattern to match against when enforcing tag protection. @@ -60847,9 +61331,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Body.jsonPayload) + case json(Operations.ReposCreateTagProtection.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Body + public var body: Operations.ReposCreateTagProtection.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -60857,9 +61341,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Body + path: Operations.ReposCreateTagProtection.Input.Path, + headers: Operations.ReposCreateTagProtection.Input.Headers = .init(), + body: Operations.ReposCreateTagProtection.Input.Body ) { self.path = path self.headers = headers @@ -60871,12 +61355,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/POST/responses/201/content/application\/json`. - case json(Components.Schemas.tag_hyphen_protection) + case json(Components.Schemas.TagProtection) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.tag_hyphen_protection { + public var json: Components.Schemas.TagProtection { get throws { switch self { case let .json(body): @@ -60886,12 +61370,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output.Created.Body + public var body: Operations.ReposCreateTagProtection.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output.Created.Body) { + public init(body: Operations.ReposCreateTagProtection.Output.Created.Body) { self.body = body } } @@ -60900,12 +61384,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output.Created) + case created(Operations.ReposCreateTagProtection.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output.Created { + public var created: Operations.ReposCreateTagProtection.Output.Created { get throws { switch self { case let .created(response): @@ -60923,12 +61407,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -60946,12 +61430,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -61005,7 +61489,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`. - public enum repos_sol_delete_hyphen_tag_hyphen_protection { + public enum ReposDeleteTagProtection { public static let id: Swift.String = "repos/delete-tag-protection" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/{tag_protection_id}/DELETE/path`. @@ -61013,52 +61497,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/{tag_protection_id}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/{tag_protection_id}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The unique identifier of the tag protection. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/{tag_protection_id}/DELETE/path/tag_protection_id`. - public var tag_protection_id: Components.Parameters.tag_hyphen_protection_hyphen_id + public var tagProtectionId: Components.Parameters.TagProtectionId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - tag_protection_id: The unique identifier of the tag protection. + /// - tagProtectionId: The unique identifier of the tag protection. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - tag_protection_id: Components.Parameters.tag_hyphen_protection_hyphen_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + tagProtectionId: Components.Parameters.TagProtectionId ) { self.owner = owner self.repo = repo - self.tag_protection_id = tag_protection_id + self.tagProtectionId = tagProtectionId } } - public var path: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Path + public var path: Operations.ReposDeleteTagProtection.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tags/protection/{tag_protection_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Headers + public var headers: Operations.ReposDeleteTagProtection.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Path, - headers: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Headers = .init() + path: Operations.ReposDeleteTagProtection.Input.Path, + headers: Operations.ReposDeleteTagProtection.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -61074,12 +61558,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output.NoContent) + case noContent(Operations.ReposDeleteTagProtection.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output.NoContent { + public var noContent: Operations.ReposDeleteTagProtection.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -61097,12 +61589,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -61120,12 +61612,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -61180,7 +61672,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/tarball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tarball/{ref}/get(repos/download-tarball-archive)`. - public enum repos_sol_download_hyphen_tarball_hyphen_archive { + public enum ReposDownloadTarballArchive { public static let id: Swift.String = "repos/download-tarball-archive" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/path`. @@ -61188,11 +61680,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/path/ref`. public var ref: Swift.String /// Creates a new `Path`. @@ -61202,8 +61694,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, ref: Swift.String ) { self.owner = owner @@ -61211,12 +61703,12 @@ public enum Operations { self.ref = ref } } - public var path: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input.Path + public var path: Operations.ReposDownloadTarballArchive.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Input.Path) { + public init(path: Operations.ReposDownloadTarballArchive.Input.Path) { self.path = path } } @@ -61225,22 +61717,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/tarball/{ref}/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output.Found.Headers + public var headers: Operations.ReposDownloadTarballArchive.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output.Found.Headers = .init()) { + public init(headers: Operations.ReposDownloadTarballArchive.Output.Found.Headers = .init()) { self.headers = headers } } @@ -61249,12 +61741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tarball/{ref}/get(repos/download-tarball-archive)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output.Found) + case found(Operations.ReposDownloadTarballArchive.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.repos_sol_download_hyphen_tarball_hyphen_archive.Output.Found { + public var found: Operations.ReposDownloadTarballArchive.Output.Found { get throws { switch self { case let .found(response): @@ -61283,7 +61775,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/teams`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)`. - public enum repos_sol_list_hyphen_teams { + public enum ReposListTeams { public static let id: Swift.String = "repos/list-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/path`. @@ -61291,61 +61783,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_list_hyphen_teams.Input.Path + public var path: Operations.ReposListTeams.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_teams.Input.Query + public var query: Operations.ReposListTeams.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_teams.Input.Headers + public var headers: Operations.ReposListTeams.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -61353,9 +61845,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_teams.Input.Path, - query: Operations.repos_sol_list_hyphen_teams.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_teams.Input.Headers = .init() + path: Operations.ReposListTeams.Input.Path, + query: Operations.ReposListTeams.Input.Query = .init(), + headers: Operations.ReposListTeams.Input.Headers = .init() ) { self.path = path self.query = query @@ -61367,26 +61859,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_teams.Output.Ok.Headers + public var headers: Operations.ReposListTeams.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -61396,15 +61888,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_teams.Output.Ok.Body + public var body: Operations.ReposListTeams.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_teams.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_teams.Output.Ok.Body + headers: Operations.ReposListTeams.Output.Ok.Headers = .init(), + body: Operations.ReposListTeams.Output.Ok.Body ) { self.headers = headers self.body = body @@ -61415,12 +61907,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_teams.Output.Ok) + case ok(Operations.ReposListTeams.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_teams.Output.Ok { + public var ok: Operations.ReposListTeams.Output.Ok { get throws { switch self { case let .ok(response): @@ -61438,12 +61930,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/teams/get(repos/list-teams)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -61493,7 +61985,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)`. - public enum repos_sol_get_hyphen_all_hyphen_topics { + public enum ReposGetAllTopics { public static let id: Swift.String = "repos/get-all-topics" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/path`. @@ -61501,61 +61993,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Path + public var path: Operations.ReposGetAllTopics.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Query + public var query: Operations.ReposGetAllTopics.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Headers + public var headers: Operations.ReposGetAllTopics.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -61563,9 +62055,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Path, - query: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_all_hyphen_topics.Input.Headers = .init() + path: Operations.ReposGetAllTopics.Input.Path, + query: Operations.ReposGetAllTopics.Input.Query = .init(), + headers: Operations.ReposGetAllTopics.Input.Headers = .init() ) { self.path = path self.query = query @@ -61577,12 +62069,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/GET/responses/200/content/application\/json`. - case json(Components.Schemas.topic) + case json(Components.Schemas.Topic) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.topic { + public var json: Components.Schemas.Topic { get throws { switch self { case let .json(body): @@ -61592,12 +62084,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_all_hyphen_topics.Output.Ok.Body + public var body: Operations.ReposGetAllTopics.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_all_hyphen_topics.Output.Ok.Body) { + public init(body: Operations.ReposGetAllTopics.Output.Ok.Body) { self.body = body } } @@ -61606,12 +62098,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_all_hyphen_topics.Output.Ok) + case ok(Operations.ReposGetAllTopics.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_all_hyphen_topics.Output.Ok { + public var ok: Operations.ReposGetAllTopics.Output.Ok { get throws { switch self { case let .ok(response): @@ -61629,12 +62121,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/get(repos/get-all-topics)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -61684,7 +62176,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/topics`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)`. - public enum repos_sol_replace_hyphen_all_hyphen_topics { + public enum ReposReplaceAllTopics { public static let id: Swift.String = "repos/replace-all-topics" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/path`. @@ -61692,46 +62184,46 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Path + public var path: Operations.ReposReplaceAllTopics.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Headers + public var headers: Operations.ReposReplaceAllTopics.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/requestBody/json/names`. public var names: [Swift.String] - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - names: An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase. @@ -61743,9 +62235,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/requestBody/content/application\/json`. - case json(Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Body.jsonPayload) + case json(Operations.ReposReplaceAllTopics.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Body + public var body: Operations.ReposReplaceAllTopics.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -61753,9 +62245,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Path, - headers: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Headers = .init(), - body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Input.Body + path: Operations.ReposReplaceAllTopics.Input.Path, + headers: Operations.ReposReplaceAllTopics.Input.Headers = .init(), + body: Operations.ReposReplaceAllTopics.Input.Body ) { self.path = path self.headers = headers @@ -61767,12 +62259,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/topics/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.topic) + case json(Components.Schemas.Topic) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.topic { + public var json: Components.Schemas.Topic { get throws { switch self { case let .json(body): @@ -61782,12 +62274,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output.Ok.Body + public var body: Operations.ReposReplaceAllTopics.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output.Ok.Body) { + public init(body: Operations.ReposReplaceAllTopics.Output.Ok.Body) { self.body = body } } @@ -61796,12 +62288,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output.Ok) + case ok(Operations.ReposReplaceAllTopics.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_replace_hyphen_all_hyphen_topics.Output.Ok { + public var ok: Operations.ReposReplaceAllTopics.Output.Ok { get throws { switch self { case let .ok(response): @@ -61819,12 +62311,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -61842,12 +62334,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/topics/put(repos/replace-all-topics)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -61897,7 +62389,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/clones`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)`. - public enum repos_sol_get_hyphen_clones { + public enum ReposGetClones { public static let id: Swift.String = "repos/get-clones" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/path`. @@ -61905,57 +62397,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_clones.Input.Path + public var path: Operations.ReposGetClones.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/per`. - @frozen public enum per: String, Codable, Hashable, Sendable { + @frozen public enum Per: String, Codable, Hashable, Sendable, CaseIterable { case day = "day" case week = "week" } /// The time frame to display results for. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/query/per`. - public var per: Components.Parameters.per? + public var per: Components.Parameters.Per? /// Creates a new `Query`. /// /// - Parameters: /// - per: The time frame to display results for. - public init(per: Components.Parameters.per? = nil) { + public init(per: Components.Parameters.Per? = nil) { self.per = per } } - public var query: Operations.repos_sol_get_hyphen_clones.Input.Query + public var query: Operations.ReposGetClones.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_clones.Input.Headers + public var headers: Operations.ReposGetClones.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -61963,9 +62455,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_clones.Input.Path, - query: Operations.repos_sol_get_hyphen_clones.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_clones.Input.Headers = .init() + path: Operations.ReposGetClones.Input.Path, + query: Operations.ReposGetClones.Input.Query = .init(), + headers: Operations.ReposGetClones.Input.Headers = .init() ) { self.path = path self.query = query @@ -61977,12 +62469,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/clones/GET/responses/200/content/application\/json`. - case json(Components.Schemas.clone_hyphen_traffic) + case json(Components.Schemas.CloneTraffic) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.clone_hyphen_traffic { + public var json: Components.Schemas.CloneTraffic { get throws { switch self { case let .json(body): @@ -61992,12 +62484,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_clones.Output.Ok.Body + public var body: Operations.ReposGetClones.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_clones.Output.Ok.Body) { + public init(body: Operations.ReposGetClones.Output.Ok.Body) { self.body = body } } @@ -62006,12 +62498,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_clones.Output.Ok) + case ok(Operations.ReposGetClones.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_clones.Output.Ok { + public var ok: Operations.ReposGetClones.Output.Ok { get throws { switch self { case let .ok(response): @@ -62029,12 +62521,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/clones/get(repos/get-clones)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -62084,7 +62576,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/paths`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)`. - public enum repos_sol_get_hyphen_top_hyphen_paths { + public enum ReposGetTopPaths { public static let id: Swift.String = "repos/get-top-paths" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/path`. @@ -62092,45 +62584,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Path + public var path: Operations.ReposGetTopPaths.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Headers + public var headers: Operations.ReposGetTopPaths.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Path, - headers: Operations.repos_sol_get_hyphen_top_hyphen_paths.Input.Headers = .init() + path: Operations.ReposGetTopPaths.Input.Path, + headers: Operations.ReposGetTopPaths.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -62141,12 +62633,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/paths/GET/responses/200/content/application\/json`. - case json([Components.Schemas.content_hyphen_traffic]) + case json([Components.Schemas.ContentTraffic]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.content_hyphen_traffic] { + public var json: [Components.Schemas.ContentTraffic] { get throws { switch self { case let .json(body): @@ -62156,12 +62648,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_top_hyphen_paths.Output.Ok.Body + public var body: Operations.ReposGetTopPaths.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_top_hyphen_paths.Output.Ok.Body) { + public init(body: Operations.ReposGetTopPaths.Output.Ok.Body) { self.body = body } } @@ -62170,12 +62662,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_top_hyphen_paths.Output.Ok) + case ok(Operations.ReposGetTopPaths.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_top_hyphen_paths.Output.Ok { + public var ok: Operations.ReposGetTopPaths.Output.Ok { get throws { switch self { case let .ok(response): @@ -62193,12 +62685,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/paths/get(repos/get-top-paths)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -62248,7 +62740,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/popular/referrers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)`. - public enum repos_sol_get_hyphen_top_hyphen_referrers { + public enum ReposGetTopReferrers { public static let id: Swift.String = "repos/get-top-referrers" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/path`. @@ -62256,45 +62748,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Path + public var path: Operations.ReposGetTopReferrers.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Headers + public var headers: Operations.ReposGetTopReferrers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Path, - headers: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Input.Headers = .init() + path: Operations.ReposGetTopReferrers.Input.Path, + headers: Operations.ReposGetTopReferrers.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -62305,12 +62797,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/popular/referrers/GET/responses/200/content/application\/json`. - case json([Components.Schemas.referrer_hyphen_traffic]) + case json([Components.Schemas.ReferrerTraffic]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.referrer_hyphen_traffic] { + public var json: [Components.Schemas.ReferrerTraffic] { get throws { switch self { case let .json(body): @@ -62320,12 +62812,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output.Ok.Body + public var body: Operations.ReposGetTopReferrers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output.Ok.Body) { + public init(body: Operations.ReposGetTopReferrers.Output.Ok.Body) { self.body = body } } @@ -62334,12 +62826,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output.Ok) + case ok(Operations.ReposGetTopReferrers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_top_hyphen_referrers.Output.Ok { + public var ok: Operations.ReposGetTopReferrers.Output.Ok { get throws { switch self { case let .ok(response): @@ -62357,12 +62849,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/popular/referrers/get(repos/get-top-referrers)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -62412,7 +62904,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/traffic/views`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)`. - public enum repos_sol_get_hyphen_views { + public enum ReposGetViews { public static let id: Swift.String = "repos/get-views" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/path`. @@ -62420,57 +62912,57 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_get_hyphen_views.Input.Path + public var path: Operations.ReposGetViews.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/per`. - @frozen public enum per: String, Codable, Hashable, Sendable { + @frozen public enum Per: String, Codable, Hashable, Sendable, CaseIterable { case day = "day" case week = "week" } /// The time frame to display results for. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/query/per`. - public var per: Components.Parameters.per? + public var per: Components.Parameters.Per? /// Creates a new `Query`. /// /// - Parameters: /// - per: The time frame to display results for. - public init(per: Components.Parameters.per? = nil) { + public init(per: Components.Parameters.Per? = nil) { self.per = per } } - public var query: Operations.repos_sol_get_hyphen_views.Input.Query + public var query: Operations.ReposGetViews.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_get_hyphen_views.Input.Headers + public var headers: Operations.ReposGetViews.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -62478,9 +62970,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_get_hyphen_views.Input.Path, - query: Operations.repos_sol_get_hyphen_views.Input.Query = .init(), - headers: Operations.repos_sol_get_hyphen_views.Input.Headers = .init() + path: Operations.ReposGetViews.Input.Path, + query: Operations.ReposGetViews.Input.Query = .init(), + headers: Operations.ReposGetViews.Input.Headers = .init() ) { self.path = path self.query = query @@ -62492,12 +62984,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/traffic/views/GET/responses/200/content/application\/json`. - case json(Components.Schemas.view_hyphen_traffic) + case json(Components.Schemas.ViewTraffic) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.view_hyphen_traffic { + public var json: Components.Schemas.ViewTraffic { get throws { switch self { case let .json(body): @@ -62507,12 +62999,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_get_hyphen_views.Output.Ok.Body + public var body: Operations.ReposGetViews.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_get_hyphen_views.Output.Ok.Body) { + public init(body: Operations.ReposGetViews.Output.Ok.Body) { self.body = body } } @@ -62521,12 +63013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_get_hyphen_views.Output.Ok) + case ok(Operations.ReposGetViews.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_get_hyphen_views.Output.Ok { + public var ok: Operations.ReposGetViews.Output.Ok { get throws { switch self { case let .ok(response): @@ -62544,12 +63036,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/traffic/views/get(repos/get-views)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -62599,7 +63091,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/transfer`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/transfer/post(repos/transfer)`. - public enum repos_sol_transfer { + public enum ReposTransfer { public static let id: Swift.String = "repos/transfer" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/path`. @@ -62607,78 +63099,78 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_transfer.Input.Path + public var path: Operations.ReposTransfer.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_transfer.Input.Headers + public var headers: Operations.ReposTransfer.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The username or organization name the repository will be transferred to. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody/json/new_owner`. - public var new_owner: Swift.String + public var newOwner: Swift.String /// The new name to be given to the repository. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody/json/new_name`. - public var new_name: Swift.String? + public var newName: Swift.String? /// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody/json/team_ids`. - public var team_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var teamIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - new_owner: The username or organization name the repository will be transferred to. - /// - new_name: The new name to be given to the repository. - /// - team_ids: ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + /// - newOwner: The username or organization name the repository will be transferred to. + /// - newName: The new name to be given to the repository. + /// - teamIds: ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. public init( - new_owner: Swift.String, - new_name: Swift.String? = nil, - team_ids: [Swift.Int]? = nil + newOwner: Swift.String, + newName: Swift.String? = nil, + teamIds: [Swift.Int]? = nil ) { - self.new_owner = new_owner - self.new_name = new_name - self.team_ids = team_ids + self.newOwner = newOwner + self.newName = newName + self.teamIds = teamIds } public enum CodingKeys: String, CodingKey { - case new_owner - case new_name - case team_ids + case newOwner = "new_owner" + case newName = "new_name" + case teamIds = "team_ids" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_transfer.Input.Body.jsonPayload) + case json(Operations.ReposTransfer.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_transfer.Input.Body + public var body: Operations.ReposTransfer.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -62686,9 +63178,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_transfer.Input.Path, - headers: Operations.repos_sol_transfer.Input.Headers = .init(), - body: Operations.repos_sol_transfer.Input.Body + path: Operations.ReposTransfer.Input.Path, + headers: Operations.ReposTransfer.Input.Headers = .init(), + body: Operations.ReposTransfer.Input.Body ) { self.path = path self.headers = headers @@ -62700,12 +63192,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/transfer/POST/responses/202/content/application\/json`. - case json(Components.Schemas.minimal_hyphen_repository) + case json(Components.Schemas.MinimalRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.minimal_hyphen_repository { + public var json: Components.Schemas.MinimalRepository { get throws { switch self { case let .json(body): @@ -62715,12 +63207,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_transfer.Output.Accepted.Body + public var body: Operations.ReposTransfer.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.repos_sol_transfer.Output.Accepted.Body) { + public init(body: Operations.ReposTransfer.Output.Accepted.Body) { self.body = body } } @@ -62729,12 +63221,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/transfer/post(repos/transfer)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.repos_sol_transfer.Output.Accepted) + case accepted(Operations.ReposTransfer.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.repos_sol_transfer.Output.Accepted { + public var accepted: Operations.ReposTransfer.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -62784,7 +63276,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)`. - public enum repos_sol_check_hyphen_vulnerability_hyphen_alerts { + public enum ReposCheckVulnerabilityAlerts { public static let id: Swift.String = "repos/check-vulnerability-alerts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/GET/path`. @@ -62792,30 +63284,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input.Path + public var path: Operations.ReposCheckVulnerabilityAlerts.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Input.Path) { + public init(path: Operations.ReposCheckVulnerabilityAlerts.Input.Path) { self.path = path } } @@ -62829,12 +63321,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output.NoContent) + case noContent(Operations.ReposCheckVulnerabilityAlerts.Output.NoContent) + /// Response if repository is enabled with vulnerability alerts + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output.NoContent { + public var noContent: Operations.ReposCheckVulnerabilityAlerts.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -62856,12 +63356,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output.NotFound) + case notFound(Operations.ReposCheckVulnerabilityAlerts.Output.NotFound) + /// Not Found if repository is not enabled with vulnerability alerts + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/get(repos/check-vulnerability-alerts)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.repos_sol_check_hyphen_vulnerability_hyphen_alerts.Output.NotFound { + public var notFound: Operations.ReposCheckVulnerabilityAlerts.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -62886,7 +63394,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)`. - public enum repos_sol_enable_hyphen_vulnerability_hyphen_alerts { + public enum ReposEnableVulnerabilityAlerts { public static let id: Swift.String = "repos/enable-vulnerability-alerts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/PUT/path`. @@ -62894,30 +63402,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input.Path + public var path: Operations.ReposEnableVulnerabilityAlerts.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Input.Path) { + public init(path: Operations.ReposEnableVulnerabilityAlerts.Input.Path) { self.path = path } } @@ -62931,12 +63439,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Output.NoContent) + case noContent(Operations.ReposEnableVulnerabilityAlerts.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/put(repos/enable-vulnerability-alerts)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_enable_hyphen_vulnerability_hyphen_alerts.Output.NoContent { + public var noContent: Operations.ReposEnableVulnerabilityAlerts.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -62963,7 +63479,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/vulnerability-alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)`. - public enum repos_sol_disable_hyphen_vulnerability_hyphen_alerts { + public enum ReposDisableVulnerabilityAlerts { public static let id: Swift.String = "repos/disable-vulnerability-alerts" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/DELETE/path`. @@ -62971,30 +63487,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/vulnerability-alerts/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input.Path + public var path: Operations.ReposDisableVulnerabilityAlerts.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Input.Path) { + public init(path: Operations.ReposDisableVulnerabilityAlerts.Input.Path) { self.path = path } } @@ -63008,12 +63524,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Output.NoContent) + case noContent(Operations.ReposDisableVulnerabilityAlerts.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/vulnerability-alerts/delete(repos/disable-vulnerability-alerts)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_disable_hyphen_vulnerability_hyphen_alerts.Output.NoContent { + public var noContent: Operations.ReposDisableVulnerabilityAlerts.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -63043,7 +63567,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/zipball/{ref}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/zipball/{ref}/get(repos/download-zipball-archive)`. - public enum repos_sol_download_hyphen_zipball_hyphen_archive { + public enum ReposDownloadZipballArchive { public static let id: Swift.String = "repos/download-zipball-archive" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/path`. @@ -63051,11 +63575,11 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/path/ref`. public var ref: Swift.String /// Creates a new `Path`. @@ -63065,8 +63589,8 @@ public enum Operations { /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. /// - ref: public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, ref: Swift.String ) { self.owner = owner @@ -63074,12 +63598,12 @@ public enum Operations { self.ref = ref } } - public var path: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input.Path + public var path: Operations.ReposDownloadZipballArchive.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Input.Path) { + public init(path: Operations.ReposDownloadZipballArchive.Input.Path) { self.path = path } } @@ -63088,22 +63612,22 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/responses/302/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/zipball/{ref}/GET/responses/302/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output.Found.Headers + public var headers: Operations.ReposDownloadZipballArchive.Output.Found.Headers /// Creates a new `Found`. /// /// - Parameters: /// - headers: Received HTTP response headers - public init(headers: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output.Found.Headers = .init()) { + public init(headers: Operations.ReposDownloadZipballArchive.Output.Found.Headers = .init()) { self.headers = headers } } @@ -63112,12 +63636,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/zipball/{ref}/get(repos/download-zipball-archive)/responses/302`. /// /// HTTP response code: `302 found`. - case found(Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output.Found) + case found(Operations.ReposDownloadZipballArchive.Output.Found) /// The associated value of the enum case if `self` is `.found`. /// /// - Throws: An error if `self` is not `.found`. /// - SeeAlso: `.found`. - public var found: Operations.repos_sol_download_hyphen_zipball_hyphen_archive.Output.Found { + public var found: Operations.ReposDownloadZipballArchive.Output.Found { get throws { switch self { case let .found(response): @@ -63144,7 +63668,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{template_owner}/{template_repo}/generate`. /// - Remark: Generated from `#/paths//repos/{template_owner}/{template_repo}/generate/post(repos/create-using-template)`. - public enum repos_sol_create_hyphen_using_hyphen_template { + public enum ReposCreateUsingTemplate { public static let id: Swift.String = "repos/create-using-template" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/path`. @@ -63152,41 +63676,41 @@ public enum Operations { /// The account owner of the template repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/path/template_owner`. - public var template_owner: Swift.String + public var templateOwner: Swift.String /// The name of the template repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/path/template_repo`. - public var template_repo: Swift.String + public var templateRepo: Swift.String /// Creates a new `Path`. /// /// - Parameters: - /// - template_owner: The account owner of the template repository. The name is not case sensitive. - /// - template_repo: The name of the template repository without the `.git` extension. The name is not case sensitive. + /// - templateOwner: The account owner of the template repository. The name is not case sensitive. + /// - templateRepo: The name of the template repository without the `.git` extension. The name is not case sensitive. public init( - template_owner: Swift.String, - template_repo: Swift.String + templateOwner: Swift.String, + templateRepo: Swift.String ) { - self.template_owner = template_owner - self.template_repo = template_repo + self.templateOwner = templateOwner + self.templateRepo = templateRepo } } - public var path: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Path + public var path: Operations.ReposCreateUsingTemplate.Input.Path /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Headers + public var headers: Operations.ReposCreateUsingTemplate.Input.Headers /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization. /// /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody/json/owner`. @@ -63202,44 +63726,44 @@ public enum Operations { /// Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`. /// /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody/json/include_all_branches`. - public var include_all_branches: Swift.Bool? + public var includeAllBranches: Swift.Bool? /// Either `true` to create a new private repository or `false` to create a new public one. /// /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody/json/private`. public var _private: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - owner: The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization. /// - name: The name of the new repository. /// - description: A short description of the new repository. - /// - include_all_branches: Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`. + /// - includeAllBranches: Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`. /// - _private: Either `true` to create a new private repository or `false` to create a new public one. public init( owner: Swift.String? = nil, name: Swift.String, description: Swift.String? = nil, - include_all_branches: Swift.Bool? = nil, + includeAllBranches: Swift.Bool? = nil, _private: Swift.Bool? = nil ) { self.owner = owner self.name = name self.description = description - self.include_all_branches = include_all_branches + self.includeAllBranches = includeAllBranches self._private = _private } public enum CodingKeys: String, CodingKey { case owner case name case description - case include_all_branches + case includeAllBranches = "include_all_branches" case _private = "private" } } /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Body.jsonPayload) + case json(Operations.ReposCreateUsingTemplate.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Body + public var body: Operations.ReposCreateUsingTemplate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -63247,9 +63771,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Path, - headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_using_hyphen_template.Input.Body + path: Operations.ReposCreateUsingTemplate.Input.Path, + headers: Operations.ReposCreateUsingTemplate.Input.Headers = .init(), + body: Operations.ReposCreateUsingTemplate.Input.Body ) { self.path = path self.headers = headers @@ -63261,26 +63785,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Headers + public var headers: Operations.ReposCreateUsingTemplate.Output.Created.Headers /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{template_owner}/{template_repo}/generate/POST/responses/201/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -63290,15 +63814,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Body + public var body: Operations.ReposCreateUsingTemplate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created.Body + headers: Operations.ReposCreateUsingTemplate.Output.Created.Headers = .init(), + body: Operations.ReposCreateUsingTemplate.Output.Created.Body ) { self.headers = headers self.body = body @@ -63309,12 +63833,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{template_owner}/{template_repo}/generate/post(repos/create-using-template)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created) + case created(Operations.ReposCreateUsingTemplate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_using_hyphen_template.Output.Created { + public var created: Operations.ReposCreateUsingTemplate.Output.Created { get throws { switch self { case let .created(response): @@ -63368,7 +63892,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repositories`. /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)`. - public enum repos_sol_list_hyphen_public { + public enum ReposListPublic { public static let id: Swift.String = "repos/list-public" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repositories/GET/query`. @@ -63376,36 +63900,36 @@ public enum Operations { /// A repository ID. Only return repositories with an ID greater than this ID. /// /// - Remark: Generated from `#/paths/repositories/GET/query/since`. - public var since: Components.Parameters.since_hyphen_repo? + public var since: Components.Parameters.SinceRepo? /// Creates a new `Query`. /// /// - Parameters: /// - since: A repository ID. Only return repositories with an ID greater than this ID. - public init(since: Components.Parameters.since_hyphen_repo? = nil) { + public init(since: Components.Parameters.SinceRepo? = nil) { self.since = since } } - public var query: Operations.repos_sol_list_hyphen_public.Input.Query + public var query: Operations.ReposListPublic.Input.Query /// - Remark: Generated from `#/paths/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_public.Input.Headers + public var headers: Operations.ReposListPublic.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.repos_sol_list_hyphen_public.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_public.Input.Headers = .init() + query: Operations.ReposListPublic.Input.Query = .init(), + headers: Operations.ReposListPublic.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -63416,26 +63940,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repositories/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repositories/GET/responses/200/headers/Link`. - public var Link: Swift.String? + public var link: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Swift.String? = nil) { - self.Link = Link + /// - link: + public init(link: Swift.String? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_public.Output.Ok.Headers + public var headers: Operations.ReposListPublic.Output.Ok.Headers /// - Remark: Generated from `#/paths/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -63445,15 +63969,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_public.Output.Ok.Body + public var body: Operations.ReposListPublic.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_public.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_public.Output.Ok.Body + headers: Operations.ReposListPublic.Output.Ok.Headers = .init(), + body: Operations.ReposListPublic.Output.Ok.Body ) { self.headers = headers self.body = body @@ -63464,12 +63988,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_public.Output.Ok) + case ok(Operations.ReposListPublic.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_public.Output.Ok { + public var ok: Operations.ReposListPublic.Output.Ok { get throws { switch self { case let .ok(response): @@ -63487,12 +64011,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -63510,12 +64034,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repositories/get(repos/list-public)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -63567,13 +64099,13 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/repos`. /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)`. - public enum repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ReposListForAuthenticatedUser { public static let id: Swift.String = "repos/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/GET/query/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _public = "public" case _private = "private" @@ -63581,7 +64113,7 @@ public enum Operations { /// Limit results to repositories with the specified visibility. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/visibility`. - public var visibility: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.visibilityPayload? + public var visibility: Operations.ReposListForAuthenticatedUser.Input.Query.VisibilityPayload? /// Comma-separated list of values. Can include: /// * `owner`: Repositories that are owned by the authenticated user. /// * `collaborator`: Repositories that the user has been added to as a collaborator. @@ -63590,7 +64122,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/repos/GET/query/affiliation`. public var affiliation: Swift.String? /// - Remark: Generated from `#/paths/user/repos/GET/query/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case owner = "owner" case _public = "public" @@ -63600,43 +64132,43 @@ public enum Operations { /// Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/type`. - public var _type: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query._typePayload? + public var _type: Operations.ReposListForAuthenticatedUser.Input.Query._TypePayload? /// - Remark: Generated from `#/paths/user/repos/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case pushed = "pushed" - case full_name = "full_name" + case fullName = "full_name" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/sort`. - public var sort: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.sortPayload? + public var sort: Operations.ReposListForAuthenticatedUser.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/user/repos/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/direction`. - public var direction: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.directionPayload? + public var direction: Operations.ReposListForAuthenticatedUser.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/user/repos/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/repos/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/since`. - public var since: Components.Parameters.since_hyphen_repo_hyphen_date? + public var since: Components.Parameters.SinceRepoDate? /// Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/paths/user/repos/GET/query/before`. - public var before: Components.Parameters.before_hyphen_repo_hyphen_date? + public var before: Components.Parameters.BeforeRepoDate? /// Creates a new `Query`. /// /// - Parameters: @@ -63645,53 +64177,53 @@ public enum Operations { /// - _type: Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. /// - sort: The property to sort the results by. /// - direction: The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. - /// - 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)." + /// - perPage: 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)." /// - since: Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. /// - before: Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. public init( - visibility: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.visibilityPayload? = nil, + visibility: Operations.ReposListForAuthenticatedUser.Input.Query.VisibilityPayload? = nil, affiliation: Swift.String? = nil, - _type: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query._typePayload? = nil, - sort: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.sortPayload? = nil, - direction: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - since: Components.Parameters.since_hyphen_repo_hyphen_date? = nil, - before: Components.Parameters.before_hyphen_repo_hyphen_date? = nil + _type: Operations.ReposListForAuthenticatedUser.Input.Query._TypePayload? = nil, + sort: Operations.ReposListForAuthenticatedUser.Input.Query.SortPayload? = nil, + direction: Operations.ReposListForAuthenticatedUser.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + since: Components.Parameters.SinceRepoDate? = nil, + before: Components.Parameters.BeforeRepoDate? = nil ) { self.visibility = visibility self.affiliation = affiliation self._type = _type self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page self.since = since self.before = before } } - public var query: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ReposListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/repos/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ReposListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.ReposListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ReposListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -63702,26 +64234,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/repos/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ReposListForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/repos/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository]) + case json([Components.Schemas.Repository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository] { + public var json: [Components.Schemas.Repository] { get throws { switch self { case let .json(body): @@ -63731,15 +64263,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ReposListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ReposListForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ReposListForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -63750,12 +64282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ReposListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ReposListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -63773,12 +64305,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -63796,12 +64328,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -63819,12 +64359,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -63842,12 +64382,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/get(repos/list-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -63899,25 +64439,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/repos`. /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)`. - public enum repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ReposCreateForAuthenticatedUser { public static let id: Swift.String = "repos/create-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ReposCreateForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/repos/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the repository. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/name`. @@ -63937,55 +64477,55 @@ public enum Operations { /// Whether issues are enabled. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// Whether projects are enabled. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// Whether discussions are enabled. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/team_id`. - public var team_id: Swift.Int? + public var teamId: Swift.Int? /// Whether the repository is initialized with a minimal README. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/auto_init`. - public var auto_init: Swift.Bool? + public var autoInit: Swift.Bool? /// The desired language or platform to apply to the .gitignore. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/gitignore_template`. - public var gitignore_template: Swift.String? + public var gitignoreTemplate: Swift.String? /// The license keyword of the open source license for this repository. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/license_template`. - public var license_template: Swift.String? + public var licenseTemplate: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Required when using `squash_merge_commit_message`. /// /// The default value for a squash merge commit title: @@ -63994,9 +64534,9 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// Required when using `squash_merge_commit_message`. /// @@ -64006,7 +64546,7 @@ public enum Operations { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/squash_merge_commit_title`. - public var squash_merge_commit_title: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -64014,10 +64554,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -64026,7 +64566,7 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/squash_merge_commit_message`. - public var squash_merge_commit_message: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? /// Required when using `merge_commit_message`. /// /// The default value for a merge commit title. @@ -64035,9 +64575,9 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// Required when using `merge_commit_message`. /// @@ -64047,7 +64587,7 @@ public enum Operations { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/merge_commit_title`. - public var merge_commit_title: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.merge_commit_titlePayload? + public var mergeCommitTitle: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -64055,10 +64595,10 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -64067,128 +64607,128 @@ public enum Operations { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/merge_commit_message`. - public var merge_commit_message: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.merge_commit_messagePayload? + public var mergeCommitMessage: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.MergeCommitMessagePayload? /// Whether downloads are enabled. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/json/is_template`. - public var is_template: Swift.Bool? - /// Creates a new `jsonPayload`. + public var isTemplate: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the repository. /// - description: A short description of the repository. /// - homepage: A URL with more information about the repository. /// - _private: Whether the repository is private. - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_discussions: Whether discussions are enabled. - /// - team_id: The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - /// - auto_init: Whether the repository is initialized with a minimal README. - /// - gitignore_template: The desired language or platform to apply to the .gitignore. - /// - license_template: The license keyword of the open source license for this repository. - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - squash_merge_commit_title: Required when using `squash_merge_commit_message`. - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: Required when using `merge_commit_message`. - /// - merge_commit_message: The default value for a merge commit message. - /// - has_downloads: Whether downloads are enabled. - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasDiscussions: Whether discussions are enabled. + /// - teamId: The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + /// - autoInit: Whether the repository is initialized with a minimal README. + /// - gitignoreTemplate: The desired language or platform to apply to the .gitignore. + /// - licenseTemplate: The license keyword of the open source license for this repository. + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - squashMergeCommitTitle: Required when using `squash_merge_commit_message`. + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: Required when using `merge_commit_message`. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - hasDownloads: Whether downloads are enabled. + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. public init( name: Swift.String, description: Swift.String? = nil, homepage: Swift.String? = nil, _private: Swift.Bool? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, - team_id: Swift.Int? = nil, - auto_init: Swift.Bool? = nil, - gitignore_template: Swift.String? = nil, - license_template: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_rebase_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - squash_merge_commit_title: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.merge_commit_titlePayload? = nil, - merge_commit_message: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.merge_commit_messagePayload? = nil, - has_downloads: Swift.Bool? = nil, - is_template: Swift.Bool? = nil + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, + teamId: Swift.Int? = nil, + autoInit: Swift.Bool? = nil, + gitignoreTemplate: Swift.String? = nil, + licenseTemplate: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowRebaseMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + squashMergeCommitTitle: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload.MergeCommitMessagePayload? = nil, + hasDownloads: Swift.Bool? = nil, + isTemplate: Swift.Bool? = nil ) { self.name = name self.description = description self.homepage = homepage self._private = _private - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_discussions = has_discussions - self.team_id = team_id - self.auto_init = auto_init - self.gitignore_template = gitignore_template - self.license_template = license_template - self.allow_squash_merge = allow_squash_merge - self.allow_merge_commit = allow_merge_commit - self.allow_rebase_merge = allow_rebase_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.has_downloads = has_downloads - self.is_template = is_template + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasDiscussions = hasDiscussions + self.teamId = teamId + self.autoInit = autoInit + self.gitignoreTemplate = gitignoreTemplate + self.licenseTemplate = licenseTemplate + self.allowSquashMerge = allowSquashMerge + self.allowMergeCommit = allowMergeCommit + self.allowRebaseMerge = allowRebaseMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.hasDownloads = hasDownloads + self.isTemplate = isTemplate } public enum CodingKeys: String, CodingKey { case name case description case homepage case _private = "private" - case has_issues - case has_projects - case has_wiki - case has_discussions - case team_id - case auto_init - case gitignore_template - case license_template - case allow_squash_merge - case allow_merge_commit - case allow_rebase_merge - case allow_auto_merge - case delete_branch_on_merge - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case has_downloads - case is_template + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasDiscussions = "has_discussions" + case teamId = "team_id" + case autoInit = "auto_init" + case gitignoreTemplate = "gitignore_template" + case licenseTemplate = "license_template" + case allowSquashMerge = "allow_squash_merge" + case allowMergeCommit = "allow_merge_commit" + case allowRebaseMerge = "allow_rebase_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case hasDownloads = "has_downloads" + case isTemplate = "is_template" } } /// - Remark: Generated from `#/paths/user/repos/POST/requestBody/content/application\/json`. - case json(Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.ReposCreateForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.ReposCreateForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.ReposCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.ReposCreateForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -64199,26 +64739,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/repos/POST/responses/201/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/POST/responses/201/headers/Location`. - public var Location: Swift.String? + public var location: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Location: - public init(Location: Swift.String? = nil) { - self.Location = Location + /// - location: + public init(location: Swift.String? = nil) { + self.location = location } } /// Received HTTP response headers - public var headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Headers + public var headers: Operations.ReposCreateForAuthenticatedUser.Output.Created.Headers /// - Remark: Generated from `#/paths/user/repos/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repos/POST/responses/201/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -64228,15 +64768,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.ReposCreateForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Headers = .init(), - body: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + headers: Operations.ReposCreateForAuthenticatedUser.Output.Created.Headers = .init(), + body: Operations.ReposCreateForAuthenticatedUser.Output.Created.Body ) { self.headers = headers self.body = body @@ -64247,12 +64787,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.ReposCreateForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.repos_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.ReposCreateForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -64270,12 +64810,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -64293,12 +64833,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -64316,12 +64864,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -64339,12 +64887,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -64362,12 +64910,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -64385,12 +64933,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repos/post(repos/create-for-authenticated-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -64410,14 +64958,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -64428,14 +64976,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -64446,7 +64994,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/repository_invitations`. /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)`. - public enum repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ReposListInvitationsForAuthenticatedUser { public static let id: Swift.String = "repos/list-invitations-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repository_invitations/GET/query`. @@ -64454,45 +65002,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/repository_invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/repository_invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.ReposListInvitationsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/repository_invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ReposListInvitationsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.ReposListInvitationsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.ReposListInvitationsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -64503,26 +65051,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/repository_invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repository_invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/repository_invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repository_invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_invitation]) + case json([Components.Schemas.RepositoryInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_invitation] { + public var json: [Components.Schemas.RepositoryInvitation] { get throws { switch self { case let .json(body): @@ -64532,15 +65080,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -64551,12 +65099,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_invitations_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.ReposListInvitationsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -64574,12 +65122,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -64597,12 +65153,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -64620,12 +65176,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -64643,12 +65199,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/get(repos/list-invitations-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -64698,7 +65254,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)`. - public enum repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ReposAcceptInvitationForAuthenticatedUser { public static let id: Swift.String = "repos/accept-invitation-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/PATCH/path`. @@ -64706,36 +65262,36 @@ public enum Operations { /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/PATCH/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: - /// - invitation_id: The unique identifier of the invitation. - public init(invitation_id: Components.Parameters.invitation_hyphen_id) { - self.invitation_id = invitation_id + /// - invitationId: The unique identifier of the invitation. + public init(invitationId: Components.Parameters.InvitationId) { + self.invitationId = invitationId } } - public var path: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Path, + headers: Operations.ReposAcceptInvitationForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -64751,12 +65307,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.ReposAcceptInvitationForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_accept_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.ReposAcceptInvitationForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -64774,12 +65338,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -64797,12 +65361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -64820,12 +65384,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -64843,12 +65407,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/patch(repos/accept-invitation-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -64898,7 +65470,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/repository_invitations/{invitation_id}`. /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)`. - public enum repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user { + public enum ReposDeclineInvitationForAuthenticatedUser { public static let id: Swift.String = "repos/decline-invitation-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/DELETE/path`. @@ -64906,36 +65478,36 @@ public enum Operations { /// The unique identifier of the invitation. /// /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/DELETE/path/invitation_id`. - public var invitation_id: Components.Parameters.invitation_hyphen_id + public var invitationId: Components.Parameters.InvitationId /// Creates a new `Path`. /// /// - Parameters: - /// - invitation_id: The unique identifier of the invitation. - public init(invitation_id: Components.Parameters.invitation_hyphen_id) { - self.invitation_id = invitation_id + /// - invitationId: The unique identifier of the invitation. + public init(invitationId: Components.Parameters.InvitationId) { + self.invitationId = invitationId } } - public var path: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/repository_invitations/{invitation_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Path, + headers: Operations.ReposDeclineInvitationForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -64951,12 +65523,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.ReposDeclineInvitationForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.repos_sol_decline_hyphen_invitation_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.ReposDeclineInvitationForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -64974,12 +65554,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -64997,12 +65577,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -65020,12 +65608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -65043,12 +65631,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/repository_invitations/{invitation_id}/delete(repos/decline-invitation-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -65098,7 +65686,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/repos`. /// - Remark: Generated from `#/paths//users/{username}/repos/get(repos/list-for-user)`. - public enum repos_sol_list_hyphen_for_hyphen_user { + public enum ReposListForUser { public static let id: Swift.String = "repos/list-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/repos/GET/path`. @@ -65106,20 +65694,20 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Path + public var path: Operations.ReposListForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case owner = "owner" case member = "member" @@ -65127,70 +65715,70 @@ public enum Operations { /// Limit results to repositories of the specified type. /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/type`. - public var _type: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query._typePayload? + public var _type: Operations.ReposListForUser.Input.Query._TypePayload? /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case pushed = "pushed" - case full_name = "full_name" + case fullName = "full_name" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/sort`. - public var sort: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query.sortPayload? + public var sort: Operations.ReposListForUser.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/direction`. - @frozen public enum directionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DirectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/direction`. - public var direction: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query.directionPayload? + public var direction: Operations.ReposListForUser.Input.Query.DirectionPayload? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/repos/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - _type: Limit results to repositories of the specified type. /// - sort: The property to sort the results by. /// - direction: The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`. - /// - 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)." + /// - perPage: 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)." public init( - _type: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query._typePayload? = nil, - sort: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query.sortPayload? = nil, - direction: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query.directionPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + _type: Operations.ReposListForUser.Input.Query._TypePayload? = nil, + sort: Operations.ReposListForUser.Input.Query.SortPayload? = nil, + direction: Operations.ReposListForUser.Input.Query.DirectionPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self._type = _type self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query + public var query: Operations.ReposListForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/repos/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.ReposListForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -65198,9 +65786,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Path, - query: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.ReposListForUser.Input.Path, + query: Operations.ReposListForUser.Input.Query = .init(), + headers: Operations.ReposListForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -65212,26 +65800,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/repos/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/repos/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.ReposListForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/repos/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/repos/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -65241,15 +65829,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.ReposListForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.ReposListForUser.Output.Ok.Headers = .init(), + body: Operations.ReposListForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -65260,12 +65848,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/repos/get(repos/list-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.ReposListForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.repos_sol_list_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.ReposListForUser.Output.Ok { get throws { switch self { case let .ok(response): From e9277b30d513d6b8beccd0b84d072c0309e29e91 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:05:30 -0700 Subject: [PATCH 30/46] Commit via running ake Sources/search --- Sources/search/Client.swift | 126 +- Sources/search/Types.swift | 5141 ++++++++++++++++++----------------- 2 files changed, 2666 insertions(+), 2601 deletions(-) diff --git a/Sources/search/Client.swift b/Sources/search/Client.swift index dba668db00..b3adc61e39 100644 --- a/Sources/search/Client.swift +++ b/Sources/search/Client.swift @@ -63,10 +63,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/code`. /// - Remark: Generated from `#/paths//search/code/get(search/code)`. - public func search_sol_code(_ input: Operations.search_sol_code.Input) async throws -> Operations.search_sol_code.Output { + public func searchCode(_ input: Operations.SearchCode.Input) async throws -> Operations.SearchCode.Output { try await client.send( input: input, - forOperation: Operations.search_sol_code.id, + forOperation: Operations.SearchCode.id, serializer: { input in let path = try converter.renderedPath( template: "/search/code", @@ -103,7 +103,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -122,7 +122,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_code.Output.Ok.Body + let body: Operations.SearchCode.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -132,7 +132,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_code.Output.Ok.Body.jsonPayload.self, + Operations.SearchCode.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -146,7 +146,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -156,7 +156,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -168,7 +168,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -178,7 +178,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -190,7 +190,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -200,7 +200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -235,10 +235,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/commits`. /// - Remark: Generated from `#/paths//search/commits/get(search/commits)`. - public func search_sol_commits(_ input: Operations.search_sol_commits.Input) async throws -> Operations.search_sol_commits.Output { + public func searchCommits(_ input: Operations.SearchCommits.Input) async throws -> Operations.SearchCommits.Output { try await client.send( input: input, - forOperation: Operations.search_sol_commits.id, + forOperation: Operations.SearchCommits.id, serializer: { input in let path = try converter.renderedPath( template: "/search/commits", @@ -275,7 +275,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -294,7 +294,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_commits.Output.Ok.Body + let body: Operations.SearchCommits.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -304,7 +304,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_commits.Output.Ok.Body.jsonPayload.self, + Operations.SearchCommits.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -337,10 +337,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. @available(*, deprecated) - public func search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests(_ input: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input) async throws -> Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output { + public func searchIssuesAndPullRequests(_ input: Operations.SearchIssuesAndPullRequests.Input) async throws -> Operations.SearchIssuesAndPullRequests.Output { try await client.send( input: input, - forOperation: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.id, + forOperation: Operations.SearchIssuesAndPullRequests.id, serializer: { input in let path = try converter.renderedPath( template: "/search/issues", @@ -377,7 +377,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -391,7 +391,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "advanced_search", - value: input.query.advanced_search + value: input.query.advancedSearch ) converter.setAcceptHeader( in: &request.headerFields, @@ -403,7 +403,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body + let body: Operations.SearchIssuesAndPullRequests.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -413,7 +413,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body.jsonPayload.self, + Operations.SearchIssuesAndPullRequests.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -425,7 +425,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -435,7 +435,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -447,7 +447,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -457,7 +457,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -471,7 +471,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -481,7 +481,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -517,10 +517,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/labels`. /// - Remark: Generated from `#/paths//search/labels/get(search/labels)`. - public func search_sol_labels(_ input: Operations.search_sol_labels.Input) async throws -> Operations.search_sol_labels.Output { + public func searchLabels(_ input: Operations.SearchLabels.Input) async throws -> Operations.SearchLabels.Output { try await client.send( input: input, - forOperation: Operations.search_sol_labels.id, + forOperation: Operations.SearchLabels.id, serializer: { input in let path = try converter.renderedPath( template: "/search/labels", @@ -536,7 +536,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "repository_id", - value: input.query.repository_id + value: input.query.repositoryId ) try converter.setQueryItemAsURI( in: &request, @@ -564,7 +564,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -583,7 +583,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_labels.Output.Ok.Body + let body: Operations.SearchLabels.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -593,7 +593,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_labels.Output.Ok.Body.jsonPayload.self, + Operations.SearchLabels.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -607,7 +607,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -617,7 +617,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -629,7 +629,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -639,7 +639,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -651,7 +651,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -661,7 +661,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -697,10 +697,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/repositories`. /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)`. - public func search_sol_repos(_ input: Operations.search_sol_repos.Input) async throws -> Operations.search_sol_repos.Output { + public func searchRepos(_ input: Operations.SearchRepos.Input) async throws -> Operations.SearchRepos.Output { try await client.send( input: input, - forOperation: Operations.search_sol_repos.id, + forOperation: Operations.SearchRepos.id, serializer: { input in let path = try converter.renderedPath( template: "/search/repositories", @@ -737,7 +737,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -756,7 +756,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_repos.Output.Ok.Body + let body: Operations.SearchRepos.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -766,7 +766,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_repos.Output.Ok.Body.jsonPayload.self, + Operations.SearchRepos.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -778,7 +778,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -788,7 +788,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -800,7 +800,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -810,7 +810,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -848,10 +848,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/topics`. /// - Remark: Generated from `#/paths//search/topics/get(search/topics)`. - public func search_sol_topics(_ input: Operations.search_sol_topics.Input) async throws -> Operations.search_sol_topics.Output { + public func searchTopics(_ input: Operations.SearchTopics.Input) async throws -> Operations.SearchTopics.Output { try await client.send( input: input, - forOperation: Operations.search_sol_topics.id, + forOperation: Operations.SearchTopics.id, serializer: { input in let path = try converter.renderedPath( template: "/search/topics", @@ -874,7 +874,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -893,7 +893,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_topics.Output.Ok.Body + let body: Operations.SearchTopics.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -903,7 +903,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_topics.Output.Ok.Body.jsonPayload.self, + Operations.SearchTopics.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -943,10 +943,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /search/users`. /// - Remark: Generated from `#/paths//search/users/get(search/users)`. - public func search_sol_users(_ input: Operations.search_sol_users.Input) async throws -> Operations.search_sol_users.Output { + public func searchUsers(_ input: Operations.SearchUsers.Input) async throws -> Operations.SearchUsers.Output { try await client.send( input: input, - forOperation: Operations.search_sol_users.id, + forOperation: Operations.SearchUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/search/users", @@ -983,7 +983,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1002,7 +1002,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.search_sol_users.Output.Ok.Body + let body: Operations.SearchUsers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1012,7 +1012,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.search_sol_users.Output.Ok.Body.jsonPayload.self, + Operations.SearchUsers.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1026,7 +1026,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1036,7 +1036,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1048,7 +1048,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1058,7 +1058,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index 525b2a8908..a606b12c8e 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/code`. /// - Remark: Generated from `#/paths//search/code/get(search/code)`. - func search_sol_code(_ input: Operations.search_sol_code.Input) async throws -> Operations.search_sol_code.Output + func searchCode(_ input: Operations.SearchCode.Input) async throws -> Operations.SearchCode.Output /// Search commits /// /// Find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). @@ -50,7 +50,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/commits`. /// - Remark: Generated from `#/paths//search/commits/get(search/commits)`. - func search_sol_commits(_ input: Operations.search_sol_commits.Input) async throws -> Operations.search_sol_commits.Output + func searchCommits(_ input: Operations.SearchCommits.Input) async throws -> Operations.SearchCommits.Output /// Search issues and pull requests /// /// > [!WARNING] @@ -60,7 +60,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. @available(*, deprecated) - func search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests(_ input: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input) async throws -> Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output + func searchIssuesAndPullRequests(_ input: Operations.SearchIssuesAndPullRequests.Input) async throws -> Operations.SearchIssuesAndPullRequests.Output /// Search labels /// /// Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). @@ -75,7 +75,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/labels`. /// - Remark: Generated from `#/paths//search/labels/get(search/labels)`. - func search_sol_labels(_ input: Operations.search_sol_labels.Input) async throws -> Operations.search_sol_labels.Output + func searchLabels(_ input: Operations.SearchLabels.Input) async throws -> Operations.SearchLabels.Output /// Search repositories /// /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). @@ -90,7 +90,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/repositories`. /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)`. - func search_sol_repos(_ input: Operations.search_sol_repos.Input) async throws -> Operations.search_sol_repos.Output + func searchRepos(_ input: Operations.SearchRepos.Input) async throws -> Operations.SearchRepos.Output /// Search topics /// /// Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers. @@ -105,7 +105,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/topics`. /// - Remark: Generated from `#/paths//search/topics/get(search/topics)`. - func search_sol_topics(_ input: Operations.search_sol_topics.Input) async throws -> Operations.search_sol_topics.Output + func searchTopics(_ input: Operations.SearchTopics.Input) async throws -> Operations.SearchTopics.Output /// Search users /// /// Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). @@ -122,7 +122,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /search/users`. /// - Remark: Generated from `#/paths//search/users/get(search/users)`. - func search_sol_users(_ input: Operations.search_sol_users.Input) async throws -> Operations.search_sol_users.Output + func searchUsers(_ input: Operations.SearchUsers.Input) async throws -> Operations.SearchUsers.Output } /// Convenience overloads for operation inputs. @@ -152,11 +152,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/code`. /// - Remark: Generated from `#/paths//search/code/get(search/code)`. - public func search_sol_code( - query: Operations.search_sol_code.Input.Query, - headers: Operations.search_sol_code.Input.Headers = .init() - ) async throws -> Operations.search_sol_code.Output { - try await search_sol_code(Operations.search_sol_code.Input( + public func searchCode( + query: Operations.SearchCode.Input.Query, + headers: Operations.SearchCode.Input.Headers = .init() + ) async throws -> Operations.SearchCode.Output { + try await searchCode(Operations.SearchCode.Input( query: query, headers: headers )) @@ -174,11 +174,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/commits`. /// - Remark: Generated from `#/paths//search/commits/get(search/commits)`. - public func search_sol_commits( - query: Operations.search_sol_commits.Input.Query, - headers: Operations.search_sol_commits.Input.Headers = .init() - ) async throws -> Operations.search_sol_commits.Output { - try await search_sol_commits(Operations.search_sol_commits.Input( + public func searchCommits( + query: Operations.SearchCommits.Input.Query, + headers: Operations.SearchCommits.Input.Headers = .init() + ) async throws -> Operations.SearchCommits.Output { + try await searchCommits(Operations.SearchCommits.Input( query: query, headers: headers )) @@ -192,11 +192,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. @available(*, deprecated) - public func search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests( - query: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Query, - headers: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Headers = .init() - ) async throws -> Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output { - try await search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests(Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input( + public func searchIssuesAndPullRequests( + query: Operations.SearchIssuesAndPullRequests.Input.Query, + headers: Operations.SearchIssuesAndPullRequests.Input.Headers = .init() + ) async throws -> Operations.SearchIssuesAndPullRequests.Output { + try await searchIssuesAndPullRequests(Operations.SearchIssuesAndPullRequests.Input( query: query, headers: headers )) @@ -215,11 +215,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/labels`. /// - Remark: Generated from `#/paths//search/labels/get(search/labels)`. - public func search_sol_labels( - query: Operations.search_sol_labels.Input.Query, - headers: Operations.search_sol_labels.Input.Headers = .init() - ) async throws -> Operations.search_sol_labels.Output { - try await search_sol_labels(Operations.search_sol_labels.Input( + public func searchLabels( + query: Operations.SearchLabels.Input.Query, + headers: Operations.SearchLabels.Input.Headers = .init() + ) async throws -> Operations.SearchLabels.Output { + try await searchLabels(Operations.SearchLabels.Input( query: query, headers: headers )) @@ -238,11 +238,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/repositories`. /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)`. - public func search_sol_repos( - query: Operations.search_sol_repos.Input.Query, - headers: Operations.search_sol_repos.Input.Headers = .init() - ) async throws -> Operations.search_sol_repos.Output { - try await search_sol_repos(Operations.search_sol_repos.Input( + public func searchRepos( + query: Operations.SearchRepos.Input.Query, + headers: Operations.SearchRepos.Input.Headers = .init() + ) async throws -> Operations.SearchRepos.Output { + try await searchRepos(Operations.SearchRepos.Input( query: query, headers: headers )) @@ -261,11 +261,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/topics`. /// - Remark: Generated from `#/paths//search/topics/get(search/topics)`. - public func search_sol_topics( - query: Operations.search_sol_topics.Input.Query, - headers: Operations.search_sol_topics.Input.Headers = .init() - ) async throws -> Operations.search_sol_topics.Output { - try await search_sol_topics(Operations.search_sol_topics.Input( + public func searchTopics( + query: Operations.SearchTopics.Input.Query, + headers: Operations.SearchTopics.Input.Headers = .init() + ) async throws -> Operations.SearchTopics.Output { + try await searchTopics(Operations.SearchTopics.Input( query: query, headers: headers )) @@ -286,11 +286,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /search/users`. /// - Remark: Generated from `#/paths//search/users/get(search/users)`. - public func search_sol_users( - query: Operations.search_sol_users.Input.Query, - headers: Operations.search_sol_users.Input.Headers = .init() - ) async throws -> Operations.search_sol_users.Output { - try await search_sol_users(Operations.search_sol_users.Input( + public func searchUsers( + query: Operations.SearchUsers.Input.Query, + headers: Operations.SearchUsers.Input.Headers = .init() + ) async throws -> Operations.SearchUsers.Output { + try await searchUsers(Operations.SearchUsers.Input( query: query, headers: headers )) @@ -299,6 +299,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -314,7 +323,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -324,171 +333,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -496,23 +505,23 @@ public enum Components { /// An enterprise on GitHub. /// /// - Remark: Generated from `#/components/schemas/enterprise`. - public struct enterprise: Codable, Hashable, Sendable { + public struct Enterprise: Codable, Hashable, Sendable { /// A short description of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The enterprise's website URL. /// /// - Remark: Generated from `#/components/schemas/enterprise/website_url`. - public var website_url: Swift.String? + public var websiteUrl: Swift.String? /// Unique identifier of the enterprise /// /// - Remark: Generated from `#/components/schemas/enterprise/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/enterprise/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the enterprise. /// /// - Remark: Generated from `#/components/schemas/enterprise/name`. @@ -522,87 +531,87 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise/slug`. public var slug: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/enterprise/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `enterprise`. + public var avatarUrl: Swift.String + /// Creates a new `Enterprise`. /// /// - Parameters: /// - description: A short description of the enterprise. - /// - html_url: - /// - website_url: The enterprise's website URL. + /// - htmlUrl: + /// - websiteUrl: The enterprise's website URL. /// - id: Unique identifier of the enterprise - /// - node_id: + /// - nodeId: /// - name: The name of the enterprise. /// - slug: The slug url identifier for the enterprise. - /// - created_at: - /// - updated_at: - /// - avatar_url: + /// - createdAt: + /// - updatedAt: + /// - avatarUrl: public init( description: Swift.String? = nil, - html_url: Swift.String, - website_url: Swift.String? = nil, + htmlUrl: Swift.String, + websiteUrl: Swift.String? = nil, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - avatar_url: Swift.String + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + avatarUrl: Swift.String ) { self.description = description - self.html_url = html_url - self.website_url = website_url + self.htmlUrl = htmlUrl + self.websiteUrl = websiteUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug - self.created_at = created_at - self.updated_at = updated_at - self.avatar_url = avatar_url + self.createdAt = createdAt + self.updatedAt = updatedAt + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case description - case html_url - case website_url + case htmlUrl = "html_url" + case websiteUrl = "website_url" case id - case node_id + case nodeId = "node_id" case name case slug - case created_at - case updated_at - case avatar_url + case createdAt = "created_at" + case updatedAt = "updated_at" + case avatarUrl = "avatar_url" } } /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -641,9 +650,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -658,7 +667,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -677,34 +686,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -714,142 +723,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -857,66 +866,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -927,7 +936,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -957,15 +966,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -973,97 +982,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -1071,38 +1080,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -1116,47 +1125,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -1164,7 +1173,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -1172,10 +1181,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -1184,16 +1193,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -1201,7 +1210,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -1209,10 +1218,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -1221,424 +1230,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -1648,50 +1657,50 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// A collection of related issues and pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone`. - public struct nullable_hyphen_milestone: Codable, Hashable, Sendable { + public struct NullableMilestone: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-milestone/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-milestone/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The number of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/number`. @@ -1699,14 +1708,14 @@ public enum Components { /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// The state of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/state`. - public var state: Components.Schemas.nullable_hyphen_milestone.statePayload + public var state: Components.Schemas.NullableMilestone.StatePayload /// The title of the milestone. /// /// - Remark: Generated from `#/components/schemas/nullable-milestone/title`. @@ -1714,96 +1723,96 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-milestone/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-milestone/creator`. - public var creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var creator: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/nullable-milestone/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_issues`. - public var closed_issues: Swift.Int + public var closedIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-milestone/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-milestone/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-milestone/due_on`. - public var due_on: Foundation.Date? - /// Creates a new `nullable_hyphen_milestone`. + public var dueOn: Foundation.Date? + /// Creates a new `NullableMilestone`. /// /// - Parameters: /// - url: - /// - html_url: - /// - labels_url: + /// - htmlUrl: + /// - labelsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: The number of the milestone. /// - state: The state of the milestone. /// - title: The title of the milestone. /// - description: /// - creator: - /// - open_issues: - /// - closed_issues: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - due_on: + /// - openIssues: + /// - closedIssues: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - dueOn: public init( url: Swift.String, - html_url: Swift.String, - labels_url: Swift.String, + htmlUrl: Swift.String, + labelsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, - state: Components.Schemas.nullable_hyphen_milestone.statePayload, + state: Components.Schemas.NullableMilestone.StatePayload, title: Swift.String, description: Swift.String? = nil, - creator: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - open_issues: Swift.Int, - closed_issues: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - due_on: Foundation.Date? = nil + creator: Components.Schemas.NullableSimpleUser? = nil, + openIssues: Swift.Int, + closedIssues: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + dueOn: Foundation.Date? = nil ) { self.url = url - self.html_url = html_url - self.labels_url = labels_url + self.htmlUrl = htmlUrl + self.labelsUrl = labelsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.state = state self.title = title self.description = description self.creator = creator - self.open_issues = open_issues - self.closed_issues = closed_issues - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.due_on = due_on + self.openIssues = openIssues + self.closedIssues = closedIssues + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.dueOn = dueOn } public enum CodingKeys: String, CodingKey { case url - case html_url - case labels_url + case htmlUrl = "html_url" + case labelsUrl = "labels_url" case id - case node_id + case nodeId = "node_id" case number case state case title case description case creator - case open_issues - case closed_issues - case created_at - case updated_at - case closed_at - case due_on + case openIssues = "open_issues" + case closedIssues = "closed_issues" + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case dueOn = "due_on" } } /// The type of issue. /// /// - Remark: Generated from `#/components/schemas/issue-type`. - public struct issue_hyphen_type: Codable, Hashable, Sendable { + public struct IssueType: Codable, Hashable, Sendable { /// The unique identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/id`. @@ -1811,7 +1820,7 @@ public enum Components { /// The node identifier of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/name`. @@ -1823,7 +1832,7 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - @frozen public enum colorPayload: String, Codable, Hashable, Sendable { + @frozen public enum ColorPayload: String, Codable, Hashable, Sendable, CaseIterable { case gray = "gray" case blue = "blue" case green = "green" @@ -1836,64 +1845,64 @@ public enum Components { /// The color of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/color`. - public var color: Components.Schemas.issue_hyphen_type.colorPayload? + public var color: Components.Schemas.IssueType.ColorPayload? /// The time the issue type created. /// /// - Remark: Generated from `#/components/schemas/issue-type/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The time the issue type last updated. /// /// - Remark: Generated from `#/components/schemas/issue-type/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The enabled state of the issue type. /// /// - Remark: Generated from `#/components/schemas/issue-type/is_enabled`. - public var is_enabled: Swift.Bool? - /// Creates a new `issue_hyphen_type`. + public var isEnabled: Swift.Bool? + /// Creates a new `IssueType`. /// /// - Parameters: /// - id: The unique identifier of the issue type. - /// - node_id: The node identifier of the issue type. + /// - nodeId: The node identifier of the issue type. /// - name: The name of the issue type. /// - description: The description of the issue type. /// - color: The color of the issue type. - /// - created_at: The time the issue type created. - /// - updated_at: The time the issue type last updated. - /// - is_enabled: The enabled state of the issue type. + /// - createdAt: The time the issue type created. + /// - updatedAt: The time the issue type last updated. + /// - isEnabled: The enabled state of the issue type. public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, description: Swift.String? = nil, - color: Components.Schemas.issue_hyphen_type.colorPayload? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - is_enabled: Swift.Bool? = nil + color: Components.Schemas.IssueType.ColorPayload? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + isEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.description = description self.color = color - self.created_at = created_at - self.updated_at = updated_at - self.is_enabled = is_enabled + self.createdAt = createdAt + self.updatedAt = updatedAt + self.isEnabled = isEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case description case color - case created_at - case updated_at - case is_enabled + case createdAt = "created_at" + case updatedAt = "updated_at" + case isEnabled = "is_enabled" } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-integration`. - public struct nullable_hyphen_integration: Codable, Hashable, Sendable { + public struct NullableIntegration: Codable, Hashable, Sendable { /// Unique identifier of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/id`. @@ -1903,25 +1912,25 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/slug`. public var slug: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/client_id`. - public var client_id: Swift.String? + public var clientId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - @frozen public enum ownerPayload: Codable, Hashable, Sendable { + @frozen public enum OwnerPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case1`. - case simple_hyphen_user(Components.Schemas.simple_hyphen_user) + case SimpleUser(Components.Schemas.SimpleUser) /// - Remark: Generated from `#/components/schemas/nullable-integration/owner/case2`. - case enterprise(Components.Schemas.enterprise) + case Enterprise(Components.Schemas.Enterprise) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .simple_hyphen_user(try .init(from: decoder)) + self = .SimpleUser(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise(try .init(from: decoder)) + self = .Enterprise(try .init(from: decoder)) return } catch { errors.append(error) @@ -1934,15 +1943,15 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .simple_hyphen_user(value): + case let .SimpleUser(value): try value.encode(to: encoder) - case let .enterprise(value): + case let .Enterprise(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/nullable-integration/owner`. - public var owner: Components.Schemas.nullable_hyphen_integration.ownerPayload + public var owner: Components.Schemas.NullableIntegration.OwnerPayload /// The name of the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/name`. @@ -1950,17 +1959,17 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-integration/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/external_url`. - public var external_url: Swift.String + public var externalUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-integration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/nullable-integration/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/issues`. public var issues: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions/checks`. @@ -1973,7 +1982,7 @@ public enum Components { public var deployments: Swift.String? /// A container of undocumented properties. public var additionalProperties: [String: Swift.String] - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - issues: @@ -2006,23 +2015,23 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - issues = try container.decodeIfPresent( + self.issues = try container.decodeIfPresent( Swift.String.self, forKey: .issues ) - checks = try container.decodeIfPresent( + self.checks = try container.decodeIfPresent( Swift.String.self, forKey: .checks ) - metadata = try container.decodeIfPresent( + self.metadata = try container.decodeIfPresent( Swift.String.self, forKey: .metadata ) - contents = try container.decodeIfPresent( + self.contents = try container.decodeIfPresent( Swift.String.self, forKey: .contents ) - deployments = try container.decodeIfPresent( + self.deployments = try container.decodeIfPresent( Swift.String.self, forKey: .deployments ) @@ -2037,23 +2046,23 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - issues, + self.issues, forKey: .issues ) try container.encodeIfPresent( - checks, + self.checks, forKey: .checks ) try container.encodeIfPresent( - metadata, + self.metadata, forKey: .metadata ) try container.encodeIfPresent( - contents, + self.contents, forKey: .contents ) try container.encodeIfPresent( - deployments, + self.deployments, forKey: .deployments ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -2062,7 +2071,7 @@ public enum Components { /// The set of permissions for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload + public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload /// The list of events for the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. @@ -2070,109 +2079,109 @@ public enum Components { /// The number of installations associated with the GitHub app /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. - public var installations_count: Swift.Int? + public var installationsCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var client_secret: Swift.String? + public var clientSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhook_secret: Swift.String? + public var webhookSecret: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. public var pem: Swift.String? - /// Creates a new `nullable_hyphen_integration`. + /// Creates a new `NullableIntegration`. /// /// - Parameters: /// - id: Unique identifier of the GitHub app /// - slug: The slug name of the GitHub app - /// - node_id: - /// - client_id: + /// - nodeId: + /// - clientId: /// - owner: /// - name: The name of the GitHub app /// - description: - /// - external_url: - /// - html_url: - /// - created_at: - /// - updated_at: + /// - externalUrl: + /// - htmlUrl: + /// - createdAt: + /// - updatedAt: /// - permissions: The set of permissions for the GitHub app /// - events: The list of events for the GitHub app - /// - installations_count: The number of installations associated with the GitHub app - /// - client_secret: - /// - webhook_secret: + /// - installationsCount: The number of installations associated with the GitHub app + /// - clientSecret: + /// - webhookSecret: /// - pem: public init( id: Swift.Int, slug: Swift.String? = nil, - node_id: Swift.String, - client_id: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_integration.ownerPayload, + nodeId: Swift.String, + clientId: Swift.String? = nil, + owner: Components.Schemas.NullableIntegration.OwnerPayload, name: Swift.String, description: Swift.String? = nil, - external_url: Swift.String, - html_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.nullable_hyphen_integration.permissionsPayload, + externalUrl: Swift.String, + htmlUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installations_count: Swift.Int? = nil, - client_secret: Swift.String? = nil, - webhook_secret: Swift.String? = nil, + installationsCount: Swift.Int? = nil, + clientSecret: Swift.String? = nil, + webhookSecret: Swift.String? = nil, pem: Swift.String? = nil ) { self.id = id self.slug = slug - self.node_id = node_id - self.client_id = client_id + self.nodeId = nodeId + self.clientId = clientId self.owner = owner self.name = name self.description = description - self.external_url = external_url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.externalUrl = externalUrl + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions self.events = events - self.installations_count = installations_count - self.client_secret = client_secret - self.webhook_secret = webhook_secret + self.installationsCount = installationsCount + self.clientSecret = clientSecret + self.webhookSecret = webhookSecret self.pem = pem } public enum CodingKeys: String, CodingKey { case id case slug - case node_id - case client_id + case nodeId = "node_id" + case clientId = "client_id" case owner case name case description - case external_url - case html_url - case created_at - case updated_at + case externalUrl = "external_url" + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions case events - case installations_count - case client_secret - case webhook_secret + case installationsCount = "installations_count" + case clientSecret = "client_secret" + case webhookSecret = "webhook_secret" case pem } } /// How the author is associated with the repository. /// /// - Remark: Generated from `#/components/schemas/author-association`. - @frozen public enum author_hyphen_association: String, Codable, Hashable, Sendable { - case COLLABORATOR = "COLLABORATOR" - case CONTRIBUTOR = "CONTRIBUTOR" - case FIRST_TIMER = "FIRST_TIMER" - case FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" - case MANNEQUIN = "MANNEQUIN" - case MEMBER = "MEMBER" - case NONE = "NONE" - case OWNER = "OWNER" + @frozen public enum AuthorAssociation: String, Codable, Hashable, Sendable, CaseIterable { + case collaborator = "COLLABORATOR" + case contributor = "CONTRIBUTOR" + case firstTimer = "FIRST_TIMER" + case firstTimeContributor = "FIRST_TIME_CONTRIBUTOR" + case mannequin = "MANNEQUIN" + case member = "MEMBER" + case none = "NONE" + case owner = "OWNER" } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -2189,11 +2198,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -2204,7 +2213,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -2215,7 +2224,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -2227,7 +2236,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -2239,21 +2248,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2261,21 +2270,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2283,27 +2292,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2313,21 +2322,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2335,21 +2344,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2357,21 +2366,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2379,21 +2388,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2401,62 +2410,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -2464,121 +2473,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -2586,13 +2595,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -2603,7 +2612,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2633,442 +2642,442 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// Metaproperties for Git author/committer information. /// /// - Remark: Generated from `#/components/schemas/nullable-git-user`. - public struct nullable_hyphen_git_hyphen_user: Codable, Hashable, Sendable { + public struct NullableGitUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-git-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-git-user/date`. public var date: Swift.String? - /// Creates a new `nullable_hyphen_git_hyphen_user`. + /// Creates a new `NullableGitUser`. /// /// - Parameters: /// - name: @@ -3090,7 +3099,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/verification`. - public struct verification: Codable, Hashable, Sendable { + public struct Verification: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/verification/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/verification/reason`. @@ -3100,53 +3109,53 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/verification/signature`. public var signature: Swift.String? /// - Remark: Generated from `#/components/schemas/verification/verified_at`. - public var verified_at: Swift.String? - /// Creates a new `verification`. + public var verifiedAt: Swift.String? + /// Creates a new `Verification`. /// /// - Parameters: /// - verified: /// - reason: /// - payload: /// - signature: - /// - verified_at: + /// - verifiedAt: public init( verified: Swift.Bool, reason: Swift.String, payload: Swift.String? = nil, signature: Swift.String? = nil, - verified_at: Swift.String? = nil + verifiedAt: Swift.String? = nil ) { self.verified = verified self.reason = reason self.payload = payload self.signature = signature - self.verified_at = verified_at + self.verifiedAt = verifiedAt } public enum CodingKeys: String, CodingKey { case verified case reason case payload case signature - case verified_at + case verifiedAt = "verified_at" } } - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches`. - public struct search_hyphen_result_hyphen_text_hyphen_matchesPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/object_url`. - public var object_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/object_type`. - public var object_type: Swift.String? - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/property`. + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches`. + public struct SearchResultTextMatchesPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/object_url`. + public var objectUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/object_type`. + public var objectType: Swift.String? + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/property`. public var property: Swift.String? - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/fragment`. + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/fragment`. public var fragment: Swift.String? - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/matchesPayload`. - public struct matchesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/matchesPayload/text`. + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/MatchesPayload`. + public struct MatchesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/MatchesPayload/text`. public var text: Swift.String? - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/matchesPayload/indices`. + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/MatchesPayload/indices`. public var indices: [Swift.Int]? - /// Creates a new `matchesPayloadPayload`. + /// Creates a new `MatchesPayloadPayload`. /// /// - Parameters: /// - text: @@ -3163,45 +3172,45 @@ public enum Components { case indices } } - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/matches`. - public typealias matchesPayload = [Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matchesPayload.matchesPayloadPayload] - /// - Remark: Generated from `#/components/schemas/search_hyphen_result_hyphen_text_hyphen_matches/matches`. - public var matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matchesPayload.matchesPayload? - /// Creates a new `search_hyphen_result_hyphen_text_hyphen_matchesPayload`. + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/matches`. + public typealias MatchesPayload = [Components.Schemas.SearchResultTextMatchesPayload.MatchesPayloadPayload] + /// - Remark: Generated from `#/components/schemas/SearchResultTextMatches/matches`. + public var matches: Components.Schemas.SearchResultTextMatchesPayload.MatchesPayload? + /// Creates a new `SearchResultTextMatchesPayload`. /// /// - Parameters: - /// - object_url: - /// - object_type: + /// - objectUrl: + /// - objectType: /// - property: /// - fragment: /// - matches: public init( - object_url: Swift.String? = nil, - object_type: Swift.String? = nil, + objectUrl: Swift.String? = nil, + objectType: Swift.String? = nil, property: Swift.String? = nil, fragment: Swift.String? = nil, - matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matchesPayload.matchesPayload? = nil + matches: Components.Schemas.SearchResultTextMatchesPayload.MatchesPayload? = nil ) { - self.object_url = object_url - self.object_type = object_type + self.objectUrl = objectUrl + self.objectType = objectType self.property = property self.fragment = fragment self.matches = matches } public enum CodingKeys: String, CodingKey { - case object_url - case object_type + case objectUrl = "object_url" + case objectType = "object_type" case property case fragment case matches } } /// - Remark: Generated from `#/components/schemas/search-result-text-matches`. - public typealias search_hyphen_result_hyphen_text_hyphen_matches = [Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matchesPayload] + public typealias SearchResultTextMatches = [Components.Schemas.SearchResultTextMatchesPayload] /// Code Search Result Item /// /// - Remark: Generated from `#/components/schemas/code-search-result-item`. - public struct code_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct CodeSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-search-result-item/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/code-search-result-item/path`. @@ -3211,107 +3220,107 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/code-search-result-item/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/code-search-result-item/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/code-search-result-item/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/code-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/code-search-result-item/file_size`. - public var file_size: Swift.Int? + public var fileSize: Swift.Int? /// - Remark: Generated from `#/components/schemas/code-search-result-item/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/code-search-result-item/last_modified_at`. - public var last_modified_at: Foundation.Date? + public var lastModifiedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/code-search-result-item/line_numbers`. - public var line_numbers: [Swift.String]? + public var lineNumbers: [Swift.String]? /// - Remark: Generated from `#/components/schemas/code-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? - /// Creates a new `code_hyphen_search_hyphen_result_hyphen_item`. + public var textMatches: Components.Schemas.SearchResultTextMatches? + /// Creates a new `CodeSearchResultItem`. /// /// - Parameters: /// - name: /// - path: /// - sha: /// - url: - /// - git_url: - /// - html_url: + /// - gitUrl: + /// - htmlUrl: /// - repository: /// - score: - /// - file_size: + /// - fileSize: /// - language: - /// - last_modified_at: - /// - line_numbers: - /// - text_matches: + /// - lastModifiedAt: + /// - lineNumbers: + /// - textMatches: public init( name: Swift.String, path: Swift.String, sha: Swift.String, url: Swift.String, - git_url: Swift.String, - html_url: Swift.String, - repository: Components.Schemas.minimal_hyphen_repository, + gitUrl: Swift.String, + htmlUrl: Swift.String, + repository: Components.Schemas.MinimalRepository, score: Swift.Double, - file_size: Swift.Int? = nil, + fileSize: Swift.Int? = nil, language: Swift.String? = nil, - last_modified_at: Foundation.Date? = nil, - line_numbers: [Swift.String]? = nil, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil + lastModifiedAt: Foundation.Date? = nil, + lineNumbers: [Swift.String]? = nil, + textMatches: Components.Schemas.SearchResultTextMatches? = nil ) { self.name = name self.path = path self.sha = sha self.url = url - self.git_url = git_url - self.html_url = html_url + self.gitUrl = gitUrl + self.htmlUrl = htmlUrl self.repository = repository self.score = score - self.file_size = file_size + self.fileSize = fileSize self.language = language - self.last_modified_at = last_modified_at - self.line_numbers = line_numbers - self.text_matches = text_matches + self.lastModifiedAt = lastModifiedAt + self.lineNumbers = lineNumbers + self.textMatches = textMatches } public enum CodingKeys: String, CodingKey { case name case path case sha case url - case git_url - case html_url + case gitUrl = "git_url" + case htmlUrl = "html_url" case repository case score - case file_size + case fileSize = "file_size" case language - case last_modified_at - case line_numbers - case text_matches + case lastModifiedAt = "last_modified_at" + case lineNumbers = "line_numbers" + case textMatches = "text_matches" } } /// Commit Search Result Item /// /// - Remark: Generated from `#/components/schemas/commit-search-result-item`. - public struct commit_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct CommitSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit`. - public struct commitPayload: Codable, Hashable, Sendable { + public struct CommitPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/author/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/author/email`. public var email: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/author/date`. public var date: Foundation.Date - /// Creates a new `authorPayload`. + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - name: @@ -3333,20 +3342,20 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/author`. - public var author: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload.authorPayload + public var author: Components.Schemas.CommitSearchResultItem.CommitPayload.AuthorPayload /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/committer`. - public var committer: Components.Schemas.nullable_hyphen_git_hyphen_user? + public var committer: Components.Schemas.NullableGitUser? /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/comment_count`. - public var comment_count: Swift.Int + public var commentCount: Swift.Int /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/tree`. - public struct treePayload: Codable, Hashable, Sendable { + public struct TreePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/tree/sha`. public var sha: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/tree/url`. public var url: Swift.String - /// Creates a new `treePayload`. + /// Creates a new `TreePayload`. /// /// - Parameters: /// - sha: @@ -3364,33 +3373,33 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/tree`. - public var tree: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload.treePayload + public var tree: Components.Schemas.CommitSearchResultItem.CommitPayload.TreePayload /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit/verification`. - public var verification: Components.Schemas.verification? - /// Creates a new `commitPayload`. + public var verification: Components.Schemas.Verification? + /// Creates a new `CommitPayload`. /// /// - Parameters: /// - author: /// - committer: - /// - comment_count: + /// - commentCount: /// - message: /// - tree: /// - url: /// - verification: public init( - author: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload.authorPayload, - committer: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, - comment_count: Swift.Int, + author: Components.Schemas.CommitSearchResultItem.CommitPayload.AuthorPayload, + committer: Components.Schemas.NullableGitUser? = nil, + commentCount: Swift.Int, message: Swift.String, - tree: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload.treePayload, + tree: Components.Schemas.CommitSearchResultItem.CommitPayload.TreePayload, url: Swift.String, - verification: Components.Schemas.verification? = nil + verification: Components.Schemas.Verification? = nil ) { self.author = author self.committer = committer - self.comment_count = comment_count + self.commentCount = commentCount self.message = message self.tree = tree self.url = url @@ -3399,7 +3408,7 @@ public enum Components { public enum CodingKeys: String, CodingKey { case author case committer - case comment_count + case commentCount = "comment_count" case message case tree case url @@ -3407,129 +3416,129 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/commit-search-result-item/commit`. - public var commit: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload + public var commit: Components.Schemas.CommitSearchResultItem.CommitPayload /// - Remark: Generated from `#/components/schemas/commit-search-result-item/author`. - public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var author: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/commit-search-result-item/committer`. - public var committer: Components.Schemas.nullable_hyphen_git_hyphen_user? - /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parentsPayload`. - public struct parentsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parentsPayload/url`. + public var committer: Components.Schemas.NullableGitUser? + /// - Remark: Generated from `#/components/schemas/commit-search-result-item/ParentsPayload`. + public struct ParentsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/commit-search-result-item/ParentsPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parentsPayload/html_url`. - public var html_url: Swift.String? - /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parentsPayload/sha`. + /// - Remark: Generated from `#/components/schemas/commit-search-result-item/ParentsPayload/html_url`. + public var htmlUrl: Swift.String? + /// - Remark: Generated from `#/components/schemas/commit-search-result-item/ParentsPayload/sha`. public var sha: Swift.String? - /// Creates a new `parentsPayloadPayload`. + /// Creates a new `ParentsPayloadPayload`. /// /// - Parameters: /// - url: - /// - html_url: + /// - htmlUrl: /// - sha: public init( url: Swift.String? = nil, - html_url: Swift.String? = nil, + htmlUrl: Swift.String? = nil, sha: Swift.String? = nil ) { self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.sha = sha } public enum CodingKeys: String, CodingKey { case url - case html_url + case htmlUrl = "html_url" case sha } } /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parents`. - public typealias parentsPayload = [Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.parentsPayloadPayload] + public typealias ParentsPayload = [Components.Schemas.CommitSearchResultItem.ParentsPayloadPayload] /// - Remark: Generated from `#/components/schemas/commit-search-result-item/parents`. - public var parents: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.parentsPayload + public var parents: Components.Schemas.CommitSearchResultItem.ParentsPayload /// - Remark: Generated from `#/components/schemas/commit-search-result-item/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/commit-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/commit-search-result-item/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/commit-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? - /// Creates a new `commit_hyphen_search_hyphen_result_hyphen_item`. + public var textMatches: Components.Schemas.SearchResultTextMatches? + /// Creates a new `CommitSearchResultItem`. /// /// - Parameters: /// - url: /// - sha: - /// - html_url: - /// - comments_url: + /// - htmlUrl: + /// - commentsUrl: /// - commit: /// - author: /// - committer: /// - parents: /// - repository: /// - score: - /// - node_id: - /// - text_matches: + /// - nodeId: + /// - textMatches: public init( url: Swift.String, sha: Swift.String, - html_url: Swift.String, - comments_url: Swift.String, - commit: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.commitPayload, - author: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - committer: Components.Schemas.nullable_hyphen_git_hyphen_user? = nil, - parents: Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item.parentsPayload, - repository: Components.Schemas.minimal_hyphen_repository, + htmlUrl: Swift.String, + commentsUrl: Swift.String, + commit: Components.Schemas.CommitSearchResultItem.CommitPayload, + author: Components.Schemas.NullableSimpleUser? = nil, + committer: Components.Schemas.NullableGitUser? = nil, + parents: Components.Schemas.CommitSearchResultItem.ParentsPayload, + repository: Components.Schemas.MinimalRepository, score: Swift.Double, - node_id: Swift.String, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil + nodeId: Swift.String, + textMatches: Components.Schemas.SearchResultTextMatches? = nil ) { self.url = url self.sha = sha - self.html_url = html_url - self.comments_url = comments_url + self.htmlUrl = htmlUrl + self.commentsUrl = commentsUrl self.commit = commit self.author = author self.committer = committer self.parents = parents self.repository = repository self.score = score - self.node_id = node_id - self.text_matches = text_matches + self.nodeId = nodeId + self.textMatches = textMatches } public enum CodingKeys: String, CodingKey { case url case sha - case html_url - case comments_url + case htmlUrl = "html_url" + case commentsUrl = "comments_url" case commit case author case committer case parents case repository case score - case node_id - case text_matches + case nodeId = "node_id" + case textMatches = "text_matches" } } /// Issue Search Result Item /// /// - Remark: Generated from `#/components/schemas/issue-search-result-item`. - public struct issue_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct IssueSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/repository_url`. - public var repository_url: Swift.String + public var repositoryUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/issue-search-result-item/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/number`. public var number: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-search-result-item/title`. @@ -3537,32 +3546,32 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/issue-search-result-item/locked`. public var locked: Swift.Bool /// - Remark: Generated from `#/components/schemas/issue-search-result-item/active_lock_reason`. - public var active_lock_reason: Swift.String? + public var activeLockReason: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/assignees`. - public var assignees: [Components.Schemas.simple_hyphen_user]? + public var assignees: [Components.Schemas.SimpleUser]? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/user`. - public var user: Components.Schemas.nullable_hyphen_simple_hyphen_user? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload`. - public struct labelsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/id`. + public var user: Components.Schemas.NullableSimpleUser? + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload`. + public struct LabelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/node_id`. - public var node_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/url`. + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/node_id`. + public var nodeId: Swift.String? + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/url`. public var url: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/color`. + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/color`. public var color: Swift.String? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/default`. + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/default`. public var _default: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labelsPayload/description`. + /// - Remark: Generated from `#/components/schemas/issue-search-result-item/LabelsPayload/description`. public var description: Swift.String? - /// Creates a new `labelsPayloadPayload`. + /// Creates a new `LabelsPayloadPayload`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - color: @@ -3570,7 +3579,7 @@ public enum Components { /// - description: public init( id: Swift.Int64? = nil, - node_id: Swift.String? = nil, + nodeId: Swift.String? = nil, url: Swift.String? = nil, name: Swift.String? = nil, color: Swift.String? = nil, @@ -3578,7 +3587,7 @@ public enum Components { description: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.color = color @@ -3587,7 +3596,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case color @@ -3596,288 +3605,288 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labels`. - public typealias labelsPayload = [Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.labelsPayloadPayload] + public typealias LabelsPayload = [Components.Schemas.IssueSearchResultItem.LabelsPayloadPayload] /// - Remark: Generated from `#/components/schemas/issue-search-result-item/labels`. - public var labels: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.labelsPayload + public var labels: Components.Schemas.IssueSearchResultItem.LabelsPayload /// - Remark: Generated from `#/components/schemas/issue-search-result-item/sub_issues_summary`. - public struct sub_issues_summaryPayload: Codable, Hashable, Sendable { + public struct SubIssuesSummaryPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-search-result-item/sub_issues_summary/total`. public var total: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-search-result-item/sub_issues_summary/completed`. public var completed: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-search-result-item/sub_issues_summary/percent_completed`. - public var percent_completed: Swift.Int - /// Creates a new `sub_issues_summaryPayload`. + public var percentCompleted: Swift.Int + /// Creates a new `SubIssuesSummaryPayload`. /// /// - Parameters: /// - total: /// - completed: - /// - percent_completed: + /// - percentCompleted: public init( total: Swift.Int, completed: Swift.Int, - percent_completed: Swift.Int + percentCompleted: Swift.Int ) { self.total = total self.completed = completed - self.percent_completed = percent_completed + self.percentCompleted = percentCompleted } public enum CodingKeys: String, CodingKey { case total case completed - case percent_completed + case percentCompleted = "percent_completed" } } /// - Remark: Generated from `#/components/schemas/issue-search-result-item/sub_issues_summary`. - public var sub_issues_summary: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.sub_issues_summaryPayload? + public var subIssuesSummary: Components.Schemas.IssueSearchResultItem.SubIssuesSummaryPayload? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/issue-search-result-item/state_reason`. - public var state_reason: Swift.String? + public var stateReason: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/milestone`. - public var milestone: Components.Schemas.nullable_hyphen_milestone? + public var milestone: Components.Schemas.NullableMilestone? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/comments`. public var comments: Swift.Int /// - Remark: Generated from `#/components/schemas/issue-search-result-item/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-search-result-item/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/issue-search-result-item/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? + public var textMatches: Components.Schemas.SearchResultTextMatches? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request/merged_at`. - public var merged_at: Foundation.Date? + public var mergedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request/diff_url`. - public var diff_url: Swift.String? + public var diffUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request/patch_url`. - public var patch_url: Swift.String? + public var patchUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request/url`. public var url: Swift.String? - /// Creates a new `pull_requestPayload`. + /// Creates a new `PullRequestPayload`. /// /// - Parameters: - /// - merged_at: - /// - diff_url: - /// - html_url: - /// - patch_url: + /// - mergedAt: + /// - diffUrl: + /// - htmlUrl: + /// - patchUrl: /// - url: public init( - merged_at: Foundation.Date? = nil, - diff_url: Swift.String? = nil, - html_url: Swift.String? = nil, - patch_url: Swift.String? = nil, + mergedAt: Foundation.Date? = nil, + diffUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil, + patchUrl: Swift.String? = nil, url: Swift.String? = nil ) { - self.merged_at = merged_at - self.diff_url = diff_url - self.html_url = html_url - self.patch_url = patch_url + self.mergedAt = mergedAt + self.diffUrl = diffUrl + self.htmlUrl = htmlUrl + self.patchUrl = patchUrl self.url = url } public enum CodingKeys: String, CodingKey { - case merged_at - case diff_url - case html_url - case patch_url + case mergedAt = "merged_at" + case diffUrl = "diff_url" + case htmlUrl = "html_url" + case patchUrl = "patch_url" case url } } /// - Remark: Generated from `#/components/schemas/issue-search-result-item/pull_request`. - public var pull_request: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.pull_requestPayload? + public var pullRequest: Components.Schemas.IssueSearchResultItem.PullRequestPayload? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/issue-search-result-item/author_association`. - public var author_association: Components.Schemas.author_hyphen_association + public var authorAssociation: Components.Schemas.AuthorAssociation /// - Remark: Generated from `#/components/schemas/issue-search-result-item/draft`. public var draft: Swift.Bool? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/repository`. - public var repository: Components.Schemas.repository? + public var repository: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/body_html`. - public var body_html: Swift.String? + public var bodyHtml: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/body_text`. - public var body_text: Swift.String? + public var bodyText: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/timeline_url`. - public var timeline_url: Swift.String? + public var timelineUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/type`. - public var _type: Components.Schemas.issue_hyphen_type? + public var _type: Components.Schemas.IssueType? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/performed_via_github_app`. - public var performed_via_github_app: Components.Schemas.nullable_hyphen_integration? + public var performedViaGithubApp: Components.Schemas.NullableIntegration? /// - Remark: Generated from `#/components/schemas/issue-search-result-item/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `issue_hyphen_search_hyphen_result_hyphen_item`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `IssueSearchResultItem`. /// /// - Parameters: /// - url: - /// - repository_url: - /// - labels_url: - /// - comments_url: - /// - events_url: - /// - html_url: + /// - repositoryUrl: + /// - labelsUrl: + /// - commentsUrl: + /// - eventsUrl: + /// - htmlUrl: /// - id: - /// - node_id: + /// - nodeId: /// - number: /// - title: /// - locked: - /// - active_lock_reason: + /// - activeLockReason: /// - assignees: /// - user: /// - labels: - /// - sub_issues_summary: + /// - subIssuesSummary: /// - state: - /// - state_reason: + /// - stateReason: /// - assignee: /// - milestone: /// - comments: - /// - created_at: - /// - updated_at: - /// - closed_at: - /// - text_matches: - /// - pull_request: + /// - createdAt: + /// - updatedAt: + /// - closedAt: + /// - textMatches: + /// - pullRequest: /// - body: /// - score: - /// - author_association: + /// - authorAssociation: /// - draft: /// - repository: - /// - body_html: - /// - body_text: - /// - timeline_url: + /// - bodyHtml: + /// - bodyText: + /// - timelineUrl: /// - _type: - /// - performed_via_github_app: + /// - performedViaGithubApp: /// - reactions: public init( url: Swift.String, - repository_url: Swift.String, - labels_url: Swift.String, - comments_url: Swift.String, - events_url: Swift.String, - html_url: Swift.String, + repositoryUrl: Swift.String, + labelsUrl: Swift.String, + commentsUrl: Swift.String, + eventsUrl: Swift.String, + htmlUrl: Swift.String, id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, number: Swift.Int, title: Swift.String, locked: Swift.Bool, - active_lock_reason: Swift.String? = nil, - assignees: [Components.Schemas.simple_hyphen_user]? = nil, - user: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - labels: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.labelsPayload, - sub_issues_summary: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.sub_issues_summaryPayload? = nil, + activeLockReason: Swift.String? = nil, + assignees: [Components.Schemas.SimpleUser]? = nil, + user: Components.Schemas.NullableSimpleUser? = nil, + labels: Components.Schemas.IssueSearchResultItem.LabelsPayload, + subIssuesSummary: Components.Schemas.IssueSearchResultItem.SubIssuesSummaryPayload? = nil, state: Swift.String, - state_reason: Swift.String? = nil, - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - milestone: Components.Schemas.nullable_hyphen_milestone? = nil, + stateReason: Swift.String? = nil, + assignee: Components.Schemas.NullableSimpleUser? = nil, + milestone: Components.Schemas.NullableMilestone? = nil, comments: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil, - pull_request: Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item.pull_requestPayload? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + textMatches: Components.Schemas.SearchResultTextMatches? = nil, + pullRequest: Components.Schemas.IssueSearchResultItem.PullRequestPayload? = nil, body: Swift.String? = nil, score: Swift.Double, - author_association: Components.Schemas.author_hyphen_association, + authorAssociation: Components.Schemas.AuthorAssociation, draft: Swift.Bool? = nil, - repository: Components.Schemas.repository? = nil, - body_html: Swift.String? = nil, - body_text: Swift.String? = nil, - timeline_url: Swift.String? = nil, - _type: Components.Schemas.issue_hyphen_type? = nil, - performed_via_github_app: Components.Schemas.nullable_hyphen_integration? = nil, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + repository: Components.Schemas.Repository? = nil, + bodyHtml: Swift.String? = nil, + bodyText: Swift.String? = nil, + timelineUrl: Swift.String? = nil, + _type: Components.Schemas.IssueType? = nil, + performedViaGithubApp: Components.Schemas.NullableIntegration? = nil, + reactions: Components.Schemas.ReactionRollup? = nil ) { self.url = url - self.repository_url = repository_url - self.labels_url = labels_url - self.comments_url = comments_url - self.events_url = events_url - self.html_url = html_url + self.repositoryUrl = repositoryUrl + self.labelsUrl = labelsUrl + self.commentsUrl = commentsUrl + self.eventsUrl = eventsUrl + self.htmlUrl = htmlUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.number = number self.title = title self.locked = locked - self.active_lock_reason = active_lock_reason + self.activeLockReason = activeLockReason self.assignees = assignees self.user = user self.labels = labels - self.sub_issues_summary = sub_issues_summary + self.subIssuesSummary = subIssuesSummary self.state = state - self.state_reason = state_reason + self.stateReason = stateReason self.assignee = assignee self.milestone = milestone self.comments = comments - self.created_at = created_at - self.updated_at = updated_at - self.closed_at = closed_at - self.text_matches = text_matches - self.pull_request = pull_request + self.createdAt = createdAt + self.updatedAt = updatedAt + self.closedAt = closedAt + self.textMatches = textMatches + self.pullRequest = pullRequest self.body = body self.score = score - self.author_association = author_association + self.authorAssociation = authorAssociation self.draft = draft self.repository = repository - self.body_html = body_html - self.body_text = body_text - self.timeline_url = timeline_url + self.bodyHtml = bodyHtml + self.bodyText = bodyText + self.timelineUrl = timelineUrl self._type = _type - self.performed_via_github_app = performed_via_github_app + self.performedViaGithubApp = performedViaGithubApp self.reactions = reactions } public enum CodingKeys: String, CodingKey { case url - case repository_url - case labels_url - case comments_url - case events_url - case html_url + case repositoryUrl = "repository_url" + case labelsUrl = "labels_url" + case commentsUrl = "comments_url" + case eventsUrl = "events_url" + case htmlUrl = "html_url" case id - case node_id + case nodeId = "node_id" case number case title case locked - case active_lock_reason + case activeLockReason = "active_lock_reason" case assignees case user case labels - case sub_issues_summary + case subIssuesSummary = "sub_issues_summary" case state - case state_reason + case stateReason = "state_reason" case assignee case milestone case comments - case created_at - case updated_at - case closed_at - case text_matches - case pull_request + case createdAt = "created_at" + case updatedAt = "updated_at" + case closedAt = "closed_at" + case textMatches = "text_matches" + case pullRequest = "pull_request" case body case score - case author_association + case authorAssociation = "author_association" case draft case repository - case body_html - case body_text - case timeline_url + case bodyHtml = "body_html" + case bodyText = "body_text" + case timelineUrl = "timeline_url" case _type = "type" - case performed_via_github_app + case performedViaGithubApp = "performed_via_github_app" case reactions } } /// Label Search Result Item /// /// - Remark: Generated from `#/components/schemas/label-search-result-item`. - public struct label_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct LabelSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/label-search-result-item/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/label-search-result-item/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/label-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/label-search-result-item/name`. @@ -3891,70 +3900,70 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/label-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/label-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? - /// Creates a new `label_hyphen_search_hyphen_result_hyphen_item`. + public var textMatches: Components.Schemas.SearchResultTextMatches? + /// Creates a new `LabelSearchResultItem`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - url: /// - name: /// - color: /// - _default: /// - description: /// - score: - /// - text_matches: + /// - textMatches: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, name: Swift.String, color: Swift.String, _default: Swift.Bool, description: Swift.String? = nil, score: Swift.Double, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil + textMatches: Components.Schemas.SearchResultTextMatches? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url self.name = name self.color = color self._default = _default self.description = description self.score = score - self.text_matches = text_matches + self.textMatches = textMatches } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url case name case color case _default = "default" case description case score - case text_matches + case textMatches = "text_matches" } } /// Repo Search Result Item /// /// - Remark: Generated from `#/components/schemas/repo-search-result-item`. - public struct repo_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct RepoSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repo-search-result-item/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/owner`. - public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var owner: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/fork`. @@ -3962,133 +3971,133 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repo-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/repo-search-result-item/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/repo-search-result-item/pushed_at`. - public var pushed_at: Foundation.Date + public var pushedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/repo-search-result-item/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/repo-search-result-item/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repo-search-result-item/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repo-search-result-item/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_downloads`. - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/archived`. public var archived: Swift.Bool /// Returns whether or not this repository disabled. @@ -4100,9 +4109,9 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repo-search-result-item/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repo-search-result-item/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repo-search-result-item/permissions/maintain`. @@ -4113,7 +4122,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/permissions/pull`. public var pull: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4143,412 +4152,412 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repo-search-result-item/permissions`. - public var permissions: Components.Schemas.repo_hyphen_search_hyphen_result_hyphen_item.permissionsPayload? + public var permissions: Components.Schemas.RepoSearchResultItem.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? + public var textMatches: Components.Schemas.SearchResultTextMatches? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repo-search-result-item/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? - /// Creates a new `repo_hyphen_search_hyphen_result_hyphen_item`. + public var webCommitSignoffRequired: Swift.Bool? + /// Creates a new `RepoSearchResultItem`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - created_at: - /// - updated_at: - /// - pushed_at: + /// - createdAt: + /// - updatedAt: + /// - pushedAt: /// - homepage: /// - size: - /// - stargazers_count: - /// - watchers_count: + /// - stargazersCount: + /// - watchersCount: /// - language: - /// - forks_count: - /// - open_issues_count: - /// - master_branch: - /// - default_branch: + /// - forksCount: + /// - openIssuesCount: + /// - masterBranch: + /// - defaultBranch: /// - score: - /// - forks_url: - /// - keys_url: - /// - collaborators_url: - /// - teams_url: - /// - hooks_url: - /// - issue_events_url: - /// - events_url: - /// - assignees_url: - /// - branches_url: - /// - tags_url: - /// - blobs_url: - /// - git_tags_url: - /// - git_refs_url: - /// - trees_url: - /// - statuses_url: - /// - languages_url: - /// - stargazers_url: - /// - contributors_url: - /// - subscribers_url: - /// - subscription_url: - /// - commits_url: - /// - git_commits_url: - /// - comments_url: - /// - issue_comment_url: - /// - contents_url: - /// - compare_url: - /// - merges_url: - /// - archive_url: - /// - downloads_url: - /// - issues_url: - /// - pulls_url: - /// - milestones_url: - /// - notifications_url: - /// - labels_url: - /// - releases_url: - /// - deployments_url: - /// - git_url: - /// - ssh_url: - /// - clone_url: - /// - svn_url: + /// - forksUrl: + /// - keysUrl: + /// - collaboratorsUrl: + /// - teamsUrl: + /// - hooksUrl: + /// - issueEventsUrl: + /// - eventsUrl: + /// - assigneesUrl: + /// - branchesUrl: + /// - tagsUrl: + /// - blobsUrl: + /// - gitTagsUrl: + /// - gitRefsUrl: + /// - treesUrl: + /// - statusesUrl: + /// - languagesUrl: + /// - stargazersUrl: + /// - contributorsUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - commitsUrl: + /// - gitCommitsUrl: + /// - commentsUrl: + /// - issueCommentUrl: + /// - contentsUrl: + /// - compareUrl: + /// - mergesUrl: + /// - archiveUrl: + /// - downloadsUrl: + /// - issuesUrl: + /// - pullsUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - labelsUrl: + /// - releasesUrl: + /// - deploymentsUrl: + /// - gitUrl: + /// - sshUrl: + /// - cloneUrl: + /// - svnUrl: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: /// - topics: - /// - mirror_url: - /// - has_issues: - /// - has_projects: - /// - has_pages: - /// - has_wiki: - /// - has_downloads: - /// - has_discussions: + /// - mirrorUrl: + /// - hasIssues: + /// - hasProjects: + /// - hasPages: + /// - hasWiki: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. /// - license: /// - permissions: - /// - text_matches: - /// - temp_clone_token: - /// - allow_merge_commit: - /// - allow_squash_merge: - /// - allow_rebase_merge: - /// - allow_auto_merge: - /// - delete_branch_on_merge: - /// - allow_forking: - /// - is_template: - /// - web_commit_signoff_required: + /// - textMatches: + /// - tempCloneToken: + /// - allowMergeCommit: + /// - allowSquashMerge: + /// - allowRebaseMerge: + /// - allowAutoMerge: + /// - deleteBranchOnMerge: + /// - allowForking: + /// - isTemplate: + /// - webCommitSignoffRequired: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + fullName: Swift.String, + owner: Components.Schemas.NullableSimpleUser? = nil, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - pushed_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + pushedAt: Foundation.Date, homepage: Swift.String? = nil, size: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, language: Swift.String? = nil, - forks_count: Swift.Int, - open_issues_count: Swift.Int, - master_branch: Swift.String? = nil, - default_branch: Swift.String, + forksCount: Swift.Int, + openIssuesCount: Swift.Int, + masterBranch: Swift.String? = nil, + defaultBranch: Swift.String, score: Swift.Double, - forks_url: Swift.String, - keys_url: Swift.String, - collaborators_url: Swift.String, - teams_url: Swift.String, - hooks_url: Swift.String, - issue_events_url: Swift.String, - events_url: Swift.String, - assignees_url: Swift.String, - branches_url: Swift.String, - tags_url: Swift.String, - blobs_url: Swift.String, - git_tags_url: Swift.String, - git_refs_url: Swift.String, - trees_url: Swift.String, - statuses_url: Swift.String, - languages_url: Swift.String, - stargazers_url: Swift.String, - contributors_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - commits_url: Swift.String, - git_commits_url: Swift.String, - comments_url: Swift.String, - issue_comment_url: Swift.String, - contents_url: Swift.String, - compare_url: Swift.String, - merges_url: Swift.String, - archive_url: Swift.String, - downloads_url: Swift.String, - issues_url: Swift.String, - pulls_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - labels_url: Swift.String, - releases_url: Swift.String, - deployments_url: Swift.String, - git_url: Swift.String, - ssh_url: Swift.String, - clone_url: Swift.String, - svn_url: Swift.String, + forksUrl: Swift.String, + keysUrl: Swift.String, + collaboratorsUrl: Swift.String, + teamsUrl: Swift.String, + hooksUrl: Swift.String, + issueEventsUrl: Swift.String, + eventsUrl: Swift.String, + assigneesUrl: Swift.String, + branchesUrl: Swift.String, + tagsUrl: Swift.String, + blobsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitRefsUrl: Swift.String, + treesUrl: Swift.String, + statusesUrl: Swift.String, + languagesUrl: Swift.String, + stargazersUrl: Swift.String, + contributorsUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + commitsUrl: Swift.String, + gitCommitsUrl: Swift.String, + commentsUrl: Swift.String, + issueCommentUrl: Swift.String, + contentsUrl: Swift.String, + compareUrl: Swift.String, + mergesUrl: Swift.String, + archiveUrl: Swift.String, + downloadsUrl: Swift.String, + issuesUrl: Swift.String, + pullsUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + labelsUrl: Swift.String, + releasesUrl: Swift.String, + deploymentsUrl: Swift.String, + gitUrl: Swift.String, + sshUrl: Swift.String, + cloneUrl: Swift.String, + svnUrl: Swift.String, forks: Swift.Int, - open_issues: Swift.Int, + openIssues: Swift.Int, watchers: Swift.Int, topics: [Swift.String]? = nil, - mirror_url: Swift.String? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_pages: Swift.Bool, - has_wiki: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + mirrorUrl: Swift.String? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasPages: Swift.Bool, + hasWiki: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, - permissions: Components.Schemas.repo_hyphen_search_hyphen_result_hyphen_item.permissionsPayload? = nil, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil, - temp_clone_token: Swift.String? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_rebase_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - is_template: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil + license: Components.Schemas.NullableLicenseSimple? = nil, + permissions: Components.Schemas.RepoSearchResultItem.PermissionsPayload? = nil, + textMatches: Components.Schemas.SearchResultTextMatches? = nil, + tempCloneToken: Swift.String? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowRebaseMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + isTemplate: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.created_at = created_at - self.updated_at = updated_at - self.pushed_at = pushed_at + self.createdAt = createdAt + self.updatedAt = updatedAt + self.pushedAt = pushedAt self.homepage = homepage self.size = size - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.language = language - self.forks_count = forks_count - self.open_issues_count = open_issues_count - self.master_branch = master_branch - self.default_branch = default_branch + self.forksCount = forksCount + self.openIssuesCount = openIssuesCount + self.masterBranch = masterBranch + self.defaultBranch = defaultBranch self.score = score - self.forks_url = forks_url - self.keys_url = keys_url - self.collaborators_url = collaborators_url - self.teams_url = teams_url - self.hooks_url = hooks_url - self.issue_events_url = issue_events_url - self.events_url = events_url - self.assignees_url = assignees_url - self.branches_url = branches_url - self.tags_url = tags_url - self.blobs_url = blobs_url - self.git_tags_url = git_tags_url - self.git_refs_url = git_refs_url - self.trees_url = trees_url - self.statuses_url = statuses_url - self.languages_url = languages_url - self.stargazers_url = stargazers_url - self.contributors_url = contributors_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.commits_url = commits_url - self.git_commits_url = git_commits_url - self.comments_url = comments_url - self.issue_comment_url = issue_comment_url - self.contents_url = contents_url - self.compare_url = compare_url - self.merges_url = merges_url - self.archive_url = archive_url - self.downloads_url = downloads_url - self.issues_url = issues_url - self.pulls_url = pulls_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.labels_url = labels_url - self.releases_url = releases_url - self.deployments_url = deployments_url - self.git_url = git_url - self.ssh_url = ssh_url - self.clone_url = clone_url - self.svn_url = svn_url + self.forksUrl = forksUrl + self.keysUrl = keysUrl + self.collaboratorsUrl = collaboratorsUrl + self.teamsUrl = teamsUrl + self.hooksUrl = hooksUrl + self.issueEventsUrl = issueEventsUrl + self.eventsUrl = eventsUrl + self.assigneesUrl = assigneesUrl + self.branchesUrl = branchesUrl + self.tagsUrl = tagsUrl + self.blobsUrl = blobsUrl + self.gitTagsUrl = gitTagsUrl + self.gitRefsUrl = gitRefsUrl + self.treesUrl = treesUrl + self.statusesUrl = statusesUrl + self.languagesUrl = languagesUrl + self.stargazersUrl = stargazersUrl + self.contributorsUrl = contributorsUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.commitsUrl = commitsUrl + self.gitCommitsUrl = gitCommitsUrl + self.commentsUrl = commentsUrl + self.issueCommentUrl = issueCommentUrl + self.contentsUrl = contentsUrl + self.compareUrl = compareUrl + self.mergesUrl = mergesUrl + self.archiveUrl = archiveUrl + self.downloadsUrl = downloadsUrl + self.issuesUrl = issuesUrl + self.pullsUrl = pullsUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.labelsUrl = labelsUrl + self.releasesUrl = releasesUrl + self.deploymentsUrl = deploymentsUrl + self.gitUrl = gitUrl + self.sshUrl = sshUrl + self.cloneUrl = cloneUrl + self.svnUrl = svnUrl self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers self.topics = topics - self.mirror_url = mirror_url - self.has_issues = has_issues - self.has_projects = has_projects - self.has_pages = has_pages - self.has_wiki = has_wiki - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.mirrorUrl = mirrorUrl + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasPages = hasPages + self.hasWiki = hasWiki + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility self.license = license self.permissions = permissions - self.text_matches = text_matches - self.temp_clone_token = temp_clone_token - self.allow_merge_commit = allow_merge_commit - self.allow_squash_merge = allow_squash_merge - self.allow_rebase_merge = allow_rebase_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_forking = allow_forking - self.is_template = is_template - self.web_commit_signoff_required = web_commit_signoff_required + self.textMatches = textMatches + self.tempCloneToken = tempCloneToken + self.allowMergeCommit = allowMergeCommit + self.allowSquashMerge = allowSquashMerge + self.allowRebaseMerge = allowRebaseMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowForking = allowForking + self.isTemplate = isTemplate + self.webCommitSignoffRequired = webCommitSignoffRequired } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case created_at - case updated_at - case pushed_at + case createdAt = "created_at" + case updatedAt = "updated_at" + case pushedAt = "pushed_at" case homepage case size - case stargazers_count - case watchers_count + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case language - case forks_count - case open_issues_count - case master_branch - case default_branch + case forksCount = "forks_count" + case openIssuesCount = "open_issues_count" + case masterBranch = "master_branch" + case defaultBranch = "default_branch" case score - case forks_url - case keys_url - case collaborators_url - case teams_url - case hooks_url - case issue_events_url - case events_url - case assignees_url - case branches_url - case tags_url - case blobs_url - case git_tags_url - case git_refs_url - case trees_url - case statuses_url - case languages_url - case stargazers_url - case contributors_url - case subscribers_url - case subscription_url - case commits_url - case git_commits_url - case comments_url - case issue_comment_url - case contents_url - case compare_url - case merges_url - case archive_url - case downloads_url - case issues_url - case pulls_url - case milestones_url - case notifications_url - case labels_url - case releases_url - case deployments_url - case git_url - case ssh_url - case clone_url - case svn_url + case forksUrl = "forks_url" + case keysUrl = "keys_url" + case collaboratorsUrl = "collaborators_url" + case teamsUrl = "teams_url" + case hooksUrl = "hooks_url" + case issueEventsUrl = "issue_events_url" + case eventsUrl = "events_url" + case assigneesUrl = "assignees_url" + case branchesUrl = "branches_url" + case tagsUrl = "tags_url" + case blobsUrl = "blobs_url" + case gitTagsUrl = "git_tags_url" + case gitRefsUrl = "git_refs_url" + case treesUrl = "trees_url" + case statusesUrl = "statuses_url" + case languagesUrl = "languages_url" + case stargazersUrl = "stargazers_url" + case contributorsUrl = "contributors_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case commitsUrl = "commits_url" + case gitCommitsUrl = "git_commits_url" + case commentsUrl = "comments_url" + case issueCommentUrl = "issue_comment_url" + case contentsUrl = "contents_url" + case compareUrl = "compare_url" + case mergesUrl = "merges_url" + case archiveUrl = "archive_url" + case downloadsUrl = "downloads_url" + case issuesUrl = "issues_url" + case pullsUrl = "pulls_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case labelsUrl = "labels_url" + case releasesUrl = "releases_url" + case deploymentsUrl = "deployments_url" + case gitUrl = "git_url" + case sshUrl = "ssh_url" + case cloneUrl = "clone_url" + case svnUrl = "svn_url" case forks - case open_issues + case openIssues = "open_issues" case watchers case topics - case mirror_url - case has_issues - case has_projects - case has_pages - case has_wiki - case has_downloads - case has_discussions + case mirrorUrl = "mirror_url" + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasPages = "has_pages" + case hasWiki = "has_wiki" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility case license case permissions - case text_matches - case temp_clone_token - case allow_merge_commit - case allow_squash_merge - case allow_rebase_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_forking - case is_template - case web_commit_signoff_required + case textMatches = "text_matches" + case tempCloneToken = "temp_clone_token" + case allowMergeCommit = "allow_merge_commit" + case allowSquashMerge = "allow_squash_merge" + case allowRebaseMerge = "allow_rebase_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowForking = "allow_forking" + case isTemplate = "is_template" + case webCommitSignoffRequired = "web_commit_signoff_required" } } /// Topic Search Result Item /// /// - Remark: Generated from `#/components/schemas/topic-search-result-item`. - public struct topic_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct TopicSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/topic-search-result-item/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/topic-search-result-item/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/short_description`. - public var short_description: Swift.String? + public var shortDescription: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/created_by`. - public var created_by: Swift.String? + public var createdBy: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/released`. public var released: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/topic-search-result-item/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/topic-search-result-item/featured`. public var featured: Swift.Bool /// - Remark: Generated from `#/components/schemas/topic-search-result-item/curated`. @@ -4556,188 +4565,188 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/topic-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/topic-search-result-item/repository_count`. - public var repository_count: Swift.Int? + public var repositoryCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/logo_url`. - public var logo_url: Swift.String? + public var logoUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/topic-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload`. - public struct relatedPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation`. - public struct topic_relationPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation/id`. + public var textMatches: Components.Schemas.SearchResultTextMatches? + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload`. + public struct RelatedPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation`. + public struct TopicRelationPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation/name`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation/topic_id`. - public var topic_id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation/relation_type`. - public var relation_type: Swift.String? - /// Creates a new `topic_relationPayload`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation/topic_id`. + public var topicId: Swift.Int? + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation/relation_type`. + public var relationType: Swift.String? + /// Creates a new `TopicRelationPayload`. /// /// - Parameters: /// - id: /// - name: - /// - topic_id: - /// - relation_type: + /// - topicId: + /// - relationType: public init( id: Swift.Int? = nil, name: Swift.String? = nil, - topic_id: Swift.Int? = nil, - relation_type: Swift.String? = nil + topicId: Swift.Int? = nil, + relationType: Swift.String? = nil ) { self.id = id self.name = name - self.topic_id = topic_id - self.relation_type = relation_type + self.topicId = topicId + self.relationType = relationType } public enum CodingKeys: String, CodingKey { case id case name - case topic_id - case relation_type + case topicId = "topic_id" + case relationType = "relation_type" } } - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/relatedPayload/topic_relation`. - public var topic_relation: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.relatedPayloadPayload.topic_relationPayload? - /// Creates a new `relatedPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/RelatedPayload/topic_relation`. + public var topicRelation: Components.Schemas.TopicSearchResultItem.RelatedPayloadPayload.TopicRelationPayload? + /// Creates a new `RelatedPayloadPayload`. /// /// - Parameters: - /// - topic_relation: - public init(topic_relation: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.relatedPayloadPayload.topic_relationPayload? = nil) { - self.topic_relation = topic_relation + /// - topicRelation: + public init(topicRelation: Components.Schemas.TopicSearchResultItem.RelatedPayloadPayload.TopicRelationPayload? = nil) { + self.topicRelation = topicRelation } public enum CodingKeys: String, CodingKey { - case topic_relation + case topicRelation = "topic_relation" } } /// - Remark: Generated from `#/components/schemas/topic-search-result-item/related`. - public typealias relatedPayload = [Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.relatedPayloadPayload] + public typealias RelatedPayload = [Components.Schemas.TopicSearchResultItem.RelatedPayloadPayload] /// - Remark: Generated from `#/components/schemas/topic-search-result-item/related`. - public var related: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.relatedPayload? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload`. - public struct aliasesPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation`. - public struct topic_relationPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation/id`. + public var related: Components.Schemas.TopicSearchResultItem.RelatedPayload? + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload`. + public struct AliasesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation`. + public struct TopicRelationPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation/id`. public var id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation/name`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation/name`. public var name: Swift.String? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation/topic_id`. - public var topic_id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation/relation_type`. - public var relation_type: Swift.String? - /// Creates a new `topic_relationPayload`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation/topic_id`. + public var topicId: Swift.Int? + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation/relation_type`. + public var relationType: Swift.String? + /// Creates a new `TopicRelationPayload`. /// /// - Parameters: /// - id: /// - name: - /// - topic_id: - /// - relation_type: + /// - topicId: + /// - relationType: public init( id: Swift.Int? = nil, name: Swift.String? = nil, - topic_id: Swift.Int? = nil, - relation_type: Swift.String? = nil + topicId: Swift.Int? = nil, + relationType: Swift.String? = nil ) { self.id = id self.name = name - self.topic_id = topic_id - self.relation_type = relation_type + self.topicId = topicId + self.relationType = relationType } public enum CodingKeys: String, CodingKey { case id case name - case topic_id - case relation_type + case topicId = "topic_id" + case relationType = "relation_type" } } - /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliasesPayload/topic_relation`. - public var topic_relation: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.aliasesPayloadPayload.topic_relationPayload? - /// Creates a new `aliasesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/topic-search-result-item/AliasesPayload/topic_relation`. + public var topicRelation: Components.Schemas.TopicSearchResultItem.AliasesPayloadPayload.TopicRelationPayload? + /// Creates a new `AliasesPayloadPayload`. /// /// - Parameters: - /// - topic_relation: - public init(topic_relation: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.aliasesPayloadPayload.topic_relationPayload? = nil) { - self.topic_relation = topic_relation + /// - topicRelation: + public init(topicRelation: Components.Schemas.TopicSearchResultItem.AliasesPayloadPayload.TopicRelationPayload? = nil) { + self.topicRelation = topicRelation } public enum CodingKeys: String, CodingKey { - case topic_relation + case topicRelation = "topic_relation" } } /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliases`. - public typealias aliasesPayload = [Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.aliasesPayloadPayload] + public typealias AliasesPayload = [Components.Schemas.TopicSearchResultItem.AliasesPayloadPayload] /// - Remark: Generated from `#/components/schemas/topic-search-result-item/aliases`. - public var aliases: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.aliasesPayload? - /// Creates a new `topic_hyphen_search_hyphen_result_hyphen_item`. + public var aliases: Components.Schemas.TopicSearchResultItem.AliasesPayload? + /// Creates a new `TopicSearchResultItem`. /// /// - Parameters: /// - name: - /// - display_name: - /// - short_description: + /// - displayName: + /// - shortDescription: /// - description: - /// - created_by: + /// - createdBy: /// - released: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - featured: /// - curated: /// - score: - /// - repository_count: - /// - logo_url: - /// - text_matches: + /// - repositoryCount: + /// - logoUrl: + /// - textMatches: /// - related: /// - aliases: public init( name: Swift.String, - display_name: Swift.String? = nil, - short_description: Swift.String? = nil, + displayName: Swift.String? = nil, + shortDescription: Swift.String? = nil, description: Swift.String? = nil, - created_by: Swift.String? = nil, + createdBy: Swift.String? = nil, released: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, featured: Swift.Bool, curated: Swift.Bool, score: Swift.Double, - repository_count: Swift.Int? = nil, - logo_url: Swift.String? = nil, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil, - related: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.relatedPayload? = nil, - aliases: Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item.aliasesPayload? = nil + repositoryCount: Swift.Int? = nil, + logoUrl: Swift.String? = nil, + textMatches: Components.Schemas.SearchResultTextMatches? = nil, + related: Components.Schemas.TopicSearchResultItem.RelatedPayload? = nil, + aliases: Components.Schemas.TopicSearchResultItem.AliasesPayload? = nil ) { self.name = name - self.display_name = display_name - self.short_description = short_description + self.displayName = displayName + self.shortDescription = shortDescription self.description = description - self.created_by = created_by + self.createdBy = createdBy self.released = released - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.featured = featured self.curated = curated self.score = score - self.repository_count = repository_count - self.logo_url = logo_url - self.text_matches = text_matches + self.repositoryCount = repositoryCount + self.logoUrl = logoUrl + self.textMatches = textMatches self.related = related self.aliases = aliases } public enum CodingKeys: String, CodingKey { case name - case display_name - case short_description + case displayName = "display_name" + case shortDescription = "short_description" case description - case created_by + case createdBy = "created_by" case released - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case featured case curated case score - case repository_count - case logo_url - case text_matches + case repositoryCount = "repository_count" + case logoUrl = "logo_url" + case textMatches = "text_matches" case related case aliases } @@ -4745,55 +4754,55 @@ public enum Components { /// User Search Result Item /// /// - Remark: Generated from `#/components/schemas/user-search-result-item`. - public struct user_hyphen_search_hyphen_result_hyphen_item: Codable, Hashable, Sendable { + public struct UserSearchResultItem: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/user-search-result-item/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/user-search-result-item/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/score`. public var score: Swift.Double /// - Remark: Generated from `#/components/schemas/user-search-result-item/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/user-search-result-item/public_repos`. - public var public_repos: Swift.Int? + public var publicRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/user-search-result-item/public_gists`. - public var public_gists: Swift.Int? + public var publicGists: Swift.Int? /// - Remark: Generated from `#/components/schemas/user-search-result-item/followers`. public var followers: Swift.Int? /// - Remark: Generated from `#/components/schemas/user-search-result-item/following`. public var following: Swift.Int? /// - Remark: Generated from `#/components/schemas/user-search-result-item/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-search-result-item/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-search-result-item/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/bio`. @@ -4803,166 +4812,166 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/user-search-result-item/location`. public var location: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/user-search-result-item/hireable`. public var hireable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/user-search-result-item/text_matches`. - public var text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? + public var textMatches: Components.Schemas.SearchResultTextMatches? /// - Remark: Generated from `#/components/schemas/user-search-result-item/blog`. public var blog: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/company`. public var company: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/suspended_at`. - public var suspended_at: Foundation.Date? + public var suspendedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/user-search-result-item/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `user_hyphen_search_hyphen_result_hyphen_item`. + public var userViewType: Swift.String? + /// Creates a new `UserSearchResultItem`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - receivedEventsUrl: /// - _type: /// - score: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - events_url: - /// - public_repos: - /// - public_gists: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - eventsUrl: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - name: /// - bio: /// - email: /// - location: - /// - site_admin: + /// - siteAdmin: /// - hireable: - /// - text_matches: + /// - textMatches: /// - blog: /// - company: - /// - suspended_at: - /// - user_view_type: + /// - suspendedAt: + /// - userViewType: public init( login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, score: Swift.Double, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - events_url: Swift.String, - public_repos: Swift.Int? = nil, - public_gists: Swift.Int? = nil, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + eventsUrl: Swift.String, + publicRepos: Swift.Int? = nil, + publicGists: Swift.Int? = nil, followers: Swift.Int? = nil, following: Swift.Int? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, name: Swift.String? = nil, bio: Swift.String? = nil, email: Swift.String? = nil, location: Swift.String? = nil, - site_admin: Swift.Bool, + siteAdmin: Swift.Bool, hireable: Swift.Bool? = nil, - text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil, + textMatches: Components.Schemas.SearchResultTextMatches? = nil, blog: Swift.String? = nil, company: Swift.String? = nil, - suspended_at: Foundation.Date? = nil, - user_view_type: Swift.String? = nil + suspendedAt: Foundation.Date? = nil, + userViewType: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type self.score = score - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.events_url = events_url - self.public_repos = public_repos - self.public_gists = public_gists + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.eventsUrl = eventsUrl + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.name = name self.bio = bio self.email = email self.location = location - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.hireable = hireable - self.text_matches = text_matches + self.textMatches = textMatches self.blog = blog self.company = company - self.suspended_at = suspended_at - self.user_view_type = user_view_type + self.suspendedAt = suspendedAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case subscriptions_url - case organizations_url - case repos_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case receivedEventsUrl = "received_events_url" case _type = "type" case score - case following_url - case gists_url - case starred_url - case events_url - case public_repos - case public_gists + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case eventsUrl = "events_url" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case name case bio case email case location - case site_admin + case siteAdmin = "site_admin" case hireable - case text_matches + case textMatches = "text_matches" case blog case company - case suspended_at - case user_view_type + case suspendedAt = "suspended_at" + case userViewType = "user_view_type" } } } @@ -4971,15 +4980,15 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } @@ -4987,22 +4996,22 @@ public enum Components { /// Example: `http://api.github.com/search/issues?q={query}&advanced_search=true` /// /// - Remark: Generated from `#/components/parameters/issues-advanced-search`. - public typealias issues_hyphen_advanced_hyphen_search = Swift.String + public typealias IssuesAdvancedSearch = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5012,25 +5021,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -5040,29 +5049,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5072,54 +5081,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5129,12 +5138,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } @@ -5170,7 +5179,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/code`. /// - Remark: Generated from `#/paths//search/code/get(search/code)`. - public enum search_sol_code { + public enum SearchCode { public static let id: Swift.String = "search/code" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/code/GET/query`. @@ -5180,16 +5189,16 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/code/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/code/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case indexed = "indexed" } /// **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/code/GET/query/sort`. @available(*, deprecated) - public var sort: Operations.search_sol_code.Input.Query.sortPayload? + public var sort: Operations.SearchCode.Input.Query.SortPayload? /// - Remark: Generated from `#/paths/search/code/GET/query/order`. - @frozen public enum orderPayload: String, Codable, Hashable, Sendable { + @frozen public enum OrderPayload: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } @@ -5197,58 +5206,58 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/search/code/GET/query/order`. @available(*, deprecated) - public var order: Operations.search_sol_code.Input.Query.orderPayload? + public var order: Operations.SearchCode.Input.Query.OrderPayload? /// 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)." /// /// - Remark: Generated from `#/paths/search/code/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/code/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching code](https://docs.github.com/search-github/searching-on-github/searching-code)" for a detailed list of qualifiers. /// - sort: **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." public init( q: Swift.String, - sort: Operations.search_sol_code.Input.Query.sortPayload? = nil, - order: Operations.search_sol_code.Input.Query.orderPayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.SearchCode.Input.Query.SortPayload? = nil, + order: Operations.SearchCode.Input.Query.OrderPayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_code.Input.Query + public var query: Operations.SearchCode.Input.Query /// - Remark: Generated from `#/paths/search/code/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_code.Input.Headers + public var headers: Operations.SearchCode.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_code.Input.Query, - headers: Operations.search_sol_code.Input.Headers = .init() + query: Operations.SearchCode.Input.Query, + headers: Operations.SearchCode.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5259,41 +5268,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.code_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.CodeSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.code_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.CodeSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/code/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_code.Output.Ok.Body.jsonPayload) + case json(Operations.SearchCode.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_code.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchCode.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5303,12 +5312,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_code.Output.Ok.Body + public var body: Operations.SearchCode.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_code.Output.Ok.Body) { + public init(body: Operations.SearchCode.Output.Ok.Body) { self.body = body } } @@ -5317,12 +5326,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_code.Output.Ok) + case ok(Operations.SearchCode.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_code.Output.Ok { + public var ok: Operations.SearchCode.Output.Ok { get throws { switch self { case let .ok(response): @@ -5340,12 +5349,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5363,12 +5380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5386,12 +5403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5409,12 +5426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/code/get(search/code)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5471,7 +5488,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/commits`. /// - Remark: Generated from `#/paths//search/commits/get(search/commits)`. - public enum search_sol_commits { + public enum SearchCommits { public static let id: Swift.String = "search/commits" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/commits/GET/query`. @@ -5481,74 +5498,74 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/commits/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/commits/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { - case author_hyphen_date = "author-date" - case committer_hyphen_date = "committer-date" + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { + case authorDate = "author-date" + case committerDate = "committer-date" } /// Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/commits/GET/query/sort`. - public var sort: Operations.search_sol_commits.Input.Query.sortPayload? + public var sort: Operations.SearchCommits.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/commits/GET/query/order`. - public var order: Components.Parameters.order? + public var order: Components.Parameters.Order? /// 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)." /// /// - Remark: Generated from `#/paths/search/commits/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/commits/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching commits](https://docs.github.com/search-github/searching-on-github/searching-commits)" for a detailed list of qualifiers. /// - sort: Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." public init( q: Swift.String, - sort: Operations.search_sol_commits.Input.Query.sortPayload? = nil, - order: Components.Parameters.order? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.SearchCommits.Input.Query.SortPayload? = nil, + order: Components.Parameters.Order? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_commits.Input.Query + public var query: Operations.SearchCommits.Input.Query /// - Remark: Generated from `#/paths/search/commits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_commits.Input.Headers + public var headers: Operations.SearchCommits.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_commits.Input.Query, - headers: Operations.search_sol_commits.Input.Headers = .init() + query: Operations.SearchCommits.Input.Query, + headers: Operations.SearchCommits.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5559,41 +5576,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.CommitSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.commit_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.CommitSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/commits/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_commits.Output.Ok.Body.jsonPayload) + case json(Operations.SearchCommits.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_commits.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchCommits.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5603,12 +5620,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_commits.Output.Ok.Body + public var body: Operations.SearchCommits.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_commits.Output.Ok.Body) { + public init(body: Operations.SearchCommits.Output.Ok.Body) { self.body = body } } @@ -5617,12 +5634,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/commits/get(search/commits)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_commits.Output.Ok) + case ok(Operations.SearchCommits.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_commits.Output.Ok { + public var ok: Operations.SearchCommits.Output.Ok { get throws { switch self { case let .ok(response): @@ -5640,12 +5657,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/commits/get(search/commits)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/commits/get(search/commits)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5697,7 +5722,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/issues`. /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`. - public enum search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests { + public enum SearchIssuesAndPullRequests { public static let id: Swift.String = "search/issues-and-pull-requests" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/issues/GET/query`. @@ -5707,15 +5732,15 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/issues/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/issues/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case comments = "comments" case reactions = "reactions" - case reactions_hyphen__plus_1 = "reactions-+1" - case reactions_hyphen__hyphen_1 = "reactions--1" - case reactions_hyphen_smile = "reactions-smile" - case reactions_hyphen_thinking_face = "reactions-thinking_face" - case reactions_hyphen_heart = "reactions-heart" - case reactions_hyphen_tada = "reactions-tada" + case reactionsThumbsUp = "reactions-+1" + case reactionsThumbsDown = "reactions--1" + case reactionsSmile = "reactions-smile" + case reactionsThinkingFace = "reactions-thinking_face" + case reactionsHeart = "reactions-heart" + case reactionsTada = "reactions-tada" case interactions = "interactions" case created = "created" case updated = "updated" @@ -5723,75 +5748,75 @@ public enum Operations { /// Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/issues/GET/query/sort`. - public var sort: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Query.sortPayload? + public var sort: Operations.SearchIssuesAndPullRequests.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/issues/GET/query/order`. - public var order: Components.Parameters.order? + public var order: Components.Parameters.Order? /// 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)." /// /// - Remark: Generated from `#/paths/search/issues/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/issues/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Set to `true` to use advanced search. /// Example: `http://api.github.com/search/issues?q={query}&advanced_search=true` /// /// - Remark: Generated from `#/paths/search/issues/GET/query/advanced_search`. - public var advanced_search: Components.Parameters.issues_hyphen_advanced_hyphen_search? + public var advancedSearch: Components.Parameters.IssuesAdvancedSearch? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching issues and pull requests](https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests)" for a detailed list of qualifiers. /// - sort: Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." - /// - advanced_search: Set to `true` to use advanced search. + /// - advancedSearch: Set to `true` to use advanced search. public init( q: Swift.String, - sort: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Query.sortPayload? = nil, - order: Components.Parameters.order? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - advanced_search: Components.Parameters.issues_hyphen_advanced_hyphen_search? = nil + sort: Operations.SearchIssuesAndPullRequests.Input.Query.SortPayload? = nil, + order: Components.Parameters.Order? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + advancedSearch: Components.Parameters.IssuesAdvancedSearch? = nil ) { self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page - self.advanced_search = advanced_search + self.advancedSearch = advancedSearch } } - public var query: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Query + public var query: Operations.SearchIssuesAndPullRequests.Input.Query /// - Remark: Generated from `#/paths/search/issues/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Headers + public var headers: Operations.SearchIssuesAndPullRequests.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Query, - headers: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input.Headers = .init() + query: Operations.SearchIssuesAndPullRequests.Input.Query, + headers: Operations.SearchIssuesAndPullRequests.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5802,41 +5827,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.IssueSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.issue_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.IssueSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/issues/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body.jsonPayload) + case json(Operations.SearchIssuesAndPullRequests.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchIssuesAndPullRequests.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -5846,12 +5871,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body + public var body: Operations.SearchIssuesAndPullRequests.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok.Body) { + public init(body: Operations.SearchIssuesAndPullRequests.Output.Ok.Body) { self.body = body } } @@ -5860,12 +5885,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok) + case ok(Operations.SearchIssuesAndPullRequests.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output.Ok { + public var ok: Operations.SearchIssuesAndPullRequests.Output.Ok { get throws { switch self { case let .ok(response): @@ -5883,12 +5908,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -5906,12 +5931,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5929,12 +5954,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5952,12 +5985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6015,7 +6048,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/labels`. /// - Remark: Generated from `#/paths//search/labels/get(search/labels)`. - public enum search_sol_labels { + public enum SearchLabels { public static let id: Swift.String = "search/labels" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/labels/GET/query`. @@ -6023,83 +6056,83 @@ public enum Operations { /// The id of the repository. /// /// - Remark: Generated from `#/paths/search/labels/GET/query/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). /// /// - Remark: Generated from `#/paths/search/labels/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/labels/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/labels/GET/query/sort`. - public var sort: Operations.search_sol_labels.Input.Query.sortPayload? + public var sort: Operations.SearchLabels.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/labels/GET/query/order`. - public var order: Components.Parameters.order? + public var order: Components.Parameters.Order? /// 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)." /// /// - Remark: Generated from `#/paths/search/labels/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/labels/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: - /// - repository_id: The id of the repository. + /// - repositoryId: The id of the repository. /// - q: The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). /// - sort: Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." public init( - repository_id: Swift.Int, + repositoryId: Swift.Int, q: Swift.String, - sort: Operations.search_sol_labels.Input.Query.sortPayload? = nil, - order: Components.Parameters.order? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.SearchLabels.Input.Query.SortPayload? = nil, + order: Components.Parameters.Order? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.repository_id = repository_id + self.repositoryId = repositoryId self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_labels.Input.Query + public var query: Operations.SearchLabels.Input.Query /// - Remark: Generated from `#/paths/search/labels/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_labels.Input.Headers + public var headers: Operations.SearchLabels.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_labels.Input.Query, - headers: Operations.search_sol_labels.Input.Headers = .init() + query: Operations.SearchLabels.Input.Query, + headers: Operations.SearchLabels.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6110,41 +6143,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.label_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.LabelSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.label_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.LabelSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/labels/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_labels.Output.Ok.Body.jsonPayload) + case json(Operations.SearchLabels.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_labels.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchLabels.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6154,12 +6187,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_labels.Output.Ok.Body + public var body: Operations.SearchLabels.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_labels.Output.Ok.Body) { + public init(body: Operations.SearchLabels.Output.Ok.Body) { self.body = body } } @@ -6168,12 +6201,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_labels.Output.Ok) + case ok(Operations.SearchLabels.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_labels.Output.Ok { + public var ok: Operations.SearchLabels.Output.Ok { get throws { switch self { case let .ok(response): @@ -6191,12 +6224,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6214,12 +6255,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6237,12 +6278,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6260,12 +6301,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/labels/get(search/labels)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6323,7 +6364,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/repositories`. /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)`. - public enum search_sol_repos { + public enum SearchRepos { public static let id: Swift.String = "search/repos" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/repositories/GET/query`. @@ -6333,76 +6374,76 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/repositories/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/repositories/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case stars = "stars" case forks = "forks" - case help_hyphen_wanted_hyphen_issues = "help-wanted-issues" + case helpWantedIssues = "help-wanted-issues" case updated = "updated" } /// Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/repositories/GET/query/sort`. - public var sort: Operations.search_sol_repos.Input.Query.sortPayload? + public var sort: Operations.SearchRepos.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/repositories/GET/query/order`. - public var order: Components.Parameters.order? + public var order: Components.Parameters.Order? /// 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)." /// /// - Remark: Generated from `#/paths/search/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. /// - sort: Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." public init( q: Swift.String, - sort: Operations.search_sol_repos.Input.Query.sortPayload? = nil, - order: Components.Parameters.order? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.SearchRepos.Input.Query.SortPayload? = nil, + order: Components.Parameters.Order? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_repos.Input.Query + public var query: Operations.SearchRepos.Input.Query /// - Remark: Generated from `#/paths/search/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_repos.Input.Headers + public var headers: Operations.SearchRepos.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_repos.Input.Query, - headers: Operations.search_sol_repos.Input.Headers = .init() + query: Operations.SearchRepos.Input.Query, + headers: Operations.SearchRepos.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6413,41 +6454,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.repo_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.RepoSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.repo_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.RepoSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/repositories/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_repos.Output.Ok.Body.jsonPayload) + case json(Operations.SearchRepos.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_repos.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchRepos.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6457,12 +6498,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_repos.Output.Ok.Body + public var body: Operations.SearchRepos.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_repos.Output.Ok.Body) { + public init(body: Operations.SearchRepos.Output.Ok.Body) { self.body = body } } @@ -6471,12 +6512,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_repos.Output.Ok) + case ok(Operations.SearchRepos.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_repos.Output.Ok { + public var ok: Operations.SearchRepos.Output.Ok { get throws { switch self { case let .ok(response): @@ -6494,12 +6535,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -6517,12 +6558,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6540,12 +6581,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/repositories/get(search/repos)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6603,7 +6652,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/topics`. /// - Remark: Generated from `#/paths//search/topics/get(search/topics)`. - public enum search_sol_topics { + public enum SearchTopics { public static let id: Swift.String = "search/topics" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/topics/GET/query`. @@ -6615,48 +6664,48 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/search/topics/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/topics/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). - /// - 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)." + /// - perPage: 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)." public init( q: Swift.String, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.q = q - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_topics.Input.Query + public var query: Operations.SearchTopics.Input.Query /// - Remark: Generated from `#/paths/search/topics/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_topics.Input.Headers + public var headers: Operations.SearchTopics.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_topics.Input.Query, - headers: Operations.search_sol_topics.Input.Headers = .init() + query: Operations.SearchTopics.Input.Query, + headers: Operations.SearchTopics.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6667,41 +6716,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.TopicSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.topic_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.TopicSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/topics/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_topics.Output.Ok.Body.jsonPayload) + case json(Operations.SearchTopics.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_topics.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchTopics.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6711,12 +6760,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_topics.Output.Ok.Body + public var body: Operations.SearchTopics.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_topics.Output.Ok.Body) { + public init(body: Operations.SearchTopics.Output.Ok.Body) { self.body = body } } @@ -6725,12 +6774,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/topics/get(search/topics)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_topics.Output.Ok) + case ok(Operations.SearchTopics.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_topics.Output.Ok { + public var ok: Operations.SearchTopics.Output.Ok { get throws { switch self { case let .ok(response): @@ -6748,12 +6797,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/topics/get(search/topics)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/topics/get(search/topics)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6813,7 +6870,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /search/users`. /// - Remark: Generated from `#/paths//search/users/get(search/users)`. - public enum search_sol_users { + public enum SearchUsers { public static let id: Swift.String = "search/users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/users/GET/query`. @@ -6823,7 +6880,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/users/GET/query/q`. public var q: Swift.String /// - Remark: Generated from `#/paths/search/users/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case followers = "followers" case repositories = "repositories" case joined = "joined" @@ -6831,67 +6888,67 @@ public enum Operations { /// Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/users/GET/query/sort`. - public var sort: Operations.search_sol_users.Input.Query.sortPayload? + public var sort: Operations.SearchUsers.Input.Query.SortPayload? /// - Remark: Generated from `#/components/parameters/order`. - @frozen public enum order: String, Codable, Hashable, Sendable { + @frozen public enum Order: String, Codable, Hashable, Sendable, CaseIterable { case desc = "desc" case asc = "asc" } /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/users/GET/query/order`. - public var order: Components.Parameters.order? + public var order: Components.Parameters.Order? /// 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)." /// /// - Remark: Generated from `#/paths/search/users/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/search/users/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching users](https://docs.github.com/search-github/searching-on-github/searching-users)" for a detailed list of qualifiers. /// - sort: Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// - order: Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - /// - 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)." + /// - perPage: 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)." public init( q: Swift.String, - sort: Operations.search_sol_users.Input.Query.sortPayload? = nil, - order: Components.Parameters.order? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + sort: Operations.SearchUsers.Input.Query.SortPayload? = nil, + order: Components.Parameters.Order? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.q = q self.sort = sort self.order = order - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.search_sol_users.Input.Query + public var query: Operations.SearchUsers.Input.Query /// - Remark: Generated from `#/paths/search/users/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.search_sol_users.Input.Headers + public var headers: Operations.SearchUsers.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.search_sol_users.Input.Query, - headers: Operations.search_sol_users.Input.Headers = .init() + query: Operations.SearchUsers.Input.Query, + headers: Operations.SearchUsers.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6902,41 +6959,41 @@ public enum Operations { /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content/json/incomplete_results`. - public var incomplete_results: Swift.Bool + public var incompleteResults: Swift.Bool /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content/json/items`. - public var items: [Components.Schemas.user_hyphen_search_hyphen_result_hyphen_item] - /// Creates a new `jsonPayload`. + public var items: [Components.Schemas.UserSearchResultItem] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - incomplete_results: + /// - totalCount: + /// - incompleteResults: /// - items: public init( - total_count: Swift.Int, - incomplete_results: Swift.Bool, - items: [Components.Schemas.user_hyphen_search_hyphen_result_hyphen_item] + totalCount: Swift.Int, + incompleteResults: Swift.Bool, + items: [Components.Schemas.UserSearchResultItem] ) { - self.total_count = total_count - self.incomplete_results = incomplete_results + self.totalCount = totalCount + self.incompleteResults = incompleteResults self.items = items } public enum CodingKeys: String, CodingKey { - case total_count - case incomplete_results + case totalCount = "total_count" + case incompleteResults = "incomplete_results" case items } } /// - Remark: Generated from `#/paths/search/users/GET/responses/200/content/application\/json`. - case json(Operations.search_sol_users.Output.Ok.Body.jsonPayload) + case json(Operations.SearchUsers.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.search_sol_users.Output.Ok.Body.jsonPayload { + public var json: Operations.SearchUsers.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6946,12 +7003,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.search_sol_users.Output.Ok.Body + public var body: Operations.SearchUsers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.search_sol_users.Output.Ok.Body) { + public init(body: Operations.SearchUsers.Output.Ok.Body) { self.body = body } } @@ -6960,12 +7017,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/users/get(search/users)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.search_sol_users.Output.Ok) + case ok(Operations.SearchUsers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.search_sol_users.Output.Ok { + public var ok: Operations.SearchUsers.Output.Ok { get throws { switch self { case let .ok(response): @@ -6983,12 +7040,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/users/get(search/users)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//search/users/get(search/users)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7006,12 +7071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/users/get(search/users)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -7029,12 +7094,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//search/users/get(search/users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): From ae04356bbe8b5c7471228845847de57671c12246 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:05:44 -0700 Subject: [PATCH 31/46] Commit via running ake Sources/secret-scanning --- Sources/secret-scanning/Client.swift | 148 +- Sources/secret-scanning/Types.swift | 2779 +++++++++++++------------- 2 files changed, 1512 insertions(+), 1415 deletions(-) diff --git a/Sources/secret-scanning/Client.swift b/Sources/secret-scanning/Client.swift index c44ba1fa41..78ceb86188 100644 --- a/Sources/secret-scanning/Client.swift +++ b/Sources/secret-scanning/Client.swift @@ -50,10 +50,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output { + public func secretScanningListAlertsForEnterprise(_ input: Operations.SecretScanningListAlertsForEnterprise.Input) async throws -> Operations.SecretScanningListAlertsForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.SecretScanningListAlertsForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/secret-scanning/alerts", @@ -78,7 +78,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "secret_type", - value: input.query.secret_type + value: input.query.secretType ) try converter.setQueryItemAsURI( in: &request, @@ -106,7 +106,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -134,14 +134,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "is_publicly_leaked", - value: input.query.is_publicly_leaked + value: input.query.isPubliclyLeaked ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "is_multi_repo", - value: input.query.is_multi_repo + value: input.query.isMultiRepo ) converter.setAcceptHeader( in: &request.headerFields, @@ -152,13 +152,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -168,7 +168,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert].self, + [Components.Schemas.OrganizationSecretScanningAlert].self, from: responseBody, transforming: { value in .json(value) @@ -183,7 +183,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -193,7 +193,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -205,7 +205,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -215,7 +215,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -247,10 +247,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { + public func secretScanningListAlertsForOrg(_ input: Operations.SecretScanningListAlertsForOrg.Input) async throws -> Operations.SecretScanningListAlertsForOrg.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.id, + forOperation: Operations.SecretScanningListAlertsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/secret-scanning/alerts", @@ -275,7 +275,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "secret_type", - value: input.query.secret_type + value: input.query.secretType ) try converter.setQueryItemAsURI( in: &request, @@ -310,7 +310,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -338,14 +338,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "is_publicly_leaked", - value: input.query.is_publicly_leaked + value: input.query.isPubliclyLeaked ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "is_multi_repo", - value: input.query.is_multi_repo + value: input.query.isMultiRepo ) converter.setAcceptHeader( in: &request.headerFields, @@ -356,13 +356,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.SecretScanningListAlertsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.SecretScanningListAlertsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -372,7 +372,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert].self, + [Components.Schemas.OrganizationSecretScanningAlert].self, from: responseBody, transforming: { value in .json(value) @@ -387,7 +387,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -397,7 +397,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -409,7 +409,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -419,7 +419,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -451,10 +451,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { + public func secretScanningListAlertsForRepo(_ input: Operations.SecretScanningListAlertsForRepo.Input) async throws -> Operations.SecretScanningListAlertsForRepo.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.id, + forOperation: Operations.SecretScanningListAlertsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/alerts", @@ -480,7 +480,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "secret_type", - value: input.query.secret_type + value: input.query.secretType ) try converter.setQueryItemAsURI( in: &request, @@ -515,7 +515,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -543,14 +543,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "is_publicly_leaked", - value: input.query.is_publicly_leaked + value: input.query.isPubliclyLeaked ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "is_multi_repo", - value: input.query.is_multi_repo + value: input.query.isMultiRepo ) converter.setAcceptHeader( in: &request.headerFields, @@ -562,7 +562,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.SecretScanningListAlertsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -572,7 +572,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.secret_hyphen_scanning_hyphen_alert].self, + [Components.Schemas.SecretScanningAlert].self, from: responseBody, transforming: { value in .json(value) @@ -586,7 +586,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -596,7 +596,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -628,17 +628,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`. - public func secret_hyphen_scanning_sol_get_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output { + public func secretScanningGetAlert(_ input: Operations.SecretScanningGetAlert.Input) async throws -> Operations.SecretScanningGetAlert.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.id, + forOperation: Operations.SecretScanningGetAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -656,7 +656,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body + let body: Operations.SecretScanningGetAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -666,7 +666,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.secret_hyphen_scanning_hyphen_alert.self, + Components.Schemas.SecretScanningAlert.self, from: responseBody, transforming: { value in .json(value) @@ -682,7 +682,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -692,7 +692,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -724,17 +724,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)`. - public func secret_hyphen_scanning_sol_update_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output { + public func secretScanningUpdateAlert(_ input: Operations.SecretScanningUpdateAlert.Input) async throws -> Operations.SecretScanningUpdateAlert.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.id, + forOperation: Operations.SecretScanningUpdateAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/alerts/{}", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -761,7 +761,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body + let body: Operations.SecretScanningUpdateAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -771,7 +771,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.secret_hyphen_scanning_hyphen_alert.self, + Components.Schemas.SecretScanningAlert.self, from: responseBody, transforming: { value in .json(value) @@ -789,7 +789,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -799,7 +799,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -831,17 +831,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)`. - public func secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output { + public func secretScanningListLocationsForAlert(_ input: Operations.SecretScanningListLocationsForAlert.Input) async throws -> Operations.SecretScanningListLocationsForAlert.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.id, + forOperation: Operations.SecretScanningListLocationsForAlert.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/alerts/{}/locations", parameters: [ input.path.owner, input.path.repo, - input.path.alert_number + input.path.alertNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -861,7 +861,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -872,13 +872,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.SecretScanningListLocationsForAlert.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Body + let body: Operations.SecretScanningListLocationsForAlert.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -888,7 +888,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.secret_hyphen_scanning_hyphen_location].self, + [Components.Schemas.SecretScanningLocation].self, from: responseBody, transforming: { value in .json(value) @@ -905,7 +905,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -915,7 +915,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -947,10 +947,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)`. - public func secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass(_ input: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input) async throws -> Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output { + public func secretScanningCreatePushProtectionBypass(_ input: Operations.SecretScanningCreatePushProtectionBypass.Input) async throws -> Operations.SecretScanningCreatePushProtectionBypass.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.id, + forOperation: Operations.SecretScanningCreatePushProtectionBypass.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/push-protection-bypasses", @@ -983,7 +983,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Ok.Body + let body: Operations.SecretScanningCreatePushProtectionBypass.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -993,7 +993,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass.self, + Components.Schemas.SecretScanningPushProtectionBypass.self, from: responseBody, transforming: { value in .json(value) @@ -1011,7 +1011,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1021,7 +1021,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1051,10 +1051,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/scan-history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)`. - public func secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history(_ input: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output { + public func secretScanningGetScanHistory(_ input: Operations.SecretScanningGetScanHistory.Input) async throws -> Operations.SecretScanningGetScanHistory.Output { try await client.send( input: input, - forOperation: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.id, + forOperation: Operations.SecretScanningGetScanHistory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/secret-scanning/scan-history", @@ -1080,7 +1080,7 @@ public struct Client: APIProtocol { return .notFound(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1090,7 +1090,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1102,7 +1102,7 @@ public struct Client: APIProtocol { return .serviceUnavailable(.init(body: body)) case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.Ok.Body + let body: Operations.SecretScanningGetScanHistory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1112,7 +1112,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.self, + Components.Schemas.SecretScanningScanHistory.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index da46cfaf3f..61bbdaa0b9 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -23,7 +23,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)`. - func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output + func secretScanningListAlertsForEnterprise(_ input: Operations.SecretScanningListAlertsForEnterprise.Input) async throws -> Operations.SecretScanningListAlertsForEnterprise.Output /// List secret scanning alerts for an organization /// /// Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest. @@ -34,7 +34,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)`. - func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output + func secretScanningListAlertsForOrg(_ input: Operations.SecretScanningListAlertsForOrg.Input) async throws -> Operations.SecretScanningListAlertsForOrg.Output /// List secret scanning alerts for a repository /// /// Lists secret scanning alerts for an eligible repository, from newest to oldest. @@ -45,7 +45,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)`. - func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output + func secretScanningListAlertsForRepo(_ input: Operations.SecretScanningListAlertsForRepo.Input) async throws -> Operations.SecretScanningListAlertsForRepo.Output /// Get a secret scanning alert /// /// Gets a single secret scanning alert detected in an eligible repository. @@ -56,7 +56,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`. - func secret_hyphen_scanning_sol_get_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output + func secretScanningGetAlert(_ input: Operations.SecretScanningGetAlert.Input) async throws -> Operations.SecretScanningGetAlert.Output /// Update a secret scanning alert /// /// Updates the status of a secret scanning alert in an eligible repository. @@ -67,7 +67,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)`. - func secret_hyphen_scanning_sol_update_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output + func secretScanningUpdateAlert(_ input: Operations.SecretScanningUpdateAlert.Input) async throws -> Operations.SecretScanningUpdateAlert.Output /// List locations for a secret scanning alert /// /// Lists all locations for a given secret scanning alert for an eligible repository. @@ -78,7 +78,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)`. - func secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert(_ input: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output + func secretScanningListLocationsForAlert(_ input: Operations.SecretScanningListLocationsForAlert.Input) async throws -> Operations.SecretScanningListLocationsForAlert.Output /// Create a push protection bypass /// /// Creates a bypass for a previously push protected secret. @@ -89,7 +89,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)`. - func secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass(_ input: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input) async throws -> Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output + func secretScanningCreatePushProtectionBypass(_ input: Operations.SecretScanningCreatePushProtectionBypass.Input) async throws -> Operations.SecretScanningCreatePushProtectionBypass.Output /// Get secret scanning scan history for a repository /// /// Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included. @@ -98,7 +98,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/scan-history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)`. - func secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history(_ input: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output + func secretScanningGetScanHistory(_ input: Operations.SecretScanningGetScanHistory.Input) async throws -> Operations.SecretScanningGetScanHistory.Output } /// Convenience overloads for operation inputs. @@ -115,12 +115,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output { - try await secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input( + public func secretScanningListAlertsForEnterprise( + path: Operations.SecretScanningListAlertsForEnterprise.Input.Path, + query: Operations.SecretScanningListAlertsForEnterprise.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForEnterprise.Input.Headers = .init() + ) async throws -> Operations.SecretScanningListAlertsForEnterprise.Output { + try await secretScanningListAlertsForEnterprise(Operations.SecretScanningListAlertsForEnterprise.Input( path: path, query: query, headers: headers @@ -136,12 +136,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output { - try await secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input( + public func secretScanningListAlertsForOrg( + path: Operations.SecretScanningListAlertsForOrg.Input.Path, + query: Operations.SecretScanningListAlertsForOrg.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForOrg.Input.Headers = .init() + ) async throws -> Operations.SecretScanningListAlertsForOrg.Output { + try await secretScanningListAlertsForOrg(Operations.SecretScanningListAlertsForOrg.Input( path: path, query: query, headers: headers @@ -157,12 +157,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)`. - public func secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output { - try await secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input( + public func secretScanningListAlertsForRepo( + path: Operations.SecretScanningListAlertsForRepo.Input.Path, + query: Operations.SecretScanningListAlertsForRepo.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForRepo.Input.Headers = .init() + ) async throws -> Operations.SecretScanningListAlertsForRepo.Output { + try await secretScanningListAlertsForRepo(Operations.SecretScanningListAlertsForRepo.Input( path: path, query: query, headers: headers @@ -178,11 +178,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`. - public func secret_hyphen_scanning_sol_get_hyphen_alert( - path: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output { - try await secret_hyphen_scanning_sol_get_hyphen_alert(Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input( + public func secretScanningGetAlert( + path: Operations.SecretScanningGetAlert.Input.Path, + headers: Operations.SecretScanningGetAlert.Input.Headers = .init() + ) async throws -> Operations.SecretScanningGetAlert.Output { + try await secretScanningGetAlert(Operations.SecretScanningGetAlert.Input( path: path, headers: headers )) @@ -197,12 +197,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)`. - public func secret_hyphen_scanning_sol_update_hyphen_alert( - path: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Body - ) async throws -> Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output { - try await secret_hyphen_scanning_sol_update_hyphen_alert(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input( + public func secretScanningUpdateAlert( + path: Operations.SecretScanningUpdateAlert.Input.Path, + headers: Operations.SecretScanningUpdateAlert.Input.Headers = .init(), + body: Operations.SecretScanningUpdateAlert.Input.Body + ) async throws -> Operations.SecretScanningUpdateAlert.Output { + try await secretScanningUpdateAlert(Operations.SecretScanningUpdateAlert.Input( path: path, headers: headers, body: body @@ -218,12 +218,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)`. - public func secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output { - try await secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert(Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input( + public func secretScanningListLocationsForAlert( + path: Operations.SecretScanningListLocationsForAlert.Input.Path, + query: Operations.SecretScanningListLocationsForAlert.Input.Query = .init(), + headers: Operations.SecretScanningListLocationsForAlert.Input.Headers = .init() + ) async throws -> Operations.SecretScanningListLocationsForAlert.Output { + try await secretScanningListLocationsForAlert(Operations.SecretScanningListLocationsForAlert.Input( path: path, query: query, headers: headers @@ -239,12 +239,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)`. - public func secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass( - path: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Body - ) async throws -> Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output { - try await secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input( + public func secretScanningCreatePushProtectionBypass( + path: Operations.SecretScanningCreatePushProtectionBypass.Input.Path, + headers: Operations.SecretScanningCreatePushProtectionBypass.Input.Headers = .init(), + body: Operations.SecretScanningCreatePushProtectionBypass.Input.Body + ) async throws -> Operations.SecretScanningCreatePushProtectionBypass.Output { + try await secretScanningCreatePushProtectionBypass(Operations.SecretScanningCreatePushProtectionBypass.Input( path: path, headers: headers, body: body @@ -258,11 +258,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/scan-history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)`. - public func secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history( - path: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Headers = .init() - ) async throws -> Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output { - try await secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history(Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input( + public func secretScanningGetScanHistory( + path: Operations.SecretScanningGetScanHistory.Input.Path, + headers: Operations.SecretScanningGetScanHistory.Input.Headers = .init() + ) async throws -> Operations.SecretScanningGetScanHistory.Output { + try await secretScanningGetScanHistory(Operations.SecretScanningGetScanHistory.Input( path: path, headers: headers )) @@ -271,6 +271,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -286,7 +295,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -296,171 +305,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -468,7 +477,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -478,142 +487,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// A GitHub repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository`. - public struct simple_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/id`. @@ -621,7 +630,7 @@ public enum Components { /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/name`. @@ -629,9 +638,9 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/simple-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-repository/private`. @@ -639,7 +648,7 @@ public enum Components { /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The repository description. /// /// - Remark: Generated from `#/components/schemas/simple-repository/description`. @@ -655,449 +664,449 @@ public enum Components { /// A template for the API URL to download the repository as an archive. /// /// - Remark: Generated from `#/components/schemas/simple-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// A template for the API URL to list the available assignees for issues in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git blob in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// A template for the API URL to get information about branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// A template for the API URL to get information about collaborators of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// A template for the API URL to get information about comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// A template for the API URL to get information about commits on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// A template for the API URL to compare two commits or refs. /// /// - Remark: Generated from `#/components/schemas/simple-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// A template for the API URL to get the contents of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// A template for the API URL to list the contributors to the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// The API URL to list the deployments of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// The API URL to list the downloads on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// The API URL to list the events of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// The API URL to list the forks of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// A template for the API URL to get information about Git commits of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// A template for the API URL to get information about Git refs of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// A template for the API URL to get information about Git tags of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// A template for the API URL to get information about issue comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// A template for the API URL to get information about issue events on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// A template for the API URL to get information about issues on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// A template for the API URL to get information about deploy keys on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// A template for the API URL to get information about labels of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// The API URL to get information about the languages of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// The API URL to merge branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// A template for the API URL to get information about milestones of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// A template for the API URL to get information about notifications on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// A template for the API URL to get information about pull requests on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// A template for the API URL to get information about releases on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// The API URL to list the stargazers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// A template for the API URL to get information about statuses of a commit. /// /// - Remark: Generated from `#/components/schemas/simple-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// The API URL to list the subscribers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// The API URL to subscribe to notifications for this repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// The API URL to get information about tags on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// The API URL to list the teams on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git tree of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// The API URL to list the hooks on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/hooks_url`. - public var hooks_url: Swift.String - /// Creates a new `simple_hyphen_repository`. + public var hooksUrl: Swift.String + /// Creates a new `SimpleRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - node_id: The GraphQL identifier of the repository. + /// - nodeId: The GraphQL identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - owner: /// - _private: Whether the repository is private. - /// - html_url: The URL to view the repository on GitHub.com. + /// - htmlUrl: The URL to view the repository on GitHub.com. /// - description: The repository description. /// - fork: Whether the repository is a fork. /// - url: The URL to get more information about the repository from the GitHub API. - /// - archive_url: A template for the API URL to download the repository as an archive. - /// - assignees_url: A template for the API URL to list the available assignees for issues in the repository. - /// - blobs_url: A template for the API URL to create or retrieve a raw Git blob in the repository. - /// - branches_url: A template for the API URL to get information about branches in the repository. - /// - collaborators_url: A template for the API URL to get information about collaborators of the repository. - /// - comments_url: A template for the API URL to get information about comments on the repository. - /// - commits_url: A template for the API URL to get information about commits on the repository. - /// - compare_url: A template for the API URL to compare two commits or refs. - /// - contents_url: A template for the API URL to get the contents of the repository. - /// - contributors_url: A template for the API URL to list the contributors to the repository. - /// - deployments_url: The API URL to list the deployments of the repository. - /// - downloads_url: The API URL to list the downloads on the repository. - /// - events_url: The API URL to list the events of the repository. - /// - forks_url: The API URL to list the forks of the repository. - /// - git_commits_url: A template for the API URL to get information about Git commits of the repository. - /// - git_refs_url: A template for the API URL to get information about Git refs of the repository. - /// - git_tags_url: A template for the API URL to get information about Git tags of the repository. - /// - issue_comment_url: A template for the API URL to get information about issue comments on the repository. - /// - issue_events_url: A template for the API URL to get information about issue events on the repository. - /// - issues_url: A template for the API URL to get information about issues on the repository. - /// - keys_url: A template for the API URL to get information about deploy keys on the repository. - /// - labels_url: A template for the API URL to get information about labels of the repository. - /// - languages_url: The API URL to get information about the languages of the repository. - /// - merges_url: The API URL to merge branches in the repository. - /// - milestones_url: A template for the API URL to get information about milestones of the repository. - /// - notifications_url: A template for the API URL to get information about notifications on the repository. - /// - pulls_url: A template for the API URL to get information about pull requests on the repository. - /// - releases_url: A template for the API URL to get information about releases on the repository. - /// - stargazers_url: The API URL to list the stargazers on the repository. - /// - statuses_url: A template for the API URL to get information about statuses of a commit. - /// - subscribers_url: The API URL to list the subscribers on the repository. - /// - subscription_url: The API URL to subscribe to notifications for this repository. - /// - tags_url: The API URL to get information about tags on the repository. - /// - teams_url: The API URL to list the teams on the repository. - /// - trees_url: A template for the API URL to create or retrieve a raw Git tree of the repository. - /// - hooks_url: The API URL to list the hooks on the repository. + /// - archiveUrl: A template for the API URL to download the repository as an archive. + /// - assigneesUrl: A template for the API URL to list the available assignees for issues in the repository. + /// - blobsUrl: A template for the API URL to create or retrieve a raw Git blob in the repository. + /// - branchesUrl: A template for the API URL to get information about branches in the repository. + /// - collaboratorsUrl: A template for the API URL to get information about collaborators of the repository. + /// - commentsUrl: A template for the API URL to get information about comments on the repository. + /// - commitsUrl: A template for the API URL to get information about commits on the repository. + /// - compareUrl: A template for the API URL to compare two commits or refs. + /// - contentsUrl: A template for the API URL to get the contents of the repository. + /// - contributorsUrl: A template for the API URL to list the contributors to the repository. + /// - deploymentsUrl: The API URL to list the deployments of the repository. + /// - downloadsUrl: The API URL to list the downloads on the repository. + /// - eventsUrl: The API URL to list the events of the repository. + /// - forksUrl: The API URL to list the forks of the repository. + /// - gitCommitsUrl: A template for the API URL to get information about Git commits of the repository. + /// - gitRefsUrl: A template for the API URL to get information about Git refs of the repository. + /// - gitTagsUrl: A template for the API URL to get information about Git tags of the repository. + /// - issueCommentUrl: A template for the API URL to get information about issue comments on the repository. + /// - issueEventsUrl: A template for the API URL to get information about issue events on the repository. + /// - issuesUrl: A template for the API URL to get information about issues on the repository. + /// - keysUrl: A template for the API URL to get information about deploy keys on the repository. + /// - labelsUrl: A template for the API URL to get information about labels of the repository. + /// - languagesUrl: The API URL to get information about the languages of the repository. + /// - mergesUrl: The API URL to merge branches in the repository. + /// - milestonesUrl: A template for the API URL to get information about milestones of the repository. + /// - notificationsUrl: A template for the API URL to get information about notifications on the repository. + /// - pullsUrl: A template for the API URL to get information about pull requests on the repository. + /// - releasesUrl: A template for the API URL to get information about releases on the repository. + /// - stargazersUrl: The API URL to list the stargazers on the repository. + /// - statusesUrl: A template for the API URL to get information about statuses of a commit. + /// - subscribersUrl: The API URL to list the subscribers on the repository. + /// - subscriptionUrl: The API URL to subscribe to notifications for this repository. + /// - tagsUrl: The API URL to get information about tags on the repository. + /// - teamsUrl: The API URL to list the teams on the repository. + /// - treesUrl: A template for the API URL to create or retrieve a raw Git tree of the repository. + /// - hooksUrl: The API URL to list the hooks on the repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - hooks_url: Swift.String + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + hooksUrl: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.hooks_url = hooks_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.hooksUrl = hooksUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case hooks_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case hooksUrl = "hooks_url" } } /// The security alert number. /// /// - Remark: Generated from `#/components/schemas/alert-number`. - public typealias alert_hyphen_number = Swift.Int + public typealias AlertNumber = Swift.Int /// The REST API URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-url`. - public typealias alert_hyphen_url = Swift.String + public typealias AlertUrl = Swift.String /// The GitHub URL of the alert resource. /// /// - Remark: Generated from `#/components/schemas/alert-html-url`. - public typealias alert_hyphen_html_hyphen_url = Swift.String + public typealias AlertHtmlUrl = Swift.String /// The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/alert-created-at`. - public typealias alert_hyphen_created_hyphen_at = Foundation.Date + public typealias AlertCreatedAt = Foundation.Date /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/nullable-alert-updated-at`. - public typealias nullable_hyphen_alert_hyphen_updated_hyphen_at = Foundation.Date + public typealias NullableAlertUpdatedAt = Foundation.Date /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert-state`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case resolved = "resolved" } /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert-resolution`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_resolution: String, Codable, Hashable, Sendable { - case false_positive = "false_positive" - case wont_fix = "wont_fix" + @frozen public enum SecretScanningAlertResolution: String, Codable, Hashable, Sendable, CaseIterable { + case falsePositive = "false_positive" + case wontFix = "wont_fix" case revoked = "revoked" - case used_in_tests = "used_in_tests" + case usedInTests = "used_in_tests" } /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert`. - public struct organization_hyphen_secret_hyphen_scanning_hyphen_alert: Codable, Hashable, Sendable { + public struct OrganizationSecretScanningAlert: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/number`. - public var number: Components.Schemas.alert_hyphen_number? + public var number: Components.Schemas.AlertNumber? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at? + public var createdAt: Components.Schemas.AlertCreatedAt? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/updated_at`. - public var updated_at: Components.Schemas.nullable_hyphen_alert_hyphen_updated_hyphen_at? + public var updatedAt: Components.Schemas.NullableAlertUpdatedAt? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/url`. - public var url: Components.Schemas.alert_hyphen_url? + public var url: Components.Schemas.AlertUrl? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url? + public var htmlUrl: Components.Schemas.AlertHtmlUrl? /// The REST API URL of the code locations for this alert. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/locations_url`. - public var locations_url: Swift.String? + public var locationsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/state`. - public var state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.SecretScanningAlertState? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/resolution`. - public var resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Schemas.SecretScanningAlertResolution? /// The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/resolved_at`. - public var resolved_at: Foundation.Date? + public var resolvedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/resolved_by`. - public var resolved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var resolvedBy: Components.Schemas.NullableSimpleUser? /// The type of secret that secret scanning detected. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/secret_type`. - public var secret_type: Swift.String? + public var secretType: Swift.String? /// User-friendly name for the detected secret, matching the `secret_type`. /// For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/secret_type_display_name`. - public var secret_type_display_name: Swift.String? + public var secretTypeDisplayName: Swift.String? /// The secret that was detected. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/secret`. public var secret: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/repository`. - public var repository: Components.Schemas.simple_hyphen_repository? + public var repository: Components.Schemas.SimpleRepository? /// Whether push protection was bypassed for the detected secret. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypassed`. - public var push_protection_bypassed: Swift.Bool? + public var pushProtectionBypassed: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypassed_by`. - public var push_protection_bypassed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var pushProtectionBypassedBy: Components.Schemas.NullableSimpleUser? /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypassed_at`. - public var push_protection_bypassed_at: Foundation.Date? + public var pushProtectionBypassedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypass_request_reviewer`. - public var push_protection_bypass_request_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var pushProtectionBypassRequestReviewer: Components.Schemas.NullableSimpleUser? /// An optional comment when reviewing a push protection bypass. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypass_request_reviewer_comment`. - public var push_protection_bypass_request_reviewer_comment: Swift.String? + public var pushProtectionBypassRequestReviewerComment: Swift.String? /// An optional comment when requesting a push protection bypass. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypass_request_comment`. - public var push_protection_bypass_request_comment: Swift.String? + public var pushProtectionBypassRequestComment: Swift.String? /// The URL to a push protection bypass request. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/push_protection_bypass_request_html_url`. - public var push_protection_bypass_request_html_url: Swift.String? + public var pushProtectionBypassRequestHtmlUrl: Swift.String? /// The comment that was optionally added when this alert was closed /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/resolution_comment`. - public var resolution_comment: Swift.String? + public var resolutionComment: Swift.String? /// The token status as of the latest validity check. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/validity`. - @frozen public enum validityPayload: String, Codable, Hashable, Sendable { + @frozen public enum ValidityPayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case inactive = "inactive" case unknown = "unknown" @@ -1105,175 +1114,175 @@ public enum Components { /// The token status as of the latest validity check. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/validity`. - public var validity: Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert.validityPayload? + public var validity: Components.Schemas.OrganizationSecretScanningAlert.ValidityPayload? /// Whether the secret was publicly leaked. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/publicly_leaked`. - public var publicly_leaked: Swift.Bool? + public var publiclyLeaked: Swift.Bool? /// Whether the detected secret was found in multiple repositories in the same organization or enterprise. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/multi_repo`. - public var multi_repo: Swift.Bool? + public var multiRepo: Swift.Bool? /// A boolean value representing whether or not alert is base64 encoded /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/is_base64_encoded`. - public var is_base64_encoded: Swift.Bool? - /// Creates a new `organization_hyphen_secret_hyphen_scanning_hyphen_alert`. + public var isBase64Encoded: Swift.Bool? + /// Creates a new `OrganizationSecretScanningAlert`. /// /// - Parameters: /// - number: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - locations_url: The REST API URL of the code locations for this alert. + /// - htmlUrl: + /// - locationsUrl: The REST API URL of the code locations for this alert. /// - state: /// - resolution: - /// - resolved_at: The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - resolved_by: - /// - secret_type: The type of secret that secret scanning detected. - /// - secret_type_display_name: User-friendly name for the detected secret, matching the `secret_type`. + /// - resolvedAt: The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - resolvedBy: + /// - secretType: The type of secret that secret scanning detected. + /// - secretTypeDisplayName: User-friendly name for the detected secret, matching the `secret_type`. /// - secret: The secret that was detected. /// - repository: - /// - push_protection_bypassed: Whether push protection was bypassed for the detected secret. - /// - push_protection_bypassed_by: - /// - push_protection_bypassed_at: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - push_protection_bypass_request_reviewer: - /// - push_protection_bypass_request_reviewer_comment: An optional comment when reviewing a push protection bypass. - /// - push_protection_bypass_request_comment: An optional comment when requesting a push protection bypass. - /// - push_protection_bypass_request_html_url: The URL to a push protection bypass request. - /// - resolution_comment: The comment that was optionally added when this alert was closed + /// - pushProtectionBypassed: Whether push protection was bypassed for the detected secret. + /// - pushProtectionBypassedBy: + /// - pushProtectionBypassedAt: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - pushProtectionBypassRequestReviewer: + /// - pushProtectionBypassRequestReviewerComment: An optional comment when reviewing a push protection bypass. + /// - pushProtectionBypassRequestComment: An optional comment when requesting a push protection bypass. + /// - pushProtectionBypassRequestHtmlUrl: The URL to a push protection bypass request. + /// - resolutionComment: The comment that was optionally added when this alert was closed /// - validity: The token status as of the latest validity check. - /// - publicly_leaked: Whether the secret was publicly leaked. - /// - multi_repo: Whether the detected secret was found in multiple repositories in the same organization or enterprise. - /// - is_base64_encoded: A boolean value representing whether or not alert is base64 encoded + /// - publiclyLeaked: Whether the secret was publicly leaked. + /// - multiRepo: Whether the detected secret was found in multiple repositories in the same organization or enterprise. + /// - isBase64Encoded: A boolean value representing whether or not alert is base64 encoded public init( - number: Components.Schemas.alert_hyphen_number? = nil, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at? = nil, - updated_at: Components.Schemas.nullable_hyphen_alert_hyphen_updated_hyphen_at? = nil, - url: Components.Schemas.alert_hyphen_url? = nil, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url? = nil, - locations_url: Swift.String? = nil, - state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - resolved_at: Foundation.Date? = nil, - resolved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - secret_type: Swift.String? = nil, - secret_type_display_name: Swift.String? = nil, + number: Components.Schemas.AlertNumber? = nil, + createdAt: Components.Schemas.AlertCreatedAt? = nil, + updatedAt: Components.Schemas.NullableAlertUpdatedAt? = nil, + url: Components.Schemas.AlertUrl? = nil, + htmlUrl: Components.Schemas.AlertHtmlUrl? = nil, + locationsUrl: Swift.String? = nil, + state: Components.Schemas.SecretScanningAlertState? = nil, + resolution: Components.Schemas.SecretScanningAlertResolution? = nil, + resolvedAt: Foundation.Date? = nil, + resolvedBy: Components.Schemas.NullableSimpleUser? = nil, + secretType: Swift.String? = nil, + secretTypeDisplayName: Swift.String? = nil, secret: Swift.String? = nil, - repository: Components.Schemas.simple_hyphen_repository? = nil, - push_protection_bypassed: Swift.Bool? = nil, - push_protection_bypassed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - push_protection_bypassed_at: Foundation.Date? = nil, - push_protection_bypass_request_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - push_protection_bypass_request_reviewer_comment: Swift.String? = nil, - push_protection_bypass_request_comment: Swift.String? = nil, - push_protection_bypass_request_html_url: Swift.String? = nil, - resolution_comment: Swift.String? = nil, - validity: Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert.validityPayload? = nil, - publicly_leaked: Swift.Bool? = nil, - multi_repo: Swift.Bool? = nil, - is_base64_encoded: Swift.Bool? = nil + repository: Components.Schemas.SimpleRepository? = nil, + pushProtectionBypassed: Swift.Bool? = nil, + pushProtectionBypassedBy: Components.Schemas.NullableSimpleUser? = nil, + pushProtectionBypassedAt: Foundation.Date? = nil, + pushProtectionBypassRequestReviewer: Components.Schemas.NullableSimpleUser? = nil, + pushProtectionBypassRequestReviewerComment: Swift.String? = nil, + pushProtectionBypassRequestComment: Swift.String? = nil, + pushProtectionBypassRequestHtmlUrl: Swift.String? = nil, + resolutionComment: Swift.String? = nil, + validity: Components.Schemas.OrganizationSecretScanningAlert.ValidityPayload? = nil, + publiclyLeaked: Swift.Bool? = nil, + multiRepo: Swift.Bool? = nil, + isBase64Encoded: Swift.Bool? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.locations_url = locations_url + self.htmlUrl = htmlUrl + self.locationsUrl = locationsUrl self.state = state self.resolution = resolution - self.resolved_at = resolved_at - self.resolved_by = resolved_by - self.secret_type = secret_type - self.secret_type_display_name = secret_type_display_name + self.resolvedAt = resolvedAt + self.resolvedBy = resolvedBy + self.secretType = secretType + self.secretTypeDisplayName = secretTypeDisplayName self.secret = secret self.repository = repository - self.push_protection_bypassed = push_protection_bypassed - self.push_protection_bypassed_by = push_protection_bypassed_by - self.push_protection_bypassed_at = push_protection_bypassed_at - self.push_protection_bypass_request_reviewer = push_protection_bypass_request_reviewer - self.push_protection_bypass_request_reviewer_comment = push_protection_bypass_request_reviewer_comment - self.push_protection_bypass_request_comment = push_protection_bypass_request_comment - self.push_protection_bypass_request_html_url = push_protection_bypass_request_html_url - self.resolution_comment = resolution_comment + self.pushProtectionBypassed = pushProtectionBypassed + self.pushProtectionBypassedBy = pushProtectionBypassedBy + self.pushProtectionBypassedAt = pushProtectionBypassedAt + self.pushProtectionBypassRequestReviewer = pushProtectionBypassRequestReviewer + self.pushProtectionBypassRequestReviewerComment = pushProtectionBypassRequestReviewerComment + self.pushProtectionBypassRequestComment = pushProtectionBypassRequestComment + self.pushProtectionBypassRequestHtmlUrl = pushProtectionBypassRequestHtmlUrl + self.resolutionComment = resolutionComment self.validity = validity - self.publicly_leaked = publicly_leaked - self.multi_repo = multi_repo - self.is_base64_encoded = is_base64_encoded + self.publiclyLeaked = publiclyLeaked + self.multiRepo = multiRepo + self.isBase64Encoded = isBase64Encoded } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case locations_url + case htmlUrl = "html_url" + case locationsUrl = "locations_url" case state case resolution - case resolved_at - case resolved_by - case secret_type - case secret_type_display_name + case resolvedAt = "resolved_at" + case resolvedBy = "resolved_by" + case secretType = "secret_type" + case secretTypeDisplayName = "secret_type_display_name" case secret case repository - case push_protection_bypassed - case push_protection_bypassed_by - case push_protection_bypassed_at - case push_protection_bypass_request_reviewer - case push_protection_bypass_request_reviewer_comment - case push_protection_bypass_request_comment - case push_protection_bypass_request_html_url - case resolution_comment + case pushProtectionBypassed = "push_protection_bypassed" + case pushProtectionBypassedBy = "push_protection_bypassed_by" + case pushProtectionBypassedAt = "push_protection_bypassed_at" + case pushProtectionBypassRequestReviewer = "push_protection_bypass_request_reviewer" + case pushProtectionBypassRequestReviewerComment = "push_protection_bypass_request_reviewer_comment" + case pushProtectionBypassRequestComment = "push_protection_bypass_request_comment" + case pushProtectionBypassRequestHtmlUrl = "push_protection_bypass_request_html_url" + case resolutionComment = "resolution_comment" case validity - case publicly_leaked - case multi_repo - case is_base64_encoded + case publiclyLeaked = "publicly_leaked" + case multiRepo = "multi_repo" + case isBase64Encoded = "is_base64_encoded" } } /// The ID of the push protection bypass placeholder. This value is returned on any push protected routes. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass-placeholder-id`. - public typealias secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id = Swift.String + public typealias SecretScanningPushProtectionBypassPlaceholderId = Swift.String /// - Remark: Generated from `#/components/schemas/secret-scanning-alert`. - public struct secret_hyphen_scanning_hyphen_alert: Codable, Hashable, Sendable { + public struct SecretScanningAlert: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/number`. - public var number: Components.Schemas.alert_hyphen_number? + public var number: Components.Schemas.AlertNumber? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/created_at`. - public var created_at: Components.Schemas.alert_hyphen_created_hyphen_at? + public var createdAt: Components.Schemas.AlertCreatedAt? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/updated_at`. - public var updated_at: Components.Schemas.nullable_hyphen_alert_hyphen_updated_hyphen_at? + public var updatedAt: Components.Schemas.NullableAlertUpdatedAt? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/url`. - public var url: Components.Schemas.alert_hyphen_url? + public var url: Components.Schemas.AlertUrl? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/html_url`. - public var html_url: Components.Schemas.alert_hyphen_html_hyphen_url? + public var htmlUrl: Components.Schemas.AlertHtmlUrl? /// The REST API URL of the code locations for this alert. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/locations_url`. - public var locations_url: Swift.String? + public var locationsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/state`. - public var state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Schemas.SecretScanningAlertState? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/resolution`. - public var resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Schemas.SecretScanningAlertResolution? /// The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/resolved_at`. - public var resolved_at: Foundation.Date? + public var resolvedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/resolved_by`. - public var resolved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var resolvedBy: Components.Schemas.NullableSimpleUser? /// An optional comment to resolve an alert. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/resolution_comment`. - public var resolution_comment: Swift.String? + public var resolutionComment: Swift.String? /// The type of secret that secret scanning detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/secret_type`. - public var secret_type: Swift.String? + public var secretType: Swift.String? /// User-friendly name for the detected secret, matching the `secret_type`. /// For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/secret_type_display_name`. - public var secret_type_display_name: Swift.String? + public var secretTypeDisplayName: Swift.String? /// The secret that was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/secret`. @@ -1281,31 +1290,31 @@ public enum Components { /// Whether push protection was bypassed for the detected secret. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypassed`. - public var push_protection_bypassed: Swift.Bool? + public var pushProtectionBypassed: Swift.Bool? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypassed_by`. - public var push_protection_bypassed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var pushProtectionBypassedBy: Components.Schemas.NullableSimpleUser? /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypassed_at`. - public var push_protection_bypassed_at: Foundation.Date? + public var pushProtectionBypassedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypass_request_reviewer`. - public var push_protection_bypass_request_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var pushProtectionBypassRequestReviewer: Components.Schemas.NullableSimpleUser? /// An optional comment when reviewing a push protection bypass. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypass_request_reviewer_comment`. - public var push_protection_bypass_request_reviewer_comment: Swift.String? + public var pushProtectionBypassRequestReviewerComment: Swift.String? /// An optional comment when requesting a push protection bypass. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypass_request_comment`. - public var push_protection_bypass_request_comment: Swift.String? + public var pushProtectionBypassRequestComment: Swift.String? /// The URL to a push protection bypass request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/push_protection_bypass_request_html_url`. - public var push_protection_bypass_request_html_url: Swift.String? + public var pushProtectionBypassRequestHtmlUrl: Swift.String? /// The token status as of the latest validity check. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/validity`. - @frozen public enum validityPayload: String, Codable, Hashable, Sendable { + @frozen public enum ValidityPayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case inactive = "inactive" case unknown = "unknown" @@ -1313,136 +1322,136 @@ public enum Components { /// The token status as of the latest validity check. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/validity`. - public var validity: Components.Schemas.secret_hyphen_scanning_hyphen_alert.validityPayload? + public var validity: Components.Schemas.SecretScanningAlert.ValidityPayload? /// Whether the detected secret was publicly leaked. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/publicly_leaked`. - public var publicly_leaked: Swift.Bool? + public var publiclyLeaked: Swift.Bool? /// Whether the detected secret was found in multiple repositories under the same organization or enterprise. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/multi_repo`. - public var multi_repo: Swift.Bool? + public var multiRepo: Swift.Bool? /// A boolean value representing whether or not alert is base64 encoded /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/is_base64_encoded`. - public var is_base64_encoded: Swift.Bool? - /// Creates a new `secret_hyphen_scanning_hyphen_alert`. + public var isBase64Encoded: Swift.Bool? + /// Creates a new `SecretScanningAlert`. /// /// - Parameters: /// - number: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - url: - /// - html_url: - /// - locations_url: The REST API URL of the code locations for this alert. + /// - htmlUrl: + /// - locationsUrl: The REST API URL of the code locations for this alert. /// - state: /// - resolution: - /// - resolved_at: The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - resolved_by: - /// - resolution_comment: An optional comment to resolve an alert. - /// - secret_type: The type of secret that secret scanning detected. - /// - secret_type_display_name: User-friendly name for the detected secret, matching the `secret_type`. + /// - resolvedAt: The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - resolvedBy: + /// - resolutionComment: An optional comment to resolve an alert. + /// - secretType: The type of secret that secret scanning detected. + /// - secretTypeDisplayName: User-friendly name for the detected secret, matching the `secret_type`. /// - secret: The secret that was detected. - /// - push_protection_bypassed: Whether push protection was bypassed for the detected secret. - /// - push_protection_bypassed_by: - /// - push_protection_bypassed_at: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - push_protection_bypass_request_reviewer: - /// - push_protection_bypass_request_reviewer_comment: An optional comment when reviewing a push protection bypass. - /// - push_protection_bypass_request_comment: An optional comment when requesting a push protection bypass. - /// - push_protection_bypass_request_html_url: The URL to a push protection bypass request. + /// - pushProtectionBypassed: Whether push protection was bypassed for the detected secret. + /// - pushProtectionBypassedBy: + /// - pushProtectionBypassedAt: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - pushProtectionBypassRequestReviewer: + /// - pushProtectionBypassRequestReviewerComment: An optional comment when reviewing a push protection bypass. + /// - pushProtectionBypassRequestComment: An optional comment when requesting a push protection bypass. + /// - pushProtectionBypassRequestHtmlUrl: The URL to a push protection bypass request. /// - validity: The token status as of the latest validity check. - /// - publicly_leaked: Whether the detected secret was publicly leaked. - /// - multi_repo: Whether the detected secret was found in multiple repositories under the same organization or enterprise. - /// - is_base64_encoded: A boolean value representing whether or not alert is base64 encoded + /// - publiclyLeaked: Whether the detected secret was publicly leaked. + /// - multiRepo: Whether the detected secret was found in multiple repositories under the same organization or enterprise. + /// - isBase64Encoded: A boolean value representing whether or not alert is base64 encoded public init( - number: Components.Schemas.alert_hyphen_number? = nil, - created_at: Components.Schemas.alert_hyphen_created_hyphen_at? = nil, - updated_at: Components.Schemas.nullable_hyphen_alert_hyphen_updated_hyphen_at? = nil, - url: Components.Schemas.alert_hyphen_url? = nil, - html_url: Components.Schemas.alert_hyphen_html_hyphen_url? = nil, - locations_url: Swift.String? = nil, - state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - resolved_at: Foundation.Date? = nil, - resolved_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - resolution_comment: Swift.String? = nil, - secret_type: Swift.String? = nil, - secret_type_display_name: Swift.String? = nil, + number: Components.Schemas.AlertNumber? = nil, + createdAt: Components.Schemas.AlertCreatedAt? = nil, + updatedAt: Components.Schemas.NullableAlertUpdatedAt? = nil, + url: Components.Schemas.AlertUrl? = nil, + htmlUrl: Components.Schemas.AlertHtmlUrl? = nil, + locationsUrl: Swift.String? = nil, + state: Components.Schemas.SecretScanningAlertState? = nil, + resolution: Components.Schemas.SecretScanningAlertResolution? = nil, + resolvedAt: Foundation.Date? = nil, + resolvedBy: Components.Schemas.NullableSimpleUser? = nil, + resolutionComment: Swift.String? = nil, + secretType: Swift.String? = nil, + secretTypeDisplayName: Swift.String? = nil, secret: Swift.String? = nil, - push_protection_bypassed: Swift.Bool? = nil, - push_protection_bypassed_by: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - push_protection_bypassed_at: Foundation.Date? = nil, - push_protection_bypass_request_reviewer: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - push_protection_bypass_request_reviewer_comment: Swift.String? = nil, - push_protection_bypass_request_comment: Swift.String? = nil, - push_protection_bypass_request_html_url: Swift.String? = nil, - validity: Components.Schemas.secret_hyphen_scanning_hyphen_alert.validityPayload? = nil, - publicly_leaked: Swift.Bool? = nil, - multi_repo: Swift.Bool? = nil, - is_base64_encoded: Swift.Bool? = nil + pushProtectionBypassed: Swift.Bool? = nil, + pushProtectionBypassedBy: Components.Schemas.NullableSimpleUser? = nil, + pushProtectionBypassedAt: Foundation.Date? = nil, + pushProtectionBypassRequestReviewer: Components.Schemas.NullableSimpleUser? = nil, + pushProtectionBypassRequestReviewerComment: Swift.String? = nil, + pushProtectionBypassRequestComment: Swift.String? = nil, + pushProtectionBypassRequestHtmlUrl: Swift.String? = nil, + validity: Components.Schemas.SecretScanningAlert.ValidityPayload? = nil, + publiclyLeaked: Swift.Bool? = nil, + multiRepo: Swift.Bool? = nil, + isBase64Encoded: Swift.Bool? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.url = url - self.html_url = html_url - self.locations_url = locations_url + self.htmlUrl = htmlUrl + self.locationsUrl = locationsUrl self.state = state self.resolution = resolution - self.resolved_at = resolved_at - self.resolved_by = resolved_by - self.resolution_comment = resolution_comment - self.secret_type = secret_type - self.secret_type_display_name = secret_type_display_name + self.resolvedAt = resolvedAt + self.resolvedBy = resolvedBy + self.resolutionComment = resolutionComment + self.secretType = secretType + self.secretTypeDisplayName = secretTypeDisplayName self.secret = secret - self.push_protection_bypassed = push_protection_bypassed - self.push_protection_bypassed_by = push_protection_bypassed_by - self.push_protection_bypassed_at = push_protection_bypassed_at - self.push_protection_bypass_request_reviewer = push_protection_bypass_request_reviewer - self.push_protection_bypass_request_reviewer_comment = push_protection_bypass_request_reviewer_comment - self.push_protection_bypass_request_comment = push_protection_bypass_request_comment - self.push_protection_bypass_request_html_url = push_protection_bypass_request_html_url + self.pushProtectionBypassed = pushProtectionBypassed + self.pushProtectionBypassedBy = pushProtectionBypassedBy + self.pushProtectionBypassedAt = pushProtectionBypassedAt + self.pushProtectionBypassRequestReviewer = pushProtectionBypassRequestReviewer + self.pushProtectionBypassRequestReviewerComment = pushProtectionBypassRequestReviewerComment + self.pushProtectionBypassRequestComment = pushProtectionBypassRequestComment + self.pushProtectionBypassRequestHtmlUrl = pushProtectionBypassRequestHtmlUrl self.validity = validity - self.publicly_leaked = publicly_leaked - self.multi_repo = multi_repo - self.is_base64_encoded = is_base64_encoded + self.publiclyLeaked = publiclyLeaked + self.multiRepo = multiRepo + self.isBase64Encoded = isBase64Encoded } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case url - case html_url - case locations_url + case htmlUrl = "html_url" + case locationsUrl = "locations_url" case state case resolution - case resolved_at - case resolved_by - case resolution_comment - case secret_type - case secret_type_display_name + case resolvedAt = "resolved_at" + case resolvedBy = "resolved_by" + case resolutionComment = "resolution_comment" + case secretType = "secret_type" + case secretTypeDisplayName = "secret_type_display_name" case secret - case push_protection_bypassed - case push_protection_bypassed_by - case push_protection_bypassed_at - case push_protection_bypass_request_reviewer - case push_protection_bypass_request_reviewer_comment - case push_protection_bypass_request_comment - case push_protection_bypass_request_html_url + case pushProtectionBypassed = "push_protection_bypassed" + case pushProtectionBypassedBy = "push_protection_bypassed_by" + case pushProtectionBypassedAt = "push_protection_bypassed_at" + case pushProtectionBypassRequestReviewer = "push_protection_bypass_request_reviewer" + case pushProtectionBypassRequestReviewerComment = "push_protection_bypass_request_reviewer_comment" + case pushProtectionBypassRequestComment = "push_protection_bypass_request_comment" + case pushProtectionBypassRequestHtmlUrl = "push_protection_bypass_request_html_url" case validity - case publicly_leaked - case multi_repo - case is_base64_encoded + case publiclyLeaked = "publicly_leaked" + case multiRepo = "multi_repo" + case isBase64Encoded = "is_base64_encoded" } } /// An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert-resolution-comment`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_resolution_hyphen_comment = Swift.String + public typealias SecretScanningAlertResolutionComment = Swift.String /// Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_commit: Codable, Hashable, Sendable { + public struct SecretScanningLocationCommit: Codable, Hashable, Sendable { /// The file path in the repository /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/path`. @@ -1450,84 +1459,84 @@ public enum Components { /// Line number at which the secret starts in the file /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/start_line`. - public var start_line: Swift.Double + public var startLine: Swift.Double /// Line number at which the secret ends in the file /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/end_line`. - public var end_line: Swift.Double + public var endLine: Swift.Double /// The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/start_column`. - public var start_column: Swift.Double + public var startColumn: Swift.Double /// The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/end_column`. - public var end_column: Swift.Double + public var endColumn: Swift.Double /// SHA-1 hash ID of the associated blob /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/blob_sha`. - public var blob_sha: Swift.String + public var blobSha: Swift.String /// The API URL to get the associated blob resource /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/blob_url`. - public var blob_url: Swift.String + public var blobUrl: Swift.String /// SHA-1 hash ID of the associated commit /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/commit_sha`. - public var commit_sha: Swift.String + public var commitSha: Swift.String /// The API URL to get the associated commit resource /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-commit/commit_url`. - public var commit_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_commit`. + public var commitUrl: Swift.String + /// Creates a new `SecretScanningLocationCommit`. /// /// - Parameters: /// - path: The file path in the repository - /// - start_line: Line number at which the secret starts in the file - /// - end_line: Line number at which the secret ends in the file - /// - start_column: The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII - /// - end_column: The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII - /// - blob_sha: SHA-1 hash ID of the associated blob - /// - blob_url: The API URL to get the associated blob resource - /// - commit_sha: SHA-1 hash ID of the associated commit - /// - commit_url: The API URL to get the associated commit resource + /// - startLine: Line number at which the secret starts in the file + /// - endLine: Line number at which the secret ends in the file + /// - startColumn: The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII + /// - endColumn: The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII + /// - blobSha: SHA-1 hash ID of the associated blob + /// - blobUrl: The API URL to get the associated blob resource + /// - commitSha: SHA-1 hash ID of the associated commit + /// - commitUrl: The API URL to get the associated commit resource public init( path: Swift.String, - start_line: Swift.Double, - end_line: Swift.Double, - start_column: Swift.Double, - end_column: Swift.Double, - blob_sha: Swift.String, - blob_url: Swift.String, - commit_sha: Swift.String, - commit_url: Swift.String + startLine: Swift.Double, + endLine: Swift.Double, + startColumn: Swift.Double, + endColumn: Swift.Double, + blobSha: Swift.String, + blobUrl: Swift.String, + commitSha: Swift.String, + commitUrl: Swift.String ) { self.path = path - self.start_line = start_line - self.end_line = end_line - self.start_column = start_column - self.end_column = end_column - self.blob_sha = blob_sha - self.blob_url = blob_url - self.commit_sha = commit_sha - self.commit_url = commit_url + self.startLine = startLine + self.endLine = endLine + self.startColumn = startColumn + self.endColumn = endColumn + self.blobSha = blobSha + self.blobUrl = blobUrl + self.commitSha = commitSha + self.commitUrl = commitUrl } public enum CodingKeys: String, CodingKey { case path - case start_line - case end_line - case start_column - case end_column - case blob_sha - case blob_url - case commit_sha - case commit_url + case startLine = "start_line" + case endLine = "end_line" + case startColumn = "start_column" + case endColumn = "end_column" + case blobSha = "blob_sha" + case blobUrl = "blob_url" + case commitSha = "commit_sha" + case commitUrl = "commit_url" } } /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit: Codable, Hashable, Sendable { + public struct SecretScanningLocationWikiCommit: Codable, Hashable, Sendable { /// The file path of the wiki page /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/path`. @@ -1535,417 +1544,417 @@ public enum Components { /// Line number at which the secret starts in the file /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/start_line`. - public var start_line: Swift.Double + public var startLine: Swift.Double /// Line number at which the secret ends in the file /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/end_line`. - public var end_line: Swift.Double + public var endLine: Swift.Double /// The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/start_column`. - public var start_column: Swift.Double + public var startColumn: Swift.Double /// The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/end_column`. - public var end_column: Swift.Double + public var endColumn: Swift.Double /// SHA-1 hash ID of the associated blob /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/blob_sha`. - public var blob_sha: Swift.String + public var blobSha: Swift.String /// The GitHub URL to get the associated wiki page /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/page_url`. - public var page_url: Swift.String + public var pageUrl: Swift.String /// SHA-1 hash ID of the associated commit /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/commit_sha`. - public var commit_sha: Swift.String + public var commitSha: Swift.String /// The GitHub URL to get the associated wiki commit /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/commit_url`. - public var commit_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit`. + public var commitUrl: Swift.String + /// Creates a new `SecretScanningLocationWikiCommit`. /// /// - Parameters: /// - path: The file path of the wiki page - /// - start_line: Line number at which the secret starts in the file - /// - end_line: Line number at which the secret ends in the file - /// - start_column: The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII. - /// - end_column: The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII. - /// - blob_sha: SHA-1 hash ID of the associated blob - /// - page_url: The GitHub URL to get the associated wiki page - /// - commit_sha: SHA-1 hash ID of the associated commit - /// - commit_url: The GitHub URL to get the associated wiki commit + /// - startLine: Line number at which the secret starts in the file + /// - endLine: Line number at which the secret ends in the file + /// - startColumn: The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII. + /// - endColumn: The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII. + /// - blobSha: SHA-1 hash ID of the associated blob + /// - pageUrl: The GitHub URL to get the associated wiki page + /// - commitSha: SHA-1 hash ID of the associated commit + /// - commitUrl: The GitHub URL to get the associated wiki commit public init( path: Swift.String, - start_line: Swift.Double, - end_line: Swift.Double, - start_column: Swift.Double, - end_column: Swift.Double, - blob_sha: Swift.String, - page_url: Swift.String, - commit_sha: Swift.String, - commit_url: Swift.String + startLine: Swift.Double, + endLine: Swift.Double, + startColumn: Swift.Double, + endColumn: Swift.Double, + blobSha: Swift.String, + pageUrl: Swift.String, + commitSha: Swift.String, + commitUrl: Swift.String ) { self.path = path - self.start_line = start_line - self.end_line = end_line - self.start_column = start_column - self.end_column = end_column - self.blob_sha = blob_sha - self.page_url = page_url - self.commit_sha = commit_sha - self.commit_url = commit_url + self.startLine = startLine + self.endLine = endLine + self.startColumn = startColumn + self.endColumn = endColumn + self.blobSha = blobSha + self.pageUrl = pageUrl + self.commitSha = commitSha + self.commitUrl = commitUrl } public enum CodingKeys: String, CodingKey { case path - case start_line - case end_line - case start_column - case end_column - case blob_sha - case page_url - case commit_sha - case commit_url + case startLine = "start_line" + case endLine = "end_line" + case startColumn = "start_column" + case endColumn = "end_column" + case blobSha = "blob_sha" + case pageUrl = "page_url" + case commitSha = "commit_sha" + case commitUrl = "commit_url" } } /// Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-title`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title: Codable, Hashable, Sendable { + public struct SecretScanningLocationIssueTitle: Codable, Hashable, Sendable { /// The API URL to get the issue where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-title/issue_title_url`. - public var issue_title_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title`. + public var issueTitleUrl: Swift.String + /// Creates a new `SecretScanningLocationIssueTitle`. /// /// - Parameters: - /// - issue_title_url: The API URL to get the issue where the secret was detected. - public init(issue_title_url: Swift.String) { - self.issue_title_url = issue_title_url + /// - issueTitleUrl: The API URL to get the issue where the secret was detected. + public init(issueTitleUrl: Swift.String) { + self.issueTitleUrl = issueTitleUrl } public enum CodingKeys: String, CodingKey { - case issue_title_url + case issueTitleUrl = "issue_title_url" } } /// Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-body`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body: Codable, Hashable, Sendable { + public struct SecretScanningLocationIssueBody: Codable, Hashable, Sendable { /// The API URL to get the issue where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-body/issue_body_url`. - public var issue_body_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body`. + public var issueBodyUrl: Swift.String + /// Creates a new `SecretScanningLocationIssueBody`. /// /// - Parameters: - /// - issue_body_url: The API URL to get the issue where the secret was detected. - public init(issue_body_url: Swift.String) { - self.issue_body_url = issue_body_url + /// - issueBodyUrl: The API URL to get the issue where the secret was detected. + public init(issueBodyUrl: Swift.String) { + self.issueBodyUrl = issueBodyUrl } public enum CodingKeys: String, CodingKey { - case issue_body_url + case issueBodyUrl = "issue_body_url" } } /// Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-comment`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment: Codable, Hashable, Sendable { + public struct SecretScanningLocationIssueComment: Codable, Hashable, Sendable { /// The API URL to get the issue comment where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-comment/issue_comment_url`. - public var issue_comment_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment`. + public var issueCommentUrl: Swift.String + /// Creates a new `SecretScanningLocationIssueComment`. /// /// - Parameters: - /// - issue_comment_url: The API URL to get the issue comment where the secret was detected. - public init(issue_comment_url: Swift.String) { - self.issue_comment_url = issue_comment_url + /// - issueCommentUrl: The API URL to get the issue comment where the secret was detected. + public init(issueCommentUrl: Swift.String) { + self.issueCommentUrl = issueCommentUrl } public enum CodingKeys: String, CodingKey { - case issue_comment_url + case issueCommentUrl = "issue_comment_url" } } /// Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-title`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title: Codable, Hashable, Sendable { + public struct SecretScanningLocationDiscussionTitle: Codable, Hashable, Sendable { /// The URL to the discussion where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-title/discussion_title_url`. - public var discussion_title_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title`. + public var discussionTitleUrl: Swift.String + /// Creates a new `SecretScanningLocationDiscussionTitle`. /// /// - Parameters: - /// - discussion_title_url: The URL to the discussion where the secret was detected. - public init(discussion_title_url: Swift.String) { - self.discussion_title_url = discussion_title_url + /// - discussionTitleUrl: The URL to the discussion where the secret was detected. + public init(discussionTitleUrl: Swift.String) { + self.discussionTitleUrl = discussionTitleUrl } public enum CodingKeys: String, CodingKey { - case discussion_title_url + case discussionTitleUrl = "discussion_title_url" } } /// Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-body`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body: Codable, Hashable, Sendable { + public struct SecretScanningLocationDiscussionBody: Codable, Hashable, Sendable { /// The URL to the discussion where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-body/discussion_body_url`. - public var discussion_body_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body`. + public var discussionBodyUrl: Swift.String + /// Creates a new `SecretScanningLocationDiscussionBody`. /// /// - Parameters: - /// - discussion_body_url: The URL to the discussion where the secret was detected. - public init(discussion_body_url: Swift.String) { - self.discussion_body_url = discussion_body_url + /// - discussionBodyUrl: The URL to the discussion where the secret was detected. + public init(discussionBodyUrl: Swift.String) { + self.discussionBodyUrl = discussionBodyUrl } public enum CodingKeys: String, CodingKey { - case discussion_body_url + case discussionBodyUrl = "discussion_body_url" } } /// Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-comment`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment: Codable, Hashable, Sendable { + public struct SecretScanningLocationDiscussionComment: Codable, Hashable, Sendable { /// The API URL to get the discussion comment where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-discussion-comment/discussion_comment_url`. - public var discussion_comment_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment`. + public var discussionCommentUrl: Swift.String + /// Creates a new `SecretScanningLocationDiscussionComment`. /// /// - Parameters: - /// - discussion_comment_url: The API URL to get the discussion comment where the secret was detected. - public init(discussion_comment_url: Swift.String) { - self.discussion_comment_url = discussion_comment_url + /// - discussionCommentUrl: The API URL to get the discussion comment where the secret was detected. + public init(discussionCommentUrl: Swift.String) { + self.discussionCommentUrl = discussionCommentUrl } public enum CodingKeys: String, CodingKey { - case discussion_comment_url + case discussionCommentUrl = "discussion_comment_url" } } /// Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-title`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title: Codable, Hashable, Sendable { + public struct SecretScanningLocationPullRequestTitle: Codable, Hashable, Sendable { /// The API URL to get the pull request where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-title/pull_request_title_url`. - public var pull_request_title_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title`. + public var pullRequestTitleUrl: Swift.String + /// Creates a new `SecretScanningLocationPullRequestTitle`. /// /// - Parameters: - /// - pull_request_title_url: The API URL to get the pull request where the secret was detected. - public init(pull_request_title_url: Swift.String) { - self.pull_request_title_url = pull_request_title_url + /// - pullRequestTitleUrl: The API URL to get the pull request where the secret was detected. + public init(pullRequestTitleUrl: Swift.String) { + self.pullRequestTitleUrl = pullRequestTitleUrl } public enum CodingKeys: String, CodingKey { - case pull_request_title_url + case pullRequestTitleUrl = "pull_request_title_url" } } /// Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-body`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body: Codable, Hashable, Sendable { + public struct SecretScanningLocationPullRequestBody: Codable, Hashable, Sendable { /// The API URL to get the pull request where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-body/pull_request_body_url`. - public var pull_request_body_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body`. + public var pullRequestBodyUrl: Swift.String + /// Creates a new `SecretScanningLocationPullRequestBody`. /// /// - Parameters: - /// - pull_request_body_url: The API URL to get the pull request where the secret was detected. - public init(pull_request_body_url: Swift.String) { - self.pull_request_body_url = pull_request_body_url + /// - pullRequestBodyUrl: The API URL to get the pull request where the secret was detected. + public init(pullRequestBodyUrl: Swift.String) { + self.pullRequestBodyUrl = pullRequestBodyUrl } public enum CodingKeys: String, CodingKey { - case pull_request_body_url + case pullRequestBodyUrl = "pull_request_body_url" } } /// Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-comment`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment: Codable, Hashable, Sendable { + public struct SecretScanningLocationPullRequestComment: Codable, Hashable, Sendable { /// The API URL to get the pull request comment where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-comment/pull_request_comment_url`. - public var pull_request_comment_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment`. + public var pullRequestCommentUrl: Swift.String + /// Creates a new `SecretScanningLocationPullRequestComment`. /// /// - Parameters: - /// - pull_request_comment_url: The API URL to get the pull request comment where the secret was detected. - public init(pull_request_comment_url: Swift.String) { - self.pull_request_comment_url = pull_request_comment_url + /// - pullRequestCommentUrl: The API URL to get the pull request comment where the secret was detected. + public init(pullRequestCommentUrl: Swift.String) { + self.pullRequestCommentUrl = pullRequestCommentUrl } public enum CodingKeys: String, CodingKey { - case pull_request_comment_url + case pullRequestCommentUrl = "pull_request_comment_url" } } /// Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-review`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review: Codable, Hashable, Sendable { + public struct SecretScanningLocationPullRequestReview: Codable, Hashable, Sendable { /// The API URL to get the pull request review where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-review/pull_request_review_url`. - public var pull_request_review_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review`. + public var pullRequestReviewUrl: Swift.String + /// Creates a new `SecretScanningLocationPullRequestReview`. /// /// - Parameters: - /// - pull_request_review_url: The API URL to get the pull request review where the secret was detected. - public init(pull_request_review_url: Swift.String) { - self.pull_request_review_url = pull_request_review_url + /// - pullRequestReviewUrl: The API URL to get the pull request review where the secret was detected. + public init(pullRequestReviewUrl: Swift.String) { + self.pullRequestReviewUrl = pullRequestReviewUrl } public enum CodingKeys: String, CodingKey { - case pull_request_review_url + case pullRequestReviewUrl = "pull_request_review_url" } } /// Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-review-comment`. - public struct secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment: Codable, Hashable, Sendable { + public struct SecretScanningLocationPullRequestReviewComment: Codable, Hashable, Sendable { /// The API URL to get the pull request review comment where the secret was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location-pull-request-review-comment/pull_request_review_comment_url`. - public var pull_request_review_comment_url: Swift.String - /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment`. + public var pullRequestReviewCommentUrl: Swift.String + /// Creates a new `SecretScanningLocationPullRequestReviewComment`. /// /// - Parameters: - /// - pull_request_review_comment_url: The API URL to get the pull request review comment where the secret was detected. - public init(pull_request_review_comment_url: Swift.String) { - self.pull_request_review_comment_url = pull_request_review_comment_url + /// - pullRequestReviewCommentUrl: The API URL to get the pull request review comment where the secret was detected. + public init(pullRequestReviewCommentUrl: Swift.String) { + self.pullRequestReviewCommentUrl = pullRequestReviewCommentUrl } public enum CodingKeys: String, CodingKey { - case pull_request_review_comment_url + case pullRequestReviewCommentUrl = "pull_request_review_comment_url" } } /// - Remark: Generated from `#/components/schemas/secret-scanning-location`. - public struct secret_hyphen_scanning_hyphen_location: Codable, Hashable, Sendable { + public struct SecretScanningLocation: Codable, Hashable, Sendable { /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case commit = "commit" - case wiki_commit = "wiki_commit" - case issue_title = "issue_title" - case issue_body = "issue_body" - case issue_comment = "issue_comment" - case discussion_title = "discussion_title" - case discussion_body = "discussion_body" - case discussion_comment = "discussion_comment" - case pull_request_title = "pull_request_title" - case pull_request_body = "pull_request_body" - case pull_request_comment = "pull_request_comment" - case pull_request_review = "pull_request_review" - case pull_request_review_comment = "pull_request_review_comment" + case wikiCommit = "wiki_commit" + case issueTitle = "issue_title" + case issueBody = "issue_body" + case issueComment = "issue_comment" + case discussionTitle = "discussion_title" + case discussionBody = "discussion_body" + case discussionComment = "discussion_comment" + case pullRequestTitle = "pull_request_title" + case pullRequestBody = "pull_request_body" + case pullRequestComment = "pull_request_comment" + case pullRequestReview = "pull_request_review" + case pullRequestReviewComment = "pull_request_review_comment" } /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-location/type`. - public var _type: Components.Schemas.secret_hyphen_scanning_hyphen_location._typePayload? + public var _type: Components.Schemas.SecretScanningLocation._TypePayload? /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details`. - @frozen public enum detailsPayload: Codable, Hashable, Sendable { + @frozen public enum DetailsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case1`. - case secret_hyphen_scanning_hyphen_location_hyphen_commit(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_commit) + case SecretScanningLocationCommit(Components.Schemas.SecretScanningLocationCommit) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case2`. - case secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit) + case SecretScanningLocationWikiCommit(Components.Schemas.SecretScanningLocationWikiCommit) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case3`. - case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title) + case SecretScanningLocationIssueTitle(Components.Schemas.SecretScanningLocationIssueTitle) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case4`. - case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body) + case SecretScanningLocationIssueBody(Components.Schemas.SecretScanningLocationIssueBody) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case5`. - case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment) + case SecretScanningLocationIssueComment(Components.Schemas.SecretScanningLocationIssueComment) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case6`. - case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title) + case SecretScanningLocationDiscussionTitle(Components.Schemas.SecretScanningLocationDiscussionTitle) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case7`. - case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body) + case SecretScanningLocationDiscussionBody(Components.Schemas.SecretScanningLocationDiscussionBody) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case8`. - case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment) + case SecretScanningLocationDiscussionComment(Components.Schemas.SecretScanningLocationDiscussionComment) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case9`. - case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title) + case SecretScanningLocationPullRequestTitle(Components.Schemas.SecretScanningLocationPullRequestTitle) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case10`. - case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body) + case SecretScanningLocationPullRequestBody(Components.Schemas.SecretScanningLocationPullRequestBody) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case11`. - case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment) + case SecretScanningLocationPullRequestComment(Components.Schemas.SecretScanningLocationPullRequestComment) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case12`. - case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review) + case SecretScanningLocationPullRequestReview(Components.Schemas.SecretScanningLocationPullRequestReview) /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case13`. - case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(Components.Schemas.secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment) + case SecretScanningLocationPullRequestReviewComment(Components.Schemas.SecretScanningLocationPullRequestReviewComment) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_commit(try .init(from: decoder)) + self = .SecretScanningLocationCommit(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit(try .init(from: decoder)) + self = .SecretScanningLocationWikiCommit(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title(try .init(from: decoder)) + self = .SecretScanningLocationIssueTitle(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body(try .init(from: decoder)) + self = .SecretScanningLocationIssueBody(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment(try .init(from: decoder)) + self = .SecretScanningLocationIssueComment(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title(try .init(from: decoder)) + self = .SecretScanningLocationDiscussionTitle(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body(try .init(from: decoder)) + self = .SecretScanningLocationDiscussionBody(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment(try .init(from: decoder)) + self = .SecretScanningLocationDiscussionComment(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title(try .init(from: decoder)) + self = .SecretScanningLocationPullRequestTitle(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body(try .init(from: decoder)) + self = .SecretScanningLocationPullRequestBody(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment(try .init(from: decoder)) + self = .SecretScanningLocationPullRequestComment(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review(try .init(from: decoder)) + self = .SecretScanningLocationPullRequestReview(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(try .init(from: decoder)) + self = .SecretScanningLocationPullRequestReviewComment(try .init(from: decoder)) return } catch { errors.append(error) @@ -1958,45 +1967,45 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .secret_hyphen_scanning_hyphen_location_hyphen_commit(value): + case let .SecretScanningLocationCommit(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit(value): + case let .SecretScanningLocationWikiCommit(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title(value): + case let .SecretScanningLocationIssueTitle(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body(value): + case let .SecretScanningLocationIssueBody(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment(value): + case let .SecretScanningLocationIssueComment(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title(value): + case let .SecretScanningLocationDiscussionTitle(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body(value): + case let .SecretScanningLocationDiscussionBody(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment(value): + case let .SecretScanningLocationDiscussionComment(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title(value): + case let .SecretScanningLocationPullRequestTitle(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body(value): + case let .SecretScanningLocationPullRequestBody(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment(value): + case let .SecretScanningLocationPullRequestComment(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review(value): + case let .SecretScanningLocationPullRequestReview(value): try value.encode(to: encoder) - case let .secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment(value): + case let .SecretScanningLocationPullRequestReviewComment(value): try value.encode(to: encoder) } } } /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details`. - public var details: Components.Schemas.secret_hyphen_scanning_hyphen_location.detailsPayload? - /// Creates a new `secret_hyphen_scanning_hyphen_location`. + public var details: Components.Schemas.SecretScanningLocation.DetailsPayload? + /// Creates a new `SecretScanningLocation`. /// /// - Parameters: /// - _type: The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. /// - details: public init( - _type: Components.Schemas.secret_hyphen_scanning_hyphen_location._typePayload? = nil, - details: Components.Schemas.secret_hyphen_scanning_hyphen_location.detailsPayload? = nil + _type: Components.Schemas.SecretScanningLocation._TypePayload? = nil, + details: Components.Schemas.SecretScanningLocation.DetailsPayload? = nil ) { self._type = _type self.details = details @@ -2009,48 +2018,48 @@ public enum Components { /// The reason for bypassing push protection. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass-reason`. - @frozen public enum secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_reason: String, Codable, Hashable, Sendable { - case false_positive = "false_positive" - case used_in_tests = "used_in_tests" - case will_fix_later = "will_fix_later" + @frozen public enum SecretScanningPushProtectionBypassReason: String, Codable, Hashable, Sendable, CaseIterable { + case falsePositive = "false_positive" + case usedInTests = "used_in_tests" + case willFixLater = "will_fix_later" } /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass`. - public struct secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionBypass: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass/reason`. - public var reason: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_reason? + public var reason: Components.Schemas.SecretScanningPushProtectionBypassReason? /// The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass/expire_at`. - public var expire_at: Foundation.Date? + public var expireAt: Foundation.Date? /// The token type this bypass is for. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-push-protection-bypass/token_type`. - public var token_type: Swift.String? - /// Creates a new `secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass`. + public var tokenType: Swift.String? + /// Creates a new `SecretScanningPushProtectionBypass`. /// /// - Parameters: /// - reason: - /// - expire_at: The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - /// - token_type: The token type this bypass is for. + /// - expireAt: The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// - tokenType: The token type this bypass is for. public init( - reason: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_reason? = nil, - expire_at: Foundation.Date? = nil, - token_type: Swift.String? = nil + reason: Components.Schemas.SecretScanningPushProtectionBypassReason? = nil, + expireAt: Foundation.Date? = nil, + tokenType: Swift.String? = nil ) { self.reason = reason - self.expire_at = expire_at - self.token_type = token_type + self.expireAt = expireAt + self.tokenType = tokenType } public enum CodingKeys: String, CodingKey { case reason - case expire_at - case token_type + case expireAt = "expire_at" + case tokenType = "token_type" } } /// Information on a single scan performed by secret scanning on the repository /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan`. - public struct secret_hyphen_scanning_hyphen_scan: Codable, Hashable, Sendable { + public struct SecretScanningScan: Codable, Hashable, Sendable { /// The type of scan /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/type`. @@ -2062,125 +2071,125 @@ public enum Components { /// The time that the scan was completed. Empty if the scan is running /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/completed_at`. - public var completed_at: Foundation.Date? + public var completedAt: Foundation.Date? /// The time that the scan was started. Empty if the scan is pending /// /// - Remark: Generated from `#/components/schemas/secret-scanning-scan/started_at`. - public var started_at: Foundation.Date? - /// Creates a new `secret_hyphen_scanning_hyphen_scan`. + public var startedAt: Foundation.Date? + /// Creates a new `SecretScanningScan`. /// /// - Parameters: /// - _type: The type of scan /// - status: The state of the scan. Either "completed", "running", or "pending" - /// - completed_at: The time that the scan was completed. Empty if the scan is running - /// - started_at: The time that the scan was started. Empty if the scan is pending + /// - completedAt: The time that the scan was completed. Empty if the scan is running + /// - startedAt: The time that the scan was started. Empty if the scan is pending public init( _type: Swift.String? = nil, status: Swift.String? = nil, - completed_at: Foundation.Date? = nil, - started_at: Foundation.Date? = nil + completedAt: Foundation.Date? = nil, + startedAt: Foundation.Date? = nil ) { self._type = _type self.status = status - self.completed_at = completed_at - self.started_at = started_at + self.completedAt = completedAt + self.startedAt = startedAt } public enum CodingKeys: String, CodingKey { case _type = "type" case status - case completed_at - case started_at + case completedAt = "completed_at" + case startedAt = "started_at" } } /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history`. - public struct secret_hyphen_scanning_hyphen_scan_hyphen_history: Codable, Hashable, Sendable { + public struct SecretScanningScanHistory: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/incremental_scans`. - public var incremental_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? + public var incrementalScans: [Components.Schemas.SecretScanningScan]? /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/pattern_update_scans`. - public var pattern_update_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? + public var patternUpdateScans: [Components.Schemas.SecretScanningScan]? /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/backfill_scans`. - public var backfill_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload`. - public struct custom_pattern_backfill_scansPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload/value1`. - public var value1: Components.Schemas.secret_hyphen_scanning_hyphen_scan - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload/value2`. + public var backfillScans: [Components.Schemas.SecretScanningScan]? + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload`. + public struct CustomPatternBackfillScansPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload/value1`. + public var value1: Components.Schemas.SecretScanningScan + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Name of the custom pattern for custom pattern scans /// - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload/value2/pattern_name`. - public var pattern_name: Swift.String? + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload/value2/pattern_name`. + public var patternName: Swift.String? /// Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" /// - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload/value2/pattern_scope`. - public var pattern_scope: Swift.String? + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload/value2/pattern_scope`. + public var patternScope: Swift.String? /// Creates a new `Value2Payload`. /// /// - Parameters: - /// - pattern_name: Name of the custom pattern for custom pattern scans - /// - pattern_scope: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" + /// - patternName: Name of the custom pattern for custom pattern scans + /// - patternScope: Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise" public init( - pattern_name: Swift.String? = nil, - pattern_scope: Swift.String? = nil + patternName: Swift.String? = nil, + patternScope: Swift.String? = nil ) { - self.pattern_name = pattern_name - self.pattern_scope = pattern_scope + self.patternName = patternName + self.patternScope = patternScope } public enum CodingKeys: String, CodingKey { - case pattern_name - case pattern_scope + case patternName = "pattern_name" + case patternScope = "pattern_scope" } } - /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scansPayload/value2`. - public var value2: Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.custom_pattern_backfill_scansPayloadPayload.Value2Payload - /// Creates a new `custom_pattern_backfill_scansPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/CustomPatternBackfillScansPayload/value2`. + public var value2: Components.Schemas.SecretScanningScanHistory.CustomPatternBackfillScansPayloadPayload.Value2Payload + /// Creates a new `CustomPatternBackfillScansPayloadPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.secret_hyphen_scanning_hyphen_scan, - value2: Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.custom_pattern_backfill_scansPayloadPayload.Value2Payload + value1: Components.Schemas.SecretScanningScan, + value2: Components.Schemas.SecretScanningScanHistory.CustomPatternBackfillScansPayloadPayload.Value2Payload ) { self.value1 = value1 self.value2 = value2 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) - value2 = try .init(from: decoder) + self.value1 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) - try value2.encode(to: encoder) + try self.value1.encode(to: encoder) + try self.value2.encode(to: encoder) } } /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scans`. - public typealias custom_pattern_backfill_scansPayload = [Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.custom_pattern_backfill_scansPayloadPayload] + public typealias CustomPatternBackfillScansPayload = [Components.Schemas.SecretScanningScanHistory.CustomPatternBackfillScansPayloadPayload] /// - Remark: Generated from `#/components/schemas/secret-scanning-scan-history/custom_pattern_backfill_scans`. - public var custom_pattern_backfill_scans: Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.custom_pattern_backfill_scansPayload? - /// Creates a new `secret_hyphen_scanning_hyphen_scan_hyphen_history`. + public var customPatternBackfillScans: Components.Schemas.SecretScanningScanHistory.CustomPatternBackfillScansPayload? + /// Creates a new `SecretScanningScanHistory`. /// /// - Parameters: - /// - incremental_scans: - /// - pattern_update_scans: - /// - backfill_scans: - /// - custom_pattern_backfill_scans: + /// - incrementalScans: + /// - patternUpdateScans: + /// - backfillScans: + /// - customPatternBackfillScans: public init( - incremental_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? = nil, - pattern_update_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? = nil, - backfill_scans: [Components.Schemas.secret_hyphen_scanning_hyphen_scan]? = nil, - custom_pattern_backfill_scans: Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history.custom_pattern_backfill_scansPayload? = nil + incrementalScans: [Components.Schemas.SecretScanningScan]? = nil, + patternUpdateScans: [Components.Schemas.SecretScanningScan]? = nil, + backfillScans: [Components.Schemas.SecretScanningScan]? = nil, + customPatternBackfillScans: Components.Schemas.SecretScanningScanHistory.CustomPatternBackfillScansPayload? = nil ) { - self.incremental_scans = incremental_scans - self.pattern_update_scans = pattern_update_scans - self.backfill_scans = backfill_scans - self.custom_pattern_backfill_scans = custom_pattern_backfill_scans + self.incrementalScans = incrementalScans + self.patternUpdateScans = patternUpdateScans + self.backfillScans = backfillScans + self.customPatternBackfillScans = customPatternBackfillScans } public enum CodingKeys: String, CodingKey { - case incremental_scans - case pattern_update_scans - case backfill_scans - case custom_pattern_backfill_scans + case incrementalScans = "incremental_scans" + case patternUpdateScans = "pattern_update_scans" + case backfillScans = "backfill_scans" + case customPatternBackfillScans = "custom_pattern_backfill_scans" } } } @@ -2189,103 +2198,103 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/components/parameters/enterprise`. - public typealias enterprise = Swift.String + public typealias Enterprise = Swift.String /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-state`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case resolved = "resolved" } /// A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-secret-type`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type = Swift.String + public typealias SecretScanningAlertSecretType = Swift.String /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-resolution`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_resolution = Swift.String + public typealias SecretScanningAlertResolution = Swift.String /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-sort`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-validity`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_validity = Swift.String + public typealias SecretScanningAlertValidity = Swift.String /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-publicly-leaked`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked = Swift.Bool + public typealias SecretScanningAlertPubliclyLeaked = Swift.Bool /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-multi-repo`. - public typealias secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo = Swift.Bool + public typealias SecretScanningAlertMultiRepo = Swift.Bool /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-pagination-before-org-repo`. - public typealias secret_hyphen_scanning_hyphen_pagination_hyphen_before_hyphen_org_hyphen_repo = Swift.String + public typealias SecretScanningPaginationBeforeOrgRepo = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-pagination-after-org-repo`. - public typealias secret_hyphen_scanning_hyphen_pagination_hyphen_after_hyphen_org_hyphen_repo = Swift.String + public typealias SecretScanningPaginationAfterOrgRepo = Swift.String /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/components/parameters/alert-number`. - public typealias alert_hyphen_number = Components.Schemas.alert_hyphen_number + public typealias AlertNumber = Components.Schemas.AlertNumber } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2295,58 +2304,58 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -2356,12 +2365,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } @@ -2369,7 +2378,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -2387,7 +2396,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)`. - public enum secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise { + public enum SecretScanningListAlertsForEnterprise { public static let id: Swift.String = "secret-scanning/list-alerts-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/path`. @@ -2395,130 +2404,130 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - public init(enterprise: Components.Parameters.enterprise) { + public init(enterprise: Components.Parameters.Enterprise) { self.enterprise = enterprise } } - public var path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.SecretScanningListAlertsForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-state`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case resolved = "resolved" } /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/state`. - public var state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Parameters.SecretScanningAlertState? /// A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/secret_type`. - public var secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? + public var secretType: Components.Parameters.SecretScanningAlertSecretType? /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/resolution`. - public var resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Parameters.SecretScanningAlertResolution? /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-sort`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/sort`. - public var sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.SecretScanningAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/validity`. - public var validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? + public var validity: Components.Parameters.SecretScanningAlertValidity? /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/is_publicly_leaked`. - public var is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? + public var isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/is_multi_repo`. - public var is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? + public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? /// Creates a new `Query`. /// /// - Parameters: /// - state: Set to `open` or `resolved` to only list secret scanning alerts in a specific state. - /// - secret_type: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - secretType: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// - resolution: A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// - sort: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. - /// - is_publicly_leaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. - /// - is_multi_repo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. public init( - state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? = nil, - resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? = nil, - is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? = nil, - is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? = nil + state: Components.Parameters.SecretScanningAlertState? = nil, + secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, + resolution: Components.Parameters.SecretScanningAlertResolution? = nil, + sort: Components.Parameters.SecretScanningAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + validity: Components.Parameters.SecretScanningAlertValidity? = nil, + isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil ) { self.state = state - self.secret_type = secret_type + self.secretType = secretType self.resolution = resolution self.sort = sort self.direction = direction - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.validity = validity - self.is_publicly_leaked = is_publicly_leaked - self.is_multi_repo = is_multi_repo + self.isPubliclyLeaked = isPubliclyLeaked + self.isMultiRepo = isMultiRepo } } - public var query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query + public var query: Operations.SecretScanningListAlertsForEnterprise.Input.Query /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.SecretScanningListAlertsForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2526,9 +2535,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.SecretScanningListAlertsForEnterprise.Input.Path, + query: Operations.SecretScanningListAlertsForEnterprise.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForEnterprise.Input.Headers = .init() ) { self.path = path self.query = query @@ -2540,26 +2549,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Headers + public var headers: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Headers /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert]) + case json([Components.Schemas.OrganizationSecretScanningAlert]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert] { + public var json: [Components.Schemas.OrganizationSecretScanningAlert] { get throws { switch self { case let .json(body): @@ -2569,15 +2578,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok.Body + headers: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Headers = .init(), + body: Operations.SecretScanningListAlertsForEnterprise.Output.Ok.Body ) { self.headers = headers self.body = body @@ -2588,12 +2597,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.SecretScanningListAlertsForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.SecretScanningListAlertsForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -2611,12 +2620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2634,12 +2643,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-enterprise)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -2693,7 +2702,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)`. - public enum secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org { + public enum SecretScanningListAlertsForOrg { public static let id: Swift.String = "secret-scanning/list-alerts-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/path`. @@ -2701,137 +2710,137 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path + public var path: Operations.SecretScanningListAlertsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-state`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case resolved = "resolved" } /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/state`. - public var state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Parameters.SecretScanningAlertState? /// A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/secret_type`. - public var secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? + public var secretType: Components.Parameters.SecretScanningAlertSecretType? /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/resolution`. - public var resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Parameters.SecretScanningAlertResolution? /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-sort`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/sort`. - public var sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.SecretScanningAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/before`. - public var before: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_before_hyphen_org_hyphen_repo? + public var before: Components.Parameters.SecretScanningPaginationBeforeOrgRepo? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/after`. - public var after: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_after_hyphen_org_hyphen_repo? + public var after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/validity`. - public var validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? + public var validity: Components.Parameters.SecretScanningAlertValidity? /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/is_publicly_leaked`. - public var is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? + public var isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/is_multi_repo`. - public var is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? + public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? /// Creates a new `Query`. /// /// - Parameters: /// - state: Set to `open` or `resolved` to only list secret scanning alerts in a specific state. - /// - secret_type: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - secretType: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// - resolution: A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// - sort: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// - direction: The direction to sort the results by. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. - /// - is_publicly_leaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. - /// - is_multi_repo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. public init( - state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? = nil, - resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_before_hyphen_org_hyphen_repo? = nil, - after: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_after_hyphen_org_hyphen_repo? = nil, - validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? = nil, - is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? = nil, - is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? = nil + state: Components.Parameters.SecretScanningAlertState? = nil, + secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, + resolution: Components.Parameters.SecretScanningAlertResolution? = nil, + sort: Components.Parameters.SecretScanningAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.SecretScanningPaginationBeforeOrgRepo? = nil, + after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? = nil, + validity: Components.Parameters.SecretScanningAlertValidity? = nil, + isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil ) { self.state = state - self.secret_type = secret_type + self.secretType = secretType self.resolution = resolution self.sort = sort self.direction = direction self.page = page - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.validity = validity - self.is_publicly_leaked = is_publicly_leaked - self.is_multi_repo = is_multi_repo + self.isPubliclyLeaked = isPubliclyLeaked + self.isMultiRepo = isMultiRepo } } - public var query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query + public var query: Operations.SecretScanningListAlertsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.SecretScanningListAlertsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2839,9 +2848,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.SecretScanningListAlertsForOrg.Input.Path, + query: Operations.SecretScanningListAlertsForOrg.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -2853,26 +2862,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.SecretScanningListAlertsForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert]) + case json([Components.Schemas.OrganizationSecretScanningAlert]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_secret_hyphen_scanning_hyphen_alert] { + public var json: [Components.Schemas.OrganizationSecretScanningAlert] { get throws { switch self { case let .json(body): @@ -2882,15 +2891,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.SecretScanningListAlertsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.SecretScanningListAlertsForOrg.Output.Ok.Headers = .init(), + body: Operations.SecretScanningListAlertsForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -2901,12 +2910,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.SecretScanningListAlertsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.SecretScanningListAlertsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -2924,12 +2933,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2947,12 +2956,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-org)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -3006,7 +3015,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)`. - public enum secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo { + public enum SecretScanningListAlertsForRepo { public static let id: Swift.String = "secret-scanning/list-alerts-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/path`. @@ -3014,146 +3023,146 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.SecretScanningListAlertsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-state`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case resolved = "resolved" } /// Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/state`. - public var state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? + public var state: Components.Parameters.SecretScanningAlertState? /// A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/secret_type`. - public var secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? + public var secretType: Components.Parameters.SecretScanningAlertSecretType? /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/resolution`. - public var resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Parameters.SecretScanningAlertResolution? /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-sort`. - @frozen public enum secret_hyphen_scanning_hyphen_alert_hyphen_sort: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningAlertSort: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" } /// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/sort`. - public var sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? + public var sort: Components.Parameters.SecretScanningAlertSort? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/before`. - public var before: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_before_hyphen_org_hyphen_repo? + public var before: Components.Parameters.SecretScanningPaginationBeforeOrgRepo? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/after`. - public var after: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_after_hyphen_org_hyphen_repo? + public var after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? /// A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/validity`. - public var validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? + public var validity: Components.Parameters.SecretScanningAlertValidity? /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/is_publicly_leaked`. - public var is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? + public var isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/is_multi_repo`. - public var is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? + public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? /// Creates a new `Query`. /// /// - Parameters: /// - state: Set to `open` or `resolved` to only list secret scanning alerts in a specific state. - /// - secret_type: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - secretType: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. /// - resolution: A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// - sort: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. /// - direction: The direction to sort the results by. /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string. /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. - /// - is_publicly_leaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. - /// - is_multi_repo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. public init( - state: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_state? = nil, - secret_type: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_secret_hyphen_type? = nil, - resolution: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - sort: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_sort? = nil, - direction: Components.Parameters.direction? = nil, - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_before_hyphen_org_hyphen_repo? = nil, - after: Components.Parameters.secret_hyphen_scanning_hyphen_pagination_hyphen_after_hyphen_org_hyphen_repo? = nil, - validity: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_validity? = nil, - is_publicly_leaked: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_publicly_hyphen_leaked? = nil, - is_multi_repo: Components.Parameters.secret_hyphen_scanning_hyphen_alert_hyphen_multi_hyphen_repo? = nil + state: Components.Parameters.SecretScanningAlertState? = nil, + secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, + resolution: Components.Parameters.SecretScanningAlertResolution? = nil, + sort: Components.Parameters.SecretScanningAlertSort? = nil, + direction: Components.Parameters.Direction? = nil, + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.SecretScanningPaginationBeforeOrgRepo? = nil, + after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? = nil, + validity: Components.Parameters.SecretScanningAlertValidity? = nil, + isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil ) { self.state = state - self.secret_type = secret_type + self.secretType = secretType self.resolution = resolution self.sort = sort self.direction = direction self.page = page - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.validity = validity - self.is_publicly_leaked = is_publicly_leaked - self.is_multi_repo = is_multi_repo + self.isPubliclyLeaked = isPubliclyLeaked + self.isMultiRepo = isMultiRepo } } - public var query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query + public var query: Operations.SecretScanningListAlertsForRepo.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.SecretScanningListAlertsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3161,9 +3170,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.SecretScanningListAlertsForRepo.Input.Path, + query: Operations.SecretScanningListAlertsForRepo.Input.Query = .init(), + headers: Operations.SecretScanningListAlertsForRepo.Input.Headers = .init() ) { self.path = path self.query = query @@ -3175,12 +3184,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.secret_hyphen_scanning_hyphen_alert]) + case json([Components.Schemas.SecretScanningAlert]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.secret_hyphen_scanning_hyphen_alert] { + public var json: [Components.Schemas.SecretScanningAlert] { get throws { switch self { case let .json(body): @@ -3190,12 +3199,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.SecretScanningListAlertsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.SecretScanningListAlertsForRepo.Output.Ok.Body) { self.body = body } } @@ -3204,12 +3213,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.SecretScanningListAlertsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.SecretScanningListAlertsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -3231,12 +3240,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.NotFound) + case notFound(Operations.SecretScanningListAlertsForRepo.Output.NotFound) + /// Repository is public or secret scanning is disabled for the repository + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Output.NotFound { + public var notFound: Operations.SecretScanningListAlertsForRepo.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -3254,12 +3271,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/get(secret-scanning/list-alerts-for-repo)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -3313,7 +3330,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`. - public enum secret_hyphen_scanning_sol_get_hyphen_alert { + public enum SecretScanningGetAlert { public static let id: Swift.String = "secret-scanning/get-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/path`. @@ -3321,52 +3338,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Path + public var path: Operations.SecretScanningGetAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Headers + public var headers: Operations.SecretScanningGetAlert.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Input.Headers = .init() + path: Operations.SecretScanningGetAlert.Input.Path, + headers: Operations.SecretScanningGetAlert.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3377,12 +3394,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.secret_hyphen_scanning_hyphen_alert) + case json(Components.Schemas.SecretScanningAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.secret_hyphen_scanning_hyphen_alert { + public var json: Components.Schemas.SecretScanningAlert { get throws { switch self { case let .json(body): @@ -3392,12 +3409,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body + public var body: Operations.SecretScanningGetAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.SecretScanningGetAlert.Output.Ok.Body) { self.body = body } } @@ -3406,12 +3423,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.Ok) + case ok(Operations.SecretScanningGetAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.Ok { + public var ok: Operations.SecretScanningGetAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -3429,12 +3446,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3456,12 +3481,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.NotFound) + case notFound(Operations.SecretScanningGetAlert.Output.NotFound) + /// Repository is public, or secret scanning is disabled for the repository, or the resource is not found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_get_hyphen_alert.Output.NotFound { + public var notFound: Operations.SecretScanningGetAlert.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -3479,12 +3512,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -3538,7 +3571,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)`. - public enum secret_hyphen_scanning_sol_update_hyphen_alert { + public enum SecretScanningUpdateAlert { public static let id: Swift.String = "secret-scanning/update-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/path`. @@ -3546,79 +3579,79 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Path + public var path: Operations.SecretScanningUpdateAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Headers + public var headers: Operations.SecretScanningUpdateAlert.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody/json/state`. - public var state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state + public var state: Components.Schemas.SecretScanningAlertState /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody/json/resolution`. - public var resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? + public var resolution: Components.Schemas.SecretScanningAlertResolution? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody/json/resolution_comment`. - public var resolution_comment: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution_hyphen_comment? - /// Creates a new `jsonPayload`. + public var resolutionComment: Components.Schemas.SecretScanningAlertResolutionComment? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - state: /// - resolution: - /// - resolution_comment: + /// - resolutionComment: public init( - state: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_state, - resolution: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution? = nil, - resolution_comment: Components.Schemas.secret_hyphen_scanning_hyphen_alert_hyphen_resolution_hyphen_comment? = nil + state: Components.Schemas.SecretScanningAlertState, + resolution: Components.Schemas.SecretScanningAlertResolution? = nil, + resolutionComment: Components.Schemas.SecretScanningAlertResolutionComment? = nil ) { self.state = state self.resolution = resolution - self.resolution_comment = resolution_comment + self.resolutionComment = resolutionComment } public enum CodingKeys: String, CodingKey { case state case resolution - case resolution_comment + case resolutionComment = "resolution_comment" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Body.jsonPayload) + case json(Operations.SecretScanningUpdateAlert.Input.Body.JsonPayload) } - public var body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Body + public var body: Operations.SecretScanningUpdateAlert.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3626,9 +3659,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Input.Body + path: Operations.SecretScanningUpdateAlert.Input.Path, + headers: Operations.SecretScanningUpdateAlert.Input.Headers = .init(), + body: Operations.SecretScanningUpdateAlert.Input.Body ) { self.path = path self.headers = headers @@ -3640,12 +3673,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.secret_hyphen_scanning_hyphen_alert) + case json(Components.Schemas.SecretScanningAlert) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.secret_hyphen_scanning_hyphen_alert { + public var json: Components.Schemas.SecretScanningAlert { get throws { switch self { case let .json(body): @@ -3655,12 +3688,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body + public var body: Operations.SecretScanningUpdateAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.Ok.Body) { + public init(body: Operations.SecretScanningUpdateAlert.Output.Ok.Body) { self.body = body } } @@ -3669,12 +3702,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.Ok) + case ok(Operations.SecretScanningUpdateAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.Ok { + public var ok: Operations.SecretScanningUpdateAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -3696,12 +3729,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.BadRequest) + case badRequest(Operations.SecretScanningUpdateAlert.Output.BadRequest) + /// Bad request, resolution comment is invalid or the resolution was not changed. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.BadRequest { + public var badRequest: Operations.SecretScanningUpdateAlert.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -3723,12 +3764,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.NotFound) + case notFound(Operations.SecretScanningUpdateAlert.Output.NotFound) + /// Repository is public, or secret scanning is disabled for the repository, or the resource is not found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.NotFound { + public var notFound: Operations.SecretScanningUpdateAlert.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -3750,12 +3799,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.UnprocessableContent) + case unprocessableContent(Operations.SecretScanningUpdateAlert.Output.UnprocessableContent) + /// State does not match the resolution or resolution comment + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.secret_hyphen_scanning_sol_update_hyphen_alert.Output.UnprocessableContent { + public var unprocessableContent: Operations.SecretScanningUpdateAlert.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -3773,12 +3830,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/patch(secret-scanning/update-alert)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -3832,7 +3889,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)`. - public enum secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert { + public enum SecretScanningListLocationsForAlert { public static let id: Swift.String = "secret-scanning/list-locations-for-alert" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/path`. @@ -3840,68 +3897,68 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/path/alert_number`. - public var alert_number: Components.Parameters.alert_hyphen_number + public var alertNumber: Components.Parameters.AlertNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - alert_number: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. + /// - alertNumber: The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - alert_number: Components.Parameters.alert_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + alertNumber: Components.Parameters.AlertNumber ) { self.owner = owner self.repo = repo - self.alert_number = alert_number + self.alertNumber = alertNumber } } - public var path: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Path + public var path: Operations.SecretScanningListLocationsForAlert.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Query + public var query: Operations.SecretScanningListLocationsForAlert.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Headers + public var headers: Operations.SecretScanningListLocationsForAlert.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -3909,9 +3966,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Path, - query: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Query = .init(), - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Input.Headers = .init() + path: Operations.SecretScanningListLocationsForAlert.Input.Path, + query: Operations.SecretScanningListLocationsForAlert.Input.Query = .init(), + headers: Operations.SecretScanningListLocationsForAlert.Input.Headers = .init() ) { self.path = path self.query = query @@ -3923,26 +3980,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Headers + public var headers: Operations.SecretScanningListLocationsForAlert.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.secret_hyphen_scanning_hyphen_location]) + case json([Components.Schemas.SecretScanningLocation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.secret_hyphen_scanning_hyphen_location] { + public var json: [Components.Schemas.SecretScanningLocation] { get throws { switch self { case let .json(body): @@ -3952,15 +4009,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Body + public var body: Operations.SecretScanningListLocationsForAlert.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok.Body + headers: Operations.SecretScanningListLocationsForAlert.Output.Ok.Headers = .init(), + body: Operations.SecretScanningListLocationsForAlert.Output.Ok.Body ) { self.headers = headers self.body = body @@ -3971,12 +4028,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok) + case ok(Operations.SecretScanningListLocationsForAlert.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.Ok { + public var ok: Operations.SecretScanningListLocationsForAlert.Output.Ok { get throws { switch self { case let .ok(response): @@ -3998,12 +4055,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.NotFound) + case notFound(Operations.SecretScanningListLocationsForAlert.Output.NotFound) + /// Repository is public, or secret scanning is disabled for the repository, or the resource is not found + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_list_hyphen_locations_hyphen_for_hyphen_alert.Output.NotFound { + public var notFound: Operations.SecretScanningListLocationsForAlert.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -4021,12 +4086,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations/get(secret-scanning/list-locations-for-alert)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4080,7 +4145,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)`. - public enum secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass { + public enum SecretScanningCreatePushProtectionBypass { public static let id: Swift.String = "secret-scanning/create-push-protection-bypass" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/path`. @@ -4088,66 +4153,66 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Path + public var path: Operations.SecretScanningCreatePushProtectionBypass.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Headers + public var headers: Operations.SecretScanningCreatePushProtectionBypass.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/requestBody/json/reason`. - public var reason: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_reason + public var reason: Components.Schemas.SecretScanningPushProtectionBypassReason /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/requestBody/json/placeholder_id`. - public var placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id - /// Creates a new `jsonPayload`. + public var placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - reason: - /// - placeholder_id: + /// - placeholderId: public init( - reason: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_reason, - placeholder_id: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass_hyphen_placeholder_hyphen_id + reason: Components.Schemas.SecretScanningPushProtectionBypassReason, + placeholderId: Components.Schemas.SecretScanningPushProtectionBypassPlaceholderId ) { self.reason = reason - self.placeholder_id = placeholder_id + self.placeholderId = placeholderId } public enum CodingKeys: String, CodingKey { case reason - case placeholder_id + case placeholderId = "placeholder_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/requestBody/content/application\/json`. - case json(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Body.jsonPayload) + case json(Operations.SecretScanningCreatePushProtectionBypass.Input.Body.JsonPayload) } - public var body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Body + public var body: Operations.SecretScanningCreatePushProtectionBypass.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4155,9 +4220,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Headers = .init(), - body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Input.Body + path: Operations.SecretScanningCreatePushProtectionBypass.Input.Path, + headers: Operations.SecretScanningCreatePushProtectionBypass.Input.Headers = .init(), + body: Operations.SecretScanningCreatePushProtectionBypass.Input.Body ) { self.path = path self.headers = headers @@ -4169,12 +4234,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/POST/responses/200/content/application\/json`. - case json(Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass) + case json(Components.Schemas.SecretScanningPushProtectionBypass) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.secret_hyphen_scanning_hyphen_push_hyphen_protection_hyphen_bypass { + public var json: Components.Schemas.SecretScanningPushProtectionBypass { get throws { switch self { case let .json(body): @@ -4184,12 +4249,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Ok.Body + public var body: Operations.SecretScanningCreatePushProtectionBypass.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Ok.Body) { + public init(body: Operations.SecretScanningCreatePushProtectionBypass.Output.Ok.Body) { self.body = body } } @@ -4198,12 +4263,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Ok) + case ok(Operations.SecretScanningCreatePushProtectionBypass.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Ok { + public var ok: Operations.SecretScanningCreatePushProtectionBypass.Output.Ok { get throws { switch self { case let .ok(response): @@ -4225,12 +4290,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Forbidden) + case forbidden(Operations.SecretScanningCreatePushProtectionBypass.Output.Forbidden) + /// User does not have enough permissions to perform this action. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.Forbidden { + public var forbidden: Operations.SecretScanningCreatePushProtectionBypass.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4252,12 +4325,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.NotFound) + case notFound(Operations.SecretScanningCreatePushProtectionBypass.Output.NotFound) + /// Placeholder ID not found, or push protection is disabled on this repository. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.NotFound { + public var notFound: Operations.SecretScanningCreatePushProtectionBypass.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -4279,12 +4360,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.UnprocessableContent) + case unprocessableContent(Operations.SecretScanningCreatePushProtectionBypass.Output.UnprocessableContent) + /// Bad request, input data missing or incorrect. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.secret_hyphen_scanning_sol_create_hyphen_push_hyphen_protection_hyphen_bypass.Output.UnprocessableContent { + public var unprocessableContent: Operations.SecretScanningCreatePushProtectionBypass.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -4302,12 +4391,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/push-protection-bypasses/post(secret-scanning/create-push-protection-bypass)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4359,7 +4448,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/secret-scanning/scan-history`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)`. - public enum secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history { + public enum SecretScanningGetScanHistory { public static let id: Swift.String = "secret-scanning/get-scan-history" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/path`. @@ -4367,45 +4456,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Path + public var path: Operations.SecretScanningGetScanHistory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Headers + public var headers: Operations.SecretScanningGetScanHistory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Path, - headers: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Input.Headers = .init() + path: Operations.SecretScanningGetScanHistory.Input.Path, + headers: Operations.SecretScanningGetScanHistory.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4421,12 +4510,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.NotFound) + case notFound(Operations.SecretScanningGetScanHistory.Output.NotFound) + /// Repository does not have GitHub Advanced Security or secret scanning enabled + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.NotFound { + public var notFound: Operations.SecretScanningGetScanHistory.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -4444,12 +4541,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -4466,12 +4563,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/scan-history/GET/responses/200/content/application\/json`. - case json(Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history) + case json(Components.Schemas.SecretScanningScanHistory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.secret_hyphen_scanning_hyphen_scan_hyphen_history { + public var json: Components.Schemas.SecretScanningScanHistory { get throws { switch self { case let .json(body): @@ -4481,12 +4578,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.Ok.Body + public var body: Operations.SecretScanningGetScanHistory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.Ok.Body) { + public init(body: Operations.SecretScanningGetScanHistory.Output.Ok.Body) { self.body = body } } @@ -4495,12 +4592,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/scan-history/get(secret-scanning/get-scan-history)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.Ok) + case ok(Operations.SecretScanningGetScanHistory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.secret_hyphen_scanning_sol_get_hyphen_scan_hyphen_history.Output.Ok { + public var ok: Operations.SecretScanningGetScanHistory.Output.Ok { get throws { switch self { case let .ok(response): From 3ff21a4fe7d621e660f0361f0153c58a0f988abc Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:05:58 -0700 Subject: [PATCH 32/46] Commit via running ake Sources/teams --- Sources/teams/Client.swift | 806 ++-- Sources/teams/Types.swift | 7421 +++++++++++++++++++----------------- 2 files changed, 4266 insertions(+), 3961 deletions(-) diff --git a/Sources/teams/Client.swift b/Sources/teams/Client.swift index 47d8e1f205..80c7e795df 100644 --- a/Sources/teams/Client.swift +++ b/Sources/teams/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)`. - public func teams_sol_list(_ input: Operations.teams_sol_list.Input) async throws -> Operations.teams_sol_list.Output { + public func teamsList(_ input: Operations.TeamsList.Input) async throws -> Operations.TeamsList.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list.id, + forOperation: Operations.TeamsList.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams", @@ -65,7 +65,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -83,13 +83,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list.Output.Ok.Body + let body: Operations.TeamsList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -99,7 +99,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -114,7 +114,7 @@ public struct Client: APIProtocol { )) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -124,7 +124,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -154,10 +154,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)`. - public func teams_sol_create(_ input: Operations.teams_sol_create.Input) async throws -> Operations.teams_sol_create.Output { + public func teamsCreate(_ input: Operations.TeamsCreate.Input) async throws -> Operations.TeamsCreate.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_create.id, + forOperation: Operations.TeamsCreate.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams", @@ -189,7 +189,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_create.Output.Created.Body + let body: Operations.TeamsCreate.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -199,7 +199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -211,7 +211,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -221,7 +221,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -233,7 +233,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -243,7 +243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -274,16 +274,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)`. - public func teams_sol_get_hyphen_by_hyphen_name(_ input: Operations.teams_sol_get_hyphen_by_hyphen_name.Input) async throws -> Operations.teams_sol_get_hyphen_by_hyphen_name.Output { + public func teamsGetByName(_ input: Operations.TeamsGetByName.Input) async throws -> Operations.TeamsGetByName.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_by_hyphen_name.id, + forOperation: Operations.TeamsGetByName.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -301,7 +301,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_by_hyphen_name.Output.Ok.Body + let body: Operations.TeamsGetByName.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -311,7 +311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -323,7 +323,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -333,7 +333,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -364,16 +364,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)`. - public func teams_sol_update_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_in_hyphen_org.Output { + public func teamsUpdateInOrg(_ input: Operations.TeamsUpdateInOrg.Input) async throws -> Operations.TeamsUpdateInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsUpdateInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -402,7 +402,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsUpdateInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -412,7 +412,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -424,7 +424,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.TeamsUpdateInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -434,7 +434,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -446,7 +446,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -456,7 +456,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -468,7 +468,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -478,7 +478,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -490,7 +490,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -500,7 +500,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -533,16 +533,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)`. - public func teams_sol_delete_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_in_hyphen_org.Output { + public func teamsDeleteInOrg(_ input: Operations.TeamsDeleteInOrg.Input) async throws -> Operations.TeamsDeleteInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsDeleteInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -579,16 +579,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/get(teams/list-discussions-in-org)`. - public func teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output { + public func teamsListDiscussionsInOrg(_ input: Operations.TeamsListDiscussionsInOrg.Input) async throws -> Operations.TeamsListDiscussionsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListDiscussionsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -608,7 +608,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -633,13 +633,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListDiscussionsInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListDiscussionsInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -649,7 +649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_discussion].self, + [Components.Schemas.TeamDiscussion].self, from: responseBody, transforming: { value in .json(value) @@ -687,16 +687,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/post(teams/create-discussion-in-org)`. - public func teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func teamsCreateDiscussionInOrg(_ input: Operations.TeamsCreateDiscussionInOrg.Input) async throws -> Operations.TeamsCreateDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsCreateDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -723,7 +723,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.TeamsCreateDiscussionInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -733,7 +733,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -766,17 +766,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/get(teams/get-discussion-in-org)`. - public func teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func teamsGetDiscussionInOrg(_ input: Operations.TeamsGetDiscussionInOrg.Input) async throws -> Operations.TeamsGetDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsGetDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -794,7 +794,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsGetDiscussionInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -804,7 +804,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -837,17 +837,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/patch(teams/update-discussion-in-org)`. - public func teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func teamsUpdateDiscussionInOrg(_ input: Operations.TeamsUpdateDiscussionInOrg.Input) async throws -> Operations.TeamsUpdateDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsUpdateDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -876,7 +876,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsUpdateDiscussionInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -886,7 +886,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -919,17 +919,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)`. - public func teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Output { + public func teamsDeleteDiscussionInOrg(_ input: Operations.TeamsDeleteDiscussionInOrg.Input) async throws -> Operations.TeamsDeleteDiscussionInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsDeleteDiscussionInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -966,17 +966,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-in-org)`. - public func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output { + public func teamsListDiscussionCommentsInOrg(_ input: Operations.TeamsListDiscussionCommentsInOrg.Input) async throws -> Operations.TeamsListDiscussionCommentsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListDiscussionCommentsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -996,7 +996,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1014,13 +1014,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1030,7 +1030,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_discussion_hyphen_comment].self, + [Components.Schemas.TeamDiscussionComment].self, from: responseBody, transforming: { value in .json(value) @@ -1068,17 +1068,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-in-org)`. - public func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func teamsCreateDiscussionCommentInOrg(_ input: Operations.TeamsCreateDiscussionCommentInOrg.Input) async throws -> Operations.TeamsCreateDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsCreateDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number + input.path.teamSlug, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1105,7 +1105,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body + let body: Operations.TeamsCreateDiscussionCommentInOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1115,7 +1115,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -1148,18 +1148,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-in-org)`. - public func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func teamsGetDiscussionCommentInOrg(_ input: Operations.TeamsGetDiscussionCommentInOrg.Input) async throws -> Operations.TeamsGetDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsGetDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1177,7 +1177,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsGetDiscussionCommentInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1187,7 +1187,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -1220,18 +1220,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-in-org)`. - public func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func teamsUpdateDiscussionCommentInOrg(_ input: Operations.TeamsUpdateDiscussionCommentInOrg.Input) async throws -> Operations.TeamsUpdateDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsUpdateDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1258,7 +1258,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsUpdateDiscussionCommentInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1268,7 +1268,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -1301,18 +1301,18 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)`. - public func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { + public func teamsDeleteDiscussionCommentInOrg(_ input: Operations.TeamsDeleteDiscussionCommentInOrg.Input) async throws -> Operations.TeamsDeleteDiscussionCommentInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsDeleteDiscussionCommentInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/discussions/{}/comments/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.discussion_number, - input.path.comment_number + input.path.teamSlug, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1347,16 +1347,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/invitations/get(teams/list-pending-invitations-in-org)`. - public func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output { + public func teamsListPendingInvitationsInOrg(_ input: Operations.TeamsListPendingInvitationsInOrg.Input) async throws -> Operations.TeamsListPendingInvitationsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListPendingInvitationsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/invitations", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1369,7 +1369,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1387,13 +1387,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1403,7 +1403,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_invitation].self, + [Components.Schemas.OrganizationInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -1436,16 +1436,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/members/get(teams/list-members-in-org)`. - public func teams_sol_list_hyphen_members_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output { + public func teamsListMembersInOrg(_ input: Operations.TeamsListMembersInOrg.Input) async throws -> Operations.TeamsListMembersInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListMembersInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/members", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1465,7 +1465,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1483,13 +1483,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListMembersInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListMembersInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1499,7 +1499,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -1540,16 +1540,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)`. - public func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { + public func teamsGetMembershipForUserInOrg(_ input: Operations.TeamsGetMembershipForUserInOrg.Input) async throws -> Operations.TeamsGetMembershipForUserInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsGetMembershipForUserInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/memberships/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.username ] ) @@ -1568,7 +1568,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsGetMembershipForUserInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1578,7 +1578,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_membership.self, + Components.Schemas.TeamMembership.self, from: responseBody, transforming: { value in .json(value) @@ -1620,16 +1620,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)`. - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { + public func teamsAddOrUpdateMembershipForUserInOrg(_ input: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input) async throws -> Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsAddOrUpdateMembershipForUserInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/memberships/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.username ] ) @@ -1659,7 +1659,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1669,7 +1669,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_membership.self, + Components.Schemas.TeamMembership.self, from: responseBody, transforming: { value in .json(value) @@ -1709,16 +1709,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)`. - public func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { + public func teamsRemoveMembershipForUserInOrg(_ input: Operations.TeamsRemoveMembershipForUserInOrg.Input) async throws -> Operations.TeamsRemoveMembershipForUserInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsRemoveMembershipForUserInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/memberships/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.username ] ) @@ -1756,16 +1756,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)`. @available(*, deprecated) - 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 { + public func teamsListProjectsInOrg(_ input: Operations.TeamsListProjectsInOrg.Input) async throws -> Operations.TeamsListProjectsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListProjectsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/projects", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1778,7 +1778,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1796,13 +1796,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListProjectsInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListProjectsInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1812,7 +1812,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_project].self, + [Components.Schemas.TeamProject].self, from: responseBody, transforming: { value in .json(value) @@ -1846,17 +1846,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)`. @available(*, deprecated) - 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 { + public func teamsCheckPermissionsForProjectInOrg(_ input: Operations.TeamsCheckPermissionsForProjectInOrg.Input) async throws -> Operations.TeamsCheckPermissionsForProjectInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsCheckPermissionsForProjectInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/projects/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.project_id + input.path.teamSlug, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1874,7 +1874,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsCheckPermissionsForProjectInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1884,7 +1884,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_project.self, + Components.Schemas.TeamProject.self, from: responseBody, transforming: { value in .json(value) @@ -1917,17 +1917,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)`. @available(*, deprecated) - 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 { + public func teamsAddOrUpdateProjectPermissionsInOrg(_ input: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/projects/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.project_id + input.path.teamSlug, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1958,7 +1958,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body + let body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1968,7 +1968,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body.jsonPayload.self, + Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1999,17 +1999,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)`. @available(*, deprecated) - 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 { + public func teamsRemoveProjectInOrg(_ input: Operations.TeamsRemoveProjectInOrg.Input) async throws -> Operations.TeamsRemoveProjectInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsRemoveProjectInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/projects/{}", parameters: [ input.path.org, - input.path.team_slug, - input.path.project_id + input.path.teamSlug, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2044,16 +2044,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/get(teams/list-repos-in-org)`. - public func teams_sol_list_hyphen_repos_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output { + public func teamsListReposInOrg(_ input: Operations.TeamsListReposInOrg.Input) async throws -> Operations.TeamsListReposInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListReposInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/repos", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2066,7 +2066,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2084,13 +2084,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListReposInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListReposInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2100,7 +2100,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -2140,16 +2140,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)`. - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output { + public func teamsCheckPermissionsForRepoInOrg(_ input: Operations.TeamsCheckPermissionsForRepoInOrg.Input) async throws -> Operations.TeamsCheckPermissionsForRepoInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsCheckPermissionsForRepoInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/repos/{}/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.owner, input.path.repo ] @@ -2169,7 +2169,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsCheckPermissionsForRepoInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2179,7 +2179,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_repository.self, + Components.Schemas.TeamRepository.self, from: responseBody, transforming: { value in .json(value) @@ -2216,16 +2216,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)`. - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Output { + public func teamsAddOrUpdateRepoPermissionsInOrg(_ input: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/repos/{}/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.owner, input.path.repo ] @@ -2273,16 +2273,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)`. - public func teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org(_ input: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Output { + public func teamsRemoveRepoInOrg(_ input: Operations.TeamsRemoveRepoInOrg.Input) async throws -> Operations.TeamsRemoveRepoInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsRemoveRepoInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/repos/{}/{}", parameters: [ input.path.org, - input.path.team_slug, + input.path.teamSlug, input.path.owner, input.path.repo ] @@ -2319,16 +2319,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/teams/get(teams/list-child-in-org)`. - public func teams_sol_list_hyphen_child_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output { + public func teamsListChildInOrg(_ input: Operations.TeamsListChildInOrg.Input) async throws -> Operations.TeamsListChildInOrg.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.id, + forOperation: Operations.TeamsListChildInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/teams/{}/teams", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2341,7 +2341,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2359,13 +2359,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListChildInOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.TeamsListChildInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2375,7 +2375,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -2408,15 +2408,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_legacy.Output { + public func teamsGetLegacy(_ input: Operations.TeamsGetLegacy.Input) async throws -> Operations.TeamsGetLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_legacy.id, + forOperation: Operations.TeamsGetLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2434,7 +2434,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsGetLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2444,7 +2444,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -2456,7 +2456,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2466,7 +2466,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2501,15 +2501,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_legacy.Output { + public func teamsUpdateLegacy(_ input: Operations.TeamsUpdateLegacy.Input) async throws -> Operations.TeamsUpdateLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_legacy.id, + forOperation: Operations.TeamsUpdateLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2536,7 +2536,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsUpdateLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2546,7 +2546,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -2558,7 +2558,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_legacy.Output.Created.Body + let body: Operations.TeamsUpdateLegacy.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2568,7 +2568,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_full.self, + Components.Schemas.TeamFull.self, from: responseBody, transforming: { value in .json(value) @@ -2580,7 +2580,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2590,7 +2590,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2602,7 +2602,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2612,7 +2612,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2624,7 +2624,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2634,7 +2634,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2668,15 +2668,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_legacy.Output { + public func teamsDeleteLegacy(_ input: Operations.TeamsDeleteLegacy.Input) async throws -> Operations.TeamsDeleteLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_legacy.id, + forOperation: Operations.TeamsDeleteLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2696,7 +2696,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2706,7 +2706,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2718,7 +2718,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2728,7 +2728,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2762,15 +2762,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/get(teams/list-discussions-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_discussions_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output { + public func teamsListDiscussionsLegacy(_ input: Operations.TeamsListDiscussionsLegacy.Input) async throws -> Operations.TeamsListDiscussionsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.id, + forOperation: Operations.TeamsListDiscussionsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2790,7 +2790,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2808,13 +2808,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListDiscussionsLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListDiscussionsLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2824,7 +2824,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_discussion].self, + [Components.Schemas.TeamDiscussion].self, from: responseBody, transforming: { value in .json(value) @@ -2863,15 +2863,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/post(teams/create-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_create_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output { + public func teamsCreateDiscussionLegacy(_ input: Operations.TeamsCreateDiscussionLegacy.Input) async throws -> Operations.TeamsCreateDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.TeamsCreateDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2898,7 +2898,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output.Created.Body + let body: Operations.TeamsCreateDiscussionLegacy.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2908,7 +2908,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -2942,16 +2942,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/get(teams/get-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output { + public func teamsGetDiscussionLegacy(_ input: Operations.TeamsGetDiscussionLegacy.Input) async throws -> Operations.TeamsGetDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.TeamsGetDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2969,7 +2969,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsGetDiscussionLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2979,7 +2979,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -3013,16 +3013,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/patch(teams/update-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output { + public func teamsUpdateDiscussionLegacy(_ input: Operations.TeamsUpdateDiscussionLegacy.Input) async throws -> Operations.TeamsUpdateDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.TeamsUpdateDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3051,7 +3051,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsUpdateDiscussionLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3061,7 +3061,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion.self, + Components.Schemas.TeamDiscussion.self, from: responseBody, transforming: { value in .json(value) @@ -3095,16 +3095,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Output { + public func teamsDeleteDiscussionLegacy(_ input: Operations.TeamsDeleteDiscussionLegacy.Input) async throws -> Operations.TeamsDeleteDiscussionLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.id, + forOperation: Operations.TeamsDeleteDiscussionLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3142,16 +3142,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output { + public func teamsListDiscussionCommentsLegacy(_ input: Operations.TeamsListDiscussionCommentsLegacy.Input) async throws -> Operations.TeamsListDiscussionCommentsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.id, + forOperation: Operations.TeamsListDiscussionCommentsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3171,7 +3171,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3189,13 +3189,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3205,7 +3205,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_discussion_hyphen_comment].self, + [Components.Schemas.TeamDiscussionComment].self, from: responseBody, transforming: { value in .json(value) @@ -3244,16 +3244,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func teamsCreateDiscussionCommentLegacy(_ input: Operations.TeamsCreateDiscussionCommentLegacy.Input) async throws -> Operations.TeamsCreateDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.TeamsCreateDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments", parameters: [ - input.path.team_id, - input.path.discussion_number + input.path.teamId, + input.path.discussionNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3280,7 +3280,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body + let body: Operations.TeamsCreateDiscussionCommentLegacy.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3290,7 +3290,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -3324,17 +3324,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func teamsGetDiscussionCommentLegacy(_ input: Operations.TeamsGetDiscussionCommentLegacy.Input) async throws -> Operations.TeamsGetDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.TeamsGetDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments/{}", parameters: [ - input.path.team_id, - input.path.discussion_number, - input.path.comment_number + input.path.teamId, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3352,7 +3352,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsGetDiscussionCommentLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3362,7 +3362,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -3396,17 +3396,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func teamsUpdateDiscussionCommentLegacy(_ input: Operations.TeamsUpdateDiscussionCommentLegacy.Input) async throws -> Operations.TeamsUpdateDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.TeamsUpdateDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments/{}", parameters: [ - input.path.team_id, - input.path.discussion_number, - input.path.comment_number + input.path.teamId, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3433,7 +3433,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsUpdateDiscussionCommentLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3443,7 +3443,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_discussion_hyphen_comment.self, + Components.Schemas.TeamDiscussionComment.self, from: responseBody, transforming: { value in .json(value) @@ -3477,17 +3477,17 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { + public func teamsDeleteDiscussionCommentLegacy(_ input: Operations.TeamsDeleteDiscussionCommentLegacy.Input) async throws -> Operations.TeamsDeleteDiscussionCommentLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.id, + forOperation: Operations.TeamsDeleteDiscussionCommentLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/discussions/{}/comments/{}", parameters: [ - input.path.team_id, - input.path.discussion_number, - input.path.comment_number + input.path.teamId, + input.path.discussionNumber, + input.path.commentNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3523,15 +3523,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/invitations`. /// - Remark: Generated from `#/paths//teams/{team_id}/invitations/get(teams/list-pending-invitations-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output { + public func teamsListPendingInvitationsLegacy(_ input: Operations.TeamsListPendingInvitationsLegacy.Input) async throws -> Operations.TeamsListPendingInvitationsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.id, + forOperation: Operations.TeamsListPendingInvitationsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/invitations", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3544,7 +3544,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3562,13 +3562,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3578,7 +3578,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.organization_hyphen_invitation].self, + [Components.Schemas.OrganizationInvitation].self, from: responseBody, transforming: { value in .json(value) @@ -3613,15 +3613,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/members`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_members_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output { + public func teamsListMembersLegacy(_ input: Operations.TeamsListMembersLegacy.Input) async throws -> Operations.TeamsListMembersLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_members_hyphen_legacy.id, + forOperation: Operations.TeamsListMembersLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/members", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3641,7 +3641,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3659,13 +3659,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListMembersLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListMembersLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3675,7 +3675,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -3690,7 +3690,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3700,7 +3700,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3733,15 +3733,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output { + public func teamsGetMemberLegacy(_ input: Operations.TeamsGetMemberLegacy.Input) async throws -> Operations.TeamsGetMemberLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_member_hyphen_legacy.id, + forOperation: Operations.TeamsGetMemberLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/members/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -3788,15 +3788,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output { + public func teamsAddMemberLegacy(_ input: Operations.TeamsAddMemberLegacy.Input) async throws -> Operations.TeamsAddMemberLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_member_hyphen_legacy.id, + forOperation: Operations.TeamsAddMemberLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/members/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -3821,7 +3821,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3831,7 +3831,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3869,15 +3869,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output { + public func teamsRemoveMemberLegacy(_ input: Operations.TeamsRemoveMemberLegacy.Input) async throws -> Operations.TeamsRemoveMemberLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.id, + forOperation: Operations.TeamsRemoveMemberLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/members/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -3923,15 +3923,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { + public func teamsGetMembershipForUserLegacy(_ input: Operations.TeamsGetMembershipForUserLegacy.Input) async throws -> Operations.TeamsGetMembershipForUserLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.id, + forOperation: Operations.TeamsGetMembershipForUserLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/memberships/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -3950,7 +3950,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsGetMembershipForUserLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3960,7 +3960,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_membership.self, + Components.Schemas.TeamMembership.self, from: responseBody, transforming: { value in .json(value) @@ -3972,7 +3972,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3982,7 +3982,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4023,15 +4023,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { + public func teamsAddOrUpdateMembershipForUserLegacy(_ input: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input) async throws -> Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.id, + forOperation: Operations.TeamsAddOrUpdateMembershipForUserLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/memberships/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -4061,7 +4061,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4071,7 +4071,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_membership.self, + Components.Schemas.TeamMembership.self, from: responseBody, transforming: { value in .json(value) @@ -4087,7 +4087,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4097,7 +4097,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4134,15 +4134,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { + public func teamsRemoveMembershipForUserLegacy(_ input: Operations.TeamsRemoveMembershipForUserLegacy.Input) async throws -> Operations.TeamsRemoveMembershipForUserLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.id, + forOperation: Operations.TeamsRemoveMembershipForUserLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/memberships/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.username ] ) @@ -4180,15 +4180,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/projects`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_projects_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output { + public func teamsListProjectsLegacy(_ input: Operations.TeamsListProjectsLegacy.Input) async throws -> Operations.TeamsListProjectsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.id, + forOperation: Operations.TeamsListProjectsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/projects", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4201,7 +4201,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4219,13 +4219,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListProjectsLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListProjectsLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4235,7 +4235,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_project].self, + [Components.Schemas.TeamProject].self, from: responseBody, transforming: { value in .json(value) @@ -4250,7 +4250,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4260,7 +4260,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4291,16 +4291,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)`. @available(*, deprecated) - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output { + public func teamsCheckPermissionsForProjectLegacy(_ input: Operations.TeamsCheckPermissionsForProjectLegacy.Input) async throws -> Operations.TeamsCheckPermissionsForProjectLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.id, + forOperation: Operations.TeamsCheckPermissionsForProjectLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/projects/{}", parameters: [ - input.path.team_id, - input.path.project_id + input.path.teamId, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4318,7 +4318,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsCheckPermissionsForProjectLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4328,7 +4328,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_project.self, + Components.Schemas.TeamProject.self, from: responseBody, transforming: { value in .json(value) @@ -4361,16 +4361,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output { + public func teamsAddOrUpdateProjectPermissionsLegacy(_ input: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.id, + forOperation: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/projects/{}", parameters: [ - input.path.team_id, - input.path.project_id + input.path.teamId, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4401,7 +4401,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body + let body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4411,7 +4411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body.jsonPayload.self, + Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4423,7 +4423,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4433,7 +4433,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4445,7 +4445,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4455,7 +4455,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4486,16 +4486,16 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_project_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Output { + public func teamsRemoveProjectLegacy(_ input: Operations.TeamsRemoveProjectLegacy.Input) async throws -> Operations.TeamsRemoveProjectLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.id, + forOperation: Operations.TeamsRemoveProjectLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/projects/{}", parameters: [ - input.path.team_id, - input.path.project_id + input.path.teamId, + input.path.projectId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4515,7 +4515,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4525,7 +4525,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4537,7 +4537,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4547,7 +4547,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4577,15 +4577,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_repos_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output { + public func teamsListReposLegacy(_ input: Operations.TeamsListReposLegacy.Input) async throws -> Operations.TeamsListReposLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.id, + forOperation: Operations.TeamsListReposLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/repos", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4598,7 +4598,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4616,13 +4616,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListReposLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListReposLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4632,7 +4632,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.minimal_hyphen_repository].self, + [Components.Schemas.MinimalRepository].self, from: responseBody, transforming: { value in .json(value) @@ -4647,7 +4647,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4657,7 +4657,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4692,15 +4692,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)`. @available(*, deprecated) - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output { + public func teamsCheckPermissionsForRepoLegacy(_ input: Operations.TeamsCheckPermissionsForRepoLegacy.Input) async throws -> Operations.TeamsCheckPermissionsForRepoLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.id, + forOperation: Operations.TeamsCheckPermissionsForRepoLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/repos/{}/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.owner, input.path.repo ] @@ -4720,7 +4720,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsCheckPermissionsForRepoLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4730,7 +4730,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.team_hyphen_repository.self, + Components.Schemas.TeamRepository.self, from: responseBody, transforming: { value in .json(value) @@ -4768,15 +4768,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Output { + public func teamsAddOrUpdateRepoPermissionsLegacy(_ input: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.id, + forOperation: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/repos/{}/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.owner, input.path.repo ] @@ -4809,7 +4809,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4819,7 +4819,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4831,7 +4831,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4841,7 +4841,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4873,15 +4873,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_repo_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Output { + public func teamsRemoveRepoLegacy(_ input: Operations.TeamsRemoveRepoLegacy.Input) async throws -> Operations.TeamsRemoveRepoLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.id, + forOperation: Operations.TeamsRemoveRepoLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/repos/{}/{}", parameters: [ - input.path.team_id, + input.path.teamId, input.path.owner, input.path.repo ] @@ -4917,15 +4917,15 @@ public struct Client: APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_child_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output { + public func teamsListChildLegacy(_ input: Operations.TeamsListChildLegacy.Input) async throws -> Operations.TeamsListChildLegacy.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_child_hyphen_legacy.id, + forOperation: Operations.TeamsListChildLegacy.id, serializer: { input in let path = try converter.renderedPath( template: "/teams/{}/teams", parameters: [ - input.path.team_id + input.path.teamId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4938,7 +4938,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4956,13 +4956,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListChildLegacy.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Body + let body: Operations.TeamsListChildLegacy.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4972,7 +4972,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team].self, + [Components.Schemas.Team].self, from: responseBody, transforming: { value in .json(value) @@ -4987,7 +4987,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4997,7 +4997,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5009,7 +5009,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5019,7 +5019,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5031,7 +5031,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5041,7 +5041,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5074,10 +5074,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/teams`. /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)`. - public func teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func teamsListForAuthenticatedUser(_ input: Operations.TeamsListForAuthenticatedUser.Input) async throws -> Operations.TeamsListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.TeamsListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/teams", @@ -5093,7 +5093,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5111,13 +5111,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.TeamsListForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.TeamsListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5127,7 +5127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.team_hyphen_full].self, + [Components.Schemas.TeamFull].self, from: responseBody, transforming: { value in .json(value) @@ -5144,7 +5144,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5154,7 +5154,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5166,7 +5166,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5176,7 +5176,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/teams/Types.swift b/Sources/teams/Types.swift index 6dfa42c1bf..855c458521 100644 --- a/Sources/teams/Types.swift +++ b/Sources/teams/Types.swift @@ -17,7 +17,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)`. - func teams_sol_list(_ input: Operations.teams_sol_list.Input) async throws -> Operations.teams_sol_list.Output + func teamsList(_ input: Operations.TeamsList.Input) async throws -> Operations.TeamsList.Output /// Create a team /// /// To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://docs.github.com/articles/setting-team-creation-permissions-in-your-organization)." @@ -26,7 +26,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)`. - func teams_sol_create(_ input: Operations.teams_sol_create.Input) async throws -> Operations.teams_sol_create.Output + func teamsCreate(_ input: Operations.TeamsCreate.Input) async throws -> Operations.TeamsCreate.Output /// Get a team by name /// /// Gets a team using the team's `slug`. To create the `slug`, GitHub replaces special characters in the `name` string, changes all words to lowercase, and replaces spaces with a `-` separator. For example, `"My TEam Näme"` would become `my-team-name`. @@ -36,7 +36,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)`. - func teams_sol_get_hyphen_by_hyphen_name(_ input: Operations.teams_sol_get_hyphen_by_hyphen_name.Input) async throws -> Operations.teams_sol_get_hyphen_by_hyphen_name.Output + func teamsGetByName(_ input: Operations.TeamsGetByName.Input) async throws -> Operations.TeamsGetByName.Output /// Update a team /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer. @@ -46,7 +46,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)`. - func teams_sol_update_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_in_hyphen_org.Output + func teamsUpdateInOrg(_ input: Operations.TeamsUpdateInOrg.Input) async throws -> Operations.TeamsUpdateInOrg.Output /// Delete a team /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. @@ -58,7 +58,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)`. - func teams_sol_delete_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_in_hyphen_org.Output + func teamsDeleteInOrg(_ input: Operations.TeamsDeleteInOrg.Input) async throws -> Operations.TeamsDeleteInOrg.Output /// List discussions /// /// List all discussions on a team's page. @@ -70,7 +70,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/get(teams/list-discussions-in-org)`. - func teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output + func teamsListDiscussionsInOrg(_ input: Operations.TeamsListDiscussionsInOrg.Input) async throws -> Operations.TeamsListDiscussionsInOrg.Output /// Create a discussion /// /// Creates a new discussion post on a team's page. @@ -84,7 +84,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/post(teams/create-discussion-in-org)`. - func teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output + func teamsCreateDiscussionInOrg(_ input: Operations.TeamsCreateDiscussionInOrg.Input) async throws -> Operations.TeamsCreateDiscussionInOrg.Output /// Get a discussion /// /// Get a specific discussion on a team's page. @@ -96,7 +96,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/get(teams/get-discussion-in-org)`. - func teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output + func teamsGetDiscussionInOrg(_ input: Operations.TeamsGetDiscussionInOrg.Input) async throws -> Operations.TeamsGetDiscussionInOrg.Output /// Update a discussion /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated. @@ -108,7 +108,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/patch(teams/update-discussion-in-org)`. - func teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output + func teamsUpdateDiscussionInOrg(_ input: Operations.TeamsUpdateDiscussionInOrg.Input) async throws -> Operations.TeamsUpdateDiscussionInOrg.Output /// Delete a discussion /// /// Delete a discussion from a team's page. @@ -120,7 +120,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)`. - func teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Output + func teamsDeleteDiscussionInOrg(_ input: Operations.TeamsDeleteDiscussionInOrg.Input) async throws -> Operations.TeamsDeleteDiscussionInOrg.Output /// List discussion comments /// /// List all comments on a team discussion. @@ -132,7 +132,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-in-org)`. - func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output + func teamsListDiscussionCommentsInOrg(_ input: Operations.TeamsListDiscussionCommentsInOrg.Input) async throws -> Operations.TeamsListDiscussionCommentsInOrg.Output /// Create a discussion comment /// /// Creates a new comment on a team discussion. @@ -146,7 +146,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-in-org)`. - func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func teamsCreateDiscussionCommentInOrg(_ input: Operations.TeamsCreateDiscussionCommentInOrg.Input) async throws -> Operations.TeamsCreateDiscussionCommentInOrg.Output /// Get a discussion comment /// /// Get a specific comment on a team discussion. @@ -158,7 +158,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-in-org)`. - func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func teamsGetDiscussionCommentInOrg(_ input: Operations.TeamsGetDiscussionCommentInOrg.Input) async throws -> Operations.TeamsGetDiscussionCommentInOrg.Output /// Update a discussion comment /// /// Edits the body text of a discussion comment. @@ -170,7 +170,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-in-org)`. - func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func teamsUpdateDiscussionCommentInOrg(_ input: Operations.TeamsUpdateDiscussionCommentInOrg.Input) async throws -> Operations.TeamsUpdateDiscussionCommentInOrg.Output /// Delete a discussion comment /// /// Deletes a comment on a team discussion. @@ -182,7 +182,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)`. - func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output + func teamsDeleteDiscussionCommentInOrg(_ input: Operations.TeamsDeleteDiscussionCommentInOrg.Input) async throws -> Operations.TeamsDeleteDiscussionCommentInOrg.Output /// List pending team invitations /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. @@ -192,7 +192,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/invitations/get(teams/list-pending-invitations-in-org)`. - func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output + func teamsListPendingInvitationsInOrg(_ input: Operations.TeamsListPendingInvitationsInOrg.Input) async throws -> Operations.TeamsListPendingInvitationsInOrg.Output /// List team members /// /// Team members will include the members of child teams. @@ -201,7 +201,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/members/get(teams/list-members-in-org)`. - func teams_sol_list_hyphen_members_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output + func teamsListMembersInOrg(_ input: Operations.TeamsListMembersInOrg.Input) async throws -> Operations.TeamsListMembersInOrg.Output /// Get team membership for a user /// /// Team members will include the members of child teams. @@ -218,7 +218,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)`. - func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output + func teamsGetMembershipForUserInOrg(_ input: Operations.TeamsGetMembershipForUserInOrg.Input) async throws -> Operations.TeamsGetMembershipForUserInOrg.Output /// Add or update team membership for a user /// /// Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. @@ -237,7 +237,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)`. - func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output + func teamsAddOrUpdateMembershipForUserInOrg(_ input: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input) async throws -> Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output /// Remove team membership for a user /// /// To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. @@ -252,7 +252,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)`. - func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output + func teamsRemoveMembershipForUserInOrg(_ input: Operations.TeamsRemoveMembershipForUserInOrg.Input) async throws -> Operations.TeamsRemoveMembershipForUserInOrg.Output /// List team projects /// /// > [!WARNING] @@ -262,7 +262,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)`. @available(*, deprecated) - 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 + func teamsListProjectsInOrg(_ input: Operations.TeamsListProjectsInOrg.Input) async throws -> Operations.TeamsListProjectsInOrg.Output /// Check team permissions for a project /// /// > [!WARNING] @@ -272,7 +272,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)`. @available(*, deprecated) - 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 + func teamsCheckPermissionsForProjectInOrg(_ input: Operations.TeamsCheckPermissionsForProjectInOrg.Input) async throws -> Operations.TeamsCheckPermissionsForProjectInOrg.Output /// Add or update team project permissions /// /// > [!WARNING] @@ -282,7 +282,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)`. @available(*, deprecated) - 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 + func teamsAddOrUpdateProjectPermissionsInOrg(_ input: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output /// Remove a project from a team /// /// > [!WARNING] @@ -292,7 +292,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)`. @available(*, deprecated) - 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 + func teamsRemoveProjectInOrg(_ input: Operations.TeamsRemoveProjectInOrg.Input) async throws -> Operations.TeamsRemoveProjectInOrg.Output /// List team repositories /// /// Lists a team's repositories visible to the authenticated user. @@ -302,7 +302,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/get(teams/list-repos-in-org)`. - func teams_sol_list_hyphen_repos_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output + func teamsListReposInOrg(_ input: Operations.TeamsListReposInOrg.Input) async throws -> Operations.TeamsListReposInOrg.Output /// Check team permissions for a repository /// /// Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. @@ -318,7 +318,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)`. - func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output + func teamsCheckPermissionsForRepoInOrg(_ input: Operations.TeamsCheckPermissionsForRepoInOrg.Input) async throws -> Operations.TeamsCheckPermissionsForRepoInOrg.Output /// Add or update team repository permissions /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." @@ -330,7 +330,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)`. - func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Output + func teamsAddOrUpdateRepoPermissionsInOrg(_ input: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Output /// Remove a repository from a team /// /// If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. @@ -340,7 +340,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)`. - func teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org(_ input: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Output + func teamsRemoveRepoInOrg(_ input: Operations.TeamsRemoveRepoInOrg.Input) async throws -> Operations.TeamsRemoveRepoInOrg.Output /// List child teams /// /// Lists the child teams of the team specified by `{team_slug}`. @@ -350,7 +350,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/teams/get(teams/list-child-in-org)`. - func teams_sol_list_hyphen_child_hyphen_in_hyphen_org(_ input: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output + func teamsListChildInOrg(_ input: Operations.TeamsListChildInOrg.Input) async throws -> Operations.TeamsListChildInOrg.Output /// Get a team (Legacy) /// /// > [!WARNING] @@ -359,7 +359,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @available(*, deprecated) - func teams_sol_get_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_legacy.Output + func teamsGetLegacy(_ input: Operations.TeamsGetLegacy.Input) async throws -> Operations.TeamsGetLegacy.Output /// Update a team (Legacy) /// /// > [!WARNING] @@ -373,7 +373,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)`. @available(*, deprecated) - func teams_sol_update_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_legacy.Output + func teamsUpdateLegacy(_ input: Operations.TeamsUpdateLegacy.Input) async throws -> Operations.TeamsUpdateLegacy.Output /// Delete a team (Legacy) /// /// > [!WARNING] @@ -386,7 +386,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)`. @available(*, deprecated) - func teams_sol_delete_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_legacy.Output + func teamsDeleteLegacy(_ input: Operations.TeamsDeleteLegacy.Input) async throws -> Operations.TeamsDeleteLegacy.Output /// List discussions (Legacy) /// /// > [!WARNING] @@ -399,7 +399,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/get(teams/list-discussions-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_discussions_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output + func teamsListDiscussionsLegacy(_ input: Operations.TeamsListDiscussionsLegacy.Input) async throws -> Operations.TeamsListDiscussionsLegacy.Output /// Create a discussion (Legacy) /// /// > [!WARNING] @@ -414,7 +414,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/post(teams/create-discussion-legacy)`. @available(*, deprecated) - func teams_sol_create_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output + func teamsCreateDiscussionLegacy(_ input: Operations.TeamsCreateDiscussionLegacy.Input) async throws -> Operations.TeamsCreateDiscussionLegacy.Output /// Get a discussion (Legacy) /// /// > [!WARNING] @@ -427,7 +427,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/get(teams/get-discussion-legacy)`. @available(*, deprecated) - func teams_sol_get_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output + func teamsGetDiscussionLegacy(_ input: Operations.TeamsGetDiscussionLegacy.Input) async throws -> Operations.TeamsGetDiscussionLegacy.Output /// Update a discussion (Legacy) /// /// > [!WARNING] @@ -440,7 +440,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/patch(teams/update-discussion-legacy)`. @available(*, deprecated) - func teams_sol_update_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output + func teamsUpdateDiscussionLegacy(_ input: Operations.TeamsUpdateDiscussionLegacy.Input) async throws -> Operations.TeamsUpdateDiscussionLegacy.Output /// Delete a discussion (Legacy) /// /// > [!WARNING] @@ -453,7 +453,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)`. @available(*, deprecated) - func teams_sol_delete_hyphen_discussion_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Output + func teamsDeleteDiscussionLegacy(_ input: Operations.TeamsDeleteDiscussionLegacy.Input) async throws -> Operations.TeamsDeleteDiscussionLegacy.Output /// List discussion comments (Legacy) /// /// > [!WARNING] @@ -466,7 +466,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output + func teamsListDiscussionCommentsLegacy(_ input: Operations.TeamsListDiscussionCommentsLegacy.Input) async throws -> Operations.TeamsListDiscussionCommentsLegacy.Output /// Create a discussion comment (Legacy) /// /// > [!WARNING] @@ -481,7 +481,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-legacy)`. @available(*, deprecated) - func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func teamsCreateDiscussionCommentLegacy(_ input: Operations.TeamsCreateDiscussionCommentLegacy.Input) async throws -> Operations.TeamsCreateDiscussionCommentLegacy.Output /// Get a discussion comment (Legacy) /// /// > [!WARNING] @@ -494,7 +494,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-legacy)`. @available(*, deprecated) - func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func teamsGetDiscussionCommentLegacy(_ input: Operations.TeamsGetDiscussionCommentLegacy.Input) async throws -> Operations.TeamsGetDiscussionCommentLegacy.Output /// Update a discussion comment (Legacy) /// /// > [!WARNING] @@ -507,7 +507,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-legacy)`. @available(*, deprecated) - func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func teamsUpdateDiscussionCommentLegacy(_ input: Operations.TeamsUpdateDiscussionCommentLegacy.Input) async throws -> Operations.TeamsUpdateDiscussionCommentLegacy.Output /// Delete a discussion comment (Legacy) /// /// > [!WARNING] @@ -520,7 +520,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)`. @available(*, deprecated) - func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy(_ input: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Output + func teamsDeleteDiscussionCommentLegacy(_ input: Operations.TeamsDeleteDiscussionCommentLegacy.Input) async throws -> Operations.TeamsDeleteDiscussionCommentLegacy.Output /// List pending team invitations (Legacy) /// /// > [!WARNING] @@ -531,7 +531,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/invitations`. /// - Remark: Generated from `#/paths//teams/{team_id}/invitations/get(teams/list-pending-invitations-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output + func teamsListPendingInvitationsLegacy(_ input: Operations.TeamsListPendingInvitationsLegacy.Input) async throws -> Operations.TeamsListPendingInvitationsLegacy.Output /// List team members (Legacy) /// /// > [!WARNING] @@ -542,7 +542,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/members`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_members_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output + func teamsListMembersLegacy(_ input: Operations.TeamsListMembersLegacy.Input) async throws -> Operations.TeamsListMembersLegacy.Output /// Get team member (Legacy) /// /// The "Get team member" endpoint (described below) is closing down. @@ -554,7 +554,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)`. @available(*, deprecated) - func teams_sol_get_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output + func teamsGetMemberLegacy(_ input: Operations.TeamsGetMemberLegacy.Input) async throws -> Operations.TeamsGetMemberLegacy.Output /// Add team member (Legacy) /// /// The "Add team member" endpoint (described below) is closing down. @@ -573,7 +573,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)`. @available(*, deprecated) - func teams_sol_add_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output + func teamsAddMemberLegacy(_ input: Operations.TeamsAddMemberLegacy.Input) async throws -> Operations.TeamsAddMemberLegacy.Output /// Remove team member (Legacy) /// /// The "Remove team member" endpoint (described below) is closing down. @@ -590,7 +590,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)`. @available(*, deprecated) - func teams_sol_remove_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output + func teamsRemoveMemberLegacy(_ input: Operations.TeamsRemoveMemberLegacy.Input) async throws -> Operations.TeamsRemoveMemberLegacy.Output /// Get team membership for a user (Legacy) /// /// > [!WARNING] @@ -608,7 +608,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)`. @available(*, deprecated) - func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output + func teamsGetMembershipForUserLegacy(_ input: Operations.TeamsGetMembershipForUserLegacy.Input) async throws -> Operations.TeamsGetMembershipForUserLegacy.Output /// Add or update team membership for a user (Legacy) /// /// > [!WARNING] @@ -628,7 +628,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)`. @available(*, deprecated) - func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output + func teamsAddOrUpdateMembershipForUserLegacy(_ input: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input) async throws -> Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output /// Remove team membership for a user (Legacy) /// /// > [!WARNING] @@ -644,7 +644,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)`. @available(*, deprecated) - func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output + func teamsRemoveMembershipForUserLegacy(_ input: Operations.TeamsRemoveMembershipForUserLegacy.Input) async throws -> Operations.TeamsRemoveMembershipForUserLegacy.Output /// List team projects (Legacy) /// /// > [!WARNING] @@ -654,7 +654,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/projects`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_projects_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output + func teamsListProjectsLegacy(_ input: Operations.TeamsListProjectsLegacy.Input) async throws -> Operations.TeamsListProjectsLegacy.Output /// Check team permissions for a project (Legacy) /// /// > [!WARNING] @@ -664,7 +664,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)`. @available(*, deprecated) - func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output + func teamsCheckPermissionsForProjectLegacy(_ input: Operations.TeamsCheckPermissionsForProjectLegacy.Input) async throws -> Operations.TeamsCheckPermissionsForProjectLegacy.Output /// Add or update team project permissions (Legacy) /// /// > [!WARNING] @@ -674,7 +674,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)`. @available(*, deprecated) - func teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output + func teamsAddOrUpdateProjectPermissionsLegacy(_ input: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output /// Remove a project from a team (Legacy) /// /// > [!WARNING] @@ -684,7 +684,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)`. @available(*, deprecated) - func teams_sol_remove_hyphen_project_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Output + func teamsRemoveProjectLegacy(_ input: Operations.TeamsRemoveProjectLegacy.Input) async throws -> Operations.TeamsRemoveProjectLegacy.Output /// List team repositories (Legacy) /// /// > [!WARNING] @@ -693,7 +693,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_repos_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output + func teamsListReposLegacy(_ input: Operations.TeamsListReposLegacy.Input) async throws -> Operations.TeamsListReposLegacy.Output /// Check team permissions for a repository (Legacy) /// /// > [!WARNING] @@ -707,7 +707,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)`. @available(*, deprecated) - func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy(_ input: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output + func teamsCheckPermissionsForRepoLegacy(_ input: Operations.TeamsCheckPermissionsForRepoLegacy.Input) async throws -> Operations.TeamsCheckPermissionsForRepoLegacy.Output /// Add or update team repository permissions (Legacy) /// /// > [!WARNING] @@ -720,7 +720,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)`. @available(*, deprecated) - func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Output + func teamsAddOrUpdateRepoPermissionsLegacy(_ input: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Output /// Remove a repository from a team (Legacy) /// /// > [!WARNING] @@ -731,7 +731,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)`. @available(*, deprecated) - func teams_sol_remove_hyphen_repo_hyphen_legacy(_ input: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Output + func teamsRemoveRepoLegacy(_ input: Operations.TeamsRemoveRepoLegacy.Input) async throws -> Operations.TeamsRemoveRepoLegacy.Output /// List child teams (Legacy) /// /// > [!WARNING] @@ -740,7 +740,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. @available(*, deprecated) - func teams_sol_list_hyphen_child_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output + func teamsListChildLegacy(_ input: Operations.TeamsListChildLegacy.Input) async throws -> Operations.TeamsListChildLegacy.Output /// List teams for the authenticated user /// /// List all of the teams across all of the organizations to which the authenticated @@ -752,7 +752,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/teams`. /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)`. - func teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func teamsListForAuthenticatedUser(_ input: Operations.TeamsListForAuthenticatedUser.Input) async throws -> Operations.TeamsListForAuthenticatedUser.Output } /// Convenience overloads for operation inputs. @@ -763,12 +763,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)`. - public func teams_sol_list( - path: Operations.teams_sol_list.Input.Path, - query: Operations.teams_sol_list.Input.Query = .init(), - headers: Operations.teams_sol_list.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list.Output { - try await teams_sol_list(Operations.teams_sol_list.Input( + public func teamsList( + path: Operations.TeamsList.Input.Path, + query: Operations.TeamsList.Input.Query = .init(), + headers: Operations.TeamsList.Input.Headers = .init() + ) async throws -> Operations.TeamsList.Output { + try await teamsList(Operations.TeamsList.Input( path: path, query: query, headers: headers @@ -782,12 +782,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)`. - public func teams_sol_create( - path: Operations.teams_sol_create.Input.Path, - headers: Operations.teams_sol_create.Input.Headers = .init(), - body: Operations.teams_sol_create.Input.Body - ) async throws -> Operations.teams_sol_create.Output { - try await teams_sol_create(Operations.teams_sol_create.Input( + public func teamsCreate( + path: Operations.TeamsCreate.Input.Path, + headers: Operations.TeamsCreate.Input.Headers = .init(), + body: Operations.TeamsCreate.Input.Body + ) async throws -> Operations.TeamsCreate.Output { + try await teamsCreate(Operations.TeamsCreate.Input( path: path, headers: headers, body: body @@ -802,11 +802,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)`. - public func teams_sol_get_hyphen_by_hyphen_name( - path: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Path, - headers: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_by_hyphen_name.Output { - try await teams_sol_get_hyphen_by_hyphen_name(Operations.teams_sol_get_hyphen_by_hyphen_name.Input( + public func teamsGetByName( + path: Operations.TeamsGetByName.Input.Path, + headers: Operations.TeamsGetByName.Input.Headers = .init() + ) async throws -> Operations.TeamsGetByName.Output { + try await teamsGetByName(Operations.TeamsGetByName.Input( path: path, headers: headers )) @@ -820,12 +820,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)`. - public func teams_sol_update_hyphen_in_hyphen_org( - path: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body? = nil - ) async throws -> Operations.teams_sol_update_hyphen_in_hyphen_org.Output { - try await teams_sol_update_hyphen_in_hyphen_org(Operations.teams_sol_update_hyphen_in_hyphen_org.Input( + public func teamsUpdateInOrg( + path: Operations.TeamsUpdateInOrg.Input.Path, + headers: Operations.TeamsUpdateInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateInOrg.Input.Body? = nil + ) async throws -> Operations.TeamsUpdateInOrg.Output { + try await teamsUpdateInOrg(Operations.TeamsUpdateInOrg.Input( path: path, headers: headers, body: body @@ -842,8 +842,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)`. - public func teams_sol_delete_hyphen_in_hyphen_org(path: Operations.teams_sol_delete_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_delete_hyphen_in_hyphen_org.Output { - try await teams_sol_delete_hyphen_in_hyphen_org(Operations.teams_sol_delete_hyphen_in_hyphen_org.Input(path: path)) + public func teamsDeleteInOrg(path: Operations.TeamsDeleteInOrg.Input.Path) async throws -> Operations.TeamsDeleteInOrg.Output { + try await teamsDeleteInOrg(Operations.TeamsDeleteInOrg.Input(path: path)) } /// List discussions /// @@ -856,12 +856,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/get(teams/list-discussions-in-org)`. - public func teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input( + public func teamsListDiscussionsInOrg( + path: Operations.TeamsListDiscussionsInOrg.Input.Path, + query: Operations.TeamsListDiscussionsInOrg.Input.Query = .init(), + headers: Operations.TeamsListDiscussionsInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListDiscussionsInOrg.Output { + try await teamsListDiscussionsInOrg(Operations.TeamsListDiscussionsInOrg.Input( path: path, query: query, headers: headers @@ -880,12 +880,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/post(teams/create-discussion-in-org)`. - public func teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org(Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input( + public func teamsCreateDiscussionInOrg( + path: Operations.TeamsCreateDiscussionInOrg.Input.Path, + headers: Operations.TeamsCreateDiscussionInOrg.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionInOrg.Input.Body + ) async throws -> Operations.TeamsCreateDiscussionInOrg.Output { + try await teamsCreateDiscussionInOrg(Operations.TeamsCreateDiscussionInOrg.Input( path: path, headers: headers, body: body @@ -902,11 +902,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/get(teams/get-discussion-in-org)`. - public func teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org(Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input( + public func teamsGetDiscussionInOrg( + path: Operations.TeamsGetDiscussionInOrg.Input.Path, + headers: Operations.TeamsGetDiscussionInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsGetDiscussionInOrg.Output { + try await teamsGetDiscussionInOrg(Operations.TeamsGetDiscussionInOrg.Input( path: path, headers: headers )) @@ -922,12 +922,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/patch(teams/update-discussion-in-org)`. - public func teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Body? = nil - ) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org(Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input( + public func teamsUpdateDiscussionInOrg( + path: Operations.TeamsUpdateDiscussionInOrg.Input.Path, + headers: Operations.TeamsUpdateDiscussionInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionInOrg.Input.Body? = nil + ) async throws -> Operations.TeamsUpdateDiscussionInOrg.Output { + try await teamsUpdateDiscussionInOrg(Operations.TeamsUpdateDiscussionInOrg.Input( path: path, headers: headers, body: body @@ -944,8 +944,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)`. - public func teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Output { - try await teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org(Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input(path: path)) + public func teamsDeleteDiscussionInOrg(path: Operations.TeamsDeleteDiscussionInOrg.Input.Path) async throws -> Operations.TeamsDeleteDiscussionInOrg.Output { + try await teamsDeleteDiscussionInOrg(Operations.TeamsDeleteDiscussionInOrg.Input(path: path)) } /// List discussion comments /// @@ -958,12 +958,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-in-org)`. - public func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input( + public func teamsListDiscussionCommentsInOrg( + path: Operations.TeamsListDiscussionCommentsInOrg.Input.Path, + query: Operations.TeamsListDiscussionCommentsInOrg.Input.Query = .init(), + headers: Operations.TeamsListDiscussionCommentsInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListDiscussionCommentsInOrg.Output { + try await teamsListDiscussionCommentsInOrg(Operations.TeamsListDiscussionCommentsInOrg.Input( path: path, query: query, headers: headers @@ -982,12 +982,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-in-org)`. - public func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input( + public func teamsCreateDiscussionCommentInOrg( + path: Operations.TeamsCreateDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsCreateDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionCommentInOrg.Input.Body + ) async throws -> Operations.TeamsCreateDiscussionCommentInOrg.Output { + try await teamsCreateDiscussionCommentInOrg(Operations.TeamsCreateDiscussionCommentInOrg.Input( path: path, headers: headers, body: body @@ -1004,11 +1004,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-in-org)`. - public func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input( + public func teamsGetDiscussionCommentInOrg( + path: Operations.TeamsGetDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsGetDiscussionCommentInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsGetDiscussionCommentInOrg.Output { + try await teamsGetDiscussionCommentInOrg(Operations.TeamsGetDiscussionCommentInOrg.Input( path: path, headers: headers )) @@ -1024,12 +1024,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-in-org)`. - public func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body - ) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input( + public func teamsUpdateDiscussionCommentInOrg( + path: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Body + ) async throws -> Operations.TeamsUpdateDiscussionCommentInOrg.Output { + try await teamsUpdateDiscussionCommentInOrg(Operations.TeamsUpdateDiscussionCommentInOrg.Input( path: path, headers: headers, body: body @@ -1046,8 +1046,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)`. - public func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output { - try await teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org(Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input(path: path)) + public func teamsDeleteDiscussionCommentInOrg(path: Operations.TeamsDeleteDiscussionCommentInOrg.Input.Path) async throws -> Operations.TeamsDeleteDiscussionCommentInOrg.Output { + try await teamsDeleteDiscussionCommentInOrg(Operations.TeamsDeleteDiscussionCommentInOrg.Input(path: path)) } /// List pending team invitations /// @@ -1058,12 +1058,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/invitations/get(teams/list-pending-invitations-in-org)`. - public func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input( + public func teamsListPendingInvitationsInOrg( + path: Operations.TeamsListPendingInvitationsInOrg.Input.Path, + query: Operations.TeamsListPendingInvitationsInOrg.Input.Query = .init(), + headers: Operations.TeamsListPendingInvitationsInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListPendingInvitationsInOrg.Output { + try await teamsListPendingInvitationsInOrg(Operations.TeamsListPendingInvitationsInOrg.Input( path: path, query: query, headers: headers @@ -1077,12 +1077,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/members/get(teams/list-members-in-org)`. - public func teams_sol_list_hyphen_members_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_members_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input( + public func teamsListMembersInOrg( + path: Operations.TeamsListMembersInOrg.Input.Path, + query: Operations.TeamsListMembersInOrg.Input.Query = .init(), + headers: Operations.TeamsListMembersInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListMembersInOrg.Output { + try await teamsListMembersInOrg(Operations.TeamsListMembersInOrg.Input( path: path, query: query, headers: headers @@ -1104,11 +1104,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)`. - public func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org( - path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { - try await teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input( + public func teamsGetMembershipForUserInOrg( + path: Operations.TeamsGetMembershipForUserInOrg.Input.Path, + headers: Operations.TeamsGetMembershipForUserInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsGetMembershipForUserInOrg.Output { + try await teamsGetMembershipForUserInOrg(Operations.TeamsGetMembershipForUserInOrg.Input( path: path, headers: headers )) @@ -1131,12 +1131,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)`. - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input( + public func teamsAddOrUpdateMembershipForUserInOrg( + path: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Path, + headers: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output { + try await teamsAddOrUpdateMembershipForUserInOrg(Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input( path: path, headers: headers, body: body @@ -1156,8 +1156,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)`. - public func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { - try await teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input(path: path)) + public func teamsRemoveMembershipForUserInOrg(path: Operations.TeamsRemoveMembershipForUserInOrg.Input.Path) async throws -> Operations.TeamsRemoveMembershipForUserInOrg.Output { + try await teamsRemoveMembershipForUserInOrg(Operations.TeamsRemoveMembershipForUserInOrg.Input(path: path)) } /// List team projects /// @@ -1168,12 +1168,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)`. @available(*, deprecated) - public func teams_sol_list_hyphen_projects_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_projects_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input( + public func teamsListProjectsInOrg( + path: Operations.TeamsListProjectsInOrg.Input.Path, + query: Operations.TeamsListProjectsInOrg.Input.Query = .init(), + headers: Operations.TeamsListProjectsInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListProjectsInOrg.Output { + try await teamsListProjectsInOrg(Operations.TeamsListProjectsInOrg.Input( path: path, query: query, headers: headers @@ -1188,11 +1188,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)`. @available(*, deprecated) - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output { - try await teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input( + public func teamsCheckPermissionsForProjectInOrg( + path: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Path, + headers: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsCheckPermissionsForProjectInOrg.Output { + try await teamsCheckPermissionsForProjectInOrg(Operations.TeamsCheckPermissionsForProjectInOrg.Input( path: path, headers: headers )) @@ -1206,12 +1206,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input( + public func teamsAddOrUpdateProjectPermissionsInOrg( + path: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Path, + headers: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output { + try await teamsAddOrUpdateProjectPermissionsInOrg(Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input( path: path, headers: headers, body: body @@ -1226,8 +1226,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_project_hyphen_in_hyphen_org(path: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Output { - try await teams_sol_remove_hyphen_project_hyphen_in_hyphen_org(Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Input(path: path)) + public func teamsRemoveProjectInOrg(path: Operations.TeamsRemoveProjectInOrg.Input.Path) async throws -> Operations.TeamsRemoveProjectInOrg.Output { + try await teamsRemoveProjectInOrg(Operations.TeamsRemoveProjectInOrg.Input(path: path)) } /// List team repositories /// @@ -1238,12 +1238,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/get(teams/list-repos-in-org)`. - public func teams_sol_list_hyphen_repos_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_repos_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input( + public func teamsListReposInOrg( + path: Operations.TeamsListReposInOrg.Input.Path, + query: Operations.TeamsListReposInOrg.Input.Query = .init(), + headers: Operations.TeamsListReposInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListReposInOrg.Output { + try await teamsListReposInOrg(Operations.TeamsListReposInOrg.Input( path: path, query: query, headers: headers @@ -1264,11 +1264,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)`. - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output { - try await teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input( + public func teamsCheckPermissionsForRepoInOrg( + path: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Path, + headers: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsCheckPermissionsForRepoInOrg.Output { + try await teamsCheckPermissionsForRepoInOrg(Operations.TeamsCheckPermissionsForRepoInOrg.Input( path: path, headers: headers )) @@ -1284,11 +1284,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)`. - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Path, - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input( + public func teamsAddOrUpdateRepoPermissionsInOrg( + path: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Path, + body: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Output { + try await teamsAddOrUpdateRepoPermissionsInOrg(Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input( path: path, body: body )) @@ -1302,8 +1302,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)`. - public func teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org(path: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Output { - try await teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org(Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input(path: path)) + public func teamsRemoveRepoInOrg(path: Operations.TeamsRemoveRepoInOrg.Input.Path) async throws -> Operations.TeamsRemoveRepoInOrg.Output { + try await teamsRemoveRepoInOrg(Operations.TeamsRemoveRepoInOrg.Input(path: path)) } /// List child teams /// @@ -1314,12 +1314,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/teams/get(teams/list-child-in-org)`. - public func teams_sol_list_hyphen_child_hyphen_in_hyphen_org( - path: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output { - try await teams_sol_list_hyphen_child_hyphen_in_hyphen_org(Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input( + public func teamsListChildInOrg( + path: Operations.TeamsListChildInOrg.Input.Path, + query: Operations.TeamsListChildInOrg.Input.Query = .init(), + headers: Operations.TeamsListChildInOrg.Input.Headers = .init() + ) async throws -> Operations.TeamsListChildInOrg.Output { + try await teamsListChildInOrg(Operations.TeamsListChildInOrg.Input( path: path, query: query, headers: headers @@ -1333,11 +1333,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_legacy( - path: Operations.teams_sol_get_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_legacy.Output { - try await teams_sol_get_hyphen_legacy(Operations.teams_sol_get_hyphen_legacy.Input( + public func teamsGetLegacy( + path: Operations.TeamsGetLegacy.Input.Path, + headers: Operations.TeamsGetLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsGetLegacy.Output { + try await teamsGetLegacy(Operations.TeamsGetLegacy.Input( path: path, headers: headers )) @@ -1355,12 +1355,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_legacy( - path: Operations.teams_sol_update_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_legacy.Input.Body - ) async throws -> Operations.teams_sol_update_hyphen_legacy.Output { - try await teams_sol_update_hyphen_legacy(Operations.teams_sol_update_hyphen_legacy.Input( + public func teamsUpdateLegacy( + path: Operations.TeamsUpdateLegacy.Input.Path, + headers: Operations.TeamsUpdateLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateLegacy.Input.Body + ) async throws -> Operations.TeamsUpdateLegacy.Output { + try await teamsUpdateLegacy(Operations.TeamsUpdateLegacy.Input( path: path, headers: headers, body: body @@ -1378,11 +1378,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_legacy( - path: Operations.teams_sol_delete_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_delete_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_delete_hyphen_legacy.Output { - try await teams_sol_delete_hyphen_legacy(Operations.teams_sol_delete_hyphen_legacy.Input( + public func teamsDeleteLegacy( + path: Operations.TeamsDeleteLegacy.Input.Path, + headers: Operations.TeamsDeleteLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsDeleteLegacy.Output { + try await teamsDeleteLegacy(Operations.TeamsDeleteLegacy.Input( path: path, headers: headers )) @@ -1399,12 +1399,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/get(teams/list-discussions-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_discussions_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output { - try await teams_sol_list_hyphen_discussions_hyphen_legacy(Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input( + public func teamsListDiscussionsLegacy( + path: Operations.TeamsListDiscussionsLegacy.Input.Path, + query: Operations.TeamsListDiscussionsLegacy.Input.Query = .init(), + headers: Operations.TeamsListDiscussionsLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListDiscussionsLegacy.Output { + try await teamsListDiscussionsLegacy(Operations.TeamsListDiscussionsLegacy.Input( path: path, query: query, headers: headers @@ -1424,12 +1424,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/post(teams/create-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_create_hyphen_discussion_hyphen_legacy( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Body - ) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output { - try await teams_sol_create_hyphen_discussion_hyphen_legacy(Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input( + public func teamsCreateDiscussionLegacy( + path: Operations.TeamsCreateDiscussionLegacy.Input.Path, + headers: Operations.TeamsCreateDiscussionLegacy.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionLegacy.Input.Body + ) async throws -> Operations.TeamsCreateDiscussionLegacy.Output { + try await teamsCreateDiscussionLegacy(Operations.TeamsCreateDiscussionLegacy.Input( path: path, headers: headers, body: body @@ -1447,11 +1447,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/get(teams/get-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_discussion_hyphen_legacy( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output { - try await teams_sol_get_hyphen_discussion_hyphen_legacy(Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input( + public func teamsGetDiscussionLegacy( + path: Operations.TeamsGetDiscussionLegacy.Input.Path, + headers: Operations.TeamsGetDiscussionLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsGetDiscussionLegacy.Output { + try await teamsGetDiscussionLegacy(Operations.TeamsGetDiscussionLegacy.Input( path: path, headers: headers )) @@ -1468,12 +1468,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/patch(teams/update-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_discussion_hyphen_legacy( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Body? = nil - ) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output { - try await teams_sol_update_hyphen_discussion_hyphen_legacy(Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input( + public func teamsUpdateDiscussionLegacy( + path: Operations.TeamsUpdateDiscussionLegacy.Input.Path, + headers: Operations.TeamsUpdateDiscussionLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionLegacy.Input.Body? = nil + ) async throws -> Operations.TeamsUpdateDiscussionLegacy.Output { + try await teamsUpdateDiscussionLegacy(Operations.TeamsUpdateDiscussionLegacy.Input( path: path, headers: headers, body: body @@ -1491,8 +1491,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_discussion_hyphen_legacy(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Output { - try await teams_sol_delete_hyphen_discussion_hyphen_legacy(Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input(path: path)) + public func teamsDeleteDiscussionLegacy(path: Operations.TeamsDeleteDiscussionLegacy.Input.Path) async throws -> Operations.TeamsDeleteDiscussionLegacy.Output { + try await teamsDeleteDiscussionLegacy(Operations.TeamsDeleteDiscussionLegacy.Input(path: path)) } /// List discussion comments (Legacy) /// @@ -1506,12 +1506,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output { - try await teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy(Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input( + public func teamsListDiscussionCommentsLegacy( + path: Operations.TeamsListDiscussionCommentsLegacy.Input.Path, + query: Operations.TeamsListDiscussionCommentsLegacy.Input.Query = .init(), + headers: Operations.TeamsListDiscussionCommentsLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListDiscussionCommentsLegacy.Output { + try await teamsListDiscussionCommentsLegacy(Operations.TeamsListDiscussionCommentsLegacy.Input( path: path, query: query, headers: headers @@ -1531,12 +1531,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body - ) async throws -> Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input( + public func teamsCreateDiscussionCommentLegacy( + path: Operations.TeamsCreateDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsCreateDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionCommentLegacy.Input.Body + ) async throws -> Operations.TeamsCreateDiscussionCommentLegacy.Output { + try await teamsCreateDiscussionCommentLegacy(Operations.TeamsCreateDiscussionCommentLegacy.Input( path: path, headers: headers, body: body @@ -1554,11 +1554,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input( + public func teamsGetDiscussionCommentLegacy( + path: Operations.TeamsGetDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsGetDiscussionCommentLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsGetDiscussionCommentLegacy.Output { + try await teamsGetDiscussionCommentLegacy(Operations.TeamsGetDiscussionCommentLegacy.Input( path: path, headers: headers )) @@ -1575,12 +1575,12 @@ extension APIProtocol { /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body - ) async throws -> Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input( + public func teamsUpdateDiscussionCommentLegacy( + path: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Body + ) async throws -> Operations.TeamsUpdateDiscussionCommentLegacy.Output { + try await teamsUpdateDiscussionCommentLegacy(Operations.TeamsUpdateDiscussionCommentLegacy.Input( path: path, headers: headers, body: body @@ -1598,8 +1598,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)`. @available(*, deprecated) - public func teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Output { - try await teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy(Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input(path: path)) + public func teamsDeleteDiscussionCommentLegacy(path: Operations.TeamsDeleteDiscussionCommentLegacy.Input.Path) async throws -> Operations.TeamsDeleteDiscussionCommentLegacy.Output { + try await teamsDeleteDiscussionCommentLegacy(Operations.TeamsDeleteDiscussionCommentLegacy.Input(path: path)) } /// List pending team invitations (Legacy) /// @@ -1611,12 +1611,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/invitations`. /// - Remark: Generated from `#/paths//teams/{team_id}/invitations/get(teams/list-pending-invitations-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output { - try await teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy(Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input( + public func teamsListPendingInvitationsLegacy( + path: Operations.TeamsListPendingInvitationsLegacy.Input.Path, + query: Operations.TeamsListPendingInvitationsLegacy.Input.Query = .init(), + headers: Operations.TeamsListPendingInvitationsLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListPendingInvitationsLegacy.Output { + try await teamsListPendingInvitationsLegacy(Operations.TeamsListPendingInvitationsLegacy.Input( path: path, query: query, headers: headers @@ -1632,12 +1632,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/members`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_members_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output { - try await teams_sol_list_hyphen_members_hyphen_legacy(Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input( + public func teamsListMembersLegacy( + path: Operations.TeamsListMembersLegacy.Input.Path, + query: Operations.TeamsListMembersLegacy.Input.Query = .init(), + headers: Operations.TeamsListMembersLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListMembersLegacy.Output { + try await teamsListMembersLegacy(Operations.TeamsListMembersLegacy.Input( path: path, query: query, headers: headers @@ -1654,8 +1654,8 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_member_hyphen_legacy(path: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output { - try await teams_sol_get_hyphen_member_hyphen_legacy(Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input(path: path)) + public func teamsGetMemberLegacy(path: Operations.TeamsGetMemberLegacy.Input.Path) async throws -> Operations.TeamsGetMemberLegacy.Output { + try await teamsGetMemberLegacy(Operations.TeamsGetMemberLegacy.Input(path: path)) } /// Add team member (Legacy) /// @@ -1675,11 +1675,11 @@ extension APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_member_hyphen_legacy( - path: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output { - try await teams_sol_add_hyphen_member_hyphen_legacy(Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input( + public func teamsAddMemberLegacy( + path: Operations.TeamsAddMemberLegacy.Input.Path, + headers: Operations.TeamsAddMemberLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsAddMemberLegacy.Output { + try await teamsAddMemberLegacy(Operations.TeamsAddMemberLegacy.Input( path: path, headers: headers )) @@ -1700,8 +1700,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_member_hyphen_legacy(path: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output { - try await teams_sol_remove_hyphen_member_hyphen_legacy(Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input(path: path)) + public func teamsRemoveMemberLegacy(path: Operations.TeamsRemoveMemberLegacy.Input.Path) async throws -> Operations.TeamsRemoveMemberLegacy.Output { + try await teamsRemoveMemberLegacy(Operations.TeamsRemoveMemberLegacy.Input(path: path)) } /// Get team membership for a user (Legacy) /// @@ -1720,11 +1720,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy( - path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { - try await teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input( + public func teamsGetMembershipForUserLegacy( + path: Operations.TeamsGetMembershipForUserLegacy.Input.Path, + headers: Operations.TeamsGetMembershipForUserLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsGetMembershipForUserLegacy.Output { + try await teamsGetMembershipForUserLegacy(Operations.TeamsGetMembershipForUserLegacy.Input( path: path, headers: headers )) @@ -1748,12 +1748,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input( + public func teamsAddOrUpdateMembershipForUserLegacy( + path: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output { + try await teamsAddOrUpdateMembershipForUserLegacy(Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input( path: path, headers: headers, body: body @@ -1774,8 +1774,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output { - try await teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input(path: path)) + public func teamsRemoveMembershipForUserLegacy(path: Operations.TeamsRemoveMembershipForUserLegacy.Input.Path) async throws -> Operations.TeamsRemoveMembershipForUserLegacy.Output { + try await teamsRemoveMembershipForUserLegacy(Operations.TeamsRemoveMembershipForUserLegacy.Input(path: path)) } /// List team projects (Legacy) /// @@ -1786,12 +1786,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/projects`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_projects_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output { - try await teams_sol_list_hyphen_projects_hyphen_legacy(Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input( + public func teamsListProjectsLegacy( + path: Operations.TeamsListProjectsLegacy.Input.Path, + query: Operations.TeamsListProjectsLegacy.Input.Query = .init(), + headers: Operations.TeamsListProjectsLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListProjectsLegacy.Output { + try await teamsListProjectsLegacy(Operations.TeamsListProjectsLegacy.Input( path: path, query: query, headers: headers @@ -1806,11 +1806,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)`. @available(*, deprecated) - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output { - try await teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input( + public func teamsCheckPermissionsForProjectLegacy( + path: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Path, + headers: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsCheckPermissionsForProjectLegacy.Output { + try await teamsCheckPermissionsForProjectLegacy(Operations.TeamsCheckPermissionsForProjectLegacy.Input( path: path, headers: headers )) @@ -1824,12 +1824,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input( + public func teamsAddOrUpdateProjectPermissionsLegacy( + path: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output { + try await teamsAddOrUpdateProjectPermissionsLegacy(Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input( path: path, headers: headers, body: body @@ -1844,11 +1844,11 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_project_hyphen_legacy( - path: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Output { - try await teams_sol_remove_hyphen_project_hyphen_legacy(Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input( + public func teamsRemoveProjectLegacy( + path: Operations.TeamsRemoveProjectLegacy.Input.Path, + headers: Operations.TeamsRemoveProjectLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsRemoveProjectLegacy.Output { + try await teamsRemoveProjectLegacy(Operations.TeamsRemoveProjectLegacy.Input( path: path, headers: headers )) @@ -1861,12 +1861,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_repos_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output { - try await teams_sol_list_hyphen_repos_hyphen_legacy(Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input( + public func teamsListReposLegacy( + path: Operations.TeamsListReposLegacy.Input.Path, + query: Operations.TeamsListReposLegacy.Input.Query = .init(), + headers: Operations.TeamsListReposLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListReposLegacy.Output { + try await teamsListReposLegacy(Operations.TeamsListReposLegacy.Input( path: path, query: query, headers: headers @@ -1885,11 +1885,11 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)`. @available(*, deprecated) - public func teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output { - try await teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input( + public func teamsCheckPermissionsForRepoLegacy( + path: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Path, + headers: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsCheckPermissionsForRepoLegacy.Output { + try await teamsCheckPermissionsForRepoLegacy(Operations.TeamsCheckPermissionsForRepoLegacy.Input( path: path, headers: headers )) @@ -1906,12 +1906,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)`. @available(*, deprecated) - public func teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body? = nil - ) async throws -> Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Output { - try await teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input( + public func teamsAddOrUpdateRepoPermissionsLegacy( + path: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body? = nil + ) async throws -> Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Output { + try await teamsAddOrUpdateRepoPermissionsLegacy(Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input( path: path, headers: headers, body: body @@ -1927,8 +1927,8 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)`. @available(*, deprecated) - public func teams_sol_remove_hyphen_repo_hyphen_legacy(path: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input.Path) async throws -> Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Output { - try await teams_sol_remove_hyphen_repo_hyphen_legacy(Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input(path: path)) + public func teamsRemoveRepoLegacy(path: Operations.TeamsRemoveRepoLegacy.Input.Path) async throws -> Operations.TeamsRemoveRepoLegacy.Output { + try await teamsRemoveRepoLegacy(Operations.TeamsRemoveRepoLegacy.Input(path: path)) } /// List child teams (Legacy) /// @@ -1938,12 +1938,12 @@ extension APIProtocol { /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. @available(*, deprecated) - public func teams_sol_list_hyphen_child_hyphen_legacy( - path: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output { - try await teams_sol_list_hyphen_child_hyphen_legacy(Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input( + public func teamsListChildLegacy( + path: Operations.TeamsListChildLegacy.Input.Path, + query: Operations.TeamsListChildLegacy.Input.Query = .init(), + headers: Operations.TeamsListChildLegacy.Input.Headers = .init() + ) async throws -> Operations.TeamsListChildLegacy.Output { + try await teamsListChildLegacy(Operations.TeamsListChildLegacy.Input( path: path, query: query, headers: headers @@ -1960,11 +1960,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/teams`. /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)`. - public func teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func teamsListForAuthenticatedUser( + query: Operations.TeamsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.TeamsListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.TeamsListForAuthenticatedUser.Output { + try await teamsListForAuthenticatedUser(Operations.TeamsListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -1973,6 +1973,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -1988,7 +1997,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -1998,171 +2007,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -2170,30 +2179,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -2232,9 +2241,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -2249,7 +2258,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -2268,34 +2277,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -2305,142 +2314,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -2448,48 +2457,48 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -2499,42 +2508,42 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/reaction-rollup`. - public struct reaction_hyphen_rollup: Codable, Hashable, Sendable { + public struct ReactionRollup: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/reaction-rollup/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/reaction-rollup/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/+1`. public var _plus_1: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/-1`. @@ -2551,11 +2560,11 @@ public enum Components { public var eyes: Swift.Int /// - Remark: Generated from `#/components/schemas/reaction-rollup/rocket`. public var rocket: Swift.Int - /// Creates a new `reaction_hyphen_rollup`. + /// Creates a new `ReactionRollup`. /// /// - Parameters: /// - url: - /// - total_count: + /// - totalCount: /// - _plus_1: /// - _hyphen_1: /// - laugh: @@ -2566,7 +2575,7 @@ public enum Components { /// - rocket: public init( url: Swift.String, - total_count: Swift.Int, + totalCount: Swift.Int, _plus_1: Swift.Int, _hyphen_1: Swift.Int, laugh: Swift.Int, @@ -2577,7 +2586,7 @@ public enum Components { rocket: Swift.Int ) { self.url = url - self.total_count = total_count + self.totalCount = totalCount self._plus_1 = _plus_1 self._hyphen_1 = _hyphen_1 self.laugh = laugh @@ -2589,7 +2598,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case url - case total_count + case totalCount = "total_count" case _plus_1 = "+1" case _hyphen_1 = "-1" case laugh @@ -2601,21 +2610,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2623,21 +2632,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2645,27 +2654,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2675,21 +2684,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2697,21 +2706,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2719,21 +2728,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2741,21 +2750,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2763,62 +2772,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -2826,121 +2835,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -2948,13 +2957,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -2965,7 +2974,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2995,447 +3004,447 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -3455,86 +3464,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -3544,11 +3553,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -3559,7 +3568,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -3589,86 +3598,86 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// Organization Invitation /// /// - Remark: Generated from `#/components/schemas/organization-invitation`. - public struct organization_hyphen_invitation: Codable, Hashable, Sendable { + public struct OrganizationInvitation: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/organization-invitation/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/organization-invitation/login`. @@ -3678,104 +3687,104 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-invitation/role`. public var role: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/failed_at`. - public var failed_at: Swift.String? + public var failedAt: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-invitation/failed_reason`. - public var failed_reason: Swift.String? + public var failedReason: Swift.String? /// - Remark: Generated from `#/components/schemas/organization-invitation/inviter`. - public var inviter: Components.Schemas.simple_hyphen_user + public var inviter: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/organization-invitation/team_count`. - public var team_count: Swift.Int + public var teamCount: Swift.Int /// - Remark: Generated from `#/components/schemas/organization-invitation/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/invitation_teams_url`. - public var invitation_teams_url: Swift.String + public var invitationTeamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/organization-invitation/invitation_source`. - public var invitation_source: Swift.String? - /// Creates a new `organization_hyphen_invitation`. + public var invitationSource: Swift.String? + /// Creates a new `OrganizationInvitation`. /// /// - Parameters: /// - id: /// - login: /// - email: /// - role: - /// - created_at: - /// - failed_at: - /// - failed_reason: + /// - createdAt: + /// - failedAt: + /// - failedReason: /// - inviter: - /// - team_count: - /// - node_id: - /// - invitation_teams_url: - /// - invitation_source: + /// - teamCount: + /// - nodeId: + /// - invitationTeamsUrl: + /// - invitationSource: public init( id: Swift.Int64, login: Swift.String? = nil, email: Swift.String? = nil, role: Swift.String, - created_at: Swift.String, - failed_at: Swift.String? = nil, - failed_reason: Swift.String? = nil, - inviter: Components.Schemas.simple_hyphen_user, - team_count: Swift.Int, - node_id: Swift.String, - invitation_teams_url: Swift.String, - invitation_source: Swift.String? = nil + createdAt: Swift.String, + failedAt: Swift.String? = nil, + failedReason: Swift.String? = nil, + inviter: Components.Schemas.SimpleUser, + teamCount: Swift.Int, + nodeId: Swift.String, + invitationTeamsUrl: Swift.String, + invitationSource: Swift.String? = nil ) { self.id = id self.login = login self.email = email self.role = role - self.created_at = created_at - self.failed_at = failed_at - self.failed_reason = failed_reason + self.createdAt = createdAt + self.failedAt = failedAt + self.failedReason = failedReason self.inviter = inviter - self.team_count = team_count - self.node_id = node_id - self.invitation_teams_url = invitation_teams_url - self.invitation_source = invitation_source + self.teamCount = teamCount + self.nodeId = nodeId + self.invitationTeamsUrl = invitationTeamsUrl + self.invitationSource = invitationSource } public enum CodingKeys: String, CodingKey { case id case login case email case role - case created_at - case failed_at - case failed_reason + case createdAt = "created_at" + case failedAt = "failed_at" + case failedReason = "failed_reason" case inviter - case team_count - case node_id - case invitation_teams_url - case invitation_source + case teamCount = "team_count" + case nodeId = "node_id" + case invitationTeamsUrl = "invitation_teams_url" + case invitationSource = "invitation_source" } } /// Team Organization /// /// - Remark: Generated from `#/components/schemas/team-organization`. - public struct team_hyphen_organization: Codable, Hashable, Sendable { + public struct TeamOrganization: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-organization/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/public_members_url`. - public var public_members_url: Swift.String + public var publicMembersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/name`. @@ -3789,331 +3798,331 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-organization/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/is_verified`. - public var is_verified: Swift.Bool? + public var isVerified: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/has_organization_projects`. - public var has_organization_projects: Swift.Bool + public var hasOrganizationProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-organization/has_repository_projects`. - public var has_repository_projects: Swift.Bool + public var hasRepositoryProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-organization/public_repos`. - public var public_repos: Swift.Int + public var publicRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/public_gists`. - public var public_gists: Swift.Int + public var publicGists: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/followers`. public var followers: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/following`. public var following: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-organization/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/total_private_repos`. - public var total_private_repos: Swift.Int? + public var totalPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/owned_private_repos`. - public var owned_private_repos: Swift.Int? + public var ownedPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/private_gists`. - public var private_gists: Swift.Int? + public var privateGists: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/disk_usage`. - public var disk_usage: Swift.Int? + public var diskUsage: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/collaborators`. public var collaborators: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/billing_email`. - public var billing_email: Swift.String? + public var billingEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/plan`. - public struct planPayload: Codable, Hashable, Sendable { + public struct PlanPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-organization/plan/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team-organization/plan/space`. public var space: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/plan/private_repos`. - public var private_repos: Swift.Int + public var privateRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/team-organization/plan/filled_seats`. - public var filled_seats: Swift.Int? + public var filledSeats: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-organization/plan/seats`. public var seats: Swift.Int? - /// Creates a new `planPayload`. + /// Creates a new `PlanPayload`. /// /// - Parameters: /// - name: /// - space: - /// - private_repos: - /// - filled_seats: + /// - privateRepos: + /// - filledSeats: /// - seats: public init( name: Swift.String, space: Swift.Int, - private_repos: Swift.Int, - filled_seats: Swift.Int? = nil, + privateRepos: Swift.Int, + filledSeats: Swift.Int? = nil, seats: Swift.Int? = nil ) { self.name = name self.space = space - self.private_repos = private_repos - self.filled_seats = filled_seats + self.privateRepos = privateRepos + self.filledSeats = filledSeats self.seats = seats } public enum CodingKeys: String, CodingKey { case name case space - case private_repos - case filled_seats + case privateRepos = "private_repos" + case filledSeats = "filled_seats" case seats } } /// - Remark: Generated from `#/components/schemas/team-organization/plan`. - public var plan: Components.Schemas.team_hyphen_organization.planPayload? + public var plan: Components.Schemas.TeamOrganization.PlanPayload? /// - Remark: Generated from `#/components/schemas/team-organization/default_repository_permission`. - public var default_repository_permission: Swift.String? + public var defaultRepositoryPermission: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_repositories`. - public var members_can_create_repositories: Swift.Bool? + public var membersCanCreateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/two_factor_requirement_enabled`. - public var two_factor_requirement_enabled: Swift.Bool? + public var twoFactorRequirementEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_allowed_repository_creation_type`. - public var members_allowed_repository_creation_type: Swift.String? + public var membersAllowedRepositoryCreationType: Swift.String? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_public_repositories`. - public var members_can_create_public_repositories: Swift.Bool? + public var membersCanCreatePublicRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_private_repositories`. - public var members_can_create_private_repositories: Swift.Bool? + public var membersCanCreatePrivateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_internal_repositories`. - public var members_can_create_internal_repositories: Swift.Bool? + public var membersCanCreateInternalRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_pages`. - public var members_can_create_pages: Swift.Bool? + public var membersCanCreatePages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_public_pages`. - public var members_can_create_public_pages: Swift.Bool? + public var membersCanCreatePublicPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_create_private_pages`. - public var members_can_create_private_pages: Swift.Bool? + public var membersCanCreatePrivatePages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/members_can_fork_private_repositories`. - public var members_can_fork_private_repositories: Swift.Bool? + public var membersCanForkPrivateRepositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-organization/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-organization/archived_at`. - public var archived_at: Foundation.Date? - /// Creates a new `team_hyphen_organization`. + public var archivedAt: Foundation.Date? + /// Creates a new `TeamOrganization`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - repos_url: - /// - events_url: - /// - hooks_url: - /// - issues_url: - /// - members_url: - /// - public_members_url: - /// - avatar_url: + /// - reposUrl: + /// - eventsUrl: + /// - hooksUrl: + /// - issuesUrl: + /// - membersUrl: + /// - publicMembersUrl: + /// - avatarUrl: /// - description: /// - name: /// - company: /// - blog: /// - location: /// - email: - /// - twitter_username: - /// - is_verified: - /// - has_organization_projects: - /// - has_repository_projects: - /// - public_repos: - /// - public_gists: + /// - twitterUsername: + /// - isVerified: + /// - hasOrganizationProjects: + /// - hasRepositoryProjects: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - html_url: - /// - created_at: + /// - htmlUrl: + /// - createdAt: /// - _type: - /// - total_private_repos: - /// - owned_private_repos: - /// - private_gists: - /// - disk_usage: + /// - totalPrivateRepos: + /// - ownedPrivateRepos: + /// - privateGists: + /// - diskUsage: /// - collaborators: - /// - billing_email: + /// - billingEmail: /// - plan: - /// - default_repository_permission: - /// - members_can_create_repositories: - /// - two_factor_requirement_enabled: - /// - members_allowed_repository_creation_type: - /// - members_can_create_public_repositories: - /// - members_can_create_private_repositories: - /// - members_can_create_internal_repositories: - /// - members_can_create_pages: - /// - members_can_create_public_pages: - /// - members_can_create_private_pages: - /// - members_can_fork_private_repositories: - /// - web_commit_signoff_required: - /// - updated_at: - /// - archived_at: + /// - defaultRepositoryPermission: + /// - membersCanCreateRepositories: + /// - twoFactorRequirementEnabled: + /// - membersAllowedRepositoryCreationType: + /// - membersCanCreatePublicRepositories: + /// - membersCanCreatePrivateRepositories: + /// - membersCanCreateInternalRepositories: + /// - membersCanCreatePages: + /// - membersCanCreatePublicPages: + /// - membersCanCreatePrivatePages: + /// - membersCanForkPrivateRepositories: + /// - webCommitSignoffRequired: + /// - updatedAt: + /// - archivedAt: public init( login: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - hooks_url: Swift.String, - issues_url: Swift.String, - members_url: Swift.String, - public_members_url: Swift.String, - avatar_url: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + hooksUrl: Swift.String, + issuesUrl: Swift.String, + membersUrl: Swift.String, + publicMembersUrl: Swift.String, + avatarUrl: Swift.String, description: Swift.String? = nil, name: Swift.String? = nil, company: Swift.String? = nil, blog: Swift.String? = nil, location: Swift.String? = nil, email: Swift.String? = nil, - twitter_username: Swift.String? = nil, - is_verified: Swift.Bool? = nil, - has_organization_projects: Swift.Bool, - has_repository_projects: Swift.Bool, - public_repos: Swift.Int, - public_gists: Swift.Int, + twitterUsername: Swift.String? = nil, + isVerified: Swift.Bool? = nil, + hasOrganizationProjects: Swift.Bool, + hasRepositoryProjects: Swift.Bool, + publicRepos: Swift.Int, + publicGists: Swift.Int, followers: Swift.Int, following: Swift.Int, - html_url: Swift.String, - created_at: Foundation.Date, + htmlUrl: Swift.String, + createdAt: Foundation.Date, _type: Swift.String, - total_private_repos: Swift.Int? = nil, - owned_private_repos: Swift.Int? = nil, - private_gists: Swift.Int? = nil, - disk_usage: Swift.Int? = nil, + totalPrivateRepos: Swift.Int? = nil, + ownedPrivateRepos: Swift.Int? = nil, + privateGists: Swift.Int? = nil, + diskUsage: Swift.Int? = nil, collaborators: Swift.Int? = nil, - billing_email: Swift.String? = nil, - plan: Components.Schemas.team_hyphen_organization.planPayload? = nil, - default_repository_permission: Swift.String? = nil, - members_can_create_repositories: Swift.Bool? = nil, - two_factor_requirement_enabled: Swift.Bool? = nil, - members_allowed_repository_creation_type: Swift.String? = nil, - members_can_create_public_repositories: Swift.Bool? = nil, - members_can_create_private_repositories: Swift.Bool? = nil, - members_can_create_internal_repositories: Swift.Bool? = nil, - members_can_create_pages: Swift.Bool? = nil, - members_can_create_public_pages: Swift.Bool? = nil, - members_can_create_private_pages: Swift.Bool? = nil, - members_can_fork_private_repositories: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - updated_at: Foundation.Date, - archived_at: Foundation.Date? = nil + billingEmail: Swift.String? = nil, + plan: Components.Schemas.TeamOrganization.PlanPayload? = nil, + defaultRepositoryPermission: Swift.String? = nil, + membersCanCreateRepositories: Swift.Bool? = nil, + twoFactorRequirementEnabled: Swift.Bool? = nil, + membersAllowedRepositoryCreationType: Swift.String? = nil, + membersCanCreatePublicRepositories: Swift.Bool? = nil, + membersCanCreatePrivateRepositories: Swift.Bool? = nil, + membersCanCreateInternalRepositories: Swift.Bool? = nil, + membersCanCreatePages: Swift.Bool? = nil, + membersCanCreatePublicPages: Swift.Bool? = nil, + membersCanCreatePrivatePages: Swift.Bool? = nil, + membersCanForkPrivateRepositories: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + updatedAt: Foundation.Date, + archivedAt: Foundation.Date? = nil ) { self.login = login self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repos_url = repos_url - self.events_url = events_url - self.hooks_url = hooks_url - self.issues_url = issues_url - self.members_url = members_url - self.public_members_url = public_members_url - self.avatar_url = avatar_url + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.hooksUrl = hooksUrl + self.issuesUrl = issuesUrl + self.membersUrl = membersUrl + self.publicMembersUrl = publicMembersUrl + self.avatarUrl = avatarUrl self.description = description self.name = name self.company = company self.blog = blog self.location = location self.email = email - self.twitter_username = twitter_username - self.is_verified = is_verified - self.has_organization_projects = has_organization_projects - self.has_repository_projects = has_repository_projects - self.public_repos = public_repos - self.public_gists = public_gists + self.twitterUsername = twitterUsername + self.isVerified = isVerified + self.hasOrganizationProjects = hasOrganizationProjects + self.hasRepositoryProjects = hasRepositoryProjects + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.html_url = html_url - self.created_at = created_at + self.htmlUrl = htmlUrl + self.createdAt = createdAt self._type = _type - self.total_private_repos = total_private_repos - self.owned_private_repos = owned_private_repos - self.private_gists = private_gists - self.disk_usage = disk_usage + self.totalPrivateRepos = totalPrivateRepos + self.ownedPrivateRepos = ownedPrivateRepos + self.privateGists = privateGists + self.diskUsage = diskUsage self.collaborators = collaborators - self.billing_email = billing_email + self.billingEmail = billingEmail self.plan = plan - self.default_repository_permission = default_repository_permission - self.members_can_create_repositories = members_can_create_repositories - self.two_factor_requirement_enabled = two_factor_requirement_enabled - self.members_allowed_repository_creation_type = members_allowed_repository_creation_type - self.members_can_create_public_repositories = members_can_create_public_repositories - self.members_can_create_private_repositories = members_can_create_private_repositories - self.members_can_create_internal_repositories = members_can_create_internal_repositories - self.members_can_create_pages = members_can_create_pages - self.members_can_create_public_pages = members_can_create_public_pages - self.members_can_create_private_pages = members_can_create_private_pages - self.members_can_fork_private_repositories = members_can_fork_private_repositories - self.web_commit_signoff_required = web_commit_signoff_required - self.updated_at = updated_at - self.archived_at = archived_at + self.defaultRepositoryPermission = defaultRepositoryPermission + self.membersCanCreateRepositories = membersCanCreateRepositories + self.twoFactorRequirementEnabled = twoFactorRequirementEnabled + self.membersAllowedRepositoryCreationType = membersAllowedRepositoryCreationType + self.membersCanCreatePublicRepositories = membersCanCreatePublicRepositories + self.membersCanCreatePrivateRepositories = membersCanCreatePrivateRepositories + self.membersCanCreateInternalRepositories = membersCanCreateInternalRepositories + self.membersCanCreatePages = membersCanCreatePages + self.membersCanCreatePublicPages = membersCanCreatePublicPages + self.membersCanCreatePrivatePages = membersCanCreatePrivatePages + self.membersCanForkPrivateRepositories = membersCanForkPrivateRepositories + self.webCommitSignoffRequired = webCommitSignoffRequired + self.updatedAt = updatedAt + self.archivedAt = archivedAt } public enum CodingKeys: String, CodingKey { case login case id - case node_id + case nodeId = "node_id" case url - case repos_url - case events_url - case hooks_url - case issues_url - case members_url - case public_members_url - case avatar_url + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case hooksUrl = "hooks_url" + case issuesUrl = "issues_url" + case membersUrl = "members_url" + case publicMembersUrl = "public_members_url" + case avatarUrl = "avatar_url" case description case name case company case blog case location case email - case twitter_username - case is_verified - case has_organization_projects - case has_repository_projects - case public_repos - case public_gists + case twitterUsername = "twitter_username" + case isVerified = "is_verified" + case hasOrganizationProjects = "has_organization_projects" + case hasRepositoryProjects = "has_repository_projects" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case html_url - case created_at + case htmlUrl = "html_url" + case createdAt = "created_at" case _type = "type" - case total_private_repos - case owned_private_repos - case private_gists - case disk_usage + case totalPrivateRepos = "total_private_repos" + case ownedPrivateRepos = "owned_private_repos" + case privateGists = "private_gists" + case diskUsage = "disk_usage" case collaborators - case billing_email + case billingEmail = "billing_email" case plan - case default_repository_permission - case members_can_create_repositories - case two_factor_requirement_enabled - case members_allowed_repository_creation_type - case members_can_create_public_repositories - case members_can_create_private_repositories - case members_can_create_internal_repositories - case members_can_create_pages - case members_can_create_public_pages - case members_can_create_private_pages - case members_can_fork_private_repositories - case web_commit_signoff_required - case updated_at - case archived_at + case defaultRepositoryPermission = "default_repository_permission" + case membersCanCreateRepositories = "members_can_create_repositories" + case twoFactorRequirementEnabled = "two_factor_requirement_enabled" + case membersAllowedRepositoryCreationType = "members_allowed_repository_creation_type" + case membersCanCreatePublicRepositories = "members_can_create_public_repositories" + case membersCanCreatePrivateRepositories = "members_can_create_private_repositories" + case membersCanCreateInternalRepositories = "members_can_create_internal_repositories" + case membersCanCreatePages = "members_can_create_pages" + case membersCanCreatePublicPages = "members_can_create_public_pages" + case membersCanCreatePrivatePages = "members_can_create_private_pages" + case membersCanForkPrivateRepositories = "members_can_fork_private_repositories" + case webCommitSignoffRequired = "web_commit_signoff_required" + case updatedAt = "updated_at" + case archivedAt = "archived_at" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team-full`. - public struct team_hyphen_full: Codable, Hashable, Sendable { + public struct TeamFull: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/team-full/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-full/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/team-full/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-full/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/team-full/name`. @@ -4125,162 +4134,162 @@ public enum Components { /// The level of privacy this team should have /// /// - Remark: Generated from `#/components/schemas/team-full/privacy`. - @frozen public enum privacyPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivacyPayload: String, Codable, Hashable, Sendable, CaseIterable { case closed = "closed" case secret = "secret" } /// The level of privacy this team should have /// /// - Remark: Generated from `#/components/schemas/team-full/privacy`. - public var privacy: Components.Schemas.team_hyphen_full.privacyPayload? + public var privacy: Components.Schemas.TeamFull.PrivacyPayload? /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/team-full/notification_setting`. - @frozen public enum notification_settingPayload: String, Codable, Hashable, Sendable { - case notifications_enabled = "notifications_enabled" - case notifications_disabled = "notifications_disabled" + @frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable { + case notificationsEnabled = "notifications_enabled" + case notificationsDisabled = "notifications_disabled" } /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/team-full/notification_setting`. - public var notification_setting: Components.Schemas.team_hyphen_full.notification_settingPayload? + public var notificationSetting: Components.Schemas.TeamFull.NotificationSettingPayload? /// Permission that the team will have for its repositories /// /// - Remark: Generated from `#/components/schemas/team-full/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team-full/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-full/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-full/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? + public var parent: Components.Schemas.NullableTeamSimple? /// - Remark: Generated from `#/components/schemas/team-full/members_count`. - public var members_count: Swift.Int + public var membersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-full/repos_count`. - public var repos_count: Swift.Int + public var reposCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-full/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-full/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-full/organization`. - public var organization: Components.Schemas.team_hyphen_organization + public var organization: Components.Schemas.TeamOrganization /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/team-full/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `team_hyphen_full`. + public var ldapDn: Swift.String? + /// Creates a new `TeamFull`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - html_url: + /// - htmlUrl: /// - name: Name of the team /// - slug: /// - description: /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set + /// - notificationSetting: The notification setting the team has set /// - permission: Permission that the team will have for its repositories - /// - members_url: - /// - repositories_url: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: - /// - members_count: - /// - repos_count: - /// - created_at: - /// - updated_at: + /// - membersCount: + /// - reposCount: + /// - createdAt: + /// - updatedAt: /// - organization: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - html_url: Swift.String, + htmlUrl: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, - privacy: Components.Schemas.team_hyphen_full.privacyPayload? = nil, - notification_setting: Components.Schemas.team_hyphen_full.notification_settingPayload? = nil, + privacy: Components.Schemas.TeamFull.PrivacyPayload? = nil, + notificationSetting: Components.Schemas.TeamFull.NotificationSettingPayload? = nil, permission: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil, - members_count: Swift.Int, - repos_count: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - organization: Components.Schemas.team_hyphen_organization, - ldap_dn: Swift.String? = nil + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil, + membersCount: Swift.Int, + reposCount: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + organization: Components.Schemas.TeamOrganization, + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission - self.members_url = members_url - self.repositories_url = repositories_url + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent - self.members_count = members_count - self.repos_count = repos_count - self.created_at = created_at - self.updated_at = updated_at + self.membersCount = membersCount + self.reposCount = reposCount + self.createdAt = createdAt + self.updatedAt = updatedAt self.organization = organization - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case html_url + case htmlUrl = "html_url" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission - case members_url - case repositories_url + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent - case members_count - case repos_count - case created_at - case updated_at + case membersCount = "members_count" + case reposCount = "repos_count" + case createdAt = "created_at" + case updatedAt = "updated_at" case organization - case ldap_dn + case ldapDn = "ldap_dn" } } /// A team discussion is a persistent record of a free-form conversation within a team. /// /// - Remark: Generated from `#/components/schemas/team-discussion`. - public struct team_hyphen_discussion: Codable, Hashable, Sendable { + public struct TeamDiscussion: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-discussion/author`. - public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var author: Components.Schemas.NullableSimpleUser? /// The main text of the discussion. /// /// - Remark: Generated from `#/components/schemas/team-discussion/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/body_html`. - public var body_html: Swift.String + public var bodyHtml: Swift.String /// The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. /// /// - Remark: Generated from `#/components/schemas/team-discussion/body_version`. - public var body_version: Swift.String + public var bodyVersion: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/comments_count`. - public var comments_count: Swift.Int + public var commentsCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-discussion/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-discussion/last_edited_at`. - public var last_edited_at: Foundation.Date? + public var lastEditedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/team-discussion/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The unique sequence number of a team discussion. /// /// - Remark: Generated from `#/components/schemas/team-discussion/number`. @@ -4294,94 +4303,94 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-discussion/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-discussion/team_url`. - public var team_url: Swift.String + public var teamUrl: Swift.String /// The title of the discussion. /// /// - Remark: Generated from `#/components/schemas/team-discussion/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-discussion/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `team_hyphen_discussion`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `TeamDiscussion`. /// /// - Parameters: /// - author: /// - body: The main text of the discussion. - /// - body_html: - /// - body_version: The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. - /// - comments_count: - /// - comments_url: - /// - created_at: - /// - last_edited_at: - /// - html_url: - /// - node_id: + /// - bodyHtml: + /// - bodyVersion: The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. + /// - commentsCount: + /// - commentsUrl: + /// - createdAt: + /// - lastEditedAt: + /// - htmlUrl: + /// - nodeId: /// - number: The unique sequence number of a team discussion. /// - pinned: Whether or not this discussion should be pinned for easy retrieval. /// - _private: Whether or not this discussion should be restricted to team members and organization owners. - /// - team_url: + /// - teamUrl: /// - title: The title of the discussion. - /// - updated_at: + /// - updatedAt: /// - url: /// - reactions: public init( - author: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + author: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String, - body_html: Swift.String, - body_version: Swift.String, - comments_count: Swift.Int, - comments_url: Swift.String, - created_at: Foundation.Date, - last_edited_at: Foundation.Date? = nil, - html_url: Swift.String, - node_id: Swift.String, + bodyHtml: Swift.String, + bodyVersion: Swift.String, + commentsCount: Swift.Int, + commentsUrl: Swift.String, + createdAt: Foundation.Date, + lastEditedAt: Foundation.Date? = nil, + htmlUrl: Swift.String, + nodeId: Swift.String, number: Swift.Int, pinned: Swift.Bool, _private: Swift.Bool, - team_url: Swift.String, + teamUrl: Swift.String, title: Swift.String, - updated_at: Foundation.Date, + updatedAt: Foundation.Date, url: Swift.String, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + reactions: Components.Schemas.ReactionRollup? = nil ) { self.author = author self.body = body - self.body_html = body_html - self.body_version = body_version - self.comments_count = comments_count - self.comments_url = comments_url - self.created_at = created_at - self.last_edited_at = last_edited_at - self.html_url = html_url - self.node_id = node_id + self.bodyHtml = bodyHtml + self.bodyVersion = bodyVersion + self.commentsCount = commentsCount + self.commentsUrl = commentsUrl + self.createdAt = createdAt + self.lastEditedAt = lastEditedAt + self.htmlUrl = htmlUrl + self.nodeId = nodeId self.number = number self.pinned = pinned self._private = _private - self.team_url = team_url + self.teamUrl = teamUrl self.title = title - self.updated_at = updated_at + self.updatedAt = updatedAt self.url = url self.reactions = reactions } public enum CodingKeys: String, CodingKey { case author case body - case body_html - case body_version - case comments_count - case comments_url - case created_at - case last_edited_at - case html_url - case node_id + case bodyHtml = "body_html" + case bodyVersion = "body_version" + case commentsCount = "comments_count" + case commentsUrl = "comments_url" + case createdAt = "created_at" + case lastEditedAt = "last_edited_at" + case htmlUrl = "html_url" + case nodeId = "node_id" case number case pinned case _private = "private" - case team_url + case teamUrl = "team_url" case title - case updated_at + case updatedAt = "updated_at" case url case reactions } @@ -4389,96 +4398,96 @@ public enum Components { /// A reply to a discussion within a team. /// /// - Remark: Generated from `#/components/schemas/team-discussion-comment`. - public struct team_hyphen_discussion_hyphen_comment: Codable, Hashable, Sendable { + public struct TeamDiscussionComment: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-discussion-comment/author`. - public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var author: Components.Schemas.NullableSimpleUser? /// The main text of the comment. /// /// - Remark: Generated from `#/components/schemas/team-discussion-comment/body`. public var body: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion-comment/body_html`. - public var body_html: Swift.String + public var bodyHtml: Swift.String /// The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. /// /// - Remark: Generated from `#/components/schemas/team-discussion-comment/body_version`. - public var body_version: Swift.String + public var bodyVersion: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion-comment/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-discussion-comment/last_edited_at`. - public var last_edited_at: Foundation.Date? + public var lastEditedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/team-discussion-comment/discussion_url`. - public var discussion_url: Swift.String + public var discussionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion-comment/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion-comment/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The unique sequence number of a team discussion comment. /// /// - Remark: Generated from `#/components/schemas/team-discussion-comment/number`. public var number: Swift.Int /// - Remark: Generated from `#/components/schemas/team-discussion-comment/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/team-discussion-comment/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-discussion-comment/reactions`. - public var reactions: Components.Schemas.reaction_hyphen_rollup? - /// Creates a new `team_hyphen_discussion_hyphen_comment`. + public var reactions: Components.Schemas.ReactionRollup? + /// Creates a new `TeamDiscussionComment`. /// /// - Parameters: /// - author: /// - body: The main text of the comment. - /// - body_html: - /// - body_version: The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. - /// - created_at: - /// - last_edited_at: - /// - discussion_url: - /// - html_url: - /// - node_id: + /// - bodyHtml: + /// - bodyVersion: The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. + /// - createdAt: + /// - lastEditedAt: + /// - discussionUrl: + /// - htmlUrl: + /// - nodeId: /// - number: The unique sequence number of a team discussion comment. - /// - updated_at: + /// - updatedAt: /// - url: /// - reactions: public init( - author: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + author: Components.Schemas.NullableSimpleUser? = nil, body: Swift.String, - body_html: Swift.String, - body_version: Swift.String, - created_at: Foundation.Date, - last_edited_at: Foundation.Date? = nil, - discussion_url: Swift.String, - html_url: Swift.String, - node_id: Swift.String, + bodyHtml: Swift.String, + bodyVersion: Swift.String, + createdAt: Foundation.Date, + lastEditedAt: Foundation.Date? = nil, + discussionUrl: Swift.String, + htmlUrl: Swift.String, + nodeId: Swift.String, number: Swift.Int, - updated_at: Foundation.Date, + updatedAt: Foundation.Date, url: Swift.String, - reactions: Components.Schemas.reaction_hyphen_rollup? = nil + reactions: Components.Schemas.ReactionRollup? = nil ) { self.author = author self.body = body - self.body_html = body_html - self.body_version = body_version - self.created_at = created_at - self.last_edited_at = last_edited_at - self.discussion_url = discussion_url - self.html_url = html_url - self.node_id = node_id + self.bodyHtml = bodyHtml + self.bodyVersion = bodyVersion + self.createdAt = createdAt + self.lastEditedAt = lastEditedAt + self.discussionUrl = discussionUrl + self.htmlUrl = htmlUrl + self.nodeId = nodeId self.number = number - self.updated_at = updated_at + self.updatedAt = updatedAt self.url = url self.reactions = reactions } public enum CodingKeys: String, CodingKey { case author case body - case body_html - case body_version - case created_at - case last_edited_at - case discussion_url - case html_url - case node_id + case bodyHtml = "body_html" + case bodyVersion = "body_version" + case createdAt = "created_at" + case lastEditedAt = "last_edited_at" + case discussionUrl = "discussion_url" + case htmlUrl = "html_url" + case nodeId = "node_id" case number - case updated_at + case updatedAt = "updated_at" case url case reactions } @@ -4486,32 +4495,32 @@ public enum Components { /// Team Membership /// /// - Remark: Generated from `#/components/schemas/team-membership`. - public struct team_hyphen_membership: Codable, Hashable, Sendable { + public struct TeamMembership: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-membership/url`. public var url: Swift.String /// The role of the user in the team. /// /// - Remark: Generated from `#/components/schemas/team-membership/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case member = "member" case maintainer = "maintainer" } /// The role of the user in the team. /// /// - Remark: Generated from `#/components/schemas/team-membership/role`. - public var role: Components.Schemas.team_hyphen_membership.rolePayload + public var role: Components.Schemas.TeamMembership.RolePayload /// The state of the user's membership in the team. /// /// - Remark: Generated from `#/components/schemas/team-membership/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case active = "active" case pending = "pending" } /// The state of the user's membership in the team. /// /// - Remark: Generated from `#/components/schemas/team-membership/state`. - public var state: Components.Schemas.team_hyphen_membership.statePayload - /// Creates a new `team_hyphen_membership`. + public var state: Components.Schemas.TeamMembership.StatePayload + /// Creates a new `TeamMembership`. /// /// - Parameters: /// - url: @@ -4519,8 +4528,8 @@ public enum Components { /// - state: The state of the user's membership in the team. public init( url: Swift.String, - role: Components.Schemas.team_hyphen_membership.rolePayload, - state: Components.Schemas.team_hyphen_membership.statePayload + role: Components.Schemas.TeamMembership.RolePayload, + state: Components.Schemas.TeamMembership.StatePayload ) { self.url = url self.role = role @@ -4535,19 +4544,19 @@ public enum Components { /// A team's access to a project. /// /// - Remark: Generated from `#/components/schemas/team-project`. - public struct team_hyphen_project: Codable, Hashable, Sendable { + public struct TeamProject: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-project/owner_url`. - public var owner_url: Swift.String + public var ownerUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/columns_url`. - public var columns_url: Swift.String + public var columnsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-project/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/body`. @@ -4557,28 +4566,28 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-project/state`. public var state: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/creator`. - public var creator: Components.Schemas.simple_hyphen_user + public var creator: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/team-project/created_at`. - public var created_at: Swift.String + public var createdAt: Swift.String /// - Remark: Generated from `#/components/schemas/team-project/updated_at`. - public var updated_at: Swift.String + public var updatedAt: Swift.String /// The organization permission for this project. Only present when owner is an organization. /// /// - Remark: Generated from `#/components/schemas/team-project/organization_permission`. - public var organization_permission: Swift.String? + public var organizationPermission: Swift.String? /// Whether the project is private or not. Only present when owner is an organization. /// /// - Remark: Generated from `#/components/schemas/team-project/private`. public var _private: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-project/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-project/permissions/read`. public var read: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-project/permissions/write`. public var write: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-project/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - read: @@ -4600,76 +4609,76 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team-project/permissions`. - public var permissions: Components.Schemas.team_hyphen_project.permissionsPayload - /// Creates a new `team_hyphen_project`. + public var permissions: Components.Schemas.TeamProject.PermissionsPayload + /// Creates a new `TeamProject`. /// /// - Parameters: - /// - owner_url: + /// - ownerUrl: /// - url: - /// - html_url: - /// - columns_url: + /// - htmlUrl: + /// - columnsUrl: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - body: /// - number: /// - state: /// - creator: - /// - created_at: - /// - updated_at: - /// - organization_permission: The organization permission for this project. Only present when owner is an organization. + /// - createdAt: + /// - updatedAt: + /// - organizationPermission: The organization permission for this project. Only present when owner is an organization. /// - _private: Whether the project is private or not. Only present when owner is an organization. /// - permissions: public init( - owner_url: Swift.String, + ownerUrl: Swift.String, url: Swift.String, - html_url: Swift.String, - columns_url: Swift.String, + htmlUrl: Swift.String, + columnsUrl: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, body: Swift.String? = nil, number: Swift.Int, state: Swift.String, - creator: Components.Schemas.simple_hyphen_user, - created_at: Swift.String, - updated_at: Swift.String, - organization_permission: Swift.String? = nil, + creator: Components.Schemas.SimpleUser, + createdAt: Swift.String, + updatedAt: Swift.String, + organizationPermission: Swift.String? = nil, _private: Swift.Bool? = nil, - permissions: Components.Schemas.team_hyphen_project.permissionsPayload + permissions: Components.Schemas.TeamProject.PermissionsPayload ) { - self.owner_url = owner_url + self.ownerUrl = ownerUrl self.url = url - self.html_url = html_url - self.columns_url = columns_url + self.htmlUrl = htmlUrl + self.columnsUrl = columnsUrl self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.body = body self.number = number self.state = state self.creator = creator - self.created_at = created_at - self.updated_at = updated_at - self.organization_permission = organization_permission + self.createdAt = createdAt + self.updatedAt = updatedAt + self.organizationPermission = organizationPermission self._private = _private self.permissions = permissions } public enum CodingKeys: String, CodingKey { - case owner_url + case ownerUrl = "owner_url" case url - case html_url - case columns_url + case htmlUrl = "html_url" + case columnsUrl = "columns_url" case id - case node_id + case nodeId = "node_id" case name case body case number case state case creator - case created_at - case updated_at - case organization_permission + case createdAt = "created_at" + case updatedAt = "updated_at" + case organizationPermission = "organization_permission" case _private = "private" case permissions } @@ -4677,25 +4686,25 @@ public enum Components { /// A team's access to a repository. /// /// - Remark: Generated from `#/components/schemas/team-repository`. - public struct team_hyphen_repository: Codable, Hashable, Sendable { + public struct TeamRepository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/team-repository/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/team-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/team-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-repository/permissions/pull`. @@ -4706,7 +4715,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4736,17 +4745,17 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team-repository/permissions`. - public var permissions: Components.Schemas.team_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.TeamRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/owner`. - public var owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var owner: Components.Schemas.NullableSimpleUser? /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/team-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/fork`. @@ -4754,129 +4763,129 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/size`. public var size: Swift.Int /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/team-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/team-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/team-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/team-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/team-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/team-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/team-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/team-repository/has_downloads`. - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/team-repository/archived`. @@ -4890,414 +4899,414 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/team-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/team-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/team-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/team-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/team-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/team-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/team-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/team-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/team-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/team-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/team-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/team-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/team-repository/master_branch`. - public var master_branch: Swift.String? - /// Creates a new `team_hyphen_repository`. + public var masterBranch: Swift.String? + /// Creates a new `TeamRepository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: - /// - role_name: + /// - roleName: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - subscribers_count: - /// - network_count: - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - subscribersCount: + /// - networkCount: + /// - openIssues: /// - watchers: - /// - master_branch: + /// - masterBranch: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.team_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - owner: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, + permissions: Components.Schemas.TeamRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + owner: Components.Schemas.NullableSimpleUser? = nil, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil + masterBranch: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions - self.role_name = role_name + self.roleName = roleName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.subscribers_count = subscribers_count - self.network_count = network_count - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch + self.masterBranch = masterBranch } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions - case role_name + case roleName = "role_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case subscribers_count - case network_count - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case openIssues = "open_issues" case watchers - case master_branch + case masterBranch = "master_branch" } } } @@ -5306,69 +5315,69 @@ public enum Components { /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The slug of the team name. /// /// - Remark: Generated from `#/components/parameters/team-slug`. - public typealias team_hyphen_slug = Swift.String + public typealias TeamSlug = Swift.String /// The number that identifies the discussion. /// /// - Remark: Generated from `#/components/parameters/discussion-number`. - public typealias discussion_hyphen_number = Swift.Int + public typealias DiscussionNumber = Swift.Int /// The number that identifies the comment. /// /// - Remark: Generated from `#/components/parameters/comment-number`. - public typealias comment_hyphen_number = Swift.Int + public typealias CommentNumber = Swift.Int /// The unique identifier of the project. /// /// - Remark: Generated from `#/components/parameters/project-id`. - public typealias project_hyphen_id = Swift.Int + public typealias ProjectId = Swift.Int /// The unique identifier of the team. /// /// - Remark: Generated from `#/components/parameters/team-id`. - public typealias team_hyphen_id = Swift.Int + public typealias TeamId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5378,25 +5387,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -5406,29 +5415,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5438,12 +5447,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } @@ -5451,7 +5460,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -5463,7 +5472,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)`. - public enum teams_sol_list { + public enum TeamsList { public static let id: Swift.String = "teams/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/path`. @@ -5471,52 +5480,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.teams_sol_list.Input.Path + public var path: Operations.TeamsList.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list.Input.Query + public var query: Operations.TeamsList.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list.Input.Headers + public var headers: Operations.TeamsList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -5524,9 +5533,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list.Input.Path, - query: Operations.teams_sol_list.Input.Query = .init(), - headers: Operations.teams_sol_list.Input.Headers = .init() + path: Operations.TeamsList.Input.Path, + query: Operations.TeamsList.Input.Query = .init(), + headers: Operations.TeamsList.Input.Headers = .init() ) { self.path = path self.query = query @@ -5538,26 +5547,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list.Output.Ok.Headers + public var headers: Operations.TeamsList.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -5567,15 +5576,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list.Output.Ok.Body + public var body: Operations.TeamsList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list.Output.Ok.Body + headers: Operations.TeamsList.Output.Ok.Headers = .init(), + body: Operations.TeamsList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5586,12 +5595,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list.Output.Ok) + case ok(Operations.TeamsList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list.Output.Ok { + public var ok: Operations.TeamsList.Output.Ok { get throws { switch self { case let .ok(response): @@ -5609,12 +5618,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/get(teams/list)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5666,7 +5675,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)`. - public enum teams_sol_create { + public enum TeamsCreate { public static let id: Swift.String = "teams/create" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/path`. @@ -5674,32 +5683,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.teams_sol_create.Input.Path + public var path: Operations.TeamsCreate.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_create.Input.Headers + public var headers: Operations.TeamsCreate.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/name`. @@ -5715,7 +5724,7 @@ public enum Operations { /// The full name (e.g., "organization-name/repository-name") of repositories to add the team to. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/repo_names`. - public var repo_names: [Swift.String]? + public var repoNames: [Swift.String]? /// The level of privacy this team should have. The options are: /// **For a non-nested team:** /// * `secret` - only visible to organization owners and members of this team. @@ -5726,7 +5735,7 @@ public enum Operations { /// Default for child team: `closed` /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/privacy`. - @frozen public enum privacyPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivacyPayload: String, Codable, Hashable, Sendable, CaseIterable { case secret = "secret" case closed = "closed" } @@ -5740,16 +5749,16 @@ public enum Operations { /// Default for child team: `closed` /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/privacy`. - public var privacy: Operations.teams_sol_create.Input.Body.jsonPayload.privacyPayload? + public var privacy: Operations.TeamsCreate.Input.Body.JsonPayload.PrivacyPayload? /// The notification setting the team has chosen. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. /// * `notifications_disabled` - no one receives notifications. /// Default: `notifications_enabled` /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/notification_setting`. - @frozen public enum notification_settingPayload: String, Codable, Hashable, Sendable { - case notifications_enabled = "notifications_enabled" - case notifications_disabled = "notifications_disabled" + @frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable { + case notificationsEnabled = "notifications_enabled" + case notificationsDisabled = "notifications_disabled" } /// The notification setting the team has chosen. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. @@ -5757,67 +5766,67 @@ public enum Operations { /// Default: `notifications_enabled` /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/notification_setting`. - public var notification_setting: Operations.teams_sol_create.Input.Body.jsonPayload.notification_settingPayload? + public var notificationSetting: Operations.TeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload? /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case pull = "pull" case push = "push" } /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/permission`. - public var permission: Operations.teams_sol_create.Input.Body.jsonPayload.permissionPayload? + public var permission: Operations.TeamsCreate.Input.Body.JsonPayload.PermissionPayload? /// The ID of a team to set as the parent team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/parent_team_id`. - public var parent_team_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var parentTeamId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the team. /// - description: The description of the team. /// - maintainers: List GitHub IDs for organization members who will become team maintainers. - /// - repo_names: The full name (e.g., "organization-name/repository-name") of repositories to add the team to. + /// - repoNames: The full name (e.g., "organization-name/repository-name") of repositories to add the team to. /// - privacy: The level of privacy this team should have. The options are: - /// - notification_setting: The notification setting the team has chosen. The options are: + /// - notificationSetting: The notification setting the team has chosen. The options are: /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. - /// - parent_team_id: The ID of a team to set as the parent team. + /// - parentTeamId: The ID of a team to set as the parent team. public init( name: Swift.String, description: Swift.String? = nil, maintainers: [Swift.String]? = nil, - repo_names: [Swift.String]? = nil, - privacy: Operations.teams_sol_create.Input.Body.jsonPayload.privacyPayload? = nil, - notification_setting: Operations.teams_sol_create.Input.Body.jsonPayload.notification_settingPayload? = nil, - permission: Operations.teams_sol_create.Input.Body.jsonPayload.permissionPayload? = nil, - parent_team_id: Swift.Int? = nil + repoNames: [Swift.String]? = nil, + privacy: Operations.TeamsCreate.Input.Body.JsonPayload.PrivacyPayload? = nil, + notificationSetting: Operations.TeamsCreate.Input.Body.JsonPayload.NotificationSettingPayload? = nil, + permission: Operations.TeamsCreate.Input.Body.JsonPayload.PermissionPayload? = nil, + parentTeamId: Swift.Int? = nil ) { self.name = name self.description = description self.maintainers = maintainers - self.repo_names = repo_names + self.repoNames = repoNames self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission - self.parent_team_id = parent_team_id + self.parentTeamId = parentTeamId } public enum CodingKeys: String, CodingKey { case name case description case maintainers - case repo_names + case repoNames = "repo_names" case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission - case parent_team_id + case parentTeamId = "parent_team_id" } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/content/application\/json`. - case json(Operations.teams_sol_create.Input.Body.jsonPayload) + case json(Operations.TeamsCreate.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_create.Input.Body + public var body: Operations.TeamsCreate.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5825,9 +5834,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_create.Input.Path, - headers: Operations.teams_sol_create.Input.Headers = .init(), - body: Operations.teams_sol_create.Input.Body + path: Operations.TeamsCreate.Input.Path, + headers: Operations.TeamsCreate.Input.Headers = .init(), + body: Operations.TeamsCreate.Input.Body ) { self.path = path self.headers = headers @@ -5839,12 +5848,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -5854,12 +5863,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_create.Output.Created.Body + public var body: Operations.TeamsCreate.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_create.Output.Created.Body) { + public init(body: Operations.TeamsCreate.Output.Created.Body) { self.body = body } } @@ -5868,12 +5877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_create.Output.Created) + case created(Operations.TeamsCreate.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_create.Output.Created { + public var created: Operations.TeamsCreate.Output.Created { get throws { switch self { case let .created(response): @@ -5891,12 +5900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5914,12 +5923,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/post(teams/create)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5972,7 +5981,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)`. - public enum teams_sol_get_hyphen_by_hyphen_name { + public enum TeamsGetByName { public static let id: Swift.String = "teams/get-by-name" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/path`. @@ -5980,45 +5989,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Path + public var path: Operations.TeamsGetByName.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Headers + public var headers: Operations.TeamsGetByName.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Path, - headers: Operations.teams_sol_get_hyphen_by_hyphen_name.Input.Headers = .init() + path: Operations.TeamsGetByName.Input.Path, + headers: Operations.TeamsGetByName.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6029,12 +6038,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -6044,12 +6053,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_by_hyphen_name.Output.Ok.Body + public var body: Operations.TeamsGetByName.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_by_hyphen_name.Output.Ok.Body) { + public init(body: Operations.TeamsGetByName.Output.Ok.Body) { self.body = body } } @@ -6058,12 +6067,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_by_hyphen_name.Output.Ok) + case ok(Operations.TeamsGetByName.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_by_hyphen_name.Output.Ok { + public var ok: Operations.TeamsGetByName.Output.Ok { get throws { switch self { case let .ok(response): @@ -6081,12 +6090,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/get(teams/get-by-name)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6139,7 +6148,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)`. - public enum teams_sol_update_hyphen_in_hyphen_org { + public enum TeamsUpdateInOrg { public static let id: Swift.String = "teams/update-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/path`. @@ -6147,41 +6156,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsUpdateInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsUpdateInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/name`. @@ -6198,7 +6207,7 @@ public enum Operations { /// * `closed` - visible to all members of this organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/privacy`. - @frozen public enum privacyPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivacyPayload: String, Codable, Hashable, Sendable, CaseIterable { case secret = "secret" case closed = "closed" } @@ -6210,26 +6219,26 @@ public enum Operations { /// * `closed` - visible to all members of this organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/privacy`. - public var privacy: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.privacyPayload? + public var privacy: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.PrivacyPayload? /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. /// * `notifications_disabled` - no one receives notifications. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`. - @frozen public enum notification_settingPayload: String, Codable, Hashable, Sendable { - case notifications_enabled = "notifications_enabled" - case notifications_disabled = "notifications_disabled" + @frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable { + case notificationsEnabled = "notifications_enabled" + case notificationsDisabled = "notifications_disabled" } /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. /// * `notifications_disabled` - no one receives notifications. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`. - public var notification_setting: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.notification_settingPayload? + public var notificationSetting: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.NotificationSettingPayload? /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case pull = "pull" case push = "push" case admin = "admin" @@ -6237,48 +6246,48 @@ public enum Operations { /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/permission`. - public var permission: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.permissionPayload? + public var permission: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.PermissionPayload? /// The ID of a team to set as the parent team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/parent_team_id`. - public var parent_team_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var parentTeamId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the team. /// - description: The description of the team. /// - privacy: The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: - /// - notification_setting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: + /// - notificationSetting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. - /// - parent_team_id: The ID of a team to set as the parent team. + /// - parentTeamId: The ID of a team to set as the parent team. public init( name: Swift.String? = nil, description: Swift.String? = nil, - privacy: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.privacyPayload? = nil, - notification_setting: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.notification_settingPayload? = nil, - permission: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.permissionPayload? = nil, - parent_team_id: Swift.Int? = nil + privacy: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.PrivacyPayload? = nil, + notificationSetting: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.NotificationSettingPayload? = nil, + permission: Operations.TeamsUpdateInOrg.Input.Body.JsonPayload.PermissionPayload? = nil, + parentTeamId: Swift.Int? = nil ) { self.name = name self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission - self.parent_team_id = parent_team_id + self.parentTeamId = parentTeamId } public enum CodingKeys: String, CodingKey { case name case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission - case parent_team_id + case parentTeamId = "parent_team_id" } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body? + public var body: Operations.TeamsUpdateInOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -6286,9 +6295,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body? = nil + path: Operations.TeamsUpdateInOrg.Input.Path, + headers: Operations.TeamsUpdateInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateInOrg.Input.Body? = nil ) { self.path = path self.headers = headers @@ -6300,12 +6309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -6315,12 +6324,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsUpdateInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateInOrg.Output.Ok.Body) { self.body = body } } @@ -6329,12 +6338,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsUpdateInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsUpdateInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -6351,12 +6360,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -6366,12 +6375,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.TeamsUpdateInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Created.Body) { + public init(body: Operations.TeamsUpdateInOrg.Output.Created.Body) { self.body = body } } @@ -6380,12 +6389,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Created) + case created(Operations.TeamsUpdateInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_update_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.TeamsUpdateInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -6403,12 +6412,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6426,12 +6435,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6449,12 +6458,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/patch(teams/update-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6509,7 +6518,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)`. - public enum teams_sol_delete_hyphen_in_hyphen_org { + public enum TeamsDeleteInOrg { public static let id: Swift.String = "teams/delete-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/DELETE/path`. @@ -6517,30 +6526,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_delete_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsDeleteInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_delete_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsDeleteInOrg.Input.Path) { self.path = path } } @@ -6554,12 +6563,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsDeleteInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/delete(teams/delete-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsDeleteInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6589,7 +6606,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/get(teams/list-discussions-in-org)`. - public enum teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org { + public enum TeamsListDiscussionsInOrg { public static let id: Swift.String = "teams/list-discussions-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/path`. @@ -6597,44 +6614,44 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListDiscussionsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Pinned discussions only filter /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/query/pinned`. @@ -6643,34 +6660,34 @@ public enum Operations { /// /// - Parameters: /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." /// - pinned: Pinned discussions only filter public init( - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, pinned: Swift.String? = nil ) { self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page self.pinned = pinned } } - public var query: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListDiscussionsInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListDiscussionsInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6678,9 +6695,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListDiscussionsInOrg.Input.Path, + query: Operations.TeamsListDiscussionsInOrg.Input.Query = .init(), + headers: Operations.TeamsListDiscussionsInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -6692,26 +6709,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListDiscussionsInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_discussion]) + case json([Components.Schemas.TeamDiscussion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_discussion] { + public var json: [Components.Schemas.TeamDiscussion] { get throws { switch self { case let .json(body): @@ -6721,15 +6738,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListDiscussionsInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListDiscussionsInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListDiscussionsInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6740,12 +6757,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/get(teams/list-discussions-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListDiscussionsInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_discussions_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListDiscussionsInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -6802,7 +6819,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/post(teams/create-discussion-in-org)`. - public enum teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org { + public enum TeamsCreateDiscussionInOrg { public static let id: Swift.String = "teams/create-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/path`. @@ -6810,41 +6827,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsCreateDiscussionInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsCreateDiscussionInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion post's title. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/requestBody/json/title`. @@ -6857,7 +6874,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/requestBody/json/private`. public var _private: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The discussion post's title. @@ -6879,9 +6896,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/requestBody/content/application\/json`. - case json(Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsCreateDiscussionInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Body + public var body: Operations.TeamsCreateDiscussionInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6889,9 +6906,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Input.Body + path: Operations.TeamsCreateDiscussionInOrg.Input.Path, + headers: Operations.TeamsCreateDiscussionInOrg.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionInOrg.Input.Body ) { self.path = path self.headers = headers @@ -6903,12 +6920,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -6918,12 +6935,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.TeamsCreateDiscussionInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output.Created.Body) { + public init(body: Operations.TeamsCreateDiscussionInOrg.Output.Created.Body) { self.body = body } } @@ -6932,12 +6949,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/post(teams/create-discussion-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output.Created) + case created(Operations.TeamsCreateDiscussionInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_create_hyphen_discussion_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.TeamsCreateDiscussionInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -6992,7 +7009,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/get(teams/get-discussion-in-org)`. - public enum teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org { + public enum TeamsGetDiscussionInOrg { public static let id: Swift.String = "teams/get-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/path`. @@ -7000,52 +7017,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsGetDiscussionInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsGetDiscussionInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsGetDiscussionInOrg.Input.Path, + headers: Operations.TeamsGetDiscussionInOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7056,12 +7073,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -7071,12 +7088,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsGetDiscussionInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsGetDiscussionInOrg.Output.Ok.Body) { self.body = body } } @@ -7085,12 +7102,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/get(teams/get-discussion-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsGetDiscussionInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsGetDiscussionInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -7145,7 +7162,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/patch(teams/update-discussion-in-org)`. - public enum teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org { + public enum TeamsUpdateDiscussionInOrg { public static let id: Swift.String = "teams/update-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/path`. @@ -7153,48 +7170,48 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsUpdateDiscussionInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsUpdateDiscussionInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion post's title. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/requestBody/json/title`. @@ -7203,7 +7220,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/requestBody/json/body`. public var body: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The discussion post's title. @@ -7221,9 +7238,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateDiscussionInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Body? + public var body: Operations.TeamsUpdateDiscussionInOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -7231,9 +7248,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Input.Body? = nil + path: Operations.TeamsUpdateDiscussionInOrg.Input.Path, + headers: Operations.TeamsUpdateDiscussionInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionInOrg.Input.Body? = nil ) { self.path = path self.headers = headers @@ -7245,12 +7262,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -7260,12 +7277,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsUpdateDiscussionInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateDiscussionInOrg.Output.Ok.Body) { self.body = body } } @@ -7274,12 +7291,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/patch(teams/update-discussion-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsUpdateDiscussionInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_discussion_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsUpdateDiscussionInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -7334,7 +7351,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)`. - public enum teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org { + public enum TeamsDeleteDiscussionInOrg { public static let id: Swift.String = "teams/delete-discussion-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/DELETE/path`. @@ -7342,37 +7359,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsDeleteDiscussionInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsDeleteDiscussionInOrg.Input.Path) { self.path = path } } @@ -7386,12 +7403,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsDeleteDiscussionInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/delete(teams/delete-discussion-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_discussion_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsDeleteDiscussionInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7421,7 +7446,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-in-org)`. - public enum teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org { + public enum TeamsListDiscussionCommentsInOrg { public static let id: Swift.String = "teams/list-discussion-comments-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/path`. @@ -7429,80 +7454,80 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListDiscussionCommentsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." public init( - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListDiscussionCommentsInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListDiscussionCommentsInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7510,9 +7535,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListDiscussionCommentsInOrg.Input.Path, + query: Operations.TeamsListDiscussionCommentsInOrg.Input.Query = .init(), + headers: Operations.TeamsListDiscussionCommentsInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -7524,26 +7549,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_discussion_hyphen_comment]) + case json([Components.Schemas.TeamDiscussionComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_discussion_hyphen_comment] { + public var json: [Components.Schemas.TeamDiscussionComment] { get throws { switch self { case let .json(body): @@ -7553,15 +7578,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7572,12 +7597,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListDiscussionCommentsInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListDiscussionCommentsInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -7634,7 +7659,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-in-org)`. - public enum teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum TeamsCreateDiscussionCommentInOrg { public static let id: Swift.String = "teams/create-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/path`. @@ -7642,53 +7667,53 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsCreateDiscussionCommentInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsCreateDiscussionCommentInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion comment's body text. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The discussion comment's body text. @@ -7700,9 +7725,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/requestBody/content/application\/json`. - case json(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsCreateDiscussionCommentInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + public var body: Operations.TeamsCreateDiscussionCommentInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7710,9 +7735,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + path: Operations.TeamsCreateDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsCreateDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionCommentInOrg.Input.Body ) { self.path = path self.headers = headers @@ -7724,12 +7749,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -7739,12 +7764,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body + public var body: Operations.TeamsCreateDiscussionCommentInOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created.Body) { + public init(body: Operations.TeamsCreateDiscussionCommentInOrg.Output.Created.Body) { self.body = body } } @@ -7753,12 +7778,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-in-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created) + case created(Operations.TeamsCreateDiscussionCommentInOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Created { + public var created: Operations.TeamsCreateDiscussionCommentInOrg.Output.Created { get throws { switch self { case let .created(response): @@ -7813,7 +7838,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-in-org)`. - public enum teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum TeamsGetDiscussionCommentInOrg { public static let id: Swift.String = "teams/get-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/path`. @@ -7821,59 +7846,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsGetDiscussionCommentInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsGetDiscussionCommentInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsGetDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsGetDiscussionCommentInOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7884,12 +7909,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -7899,12 +7924,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsGetDiscussionCommentInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsGetDiscussionCommentInOrg.Output.Ok.Body) { self.body = body } } @@ -7913,12 +7938,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsGetDiscussionCommentInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsGetDiscussionCommentInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -7973,7 +7998,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-in-org)`. - public enum teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum TeamsUpdateDiscussionCommentInOrg { public static let id: Swift.String = "teams/update-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path`. @@ -7981,60 +8006,60 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion comment's body text. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The discussion comment's body text. @@ -8046,9 +8071,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateDiscussionCommentInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + public var body: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8056,9 +8081,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Body + path: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Path, + headers: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionCommentInOrg.Input.Body ) { self.path = path self.headers = headers @@ -8070,12 +8095,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -8085,12 +8110,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsUpdateDiscussionCommentInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateDiscussionCommentInOrg.Output.Ok.Body) { self.body = body } } @@ -8099,12 +8124,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsUpdateDiscussionCommentInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsUpdateDiscussionCommentInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -8159,7 +8184,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)`. - public enum teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org { + public enum TeamsDeleteDiscussionCommentInOrg { public static let id: Swift.String = "teams/delete-discussion-comment-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path`. @@ -8167,44 +8192,44 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamSlug: The slug of the team name. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { self.org = org - self.team_slug = team_slug - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamSlug = teamSlug + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsDeleteDiscussionCommentInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsDeleteDiscussionCommentInOrg.Input.Path) { self.path = path } } @@ -8218,12 +8243,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsDeleteDiscussionCommentInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsDeleteDiscussionCommentInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8251,7 +8284,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/invitations`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/invitations/get(teams/list-pending-invitations-in-org)`. - public enum teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org { + public enum TeamsListPendingInvitationsInOrg { public static let id: Swift.String = "teams/list-pending-invitations-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/path`. @@ -8259,61 +8292,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListPendingInvitationsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListPendingInvitationsInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListPendingInvitationsInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8321,9 +8354,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListPendingInvitationsInOrg.Input.Path, + query: Operations.TeamsListPendingInvitationsInOrg.Input.Query = .init(), + headers: Operations.TeamsListPendingInvitationsInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -8335,26 +8368,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_invitation]) + case json([Components.Schemas.OrganizationInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_invitation] { + public var json: [Components.Schemas.OrganizationInvitation] { get throws { switch self { case let .json(body): @@ -8364,15 +8397,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListPendingInvitationsInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8383,12 +8416,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/invitations/get(teams/list-pending-invitations-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListPendingInvitationsInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListPendingInvitationsInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -8440,7 +8473,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/members`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/members/get(teams/list-members-in-org)`. - public enum teams_sol_list_hyphen_members_hyphen_in_hyphen_org { + public enum TeamsListMembersInOrg { public static let id: Swift.String = "teams/list-members-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/path`. @@ -8448,29 +8481,29 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListMembersInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/query/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case member = "member" case maintainer = "maintainer" case all = "all" @@ -8478,44 +8511,44 @@ public enum Operations { /// Filters members returned by their role in the team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/query/role`. - public var role: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Query.rolePayload? + public var role: Operations.TeamsListMembersInOrg.Input.Query.RolePayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - role: Filters members returned by their role in the team. - /// - 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)." + /// - perPage: 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)." public init( - role: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Query.rolePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + role: Operations.TeamsListMembersInOrg.Input.Query.RolePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.role = role - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListMembersInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListMembersInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8523,9 +8556,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListMembersInOrg.Input.Path, + query: Operations.TeamsListMembersInOrg.Input.Query = .init(), + headers: Operations.TeamsListMembersInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -8537,26 +8570,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListMembersInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/members/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -8566,15 +8599,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListMembersInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListMembersInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListMembersInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8585,12 +8618,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/members/get(teams/list-members-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListMembersInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_members_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListMembersInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -8650,7 +8683,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)`. - public enum teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org { + public enum TeamsGetMembershipForUserInOrg { public static let id: Swift.String = "teams/get-membership-for-user-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/path`. @@ -8658,52 +8691,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - username: Components.Parameters.username + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + username: Components.Parameters.Username ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.username = username } } - public var path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsGetMembershipForUserInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsGetMembershipForUserInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsGetMembershipForUserInOrg.Input.Path, + headers: Operations.TeamsGetMembershipForUserInOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8714,12 +8747,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_membership) + case json(Components.Schemas.TeamMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_membership { + public var json: Components.Schemas.TeamMembership { get throws { switch self { case let .json(body): @@ -8729,12 +8762,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsGetMembershipForUserInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsGetMembershipForUserInOrg.Output.Ok.Body) { self.body = body } } @@ -8743,12 +8776,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsGetMembershipForUserInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsGetMembershipForUserInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -8770,12 +8803,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.NotFound) + case notFound(Operations.TeamsGetMembershipForUserInOrg.Output.NotFound) + /// if user has no team membership + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/get(teams/get-membership-for-user-in-org)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.NotFound { + public var notFound: Operations.TeamsGetMembershipForUserInOrg.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -8837,7 +8878,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org { + public enum TeamsAddOrUpdateMembershipForUserInOrg { public static let id: Swift.String = "teams/add-or-update-membership-for-user-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/path`. @@ -8845,64 +8886,64 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - username: Components.Parameters.username + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + username: Components.Parameters.Username ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.username = username } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The role that this user should have in the team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/requestBody/json/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case member = "member" case maintainer = "maintainer" } /// The role that this user should have in the team. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/requestBody/json/role`. - public var role: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body.jsonPayload.rolePayload? - /// Creates a new `jsonPayload`. + public var role: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body.JsonPayload.RolePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - role: The role that this user should have in the team. - public init(role: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body.jsonPayload.rolePayload? = nil) { + public init(role: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body.JsonPayload.RolePayload? = nil) { self.role = role } public enum CodingKeys: String, CodingKey { @@ -8910,9 +8951,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body? + public var body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -8920,9 +8961,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Body? = nil + path: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Path, + headers: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Input.Body? = nil ) { self.path = path self.headers = headers @@ -8934,12 +8975,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_membership) + case json(Components.Schemas.TeamMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_membership { + public var json: Components.Schemas.TeamMembership { get throws { switch self { case let .json(body): @@ -8949,12 +8990,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Ok.Body) { self.body = body } } @@ -8963,12 +9004,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -8990,12 +9031,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Forbidden) + case forbidden(Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Forbidden) + /// Forbidden if team synchronization is set up + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Forbidden { + public var forbidden: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9017,12 +9066,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.UnprocessableContent) + case unprocessableContent(Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.UnprocessableContent) + /// Unprocessable Entity if you attempt to add an organization to a team + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/put(teams/add-or-update-membership-for-user-in-org)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.UnprocessableContent { + public var unprocessableContent: Operations.TeamsAddOrUpdateMembershipForUserInOrg.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -9080,7 +9137,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)`. - public enum teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org { + public enum TeamsRemoveMembershipForUserInOrg { public static let id: Swift.String = "teams/remove-membership-for-user-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/DELETE/path`. @@ -9088,37 +9145,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/memberships/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - username: Components.Parameters.username + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + username: Components.Parameters.Username ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.username = username } } - public var path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsRemoveMembershipForUserInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsRemoveMembershipForUserInOrg.Input.Path) { self.path = path } } @@ -9132,12 +9189,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsRemoveMembershipForUserInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsRemoveMembershipForUserInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9159,12 +9224,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Forbidden) + case forbidden(Operations.TeamsRemoveMembershipForUserInOrg.Output.Forbidden) + /// Forbidden if team synchronization is set up + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/memberships/{username}/delete(teams/remove-membership-for-user-in-org)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Forbidden { + public var forbidden: Operations.TeamsRemoveMembershipForUserInOrg.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9191,7 +9264,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)`. - public enum teams_sol_list_hyphen_projects_hyphen_in_hyphen_org { + public enum TeamsListProjectsInOrg { public static let id: Swift.String = "teams/list-projects-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/path`. @@ -9199,61 +9272,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListProjectsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListProjectsInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListProjectsInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9261,9 +9334,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListProjectsInOrg.Input.Path, + query: Operations.TeamsListProjectsInOrg.Input.Query = .init(), + headers: Operations.TeamsListProjectsInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -9275,26 +9348,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListProjectsInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_project]) + case json([Components.Schemas.TeamProject]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_project] { + public var json: [Components.Schemas.TeamProject] { get throws { switch self { case let .json(body): @@ -9304,15 +9377,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListProjectsInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListProjectsInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListProjectsInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9323,12 +9396,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/get(teams/list-projects-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListProjectsInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_projects_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListProjectsInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -9380,7 +9453,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)`. - public enum teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org { + public enum TeamsCheckPermissionsForProjectInOrg { public static let id: Swift.String = "teams/check-permissions-for-project-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/path`. @@ -9388,52 +9461,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - project_id: The unique identifier of the project. + /// - teamSlug: The slug of the team name. + /// - projectId: The unique identifier of the project. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - project_id: Components.Parameters.project_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + projectId: Components.Parameters.ProjectId ) { self.org = org - self.team_slug = team_slug - self.project_id = project_id + self.teamSlug = teamSlug + self.projectId = projectId } } - public var path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Path, + headers: Operations.TeamsCheckPermissionsForProjectInOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9444,12 +9517,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_project) + case json(Components.Schemas.TeamProject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_project { + public var json: Components.Schemas.TeamProject { get throws { switch self { case let .json(body): @@ -9459,12 +9532,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsCheckPermissionsForProjectInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsCheckPermissionsForProjectInOrg.Output.Ok.Body) { self.body = body } } @@ -9473,12 +9546,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsCheckPermissionsForProjectInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsCheckPermissionsForProjectInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -9500,12 +9573,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.NotFound) + case notFound(Operations.TeamsCheckPermissionsForProjectInOrg.Output.NotFound) + /// Not Found if project is not managed by this team + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/get(teams/check-permissions-for-project-in-org)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_in_hyphen_org.Output.NotFound { + public var notFound: Operations.TeamsCheckPermissionsForProjectInOrg.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -9557,7 +9638,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org { + public enum TeamsAddOrUpdateProjectPermissionsInOrg { public static let id: Swift.String = "teams/add-or-update-project-permissions-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/path`. @@ -9565,52 +9646,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - project_id: The unique identifier of the project. + /// - teamSlug: The slug of the team name. + /// - projectId: The unique identifier of the project. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - project_id: Components.Parameters.project_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + projectId: Components.Parameters.ProjectId ) { self.org = org - self.team_slug = team_slug - self.project_id = project_id + self.teamSlug = teamSlug + self.projectId = projectId } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -9618,12 +9699,12 @@ public enum Operations { /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/requestBody/json/permission`. - public var permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body.jsonPayload.permissionPayload? - /// Creates a new `jsonPayload`. + public var permission: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body.JsonPayload.PermissionPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." - public init(permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body.jsonPayload.permissionPayload? = nil) { + public init(permission: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body.JsonPayload.PermissionPayload? = nil) { self.permission = permission } public enum CodingKeys: String, CodingKey { @@ -9631,9 +9712,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? + public var body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -9641,9 +9722,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? = nil + path: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Path, + headers: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Input.Body? = nil ) { self.path = path self.headers = headers @@ -9660,12 +9741,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9682,35 +9771,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/PUT/responses/403/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body.jsonPayload { + public var json: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -9720,12 +9809,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body + public var body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden.Body) { + public init(body: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden.Body) { self.body = body } } @@ -9734,12 +9823,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/put(teams/add-or-update-project-permissions-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden) + case forbidden(Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_in_hyphen_org.Output.Forbidden { + public var forbidden: Operations.TeamsAddOrUpdateProjectPermissionsInOrg.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9791,7 +9880,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)`. - public enum teams_sol_remove_hyphen_project_hyphen_in_hyphen_org { + public enum TeamsRemoveProjectInOrg { public static let id: Swift.String = "teams/remove-project-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/DELETE/path`. @@ -9799,37 +9888,37 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/projects/{project_id}/DELETE/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. - /// - project_id: The unique identifier of the project. + /// - teamSlug: The slug of the team name. + /// - projectId: The unique identifier of the project. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - project_id: Components.Parameters.project_hyphen_id + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + projectId: Components.Parameters.ProjectId ) { self.org = org - self.team_slug = team_slug - self.project_id = project_id + self.teamSlug = teamSlug + self.projectId = projectId } } - public var path: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsRemoveProjectInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsRemoveProjectInOrg.Input.Path) { self.path = path } } @@ -9843,12 +9932,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsRemoveProjectInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/projects/{project_id}/delete(teams/remove-project-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_project_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsRemoveProjectInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9876,7 +9973,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/get(teams/list-repos-in-org)`. - public enum teams_sol_list_hyphen_repos_hyphen_in_hyphen_org { + public enum TeamsListReposInOrg { public static let id: Swift.String = "teams/list-repos-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/path`. @@ -9884,61 +9981,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListReposInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListReposInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListReposInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9946,9 +10043,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListReposInOrg.Input.Path, + query: Operations.TeamsListReposInOrg.Input.Query = .init(), + headers: Operations.TeamsListReposInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -9960,26 +10057,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListReposInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -9989,15 +10086,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListReposInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListReposInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListReposInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10008,12 +10105,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/get(teams/list-repos-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListReposInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_repos_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListReposInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -10072,7 +10169,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)`. - public enum teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org { + public enum TeamsCheckPermissionsForRepoInOrg { public static let id: Swift.String = "teams/check-permissions-for-repo-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/path`. @@ -10080,59 +10177,59 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Path, + headers: Operations.TeamsCheckPermissionsForRepoInOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10143,12 +10240,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_repository) + case json(Components.Schemas.TeamRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_repository { + public var json: Components.Schemas.TeamRepository { get throws { switch self { case let .json(body): @@ -10158,12 +10255,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsCheckPermissionsForRepoInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.TeamsCheckPermissionsForRepoInOrg.Output.Ok.Body) { self.body = body } } @@ -10172,12 +10269,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsCheckPermissionsForRepoInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsCheckPermissionsForRepoInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -10199,12 +10296,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsCheckPermissionsForRepoInOrg.Output.NoContent) + /// Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsCheckPermissionsForRepoInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10226,12 +10331,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.NotFound) + case notFound(Operations.TeamsCheckPermissionsForRepoInOrg.Output.NotFound) + /// Not Found if team does not have permission for the repository + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-in-org)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_in_hyphen_org.Output.NotFound { + public var notFound: Operations.TeamsCheckPermissionsForRepoInOrg.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -10286,7 +10399,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org { + public enum TeamsAddOrUpdateRepoPermissionsInOrg { public static let id: Swift.String = "teams/add-or-update-repo-permissions-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/path`. @@ -10294,48 +10407,48 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/requestBody/json/permission`. public var permission: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. @@ -10347,17 +10460,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? + public var body: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Path, - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Input.Body? = nil + path: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Path, + body: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Input.Body? = nil ) { self.path = path self.body = body @@ -10373,12 +10486,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsAddOrUpdateRepoPermissionsInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10406,7 +10527,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)`. - public enum teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org { + public enum TeamsRemoveRepoInOrg { public static let id: Swift.String = "teams/remove-repo-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/DELETE/path`. @@ -10414,44 +10535,44 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/DELETE/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsRemoveRepoInOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Input.Path) { + public init(path: Operations.TeamsRemoveRepoInOrg.Input.Path) { self.path = path } } @@ -10465,12 +10586,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Output.NoContent) + case noContent(Operations.TeamsRemoveRepoInOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}/delete(teams/remove-repo-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_repo_hyphen_in_hyphen_org.Output.NoContent { + public var noContent: Operations.TeamsRemoveRepoInOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10498,7 +10627,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/teams/{team_slug}/teams`. /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/teams/get(teams/list-child-in-org)`. - public enum teams_sol_list_hyphen_child_hyphen_in_hyphen_org { + public enum TeamsListChildInOrg { public static let id: Swift.String = "teams/list-child-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/path`. @@ -10506,61 +10635,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Path + public var path: Operations.TeamsListChildInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Query + public var query: Operations.TeamsListChildInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.TeamsListChildInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10568,9 +10697,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Path, - query: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.TeamsListChildInOrg.Input.Path, + query: Operations.TeamsListChildInOrg.Input.Query = .init(), + headers: Operations.TeamsListChildInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -10582,26 +10711,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Headers + public var headers: Operations.TeamsListChildInOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -10611,15 +10740,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.TeamsListChildInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok.Body + headers: Operations.TeamsListChildInOrg.Output.Ok.Headers = .init(), + body: Operations.TeamsListChildInOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10630,12 +10759,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/teams/{team_slug}/teams/get(teams/list-child-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.TeamsListChildInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_child_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.TeamsListChildInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -10686,7 +10815,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. - public enum teams_sol_get_hyphen_legacy { + public enum TeamsGetLegacy { public static let id: Swift.String = "teams/get-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/GET/path`. @@ -10694,36 +10823,36 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_get_hyphen_legacy.Input.Path + public var path: Operations.TeamsGetLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsGetLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsGetLegacy.Input.Path, + headers: Operations.TeamsGetLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10734,12 +10863,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -10749,12 +10878,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsGetLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsGetLegacy.Output.Ok.Body) { self.body = body } } @@ -10763,12 +10892,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsGetLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsGetLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -10786,12 +10915,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10847,7 +10976,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)`. - public enum teams_sol_update_hyphen_legacy { + public enum TeamsUpdateLegacy { public static let id: Swift.String = "teams/update-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/path`. @@ -10855,32 +10984,32 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_update_hyphen_legacy.Input.Path + public var path: Operations.TeamsUpdateLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsUpdateLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/name`. @@ -10897,7 +11026,7 @@ public enum Operations { /// * `closed` - visible to all members of this organization. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/privacy`. - @frozen public enum privacyPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivacyPayload: String, Codable, Hashable, Sendable, CaseIterable { case secret = "secret" case closed = "closed" } @@ -10909,26 +11038,26 @@ public enum Operations { /// * `closed` - visible to all members of this organization. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/privacy`. - public var privacy: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.privacyPayload? + public var privacy: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.PrivacyPayload? /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. /// * `notifications_disabled` - no one receives notifications. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/notification_setting`. - @frozen public enum notification_settingPayload: String, Codable, Hashable, Sendable { - case notifications_enabled = "notifications_enabled" - case notifications_disabled = "notifications_disabled" + @frozen public enum NotificationSettingPayload: String, Codable, Hashable, Sendable, CaseIterable { + case notificationsEnabled = "notifications_enabled" + case notificationsDisabled = "notifications_disabled" } /// The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// * `notifications_enabled` - team members receive notifications when the team is @mentioned. /// * `notifications_disabled` - no one receives notifications. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/notification_setting`. - public var notification_setting: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.notification_settingPayload? + public var notificationSetting: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.NotificationSettingPayload? /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case pull = "pull" case push = "push" case admin = "admin" @@ -10936,48 +11065,48 @@ public enum Operations { /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/permission`. - public var permission: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? + public var permission: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.PermissionPayload? /// The ID of a team to set as the parent team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/parent_team_id`. - public var parent_team_id: Swift.Int? - /// Creates a new `jsonPayload`. + public var parentTeamId: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the team. /// - description: The description of the team. /// - privacy: The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: - /// - notification_setting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: + /// - notificationSetting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. - /// - parent_team_id: The ID of a team to set as the parent team. + /// - parentTeamId: The ID of a team to set as the parent team. public init( name: Swift.String, description: Swift.String? = nil, - privacy: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.privacyPayload? = nil, - notification_setting: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.notification_settingPayload? = nil, - permission: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? = nil, - parent_team_id: Swift.Int? = nil + privacy: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.PrivacyPayload? = nil, + notificationSetting: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.NotificationSettingPayload? = nil, + permission: Operations.TeamsUpdateLegacy.Input.Body.JsonPayload.PermissionPayload? = nil, + parentTeamId: Swift.Int? = nil ) { self.name = name self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission - self.parent_team_id = parent_team_id + self.parentTeamId = parentTeamId } public enum CodingKeys: String, CodingKey { case name case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission - case parent_team_id + case parentTeamId = "parent_team_id" } } /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_legacy.Input.Body + public var body: Operations.TeamsUpdateLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -10985,9 +11114,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_legacy.Input.Body + path: Operations.TeamsUpdateLegacy.Input.Path, + headers: Operations.TeamsUpdateLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateLegacy.Input.Body ) { self.path = path self.headers = headers @@ -10999,12 +11128,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -11014,12 +11143,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsUpdateLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateLegacy.Output.Ok.Body) { self.body = body } } @@ -11028,12 +11157,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsUpdateLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsUpdateLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -11050,12 +11179,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_full) + case json(Components.Schemas.TeamFull) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_full { + public var json: Components.Schemas.TeamFull { get throws { switch self { case let .json(body): @@ -11065,12 +11194,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_legacy.Output.Created.Body + public var body: Operations.TeamsUpdateLegacy.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_legacy.Output.Created.Body) { + public init(body: Operations.TeamsUpdateLegacy.Output.Created.Body) { self.body = body } } @@ -11079,12 +11208,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_update_hyphen_legacy.Output.Created) + case created(Operations.TeamsUpdateLegacy.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_update_hyphen_legacy.Output.Created { + public var created: Operations.TeamsUpdateLegacy.Output.Created { get throws { switch self { case let .created(response): @@ -11102,12 +11231,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11125,12 +11254,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11148,12 +11277,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/patch(teams/update-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11208,7 +11337,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)`. - public enum teams_sol_delete_hyphen_legacy { + public enum TeamsDeleteLegacy { public static let id: Swift.String = "teams/delete-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/DELETE/path`. @@ -11216,36 +11345,36 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_delete_hyphen_legacy.Input.Path + public var path: Operations.TeamsDeleteLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_delete_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsDeleteLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_delete_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_delete_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsDeleteLegacy.Input.Path, + headers: Operations.TeamsDeleteLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11261,12 +11390,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsDeleteLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsDeleteLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11284,12 +11421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11307,12 +11444,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/delete(teams/delete-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -11367,7 +11504,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/get(teams/list-discussions-legacy)`. - public enum teams_sol_list_hyphen_discussions_hyphen_legacy { + public enum TeamsListDiscussionsLegacy { public static let id: Swift.String = "teams/list-discussions-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/path`. @@ -11375,64 +11512,64 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Path + public var path: Operations.TeamsListDiscussionsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." public init( - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Query + public var query: Operations.TeamsListDiscussionsLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListDiscussionsLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11440,9 +11577,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListDiscussionsLegacy.Input.Path, + query: Operations.TeamsListDiscussionsLegacy.Input.Query = .init(), + headers: Operations.TeamsListDiscussionsLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -11454,26 +11591,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListDiscussionsLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_discussion]) + case json([Components.Schemas.TeamDiscussion]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_discussion] { + public var json: [Components.Schemas.TeamDiscussion] { get throws { switch self { case let .json(body): @@ -11483,15 +11620,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListDiscussionsLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListDiscussionsLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListDiscussionsLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11502,12 +11639,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/get(teams/list-discussions-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListDiscussionsLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_discussions_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListDiscussionsLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -11564,7 +11701,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /teams/{team_id}/discussions`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/post(teams/create-discussion-legacy)`. - public enum teams_sol_create_hyphen_discussion_hyphen_legacy { + public enum TeamsCreateDiscussionLegacy { public static let id: Swift.String = "teams/create-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/path`. @@ -11572,32 +11709,32 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.TeamsCreateDiscussionLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsCreateDiscussionLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion post's title. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/requestBody/json/title`. @@ -11610,7 +11747,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/requestBody/json/private`. public var _private: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The discussion post's title. @@ -11632,9 +11769,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/requestBody/content/application\/json`. - case json(Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsCreateDiscussionLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Body + public var body: Operations.TeamsCreateDiscussionLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -11642,9 +11779,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Input.Body + path: Operations.TeamsCreateDiscussionLegacy.Input.Path, + headers: Operations.TeamsCreateDiscussionLegacy.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionLegacy.Input.Body ) { self.path = path self.headers = headers @@ -11656,12 +11793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/POST/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -11671,12 +11808,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output.Created.Body + public var body: Operations.TeamsCreateDiscussionLegacy.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output.Created.Body) { + public init(body: Operations.TeamsCreateDiscussionLegacy.Output.Created.Body) { self.body = body } } @@ -11685,12 +11822,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/post(teams/create-discussion-legacy)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output.Created) + case created(Operations.TeamsCreateDiscussionLegacy.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_create_hyphen_discussion_hyphen_legacy.Output.Created { + public var created: Operations.TeamsCreateDiscussionLegacy.Output.Created { get throws { switch self { case let .created(response): @@ -11745,7 +11882,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/get(teams/get-discussion-legacy)`. - public enum teams_sol_get_hyphen_discussion_hyphen_legacy { + public enum TeamsGetDiscussionLegacy { public static let id: Swift.String = "teams/get-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/path`. @@ -11753,45 +11890,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.TeamsGetDiscussionLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsGetDiscussionLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsGetDiscussionLegacy.Input.Path, + headers: Operations.TeamsGetDiscussionLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -11802,12 +11939,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -11817,12 +11954,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsGetDiscussionLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsGetDiscussionLegacy.Output.Ok.Body) { self.body = body } } @@ -11831,12 +11968,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/get(teams/get-discussion-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsGetDiscussionLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_discussion_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsGetDiscussionLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -11891,7 +12028,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/patch(teams/update-discussion-legacy)`. - public enum teams_sol_update_hyphen_discussion_hyphen_legacy { + public enum TeamsUpdateDiscussionLegacy { public static let id: Swift.String = "teams/update-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/path`. @@ -11899,41 +12036,41 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.TeamsUpdateDiscussionLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsUpdateDiscussionLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion post's title. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/requestBody/json/title`. @@ -11942,7 +12079,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/requestBody/json/body`. public var body: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: The discussion post's title. @@ -11960,9 +12097,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateDiscussionLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Body? + public var body: Operations.TeamsUpdateDiscussionLegacy.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -11970,9 +12107,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Input.Body? = nil + path: Operations.TeamsUpdateDiscussionLegacy.Input.Path, + headers: Operations.TeamsUpdateDiscussionLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionLegacy.Input.Body? = nil ) { self.path = path self.headers = headers @@ -11984,12 +12121,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion) + case json(Components.Schemas.TeamDiscussion) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion { + public var json: Components.Schemas.TeamDiscussion { get throws { switch self { case let .json(body): @@ -11999,12 +12136,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsUpdateDiscussionLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateDiscussionLegacy.Output.Ok.Body) { self.body = body } } @@ -12013,12 +12150,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/patch(teams/update-discussion-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsUpdateDiscussionLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_discussion_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsUpdateDiscussionLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -12073,7 +12210,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)`. - public enum teams_sol_delete_hyphen_discussion_hyphen_legacy { + public enum TeamsDeleteDiscussionLegacy { public static let id: Swift.String = "teams/delete-discussion-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/DELETE/path`. @@ -12081,30 +12218,30 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input.Path + public var path: Operations.TeamsDeleteDiscussionLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsDeleteDiscussionLegacy.Input.Path) { self.path = path } } @@ -12118,12 +12255,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsDeleteDiscussionLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/delete(teams/delete-discussion-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_discussion_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsDeleteDiscussionLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -12153,7 +12298,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-legacy)`. - public enum teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy { + public enum TeamsListDiscussionCommentsLegacy { public static let id: Swift.String = "teams/list-discussion-comments-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/path`. @@ -12161,73 +12306,73 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Path + public var path: Operations.TeamsListDiscussionCommentsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." public init( - direction: Components.Parameters.direction? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + direction: Components.Parameters.Direction? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.direction = direction - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Query + public var query: Operations.TeamsListDiscussionCommentsLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListDiscussionCommentsLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12235,9 +12380,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListDiscussionCommentsLegacy.Input.Path, + query: Operations.TeamsListDiscussionCommentsLegacy.Input.Query = .init(), + headers: Operations.TeamsListDiscussionCommentsLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -12249,26 +12394,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_discussion_hyphen_comment]) + case json([Components.Schemas.TeamDiscussionComment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_discussion_hyphen_comment] { + public var json: [Components.Schemas.TeamDiscussionComment] { get throws { switch self { case let .json(body): @@ -12278,15 +12423,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12297,12 +12442,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/get(teams/list-discussion-comments-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListDiscussionCommentsLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_discussion_hyphen_comments_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListDiscussionCommentsLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -12359,7 +12504,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /teams/{team_id}/discussions/{discussion_number}/comments`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-legacy)`. - public enum teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum TeamsCreateDiscussionCommentLegacy { public static let id: Swift.String = "teams/create-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/path`. @@ -12367,46 +12512,46 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number + self.teamId = teamId + self.discussionNumber = discussionNumber } } - public var path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.TeamsCreateDiscussionCommentLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsCreateDiscussionCommentLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion comment's body text. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The discussion comment's body text. @@ -12418,9 +12563,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/requestBody/content/application\/json`. - case json(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsCreateDiscussionCommentLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + public var body: Operations.TeamsCreateDiscussionCommentLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -12428,9 +12573,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + path: Operations.TeamsCreateDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsCreateDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.TeamsCreateDiscussionCommentLegacy.Input.Body ) { self.path = path self.headers = headers @@ -12442,12 +12587,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/POST/responses/201/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -12457,12 +12602,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body + public var body: Operations.TeamsCreateDiscussionCommentLegacy.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created.Body) { + public init(body: Operations.TeamsCreateDiscussionCommentLegacy.Output.Created.Body) { self.body = body } } @@ -12471,12 +12616,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/post(teams/create-discussion-comment-legacy)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created) + case created(Operations.TeamsCreateDiscussionCommentLegacy.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.teams_sol_create_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Created { + public var created: Operations.TeamsCreateDiscussionCommentLegacy.Output.Created { get throws { switch self { case let .created(response): @@ -12531,7 +12676,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-legacy)`. - public enum teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum TeamsGetDiscussionCommentLegacy { public static let id: Swift.String = "teams/get-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/path`. @@ -12539,52 +12684,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamId = teamId + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.TeamsGetDiscussionCommentLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsGetDiscussionCommentLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsGetDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsGetDiscussionCommentLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12595,12 +12740,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -12610,12 +12755,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsGetDiscussionCommentLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsGetDiscussionCommentLegacy.Output.Ok.Body) { self.body = body } } @@ -12624,12 +12769,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/get(teams/get-discussion-comment-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsGetDiscussionCommentLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsGetDiscussionCommentLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -12684,7 +12829,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-legacy)`. - public enum teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum TeamsUpdateDiscussionCommentLegacy { public static let id: Swift.String = "teams/update-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path`. @@ -12692,53 +12837,53 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamId = teamId + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The discussion comment's body text. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/json/body`. public var body: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - body: The discussion comment's body text. @@ -12750,9 +12895,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsUpdateDiscussionCommentLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + public var body: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -12760,9 +12905,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Body + path: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Path, + headers: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Headers = .init(), + body: Operations.TeamsUpdateDiscussionCommentLegacy.Input.Body ) { self.path = path self.headers = headers @@ -12774,12 +12919,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_discussion_hyphen_comment) + case json(Components.Schemas.TeamDiscussionComment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_discussion_hyphen_comment { + public var json: Components.Schemas.TeamDiscussionComment { get throws { switch self { case let .json(body): @@ -12789,12 +12934,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsUpdateDiscussionCommentLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsUpdateDiscussionCommentLegacy.Output.Ok.Body) { self.body = body } } @@ -12803,12 +12948,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/patch(teams/update-discussion-comment-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsUpdateDiscussionCommentLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_update_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsUpdateDiscussionCommentLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -12863,7 +13008,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)`. - public enum teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy { + public enum TeamsDeleteDiscussionCommentLegacy { public static let id: Swift.String = "teams/delete-discussion-comment-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path`. @@ -12871,37 +13016,37 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The number that identifies the discussion. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/discussion_number`. - public var discussion_number: Components.Parameters.discussion_hyphen_number + public var discussionNumber: Components.Parameters.DiscussionNumber /// The number that identifies the comment. /// /// - Remark: Generated from `#/paths/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/DELETE/path/comment_number`. - public var comment_number: Components.Parameters.comment_hyphen_number + public var commentNumber: Components.Parameters.CommentNumber /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - discussion_number: The number that identifies the discussion. - /// - comment_number: The number that identifies the comment. + /// - teamId: The unique identifier of the team. + /// - discussionNumber: The number that identifies the discussion. + /// - commentNumber: The number that identifies the comment. public init( - team_id: Components.Parameters.team_hyphen_id, - discussion_number: Components.Parameters.discussion_hyphen_number, - comment_number: Components.Parameters.comment_hyphen_number + teamId: Components.Parameters.TeamId, + discussionNumber: Components.Parameters.DiscussionNumber, + commentNumber: Components.Parameters.CommentNumber ) { - self.team_id = team_id - self.discussion_number = discussion_number - self.comment_number = comment_number + self.teamId = teamId + self.discussionNumber = discussionNumber + self.commentNumber = commentNumber } } - public var path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path + public var path: Operations.TeamsDeleteDiscussionCommentLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsDeleteDiscussionCommentLegacy.Input.Path) { self.path = path } } @@ -12915,12 +13060,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsDeleteDiscussionCommentLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/delete(teams/delete-discussion-comment-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_delete_hyphen_discussion_hyphen_comment_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsDeleteDiscussionCommentLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -12948,7 +13101,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/invitations`. /// - Remark: Generated from `#/paths//teams/{team_id}/invitations/get(teams/list-pending-invitations-legacy)`. - public enum teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy { + public enum TeamsListPendingInvitationsLegacy { public static let id: Swift.String = "teams/list-pending-invitations-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/path`. @@ -12956,52 +13109,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Path + public var path: Operations.TeamsListPendingInvitationsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Query + public var query: Operations.TeamsListPendingInvitationsLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListPendingInvitationsLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13009,9 +13162,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListPendingInvitationsLegacy.Input.Path, + query: Operations.TeamsListPendingInvitationsLegacy.Input.Query = .init(), + headers: Operations.TeamsListPendingInvitationsLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -13023,26 +13176,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/invitations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.organization_hyphen_invitation]) + case json([Components.Schemas.OrganizationInvitation]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.organization_hyphen_invitation] { + public var json: [Components.Schemas.OrganizationInvitation] { get throws { switch self { case let .json(body): @@ -13052,15 +13205,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListPendingInvitationsLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -13071,12 +13224,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/invitations/get(teams/list-pending-invitations-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListPendingInvitationsLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_pending_hyphen_invitations_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListPendingInvitationsLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -13129,7 +13282,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/members`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)`. - public enum teams_sol_list_hyphen_members_hyphen_legacy { + public enum TeamsListMembersLegacy { public static let id: Swift.String = "teams/list-members-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/path`. @@ -13137,20 +13290,20 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Path + public var path: Operations.TeamsListMembersLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/query/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case member = "member" case maintainer = "maintainer" case all = "all" @@ -13158,44 +13311,44 @@ public enum Operations { /// Filters members returned by their role in the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/query/role`. - public var role: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Query.rolePayload? + public var role: Operations.TeamsListMembersLegacy.Input.Query.RolePayload? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// Creates a new `Query`. /// /// - Parameters: /// - role: Filters members returned by their role in the team. - /// - 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)." + /// - perPage: 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)." public init( - role: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Query.rolePayload? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + role: Operations.TeamsListMembersLegacy.Input.Query.RolePayload? = nil, + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { self.role = role - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Query + public var query: Operations.TeamsListMembersLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListMembersLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -13203,9 +13356,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListMembersLegacy.Input.Path, + query: Operations.TeamsListMembersLegacy.Input.Query = .init(), + headers: Operations.TeamsListMembersLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -13217,26 +13370,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListMembersLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -13246,15 +13399,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListMembersLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListMembersLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListMembersLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -13265,12 +13418,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListMembersLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListMembersLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -13288,12 +13441,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/get(teams/list-members-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13347,7 +13500,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)`. - public enum teams_sol_get_hyphen_member_hyphen_legacy { + public enum TeamsGetMemberLegacy { public static let id: Swift.String = "teams/get-member-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/GET/path`. @@ -13355,30 +13508,30 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input.Path + public var path: Operations.TeamsGetMemberLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsGetMemberLegacy.Input.Path) { self.path = path } } @@ -13392,12 +13545,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsGetMemberLegacy.Output.NoContent) + /// if user is a member + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsGetMemberLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13419,12 +13580,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output.NotFound) + case notFound(Operations.TeamsGetMemberLegacy.Output.NotFound) + /// if user is not a member + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/get(teams/get-member-legacy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output.NotFound { + public var notFound: Operations.TeamsGetMemberLegacy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -13460,7 +13629,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)`. - public enum teams_sol_add_hyphen_member_hyphen_legacy { + public enum TeamsAddMemberLegacy { public static let id: Swift.String = "teams/add-member-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/PUT/path`. @@ -13468,45 +13637,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/PUT/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Path + public var path: Operations.TeamsAddMemberLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsAddMemberLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsAddMemberLegacy.Input.Path, + headers: Operations.TeamsAddMemberLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -13522,12 +13691,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsAddMemberLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsAddMemberLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13549,12 +13726,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.NotFound) + case notFound(Operations.TeamsAddMemberLegacy.Output.NotFound) + /// Not Found if team synchronization is set up + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.NotFound { + public var notFound: Operations.TeamsAddMemberLegacy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -13576,12 +13761,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.UnprocessableContent) + case unprocessableContent(Operations.TeamsAddMemberLegacy.Output.UnprocessableContent) + /// Unprocessable Entity if you attempt to add an organization to a team or you attempt to add a user to a team when they are not a member of at least one other team in the same organization + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output.UnprocessableContent { + public var unprocessableContent: Operations.TeamsAddMemberLegacy.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -13599,12 +13792,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/put(teams/add-member-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -13663,7 +13856,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/members/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)`. - public enum teams_sol_remove_hyphen_member_hyphen_legacy { + public enum TeamsRemoveMemberLegacy { public static let id: Swift.String = "teams/remove-member-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/DELETE/path`. @@ -13671,30 +13864,30 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/members/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input.Path + public var path: Operations.TeamsRemoveMemberLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsRemoveMemberLegacy.Input.Path) { self.path = path } } @@ -13708,12 +13901,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsRemoveMemberLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsRemoveMemberLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13735,12 +13936,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output.NotFound) + case notFound(Operations.TeamsRemoveMemberLegacy.Output.NotFound) + /// Not Found if team synchronization is setup + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/members/{username}/delete(teams/remove-member-legacy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_remove_hyphen_member_hyphen_legacy.Output.NotFound { + public var notFound: Operations.TeamsRemoveMemberLegacy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -13775,7 +13984,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)`. - public enum teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy { + public enum TeamsGetMembershipForUserLegacy { public static let id: Swift.String = "teams/get-membership-for-user-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/path`. @@ -13783,45 +13992,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path + public var path: Operations.TeamsGetMembershipForUserLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsGetMembershipForUserLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsGetMembershipForUserLegacy.Input.Path, + headers: Operations.TeamsGetMembershipForUserLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -13832,12 +14041,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_membership) + case json(Components.Schemas.TeamMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_membership { + public var json: Components.Schemas.TeamMembership { get throws { switch self { case let .json(body): @@ -13847,12 +14056,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsGetMembershipForUserLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsGetMembershipForUserLegacy.Output.Ok.Body) { self.body = body } } @@ -13861,12 +14070,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsGetMembershipForUserLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_get_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsGetMembershipForUserLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -13884,12 +14093,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/get(teams/get-membership-for-user-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13951,7 +14160,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy { + public enum TeamsAddOrUpdateMembershipForUserLegacy { public static let id: Swift.String = "teams/add-or-update-membership-for-user-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/path`. @@ -13959,57 +14168,57 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path + public var path: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The role that this user should have in the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/requestBody/json/role`. - @frozen public enum rolePayload: String, Codable, Hashable, Sendable { + @frozen public enum RolePayload: String, Codable, Hashable, Sendable, CaseIterable { case member = "member" case maintainer = "maintainer" } /// The role that this user should have in the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/requestBody/json/role`. - public var role: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body.jsonPayload.rolePayload? - /// Creates a new `jsonPayload`. + public var role: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body.JsonPayload.RolePayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - role: The role that this user should have in the team. - public init(role: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body.jsonPayload.rolePayload? = nil) { + public init(role: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body.JsonPayload.RolePayload? = nil) { self.role = role } public enum CodingKeys: String, CodingKey { @@ -14017,9 +14226,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body? + public var body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -14027,9 +14236,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Body? = nil + path: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Input.Body? = nil ) { self.path = path self.headers = headers @@ -14041,12 +14250,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_membership) + case json(Components.Schemas.TeamMembership) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_membership { + public var json: Components.Schemas.TeamMembership { get throws { switch self { case let .json(body): @@ -14056,12 +14265,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Ok.Body) { self.body = body } } @@ -14070,12 +14279,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -14097,12 +14306,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Forbidden) + case forbidden(Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Forbidden) + /// Forbidden if team synchronization is set up + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Forbidden { + public var forbidden: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -14124,12 +14341,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.UnprocessableContent) + case unprocessableContent(Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.UnprocessableContent) + /// Unprocessable Entity if you attempt to add an organization to a team + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.UnprocessableContent { + public var unprocessableContent: Operations.TeamsAddOrUpdateMembershipForUserLegacy.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -14147,12 +14372,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/put(teams/add-or-update-membership-for-user-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14210,7 +14435,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/memberships/{username}`. /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)`. - public enum teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy { + public enum TeamsRemoveMembershipForUserLegacy { public static let id: Swift.String = "teams/remove-membership-for-user-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/DELETE/path`. @@ -14218,30 +14443,30 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/teams/{team_id}/memberships/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - username: The handle for the GitHub user account. public init( - team_id: Components.Parameters.team_hyphen_id, - username: Components.Parameters.username + teamId: Components.Parameters.TeamId, + username: Components.Parameters.Username ) { - self.team_id = team_id + self.teamId = teamId self.username = username } } - public var path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path + public var path: Operations.TeamsRemoveMembershipForUserLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsRemoveMembershipForUserLegacy.Input.Path) { self.path = path } } @@ -14255,12 +14480,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsRemoveMembershipForUserLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsRemoveMembershipForUserLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -14282,12 +14515,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Forbidden) + case forbidden(Operations.TeamsRemoveMembershipForUserLegacy.Output.Forbidden) + /// if team synchronization is set up + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/memberships/{username}/delete(teams/remove-membership-for-user-legacy)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + public static var forbidden: Self { + .forbidden(.init()) + } /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_remove_hyphen_membership_hyphen_for_hyphen_user_hyphen_legacy.Output.Forbidden { + public var forbidden: Operations.TeamsRemoveMembershipForUserLegacy.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -14314,7 +14555,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/projects`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)`. - public enum teams_sol_list_hyphen_projects_hyphen_legacy { + public enum TeamsListProjectsLegacy { public static let id: Swift.String = "teams/list-projects-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/path`. @@ -14322,52 +14563,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Path + public var path: Operations.TeamsListProjectsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Query + public var query: Operations.TeamsListProjectsLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListProjectsLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -14375,9 +14616,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListProjectsLegacy.Input.Path, + query: Operations.TeamsListProjectsLegacy.Input.Query = .init(), + headers: Operations.TeamsListProjectsLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -14389,26 +14630,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListProjectsLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_project]) + case json([Components.Schemas.TeamProject]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_project] { + public var json: [Components.Schemas.TeamProject] { get throws { switch self { case let .json(body): @@ -14418,15 +14659,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListProjectsLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListProjectsLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListProjectsLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -14437,12 +14678,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListProjectsLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_projects_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListProjectsLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -14460,12 +14701,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/get(teams/list-projects-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14517,7 +14758,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)`. - public enum teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy { + public enum TeamsCheckPermissionsForProjectLegacy { public static let id: Swift.String = "teams/check-permissions-for-project-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/path`. @@ -14525,45 +14766,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - project_id: The unique identifier of the project. + /// - teamId: The unique identifier of the team. + /// - projectId: The unique identifier of the project. public init( - team_id: Components.Parameters.team_hyphen_id, - project_id: Components.Parameters.project_hyphen_id + teamId: Components.Parameters.TeamId, + projectId: Components.Parameters.ProjectId ) { - self.team_id = team_id - self.project_id = project_id + self.teamId = teamId + self.projectId = projectId } } - public var path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Path + public var path: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Path, + headers: Operations.TeamsCheckPermissionsForProjectLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -14574,12 +14815,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_project) + case json(Components.Schemas.TeamProject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_project { + public var json: Components.Schemas.TeamProject { get throws { switch self { case let .json(body): @@ -14589,12 +14830,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsCheckPermissionsForProjectLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsCheckPermissionsForProjectLegacy.Output.Ok.Body) { self.body = body } } @@ -14603,12 +14844,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsCheckPermissionsForProjectLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsCheckPermissionsForProjectLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -14630,12 +14871,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.NotFound) + case notFound(Operations.TeamsCheckPermissionsForProjectLegacy.Output.NotFound) + /// Not Found if project is not managed by this team + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/get(teams/check-permissions-for-project-legacy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_project_hyphen_legacy.Output.NotFound { + public var notFound: Operations.TeamsCheckPermissionsForProjectLegacy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -14687,7 +14936,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy { + public enum TeamsAddOrUpdateProjectPermissionsLegacy { public static let id: Swift.String = "teams/add-or-update-project-permissions-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/path`. @@ -14695,45 +14944,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - project_id: The unique identifier of the project. + /// - teamId: The unique identifier of the team. + /// - projectId: The unique identifier of the project. public init( - team_id: Components.Parameters.team_hyphen_id, - project_id: Components.Parameters.project_hyphen_id + teamId: Components.Parameters.TeamId, + projectId: Components.Parameters.ProjectId ) { - self.team_id = team_id - self.project_id = project_id + self.teamId = teamId + self.projectId = projectId } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Path + public var path: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case read = "read" case write = "write" case admin = "admin" @@ -14741,12 +14990,12 @@ public enum Operations { /// The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/requestBody/json/permission`. - public var permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? - /// Creates a new `jsonPayload`. + public var permission: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body.JsonPayload.PermissionPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." - public init(permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? = nil) { + public init(permission: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body.JsonPayload.PermissionPayload? = nil) { self.permission = permission } public enum CodingKeys: String, CodingKey { @@ -14754,9 +15003,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body? + public var body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -14764,9 +15013,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Input.Body? = nil + path: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Input.Body? = nil ) { self.path = path self.headers = headers @@ -14783,12 +15032,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -14805,35 +15062,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/responses/403/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/responses/403/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/responses/403/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/responses/403/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/PUT/responses/403/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body.jsonPayload { + public var json: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -14843,12 +15100,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body + public var body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden.Body) { + public init(body: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden.Body) { self.body = body } } @@ -14857,12 +15114,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden) + case forbidden(Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_project_hyphen_permissions_hyphen_legacy.Output.Forbidden { + public var forbidden: Operations.TeamsAddOrUpdateProjectPermissionsLegacy.Output.Forbidden { get throws { switch self { case let .forbidden(response): @@ -14880,12 +15137,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14903,12 +15160,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/put(teams/add-or-update-project-permissions-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -14960,7 +15217,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/projects/{project_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)`. - public enum teams_sol_remove_hyphen_project_hyphen_legacy { + public enum TeamsRemoveProjectLegacy { public static let id: Swift.String = "teams/remove-project-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/DELETE/path`. @@ -14968,45 +15225,45 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The unique identifier of the project. /// /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/DELETE/path/project_id`. - public var project_id: Components.Parameters.project_hyphen_id + public var projectId: Components.Parameters.ProjectId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - /// - project_id: The unique identifier of the project. + /// - teamId: The unique identifier of the team. + /// - projectId: The unique identifier of the project. public init( - team_id: Components.Parameters.team_hyphen_id, - project_id: Components.Parameters.project_hyphen_id + teamId: Components.Parameters.TeamId, + projectId: Components.Parameters.ProjectId ) { - self.team_id = team_id - self.project_id = project_id + self.teamId = teamId + self.projectId = projectId } } - public var path: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Path + public var path: Operations.TeamsRemoveProjectLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/projects/{project_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsRemoveProjectLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsRemoveProjectLegacy.Input.Path, + headers: Operations.TeamsRemoveProjectLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15022,12 +15279,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsRemoveProjectLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_project_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsRemoveProjectLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15045,12 +15310,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15068,12 +15333,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/projects/{project_id}/delete(teams/remove-project-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -15124,7 +15389,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. - public enum teams_sol_list_hyphen_repos_hyphen_legacy { + public enum TeamsListReposLegacy { public static let id: Swift.String = "teams/list-repos-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/path`. @@ -15132,52 +15397,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Path + public var path: Operations.TeamsListReposLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Query + public var query: Operations.TeamsListReposLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListReposLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15185,9 +15450,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListReposLegacy.Input.Path, + query: Operations.TeamsListReposLegacy.Input.Query = .init(), + headers: Operations.TeamsListReposLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -15199,26 +15464,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListReposLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/GET/responses/200/content/application\/json`. - case json([Components.Schemas.minimal_hyphen_repository]) + case json([Components.Schemas.MinimalRepository]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.minimal_hyphen_repository] { + public var json: [Components.Schemas.MinimalRepository] { get throws { switch self { case let .json(body): @@ -15228,15 +15493,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListReposLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListReposLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListReposLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15247,12 +15512,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListReposLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_repos_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListReposLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -15270,12 +15535,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15331,7 +15596,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)`. - public enum teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy { + public enum TeamsCheckPermissionsForRepoLegacy { public static let id: Swift.String = "teams/check-permissions-for-repo-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/path`. @@ -15339,52 +15604,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - team_id: Components.Parameters.team_hyphen_id, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + teamId: Components.Parameters.TeamId, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { - self.team_id = team_id + self.teamId = teamId self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Path + public var path: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Path, + headers: Operations.TeamsCheckPermissionsForRepoLegacy.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15395,12 +15660,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.team_hyphen_repository) + case json(Components.Schemas.TeamRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.team_hyphen_repository { + public var json: Components.Schemas.TeamRepository { get throws { switch self { case let .json(body): @@ -15410,12 +15675,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsCheckPermissionsForRepoLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.Ok.Body) { + public init(body: Operations.TeamsCheckPermissionsForRepoLegacy.Output.Ok.Body) { self.body = body } } @@ -15424,12 +15689,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsCheckPermissionsForRepoLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsCheckPermissionsForRepoLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -15451,12 +15716,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsCheckPermissionsForRepoLegacy.Output.NoContent) + /// Response if repository is managed by this team + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsCheckPermissionsForRepoLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15478,12 +15751,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.NotFound) + case notFound(Operations.TeamsCheckPermissionsForRepoLegacy.Output.NotFound) + /// Not Found if repository is not managed by this team + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/get(teams/check-permissions-for-repo-legacy)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.teams_sol_check_hyphen_permissions_hyphen_for_hyphen_repo_hyphen_legacy.Output.NotFound { + public var notFound: Operations.TeamsCheckPermissionsForRepoLegacy.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -15538,7 +15819,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)`. - public enum teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy { + public enum TeamsAddOrUpdateRepoPermissionsLegacy { public static let id: Swift.String = "teams/add-or-update-repo-permissions-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/path`. @@ -15546,52 +15827,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - team_id: Components.Parameters.team_hyphen_id, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + teamId: Components.Parameters.TeamId, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { - self.team_id = team_id + self.teamId = teamId self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Path + public var path: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/requestBody/json/permission`. - @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { + @frozen public enum PermissionPayload: String, Codable, Hashable, Sendable, CaseIterable { case pull = "pull" case push = "push" case admin = "admin" @@ -15599,12 +15880,12 @@ public enum Operations { /// The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/requestBody/json/permission`. - public var permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? - /// Creates a new `jsonPayload`. + public var permission: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body.JsonPayload.PermissionPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - permission: The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - public init(permission: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? = nil) { + public init(permission: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body.JsonPayload.PermissionPayload? = nil) { self.permission = permission } public enum CodingKeys: String, CodingKey { @@ -15612,9 +15893,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/PUT/requestBody/content/application\/json`. - case json(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body.jsonPayload) + case json(Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body.JsonPayload) } - public var body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body? + public var body: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -15622,9 +15903,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Path, - headers: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Headers = .init(), - body: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Input.Body? = nil + path: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Path, + headers: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Headers = .init(), + body: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Input.Body? = nil ) { self.path = path self.headers = headers @@ -15641,12 +15922,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_add_hyphen_or_hyphen_update_hyphen_repo_hyphen_permissions_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsAddOrUpdateRepoPermissionsLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15664,12 +15953,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15687,12 +15976,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/put(teams/add-or-update-repo-permissions-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -15745,7 +16034,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /teams/{team_id}/repos/{owner}/{repo}`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)`. - public enum teams_sol_remove_hyphen_repo_hyphen_legacy { + public enum TeamsRemoveRepoLegacy { public static let id: Swift.String = "teams/remove-repo-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/DELETE/path`. @@ -15753,37 +16042,37 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/DELETE/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/teams/{team_id}/repos/{owner}/{repo}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. + /// - teamId: The unique identifier of the team. /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - team_id: Components.Parameters.team_hyphen_id, - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + teamId: Components.Parameters.TeamId, + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { - self.team_id = team_id + self.teamId = teamId self.owner = owner self.repo = repo } } - public var path: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input.Path + public var path: Operations.TeamsRemoveRepoLegacy.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Input.Path) { + public init(path: Operations.TeamsRemoveRepoLegacy.Input.Path) { self.path = path } } @@ -15797,12 +16086,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Output.NoContent) + case noContent(Operations.TeamsRemoveRepoLegacy.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//teams/{team_id}/repos/{owner}/{repo}/delete(teams/remove-repo-legacy)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.teams_sol_remove_hyphen_repo_hyphen_legacy.Output.NoContent { + public var noContent: Operations.TeamsRemoveRepoLegacy.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15828,7 +16125,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. - public enum teams_sol_list_hyphen_child_hyphen_legacy { + public enum TeamsListChildLegacy { public static let id: Swift.String = "teams/list-child-legacy" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/path`. @@ -15836,52 +16133,52 @@ public enum Operations { /// The unique identifier of the team. /// /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/path/team_id`. - public var team_id: Components.Parameters.team_hyphen_id + public var teamId: Components.Parameters.TeamId /// Creates a new `Path`. /// /// - Parameters: - /// - team_id: The unique identifier of the team. - public init(team_id: Components.Parameters.team_hyphen_id) { - self.team_id = team_id + /// - teamId: The unique identifier of the team. + public init(teamId: Components.Parameters.TeamId) { + self.teamId = teamId } } - public var path: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Path + public var path: Operations.TeamsListChildLegacy.Input.Path /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Query + public var query: Operations.TeamsListChildLegacy.Input.Query /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Headers + public var headers: Operations.TeamsListChildLegacy.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -15889,9 +16186,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Path, - query: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Input.Headers = .init() + path: Operations.TeamsListChildLegacy.Input.Path, + query: Operations.TeamsListChildLegacy.Input.Query = .init(), + headers: Operations.TeamsListChildLegacy.Input.Headers = .init() ) { self.path = path self.query = query @@ -15903,26 +16200,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Headers + public var headers: Operations.TeamsListChildLegacy.Output.Ok.Headers /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/teams/{team_id}/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team]) + case json([Components.Schemas.Team]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team] { + public var json: [Components.Schemas.Team] { get throws { switch self { case let .json(body): @@ -15932,15 +16229,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Body + public var body: Operations.TeamsListChildLegacy.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok.Body + headers: Operations.TeamsListChildLegacy.Output.Ok.Headers = .init(), + body: Operations.TeamsListChildLegacy.Output.Ok.Body ) { self.headers = headers self.body = body @@ -15951,12 +16248,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok) + case ok(Operations.TeamsListChildLegacy.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_child_hyphen_legacy.Output.Ok { + public var ok: Operations.TeamsListChildLegacy.Output.Ok { get throws { switch self { case let .ok(response): @@ -15974,12 +16271,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15997,12 +16294,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16020,12 +16317,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -16080,7 +16377,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/teams`. /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)`. - public enum teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum TeamsListForAuthenticatedUser { public static let id: Swift.String = "teams/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/teams/GET/query`. @@ -16088,45 +16385,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/teams/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/teams/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.TeamsListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/teams/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.TeamsListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.TeamsListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.TeamsListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -16137,26 +16434,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/teams/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/teams/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.TeamsListForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/teams/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/teams/GET/responses/200/content/application\/json`. - case json([Components.Schemas.team_hyphen_full]) + case json([Components.Schemas.TeamFull]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.team_hyphen_full] { + public var json: [Components.Schemas.TeamFull] { get throws { switch self { case let .json(body): @@ -16166,15 +16463,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.TeamsListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.TeamsListForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.TeamsListForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -16185,12 +16482,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.TeamsListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.teams_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.TeamsListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -16208,12 +16505,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -16231,12 +16536,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16254,12 +16559,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/teams/get(teams/list-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): From a771acc8debb1fae0b49400ca5c45d975850e6aa Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:06:11 -0700 Subject: [PATCH 33/46] Commit via running ake Sources/users --- Sources/users/Client.swift | 844 +++---- Sources/users/Types.swift | 4671 +++++++++++++++++++----------------- 2 files changed, 2946 insertions(+), 2569 deletions(-) diff --git a/Sources/users/Client.swift b/Sources/users/Client.swift index 922e00727f..454dd60f53 100644 --- a/Sources/users/Client.swift +++ b/Sources/users/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user`. /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)`. - public func users_sol_get_hyphen_authenticated(_ input: Operations.users_sol_get_hyphen_authenticated.Input) async throws -> Operations.users_sol_get_hyphen_authenticated.Output { + public func usersGetAuthenticated(_ input: Operations.UsersGetAuthenticated.Input) async throws -> Operations.UsersGetAuthenticated.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_authenticated.id, + forOperation: Operations.UsersGetAuthenticated.id, serializer: { input in let path = try converter.renderedPath( template: "/user", @@ -68,7 +68,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body + let body: Operations.UsersGetAuthenticated.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -78,7 +78,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body.jsonPayload.self, + Operations.UsersGetAuthenticated.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -92,7 +92,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -102,7 +102,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -114,7 +114,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -124,7 +124,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -152,10 +152,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /user`. /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)`. - public func users_sol_update_hyphen_authenticated(_ input: Operations.users_sol_update_hyphen_authenticated.Input) async throws -> Operations.users_sol_update_hyphen_authenticated.Output { + public func usersUpdateAuthenticated(_ input: Operations.UsersUpdateAuthenticated.Input) async throws -> Operations.UsersUpdateAuthenticated.Output { try await client.send( input: input, - forOperation: Operations.users_sol_update_hyphen_authenticated.id, + forOperation: Operations.UsersUpdateAuthenticated.id, serializer: { input in let path = try converter.renderedPath( template: "/user", @@ -187,7 +187,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_update_hyphen_authenticated.Output.Ok.Body + let body: Operations.UsersUpdateAuthenticated.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -197,7 +197,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.private_hyphen_user.self, + Components.Schemas.PrivateUser.self, from: responseBody, transforming: { value in .json(value) @@ -211,7 +211,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -221,7 +221,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -233,7 +233,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -243,7 +243,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -255,7 +255,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -265,7 +265,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -277,7 +277,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -287,7 +287,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -315,10 +315,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/blocks`. /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)`. - public func users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output { + public func usersListBlockedByAuthenticatedUser(_ input: Operations.UsersListBlockedByAuthenticatedUser.Input) async throws -> Operations.UsersListBlockedByAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListBlockedByAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/blocks", @@ -334,7 +334,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -353,7 +353,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListBlockedByAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -363,7 +363,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -377,7 +377,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -387,7 +387,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -399,7 +399,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -409,7 +409,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -421,7 +421,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -431,7 +431,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -459,10 +459,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)`. - public func users_sol_check_hyphen_blocked(_ input: Operations.users_sol_check_hyphen_blocked.Input) async throws -> Operations.users_sol_check_hyphen_blocked.Output { + public func usersCheckBlocked(_ input: Operations.UsersCheckBlocked.Input) async throws -> Operations.UsersCheckBlocked.Output { try await client.send( input: input, - forOperation: Operations.users_sol_check_hyphen_blocked.id, + forOperation: Operations.UsersCheckBlocked.id, serializer: { input in let path = try converter.renderedPath( template: "/user/blocks/{}", @@ -487,7 +487,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_check_hyphen_blocked.Output.NotFound.Body + let body: Operations.UsersCheckBlocked.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -497,7 +497,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -511,7 +511,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -521,7 +521,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -533,7 +533,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -543,7 +543,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -571,10 +571,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)`. - public func users_sol_block(_ input: Operations.users_sol_block.Input) async throws -> Operations.users_sol_block.Output { + public func usersBlock(_ input: Operations.UsersBlock.Input) async throws -> Operations.UsersBlock.Output { try await client.send( input: input, - forOperation: Operations.users_sol_block.id, + forOperation: Operations.UsersBlock.id, serializer: { input in let path = try converter.renderedPath( template: "/user/blocks/{}", @@ -601,7 +601,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -611,7 +611,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -623,7 +623,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -633,7 +633,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -645,7 +645,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -655,7 +655,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -667,7 +667,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -677,7 +677,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -705,10 +705,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)`. - public func users_sol_unblock(_ input: Operations.users_sol_unblock.Input) async throws -> Operations.users_sol_unblock.Output { + public func usersUnblock(_ input: Operations.UsersUnblock.Input) async throws -> Operations.UsersUnblock.Output { try await client.send( input: input, - forOperation: Operations.users_sol_unblock.id, + forOperation: Operations.UsersUnblock.id, serializer: { input in let path = try converter.renderedPath( template: "/user/blocks/{}", @@ -735,7 +735,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -745,7 +745,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -757,7 +757,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -767,7 +767,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -779,7 +779,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -789,7 +789,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -817,10 +817,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /user/email/visibility`. /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)`. - public func users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersSetPrimaryEmailVisibilityForAuthenticatedUser(_ input: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input) async throws -> Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/email/visibility", @@ -850,7 +850,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -860,7 +860,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.email].self, + [Components.Schemas.Email].self, from: responseBody, transforming: { value in .json(value) @@ -874,7 +874,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -884,7 +884,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -896,7 +896,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -906,7 +906,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -918,7 +918,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -928,7 +928,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -940,7 +940,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -950,7 +950,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -981,10 +981,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/emails`. /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)`. - public func users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListEmailsForAuthenticatedUser(_ input: Operations.UsersListEmailsForAuthenticatedUser.Input) async throws -> Operations.UsersListEmailsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListEmailsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/emails", @@ -1000,7 +1000,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1018,13 +1018,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1034,7 +1034,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.email].self, + [Components.Schemas.Email].self, from: responseBody, transforming: { value in .json(value) @@ -1051,7 +1051,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1061,7 +1061,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1073,7 +1073,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1083,7 +1083,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1095,7 +1095,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1105,7 +1105,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1133,10 +1133,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/emails`. /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)`. - public func users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersAddEmailForAuthenticatedUser(_ input: Operations.UsersAddEmailForAuthenticatedUser.Input) async throws -> Operations.UsersAddEmailForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersAddEmailForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/emails", @@ -1168,7 +1168,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.UsersAddEmailForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1178,7 +1178,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.email].self, + [Components.Schemas.Email].self, from: responseBody, transforming: { value in .json(value) @@ -1190,7 +1190,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1200,7 +1200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1214,7 +1214,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1224,7 +1224,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1236,7 +1236,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1246,7 +1246,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1258,7 +1258,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1268,7 +1268,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1296,10 +1296,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/emails`. /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)`. - public func users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersDeleteEmailForAuthenticatedUser(_ input: Operations.UsersDeleteEmailForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteEmailForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersDeleteEmailForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/emails", @@ -1335,7 +1335,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1345,7 +1345,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1357,7 +1357,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1367,7 +1367,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1379,7 +1379,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1389,7 +1389,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1401,7 +1401,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1411,7 +1411,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1439,10 +1439,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/followers`. /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)`. - public func users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListFollowersForAuthenticatedUser(_ input: Operations.UsersListFollowersForAuthenticatedUser.Input) async throws -> Operations.UsersListFollowersForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListFollowersForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/followers", @@ -1458,7 +1458,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1476,13 +1476,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1492,7 +1492,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -1509,7 +1509,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1519,7 +1519,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1531,7 +1531,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1541,7 +1541,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1569,10 +1569,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/following`. /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)`. - public func users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output { + public func usersListFollowedByAuthenticatedUser(_ input: Operations.UsersListFollowedByAuthenticatedUser.Input) async throws -> Operations.UsersListFollowedByAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListFollowedByAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/following", @@ -1588,7 +1588,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1606,13 +1606,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1622,7 +1622,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -1639,7 +1639,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1649,7 +1649,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1661,7 +1661,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1671,7 +1671,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1699,10 +1699,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)`. - public func users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated(_ input: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input) async throws -> Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output { + public func usersCheckPersonIsFollowedByAuthenticated(_ input: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input) async throws -> Operations.UsersCheckPersonIsFollowedByAuthenticated.Output { try await client.send( input: input, - forOperation: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.id, + forOperation: Operations.UsersCheckPersonIsFollowedByAuthenticated.id, serializer: { input in let path = try converter.renderedPath( template: "/user/following/{}", @@ -1727,7 +1727,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NotFound.Body + let body: Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1737,7 +1737,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1751,7 +1751,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1761,7 +1761,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1773,7 +1773,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1783,7 +1783,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1813,10 +1813,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)`. - public func users_sol_follow(_ input: Operations.users_sol_follow.Input) async throws -> Operations.users_sol_follow.Output { + public func usersFollow(_ input: Operations.UsersFollow.Input) async throws -> Operations.UsersFollow.Output { try await client.send( input: input, - forOperation: Operations.users_sol_follow.id, + forOperation: Operations.UsersFollow.id, serializer: { input in let path = try converter.renderedPath( template: "/user/following/{}", @@ -1843,7 +1843,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1853,7 +1853,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1865,7 +1865,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1875,7 +1875,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1887,7 +1887,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1897,7 +1897,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1909,7 +1909,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1919,7 +1919,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1947,10 +1947,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)`. - public func users_sol_unfollow(_ input: Operations.users_sol_unfollow.Input) async throws -> Operations.users_sol_unfollow.Output { + public func usersUnfollow(_ input: Operations.UsersUnfollow.Input) async throws -> Operations.UsersUnfollow.Output { try await client.send( input: input, - forOperation: Operations.users_sol_unfollow.id, + forOperation: Operations.UsersUnfollow.id, serializer: { input in let path = try converter.renderedPath( template: "/user/following/{}", @@ -1977,7 +1977,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1987,7 +1987,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1999,7 +1999,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2009,7 +2009,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2021,7 +2021,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2031,7 +2031,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2061,10 +2061,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListGpgKeysForAuthenticatedUser(_ input: Operations.UsersListGpgKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListGpgKeysForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListGpgKeysForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/gpg_keys", @@ -2080,7 +2080,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2098,13 +2098,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2114,7 +2114,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.gpg_hyphen_key].self, + [Components.Schemas.GpgKey].self, from: responseBody, transforming: { value in .json(value) @@ -2131,7 +2131,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2141,7 +2141,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2153,7 +2153,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2163,7 +2163,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2175,7 +2175,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2185,7 +2185,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2215,10 +2215,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)`. - public func users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersCreateGpgKeyForAuthenticatedUser(_ input: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreateGpgKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersCreateGpgKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/gpg_keys", @@ -2248,7 +2248,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2258,7 +2258,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gpg_hyphen_key.self, + Components.Schemas.GpgKey.self, from: responseBody, transforming: { value in .json(value) @@ -2270,7 +2270,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2280,7 +2280,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2294,7 +2294,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2304,7 +2304,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2316,7 +2316,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2326,7 +2326,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2338,7 +2338,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2348,7 +2348,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2378,15 +2378,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)`. - public func users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersGetGpgKeyForAuthenticatedUser(_ input: Operations.UsersGetGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetGpgKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersGetGpgKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/gpg_keys/{}", parameters: [ - input.path.gpg_key_id + input.path.gpgKeyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2404,7 +2404,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersGetGpgKeyForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2414,7 +2414,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.gpg_hyphen_key.self, + Components.Schemas.GpgKey.self, from: responseBody, transforming: { value in .json(value) @@ -2426,7 +2426,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2436,7 +2436,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2450,7 +2450,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2460,7 +2460,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2472,7 +2472,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2482,7 +2482,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2512,15 +2512,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersDeleteGpgKeyForAuthenticatedUser(_ input: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteGpgKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersDeleteGpgKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/gpg_keys/{}", parameters: [ - input.path.gpg_key_id + input.path.gpgKeyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2540,7 +2540,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2550,7 +2550,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2562,7 +2562,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2572,7 +2572,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2586,7 +2586,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2596,7 +2596,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2608,7 +2608,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2618,7 +2618,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2648,10 +2648,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/keys`. /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListPublicSshKeysForAuthenticatedUser(_ input: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListPublicSshKeysForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListPublicSshKeysForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/keys", @@ -2667,7 +2667,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2685,13 +2685,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2701,7 +2701,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.key].self, + [Components.Schemas.Key].self, from: responseBody, transforming: { value in .json(value) @@ -2718,7 +2718,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2728,7 +2728,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2740,7 +2740,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2750,7 +2750,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2762,7 +2762,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2772,7 +2772,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2802,10 +2802,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/keys`. /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)`. - public func users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersCreatePublicSshKeyForAuthenticatedUser(_ input: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/keys", @@ -2835,7 +2835,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2845,7 +2845,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.key.self, + Components.Schemas.Key.self, from: responseBody, transforming: { value in .json(value) @@ -2857,7 +2857,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2867,7 +2867,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2881,7 +2881,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2891,7 +2891,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2903,7 +2903,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2913,7 +2913,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2925,7 +2925,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2935,7 +2935,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2965,15 +2965,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)`. - public func users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersGetPublicSshKeyForAuthenticatedUser(_ input: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersGetPublicSshKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/keys/{}", parameters: [ - input.path.key_id + input.path.keyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2991,7 +2991,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3001,7 +3001,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.key.self, + Components.Schemas.Key.self, from: responseBody, transforming: { value in .json(value) @@ -3013,7 +3013,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3023,7 +3023,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3037,7 +3037,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3047,7 +3047,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3059,7 +3059,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3069,7 +3069,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3099,15 +3099,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersDeletePublicSshKeyForAuthenticatedUser(_ input: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/keys/{}", parameters: [ - input.path.key_id + input.path.keyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3129,7 +3129,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3139,7 +3139,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3151,7 +3151,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3161,7 +3161,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3173,7 +3173,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3183,7 +3183,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3215,10 +3215,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/public_emails`. /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)`. - public func users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListPublicEmailsForAuthenticatedUser(_ input: Operations.UsersListPublicEmailsForAuthenticatedUser.Input) async throws -> Operations.UsersListPublicEmailsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListPublicEmailsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/public_emails", @@ -3234,7 +3234,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3252,13 +3252,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3268,7 +3268,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.email].self, + [Components.Schemas.Email].self, from: responseBody, transforming: { value in .json(value) @@ -3285,7 +3285,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3295,7 +3295,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3307,7 +3307,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3317,7 +3317,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3329,7 +3329,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3339,7 +3339,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3367,10 +3367,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)`. - public func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListSocialAccountsForAuthenticatedUser(_ input: Operations.UsersListSocialAccountsForAuthenticatedUser.Input) async throws -> Operations.UsersListSocialAccountsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListSocialAccountsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/social_accounts", @@ -3386,7 +3386,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3404,13 +3404,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3420,7 +3420,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.social_hyphen_account].self, + [Components.Schemas.SocialAccount].self, from: responseBody, transforming: { value in .json(value) @@ -3437,7 +3437,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3447,7 +3447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3459,7 +3459,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3469,7 +3469,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3481,7 +3481,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3491,7 +3491,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3521,10 +3521,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)`. - public func users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersAddSocialAccountForAuthenticatedUser(_ input: Operations.UsersAddSocialAccountForAuthenticatedUser.Input) async throws -> Operations.UsersAddSocialAccountForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersAddSocialAccountForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/social_accounts", @@ -3554,7 +3554,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.UsersAddSocialAccountForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3564,7 +3564,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.social_hyphen_account].self, + [Components.Schemas.SocialAccount].self, from: responseBody, transforming: { value in .json(value) @@ -3576,7 +3576,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3586,7 +3586,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3600,7 +3600,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3610,7 +3610,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3622,7 +3622,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3632,7 +3632,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3644,7 +3644,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3654,7 +3654,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3684,10 +3684,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)`. - public func users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersDeleteSocialAccountForAuthenticatedUser(_ input: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteSocialAccountForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersDeleteSocialAccountForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/social_accounts", @@ -3719,7 +3719,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3729,7 +3729,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -3743,7 +3743,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3753,7 +3753,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3765,7 +3765,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3775,7 +3775,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3787,7 +3787,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3797,7 +3797,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3827,10 +3827,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersListSshSigningKeysForAuthenticatedUser(_ input: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListSshSigningKeysForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersListSshSigningKeysForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/ssh_signing_keys", @@ -3846,7 +3846,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3864,13 +3864,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3880,7 +3880,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.ssh_hyphen_signing_hyphen_key].self, + [Components.Schemas.SshSigningKey].self, from: responseBody, transforming: { value in .json(value) @@ -3897,7 +3897,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3907,7 +3907,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3919,7 +3919,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3929,7 +3929,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3941,7 +3941,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3951,7 +3951,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3981,10 +3981,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)`. - public func users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersCreateSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/ssh_signing_keys", @@ -4014,7 +4014,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4024,7 +4024,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ssh_hyphen_signing_hyphen_key.self, + Components.Schemas.SshSigningKey.self, from: responseBody, transforming: { value in .json(value) @@ -4036,7 +4036,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4046,7 +4046,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4060,7 +4060,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4070,7 +4070,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4082,7 +4082,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4092,7 +4092,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4104,7 +4104,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4114,7 +4114,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4144,15 +4144,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)`. - public func users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersGetSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersGetSshSigningKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/ssh_signing_keys/{}", parameters: [ - input.path.ssh_signing_key_id + input.path.sshSigningKeyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4170,7 +4170,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4180,7 +4180,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ssh_hyphen_signing_hyphen_key.self, + Components.Schemas.SshSigningKey.self, from: responseBody, transforming: { value in .json(value) @@ -4192,7 +4192,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4202,7 +4202,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4216,7 +4216,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4226,7 +4226,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4238,7 +4238,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4248,7 +4248,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4278,15 +4278,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func usersDeleteSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/ssh_signing_keys/{}", parameters: [ - input.path.ssh_signing_key_id + input.path.sshSigningKeyId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4308,7 +4308,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4318,7 +4318,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4330,7 +4330,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4340,7 +4340,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4352,7 +4352,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4362,7 +4362,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4396,15 +4396,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/{account_id}`. /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. - public func users_sol_get_hyphen_by_hyphen_id(_ input: Operations.users_sol_get_hyphen_by_hyphen_id.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output { + public func usersGetById(_ input: Operations.UsersGetById.Input) async throws -> Operations.UsersGetById.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_by_hyphen_id.id, + forOperation: Operations.UsersGetById.id, serializer: { input in let path = try converter.renderedPath( template: "/user/{}", parameters: [ - input.path.account_id + input.path.accountId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4422,7 +4422,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body + let body: Operations.UsersGetById.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4432,7 +4432,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload.self, + Operations.UsersGetById.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4444,7 +4444,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4454,7 +4454,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4484,10 +4484,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users`. /// - Remark: Generated from `#/paths//users/get(users/list)`. - public func users_sol_list(_ input: Operations.users_sol_list.Input) async throws -> Operations.users_sol_list.Output { + public func usersList(_ input: Operations.UsersList.Input) async throws -> Operations.UsersList.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list.id, + forOperation: Operations.UsersList.id, serializer: { input in let path = try converter.renderedPath( template: "/users", @@ -4510,7 +4510,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -4521,13 +4521,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersList.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", as: Swift.String.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list.Output.Ok.Body + let body: Operations.UsersList.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4537,7 +4537,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -4576,10 +4576,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}`. /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)`. - public func users_sol_get_hyphen_by_hyphen_username(_ input: Operations.users_sol_get_hyphen_by_hyphen_username.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_username.Output { + public func usersGetByUsername(_ input: Operations.UsersGetByUsername.Input) async throws -> Operations.UsersGetByUsername.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_by_hyphen_username.id, + forOperation: Operations.UsersGetByUsername.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}", @@ -4602,7 +4602,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body + let body: Operations.UsersGetByUsername.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4612,7 +4612,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body.jsonPayload.self, + Operations.UsersGetByUsername.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4624,7 +4624,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4634,7 +4634,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4666,16 +4666,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)`. - public func users_sol_list_hyphen_attestations(_ input: Operations.users_sol_list_hyphen_attestations.Input) async throws -> Operations.users_sol_list_hyphen_attestations.Output { + public func usersListAttestations(_ input: Operations.UsersListAttestations.Input) async throws -> Operations.UsersListAttestations.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_attestations.id, + forOperation: Operations.UsersListAttestations.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/attestations/{}", parameters: [ input.path.username, - input.path.subject_digest + input.path.subjectDigest ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4688,7 +4688,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4709,7 +4709,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "predicate_type", - value: input.query.predicate_type + value: input.query.predicateType ) converter.setAcceptHeader( in: &request.headerFields, @@ -4721,7 +4721,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body + let body: Operations.UsersListAttestations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4731,7 +4731,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.self, + Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4743,7 +4743,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_attestations.Output.Created.Body + let body: Operations.UsersListAttestations.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4753,7 +4753,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -4767,7 +4767,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4777,7 +4777,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4805,10 +4805,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/followers`. /// - Remark: Generated from `#/paths//users/{username}/followers/get(users/list-followers-for-user)`. - public func users_sol_list_hyphen_followers_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output { + public func usersListFollowersForUser(_ input: Operations.UsersListFollowersForUser.Input) async throws -> Operations.UsersListFollowersForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListFollowersForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/followers", @@ -4826,7 +4826,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4844,13 +4844,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListFollowersForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListFollowersForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4860,7 +4860,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -4891,10 +4891,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/following`. /// - Remark: Generated from `#/paths//users/{username}/following/get(users/list-following-for-user)`. - public func users_sol_list_hyphen_following_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output { + public func usersListFollowingForUser(_ input: Operations.UsersListFollowingForUser.Input) async throws -> Operations.UsersListFollowingForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListFollowingForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/following", @@ -4912,7 +4912,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -4930,13 +4930,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListFollowingForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListFollowingForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4946,7 +4946,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_user].self, + [Components.Schemas.SimpleUser].self, from: responseBody, transforming: { value in .json(value) @@ -4977,16 +4977,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/following/{target_user}`. /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)`. - public func users_sol_check_hyphen_following_hyphen_for_hyphen_user(_ input: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output { + public func usersCheckFollowingForUser(_ input: Operations.UsersCheckFollowingForUser.Input) async throws -> Operations.UsersCheckFollowingForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersCheckFollowingForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/following/{}", parameters: [ input.path.username, - input.path.target_user + input.path.targetUser ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5020,10 +5020,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/gpg_keys`. /// - Remark: Generated from `#/paths//users/{username}/gpg_keys/get(users/list-gpg-keys-for-user)`. - public func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output { + public func usersListGpgKeysForUser(_ input: Operations.UsersListGpgKeysForUser.Input) async throws -> Operations.UsersListGpgKeysForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListGpgKeysForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/gpg_keys", @@ -5041,7 +5041,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5059,13 +5059,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListGpgKeysForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListGpgKeysForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5075,7 +5075,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.gpg_hyphen_key].self, + [Components.Schemas.GpgKey].self, from: responseBody, transforming: { value in .json(value) @@ -5110,10 +5110,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/hovercard`. /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)`. - public func users_sol_get_hyphen_context_hyphen_for_hyphen_user(_ input: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output { + public func usersGetContextForUser(_ input: Operations.UsersGetContextForUser.Input) async throws -> Operations.UsersGetContextForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersGetContextForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/hovercard", @@ -5131,14 +5131,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "subject_type", - value: input.query.subject_type + value: input.query.subjectType ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "subject_id", - value: input.query.subject_id + value: input.query.subjectId ) converter.setAcceptHeader( in: &request.headerFields, @@ -5150,7 +5150,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersGetContextForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5160,7 +5160,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.hovercard.self, + Components.Schemas.Hovercard.self, from: responseBody, transforming: { value in .json(value) @@ -5172,7 +5172,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5182,7 +5182,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5194,7 +5194,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5204,7 +5204,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5232,10 +5232,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/keys`. /// - Remark: Generated from `#/paths//users/{username}/keys/get(users/list-public-keys-for-user)`. - public func users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output { + public func usersListPublicKeysForUser(_ input: Operations.UsersListPublicKeysForUser.Input) async throws -> Operations.UsersListPublicKeysForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListPublicKeysForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/keys", @@ -5253,7 +5253,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5271,13 +5271,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListPublicKeysForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListPublicKeysForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5287,7 +5287,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.key_hyphen_simple].self, + [Components.Schemas.KeySimple].self, from: responseBody, transforming: { value in .json(value) @@ -5318,10 +5318,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/social_accounts`. /// - Remark: Generated from `#/paths//users/{username}/social_accounts/get(users/list-social-accounts-for-user)`. - public func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output { + public func usersListSocialAccountsForUser(_ input: Operations.UsersListSocialAccountsForUser.Input) async throws -> Operations.UsersListSocialAccountsForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListSocialAccountsForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/social_accounts", @@ -5339,7 +5339,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5357,13 +5357,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListSocialAccountsForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListSocialAccountsForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5373,7 +5373,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.social_hyphen_account].self, + [Components.Schemas.SocialAccount].self, from: responseBody, transforming: { value in .json(value) @@ -5404,10 +5404,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/ssh_signing_keys`. /// - Remark: Generated from `#/paths//users/{username}/ssh_signing_keys/get(users/list-ssh-signing-keys-for-user)`. - public func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output { + public func usersListSshSigningKeysForUser(_ input: Operations.UsersListSshSigningKeysForUser.Input) async throws -> Operations.UsersListSshSigningKeysForUser.Output { try await client.send( input: input, - forOperation: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.id, + forOperation: Operations.UsersListSshSigningKeysForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/users/{}/ssh_signing_keys", @@ -5425,7 +5425,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -5443,13 +5443,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.UsersListSshSigningKeysForUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.UsersListSshSigningKeysForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5459,7 +5459,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.ssh_hyphen_signing_hyphen_key].self, + [Components.Schemas.SshSigningKey].self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/users/Types.swift b/Sources/users/Types.swift index 0e488ea2f0..4a484b9249 100644 --- a/Sources/users/Types.swift +++ b/Sources/users/Types.swift @@ -17,49 +17,49 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user`. /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)`. - func users_sol_get_hyphen_authenticated(_ input: Operations.users_sol_get_hyphen_authenticated.Input) async throws -> Operations.users_sol_get_hyphen_authenticated.Output + func usersGetAuthenticated(_ input: Operations.UsersGetAuthenticated.Input) async throws -> Operations.UsersGetAuthenticated.Output /// Update the authenticated user /// /// **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. /// /// - Remark: HTTP `PATCH /user`. /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)`. - func users_sol_update_hyphen_authenticated(_ input: Operations.users_sol_update_hyphen_authenticated.Input) async throws -> Operations.users_sol_update_hyphen_authenticated.Output + func usersUpdateAuthenticated(_ input: Operations.UsersUpdateAuthenticated.Input) async throws -> Operations.UsersUpdateAuthenticated.Output /// List users blocked by the authenticated user /// /// List the users you've blocked on your personal account. /// /// - Remark: HTTP `GET /user/blocks`. /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)`. - func users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output + func usersListBlockedByAuthenticatedUser(_ input: Operations.UsersListBlockedByAuthenticatedUser.Input) async throws -> Operations.UsersListBlockedByAuthenticatedUser.Output /// Check if a user is blocked by the authenticated user /// /// Returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub. /// /// - Remark: HTTP `GET /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)`. - func users_sol_check_hyphen_blocked(_ input: Operations.users_sol_check_hyphen_blocked.Input) async throws -> Operations.users_sol_check_hyphen_blocked.Output + func usersCheckBlocked(_ input: Operations.UsersCheckBlocked.Input) async throws -> Operations.UsersCheckBlocked.Output /// Block a user /// /// Blocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned. /// /// - Remark: HTTP `PUT /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)`. - func users_sol_block(_ input: Operations.users_sol_block.Input) async throws -> Operations.users_sol_block.Output + func usersBlock(_ input: Operations.UsersBlock.Input) async throws -> Operations.UsersBlock.Output /// Unblock a user /// /// Unblocks the given user and returns a 204. /// /// - Remark: HTTP `DELETE /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)`. - func users_sol_unblock(_ input: Operations.users_sol_unblock.Input) async throws -> Operations.users_sol_unblock.Output + func usersUnblock(_ input: Operations.UsersUnblock.Input) async throws -> Operations.UsersUnblock.Output /// Set primary email visibility for the authenticated user /// /// Sets the visibility for your primary email addresses. /// /// - Remark: HTTP `PATCH /user/email/visibility`. /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)`. - func users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersSetPrimaryEmailVisibilityForAuthenticatedUser(_ input: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input) async throws -> Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output /// List email addresses for the authenticated user /// /// Lists all of your email addresses, and specifies which one is visible @@ -69,42 +69,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/emails`. /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)`. - func users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListEmailsForAuthenticatedUser(_ input: Operations.UsersListEmailsForAuthenticatedUser.Input) async throws -> Operations.UsersListEmailsForAuthenticatedUser.Output /// Add an email address for the authenticated user /// /// OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. /// /// - Remark: HTTP `POST /user/emails`. /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)`. - func users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersAddEmailForAuthenticatedUser(_ input: Operations.UsersAddEmailForAuthenticatedUser.Input) async throws -> Operations.UsersAddEmailForAuthenticatedUser.Output /// Delete an email address for the authenticated user /// /// OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. /// /// - Remark: HTTP `DELETE /user/emails`. /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)`. - func users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersDeleteEmailForAuthenticatedUser(_ input: Operations.UsersDeleteEmailForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteEmailForAuthenticatedUser.Output /// List followers of the authenticated user /// /// Lists the people following the authenticated user. /// /// - Remark: HTTP `GET /user/followers`. /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)`. - func users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListFollowersForAuthenticatedUser(_ input: Operations.UsersListFollowersForAuthenticatedUser.Input) async throws -> Operations.UsersListFollowersForAuthenticatedUser.Output /// List the people the authenticated user follows /// /// Lists the people who the authenticated user follows. /// /// - Remark: HTTP `GET /user/following`. /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)`. - func users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output + func usersListFollowedByAuthenticatedUser(_ input: Operations.UsersListFollowedByAuthenticatedUser.Input) async throws -> Operations.UsersListFollowedByAuthenticatedUser.Output /// Check if a person is followed by the authenticated user /// /// /// /// - Remark: HTTP `GET /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)`. - func users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated(_ input: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input) async throws -> Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output + func usersCheckPersonIsFollowedByAuthenticated(_ input: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input) async throws -> Operations.UsersCheckPersonIsFollowedByAuthenticated.Output /// Follow a user /// /// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." @@ -113,14 +113,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)`. - func users_sol_follow(_ input: Operations.users_sol_follow.Input) async throws -> Operations.users_sol_follow.Output + func usersFollow(_ input: Operations.UsersFollow.Input) async throws -> Operations.UsersFollow.Output /// Unfollow a user /// /// OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. /// /// - Remark: HTTP `DELETE /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)`. - func users_sol_unfollow(_ input: Operations.users_sol_unfollow.Input) async throws -> Operations.users_sol_unfollow.Output + func usersUnfollow(_ input: Operations.UsersUnfollow.Input) async throws -> Operations.UsersUnfollow.Output /// List GPG keys for the authenticated user /// /// Lists the current user's GPG keys. @@ -129,7 +129,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)`. - func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListGpgKeysForAuthenticatedUser(_ input: Operations.UsersListGpgKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListGpgKeysForAuthenticatedUser.Output /// Create a GPG key for the authenticated user /// /// Adds a GPG key to the authenticated user's GitHub account. @@ -138,7 +138,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)`. - func users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersCreateGpgKeyForAuthenticatedUser(_ input: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreateGpgKeyForAuthenticatedUser.Output /// Get a GPG key for the authenticated user /// /// View extended details for a single GPG key. @@ -147,7 +147,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)`. - func users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersGetGpgKeyForAuthenticatedUser(_ input: Operations.UsersGetGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetGpgKeyForAuthenticatedUser.Output /// Delete a GPG key for the authenticated user /// /// Removes a GPG key from the authenticated user's GitHub account. @@ -156,7 +156,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)`. - func users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersDeleteGpgKeyForAuthenticatedUser(_ input: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteGpgKeyForAuthenticatedUser.Output /// List public SSH keys for the authenticated user /// /// Lists the public SSH keys for the authenticated user's GitHub account. @@ -165,7 +165,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/keys`. /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)`. - func users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListPublicSshKeysForAuthenticatedUser(_ input: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListPublicSshKeysForAuthenticatedUser.Output /// Create a public SSH key for the authenticated user /// /// Adds a public SSH key to the authenticated user's GitHub account. @@ -174,7 +174,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/keys`. /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)`. - func users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersCreatePublicSshKeyForAuthenticatedUser(_ input: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output /// Get a public SSH key for the authenticated user /// /// View extended details for a single public SSH key. @@ -183,7 +183,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)`. - func users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersGetPublicSshKeyForAuthenticatedUser(_ input: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output /// Delete a public SSH key for the authenticated user /// /// Removes a public SSH key from the authenticated user's GitHub account. @@ -192,7 +192,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)`. - func users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersDeletePublicSshKeyForAuthenticatedUser(_ input: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Output /// List public email addresses for the authenticated user /// /// Lists your publicly visible email address, which you can set with the @@ -203,14 +203,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/public_emails`. /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)`. - func users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListPublicEmailsForAuthenticatedUser(_ input: Operations.UsersListPublicEmailsForAuthenticatedUser.Input) async throws -> Operations.UsersListPublicEmailsForAuthenticatedUser.Output /// List social accounts for the authenticated user /// /// Lists all of your social accounts. /// /// - Remark: HTTP `GET /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)`. - func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListSocialAccountsForAuthenticatedUser(_ input: Operations.UsersListSocialAccountsForAuthenticatedUser.Input) async throws -> Operations.UsersListSocialAccountsForAuthenticatedUser.Output /// Add social accounts for the authenticated user /// /// Add one or more social accounts to the authenticated user's profile. @@ -219,7 +219,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)`. - func users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersAddSocialAccountForAuthenticatedUser(_ input: Operations.UsersAddSocialAccountForAuthenticatedUser.Input) async throws -> Operations.UsersAddSocialAccountForAuthenticatedUser.Output /// Delete social accounts for the authenticated user /// /// Deletes one or more social accounts from the authenticated user's profile. @@ -228,7 +228,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)`. - func users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersDeleteSocialAccountForAuthenticatedUser(_ input: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteSocialAccountForAuthenticatedUser.Output /// List SSH signing keys for the authenticated user /// /// Lists the SSH signing keys for the authenticated user's GitHub account. @@ -237,7 +237,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)`. - func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersListSshSigningKeysForAuthenticatedUser(_ input: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input) async throws -> Operations.UsersListSshSigningKeysForAuthenticatedUser.Output /// Create a SSH signing key for the authenticated user /// /// Creates an SSH signing key for the authenticated user's GitHub account. @@ -246,7 +246,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)`. - func users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersCreateSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output /// Get an SSH signing key for the authenticated user /// /// Gets extended details for an SSH signing key. @@ -255,7 +255,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)`. - func users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersGetSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output /// Delete an SSH signing key for the authenticated user /// /// Deletes an SSH signing key from the authenticated user's GitHub account. @@ -264,7 +264,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)`. - func users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func usersDeleteSshSigningKeyForAuthenticatedUser(_ input: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input) async throws -> Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Output /// Get a user using their ID /// /// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. @@ -277,7 +277,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/{account_id}`. /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. - func users_sol_get_hyphen_by_hyphen_id(_ input: Operations.users_sol_get_hyphen_by_hyphen_id.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output + func usersGetById(_ input: Operations.UsersGetById.Input) async throws -> Operations.UsersGetById.Output /// List users /// /// Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. @@ -286,7 +286,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users`. /// - Remark: Generated from `#/paths//users/get(users/list)`. - func users_sol_list(_ input: Operations.users_sol_list.Input) async throws -> Operations.users_sol_list.Output + func usersList(_ input: Operations.UsersList.Input) async throws -> Operations.UsersList.Output /// Get a user /// /// Provides publicly available information about someone with a GitHub account. @@ -299,7 +299,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}`. /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)`. - func users_sol_get_hyphen_by_hyphen_username(_ input: Operations.users_sol_get_hyphen_by_hyphen_username.Input) async throws -> Operations.users_sol_get_hyphen_by_hyphen_username.Output + func usersGetByUsername(_ input: Operations.UsersGetByUsername.Input) async throws -> Operations.UsersGetByUsername.Output /// List attestations /// /// List a collection of artifact attestations with a given subject digest that are associated with repositories owned by a user. @@ -310,35 +310,35 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)`. - func users_sol_list_hyphen_attestations(_ input: Operations.users_sol_list_hyphen_attestations.Input) async throws -> Operations.users_sol_list_hyphen_attestations.Output + func usersListAttestations(_ input: Operations.UsersListAttestations.Input) async throws -> Operations.UsersListAttestations.Output /// List followers of a user /// /// Lists the people following the specified user. /// /// - Remark: HTTP `GET /users/{username}/followers`. /// - Remark: Generated from `#/paths//users/{username}/followers/get(users/list-followers-for-user)`. - func users_sol_list_hyphen_followers_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output + func usersListFollowersForUser(_ input: Operations.UsersListFollowersForUser.Input) async throws -> Operations.UsersListFollowersForUser.Output /// List the people a user follows /// /// Lists the people who the specified user follows. /// /// - Remark: HTTP `GET /users/{username}/following`. /// - Remark: Generated from `#/paths//users/{username}/following/get(users/list-following-for-user)`. - func users_sol_list_hyphen_following_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output + func usersListFollowingForUser(_ input: Operations.UsersListFollowingForUser.Input) async throws -> Operations.UsersListFollowingForUser.Output /// Check if a user follows another user /// /// /// /// - Remark: HTTP `GET /users/{username}/following/{target_user}`. /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)`. - func users_sol_check_hyphen_following_hyphen_for_hyphen_user(_ input: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output + func usersCheckFollowingForUser(_ input: Operations.UsersCheckFollowingForUser.Input) async throws -> Operations.UsersCheckFollowingForUser.Output /// List GPG keys for a user /// /// Lists the GPG keys for a user. This information is accessible by anyone. /// /// - Remark: HTTP `GET /users/{username}/gpg_keys`. /// - Remark: Generated from `#/paths//users/{username}/gpg_keys/get(users/list-gpg-keys-for-user)`. - func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output + func usersListGpgKeysForUser(_ input: Operations.UsersListGpgKeysForUser.Input) async throws -> Operations.UsersListGpgKeysForUser.Output /// Get contextual information for a user /// /// Provides hovercard information. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. @@ -349,28 +349,28 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /users/{username}/hovercard`. /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)`. - func users_sol_get_hyphen_context_hyphen_for_hyphen_user(_ input: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output + func usersGetContextForUser(_ input: Operations.UsersGetContextForUser.Input) async throws -> Operations.UsersGetContextForUser.Output /// List public keys for a user /// /// Lists the _verified_ public SSH keys for a user. This is accessible by anyone. /// /// - Remark: HTTP `GET /users/{username}/keys`. /// - Remark: Generated from `#/paths//users/{username}/keys/get(users/list-public-keys-for-user)`. - func users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output + func usersListPublicKeysForUser(_ input: Operations.UsersListPublicKeysForUser.Input) async throws -> Operations.UsersListPublicKeysForUser.Output /// List social accounts for a user /// /// Lists social media accounts for a user. This endpoint is accessible by anyone. /// /// - Remark: HTTP `GET /users/{username}/social_accounts`. /// - Remark: Generated from `#/paths//users/{username}/social_accounts/get(users/list-social-accounts-for-user)`. - func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output + func usersListSocialAccountsForUser(_ input: Operations.UsersListSocialAccountsForUser.Input) async throws -> Operations.UsersListSocialAccountsForUser.Output /// List SSH signing keys for a user /// /// Lists the SSH signing keys for a user. This operation is accessible by anyone. /// /// - Remark: HTTP `GET /users/{username}/ssh_signing_keys`. /// - Remark: Generated from `#/paths//users/{username}/ssh_signing_keys/get(users/list-ssh-signing-keys-for-user)`. - func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user(_ input: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output + func usersListSshSigningKeysForUser(_ input: Operations.UsersListSshSigningKeysForUser.Input) async throws -> Operations.UsersListSshSigningKeysForUser.Output } /// Convenience overloads for operation inputs. @@ -381,8 +381,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user`. /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)`. - public func users_sol_get_hyphen_authenticated(headers: Operations.users_sol_get_hyphen_authenticated.Input.Headers = .init()) async throws -> Operations.users_sol_get_hyphen_authenticated.Output { - try await users_sol_get_hyphen_authenticated(Operations.users_sol_get_hyphen_authenticated.Input(headers: headers)) + public func usersGetAuthenticated(headers: Operations.UsersGetAuthenticated.Input.Headers = .init()) async throws -> Operations.UsersGetAuthenticated.Output { + try await usersGetAuthenticated(Operations.UsersGetAuthenticated.Input(headers: headers)) } /// Update the authenticated user /// @@ -390,11 +390,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /user`. /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)`. - public func users_sol_update_hyphen_authenticated( - headers: Operations.users_sol_update_hyphen_authenticated.Input.Headers = .init(), - body: Operations.users_sol_update_hyphen_authenticated.Input.Body? = nil - ) async throws -> Operations.users_sol_update_hyphen_authenticated.Output { - try await users_sol_update_hyphen_authenticated(Operations.users_sol_update_hyphen_authenticated.Input( + public func usersUpdateAuthenticated( + headers: Operations.UsersUpdateAuthenticated.Input.Headers = .init(), + body: Operations.UsersUpdateAuthenticated.Input.Body? = nil + ) async throws -> Operations.UsersUpdateAuthenticated.Output { + try await usersUpdateAuthenticated(Operations.UsersUpdateAuthenticated.Input( headers: headers, body: body )) @@ -405,11 +405,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/blocks`. /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)`. - public func users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input( + public func usersListBlockedByAuthenticatedUser( + query: Operations.UsersListBlockedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListBlockedByAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListBlockedByAuthenticatedUser.Output { + try await usersListBlockedByAuthenticatedUser(Operations.UsersListBlockedByAuthenticatedUser.Input( query: query, headers: headers )) @@ -420,11 +420,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)`. - public func users_sol_check_hyphen_blocked( - path: Operations.users_sol_check_hyphen_blocked.Input.Path, - headers: Operations.users_sol_check_hyphen_blocked.Input.Headers = .init() - ) async throws -> Operations.users_sol_check_hyphen_blocked.Output { - try await users_sol_check_hyphen_blocked(Operations.users_sol_check_hyphen_blocked.Input( + public func usersCheckBlocked( + path: Operations.UsersCheckBlocked.Input.Path, + headers: Operations.UsersCheckBlocked.Input.Headers = .init() + ) async throws -> Operations.UsersCheckBlocked.Output { + try await usersCheckBlocked(Operations.UsersCheckBlocked.Input( path: path, headers: headers )) @@ -435,11 +435,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)`. - public func users_sol_block( - path: Operations.users_sol_block.Input.Path, - headers: Operations.users_sol_block.Input.Headers = .init() - ) async throws -> Operations.users_sol_block.Output { - try await users_sol_block(Operations.users_sol_block.Input( + public func usersBlock( + path: Operations.UsersBlock.Input.Path, + headers: Operations.UsersBlock.Input.Headers = .init() + ) async throws -> Operations.UsersBlock.Output { + try await usersBlock(Operations.UsersBlock.Input( path: path, headers: headers )) @@ -450,11 +450,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)`. - public func users_sol_unblock( - path: Operations.users_sol_unblock.Input.Path, - headers: Operations.users_sol_unblock.Input.Headers = .init() - ) async throws -> Operations.users_sol_unblock.Output { - try await users_sol_unblock(Operations.users_sol_unblock.Input( + public func usersUnblock( + path: Operations.UsersUnblock.Input.Path, + headers: Operations.UsersUnblock.Input.Headers = .init() + ) async throws -> Operations.UsersUnblock.Output { + try await usersUnblock(Operations.UsersUnblock.Input( path: path, headers: headers )) @@ -465,11 +465,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /user/email/visibility`. /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)`. - public func users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersSetPrimaryEmailVisibilityForAuthenticatedUser( + headers: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output { + try await usersSetPrimaryEmailVisibilityForAuthenticatedUser(Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input( headers: headers, body: body )) @@ -483,11 +483,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/emails`. /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)`. - public func users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListEmailsForAuthenticatedUser( + query: Operations.UsersListEmailsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListEmailsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListEmailsForAuthenticatedUser.Output { + try await usersListEmailsForAuthenticatedUser(Operations.UsersListEmailsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -498,11 +498,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/emails`. /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)`. - public func users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil - ) async throws -> Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersAddEmailForAuthenticatedUser( + headers: Operations.UsersAddEmailForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersAddEmailForAuthenticatedUser.Input.Body? = nil + ) async throws -> Operations.UsersAddEmailForAuthenticatedUser.Output { + try await usersAddEmailForAuthenticatedUser(Operations.UsersAddEmailForAuthenticatedUser.Input( headers: headers, body: body )) @@ -513,11 +513,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/emails`. /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)`. - public func users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil - ) async throws -> Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersDeleteEmailForAuthenticatedUser( + headers: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Body? = nil + ) async throws -> Operations.UsersDeleteEmailForAuthenticatedUser.Output { + try await usersDeleteEmailForAuthenticatedUser(Operations.UsersDeleteEmailForAuthenticatedUser.Input( headers: headers, body: body )) @@ -528,11 +528,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/followers`. /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)`. - public func users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListFollowersForAuthenticatedUser( + query: Operations.UsersListFollowersForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListFollowersForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListFollowersForAuthenticatedUser.Output { + try await usersListFollowersForAuthenticatedUser(Operations.UsersListFollowersForAuthenticatedUser.Input( query: query, headers: headers )) @@ -543,11 +543,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/following`. /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)`. - public func users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input( + public func usersListFollowedByAuthenticatedUser( + query: Operations.UsersListFollowedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListFollowedByAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListFollowedByAuthenticatedUser.Output { + try await usersListFollowedByAuthenticatedUser(Operations.UsersListFollowedByAuthenticatedUser.Input( query: query, headers: headers )) @@ -558,11 +558,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)`. - public func users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated( - path: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Path, - headers: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Headers = .init() - ) async throws -> Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output { - try await users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated(Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input( + public func usersCheckPersonIsFollowedByAuthenticated( + path: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Path, + headers: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Headers = .init() + ) async throws -> Operations.UsersCheckPersonIsFollowedByAuthenticated.Output { + try await usersCheckPersonIsFollowedByAuthenticated(Operations.UsersCheckPersonIsFollowedByAuthenticated.Input( path: path, headers: headers )) @@ -575,11 +575,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)`. - public func users_sol_follow( - path: Operations.users_sol_follow.Input.Path, - headers: Operations.users_sol_follow.Input.Headers = .init() - ) async throws -> Operations.users_sol_follow.Output { - try await users_sol_follow(Operations.users_sol_follow.Input( + public func usersFollow( + path: Operations.UsersFollow.Input.Path, + headers: Operations.UsersFollow.Input.Headers = .init() + ) async throws -> Operations.UsersFollow.Output { + try await usersFollow(Operations.UsersFollow.Input( path: path, headers: headers )) @@ -590,11 +590,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)`. - public func users_sol_unfollow( - path: Operations.users_sol_unfollow.Input.Path, - headers: Operations.users_sol_unfollow.Input.Headers = .init() - ) async throws -> Operations.users_sol_unfollow.Output { - try await users_sol_unfollow(Operations.users_sol_unfollow.Input( + public func usersUnfollow( + path: Operations.UsersUnfollow.Input.Path, + headers: Operations.UsersUnfollow.Input.Headers = .init() + ) async throws -> Operations.UsersUnfollow.Output { + try await usersUnfollow(Operations.UsersUnfollow.Input( path: path, headers: headers )) @@ -607,11 +607,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListGpgKeysForAuthenticatedUser( + query: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListGpgKeysForAuthenticatedUser.Output { + try await usersListGpgKeysForAuthenticatedUser(Operations.UsersListGpgKeysForAuthenticatedUser.Input( query: query, headers: headers )) @@ -624,11 +624,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)`. - public func users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersCreateGpgKeyForAuthenticatedUser( + headers: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersCreateGpgKeyForAuthenticatedUser.Output { + try await usersCreateGpgKeyForAuthenticatedUser(Operations.UsersCreateGpgKeyForAuthenticatedUser.Input( headers: headers, body: body )) @@ -641,11 +641,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)`. - public func users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersGetGpgKeyForAuthenticatedUser( + path: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersGetGpgKeyForAuthenticatedUser.Output { + try await usersGetGpgKeyForAuthenticatedUser(Operations.UsersGetGpgKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -658,11 +658,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersDeleteGpgKeyForAuthenticatedUser( + path: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersDeleteGpgKeyForAuthenticatedUser.Output { + try await usersDeleteGpgKeyForAuthenticatedUser(Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -675,11 +675,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/keys`. /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListPublicSshKeysForAuthenticatedUser( + query: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListPublicSshKeysForAuthenticatedUser.Output { + try await usersListPublicSshKeysForAuthenticatedUser(Operations.UsersListPublicSshKeysForAuthenticatedUser.Input( query: query, headers: headers )) @@ -692,11 +692,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/keys`. /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)`. - public func users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersCreatePublicSshKeyForAuthenticatedUser( + headers: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output { + try await usersCreatePublicSshKeyForAuthenticatedUser(Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input( headers: headers, body: body )) @@ -709,11 +709,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)`. - public func users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersGetPublicSshKeyForAuthenticatedUser( + path: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output { + try await usersGetPublicSshKeyForAuthenticatedUser(Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -726,11 +726,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersDeletePublicSshKeyForAuthenticatedUser( + path: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Output { + try await usersDeletePublicSshKeyForAuthenticatedUser(Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -745,11 +745,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/public_emails`. /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)`. - public func users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListPublicEmailsForAuthenticatedUser( + query: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListPublicEmailsForAuthenticatedUser.Output { + try await usersListPublicEmailsForAuthenticatedUser(Operations.UsersListPublicEmailsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -760,11 +760,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)`. - public func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListSocialAccountsForAuthenticatedUser( + query: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListSocialAccountsForAuthenticatedUser.Output { + try await usersListSocialAccountsForAuthenticatedUser(Operations.UsersListSocialAccountsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -777,11 +777,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)`. - public func users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersAddSocialAccountForAuthenticatedUser( + headers: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersAddSocialAccountForAuthenticatedUser.Output { + try await usersAddSocialAccountForAuthenticatedUser(Operations.UsersAddSocialAccountForAuthenticatedUser.Input( headers: headers, body: body )) @@ -794,11 +794,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)`. - public func users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersDeleteSocialAccountForAuthenticatedUser( + headers: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersDeleteSocialAccountForAuthenticatedUser.Output { + try await usersDeleteSocialAccountForAuthenticatedUser(Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input( headers: headers, body: body )) @@ -811,11 +811,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)`. - public func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersListSshSigningKeysForAuthenticatedUser( + query: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersListSshSigningKeysForAuthenticatedUser.Output { + try await usersListSshSigningKeysForAuthenticatedUser(Operations.UsersListSshSigningKeysForAuthenticatedUser.Input( query: query, headers: headers )) @@ -828,11 +828,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)`. - public func users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersCreateSshSigningKeyForAuthenticatedUser( + headers: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Body + ) async throws -> Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output { + try await usersCreateSshSigningKeyForAuthenticatedUser(Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input( headers: headers, body: body )) @@ -845,11 +845,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)`. - public func users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersGetSshSigningKeyForAuthenticatedUser( + path: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output { + try await usersGetSshSigningKeyForAuthenticatedUser(Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -862,11 +862,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)`. - public func users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func usersDeleteSshSigningKeyForAuthenticatedUser( + path: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Output { + try await usersDeleteSshSigningKeyForAuthenticatedUser(Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input( path: path, headers: headers )) @@ -883,11 +883,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/{account_id}`. /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. - public func users_sol_get_hyphen_by_hyphen_id( - path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path, - headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_by_hyphen_id.Output { - try await users_sol_get_hyphen_by_hyphen_id(Operations.users_sol_get_hyphen_by_hyphen_id.Input( + public func usersGetById( + path: Operations.UsersGetById.Input.Path, + headers: Operations.UsersGetById.Input.Headers = .init() + ) async throws -> Operations.UsersGetById.Output { + try await usersGetById(Operations.UsersGetById.Input( path: path, headers: headers )) @@ -900,11 +900,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users`. /// - Remark: Generated from `#/paths//users/get(users/list)`. - public func users_sol_list( - query: Operations.users_sol_list.Input.Query = .init(), - headers: Operations.users_sol_list.Input.Headers = .init() - ) async throws -> Operations.users_sol_list.Output { - try await users_sol_list(Operations.users_sol_list.Input( + public func usersList( + query: Operations.UsersList.Input.Query = .init(), + headers: Operations.UsersList.Input.Headers = .init() + ) async throws -> Operations.UsersList.Output { + try await usersList(Operations.UsersList.Input( query: query, headers: headers )) @@ -921,11 +921,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}`. /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)`. - public func users_sol_get_hyphen_by_hyphen_username( - path: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Path, - headers: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_by_hyphen_username.Output { - try await users_sol_get_hyphen_by_hyphen_username(Operations.users_sol_get_hyphen_by_hyphen_username.Input( + public func usersGetByUsername( + path: Operations.UsersGetByUsername.Input.Path, + headers: Operations.UsersGetByUsername.Input.Headers = .init() + ) async throws -> Operations.UsersGetByUsername.Output { + try await usersGetByUsername(Operations.UsersGetByUsername.Input( path: path, headers: headers )) @@ -940,12 +940,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)`. - public func users_sol_list_hyphen_attestations( - path: Operations.users_sol_list_hyphen_attestations.Input.Path, - query: Operations.users_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_attestations.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_attestations.Output { - try await users_sol_list_hyphen_attestations(Operations.users_sol_list_hyphen_attestations.Input( + public func usersListAttestations( + path: Operations.UsersListAttestations.Input.Path, + query: Operations.UsersListAttestations.Input.Query = .init(), + headers: Operations.UsersListAttestations.Input.Headers = .init() + ) async throws -> Operations.UsersListAttestations.Output { + try await usersListAttestations(Operations.UsersListAttestations.Input( path: path, query: query, headers: headers @@ -957,12 +957,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/followers`. /// - Remark: Generated from `#/paths//users/{username}/followers/get(users/list-followers-for-user)`. - public func users_sol_list_hyphen_followers_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_followers_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input( + public func usersListFollowersForUser( + path: Operations.UsersListFollowersForUser.Input.Path, + query: Operations.UsersListFollowersForUser.Input.Query = .init(), + headers: Operations.UsersListFollowersForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListFollowersForUser.Output { + try await usersListFollowersForUser(Operations.UsersListFollowersForUser.Input( path: path, query: query, headers: headers @@ -974,12 +974,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/following`. /// - Remark: Generated from `#/paths//users/{username}/following/get(users/list-following-for-user)`. - public func users_sol_list_hyphen_following_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_following_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input( + public func usersListFollowingForUser( + path: Operations.UsersListFollowingForUser.Input.Path, + query: Operations.UsersListFollowingForUser.Input.Query = .init(), + headers: Operations.UsersListFollowingForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListFollowingForUser.Output { + try await usersListFollowingForUser(Operations.UsersListFollowingForUser.Input( path: path, query: query, headers: headers @@ -991,8 +991,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/following/{target_user}`. /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)`. - public func users_sol_check_hyphen_following_hyphen_for_hyphen_user(path: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input.Path) async throws -> Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output { - try await users_sol_check_hyphen_following_hyphen_for_hyphen_user(Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input(path: path)) + public func usersCheckFollowingForUser(path: Operations.UsersCheckFollowingForUser.Input.Path) async throws -> Operations.UsersCheckFollowingForUser.Output { + try await usersCheckFollowingForUser(Operations.UsersCheckFollowingForUser.Input(path: path)) } /// List GPG keys for a user /// @@ -1000,12 +1000,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/gpg_keys`. /// - Remark: Generated from `#/paths//users/{username}/gpg_keys/get(users/list-gpg-keys-for-user)`. - public func users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input( + public func usersListGpgKeysForUser( + path: Operations.UsersListGpgKeysForUser.Input.Path, + query: Operations.UsersListGpgKeysForUser.Input.Query = .init(), + headers: Operations.UsersListGpgKeysForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListGpgKeysForUser.Output { + try await usersListGpgKeysForUser(Operations.UsersListGpgKeysForUser.Input( path: path, query: query, headers: headers @@ -1021,12 +1021,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/hovercard`. /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)`. - public func users_sol_get_hyphen_context_hyphen_for_hyphen_user( - path: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output { - try await users_sol_get_hyphen_context_hyphen_for_hyphen_user(Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input( + public func usersGetContextForUser( + path: Operations.UsersGetContextForUser.Input.Path, + query: Operations.UsersGetContextForUser.Input.Query = .init(), + headers: Operations.UsersGetContextForUser.Input.Headers = .init() + ) async throws -> Operations.UsersGetContextForUser.Output { + try await usersGetContextForUser(Operations.UsersGetContextForUser.Input( path: path, query: query, headers: headers @@ -1038,12 +1038,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/keys`. /// - Remark: Generated from `#/paths//users/{username}/keys/get(users/list-public-keys-for-user)`. - public func users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input( + public func usersListPublicKeysForUser( + path: Operations.UsersListPublicKeysForUser.Input.Path, + query: Operations.UsersListPublicKeysForUser.Input.Query = .init(), + headers: Operations.UsersListPublicKeysForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListPublicKeysForUser.Output { + try await usersListPublicKeysForUser(Operations.UsersListPublicKeysForUser.Input( path: path, query: query, headers: headers @@ -1055,12 +1055,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/social_accounts`. /// - Remark: Generated from `#/paths//users/{username}/social_accounts/get(users/list-social-accounts-for-user)`. - public func users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input( + public func usersListSocialAccountsForUser( + path: Operations.UsersListSocialAccountsForUser.Input.Path, + query: Operations.UsersListSocialAccountsForUser.Input.Query = .init(), + headers: Operations.UsersListSocialAccountsForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListSocialAccountsForUser.Output { + try await usersListSocialAccountsForUser(Operations.UsersListSocialAccountsForUser.Input( path: path, query: query, headers: headers @@ -1072,12 +1072,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /users/{username}/ssh_signing_keys`. /// - Remark: Generated from `#/paths//users/{username}/ssh_signing_keys/get(users/list-ssh-signing-keys-for-user)`. - public func users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user( - path: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output { - try await users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user(Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input( + public func usersListSshSigningKeysForUser( + path: Operations.UsersListSshSigningKeysForUser.Input.Path, + query: Operations.UsersListSshSigningKeysForUser.Input.Query = .init(), + headers: Operations.UsersListSshSigningKeysForUser.Input.Headers = .init() + ) async throws -> Operations.UsersListSshSigningKeysForUser.Output { + try await usersListSshSigningKeysForUser(Operations.UsersListSshSigningKeysForUser.Input( path: path, query: query, headers: headers @@ -1087,6 +1087,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -1102,7 +1111,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -1112,171 +1121,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1284,30 +1293,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1346,9 +1355,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1363,7 +1372,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1382,72 +1391,72 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Public User /// /// - Remark: Generated from `#/components/schemas/public-user`. - public struct public_hyphen_user: Codable, Hashable, Sendable { + public struct PublicUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/public-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/public-user/user_view_type`. - public var user_view_type: Swift.String? + public var userViewType: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/public-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/company`. @@ -1459,27 +1468,27 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/public-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/notification_email`. - public var notification_email: Swift.String? + public var notificationEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/hireable`. public var hireable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/public-user/bio`. public var bio: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/public_repos`. - public var public_repos: Swift.Int + public var publicRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/public_gists`. - public var public_gists: Swift.Int + public var publicGists: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/followers`. public var followers: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/following`. public var following: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/public-user/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/public-user/plan`. - public struct planPayload: Codable, Hashable, Sendable { + public struct PlanPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/public-user/plan/collaborators`. public var collaborators: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/plan/name`. @@ -1487,371 +1496,371 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/public-user/plan/space`. public var space: Swift.Int /// - Remark: Generated from `#/components/schemas/public-user/plan/private_repos`. - public var private_repos: Swift.Int - /// Creates a new `planPayload`. + public var privateRepos: Swift.Int + /// Creates a new `PlanPayload`. /// /// - Parameters: /// - collaborators: /// - name: /// - space: - /// - private_repos: + /// - privateRepos: public init( collaborators: Swift.Int, name: Swift.String, space: Swift.Int, - private_repos: Swift.Int + privateRepos: Swift.Int ) { self.collaborators = collaborators self.name = name self.space = space - self.private_repos = private_repos + self.privateRepos = privateRepos } public enum CodingKeys: String, CodingKey { case collaborators case name case space - case private_repos + case privateRepos = "private_repos" } } /// - Remark: Generated from `#/components/schemas/public-user/plan`. - public var plan: Components.Schemas.public_hyphen_user.planPayload? + public var plan: Components.Schemas.PublicUser.PlanPayload? /// - Remark: Generated from `#/components/schemas/public-user/private_gists`. - public var private_gists: Swift.Int? + public var privateGists: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/total_private_repos`. - public var total_private_repos: Swift.Int? + public var totalPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/owned_private_repos`. - public var owned_private_repos: Swift.Int? + public var ownedPrivateRepos: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/disk_usage`. - public var disk_usage: Swift.Int? + public var diskUsage: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/collaborators`. public var collaborators: Swift.Int? - /// Creates a new `public_hyphen_user`. + /// Creates a new `PublicUser`. /// /// - Parameters: /// - login: /// - id: - /// - user_view_type: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - userViewType: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - name: /// - company: /// - blog: /// - location: /// - email: - /// - notification_email: + /// - notificationEmail: /// - hireable: /// - bio: - /// - twitter_username: - /// - public_repos: - /// - public_gists: + /// - twitterUsername: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: /// - plan: - /// - private_gists: - /// - total_private_repos: - /// - owned_private_repos: - /// - disk_usage: + /// - privateGists: + /// - totalPrivateRepos: + /// - ownedPrivateRepos: + /// - diskUsage: /// - collaborators: public init( login: Swift.String, id: Swift.Int64, - user_view_type: Swift.String? = nil, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + userViewType: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, + siteAdmin: Swift.Bool, name: Swift.String? = nil, company: Swift.String? = nil, blog: Swift.String? = nil, location: Swift.String? = nil, email: Swift.String? = nil, - notification_email: Swift.String? = nil, + notificationEmail: Swift.String? = nil, hireable: Swift.Bool? = nil, bio: Swift.String? = nil, - twitter_username: Swift.String? = nil, - public_repos: Swift.Int, - public_gists: Swift.Int, + twitterUsername: Swift.String? = nil, + publicRepos: Swift.Int, + publicGists: Swift.Int, followers: Swift.Int, following: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - plan: Components.Schemas.public_hyphen_user.planPayload? = nil, - private_gists: Swift.Int? = nil, - total_private_repos: Swift.Int? = nil, - owned_private_repos: Swift.Int? = nil, - disk_usage: Swift.Int? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + plan: Components.Schemas.PublicUser.PlanPayload? = nil, + privateGists: Swift.Int? = nil, + totalPrivateRepos: Swift.Int? = nil, + ownedPrivateRepos: Swift.Int? = nil, + diskUsage: Swift.Int? = nil, collaborators: Swift.Int? = nil ) { self.login = login self.id = id - self.user_view_type = user_view_type - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.userViewType = userViewType + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.name = name self.company = company self.blog = blog self.location = location self.email = email - self.notification_email = notification_email + self.notificationEmail = notificationEmail self.hireable = hireable self.bio = bio - self.twitter_username = twitter_username - self.public_repos = public_repos - self.public_gists = public_gists + self.twitterUsername = twitterUsername + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.plan = plan - self.private_gists = private_gists - self.total_private_repos = total_private_repos - self.owned_private_repos = owned_private_repos - self.disk_usage = disk_usage + self.privateGists = privateGists + self.totalPrivateRepos = totalPrivateRepos + self.ownedPrivateRepos = ownedPrivateRepos + self.diskUsage = diskUsage self.collaborators = collaborators } public enum CodingKeys: String, CodingKey { case login case id - case user_view_type - case node_id - case avatar_url - case gravatar_id + case userViewType = "user_view_type" + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case name case company case blog case location case email - case notification_email + case notificationEmail = "notification_email" case hireable case bio - case twitter_username - case public_repos - case public_gists + case twitterUsername = "twitter_username" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case plan - case private_gists - case total_private_repos - case owned_private_repos - case disk_usage + case privateGists = "private_gists" + case totalPrivateRepos = "total_private_repos" + case ownedPrivateRepos = "owned_private_repos" + case diskUsage = "disk_usage" case collaborators } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - login = try container.decode( + self.login = try container.decode( Swift.String.self, forKey: .login ) - id = try container.decode( + self.id = try container.decode( Swift.Int64.self, forKey: .id ) - user_view_type = try container.decodeIfPresent( + self.userViewType = try container.decodeIfPresent( Swift.String.self, - forKey: .user_view_type + forKey: .userViewType ) - node_id = try container.decode( + self.nodeId = try container.decode( Swift.String.self, - forKey: .node_id + forKey: .nodeId ) - avatar_url = try container.decode( + self.avatarUrl = try container.decode( Swift.String.self, - forKey: .avatar_url + forKey: .avatarUrl ) - gravatar_id = try container.decodeIfPresent( + self.gravatarId = try container.decodeIfPresent( Swift.String.self, - forKey: .gravatar_id + forKey: .gravatarId ) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) - html_url = try container.decode( + self.htmlUrl = try container.decode( Swift.String.self, - forKey: .html_url + forKey: .htmlUrl ) - followers_url = try container.decode( + self.followersUrl = try container.decode( Swift.String.self, - forKey: .followers_url + forKey: .followersUrl ) - following_url = try container.decode( + self.followingUrl = try container.decode( Swift.String.self, - forKey: .following_url + forKey: .followingUrl ) - gists_url = try container.decode( + self.gistsUrl = try container.decode( Swift.String.self, - forKey: .gists_url + forKey: .gistsUrl ) - starred_url = try container.decode( + self.starredUrl = try container.decode( Swift.String.self, - forKey: .starred_url + forKey: .starredUrl ) - subscriptions_url = try container.decode( + self.subscriptionsUrl = try container.decode( Swift.String.self, - forKey: .subscriptions_url + forKey: .subscriptionsUrl ) - organizations_url = try container.decode( + self.organizationsUrl = try container.decode( Swift.String.self, - forKey: .organizations_url + forKey: .organizationsUrl ) - repos_url = try container.decode( + self.reposUrl = try container.decode( Swift.String.self, - forKey: .repos_url + forKey: .reposUrl ) - events_url = try container.decode( + self.eventsUrl = try container.decode( Swift.String.self, - forKey: .events_url + forKey: .eventsUrl ) - received_events_url = try container.decode( + self.receivedEventsUrl = try container.decode( Swift.String.self, - forKey: .received_events_url + forKey: .receivedEventsUrl ) - _type = try container.decode( + self._type = try container.decode( Swift.String.self, forKey: ._type ) - site_admin = try container.decode( + self.siteAdmin = try container.decode( Swift.Bool.self, - forKey: .site_admin + forKey: .siteAdmin ) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - company = try container.decodeIfPresent( + self.company = try container.decodeIfPresent( Swift.String.self, forKey: .company ) - blog = try container.decodeIfPresent( + self.blog = try container.decodeIfPresent( Swift.String.self, forKey: .blog ) - location = try container.decodeIfPresent( + self.location = try container.decodeIfPresent( Swift.String.self, forKey: .location ) - email = try container.decodeIfPresent( + self.email = try container.decodeIfPresent( Swift.String.self, forKey: .email ) - notification_email = try container.decodeIfPresent( + self.notificationEmail = try container.decodeIfPresent( Swift.String.self, - forKey: .notification_email + forKey: .notificationEmail ) - hireable = try container.decodeIfPresent( + self.hireable = try container.decodeIfPresent( Swift.Bool.self, forKey: .hireable ) - bio = try container.decodeIfPresent( + self.bio = try container.decodeIfPresent( Swift.String.self, forKey: .bio ) - twitter_username = try container.decodeIfPresent( + self.twitterUsername = try container.decodeIfPresent( Swift.String.self, - forKey: .twitter_username + forKey: .twitterUsername ) - public_repos = try container.decode( + self.publicRepos = try container.decode( Swift.Int.self, - forKey: .public_repos + forKey: .publicRepos ) - public_gists = try container.decode( + self.publicGists = try container.decode( Swift.Int.self, - forKey: .public_gists + forKey: .publicGists ) - followers = try container.decode( + self.followers = try container.decode( Swift.Int.self, forKey: .followers ) - following = try container.decode( + self.following = try container.decode( Swift.Int.self, forKey: .following ) - created_at = try container.decode( + self.createdAt = try container.decode( Foundation.Date.self, - forKey: .created_at + forKey: .createdAt ) - updated_at = try container.decode( + self.updatedAt = try container.decode( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - plan = try container.decodeIfPresent( - Components.Schemas.public_hyphen_user.planPayload.self, + self.plan = try container.decodeIfPresent( + Components.Schemas.PublicUser.PlanPayload.self, forKey: .plan ) - private_gists = try container.decodeIfPresent( + self.privateGists = try container.decodeIfPresent( Swift.Int.self, - forKey: .private_gists + forKey: .privateGists ) - total_private_repos = try container.decodeIfPresent( + self.totalPrivateRepos = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_private_repos + forKey: .totalPrivateRepos ) - owned_private_repos = try container.decodeIfPresent( + self.ownedPrivateRepos = try container.decodeIfPresent( Swift.Int.self, - forKey: .owned_private_repos + forKey: .ownedPrivateRepos ) - disk_usage = try container.decodeIfPresent( + self.diskUsage = try container.decodeIfPresent( Swift.Int.self, - forKey: .disk_usage + forKey: .diskUsage ) - collaborators = try container.decodeIfPresent( + self.collaborators = try container.decodeIfPresent( Swift.Int.self, forKey: .collaborators ) @@ -1902,8 +1911,8 @@ public enum Components { /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -1912,45 +1921,45 @@ public enum Components { /// Private User /// /// - Remark: Generated from `#/components/schemas/private-user`. - public struct private_hyphen_user: Codable, Hashable, Sendable { + public struct PrivateUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/private-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/private-user/user_view_type`. - public var user_view_type: Swift.String? + public var userViewType: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/private-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/company`. @@ -1962,39 +1971,39 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/private-user/email`. public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/notification_email`. - public var notification_email: Swift.String? + public var notificationEmail: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/hireable`. public var hireable: Swift.Bool? /// - Remark: Generated from `#/components/schemas/private-user/bio`. public var bio: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/public_repos`. - public var public_repos: Swift.Int + public var publicRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/public_gists`. - public var public_gists: Swift.Int + public var publicGists: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/followers`. public var followers: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/following`. public var following: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/private-user/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/private-user/private_gists`. - public var private_gists: Swift.Int + public var privateGists: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/total_private_repos`. - public var total_private_repos: Swift.Int + public var totalPrivateRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/owned_private_repos`. - public var owned_private_repos: Swift.Int + public var ownedPrivateRepos: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/disk_usage`. - public var disk_usage: Swift.Int + public var diskUsage: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/collaborators`. public var collaborators: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/two_factor_authentication`. - public var two_factor_authentication: Swift.Bool + public var twoFactorAuthentication: Swift.Bool /// - Remark: Generated from `#/components/schemas/private-user/plan`. - public struct planPayload: Codable, Hashable, Sendable { + public struct PlanPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/private-user/plan/collaborators`. public var collaborators: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/plan/name`. @@ -2002,223 +2011,223 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/private-user/plan/space`. public var space: Swift.Int /// - Remark: Generated from `#/components/schemas/private-user/plan/private_repos`. - public var private_repos: Swift.Int - /// Creates a new `planPayload`. + public var privateRepos: Swift.Int + /// Creates a new `PlanPayload`. /// /// - Parameters: /// - collaborators: /// - name: /// - space: - /// - private_repos: + /// - privateRepos: public init( collaborators: Swift.Int, name: Swift.String, space: Swift.Int, - private_repos: Swift.Int + privateRepos: Swift.Int ) { self.collaborators = collaborators self.name = name self.space = space - self.private_repos = private_repos + self.privateRepos = privateRepos } public enum CodingKeys: String, CodingKey { case collaborators case name case space - case private_repos + case privateRepos = "private_repos" } } /// - Remark: Generated from `#/components/schemas/private-user/plan`. - public var plan: Components.Schemas.private_hyphen_user.planPayload? + public var plan: Components.Schemas.PrivateUser.PlanPayload? /// - Remark: Generated from `#/components/schemas/private-user/business_plus`. - public var business_plus: Swift.Bool? + public var businessPlus: Swift.Bool? /// - Remark: Generated from `#/components/schemas/private-user/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `private_hyphen_user`. + public var ldapDn: Swift.String? + /// Creates a new `PrivateUser`. /// /// - Parameters: /// - login: /// - id: - /// - user_view_type: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - userViewType: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: + /// - siteAdmin: /// - name: /// - company: /// - blog: /// - location: /// - email: - /// - notification_email: + /// - notificationEmail: /// - hireable: /// - bio: - /// - twitter_username: - /// - public_repos: - /// - public_gists: + /// - twitterUsername: + /// - publicRepos: + /// - publicGists: /// - followers: /// - following: - /// - created_at: - /// - updated_at: - /// - private_gists: - /// - total_private_repos: - /// - owned_private_repos: - /// - disk_usage: + /// - createdAt: + /// - updatedAt: + /// - privateGists: + /// - totalPrivateRepos: + /// - ownedPrivateRepos: + /// - diskUsage: /// - collaborators: - /// - two_factor_authentication: + /// - twoFactorAuthentication: /// - plan: - /// - business_plus: - /// - ldap_dn: + /// - businessPlus: + /// - ldapDn: public init( login: Swift.String, id: Swift.Int64, - user_view_type: Swift.String? = nil, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + userViewType: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, + siteAdmin: Swift.Bool, name: Swift.String? = nil, company: Swift.String? = nil, blog: Swift.String? = nil, location: Swift.String? = nil, email: Swift.String? = nil, - notification_email: Swift.String? = nil, + notificationEmail: Swift.String? = nil, hireable: Swift.Bool? = nil, bio: Swift.String? = nil, - twitter_username: Swift.String? = nil, - public_repos: Swift.Int, - public_gists: Swift.Int, + twitterUsername: Swift.String? = nil, + publicRepos: Swift.Int, + publicGists: Swift.Int, followers: Swift.Int, following: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, - private_gists: Swift.Int, - total_private_repos: Swift.Int, - owned_private_repos: Swift.Int, - disk_usage: Swift.Int, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + privateGists: Swift.Int, + totalPrivateRepos: Swift.Int, + ownedPrivateRepos: Swift.Int, + diskUsage: Swift.Int, collaborators: Swift.Int, - two_factor_authentication: Swift.Bool, - plan: Components.Schemas.private_hyphen_user.planPayload? = nil, - business_plus: Swift.Bool? = nil, - ldap_dn: Swift.String? = nil + twoFactorAuthentication: Swift.Bool, + plan: Components.Schemas.PrivateUser.PlanPayload? = nil, + businessPlus: Swift.Bool? = nil, + ldapDn: Swift.String? = nil ) { self.login = login self.id = id - self.user_view_type = user_view_type - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.userViewType = userViewType + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin + self.siteAdmin = siteAdmin self.name = name self.company = company self.blog = blog self.location = location self.email = email - self.notification_email = notification_email + self.notificationEmail = notificationEmail self.hireable = hireable self.bio = bio - self.twitter_username = twitter_username - self.public_repos = public_repos - self.public_gists = public_gists + self.twitterUsername = twitterUsername + self.publicRepos = publicRepos + self.publicGists = publicGists self.followers = followers self.following = following - self.created_at = created_at - self.updated_at = updated_at - self.private_gists = private_gists - self.total_private_repos = total_private_repos - self.owned_private_repos = owned_private_repos - self.disk_usage = disk_usage + self.createdAt = createdAt + self.updatedAt = updatedAt + self.privateGists = privateGists + self.totalPrivateRepos = totalPrivateRepos + self.ownedPrivateRepos = ownedPrivateRepos + self.diskUsage = diskUsage self.collaborators = collaborators - self.two_factor_authentication = two_factor_authentication + self.twoFactorAuthentication = twoFactorAuthentication self.plan = plan - self.business_plus = business_plus - self.ldap_dn = ldap_dn + self.businessPlus = businessPlus + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case login case id - case user_view_type - case node_id - case avatar_url - case gravatar_id + case userViewType = "user_view_type" + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin + case siteAdmin = "site_admin" case name case company case blog case location case email - case notification_email + case notificationEmail = "notification_email" case hireable case bio - case twitter_username - case public_repos - case public_gists + case twitterUsername = "twitter_username" + case publicRepos = "public_repos" + case publicGists = "public_gists" case followers case following - case created_at - case updated_at - case private_gists - case total_private_repos - case owned_private_repos - case disk_usage + case createdAt = "created_at" + case updatedAt = "updated_at" + case privateGists = "private_gists" + case totalPrivateRepos = "total_private_repos" + case ownedPrivateRepos = "owned_private_repos" + case diskUsage = "disk_usage" case collaborators - case two_factor_authentication + case twoFactorAuthentication = "two_factor_authentication" case plan - case business_plus - case ldap_dn + case businessPlus = "business_plus" + case ldapDn = "ldap_dn" } } /// Email /// /// - Remark: Generated from `#/components/schemas/email`. - public struct email: Codable, Hashable, Sendable { + public struct Email: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/email/email`. public var email: Swift.String /// - Remark: Generated from `#/components/schemas/email/primary`. @@ -2227,7 +2236,7 @@ public enum Components { public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/email/visibility`. public var visibility: Swift.String? - /// Creates a new `email`. + /// Creates a new `Email`. /// /// - Parameters: /// - email: @@ -2255,24 +2264,24 @@ public enum Components { /// A unique encryption key /// /// - Remark: Generated from `#/components/schemas/gpg-key`. - public struct gpg_hyphen_key: Codable, Hashable, Sendable { + public struct GpgKey: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/gpg-key/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/gpg-key/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/gpg-key/primary_key_id`. - public var primary_key_id: Swift.Int? + public var primaryKeyId: Swift.Int? /// - Remark: Generated from `#/components/schemas/gpg-key/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// - Remark: Generated from `#/components/schemas/gpg-key/public_key`. - public var public_key: Swift.String - /// - Remark: Generated from `#/components/schemas/gpg-key/emailsPayload`. - public struct emailsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/gpg-key/emailsPayload/email`. + public var publicKey: Swift.String + /// - Remark: Generated from `#/components/schemas/gpg-key/EmailsPayload`. + public struct EmailsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/gpg-key/EmailsPayload/email`. public var email: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/emailsPayload/verified`. + /// - Remark: Generated from `#/components/schemas/gpg-key/EmailsPayload/verified`. public var verified: Swift.Bool? - /// Creates a new `emailsPayloadPayload`. + /// Creates a new `EmailsPayloadPayload`. /// /// - Parameters: /// - email: @@ -2290,26 +2299,26 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/gpg-key/emails`. - public typealias emailsPayload = [Components.Schemas.gpg_hyphen_key.emailsPayloadPayload] + public typealias EmailsPayload = [Components.Schemas.GpgKey.EmailsPayloadPayload] /// - Remark: Generated from `#/components/schemas/gpg-key/emails`. - public var emails: Components.Schemas.gpg_hyphen_key.emailsPayload - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload`. - public struct subkeysPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/id`. + public var emails: Components.Schemas.GpgKey.EmailsPayload + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload`. + public struct SubkeysPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/id`. public var id: Swift.Int64? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/primary_key_id`. - public var primary_key_id: Swift.Int? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/key_id`. - public var key_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/public_key`. - public var public_key: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/emailsPayload`. - public struct emailsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/emailsPayload/email`. + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/primary_key_id`. + public var primaryKeyId: Swift.Int? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/key_id`. + public var keyId: Swift.String? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/public_key`. + public var publicKey: Swift.String? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/EmailsPayload`. + public struct EmailsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/EmailsPayload/email`. public var email: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/emailsPayload/verified`. + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/EmailsPayload/verified`. public var verified: Swift.Bool? - /// Creates a new `emailsPayloadPayload`. + /// Creates a new `EmailsPayloadPayload`. /// /// - Parameters: /// - email: @@ -2326,186 +2335,186 @@ public enum Components { case verified } } - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/emails`. - public typealias emailsPayload = [Components.Schemas.gpg_hyphen_key.subkeysPayloadPayload.emailsPayloadPayload] - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/emails`. - public var emails: Components.Schemas.gpg_hyphen_key.subkeysPayloadPayload.emailsPayload? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/subkeys`. + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/emails`. + public typealias EmailsPayload = [Components.Schemas.GpgKey.SubkeysPayloadPayload.EmailsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/emails`. + public var emails: Components.Schemas.GpgKey.SubkeysPayloadPayload.EmailsPayload? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/subkeys`. public var subkeys: [OpenAPIRuntime.OpenAPIValueContainer]? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/can_sign`. - public var can_sign: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/can_encrypt_comms`. - public var can_encrypt_comms: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/can_encrypt_storage`. - public var can_encrypt_storage: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/can_certify`. - public var can_certify: Swift.Bool? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/created_at`. - public var created_at: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/expires_at`. - public var expires_at: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/raw_key`. - public var raw_key: Swift.String? - /// - Remark: Generated from `#/components/schemas/gpg-key/subkeysPayload/revoked`. + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/can_sign`. + public var canSign: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/can_encrypt_comms`. + public var canEncryptComms: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/can_encrypt_storage`. + public var canEncryptStorage: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/can_certify`. + public var canCertify: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/created_at`. + public var createdAt: Swift.String? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/expires_at`. + public var expiresAt: Swift.String? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/raw_key`. + public var rawKey: Swift.String? + /// - Remark: Generated from `#/components/schemas/gpg-key/SubkeysPayload/revoked`. public var revoked: Swift.Bool? - /// Creates a new `subkeysPayloadPayload`. + /// Creates a new `SubkeysPayloadPayload`. /// /// - Parameters: /// - id: - /// - primary_key_id: - /// - key_id: - /// - public_key: + /// - primaryKeyId: + /// - keyId: + /// - publicKey: /// - emails: /// - subkeys: - /// - can_sign: - /// - can_encrypt_comms: - /// - can_encrypt_storage: - /// - can_certify: - /// - created_at: - /// - expires_at: - /// - raw_key: + /// - canSign: + /// - canEncryptComms: + /// - canEncryptStorage: + /// - canCertify: + /// - createdAt: + /// - expiresAt: + /// - rawKey: /// - revoked: public init( id: Swift.Int64? = nil, - primary_key_id: Swift.Int? = nil, - key_id: Swift.String? = nil, - public_key: Swift.String? = nil, - emails: Components.Schemas.gpg_hyphen_key.subkeysPayloadPayload.emailsPayload? = nil, + primaryKeyId: Swift.Int? = nil, + keyId: Swift.String? = nil, + publicKey: Swift.String? = nil, + emails: Components.Schemas.GpgKey.SubkeysPayloadPayload.EmailsPayload? = nil, subkeys: [OpenAPIRuntime.OpenAPIValueContainer]? = nil, - can_sign: Swift.Bool? = nil, - can_encrypt_comms: Swift.Bool? = nil, - can_encrypt_storage: Swift.Bool? = nil, - can_certify: Swift.Bool? = nil, - created_at: Swift.String? = nil, - expires_at: Swift.String? = nil, - raw_key: Swift.String? = nil, + canSign: Swift.Bool? = nil, + canEncryptComms: Swift.Bool? = nil, + canEncryptStorage: Swift.Bool? = nil, + canCertify: Swift.Bool? = nil, + createdAt: Swift.String? = nil, + expiresAt: Swift.String? = nil, + rawKey: Swift.String? = nil, revoked: Swift.Bool? = nil ) { self.id = id - self.primary_key_id = primary_key_id - self.key_id = key_id - self.public_key = public_key + self.primaryKeyId = primaryKeyId + self.keyId = keyId + self.publicKey = publicKey self.emails = emails self.subkeys = subkeys - self.can_sign = can_sign - self.can_encrypt_comms = can_encrypt_comms - self.can_encrypt_storage = can_encrypt_storage - self.can_certify = can_certify - self.created_at = created_at - self.expires_at = expires_at - self.raw_key = raw_key + self.canSign = canSign + self.canEncryptComms = canEncryptComms + self.canEncryptStorage = canEncryptStorage + self.canCertify = canCertify + self.createdAt = createdAt + self.expiresAt = expiresAt + self.rawKey = rawKey self.revoked = revoked } public enum CodingKeys: String, CodingKey { case id - case primary_key_id - case key_id - case public_key + case primaryKeyId = "primary_key_id" + case keyId = "key_id" + case publicKey = "public_key" case emails case subkeys - case can_sign - case can_encrypt_comms - case can_encrypt_storage - case can_certify - case created_at - case expires_at - case raw_key + case canSign = "can_sign" + case canEncryptComms = "can_encrypt_comms" + case canEncryptStorage = "can_encrypt_storage" + case canCertify = "can_certify" + case createdAt = "created_at" + case expiresAt = "expires_at" + case rawKey = "raw_key" case revoked } } /// - Remark: Generated from `#/components/schemas/gpg-key/subkeys`. - public typealias subkeysPayload = [Components.Schemas.gpg_hyphen_key.subkeysPayloadPayload] + public typealias SubkeysPayload = [Components.Schemas.GpgKey.SubkeysPayloadPayload] /// - Remark: Generated from `#/components/schemas/gpg-key/subkeys`. - public var subkeys: Components.Schemas.gpg_hyphen_key.subkeysPayload + public var subkeys: Components.Schemas.GpgKey.SubkeysPayload /// - Remark: Generated from `#/components/schemas/gpg-key/can_sign`. - public var can_sign: Swift.Bool + public var canSign: Swift.Bool /// - Remark: Generated from `#/components/schemas/gpg-key/can_encrypt_comms`. - public var can_encrypt_comms: Swift.Bool + public var canEncryptComms: Swift.Bool /// - Remark: Generated from `#/components/schemas/gpg-key/can_encrypt_storage`. - public var can_encrypt_storage: Swift.Bool + public var canEncryptStorage: Swift.Bool /// - Remark: Generated from `#/components/schemas/gpg-key/can_certify`. - public var can_certify: Swift.Bool + public var canCertify: Swift.Bool /// - Remark: Generated from `#/components/schemas/gpg-key/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/gpg-key/expires_at`. - public var expires_at: Foundation.Date? + public var expiresAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/gpg-key/revoked`. public var revoked: Swift.Bool /// - Remark: Generated from `#/components/schemas/gpg-key/raw_key`. - public var raw_key: Swift.String? - /// Creates a new `gpg_hyphen_key`. + public var rawKey: Swift.String? + /// Creates a new `GpgKey`. /// /// - Parameters: /// - id: /// - name: - /// - primary_key_id: - /// - key_id: - /// - public_key: + /// - primaryKeyId: + /// - keyId: + /// - publicKey: /// - emails: /// - subkeys: - /// - can_sign: - /// - can_encrypt_comms: - /// - can_encrypt_storage: - /// - can_certify: - /// - created_at: - /// - expires_at: + /// - canSign: + /// - canEncryptComms: + /// - canEncryptStorage: + /// - canCertify: + /// - createdAt: + /// - expiresAt: /// - revoked: - /// - raw_key: + /// - rawKey: public init( id: Swift.Int64, name: Swift.String? = nil, - primary_key_id: Swift.Int? = nil, - key_id: Swift.String, - public_key: Swift.String, - emails: Components.Schemas.gpg_hyphen_key.emailsPayload, - subkeys: Components.Schemas.gpg_hyphen_key.subkeysPayload, - can_sign: Swift.Bool, - can_encrypt_comms: Swift.Bool, - can_encrypt_storage: Swift.Bool, - can_certify: Swift.Bool, - created_at: Foundation.Date, - expires_at: Foundation.Date? = nil, + primaryKeyId: Swift.Int? = nil, + keyId: Swift.String, + publicKey: Swift.String, + emails: Components.Schemas.GpgKey.EmailsPayload, + subkeys: Components.Schemas.GpgKey.SubkeysPayload, + canSign: Swift.Bool, + canEncryptComms: Swift.Bool, + canEncryptStorage: Swift.Bool, + canCertify: Swift.Bool, + createdAt: Foundation.Date, + expiresAt: Foundation.Date? = nil, revoked: Swift.Bool, - raw_key: Swift.String? = nil + rawKey: Swift.String? = nil ) { self.id = id self.name = name - self.primary_key_id = primary_key_id - self.key_id = key_id - self.public_key = public_key + self.primaryKeyId = primaryKeyId + self.keyId = keyId + self.publicKey = publicKey self.emails = emails self.subkeys = subkeys - self.can_sign = can_sign - self.can_encrypt_comms = can_encrypt_comms - self.can_encrypt_storage = can_encrypt_storage - self.can_certify = can_certify - self.created_at = created_at - self.expires_at = expires_at + self.canSign = canSign + self.canEncryptComms = canEncryptComms + self.canEncryptStorage = canEncryptStorage + self.canCertify = canCertify + self.createdAt = createdAt + self.expiresAt = expiresAt self.revoked = revoked - self.raw_key = raw_key + self.rawKey = rawKey } public enum CodingKeys: String, CodingKey { case id case name - case primary_key_id - case key_id - case public_key + case primaryKeyId = "primary_key_id" + case keyId = "key_id" + case publicKey = "public_key" case emails case subkeys - case can_sign - case can_encrypt_comms - case can_encrypt_storage - case can_certify - case created_at - case expires_at + case canSign = "can_sign" + case canEncryptComms = "can_encrypt_comms" + case canEncryptStorage = "can_encrypt_storage" + case canCertify = "can_certify" + case createdAt = "created_at" + case expiresAt = "expires_at" case revoked - case raw_key + case rawKey = "raw_key" } } /// Key /// /// - Remark: Generated from `#/components/schemas/key`. - public struct key: Codable, Hashable, Sendable { + public struct Key: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/key/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/key/id`. @@ -2515,57 +2524,57 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/key/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/key/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/key/verified`. public var verified: Swift.Bool /// - Remark: Generated from `#/components/schemas/key/read_only`. - public var read_only: Swift.Bool - /// Creates a new `key`. + public var readOnly: Swift.Bool + /// Creates a new `Key`. /// /// - Parameters: /// - key: /// - id: /// - url: /// - title: - /// - created_at: + /// - createdAt: /// - verified: - /// - read_only: + /// - readOnly: public init( key: Swift.String, id: Swift.Int64, url: Swift.String, title: Swift.String, - created_at: Foundation.Date, + createdAt: Foundation.Date, verified: Swift.Bool, - read_only: Swift.Bool + readOnly: Swift.Bool ) { self.key = key self.id = id self.url = url self.title = title - self.created_at = created_at + self.createdAt = createdAt self.verified = verified - self.read_only = read_only + self.readOnly = readOnly } public enum CodingKeys: String, CodingKey { case key case id case url case title - case created_at + case createdAt = "created_at" case verified - case read_only + case readOnly = "read_only" } } /// Social media account /// /// - Remark: Generated from `#/components/schemas/social-account`. - public struct social_hyphen_account: Codable, Hashable, Sendable { + public struct SocialAccount: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/social-account/provider`. public var provider: Swift.String /// - Remark: Generated from `#/components/schemas/social-account/url`. public var url: Swift.String - /// Creates a new `social_hyphen_account`. + /// Creates a new `SocialAccount`. /// /// - Parameters: /// - provider: @@ -2585,7 +2594,7 @@ public enum Components { /// A public SSH key used to sign Git commits /// /// - Remark: Generated from `#/components/schemas/ssh-signing-key`. - public struct ssh_hyphen_signing_hyphen_key: Codable, Hashable, Sendable { + public struct SshSigningKey: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/ssh-signing-key/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/ssh-signing-key/id`. @@ -2593,43 +2602,43 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/ssh-signing-key/title`. public var title: Swift.String /// - Remark: Generated from `#/components/schemas/ssh-signing-key/created_at`. - public var created_at: Foundation.Date - /// Creates a new `ssh_hyphen_signing_hyphen_key`. + public var createdAt: Foundation.Date + /// Creates a new `SshSigningKey`. /// /// - Parameters: /// - key: /// - id: /// - title: - /// - created_at: + /// - createdAt: public init( key: Swift.String, id: Swift.Int, title: Swift.String, - created_at: Foundation.Date + createdAt: Foundation.Date ) { self.key = key self.id = id self.title = title - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { case key case id case title - case created_at + case createdAt = "created_at" } } /// Hovercard /// /// - Remark: Generated from `#/components/schemas/hovercard`. - public struct hovercard: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/hovercard/contextsPayload`. - public struct contextsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/hovercard/contextsPayload/message`. + public struct Hovercard: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/hovercard/ContextsPayload`. + public struct ContextsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/hovercard/ContextsPayload/message`. public var message: Swift.String - /// - Remark: Generated from `#/components/schemas/hovercard/contextsPayload/octicon`. + /// - Remark: Generated from `#/components/schemas/hovercard/ContextsPayload/octicon`. public var octicon: Swift.String - /// Creates a new `contextsPayloadPayload`. + /// Creates a new `ContextsPayloadPayload`. /// /// - Parameters: /// - message: @@ -2647,14 +2656,14 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/hovercard/contexts`. - public typealias contextsPayload = [Components.Schemas.hovercard.contextsPayloadPayload] + public typealias ContextsPayload = [Components.Schemas.Hovercard.ContextsPayloadPayload] /// - Remark: Generated from `#/components/schemas/hovercard/contexts`. - public var contexts: Components.Schemas.hovercard.contextsPayload - /// Creates a new `hovercard`. + public var contexts: Components.Schemas.Hovercard.ContextsPayload + /// Creates a new `Hovercard`. /// /// - Parameters: /// - contexts: - public init(contexts: Components.Schemas.hovercard.contextsPayload) { + public init(contexts: Components.Schemas.Hovercard.ContextsPayload) { self.contexts = contexts } public enum CodingKeys: String, CodingKey { @@ -2664,12 +2673,12 @@ public enum Components { /// Key Simple /// /// - Remark: Generated from `#/components/schemas/key-simple`. - public struct key_hyphen_simple: Codable, Hashable, Sendable { + public struct KeySimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/key-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/key-simple/key`. public var key: Swift.String - /// Creates a new `key_hyphen_simple`. + /// Creates a new `KeySimple`. /// /// - Parameters: /// - id: @@ -2692,58 +2701,58 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// account_id parameter /// /// - Remark: Generated from `#/components/parameters/account-id`. - public typealias account_hyphen_id = Swift.Int + public typealias AccountId = Swift.Int /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// A user ID. Only return users with an ID greater than this ID. /// /// - Remark: Generated from `#/components/parameters/since-user`. - public typealias since_hyphen_user = Swift.Int + public typealias SinceUser = Swift.Int /// The unique identifier of the key. /// /// - Remark: Generated from `#/components/parameters/key-id`. - public typealias key_hyphen_id = Swift.Int + public typealias KeyId = Swift.Int /// The unique identifier of the GPG key. /// /// - Remark: Generated from `#/components/parameters/gpg-key-id`. - public typealias gpg_hyphen_key_hyphen_id = Swift.Int + public typealias GpgKeyId = Swift.Int /// The unique identifier of the SSH signing key. /// /// - Remark: Generated from `#/components/parameters/ssh-signing-key-id`. - public typealias ssh_hyphen_signing_hyphen_key_hyphen_id = Swift.Int + public typealias SshSigningKeyId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2753,25 +2762,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -2781,29 +2790,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2813,25 +2822,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2841,12 +2850,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } @@ -2854,7 +2863,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -2866,26 +2875,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /user`. /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)`. - public enum users_sol_get_hyphen_authenticated { + public enum UsersGetAuthenticated { public static let id: Swift.String = "users/get-authenticated" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_authenticated.Input.Headers + public var headers: Operations.UsersGetAuthenticated.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.users_sol_get_hyphen_authenticated.Input.Headers = .init()) { + public init(headers: Operations.UsersGetAuthenticated.Input.Headers = .init()) { self.headers = headers } } @@ -2894,19 +2903,19 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/private_hyphen_user`. - case _private(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/public_hyphen_user`. - case _public(Components.Schemas.public_hyphen_user) + @frozen public enum JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/PrivateUser`. + case _private(Components.Schemas.PrivateUser) + /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/PublicUser`. + case _public(Components.Schemas.PublicUser) public enum CodingKeys: String, CodingKey { - case user_view_type + case userViewType = "user_view_type" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) let discriminator = try container.decode( Swift.String.self, - forKey: .user_view_type + forKey: .userViewType ) switch discriminator { case "private": @@ -2915,7 +2924,7 @@ public enum Operations { self = ._public(try .init(from: decoder)) default: throw Swift.DecodingError.unknownOneOfDiscriminator( - discriminatorKey: CodingKeys.user_view_type, + discriminatorKey: CodingKeys.userViewType, discriminatorValue: discriminator, codingPath: decoder.codingPath ) @@ -2931,12 +2940,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/GET/responses/200/content/application\/json`. - case json(Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body.jsonPayload) + case json(Operations.UsersGetAuthenticated.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body.jsonPayload { + public var json: Operations.UsersGetAuthenticated.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -2946,12 +2955,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body + public var body: Operations.UsersGetAuthenticated.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_authenticated.Output.Ok.Body) { + public init(body: Operations.UsersGetAuthenticated.Output.Ok.Body) { self.body = body } } @@ -2960,12 +2969,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_authenticated.Output.Ok) + case ok(Operations.UsersGetAuthenticated.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_authenticated.Output.Ok { + public var ok: Operations.UsersGetAuthenticated.Output.Ok { get throws { switch self { case let .ok(response): @@ -2983,12 +2992,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3006,12 +3023,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3029,12 +3046,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/get(users/get-authenticated)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3084,25 +3101,25 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /user`. /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)`. - public enum users_sol_update_hyphen_authenticated { + public enum UsersUpdateAuthenticated { public static let id: Swift.String = "users/update-authenticated" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_update_hyphen_authenticated.Input.Headers + public var headers: Operations.UsersUpdateAuthenticated.Input.Headers /// - Remark: Generated from `#/paths/user/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The new name of the user. /// /// - Remark: Generated from `#/paths/user/PATCH/requestBody/json/name`. @@ -3118,7 +3135,7 @@ public enum Operations { /// The new Twitter username of the user. /// /// - Remark: Generated from `#/paths/user/PATCH/requestBody/json/twitter_username`. - public var twitter_username: Swift.String? + public var twitterUsername: Swift.String? /// The new company of the user. /// /// - Remark: Generated from `#/paths/user/PATCH/requestBody/json/company`. @@ -3135,13 +3152,13 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/PATCH/requestBody/json/bio`. public var bio: Swift.String? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The new name of the user. /// - email: The publicly visible email address of the user. /// - blog: The new blog URL of the user. - /// - twitter_username: The new Twitter username of the user. + /// - twitterUsername: The new Twitter username of the user. /// - company: The new company of the user. /// - location: The new location of the user. /// - hireable: The new hiring availability of the user. @@ -3150,7 +3167,7 @@ public enum Operations { name: Swift.String? = nil, email: Swift.String? = nil, blog: Swift.String? = nil, - twitter_username: Swift.String? = nil, + twitterUsername: Swift.String? = nil, company: Swift.String? = nil, location: Swift.String? = nil, hireable: Swift.Bool? = nil, @@ -3159,7 +3176,7 @@ public enum Operations { self.name = name self.email = email self.blog = blog - self.twitter_username = twitter_username + self.twitterUsername = twitterUsername self.company = company self.location = location self.hireable = hireable @@ -3169,7 +3186,7 @@ public enum Operations { case name case email case blog - case twitter_username + case twitterUsername = "twitter_username" case company case location case hireable @@ -3177,17 +3194,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/PATCH/requestBody/content/application\/json`. - case json(Operations.users_sol_update_hyphen_authenticated.Input.Body.jsonPayload) + case json(Operations.UsersUpdateAuthenticated.Input.Body.JsonPayload) } - public var body: Operations.users_sol_update_hyphen_authenticated.Input.Body? + public var body: Operations.UsersUpdateAuthenticated.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_update_hyphen_authenticated.Input.Headers = .init(), - body: Operations.users_sol_update_hyphen_authenticated.Input.Body? = nil + headers: Operations.UsersUpdateAuthenticated.Input.Headers = .init(), + body: Operations.UsersUpdateAuthenticated.Input.Body? = nil ) { self.headers = headers self.body = body @@ -3198,12 +3215,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.private_hyphen_user) + case json(Components.Schemas.PrivateUser) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.private_hyphen_user { + public var json: Components.Schemas.PrivateUser { get throws { switch self { case let .json(body): @@ -3213,12 +3230,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_update_hyphen_authenticated.Output.Ok.Body + public var body: Operations.UsersUpdateAuthenticated.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_update_hyphen_authenticated.Output.Ok.Body) { + public init(body: Operations.UsersUpdateAuthenticated.Output.Ok.Body) { self.body = body } } @@ -3227,12 +3244,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_update_hyphen_authenticated.Output.Ok) + case ok(Operations.UsersUpdateAuthenticated.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_update_hyphen_authenticated.Output.Ok { + public var ok: Operations.UsersUpdateAuthenticated.Output.Ok { get throws { switch self { case let .ok(response): @@ -3250,12 +3267,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3273,12 +3298,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3296,12 +3321,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3319,12 +3344,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3342,12 +3367,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/patch(users/update-authenticated)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -3397,7 +3422,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/blocks`. /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)`. - public enum users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user { + public enum UsersListBlockedByAuthenticatedUser { public static let id: Swift.String = "users/list-blocked-by-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/GET/query`. @@ -3405,45 +3430,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/blocks/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/blocks/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListBlockedByAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/blocks/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListBlockedByAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListBlockedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListBlockedByAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -3454,12 +3479,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/blocks/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -3469,12 +3494,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListBlockedByAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersListBlockedByAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -3483,12 +3508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListBlockedByAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_blocked_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListBlockedByAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -3506,12 +3531,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3529,12 +3562,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3552,12 +3585,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3575,12 +3608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/get(users/list-blocked-by-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3630,7 +3663,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)`. - public enum users_sol_check_hyphen_blocked { + public enum UsersCheckBlocked { public static let id: Swift.String = "users/check-blocked" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/{username}/GET/path`. @@ -3638,36 +3671,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/blocks/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_check_hyphen_blocked.Input.Path + public var path: Operations.UsersCheckBlocked.Input.Path /// - Remark: Generated from `#/paths/user/blocks/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_check_hyphen_blocked.Input.Headers + public var headers: Operations.UsersCheckBlocked.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_check_hyphen_blocked.Input.Path, - headers: Operations.users_sol_check_hyphen_blocked.Input.Headers = .init() + path: Operations.UsersCheckBlocked.Input.Path, + headers: Operations.UsersCheckBlocked.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3683,12 +3716,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_check_hyphen_blocked.Output.NoContent) + case noContent(Operations.UsersCheckBlocked.Output.NoContent) + /// If the user is blocked + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_check_hyphen_blocked.Output.NoContent { + public var noContent: Operations.UsersCheckBlocked.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3705,12 +3746,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/blocks/{username}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/{username}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -3720,12 +3761,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_check_hyphen_blocked.Output.NotFound.Body + public var body: Operations.UsersCheckBlocked.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_check_hyphen_blocked.Output.NotFound.Body) { + public init(body: Operations.UsersCheckBlocked.Output.NotFound.Body) { self.body = body } } @@ -3734,12 +3775,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.users_sol_check_hyphen_blocked.Output.NotFound) + case notFound(Operations.UsersCheckBlocked.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.users_sol_check_hyphen_blocked.Output.NotFound { + public var notFound: Operations.UsersCheckBlocked.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -3757,12 +3798,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3780,12 +3829,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3803,12 +3852,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/get(users/check-blocked)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3858,7 +3907,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)`. - public enum users_sol_block { + public enum UsersBlock { public static let id: Swift.String = "users/block" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/{username}/PUT/path`. @@ -3866,36 +3915,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/blocks/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_block.Input.Path + public var path: Operations.UsersBlock.Input.Path /// - Remark: Generated from `#/paths/user/blocks/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_block.Input.Headers + public var headers: Operations.UsersBlock.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_block.Input.Path, - headers: Operations.users_sol_block.Input.Headers = .init() + path: Operations.UsersBlock.Input.Path, + headers: Operations.UsersBlock.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3911,12 +3960,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_block.Output.NoContent) + case noContent(Operations.UsersBlock.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_block.Output.NoContent { + public var noContent: Operations.UsersBlock.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -3934,12 +3991,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3957,12 +4022,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3980,12 +4045,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4003,12 +4068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4026,12 +4091,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/put(users/block)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4081,7 +4146,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/blocks/{username}`. /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)`. - public enum users_sol_unblock { + public enum UsersUnblock { public static let id: Swift.String = "users/unblock" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/blocks/{username}/DELETE/path`. @@ -4089,36 +4154,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/blocks/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_unblock.Input.Path + public var path: Operations.UsersUnblock.Input.Path /// - Remark: Generated from `#/paths/user/blocks/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_unblock.Input.Headers + public var headers: Operations.UsersUnblock.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_unblock.Input.Path, - headers: Operations.users_sol_unblock.Input.Headers = .init() + path: Operations.UsersUnblock.Input.Path, + headers: Operations.UsersUnblock.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4134,12 +4199,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_unblock.Output.NoContent) + case noContent(Operations.UsersUnblock.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_unblock.Output.NoContent { + public var noContent: Operations.UsersUnblock.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -4157,12 +4230,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4180,12 +4261,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4203,12 +4284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4226,12 +4307,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/blocks/{username}/delete(users/unblock)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4281,41 +4362,41 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /user/email/visibility`. /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)`. - public enum users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersSetPrimaryEmailVisibilityForAuthenticatedUser { public static let id: Swift.String = "users/set-primary-email-visibility-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Denotes whether an email is publicly visible. /// /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case _public = "public" case _private = "private" } /// Denotes whether an email is publicly visible. /// /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/requestBody/json/visibility`. - public var visibility: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.visibilityPayload - /// Creates a new `jsonPayload`. + public var visibility: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body.JsonPayload.VisibilityPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - visibility: Denotes whether an email is publicly visible. - public init(visibility: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.visibilityPayload) { + public init(visibility: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body.JsonPayload.VisibilityPayload) { self.visibility = visibility } public enum CodingKeys: String, CodingKey { @@ -4323,17 +4404,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/requestBody/content/application\/json`. - case json(Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -4344,12 +4425,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/email/visibility/PATCH/responses/200/content/application\/json`. - case json([Components.Schemas.email]) + case json([Components.Schemas.Email]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.email] { + public var json: [Components.Schemas.Email] { get throws { switch self { case let .json(body): @@ -4359,12 +4440,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -4373,12 +4454,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_set_hyphen_primary_hyphen_email_hyphen_visibility_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersSetPrimaryEmailVisibilityForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4396,12 +4477,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4419,12 +4508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4442,12 +4531,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4465,12 +4554,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4488,12 +4577,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/email/visibility/patch(users/set-primary-email-visibility-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4546,7 +4635,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/emails`. /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)`. - public enum users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListEmailsForAuthenticatedUser { public static let id: Swift.String = "users/list-emails-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/GET/query`. @@ -4554,45 +4643,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/emails/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/emails/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListEmailsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/emails/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListEmailsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListEmailsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListEmailsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -4603,26 +4692,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/emails/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/emails/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/GET/responses/200/content/application\/json`. - case json([Components.Schemas.email]) + case json([Components.Schemas.Email]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.email] { + public var json: [Components.Schemas.Email] { get throws { switch self { case let .json(body): @@ -4632,15 +4721,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -4651,12 +4740,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListEmailsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListEmailsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4674,12 +4763,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4697,12 +4794,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4720,12 +4817,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4743,12 +4840,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/get(users/list-emails-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4798,25 +4895,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/emails`. /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)`. - public enum users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersAddEmailForAuthenticatedUser { public static let id: Swift.String = "users/add-email-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersAddEmailForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/emails/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. @@ -4835,7 +4932,7 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/json/case1`. - case case1(Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.UsersAddEmailForAuthenticatedUser.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/json/case2`. case case2([Swift.String]) /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/json/case3`. @@ -4878,17 +4975,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/emails/POST/requestBody/content/application\/json`. - case json(Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersAddEmailForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? + public var body: Operations.UsersAddEmailForAuthenticatedUser.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil + headers: Operations.UsersAddEmailForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersAddEmailForAuthenticatedUser.Input.Body? = nil ) { self.headers = headers self.body = body @@ -4899,12 +4996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/emails/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/POST/responses/201/content/application\/json`. - case json([Components.Schemas.email]) + case json([Components.Schemas.Email]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.email] { + public var json: [Components.Schemas.Email] { get throws { switch self { case let .json(body): @@ -4914,12 +5011,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.UsersAddEmailForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.UsersAddEmailForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -4928,12 +5025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.UsersAddEmailForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_add_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.UsersAddEmailForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -4951,12 +5048,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -4974,12 +5071,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -4997,12 +5102,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5020,12 +5125,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5043,12 +5148,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/post(users/add-email-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5098,25 +5203,25 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/emails`. /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)`. - public enum users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersDeleteEmailForAuthenticatedUser { public static let id: Swift.String = "users/delete-email-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. /// /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/json/case1`. @@ -5139,7 +5244,7 @@ public enum Operations { /// Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. /// /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/json/case1`. - case case1(Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.UsersDeleteEmailForAuthenticatedUser.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/json/case2`. case case2([Swift.String]) /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/json/case3`. @@ -5182,17 +5287,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/emails/DELETE/requestBody/content/application\/json`. - case json(Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersDeleteEmailForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? + public var body: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Body? /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil + headers: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersDeleteEmailForAuthenticatedUser.Input.Body? = nil ) { self.headers = headers self.body = body @@ -5208,12 +5313,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.UsersDeleteEmailForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_delete_hyphen_email_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersDeleteEmailForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5231,12 +5344,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5254,12 +5375,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5277,12 +5398,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5300,12 +5421,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5323,12 +5444,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/emails/delete(users/delete-email-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -5378,7 +5499,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/followers`. /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)`. - public enum users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListFollowersForAuthenticatedUser { public static let id: Swift.String = "users/list-followers-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/followers/GET/query`. @@ -5386,45 +5507,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/followers/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/followers/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListFollowersForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/followers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListFollowersForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListFollowersForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListFollowersForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5435,26 +5556,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/followers/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/followers/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/followers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/followers/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -5464,15 +5585,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5483,12 +5604,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListFollowersForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListFollowersForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -5506,12 +5627,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5529,12 +5658,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5552,12 +5681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/followers/get(users/list-followers-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5607,7 +5736,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/following`. /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)`. - public enum users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user { + public enum UsersListFollowedByAuthenticatedUser { public static let id: Swift.String = "users/list-followed-by-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/GET/query`. @@ -5615,45 +5744,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/following/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/following/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListFollowedByAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/following/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListFollowedByAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListFollowedByAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListFollowedByAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -5664,26 +5793,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/following/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/following/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -5693,15 +5822,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -5712,12 +5841,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListFollowedByAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_followed_hyphen_by_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListFollowedByAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -5735,12 +5864,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5758,12 +5895,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5781,12 +5918,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/get(users/list-followed-by-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -5836,7 +5973,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)`. - public enum users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated { + public enum UsersCheckPersonIsFollowedByAuthenticated { public static let id: Swift.String = "users/check-person-is-followed-by-authenticated" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/{username}/GET/path`. @@ -5844,36 +5981,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/following/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Path + public var path: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Path /// - Remark: Generated from `#/paths/user/following/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Headers + public var headers: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Path, - headers: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Input.Headers = .init() + path: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Path, + headers: Operations.UsersCheckPersonIsFollowedByAuthenticated.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5889,12 +6026,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NoContent) + case noContent(Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NoContent) + /// if the person is followed by the authenticated user + /// + /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NoContent { + public var noContent: Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -5911,12 +6056,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/following/{username}/GET/responses/404/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/{username}/GET/responses/404/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -5926,12 +6071,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NotFound.Body + public var body: Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NotFound.Body /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NotFound.Body) { + public init(body: Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NotFound.Body) { self.body = body } } @@ -5940,12 +6085,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NotFound) + case notFound(Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.users_sol_check_hyphen_person_hyphen_is_hyphen_followed_hyphen_by_hyphen_authenticated.Output.NotFound { + public var notFound: Operations.UsersCheckPersonIsFollowedByAuthenticated.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -5963,12 +6108,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5986,12 +6139,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6009,12 +6162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/get(users/check-person-is-followed-by-authenticated)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6066,7 +6219,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)`. - public enum users_sol_follow { + public enum UsersFollow { public static let id: Swift.String = "users/follow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/{username}/PUT/path`. @@ -6074,36 +6227,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/following/{username}/PUT/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_follow.Input.Path + public var path: Operations.UsersFollow.Input.Path /// - Remark: Generated from `#/paths/user/following/{username}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_follow.Input.Headers + public var headers: Operations.UsersFollow.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_follow.Input.Path, - headers: Operations.users_sol_follow.Input.Headers = .init() + path: Operations.UsersFollow.Input.Path, + headers: Operations.UsersFollow.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6119,12 +6272,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_follow.Output.NoContent) + case noContent(Operations.UsersFollow.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_follow.Output.NoContent { + public var noContent: Operations.UsersFollow.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6142,12 +6303,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6165,12 +6334,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6188,12 +6357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6211,12 +6380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6234,12 +6403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/put(users/follow)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6289,7 +6458,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/following/{username}`. /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)`. - public enum users_sol_unfollow { + public enum UsersUnfollow { public static let id: Swift.String = "users/unfollow" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/following/{username}/DELETE/path`. @@ -6297,36 +6466,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/user/following/{username}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_unfollow.Input.Path + public var path: Operations.UsersUnfollow.Input.Path /// - Remark: Generated from `#/paths/user/following/{username}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_unfollow.Input.Headers + public var headers: Operations.UsersUnfollow.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_unfollow.Input.Path, - headers: Operations.users_sol_unfollow.Input.Headers = .init() + path: Operations.UsersUnfollow.Input.Path, + headers: Operations.UsersUnfollow.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6342,12 +6511,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_unfollow.Output.NoContent) + case noContent(Operations.UsersUnfollow.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_unfollow.Output.NoContent { + public var noContent: Operations.UsersUnfollow.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -6365,12 +6542,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6388,12 +6573,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6411,12 +6596,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6434,12 +6619,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/following/{username}/delete(users/unfollow)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6491,7 +6676,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)`. - public enum users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListGpgKeysForAuthenticatedUser { public static let id: Swift.String = "users/list-gpg-keys-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/GET/query`. @@ -6499,45 +6684,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/gpg_keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/gpg_keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/gpg_keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListGpgKeysForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6548,26 +6733,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/gpg_keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/gpg_keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.gpg_hyphen_key]) + case json([Components.Schemas.GpgKey]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.gpg_hyphen_key] { + public var json: [Components.Schemas.GpgKey] { get throws { switch self { case let .json(body): @@ -6577,15 +6762,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -6596,12 +6781,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListGpgKeysForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -6619,12 +6804,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6642,12 +6835,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6665,12 +6858,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6688,12 +6881,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/get(users/list-gpg-keys-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6745,25 +6938,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/gpg_keys`. /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)`. - public enum users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersCreateGpgKeyForAuthenticatedUser { public static let id: Swift.String = "users/create-gpg-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/gpg_keys/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A descriptive name for the new key. /// /// - Remark: Generated from `#/paths/user/gpg_keys/POST/requestBody/json/name`. @@ -6771,36 +6964,36 @@ public enum Operations { /// A GPG key in ASCII-armored format. /// /// - Remark: Generated from `#/paths/user/gpg_keys/POST/requestBody/json/armored_public_key`. - public var armored_public_key: Swift.String - /// Creates a new `jsonPayload`. + public var armoredPublicKey: Swift.String + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: A descriptive name for the new key. - /// - armored_public_key: A GPG key in ASCII-armored format. + /// - armoredPublicKey: A GPG key in ASCII-armored format. public init( name: Swift.String? = nil, - armored_public_key: Swift.String + armoredPublicKey: Swift.String ) { self.name = name - self.armored_public_key = armored_public_key + self.armoredPublicKey = armoredPublicKey } public enum CodingKeys: String, CodingKey { case name - case armored_public_key + case armoredPublicKey = "armored_public_key" } } /// - Remark: Generated from `#/paths/user/gpg_keys/POST/requestBody/content/application\/json`. - case json(Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -6811,12 +7004,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/gpg_keys/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/POST/responses/201/content/application\/json`. - case json(Components.Schemas.gpg_hyphen_key) + case json(Components.Schemas.GpgKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gpg_hyphen_key { + public var json: Components.Schemas.GpgKey { get throws { switch self { case let .json(body): @@ -6826,12 +7019,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.UsersCreateGpgKeyForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -6840,12 +7033,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.UsersCreateGpgKeyForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_create_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.UsersCreateGpgKeyForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -6863,12 +7056,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -6886,12 +7079,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6909,12 +7110,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6932,12 +7133,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6955,12 +7156,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/post(users/create-gpg-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7012,7 +7213,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)`. - public enum users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersGetGpgKeyForAuthenticatedUser { public static let id: Swift.String = "users/get-gpg-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/GET/path`. @@ -7020,36 +7221,36 @@ public enum Operations { /// The unique identifier of the GPG key. /// /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/GET/path/gpg_key_id`. - public var gpg_key_id: Components.Parameters.gpg_hyphen_key_hyphen_id + public var gpgKeyId: Components.Parameters.GpgKeyId /// Creates a new `Path`. /// /// - Parameters: - /// - gpg_key_id: The unique identifier of the GPG key. - public init(gpg_key_id: Components.Parameters.gpg_hyphen_key_hyphen_id) { - self.gpg_key_id = gpg_key_id + /// - gpgKeyId: The unique identifier of the GPG key. + public init(gpgKeyId: Components.Parameters.GpgKeyId) { + self.gpgKeyId = gpgKeyId } } - public var path: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetGpgKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7060,12 +7261,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.gpg_hyphen_key) + case json(Components.Schemas.GpgKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.gpg_hyphen_key { + public var json: Components.Schemas.GpgKey { get throws { switch self { case let .json(body): @@ -7075,12 +7276,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersGetGpgKeyForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersGetGpgKeyForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -7089,12 +7290,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersGetGpgKeyForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersGetGpgKeyForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7112,12 +7313,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7135,12 +7336,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7158,12 +7367,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7181,12 +7390,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/get(users/get-gpg-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7238,7 +7447,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/gpg_keys/{gpg_key_id}`. /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)`. - public enum users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersDeleteGpgKeyForAuthenticatedUser { public static let id: Swift.String = "users/delete-gpg-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/DELETE/path`. @@ -7246,36 +7455,36 @@ public enum Operations { /// The unique identifier of the GPG key. /// /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/DELETE/path/gpg_key_id`. - public var gpg_key_id: Components.Parameters.gpg_hyphen_key_hyphen_id + public var gpgKeyId: Components.Parameters.GpgKeyId /// Creates a new `Path`. /// /// - Parameters: - /// - gpg_key_id: The unique identifier of the GPG key. - public init(gpg_key_id: Components.Parameters.gpg_hyphen_key_hyphen_id) { - self.gpg_key_id = gpg_key_id + /// - gpgKeyId: The unique identifier of the GPG key. + public init(gpgKeyId: Components.Parameters.GpgKeyId) { + self.gpgKeyId = gpgKeyId } } - public var path: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/gpg_keys/{gpg_key_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7291,12 +7500,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.UsersDeleteGpgKeyForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_delete_hyphen_gpg_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersDeleteGpgKeyForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7314,12 +7531,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7337,12 +7554,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7360,12 +7577,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7383,12 +7608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7406,12 +7631,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/gpg_keys/{gpg_key_id}/delete(users/delete-gpg-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7463,7 +7688,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/keys`. /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)`. - public enum users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListPublicSshKeysForAuthenticatedUser { public static let id: Swift.String = "users/list-public-ssh-keys-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/GET/query`. @@ -7471,45 +7696,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -7520,26 +7745,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.key]) + case json([Components.Schemas.Key]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.key] { + public var json: [Components.Schemas.Key] { get throws { switch self { case let .json(body): @@ -7549,15 +7774,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7568,12 +7793,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_public_hyphen_ssh_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListPublicSshKeysForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -7591,12 +7816,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7614,12 +7847,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7637,12 +7870,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7660,12 +7893,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/get(users/list-public-ssh-keys-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7717,25 +7950,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/keys`. /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)`. - public enum users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersCreatePublicSshKeyForAuthenticatedUser { public static let id: Swift.String = "users/create-public-ssh-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/keys/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A descriptive name for the new key. /// /// - Remark: Generated from `#/paths/user/keys/POST/requestBody/json/title`. @@ -7744,7 +7977,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/keys/POST/requestBody/json/key`. public var key: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: A descriptive name for the new key. @@ -7762,17 +7995,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/keys/POST/requestBody/content/application\/json`. - case json(Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -7783,12 +8016,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/keys/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/POST/responses/201/content/application\/json`. - case json(Components.Schemas.key) + case json(Components.Schemas.Key) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.key { + public var json: Components.Schemas.Key { get throws { switch self { case let .json(body): @@ -7798,12 +8031,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -7812,12 +8045,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_create_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.UsersCreatePublicSshKeyForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -7835,12 +8068,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7858,12 +8091,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7881,12 +8122,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7904,12 +8145,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7927,12 +8168,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/post(users/create-public-ssh-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -7984,7 +8225,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)`. - public enum users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersGetPublicSshKeyForAuthenticatedUser { public static let id: Swift.String = "users/get-public-ssh-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/{key_id}/GET/path`. @@ -7992,36 +8233,36 @@ public enum Operations { /// The unique identifier of the key. /// /// - Remark: Generated from `#/paths/user/keys/{key_id}/GET/path/key_id`. - public var key_id: Components.Parameters.key_hyphen_id + public var keyId: Components.Parameters.KeyId /// Creates a new `Path`. /// /// - Parameters: - /// - key_id: The unique identifier of the key. - public init(key_id: Components.Parameters.key_hyphen_id) { - self.key_id = key_id + /// - keyId: The unique identifier of the key. + public init(keyId: Components.Parameters.KeyId) { + self.keyId = keyId } } - public var path: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/keys/{key_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8032,12 +8273,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/keys/{key_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/{key_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.key) + case json(Components.Schemas.Key) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.key { + public var json: Components.Schemas.Key { get throws { switch self { case let .json(body): @@ -8047,12 +8288,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -8061,12 +8302,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersGetPublicSshKeyForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -8084,12 +8325,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8107,12 +8348,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8130,12 +8379,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8153,12 +8402,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/get(users/get-public-ssh-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8210,7 +8459,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/keys/{key_id}`. /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)`. - public enum users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersDeletePublicSshKeyForAuthenticatedUser { public static let id: Swift.String = "users/delete-public-ssh-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/keys/{key_id}/DELETE/path`. @@ -8218,36 +8467,36 @@ public enum Operations { /// The unique identifier of the key. /// /// - Remark: Generated from `#/paths/user/keys/{key_id}/DELETE/path/key_id`. - public var key_id: Components.Parameters.key_hyphen_id + public var keyId: Components.Parameters.KeyId /// Creates a new `Path`. /// /// - Parameters: - /// - key_id: The unique identifier of the key. - public init(key_id: Components.Parameters.key_hyphen_id) { - self.key_id = key_id + /// - keyId: The unique identifier of the key. + public init(keyId: Components.Parameters.KeyId) { + self.keyId = keyId } } - public var path: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/keys/{key_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8263,12 +8512,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_delete_hyphen_public_hyphen_ssh_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersDeletePublicSshKeyForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8286,12 +8543,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8309,12 +8574,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8332,12 +8597,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8355,12 +8620,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/keys/{key_id}/delete(users/delete-public-ssh-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8414,7 +8679,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/public_emails`. /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)`. - public enum users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListPublicEmailsForAuthenticatedUser { public static let id: Swift.String = "users/list-public-emails-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/public_emails/GET/query`. @@ -8422,45 +8687,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/public_emails/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/public_emails/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/public_emails/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8471,26 +8736,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/public_emails/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/public_emails/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/public_emails/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/public_emails/GET/responses/200/content/application\/json`. - case json([Components.Schemas.email]) + case json([Components.Schemas.Email]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.email] { + public var json: [Components.Schemas.Email] { get throws { switch self { case let .json(body): @@ -8500,15 +8765,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8519,12 +8784,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_public_hyphen_emails_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListPublicEmailsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -8542,12 +8807,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8565,12 +8838,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8588,12 +8861,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8611,12 +8884,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/public_emails/get(users/list-public-emails-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8666,7 +8939,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)`. - public enum users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListSocialAccountsForAuthenticatedUser { public static let id: Swift.String = "users/list-social-accounts-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/GET/query`. @@ -8674,45 +8947,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/social_accounts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/social_accounts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/social_accounts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -8723,26 +8996,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/social_accounts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/social_accounts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.social_hyphen_account]) + case json([Components.Schemas.SocialAccount]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.social_hyphen_account] { + public var json: [Components.Schemas.SocialAccount] { get throws { switch self { case let .json(body): @@ -8752,15 +9025,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8771,12 +9044,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListSocialAccountsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -8794,12 +9067,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8817,12 +9098,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8840,12 +9121,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8863,12 +9144,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/get(users/list-social-accounts-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -8920,52 +9201,52 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)`. - public enum users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersAddSocialAccountForAuthenticatedUser { public static let id: Swift.String = "users/add-social-account-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/social_accounts/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Full URLs for the social media profiles to add. /// /// - Remark: Generated from `#/paths/user/social_accounts/POST/requestBody/json/account_urls`. - public var account_urls: [Swift.String] - /// Creates a new `jsonPayload`. + public var accountUrls: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - account_urls: Full URLs for the social media profiles to add. - public init(account_urls: [Swift.String]) { - self.account_urls = account_urls + /// - accountUrls: Full URLs for the social media profiles to add. + public init(accountUrls: [Swift.String]) { + self.accountUrls = accountUrls } public enum CodingKeys: String, CodingKey { - case account_urls + case accountUrls = "account_urls" } } /// - Remark: Generated from `#/paths/user/social_accounts/POST/requestBody/content/application\/json`. - case json(Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersAddSocialAccountForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -8976,12 +9257,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/social_accounts/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/POST/responses/201/content/application\/json`. - case json([Components.Schemas.social_hyphen_account]) + case json([Components.Schemas.SocialAccount]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.social_hyphen_account] { + public var json: [Components.Schemas.SocialAccount] { get throws { switch self { case let .json(body): @@ -8991,12 +9272,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.UsersAddSocialAccountForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.UsersAddSocialAccountForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -9005,12 +9286,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.UsersAddSocialAccountForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_add_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.UsersAddSocialAccountForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -9028,12 +9309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9051,12 +9332,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9074,12 +9363,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9097,12 +9386,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9120,12 +9409,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/post(users/add-social-account-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9177,52 +9466,52 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/social_accounts`. /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)`. - public enum users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersDeleteSocialAccountForAuthenticatedUser { public static let id: Swift.String = "users/delete-social-account-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/social_accounts/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/social_accounts/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Full URLs for the social media profiles to delete. /// /// - Remark: Generated from `#/paths/user/social_accounts/DELETE/requestBody/json/account_urls`. - public var account_urls: [Swift.String] - /// Creates a new `jsonPayload`. + public var accountUrls: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - account_urls: Full URLs for the social media profiles to delete. - public init(account_urls: [Swift.String]) { - self.account_urls = account_urls + /// - accountUrls: Full URLs for the social media profiles to delete. + public init(accountUrls: [Swift.String]) { + self.accountUrls = accountUrls } public enum CodingKeys: String, CodingKey { - case account_urls + case accountUrls = "account_urls" } } /// - Remark: Generated from `#/paths/user/social_accounts/DELETE/requestBody/content/application\/json`. - case json(Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -9238,12 +9527,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.UsersDeleteSocialAccountForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_delete_hyphen_social_hyphen_account_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersDeleteSocialAccountForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9261,12 +9558,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9284,12 +9581,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9307,12 +9612,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9330,12 +9635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9353,12 +9658,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/social_accounts/delete(users/delete-social-account-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9410,7 +9715,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)`. - public enum users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersListSshSigningKeysForAuthenticatedUser { public static let id: Swift.String = "users/list-ssh-signing-keys-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/query`. @@ -9418,45 +9723,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Query = .init(), + headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -9467,26 +9772,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.ssh_hyphen_signing_hyphen_key]) + case json([Components.Schemas.SshSigningKey]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.ssh_hyphen_signing_hyphen_key] { + public var json: [Components.Schemas.SshSigningKey] { get throws { switch self { case let .json(body): @@ -9496,15 +9801,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -9515,12 +9820,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersListSshSigningKeysForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -9538,12 +9843,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9561,12 +9874,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9584,12 +9897,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9607,12 +9920,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/get(users/list-ssh-signing-keys-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9664,25 +9977,25 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/ssh_signing_keys`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)`. - public enum users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersCreateSshSigningKeyForAuthenticatedUser { public static let id: Swift.String = "users/create-ssh-signing-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A descriptive name for the new key. /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/requestBody/json/title`. @@ -9691,7 +10004,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/requestBody/json/key`. public var key: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - title: A descriptive name for the new key. @@ -9709,17 +10022,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/requestBody/content/application\/json`. - case json(Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Headers = .init(), + body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -9730,12 +10043,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/POST/responses/201/content/application\/json`. - case json(Components.Schemas.ssh_hyphen_signing_hyphen_key) + case json(Components.Schemas.SshSigningKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.ssh_hyphen_signing_hyphen_key { + public var json: Components.Schemas.SshSigningKey { get throws { switch self { case let .json(body): @@ -9745,12 +10058,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -9759,12 +10072,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_create_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.UsersCreateSshSigningKeyForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -9782,12 +10095,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9805,12 +10118,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9828,12 +10149,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9851,12 +10172,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9874,12 +10195,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/post(users/create-ssh-signing-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9931,7 +10252,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)`. - public enum users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersGetSshSigningKeyForAuthenticatedUser { public static let id: Swift.String = "users/get-ssh-signing-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/GET/path`. @@ -9939,36 +10260,36 @@ public enum Operations { /// The unique identifier of the SSH signing key. /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/GET/path/ssh_signing_key_id`. - public var ssh_signing_key_id: Components.Parameters.ssh_hyphen_signing_hyphen_key_hyphen_id + public var sshSigningKeyId: Components.Parameters.SshSigningKeyId /// Creates a new `Path`. /// /// - Parameters: - /// - ssh_signing_key_id: The unique identifier of the SSH signing key. - public init(ssh_signing_key_id: Components.Parameters.ssh_hyphen_signing_hyphen_key_hyphen_id) { - self.ssh_signing_key_id = ssh_signing_key_id + /// - sshSigningKeyId: The unique identifier of the SSH signing key. + public init(sshSigningKeyId: Components.Parameters.SshSigningKeyId) { + self.sshSigningKeyId = sshSigningKeyId } } - public var path: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9979,12 +10300,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ssh_hyphen_signing_hyphen_key) + case json(Components.Schemas.SshSigningKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.ssh_hyphen_signing_hyphen_key { + public var json: Components.Schemas.SshSigningKey { get throws { switch self { case let .json(body): @@ -9994,12 +10315,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -10008,12 +10329,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.UsersGetSshSigningKeyForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10031,12 +10352,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10054,12 +10375,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -10077,12 +10406,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10100,12 +10429,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/get(users/get-ssh-signing-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10157,7 +10486,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`. /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)`. - public enum users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum UsersDeleteSshSigningKeyForAuthenticatedUser { public static let id: Swift.String = "users/delete-ssh-signing-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/DELETE/path`. @@ -10165,36 +10494,36 @@ public enum Operations { /// The unique identifier of the SSH signing key. /// /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/DELETE/path/ssh_signing_key_id`. - public var ssh_signing_key_id: Components.Parameters.ssh_hyphen_signing_hyphen_key_hyphen_id + public var sshSigningKeyId: Components.Parameters.SshSigningKeyId /// Creates a new `Path`. /// /// - Parameters: - /// - ssh_signing_key_id: The unique identifier of the SSH signing key. - public init(ssh_signing_key_id: Components.Parameters.ssh_hyphen_signing_hyphen_key_hyphen_id) { - self.ssh_signing_key_id = ssh_signing_key_id + /// - sshSigningKeyId: The unique identifier of the SSH signing key. + public init(sshSigningKeyId: Components.Parameters.SshSigningKeyId) { + self.sshSigningKeyId = sshSigningKeyId } } - public var path: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/ssh_signing_keys/{ssh_signing_key_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Path, + headers: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10210,12 +10539,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_delete_hyphen_ssh_hyphen_signing_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersDeleteSshSigningKeyForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -10233,12 +10570,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -10256,12 +10601,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10279,12 +10624,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10302,12 +10647,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/ssh_signing_keys/{ssh_signing_key_id}/delete(users/delete-ssh-signing-key-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10363,7 +10708,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/{account_id}`. /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`. - public enum users_sol_get_hyphen_by_hyphen_id { + public enum UsersGetById { public static let id: Swift.String = "users/get-by-id" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/{account_id}/GET/path`. @@ -10371,36 +10716,36 @@ public enum Operations { /// account_id parameter /// /// - Remark: Generated from `#/paths/user/{account_id}/GET/path/account_id`. - public var account_id: Components.Parameters.account_hyphen_id + public var accountId: Components.Parameters.AccountId /// Creates a new `Path`. /// /// - Parameters: - /// - account_id: account_id parameter - public init(account_id: Components.Parameters.account_hyphen_id) { - self.account_id = account_id + /// - accountId: account_id parameter + public init(accountId: Components.Parameters.AccountId) { + self.accountId = accountId } } - public var path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path + public var path: Operations.UsersGetById.Input.Path /// - Remark: Generated from `#/paths/user/{account_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers + public var headers: Operations.UsersGetById.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Path, - headers: Operations.users_sol_get_hyphen_by_hyphen_id.Input.Headers = .init() + path: Operations.UsersGetById.Input.Path, + headers: Operations.UsersGetById.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10411,19 +10756,19 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/private_hyphen_user`. - case _private(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/public_hyphen_user`. - case _public(Components.Schemas.public_hyphen_user) + @frozen public enum JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/PrivateUser`. + case _private(Components.Schemas.PrivateUser) + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/PublicUser`. + case _public(Components.Schemas.PublicUser) public enum CodingKeys: String, CodingKey { - case user_view_type + case userViewType = "user_view_type" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) let discriminator = try container.decode( Swift.String.self, - forKey: .user_view_type + forKey: .userViewType ) switch discriminator { case "private": @@ -10432,7 +10777,7 @@ public enum Operations { self = ._public(try .init(from: decoder)) default: throw Swift.DecodingError.unknownOneOfDiscriminator( - discriminatorKey: CodingKeys.user_view_type, + discriminatorKey: CodingKeys.userViewType, discriminatorValue: discriminator, codingPath: decoder.codingPath ) @@ -10448,12 +10793,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/application\/json`. - case json(Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload) + case json(Operations.UsersGetById.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body.jsonPayload { + public var json: Operations.UsersGetById.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10463,12 +10808,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body + public var body: Operations.UsersGetById.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok.Body) { + public init(body: Operations.UsersGetById.Output.Ok.Body) { self.body = body } } @@ -10477,12 +10822,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok) + case ok(Operations.UsersGetById.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_by_hyphen_id.Output.Ok { + public var ok: Operations.UsersGetById.Output.Ok { get throws { switch self { case let .ok(response): @@ -10500,12 +10845,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10557,7 +10902,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users`. /// - Remark: Generated from `#/paths//users/get(users/list)`. - public enum users_sol_list { + public enum UsersList { public static let id: Swift.String = "users/list" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/GET/query`. @@ -10565,45 +10910,45 @@ public enum Operations { /// A user ID. Only return users with an ID greater than this ID. /// /// - Remark: Generated from `#/paths/users/GET/query/since`. - public var since: Components.Parameters.since_hyphen_user? + public var since: Components.Parameters.SinceUser? /// 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)." /// /// - Remark: Generated from `#/paths/users/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - since: A user ID. Only return users with an ID greater than this ID. - /// - 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)." + /// - perPage: 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)." public init( - since: Components.Parameters.since_hyphen_user? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + since: Components.Parameters.SinceUser? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.since = since - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.users_sol_list.Input.Query + public var query: Operations.UsersList.Input.Query /// - Remark: Generated from `#/paths/users/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list.Input.Headers + public var headers: Operations.UsersList.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.users_sol_list.Input.Query = .init(), - headers: Operations.users_sol_list.Input.Headers = .init() + query: Operations.UsersList.Input.Query = .init(), + headers: Operations.UsersList.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -10614,26 +10959,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/GET/responses/200/headers/Link`. - public var Link: Swift.String? + public var link: Swift.String? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Swift.String? = nil) { - self.Link = Link + /// - link: + public init(link: Swift.String? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list.Output.Ok.Headers + public var headers: Operations.UsersList.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -10643,15 +10988,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list.Output.Ok.Body + public var body: Operations.UsersList.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list.Output.Ok.Headers = .init(), - body: Operations.users_sol_list.Output.Ok.Body + headers: Operations.UsersList.Output.Ok.Headers = .init(), + body: Operations.UsersList.Output.Ok.Body ) { self.headers = headers self.body = body @@ -10662,12 +11007,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/get(users/list)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list.Output.Ok) + case ok(Operations.UsersList.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list.Output.Ok { + public var ok: Operations.UsersList.Output.Ok { get throws { switch self { case let .ok(response): @@ -10685,12 +11030,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/get(users/list)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//users/get(users/list)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -10746,7 +11099,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}`. /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)`. - public enum users_sol_get_hyphen_by_hyphen_username { + public enum UsersGetByUsername { public static let id: Swift.String = "users/get-by-username" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/GET/path`. @@ -10754,36 +11107,36 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Path + public var path: Operations.UsersGetByUsername.Input.Path /// - Remark: Generated from `#/paths/users/{username}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Headers + public var headers: Operations.UsersGetByUsername.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Path, - headers: Operations.users_sol_get_hyphen_by_hyphen_username.Input.Headers = .init() + path: Operations.UsersGetByUsername.Input.Path, + headers: Operations.UsersGetByUsername.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10794,19 +11147,19 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/private_hyphen_user`. - case _private(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/public_hyphen_user`. - case _public(Components.Schemas.public_hyphen_user) + @frozen public enum JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/PrivateUser`. + case _private(Components.Schemas.PrivateUser) + /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/PublicUser`. + case _public(Components.Schemas.PublicUser) public enum CodingKeys: String, CodingKey { - case user_view_type + case userViewType = "user_view_type" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) let discriminator = try container.decode( Swift.String.self, - forKey: .user_view_type + forKey: .userViewType ) switch discriminator { case "private": @@ -10815,7 +11168,7 @@ public enum Operations { self = ._public(try .init(from: decoder)) default: throw Swift.DecodingError.unknownOneOfDiscriminator( - discriminatorKey: CodingKeys.user_view_type, + discriminatorKey: CodingKeys.userViewType, discriminatorValue: discriminator, codingPath: decoder.codingPath ) @@ -10831,12 +11184,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/application\/json`. - case json(Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body.jsonPayload) + case json(Operations.UsersGetByUsername.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body.jsonPayload { + public var json: Operations.UsersGetByUsername.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10846,12 +11199,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body + public var body: Operations.UsersGetByUsername.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok.Body) { + public init(body: Operations.UsersGetByUsername.Output.Ok.Body) { self.body = body } } @@ -10860,12 +11213,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok) + case ok(Operations.UsersGetByUsername.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_by_hyphen_username.Output.Ok { + public var ok: Operations.UsersGetByUsername.Output.Ok { get throws { switch self { case let .ok(response): @@ -10883,12 +11236,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/get(users/get-by-username)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10942,7 +11295,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/attestations/{subject_digest}`. /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)`. - public enum users_sol_list_hyphen_attestations { + public enum UsersListAttestations { public static let id: Swift.String = "users/list-attestations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/path`. @@ -10950,76 +11303,76 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Subject Digest /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/path/subject_digest`. - public var subject_digest: Swift.String + public var subjectDigest: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - /// - subject_digest: Subject Digest + /// - subjectDigest: Subject Digest public init( - username: Components.Parameters.username, - subject_digest: Swift.String + username: Components.Parameters.Username, + subjectDigest: Swift.String ) { self.username = username - self.subject_digest = subject_digest + self.subjectDigest = subjectDigest } } - public var path: Operations.users_sol_list_hyphen_attestations.Input.Path + public var path: Operations.UsersListAttestations.Input.Path /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// Optional filter for fetching attestations with a given predicate type. /// This option accepts `provenance`, `sbom`, or freeform text for custom predicate types. /// /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/query/predicate_type`. - public var predicate_type: Swift.String? + public var predicateType: Swift.String? /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - predicate_type: Optional filter for fetching attestations with a given predicate type. + /// - predicateType: Optional filter for fetching attestations with a given predicate type. public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - predicate_type: Swift.String? = nil + perPage: Components.Parameters.PerPage? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + predicateType: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after - self.predicate_type = predicate_type + self.predicateType = predicateType } } - public var query: Operations.users_sol_list_hyphen_attestations.Input.Query + public var query: Operations.UsersListAttestations.Input.Query /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_attestations.Input.Headers + public var headers: Operations.UsersListAttestations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11027,9 +11380,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_attestations.Input.Path, - query: Operations.users_sol_list_hyphen_attestations.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_attestations.Input.Headers = .init() + path: Operations.UsersListAttestations.Input.Path, + query: Operations.UsersListAttestations.Input.Query = .init(), + headers: Operations.UsersListAttestations.Input.Headers = .init() ) { self.path = path self.query = query @@ -11041,21 +11394,21 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload`. - public struct attestationsPayloadPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload`. + public struct AttestationsPayloadPayload: Codable, Hashable, Sendable { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public struct bundlePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/mediaType`. + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public struct BundlePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/mediaType`. public var mediaType: Swift.String? - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public struct verificationMaterialPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public struct VerificationMaterialPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `verificationMaterialPayload`. + /// Creates a new `VerificationMaterialPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -11069,13 +11422,13 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/verificationMaterial`. - public var verificationMaterial: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public struct dsseEnvelopePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/verificationMaterial`. + public var verificationMaterial: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public struct DsseEnvelopePayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `dsseEnvelopePayload`. + /// Creates a new `DsseEnvelopePayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -11089,9 +11442,9 @@ public enum Operations { try encoder.encodeAdditionalProperties(additionalProperties) } } - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle/dsseEnvelope`. - public var dsseEnvelope: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? - /// Creates a new `bundlePayload`. + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle/dsseEnvelope`. + public var dsseEnvelope: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? + /// Creates a new `BundlePayload`. /// /// - Parameters: /// - mediaType: @@ -11099,8 +11452,8 @@ public enum Operations { /// - dsseEnvelope: public init( mediaType: Swift.String? = nil, - verificationMaterial: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.verificationMaterialPayload? = nil, - dsseEnvelope: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload.dsseEnvelopePayload? = nil + verificationMaterial: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.VerificationMaterialPayload? = nil, + dsseEnvelope: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload.DsseEnvelopePayload? = nil ) { self.mediaType = mediaType self.verificationMaterial = verificationMaterial @@ -11115,42 +11468,42 @@ public enum Operations { /// The attestation's Sigstore Bundle. /// Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. /// - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle`. - public var bundle: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/repository_id`. - public var repository_id: Swift.Int? - /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestationsPayload/bundle_url`. - public var bundle_url: Swift.String? - /// Creates a new `attestationsPayloadPayload`. + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle`. + public var bundle: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/repository_id`. + public var repositoryId: Swift.Int? + /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/AttestationsPayload/bundle_url`. + public var bundleUrl: Swift.String? + /// Creates a new `AttestationsPayloadPayload`. /// /// - Parameters: /// - bundle: The attestation's Sigstore Bundle. - /// - repository_id: - /// - bundle_url: + /// - repositoryId: + /// - bundleUrl: public init( - bundle: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload.bundlePayload? = nil, - repository_id: Swift.Int? = nil, - bundle_url: Swift.String? = nil + bundle: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload.BundlePayload? = nil, + repositoryId: Swift.Int? = nil, + bundleUrl: Swift.String? = nil ) { self.bundle = bundle - self.repository_id = repository_id - self.bundle_url = bundle_url + self.repositoryId = repositoryId + self.bundleUrl = bundleUrl } public enum CodingKeys: String, CodingKey { case bundle - case repository_id - case bundle_url + case repositoryId = "repository_id" + case bundleUrl = "bundle_url" } } /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public typealias attestationsPayload = [Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayloadPayload] + public typealias AttestationsPayload = [Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayloadPayload] /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/json/attestations`. - public var attestations: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? - /// Creates a new `jsonPayload`. + public var attestations: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - attestations: - public init(attestations: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload.attestationsPayload? = nil) { + public init(attestations: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload.AttestationsPayload? = nil) { self.attestations = attestations } public enum CodingKeys: String, CodingKey { @@ -11158,12 +11511,12 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/200/content/application\/json`. - case json(Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload) + case json(Operations.UsersListAttestations.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body.jsonPayload { + public var json: Operations.UsersListAttestations.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11173,12 +11526,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body + public var body: Operations.UsersListAttestations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_list_hyphen_attestations.Output.Ok.Body) { + public init(body: Operations.UsersListAttestations.Output.Ok.Body) { self.body = body } } @@ -11187,12 +11540,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_attestations.Output.Ok) + case ok(Operations.UsersListAttestations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_attestations.Output.Ok { + public var ok: Operations.UsersListAttestations.Output.Ok { get throws { switch self { case let .ok(response): @@ -11209,12 +11562,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/attestations/{subject_digest}/GET/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -11224,12 +11577,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_attestations.Output.Created.Body + public var body: Operations.UsersListAttestations.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_list_hyphen_attestations.Output.Created.Body) { + public init(body: Operations.UsersListAttestations.Output.Created.Body) { self.body = body } } @@ -11238,12 +11591,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.users_sol_list_hyphen_attestations.Output.Created) + case created(Operations.UsersListAttestations.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.users_sol_list_hyphen_attestations.Output.Created { + public var created: Operations.UsersListAttestations.Output.Created { get throws { switch self { case let .created(response): @@ -11265,12 +11618,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_list_hyphen_attestations.Output.NoContent) + case noContent(Operations.UsersListAttestations.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_list_hyphen_attestations.Output.NoContent { + public var noContent: Operations.UsersListAttestations.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11288,12 +11649,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/attestations/{subject_digest}/get(users/list-attestations)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11343,7 +11704,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/followers`. /// - Remark: Generated from `#/paths//users/{username}/followers/get(users/list-followers-for-user)`. - public enum users_sol_list_hyphen_followers_hyphen_for_hyphen_user { + public enum UsersListFollowersForUser { public static let id: Swift.String = "users/list-followers-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/followers/GET/path`. @@ -11351,52 +11712,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/followers/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListFollowersForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/followers/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/followers/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/followers/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListFollowersForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/followers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListFollowersForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11404,9 +11765,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListFollowersForUser.Input.Path, + query: Operations.UsersListFollowersForUser.Input.Query = .init(), + headers: Operations.UsersListFollowersForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11418,26 +11779,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/followers/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/followers/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListFollowersForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/followers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/followers/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -11447,15 +11808,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListFollowersForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListFollowersForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListFollowersForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11466,12 +11827,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/followers/get(users/list-followers-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListFollowersForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_followers_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListFollowersForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11521,7 +11882,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/following`. /// - Remark: Generated from `#/paths//users/{username}/following/get(users/list-following-for-user)`. - public enum users_sol_list_hyphen_following_hyphen_for_hyphen_user { + public enum UsersListFollowingForUser { public static let id: Swift.String = "users/list-following-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/following/GET/path`. @@ -11529,52 +11890,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/following/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListFollowingForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/following/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/following/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/following/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListFollowingForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/following/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListFollowingForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11582,9 +11943,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListFollowingForUser.Input.Path, + query: Operations.UsersListFollowingForUser.Input.Query = .init(), + headers: Operations.UsersListFollowingForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11596,26 +11957,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/following/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/following/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListFollowingForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/following/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/following/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_user]) + case json([Components.Schemas.SimpleUser]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_user] { + public var json: [Components.Schemas.SimpleUser] { get throws { switch self { case let .json(body): @@ -11625,15 +11986,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListFollowingForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListFollowingForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListFollowingForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11644,12 +12005,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/following/get(users/list-following-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListFollowingForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_following_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListFollowingForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11699,7 +12060,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/following/{target_user}`. /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)`. - public enum users_sol_check_hyphen_following_hyphen_for_hyphen_user { + public enum UsersCheckFollowingForUser { public static let id: Swift.String = "users/check-following-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/following/{target_user}/GET/path`. @@ -11707,28 +12068,28 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/following/{target_user}/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// - Remark: Generated from `#/paths/users/{username}/following/{target_user}/GET/path/target_user`. - public var target_user: Swift.String + public var targetUser: Swift.String /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - /// - target_user: + /// - targetUser: public init( - username: Components.Parameters.username, - target_user: Swift.String + username: Components.Parameters.Username, + targetUser: Swift.String ) { self.username = username - self.target_user = target_user + self.targetUser = targetUser } } - public var path: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersCheckFollowingForUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Input.Path) { + public init(path: Operations.UsersCheckFollowingForUser.Input.Path) { self.path = path } } @@ -11742,12 +12103,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output.NoContent) + case noContent(Operations.UsersCheckFollowingForUser.Output.NoContent) + /// if the user follows the target user + /// + /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output.NoContent { + public var noContent: Operations.UsersCheckFollowingForUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -11769,12 +12138,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output.NotFound) + case notFound(Operations.UsersCheckFollowingForUser.Output.NotFound) + /// if the user does not follow the target user + /// + /// - Remark: Generated from `#/paths//users/{username}/following/{target_user}/get(users/check-following-for-user)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + public static var notFound: Self { + .notFound(.init()) + } /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Operations.users_sol_check_hyphen_following_hyphen_for_hyphen_user.Output.NotFound { + public var notFound: Operations.UsersCheckFollowingForUser.Output.NotFound { get throws { switch self { case let .notFound(response): @@ -11799,7 +12176,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/gpg_keys`. /// - Remark: Generated from `#/paths//users/{username}/gpg_keys/get(users/list-gpg-keys-for-user)`. - public enum users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user { + public enum UsersListGpgKeysForUser { public static let id: Swift.String = "users/list-gpg-keys-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/path`. @@ -11807,52 +12184,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListGpgKeysForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListGpgKeysForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListGpgKeysForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11860,9 +12237,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListGpgKeysForUser.Input.Path, + query: Operations.UsersListGpgKeysForUser.Input.Query = .init(), + headers: Operations.UsersListGpgKeysForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11874,26 +12251,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListGpgKeysForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/gpg_keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.gpg_hyphen_key]) + case json([Components.Schemas.GpgKey]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.gpg_hyphen_key] { + public var json: [Components.Schemas.GpgKey] { get throws { switch self { case let .json(body): @@ -11903,15 +12280,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListGpgKeysForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListGpgKeysForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListGpgKeysForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -11922,12 +12299,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/gpg_keys/get(users/list-gpg-keys-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListGpgKeysForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_gpg_hyphen_keys_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListGpgKeysForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11981,7 +12358,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/hovercard`. /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)`. - public enum users_sol_get_hyphen_context_hyphen_for_hyphen_user { + public enum UsersGetContextForUser { public static let id: Swift.String = "users/get-context-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/path`. @@ -11989,59 +12366,59 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersGetContextForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/query/subject_type`. - @frozen public enum subject_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum SubjectTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case organization = "organization" case repository = "repository" case issue = "issue" - case pull_request = "pull_request" + case pullRequest = "pull_request" } /// Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`. /// /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/query/subject_type`. - public var subject_type: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Query.subject_typePayload? + public var subjectType: Operations.UsersGetContextForUser.Input.Query.SubjectTypePayload? /// Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. /// /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/query/subject_id`. - public var subject_id: Swift.String? + public var subjectId: Swift.String? /// Creates a new `Query`. /// /// - Parameters: - /// - subject_type: Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`. - /// - subject_id: Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. + /// - subjectType: Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`. + /// - subjectId: Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. public init( - subject_type: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Query.subject_typePayload? = nil, - subject_id: Swift.String? = nil + subjectType: Operations.UsersGetContextForUser.Input.Query.SubjectTypePayload? = nil, + subjectId: Swift.String? = nil ) { - self.subject_type = subject_type - self.subject_id = subject_id + self.subjectType = subjectType + self.subjectId = subjectId } } - public var query: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersGetContextForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersGetContextForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12049,9 +12426,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersGetContextForUser.Input.Path, + query: Operations.UsersGetContextForUser.Input.Query = .init(), + headers: Operations.UsersGetContextForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -12063,12 +12440,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/hovercard/GET/responses/200/content/application\/json`. - case json(Components.Schemas.hovercard) + case json(Components.Schemas.Hovercard) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.hovercard { + public var json: Components.Schemas.Hovercard { get throws { switch self { case let .json(body): @@ -12078,12 +12455,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersGetContextForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.UsersGetContextForUser.Output.Ok.Body) { self.body = body } } @@ -12092,12 +12469,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersGetContextForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_get_hyphen_context_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersGetContextForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -12115,12 +12492,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -12138,12 +12515,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/hovercard/get(users/get-context-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12193,7 +12570,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/keys`. /// - Remark: Generated from `#/paths//users/{username}/keys/get(users/list-public-keys-for-user)`. - public enum users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user { + public enum UsersListPublicKeysForUser { public static let id: Swift.String = "users/list-public-keys-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/keys/GET/path`. @@ -12201,52 +12578,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/keys/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListPublicKeysForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/keys/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListPublicKeysForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListPublicKeysForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12254,9 +12631,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListPublicKeysForUser.Input.Path, + query: Operations.UsersListPublicKeysForUser.Input.Query = .init(), + headers: Operations.UsersListPublicKeysForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -12268,26 +12645,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListPublicKeysForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.key_hyphen_simple]) + case json([Components.Schemas.KeySimple]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.key_hyphen_simple] { + public var json: [Components.Schemas.KeySimple] { get throws { switch self { case let .json(body): @@ -12297,15 +12674,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListPublicKeysForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListPublicKeysForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListPublicKeysForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12316,12 +12693,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/keys/get(users/list-public-keys-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListPublicKeysForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_public_hyphen_keys_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListPublicKeysForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -12371,7 +12748,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/social_accounts`. /// - Remark: Generated from `#/paths//users/{username}/social_accounts/get(users/list-social-accounts-for-user)`. - public enum users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user { + public enum UsersListSocialAccountsForUser { public static let id: Swift.String = "users/list-social-accounts-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/path`. @@ -12379,52 +12756,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListSocialAccountsForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListSocialAccountsForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListSocialAccountsForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12432,9 +12809,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListSocialAccountsForUser.Input.Path, + query: Operations.UsersListSocialAccountsForUser.Input.Query = .init(), + headers: Operations.UsersListSocialAccountsForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -12446,26 +12823,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListSocialAccountsForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/social_accounts/GET/responses/200/content/application\/json`. - case json([Components.Schemas.social_hyphen_account]) + case json([Components.Schemas.SocialAccount]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.social_hyphen_account] { + public var json: [Components.Schemas.SocialAccount] { get throws { switch self { case let .json(body): @@ -12475,15 +12852,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListSocialAccountsForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListSocialAccountsForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListSocialAccountsForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12494,12 +12871,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/social_accounts/get(users/list-social-accounts-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListSocialAccountsForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_social_hyphen_accounts_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListSocialAccountsForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -12549,7 +12926,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /users/{username}/ssh_signing_keys`. /// - Remark: Generated from `#/paths//users/{username}/ssh_signing_keys/get(users/list-ssh-signing-keys-for-user)`. - public enum users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user { + public enum UsersListSshSigningKeysForUser { public static let id: Swift.String = "users/list-ssh-signing-keys-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/path`. @@ -12557,52 +12934,52 @@ public enum Operations { /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - username: The handle for the GitHub user account. - public init(username: Components.Parameters.username) { + public init(username: Components.Parameters.Username) { self.username = username } } - public var path: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Path + public var path: Operations.UsersListSshSigningKeysForUser.Input.Path /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Query + public var query: Operations.UsersListSshSigningKeysForUser.Input.Query /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.UsersListSshSigningKeysForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12610,9 +12987,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Path, - query: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Query = .init(), - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.UsersListSshSigningKeysForUser.Input.Path, + query: Operations.UsersListSshSigningKeysForUser.Input.Query = .init(), + headers: Operations.UsersListSshSigningKeysForUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -12624,26 +13001,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers + public var headers: Operations.UsersListSshSigningKeysForUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/ssh_signing_keys/GET/responses/200/content/application\/json`. - case json([Components.Schemas.ssh_hyphen_signing_hyphen_key]) + case json([Components.Schemas.SshSigningKey]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.ssh_hyphen_signing_hyphen_key] { + public var json: [Components.Schemas.SshSigningKey] { get throws { switch self { case let .json(body): @@ -12653,15 +13030,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.UsersListSshSigningKeysForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok.Body + headers: Operations.UsersListSshSigningKeysForUser.Output.Ok.Headers = .init(), + body: Operations.UsersListSshSigningKeysForUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12672,12 +13049,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//users/{username}/ssh_signing_keys/get(users/list-ssh-signing-keys-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.UsersListSshSigningKeysForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.users_sol_list_hyphen_ssh_hyphen_signing_hyphen_keys_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.UsersListSshSigningKeysForUser.Output.Ok { get throws { switch self { case let .ok(response): From 4c68aaeb2171f13d4e078acd7b4b2b0ada0eda00 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:06:25 -0700 Subject: [PATCH 34/46] Commit via running ake Sources/codespaces --- Sources/codespaces/Client.swift | 970 ++-- Sources/codespaces/Types.swift | 9299 ++++++++++++++++--------------- 2 files changed, 5275 insertions(+), 4994 deletions(-) diff --git a/Sources/codespaces/Client.swift b/Sources/codespaces/Client.swift index 62f5de31a9..73eb7b970e 100644 --- a/Sources/codespaces/Client.swift +++ b/Sources/codespaces/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)`. - public func codespaces_sol_list_hyphen_in_hyphen_organization(_ input: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output { + public func codespacesListInOrganization(_ input: Operations.CodespacesListInOrganization.Input) async throws -> Operations.CodespacesListInOrganization.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.id, + forOperation: Operations.CodespacesListInOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces", @@ -67,7 +67,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -86,7 +86,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body + let body: Operations.CodespacesListInOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -96,7 +96,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListInOrganization.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -110,7 +110,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -120,7 +120,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -132,7 +132,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -142,7 +142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -154,7 +154,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -164,7 +164,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -176,7 +176,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -186,7 +186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -216,10 +216,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/codespaces/access`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)`. @available(*, deprecated) - public func codespaces_sol_set_hyphen_codespaces_hyphen_access(_ input: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output { + public func codespacesSetCodespacesAccess(_ input: Operations.CodespacesSetCodespacesAccess.Input) async throws -> Operations.CodespacesSetCodespacesAccess.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.id, + forOperation: Operations.CodespacesSetCodespacesAccess.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/access", @@ -257,7 +257,7 @@ public struct Client: APIProtocol { return .badRequest(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -267,7 +267,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -279,7 +279,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -289,7 +289,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -301,7 +301,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -311,7 +311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -345,10 +345,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)`. @available(*, deprecated) - public func codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users(_ input: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output { + public func codespacesSetCodespacesAccessUsers(_ input: Operations.CodespacesSetCodespacesAccessUsers.Input) async throws -> Operations.CodespacesSetCodespacesAccessUsers.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.id, + forOperation: Operations.CodespacesSetCodespacesAccessUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/access/selected_users", @@ -386,7 +386,7 @@ public struct Client: APIProtocol { return .badRequest(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -408,7 +408,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -418,7 +418,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -430,7 +430,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -440,7 +440,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -474,10 +474,10 @@ public struct Client: APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)`. @available(*, deprecated) - public func codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users(_ input: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input) async throws -> Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output { + public func codespacesDeleteCodespacesAccessUsers(_ input: Operations.CodespacesDeleteCodespacesAccessUsers.Input) async throws -> Operations.CodespacesDeleteCodespacesAccessUsers.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.id, + forOperation: Operations.CodespacesDeleteCodespacesAccessUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/access/selected_users", @@ -515,7 +515,7 @@ public struct Client: APIProtocol { return .badRequest(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -525,7 +525,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -537,7 +537,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -547,7 +547,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -559,7 +559,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -569,7 +569,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -600,10 +600,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/get(codespaces/list-org-secrets)`. - public func codespaces_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output { + public func codespacesListOrgSecrets(_ input: Operations.CodespacesListOrgSecrets.Input) async throws -> Operations.CodespacesListOrgSecrets.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.id, + forOperation: Operations.CodespacesListOrgSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets", @@ -621,7 +621,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -639,13 +639,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CodespacesListOrgSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + let body: Operations.CodespacesListOrgSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -655,7 +655,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListOrgSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -687,10 +687,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/public-key/get(codespaces/get-org-public-key)`. - public func codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { + public func codespacesGetOrgPublicKey(_ input: Operations.CodespacesGetOrgPublicKey.Input) async throws -> Operations.CodespacesGetOrgPublicKey.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.id, + forOperation: Operations.CodespacesGetOrgPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/public-key", @@ -713,7 +713,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.CodespacesGetOrgPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -723,7 +723,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_public_hyphen_key.self, + Components.Schemas.CodespacesPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -753,16 +753,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/get(codespaces/get-org-secret)`. - public func codespaces_sol_get_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output { + public func codespacesGetOrgSecret(_ input: Operations.CodespacesGetOrgSecret.Input) async throws -> Operations.CodespacesGetOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesGetOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -779,13 +779,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CodespacesGetOrgSecret.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.CodespacesGetOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -795,7 +795,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_org_hyphen_secret.self, + Components.Schemas.CodespacesOrgSecret.self, from: responseBody, transforming: { value in .json(value) @@ -829,16 +829,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { + public func codespacesCreateOrUpdateOrgSecret(_ input: Operations.CodespacesCreateOrUpdateOrgSecret.Input) async throws -> Operations.CodespacesCreateOrUpdateOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesCreateOrUpdateOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -865,7 +865,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + let body: Operations.CodespacesCreateOrUpdateOrgSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -875,7 +875,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -889,7 +889,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -899,7 +899,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -911,7 +911,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -921,7 +921,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -951,16 +951,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)`. - public func codespaces_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Output { + public func codespacesDeleteOrgSecret(_ input: Operations.CodespacesDeleteOrgSecret.Input) async throws -> Operations.CodespacesDeleteOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesDeleteOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -980,7 +980,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -990,7 +990,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1021,16 +1021,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)`. - public func codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func codespacesListSelectedReposForOrgSecret(_ input: Operations.CodespacesListSelectedReposForOrgSecret.Input) async throws -> Operations.CodespacesListSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesListSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1050,7 +1050,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -1062,7 +1062,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + let body: Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1072,7 +1072,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1084,7 +1084,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1094,7 +1094,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1126,16 +1126,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)`. - public func codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { + public func codespacesSetSelectedReposForOrgSecret(_ input: Operations.CodespacesSetSelectedReposForOrgSecret.Input) async throws -> Operations.CodespacesSetSelectedReposForOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesSetSelectedReposForOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}/repositories", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1164,7 +1164,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1174,7 +1174,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1205,17 +1205,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)`. - public func codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { + public func codespacesAddSelectedRepoToOrgSecret(_ input: Operations.CodespacesAddSelectedRepoToOrgSecret.Input) async throws -> Operations.CodespacesAddSelectedRepoToOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesAddSelectedRepoToOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1235,7 +1235,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1245,7 +1245,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1259,7 +1259,7 @@ public struct Client: APIProtocol { return .conflict(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1269,7 +1269,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1301,17 +1301,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)`. - public func codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { + public func codespacesRemoveSelectedRepoFromOrgSecret(_ input: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.id, + forOperation: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/codespaces/secrets/{}/repositories/{}", parameters: [ input.path.org, - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1331,7 +1331,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1341,7 +1341,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1355,7 +1355,7 @@ public struct Client: APIProtocol { return .conflict(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1365,7 +1365,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1395,10 +1395,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)`. - public func codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { + public func codespacesGetCodespacesForUserInOrg(_ input: Operations.CodespacesGetCodespacesForUserInOrg.Input) async throws -> Operations.CodespacesGetCodespacesForUserInOrg.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.id, + forOperation: Operations.CodespacesGetCodespacesForUserInOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}/codespaces", @@ -1417,7 +1417,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1436,7 +1436,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + let body: Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1446,7 +1446,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1460,7 +1460,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1470,7 +1470,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1482,7 +1482,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1492,7 +1492,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1504,7 +1504,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1514,7 +1514,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1526,7 +1526,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1536,7 +1536,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1566,17 +1566,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)`. - public func codespaces_sol_delete_hyphen_from_hyphen_organization(_ input: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input) async throws -> Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Output { + public func codespacesDeleteFromOrganization(_ input: Operations.CodespacesDeleteFromOrganization.Input) async throws -> Operations.CodespacesDeleteFromOrganization.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.id, + forOperation: Operations.CodespacesDeleteFromOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}/codespaces/{}", parameters: [ input.path.org, input.path.username, - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1594,7 +1594,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1618,7 +1618,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1628,7 +1628,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1640,7 +1640,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1650,7 +1650,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1662,7 +1662,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1672,7 +1672,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1684,7 +1684,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1694,7 +1694,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1724,17 +1724,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)`. - public func codespaces_sol_stop_hyphen_in_hyphen_organization(_ input: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input) async throws -> Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output { + public func codespacesStopInOrganization(_ input: Operations.CodespacesStopInOrganization.Input) async throws -> Operations.CodespacesStopInOrganization.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.id, + forOperation: Operations.CodespacesStopInOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}/codespaces/{}/stop", parameters: [ input.path.org, input.path.username, - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1752,7 +1752,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output.Ok.Body + let body: Operations.CodespacesStopInOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1762,7 +1762,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -1776,7 +1776,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1786,7 +1786,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1798,7 +1798,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1808,7 +1808,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1820,7 +1820,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1830,7 +1830,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1842,7 +1842,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1852,7 +1852,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1882,10 +1882,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesListInRepositoryForAuthenticatedUser(_ input: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input) async throws -> Operations.CodespacesListInRepositoryForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesListInRepositoryForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces", @@ -1904,7 +1904,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1923,7 +1923,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1933,7 +1933,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1945,7 +1945,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1955,7 +1955,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1967,7 +1967,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1977,7 +1977,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1989,7 +1989,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1999,7 +1999,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2011,7 +2011,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2021,7 +2021,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2051,10 +2051,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesCreateWithRepoForAuthenticatedUser(_ input: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesCreateWithRepoForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces", @@ -2087,7 +2087,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2097,7 +2097,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -2109,7 +2109,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + let body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2119,7 +2119,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -2131,7 +2131,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2142,7 +2142,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2150,10 +2150,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -2162,7 +2162,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2172,7 +2172,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2184,7 +2184,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2194,7 +2194,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2206,7 +2206,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2216,7 +2216,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2228,7 +2228,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2238,7 +2238,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2269,10 +2269,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/devcontainers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesListDevcontainersInRepositoryForAuthenticatedUser(_ input: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input) async throws -> Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/devcontainers", @@ -2291,7 +2291,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2310,7 +2310,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2320,7 +2320,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2332,7 +2332,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2342,7 +2342,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2354,7 +2354,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2365,7 +2365,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2373,10 +2373,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -2385,7 +2385,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2395,7 +2395,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2407,7 +2407,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2417,7 +2417,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2429,7 +2429,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2439,7 +2439,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2469,10 +2469,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/machines`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)`. - public func codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesRepoMachinesForAuthenticatedUser(_ input: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input) async throws -> Operations.CodespacesRepoMachinesForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesRepoMachinesForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/machines", @@ -2498,7 +2498,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "client_ip", - value: input.query.client_ip + value: input.query.clientIp ) try converter.setQueryItemAsURI( in: &request, @@ -2517,7 +2517,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2527,7 +2527,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2541,7 +2541,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2551,7 +2551,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2563,7 +2563,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2573,7 +2573,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2585,7 +2585,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2595,7 +2595,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2607,7 +2607,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2617,7 +2617,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2647,10 +2647,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/new`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)`. - public func codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesPreFlightWithRepoForAuthenticatedUser(_ input: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input) async throws -> Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/new", @@ -2676,7 +2676,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "client_ip", - value: input.query.client_ip + value: input.query.clientIp ) converter.setAcceptHeader( in: &request.headerFields, @@ -2688,7 +2688,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2698,7 +2698,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2710,7 +2710,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2720,7 +2720,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2732,7 +2732,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2742,7 +2742,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2754,7 +2754,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2764,7 +2764,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2794,10 +2794,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/permissions_check`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)`. - public func codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer(_ input: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input) async throws -> Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output { + public func codespacesCheckPermissionsForDevcontainer(_ input: Operations.CodespacesCheckPermissionsForDevcontainer.Input) async throws -> Operations.CodespacesCheckPermissionsForDevcontainer.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.id, + forOperation: Operations.CodespacesCheckPermissionsForDevcontainer.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/permissions_check", @@ -2823,7 +2823,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "devcontainer_path", - value: input.query.devcontainer_path + value: input.query.devcontainerPath ) converter.setAcceptHeader( in: &request.headerFields, @@ -2835,7 +2835,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output.Ok.Body + let body: Operations.CodespacesCheckPermissionsForDevcontainer.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2845,7 +2845,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_permissions_hyphen_check_hyphen_for_hyphen_devcontainer.self, + Components.Schemas.CodespacesPermissionsCheckForDevcontainer.self, from: responseBody, transforming: { value in .json(value) @@ -2857,7 +2857,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2867,7 +2867,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2879,7 +2879,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2889,7 +2889,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2901,7 +2901,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2911,7 +2911,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2923,7 +2923,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2933,7 +2933,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -2945,7 +2945,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2955,7 +2955,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2986,10 +2986,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/get(codespaces/list-repo-secrets)`. - public func codespaces_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output { + public func codespacesListRepoSecrets(_ input: Operations.CodespacesListRepoSecrets.Input) async throws -> Operations.CodespacesListRepoSecrets.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.id, + forOperation: Operations.CodespacesListRepoSecrets.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/secrets", @@ -3008,7 +3008,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3026,13 +3026,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CodespacesListRepoSecrets.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + let body: Operations.CodespacesListRepoSecrets.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3042,7 +3042,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListRepoSecrets.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3076,10 +3076,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/public-key/get(codespaces/get-repo-public-key)`. - public func codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { + public func codespacesGetRepoPublicKey(_ input: Operations.CodespacesGetRepoPublicKey.Input) async throws -> Operations.CodespacesGetRepoPublicKey.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.id, + forOperation: Operations.CodespacesGetRepoPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/secrets/public-key", @@ -3103,7 +3103,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.CodespacesGetRepoPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3113,7 +3113,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_public_hyphen_key.self, + Components.Schemas.CodespacesPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -3143,17 +3143,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/get(codespaces/get-repo-secret)`. - public func codespaces_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output { + public func codespacesGetRepoSecret(_ input: Operations.CodespacesGetRepoSecret.Input) async throws -> Operations.CodespacesGetRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.id, + forOperation: Operations.CodespacesGetRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3171,7 +3171,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + let body: Operations.CodespacesGetRepoSecret.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3181,7 +3181,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repo_hyphen_codespaces_hyphen_secret.self, + Components.Schemas.RepoCodespacesSecret.self, from: responseBody, transforming: { value in .json(value) @@ -3212,17 +3212,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { + public func codespacesCreateOrUpdateRepoSecret(_ input: Operations.CodespacesCreateOrUpdateRepoSecret.Input) async throws -> Operations.CodespacesCreateOrUpdateRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.id, + forOperation: Operations.CodespacesCreateOrUpdateRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3249,7 +3249,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + let body: Operations.CodespacesCreateOrUpdateRepoSecret.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3259,7 +3259,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -3291,17 +3291,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`. - public func codespaces_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Output { + public func codespacesDeleteRepoSecret(_ input: Operations.CodespacesDeleteRepoSecret.Input) async throws -> Operations.CodespacesDeleteRepoSecret.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.id, + forOperation: Operations.CodespacesDeleteRepoSecret.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/codespaces/secrets/{}", parameters: [ input.path.owner, input.path.repo, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3335,17 +3335,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesCreateWithPrForAuthenticatedUser(_ input: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateWithPrForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesCreateWithPrForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/pulls/{}/codespaces", parameters: [ input.path.owner, input.path.repo, - input.path.pull_number + input.path.pullNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -3372,7 +3372,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3382,7 +3382,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -3394,7 +3394,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + let body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3404,7 +3404,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -3416,7 +3416,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3426,7 +3426,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3438,7 +3438,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3448,7 +3448,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3460,7 +3460,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3470,7 +3470,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3482,7 +3482,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3492,7 +3492,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3522,10 +3522,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesListForAuthenticatedUser(_ input: Operations.CodespacesListForAuthenticatedUser.Input) async throws -> Operations.CodespacesListForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesListForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces", @@ -3541,7 +3541,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3555,7 +3555,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "repository_id", - value: input.query.repository_id + value: input.query.repositoryId ) converter.setAcceptHeader( in: &request.headerFields, @@ -3567,7 +3567,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3577,7 +3577,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3591,7 +3591,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3601,7 +3601,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3613,7 +3613,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3623,7 +3623,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3635,7 +3635,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3645,7 +3645,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3657,7 +3657,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3667,7 +3667,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3699,10 +3699,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesCreateForAuthenticatedUser(_ input: Operations.CodespacesCreateForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesCreateForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces", @@ -3732,7 +3732,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.CodespacesCreateForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3742,7 +3742,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -3754,7 +3754,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + let body: Operations.CodespacesCreateForAuthenticatedUser.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3764,7 +3764,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -3776,7 +3776,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3786,7 +3786,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3798,7 +3798,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3808,7 +3808,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3820,7 +3820,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3830,7 +3830,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -3842,7 +3842,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3852,7 +3852,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3885,10 +3885,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/get(codespaces/list-secrets-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesListSecretsForAuthenticatedUser(_ input: Operations.CodespacesListSecretsForAuthenticatedUser.Input) async throws -> Operations.CodespacesListSecretsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesListSecretsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets", @@ -3904,7 +3904,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -3922,13 +3922,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -3938,7 +3938,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -3973,10 +3973,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/public-key/get(codespaces/get-public-key-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesGetPublicKeyForAuthenticatedUser(_ input: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesGetPublicKeyForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/public-key", @@ -3997,7 +3997,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4007,7 +4007,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_user_hyphen_public_hyphen_key.self, + Components.Schemas.CodespacesUserPublicKey.self, from: responseBody, transforming: { value in .json(value) @@ -4039,15 +4039,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/get(codespaces/get-secret-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesGetSecretForAuthenticatedUser(_ input: Operations.CodespacesGetSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesGetSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}", parameters: [ - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4065,7 +4065,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesGetSecretForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4075,7 +4075,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespaces_hyphen_secret.self, + Components.Schemas.CodespacesSecret.self, from: responseBody, transforming: { value in .json(value) @@ -4108,15 +4108,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesCreateOrUpdateSecretForAuthenticatedUser(_ input: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}", parameters: [ - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4143,7 +4143,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4153,7 +4153,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.empty_hyphen_object.self, + Components.Schemas.EmptyObject.self, from: responseBody, transforming: { value in .json(value) @@ -4167,7 +4167,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4177,7 +4177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -4189,7 +4189,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4199,7 +4199,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4231,15 +4231,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)`. - public func codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesDeleteSecretForAuthenticatedUser(_ input: Operations.CodespacesDeleteSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesDeleteSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesDeleteSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}", parameters: [ - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4275,15 +4275,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesListRepositoriesForSecretForAuthenticatedUser(_ input: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}/repositories", parameters: [ - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4301,7 +4301,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4311,7 +4311,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -4323,7 +4323,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4333,7 +4333,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4345,7 +4345,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4355,7 +4355,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4367,7 +4367,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4377,7 +4377,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4389,7 +4389,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4399,7 +4399,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4431,15 +4431,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)`. - public func codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesSetRepositoriesForSecretForAuthenticatedUser(_ input: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}/repositories", parameters: [ - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4468,7 +4468,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4478,7 +4478,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4490,7 +4490,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4500,7 +4500,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4512,7 +4512,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4522,7 +4522,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4534,7 +4534,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4544,7 +4544,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4576,16 +4576,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)`. - public func codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesAddRepositoryForSecretForAuthenticatedUser(_ input: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}/repositories/{}", parameters: [ - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4605,7 +4605,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4615,7 +4615,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4627,7 +4627,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4637,7 +4637,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4649,7 +4649,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4659,7 +4659,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4671,7 +4671,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4681,7 +4681,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4713,16 +4713,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)`. - public func codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesRemoveRepositoryForSecretForAuthenticatedUser(_ input: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/secrets/{}/repositories/{}", parameters: [ - input.path.secret_name, - input.path.repository_id + input.path.secretName, + input.path.repositoryId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4742,7 +4742,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4752,7 +4752,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4764,7 +4764,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4774,7 +4774,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4786,7 +4786,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4796,7 +4796,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4808,7 +4808,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4818,7 +4818,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4848,15 +4848,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesGetForAuthenticatedUser(_ input: Operations.CodespacesGetForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesGetForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -4874,7 +4874,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesGetForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4884,7 +4884,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -4898,7 +4898,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4908,7 +4908,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4920,7 +4920,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4930,7 +4930,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4942,7 +4942,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4952,7 +4952,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -4964,7 +4964,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -4974,7 +4974,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5006,15 +5006,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)`. - public func codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesUpdateForAuthenticatedUser(_ input: Operations.CodespacesUpdateForAuthenticatedUser.Input) async throws -> Operations.CodespacesUpdateForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesUpdateForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5043,7 +5043,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesUpdateForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5053,7 +5053,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -5065,7 +5065,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5075,7 +5075,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5087,7 +5087,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5097,7 +5097,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5109,7 +5109,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5119,7 +5119,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5149,15 +5149,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)`. - public func codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesDeleteForAuthenticatedUser(_ input: Operations.CodespacesDeleteForAuthenticatedUser.Input) async throws -> Operations.CodespacesDeleteForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesDeleteForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5175,7 +5175,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5199,7 +5199,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5209,7 +5209,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5221,7 +5221,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5231,7 +5231,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5243,7 +5243,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5253,7 +5253,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5265,7 +5265,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5275,7 +5275,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5307,15 +5307,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/exports`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)`. - public func codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesExportForAuthenticatedUser(_ input: Operations.CodespacesExportForAuthenticatedUser.Input) async throws -> Operations.CodespacesExportForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesExportForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/exports", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5333,7 +5333,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + let body: Operations.CodespacesExportForAuthenticatedUser.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5343,7 +5343,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace_hyphen_export_hyphen_details.self, + Components.Schemas.CodespaceExportDetails.self, from: responseBody, transforming: { value in .json(value) @@ -5355,7 +5355,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5365,7 +5365,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5377,7 +5377,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5387,7 +5387,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5399,7 +5399,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5409,7 +5409,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5421,7 +5421,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5431,7 +5431,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5443,7 +5443,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5453,7 +5453,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5483,16 +5483,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/exports/{export_id}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesGetExportDetailsForAuthenticatedUser(_ input: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesGetExportDetailsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/exports/{}", parameters: [ - input.path.codespace_name, - input.path.export_id + input.path.codespaceName, + input.path.exportId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5510,7 +5510,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5520,7 +5520,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace_hyphen_export_hyphen_details.self, + Components.Schemas.CodespaceExportDetails.self, from: responseBody, transforming: { value in .json(value) @@ -5532,7 +5532,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5542,7 +5542,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5572,15 +5572,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/machines`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)`. - public func codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesCodespaceMachinesForAuthenticatedUser(_ input: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input) async throws -> Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/machines", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5598,7 +5598,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5608,7 +5608,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -5622,7 +5622,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5632,7 +5632,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5644,7 +5644,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5654,7 +5654,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5666,7 +5666,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5676,7 +5676,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5688,7 +5688,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5698,7 +5698,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5732,15 +5732,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/publish`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)`. - public func codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesPublishForAuthenticatedUser(_ input: Operations.CodespacesPublishForAuthenticatedUser.Input) async throws -> Operations.CodespacesPublishForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesPublishForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/publish", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5767,7 +5767,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + let body: Operations.CodespacesPublishForAuthenticatedUser.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5777,7 +5777,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.self, + Components.Schemas.CodespaceWithFullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -5789,7 +5789,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5799,7 +5799,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5811,7 +5811,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5821,7 +5821,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5833,7 +5833,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5843,7 +5843,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5855,7 +5855,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5865,7 +5865,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -5895,15 +5895,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/start`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)`. - public func codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesStartForAuthenticatedUser(_ input: Operations.CodespacesStartForAuthenticatedUser.Input) async throws -> Operations.CodespacesStartForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesStartForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/start", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -5921,7 +5921,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesStartForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5931,7 +5931,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -5945,7 +5945,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5955,7 +5955,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5967,7 +5967,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -5978,7 +5978,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -5986,10 +5986,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -5998,7 +5998,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6008,7 +6008,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6020,7 +6020,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 402: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Code402.Body + let body: Operations.CodespacesStartForAuthenticatedUser.Output.Code402.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6030,7 +6030,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6042,7 +6042,7 @@ public struct Client: APIProtocol { return .code402(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6052,7 +6052,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6064,7 +6064,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6074,7 +6074,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6086,7 +6086,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6096,7 +6096,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6126,15 +6126,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)`. - public func codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func codespacesStopForAuthenticatedUser(_ input: Operations.CodespacesStopForAuthenticatedUser.Input) async throws -> Operations.CodespacesStopForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.CodespacesStopForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/codespaces/{}/stop", parameters: [ - input.path.codespace_name + input.path.codespaceName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -6152,7 +6152,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.CodespacesStopForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6162,7 +6162,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.codespace.self, + Components.Schemas.Codespace.self, from: responseBody, transforming: { value in .json(value) @@ -6174,7 +6174,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6184,7 +6184,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6196,7 +6196,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6206,7 +6206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6218,7 +6218,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6228,7 +6228,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -6240,7 +6240,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -6250,7 +6250,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/codespaces/Types.swift b/Sources/codespaces/Types.swift index 022008e0e3..186bdd0aac 100644 --- a/Sources/codespaces/Types.swift +++ b/Sources/codespaces/Types.swift @@ -19,7 +19,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)`. - func codespaces_sol_list_hyphen_in_hyphen_organization(_ input: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output + func codespacesListInOrganization(_ input: Operations.CodespacesListInOrganization.Input) async throws -> Operations.CodespacesListInOrganization.Output /// Manage access control for organization codespaces /// /// Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces access permissions for users according to the visibility. @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /orgs/{org}/codespaces/access`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)`. @available(*, deprecated) - func codespaces_sol_set_hyphen_codespaces_hyphen_access(_ input: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output + func codespacesSetCodespacesAccess(_ input: Operations.CodespacesSetCodespacesAccess.Input) async throws -> Operations.CodespacesSetCodespacesAccess.Output /// Add users to Codespaces access for an organization /// /// Codespaces for the specified users will be billed to the organization. @@ -41,7 +41,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `POST /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)`. @available(*, deprecated) - func codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users(_ input: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output + func codespacesSetCodespacesAccessUsers(_ input: Operations.CodespacesSetCodespacesAccessUsers.Input) async throws -> Operations.CodespacesSetCodespacesAccessUsers.Output /// Remove users from Codespaces access for an organization /// /// Codespaces for the specified users will no longer be billed to the organization. @@ -54,7 +54,7 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)`. @available(*, deprecated) - func codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users(_ input: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input) async throws -> Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output + func codespacesDeleteCodespacesAccessUsers(_ input: Operations.CodespacesDeleteCodespacesAccessUsers.Input) async throws -> Operations.CodespacesDeleteCodespacesAccessUsers.Output /// List organization secrets /// /// Lists all Codespaces development environment secrets available at the organization-level without revealing their encrypted @@ -64,7 +64,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/get(codespaces/list-org-secrets)`. - func codespaces_sol_list_hyphen_org_hyphen_secrets(_ input: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input) async throws -> Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output + func codespacesListOrgSecrets(_ input: Operations.CodespacesListOrgSecrets.Input) async throws -> Operations.CodespacesListOrgSecrets.Output /// Get an organization public key /// /// Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets. @@ -72,7 +72,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/public-key/get(codespaces/get-org-public-key)`. - func codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output + func codespacesGetOrgPublicKey(_ input: Operations.CodespacesGetOrgPublicKey.Input) async throws -> Operations.CodespacesGetOrgPublicKey.Output /// Get an organization secret /// /// Gets an organization development environment secret without revealing its encrypted value. @@ -81,7 +81,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/get(codespaces/get-org-secret)`. - func codespaces_sol_get_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output + func codespacesGetOrgSecret(_ input: Operations.CodespacesGetOrgSecret.Input) async throws -> Operations.CodespacesGetOrgSecret.Output /// Create or update an organization secret /// /// Creates or updates an organization development environment secret with an encrypted value. Encrypt your secret using @@ -91,7 +91,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)`. - func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output + func codespacesCreateOrUpdateOrgSecret(_ input: Operations.CodespacesCreateOrUpdateOrgSecret.Input) async throws -> Operations.CodespacesCreateOrUpdateOrgSecret.Output /// Delete an organization secret /// /// Deletes an organization development environment secret using the secret name. @@ -100,7 +100,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)`. - func codespaces_sol_delete_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Output + func codespacesDeleteOrgSecret(_ input: Operations.CodespacesDeleteOrgSecret.Input) async throws -> Operations.CodespacesDeleteOrgSecret.Output /// List selected repositories for an organization secret /// /// Lists all repositories that have been selected when the `visibility` @@ -110,7 +110,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)`. - func codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func codespacesListSelectedReposForOrgSecret(_ input: Operations.CodespacesListSelectedReposForOrgSecret.Input) async throws -> Operations.CodespacesListSelectedReposForOrgSecret.Output /// Set selected repositories for an organization secret /// /// Replaces all repositories for an organization development environment secret when the `visibility` @@ -121,7 +121,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)`. - func codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output + func codespacesSetSelectedReposForOrgSecret(_ input: Operations.CodespacesSetSelectedReposForOrgSecret.Input) async throws -> Operations.CodespacesSetSelectedReposForOrgSecret.Output /// Add selected repository to an organization secret /// /// Adds a repository to an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret). @@ -129,7 +129,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)`. - func codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output + func codespacesAddSelectedRepoToOrgSecret(_ input: Operations.CodespacesAddSelectedRepoToOrgSecret.Input) async throws -> Operations.CodespacesAddSelectedRepoToOrgSecret.Output /// Remove selected repository from an organization secret /// /// Removes a repository from an organization development environment secret when the `visibility` @@ -140,7 +140,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)`. - func codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(_ input: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input) async throws -> Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output + func codespacesRemoveSelectedRepoFromOrgSecret(_ input: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input) async throws -> Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output /// List codespaces for a user in organization /// /// Lists the codespaces that a member of an organization has for repositories in that organization. @@ -149,7 +149,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)`. - func codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org(_ input: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input) async throws -> Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output + func codespacesGetCodespacesForUserInOrg(_ input: Operations.CodespacesGetCodespacesForUserInOrg.Input) async throws -> Operations.CodespacesGetCodespacesForUserInOrg.Output /// Delete a codespace from the organization /// /// Deletes a user's codespace. @@ -158,7 +158,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)`. - func codespaces_sol_delete_hyphen_from_hyphen_organization(_ input: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input) async throws -> Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Output + func codespacesDeleteFromOrganization(_ input: Operations.CodespacesDeleteFromOrganization.Input) async throws -> Operations.CodespacesDeleteFromOrganization.Output /// Stop a codespace for an organization user /// /// Stops a user's codespace. @@ -167,7 +167,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)`. - func codespaces_sol_stop_hyphen_in_hyphen_organization(_ input: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input) async throws -> Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output + func codespacesStopInOrganization(_ input: Operations.CodespacesStopInOrganization.Input) async throws -> Operations.CodespacesStopInOrganization.Output /// List codespaces in a repository for the authenticated user /// /// Lists the codespaces associated to a specified repository and the authenticated user. @@ -176,7 +176,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)`. - func codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesListInRepositoryForAuthenticatedUser(_ input: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input) async throws -> Operations.CodespacesListInRepositoryForAuthenticatedUser.Output /// Create a codespace in a repository /// /// Creates a codespace owned by the authenticated user in the specified repository. @@ -185,7 +185,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)`. - func codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesCreateWithRepoForAuthenticatedUser(_ input: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output /// List devcontainer configurations in a repository for the authenticated user /// /// Lists the devcontainer.json files associated with a specified repository and the authenticated user. These files @@ -195,7 +195,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/devcontainers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)`. - func codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesListDevcontainersInRepositoryForAuthenticatedUser(_ input: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input) async throws -> Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output /// List available machine types for a repository /// /// List the machine types available for a given repository based on its configuration. @@ -204,7 +204,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/machines`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)`. - func codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesRepoMachinesForAuthenticatedUser(_ input: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input) async throws -> Operations.CodespacesRepoMachinesForAuthenticatedUser.Output /// Get default attributes for a codespace /// /// Gets the default attributes for codespaces created by the user with the repository. @@ -213,7 +213,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/new`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)`. - func codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesPreFlightWithRepoForAuthenticatedUser(_ input: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input) async throws -> Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output /// Check if permissions defined by a devcontainer have been accepted by the authenticated user /// /// Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user. @@ -222,7 +222,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/permissions_check`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)`. - func codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer(_ input: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input) async throws -> Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output + func codespacesCheckPermissionsForDevcontainer(_ input: Operations.CodespacesCheckPermissionsForDevcontainer.Input) async throws -> Operations.CodespacesCheckPermissionsForDevcontainer.Output /// List repository secrets /// /// Lists all development environment secrets available in a repository without revealing their encrypted @@ -232,7 +232,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/get(codespaces/list-repo-secrets)`. - func codespaces_sol_list_hyphen_repo_hyphen_secrets(_ input: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input) async throws -> Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output + func codespacesListRepoSecrets(_ input: Operations.CodespacesListRepoSecrets.Input) async throws -> Operations.CodespacesListRepoSecrets.Output /// Get a repository public key /// /// Gets your public key, which you need to encrypt secrets. You need to @@ -242,7 +242,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/public-key/get(codespaces/get-repo-public-key)`. - func codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key(_ input: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output + func codespacesGetRepoPublicKey(_ input: Operations.CodespacesGetRepoPublicKey.Input) async throws -> Operations.CodespacesGetRepoPublicKey.Output /// Get a repository secret /// /// Gets a single repository development environment secret without revealing its encrypted value. @@ -251,7 +251,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/get(codespaces/get-repo-secret)`. - func codespaces_sol_get_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output + func codespacesGetRepoSecret(_ input: Operations.CodespacesGetRepoSecret.Input) async throws -> Operations.CodespacesGetRepoSecret.Output /// Create or update a repository secret /// /// Creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using @@ -261,7 +261,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`. - func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output + func codespacesCreateOrUpdateRepoSecret(_ input: Operations.CodespacesCreateOrUpdateRepoSecret.Input) async throws -> Operations.CodespacesCreateOrUpdateRepoSecret.Output /// Delete a repository secret /// /// Deletes a development environment secret in a repository using the secret name. @@ -270,7 +270,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`. - func codespaces_sol_delete_hyphen_repo_hyphen_secret(_ input: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input) async throws -> Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Output + func codespacesDeleteRepoSecret(_ input: Operations.CodespacesDeleteRepoSecret.Input) async throws -> Operations.CodespacesDeleteRepoSecret.Output /// Create a codespace from a pull request /// /// Creates a codespace owned by the authenticated user for the specified pull request. @@ -279,7 +279,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)`. - func codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesCreateWithPrForAuthenticatedUser(_ input: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateWithPrForAuthenticatedUser.Output /// List codespaces for the authenticated user /// /// Lists the authenticated user's codespaces. @@ -288,7 +288,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)`. - func codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesListForAuthenticatedUser(_ input: Operations.CodespacesListForAuthenticatedUser.Input) async throws -> Operations.CodespacesListForAuthenticatedUser.Output /// Create a codespace for the authenticated user /// /// Creates a new codespace, owned by the authenticated user. @@ -299,7 +299,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)`. - func codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesCreateForAuthenticatedUser(_ input: Operations.CodespacesCreateForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateForAuthenticatedUser.Output /// List secrets for the authenticated user /// /// Lists all development environment secrets available for a user's codespaces without revealing their @@ -311,7 +311,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/secrets`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/get(codespaces/list-secrets-for-authenticated-user)`. - func codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesListSecretsForAuthenticatedUser(_ input: Operations.CodespacesListSecretsForAuthenticatedUser.Input) async throws -> Operations.CodespacesListSecretsForAuthenticatedUser.Output /// Get public key for the authenticated user /// /// Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. @@ -322,7 +322,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/public-key/get(codespaces/get-public-key-for-authenticated-user)`. - func codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesGetPublicKeyForAuthenticatedUser(_ input: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output /// Get a secret for the authenticated user /// /// Gets a development environment secret available to a user's codespaces without revealing its encrypted value. @@ -333,7 +333,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/get(codespaces/get-secret-for-authenticated-user)`. - func codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesGetSecretForAuthenticatedUser(_ input: Operations.CodespacesGetSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetSecretForAuthenticatedUser.Output /// Create or update a secret for the authenticated user /// /// Creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using @@ -345,7 +345,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)`. - func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesCreateOrUpdateSecretForAuthenticatedUser(_ input: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output /// Delete a secret for the authenticated user /// /// Deletes a development environment secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret. @@ -356,7 +356,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)`. - func codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesDeleteSecretForAuthenticatedUser(_ input: Operations.CodespacesDeleteSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesDeleteSecretForAuthenticatedUser.Output /// List selected repositories for a user secret /// /// List the repositories that have been granted the ability to use a user's development environment secret. @@ -367,7 +367,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)`. - func codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesListRepositoriesForSecretForAuthenticatedUser(_ input: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output /// Set selected repositories for a user secret /// /// Select the repositories that will use a user's development environment secret. @@ -378,7 +378,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)`. - func codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesSetRepositoriesForSecretForAuthenticatedUser(_ input: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Output /// Add a selected repository to a user secret /// /// Adds a repository to the selected repositories for a user's development environment secret. @@ -389,7 +389,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)`. - func codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesAddRepositoryForSecretForAuthenticatedUser(_ input: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Output /// Remove a selected repository from a user secret /// /// Removes a repository from the selected repositories for a user's development environment secret. @@ -400,7 +400,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)`. - func codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesRemoveRepositoryForSecretForAuthenticatedUser(_ input: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input) async throws -> Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Output /// Get a codespace for the authenticated user /// /// Gets information about a user's codespace. @@ -409,7 +409,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)`. - func codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesGetForAuthenticatedUser(_ input: Operations.CodespacesGetForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetForAuthenticatedUser.Output /// Update a codespace for the authenticated user /// /// Updates a codespace owned by the authenticated user. Currently only the codespace's machine type and recent folders can be modified using this endpoint. @@ -420,7 +420,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)`. - func codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesUpdateForAuthenticatedUser(_ input: Operations.CodespacesUpdateForAuthenticatedUser.Input) async throws -> Operations.CodespacesUpdateForAuthenticatedUser.Output /// Delete a codespace for the authenticated user /// /// Deletes a user's codespace. @@ -429,7 +429,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)`. - func codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesDeleteForAuthenticatedUser(_ input: Operations.CodespacesDeleteForAuthenticatedUser.Input) async throws -> Operations.CodespacesDeleteForAuthenticatedUser.Output /// Export a codespace for the authenticated user /// /// Triggers an export of the specified codespace and returns a URL and ID where the status of the export can be monitored. @@ -440,7 +440,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/exports`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)`. - func codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesExportForAuthenticatedUser(_ input: Operations.CodespacesExportForAuthenticatedUser.Input) async throws -> Operations.CodespacesExportForAuthenticatedUser.Output /// Get details about a codespace export /// /// Gets information about an export of a codespace. @@ -449,7 +449,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/exports/{export_id}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)`. - func codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesGetExportDetailsForAuthenticatedUser(_ input: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input) async throws -> Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output /// List machine types for a codespace /// /// List the machine types a codespace can transition to use. @@ -458,7 +458,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/machines`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)`. - func codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesCodespaceMachinesForAuthenticatedUser(_ input: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input) async throws -> Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output /// Create a repository from an unpublished codespace /// /// Publishes an unpublished codespace, creating a new repository and assigning it to the codespace. @@ -471,7 +471,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/publish`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)`. - func codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesPublishForAuthenticatedUser(_ input: Operations.CodespacesPublishForAuthenticatedUser.Input) async throws -> Operations.CodespacesPublishForAuthenticatedUser.Output /// Start a codespace for the authenticated user /// /// Starts a user's codespace. @@ -480,7 +480,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/start`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)`. - func codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesStartForAuthenticatedUser(_ input: Operations.CodespacesStartForAuthenticatedUser.Input) async throws -> Operations.CodespacesStartForAuthenticatedUser.Output /// Stop a codespace for the authenticated user /// /// Stops a user's codespace. @@ -489,7 +489,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)`. - func codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output + func codespacesStopForAuthenticatedUser(_ input: Operations.CodespacesStopForAuthenticatedUser.Input) async throws -> Operations.CodespacesStopForAuthenticatedUser.Output } /// Convenience overloads for operation inputs. @@ -502,12 +502,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)`. - public func codespaces_sol_list_hyphen_in_hyphen_organization( - path: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Path, - query: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output { - try await codespaces_sol_list_hyphen_in_hyphen_organization(Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input( + public func codespacesListInOrganization( + path: Operations.CodespacesListInOrganization.Input.Path, + query: Operations.CodespacesListInOrganization.Input.Query = .init(), + headers: Operations.CodespacesListInOrganization.Input.Headers = .init() + ) async throws -> Operations.CodespacesListInOrganization.Output { + try await codespacesListInOrganization(Operations.CodespacesListInOrganization.Input( path: path, query: query, headers: headers @@ -521,12 +521,12 @@ extension APIProtocol { /// - Remark: HTTP `PUT /orgs/{org}/codespaces/access`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)`. @available(*, deprecated) - public func codespaces_sol_set_hyphen_codespaces_hyphen_access( - path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body - ) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output { - try await codespaces_sol_set_hyphen_codespaces_hyphen_access(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input( + public func codespacesSetCodespacesAccess( + path: Operations.CodespacesSetCodespacesAccess.Input.Path, + headers: Operations.CodespacesSetCodespacesAccess.Input.Headers = .init(), + body: Operations.CodespacesSetCodespacesAccess.Input.Body + ) async throws -> Operations.CodespacesSetCodespacesAccess.Output { + try await codespacesSetCodespacesAccess(Operations.CodespacesSetCodespacesAccess.Input( path: path, headers: headers, body: body @@ -544,12 +544,12 @@ extension APIProtocol { /// - Remark: HTTP `POST /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)`. @available(*, deprecated) - public func codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users( - path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body - ) async throws -> Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output { - try await codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input( + public func codespacesSetCodespacesAccessUsers( + path: Operations.CodespacesSetCodespacesAccessUsers.Input.Path, + headers: Operations.CodespacesSetCodespacesAccessUsers.Input.Headers = .init(), + body: Operations.CodespacesSetCodespacesAccessUsers.Input.Body + ) async throws -> Operations.CodespacesSetCodespacesAccessUsers.Output { + try await codespacesSetCodespacesAccessUsers(Operations.CodespacesSetCodespacesAccessUsers.Input( path: path, headers: headers, body: body @@ -567,12 +567,12 @@ extension APIProtocol { /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)`. @available(*, deprecated) - public func codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users( - path: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers = .init(), - body: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body - ) async throws -> Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output { - try await codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users(Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input( + public func codespacesDeleteCodespacesAccessUsers( + path: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Path, + headers: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Headers = .init(), + body: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Body + ) async throws -> Operations.CodespacesDeleteCodespacesAccessUsers.Output { + try await codespacesDeleteCodespacesAccessUsers(Operations.CodespacesDeleteCodespacesAccessUsers.Input( path: path, headers: headers, body: body @@ -587,12 +587,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/get(codespaces/list-org-secrets)`. - public func codespaces_sol_list_hyphen_org_hyphen_secrets( - path: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output { - try await codespaces_sol_list_hyphen_org_hyphen_secrets(Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input( + public func codespacesListOrgSecrets( + path: Operations.CodespacesListOrgSecrets.Input.Path, + query: Operations.CodespacesListOrgSecrets.Input.Query = .init(), + headers: Operations.CodespacesListOrgSecrets.Input.Headers = .init() + ) async throws -> Operations.CodespacesListOrgSecrets.Output { + try await codespacesListOrgSecrets(Operations.CodespacesListOrgSecrets.Input( path: path, query: query, headers: headers @@ -605,11 +605,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/public-key/get(codespaces/get-org-public-key)`. - public func codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key( - path: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { - try await codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key(Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input( + public func codespacesGetOrgPublicKey( + path: Operations.CodespacesGetOrgPublicKey.Input.Path, + headers: Operations.CodespacesGetOrgPublicKey.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetOrgPublicKey.Output { + try await codespacesGetOrgPublicKey(Operations.CodespacesGetOrgPublicKey.Input( path: path, headers: headers )) @@ -622,11 +622,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/get(codespaces/get-org-secret)`. - public func codespaces_sol_get_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_get_hyphen_org_hyphen_secret(Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input( + public func codespacesGetOrgSecret( + path: Operations.CodespacesGetOrgSecret.Input.Path, + headers: Operations.CodespacesGetOrgSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetOrgSecret.Output { + try await codespacesGetOrgSecret(Operations.CodespacesGetOrgSecret.Input( path: path, headers: headers )) @@ -640,12 +640,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input( + public func codespacesCreateOrUpdateOrgSecret( + path: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body + ) async throws -> Operations.CodespacesCreateOrUpdateOrgSecret.Output { + try await codespacesCreateOrUpdateOrgSecret(Operations.CodespacesCreateOrUpdateOrgSecret.Input( path: path, headers: headers, body: body @@ -659,11 +659,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)`. - public func codespaces_sol_delete_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_delete_hyphen_org_hyphen_secret(Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input( + public func codespacesDeleteOrgSecret( + path: Operations.CodespacesDeleteOrgSecret.Input.Path, + headers: Operations.CodespacesDeleteOrgSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesDeleteOrgSecret.Output { + try await codespacesDeleteOrgSecret(Operations.CodespacesDeleteOrgSecret.Input( path: path, headers: headers )) @@ -677,12 +677,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)`. - public func codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func codespacesListSelectedReposForOrgSecret( + path: Operations.CodespacesListSelectedReposForOrgSecret.Input.Path, + query: Operations.CodespacesListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.CodespacesListSelectedReposForOrgSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesListSelectedReposForOrgSecret.Output { + try await codespacesListSelectedReposForOrgSecret(Operations.CodespacesListSelectedReposForOrgSecret.Input( path: path, query: query, headers: headers @@ -698,12 +698,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)`. - public func codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body - ) async throws -> Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret(Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input( + public func codespacesSetSelectedReposForOrgSecret( + path: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Path, + headers: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Headers = .init(), + body: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Body + ) async throws -> Operations.CodespacesSetSelectedReposForOrgSecret.Output { + try await codespacesSetSelectedReposForOrgSecret(Operations.CodespacesSetSelectedReposForOrgSecret.Input( path: path, headers: headers, body: body @@ -716,11 +716,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)`. - public func codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret(Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input( + public func codespacesAddSelectedRepoToOrgSecret( + path: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Path, + headers: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesAddSelectedRepoToOrgSecret.Output { + try await codespacesAddSelectedRepoToOrgSecret(Operations.CodespacesAddSelectedRepoToOrgSecret.Input( path: path, headers: headers )) @@ -735,11 +735,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)`. - public func codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret( - path: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output { - try await codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret(Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input( + public func codespacesRemoveSelectedRepoFromOrgSecret( + path: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Path, + headers: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output { + try await codespacesRemoveSelectedRepoFromOrgSecret(Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input( path: path, headers: headers )) @@ -752,12 +752,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)`. - public func codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org( - path: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - query: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output { - try await codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org(Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input( + public func codespacesGetCodespacesForUserInOrg( + path: Operations.CodespacesGetCodespacesForUserInOrg.Input.Path, + query: Operations.CodespacesGetCodespacesForUserInOrg.Input.Query = .init(), + headers: Operations.CodespacesGetCodespacesForUserInOrg.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetCodespacesForUserInOrg.Output { + try await codespacesGetCodespacesForUserInOrg(Operations.CodespacesGetCodespacesForUserInOrg.Input( path: path, query: query, headers: headers @@ -771,11 +771,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)`. - public func codespaces_sol_delete_hyphen_from_hyphen_organization( - path: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Output { - try await codespaces_sol_delete_hyphen_from_hyphen_organization(Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input( + public func codespacesDeleteFromOrganization( + path: Operations.CodespacesDeleteFromOrganization.Input.Path, + headers: Operations.CodespacesDeleteFromOrganization.Input.Headers = .init() + ) async throws -> Operations.CodespacesDeleteFromOrganization.Output { + try await codespacesDeleteFromOrganization(Operations.CodespacesDeleteFromOrganization.Input( path: path, headers: headers )) @@ -788,11 +788,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)`. - public func codespaces_sol_stop_hyphen_in_hyphen_organization( - path: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Path, - headers: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output { - try await codespaces_sol_stop_hyphen_in_hyphen_organization(Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input( + public func codespacesStopInOrganization( + path: Operations.CodespacesStopInOrganization.Input.Path, + headers: Operations.CodespacesStopInOrganization.Input.Headers = .init() + ) async throws -> Operations.CodespacesStopInOrganization.Output { + try await codespacesStopInOrganization(Operations.CodespacesStopInOrganization.Input( path: path, headers: headers )) @@ -805,12 +805,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesListInRepositoryForAuthenticatedUser( + path: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Path, + query: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesListInRepositoryForAuthenticatedUser.Output { + try await codespacesListInRepositoryForAuthenticatedUser(Operations.CodespacesListInRepositoryForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -824,12 +824,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesCreateWithRepoForAuthenticatedUser( + path: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output { + try await codespacesCreateWithRepoForAuthenticatedUser(Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -844,12 +844,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/devcontainers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesListDevcontainersInRepositoryForAuthenticatedUser( + path: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Path, + query: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output { + try await codespacesListDevcontainersInRepositoryForAuthenticatedUser(Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -863,12 +863,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/machines`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)`. - public func codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesRepoMachinesForAuthenticatedUser( + path: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Path, + query: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesRepoMachinesForAuthenticatedUser.Output { + try await codespacesRepoMachinesForAuthenticatedUser(Operations.CodespacesRepoMachinesForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -882,12 +882,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/new`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)`. - public func codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesPreFlightWithRepoForAuthenticatedUser( + path: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Path, + query: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output { + try await codespacesPreFlightWithRepoForAuthenticatedUser(Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input( path: path, query: query, headers: headers @@ -901,12 +901,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/permissions_check`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)`. - public func codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer( - path: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Path, - query: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Query, - headers: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output { - try await codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer(Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input( + public func codespacesCheckPermissionsForDevcontainer( + path: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Path, + query: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Query, + headers: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Headers = .init() + ) async throws -> Operations.CodespacesCheckPermissionsForDevcontainer.Output { + try await codespacesCheckPermissionsForDevcontainer(Operations.CodespacesCheckPermissionsForDevcontainer.Input( path: path, query: query, headers: headers @@ -921,12 +921,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/get(codespaces/list-repo-secrets)`. - public func codespaces_sol_list_hyphen_repo_hyphen_secrets( - path: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output { - try await codespaces_sol_list_hyphen_repo_hyphen_secrets(Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input( + public func codespacesListRepoSecrets( + path: Operations.CodespacesListRepoSecrets.Input.Path, + query: Operations.CodespacesListRepoSecrets.Input.Query = .init(), + headers: Operations.CodespacesListRepoSecrets.Input.Headers = .init() + ) async throws -> Operations.CodespacesListRepoSecrets.Output { + try await codespacesListRepoSecrets(Operations.CodespacesListRepoSecrets.Input( path: path, query: query, headers: headers @@ -941,11 +941,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/public-key/get(codespaces/get-repo-public-key)`. - public func codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key( - path: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output { - try await codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key(Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input( + public func codespacesGetRepoPublicKey( + path: Operations.CodespacesGetRepoPublicKey.Input.Path, + headers: Operations.CodespacesGetRepoPublicKey.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetRepoPublicKey.Output { + try await codespacesGetRepoPublicKey(Operations.CodespacesGetRepoPublicKey.Input( path: path, headers: headers )) @@ -958,11 +958,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/get(codespaces/get-repo-secret)`. - public func codespaces_sol_get_hyphen_repo_hyphen_secret( - path: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output { - try await codespaces_sol_get_hyphen_repo_hyphen_secret(Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input( + public func codespacesGetRepoSecret( + path: Operations.CodespacesGetRepoSecret.Input.Path, + headers: Operations.CodespacesGetRepoSecret.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetRepoSecret.Output { + try await codespacesGetRepoSecret(Operations.CodespacesGetRepoSecret.Input( path: path, headers: headers )) @@ -976,12 +976,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output { - try await codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input( + public func codespacesCreateOrUpdateRepoSecret( + path: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Body + ) async throws -> Operations.CodespacesCreateOrUpdateRepoSecret.Output { + try await codespacesCreateOrUpdateRepoSecret(Operations.CodespacesCreateOrUpdateRepoSecret.Input( path: path, headers: headers, body: body @@ -995,8 +995,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`. - public func codespaces_sol_delete_hyphen_repo_hyphen_secret(path: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input.Path) async throws -> Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Output { - try await codespaces_sol_delete_hyphen_repo_hyphen_secret(Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input(path: path)) + public func codespacesDeleteRepoSecret(path: Operations.CodespacesDeleteRepoSecret.Input.Path) async throws -> Operations.CodespacesDeleteRepoSecret.Output { + try await codespacesDeleteRepoSecret(Operations.CodespacesDeleteRepoSecret.Input(path: path)) } /// Create a codespace from a pull request /// @@ -1006,12 +1006,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesCreateWithPrForAuthenticatedUser( + path: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesCreateWithPrForAuthenticatedUser.Output { + try await codespacesCreateWithPrForAuthenticatedUser(Operations.CodespacesCreateWithPrForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -1025,11 +1025,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesListForAuthenticatedUser( + query: Operations.CodespacesListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesListForAuthenticatedUser.Output { + try await codespacesListForAuthenticatedUser(Operations.CodespacesListForAuthenticatedUser.Input( query: query, headers: headers )) @@ -1044,11 +1044,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesCreateForAuthenticatedUser( + headers: Operations.CodespacesCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesCreateForAuthenticatedUser.Output { + try await codespacesCreateForAuthenticatedUser(Operations.CodespacesCreateForAuthenticatedUser.Input( headers: headers, body: body )) @@ -1064,11 +1064,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/get(codespaces/list-secrets-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user( - query: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesListSecretsForAuthenticatedUser( + query: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesListSecretsForAuthenticatedUser.Output { + try await codespacesListSecretsForAuthenticatedUser(Operations.CodespacesListSecretsForAuthenticatedUser.Input( query: query, headers: headers )) @@ -1083,8 +1083,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/public-key/get(codespaces/get-public-key-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(headers: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) async throws -> Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input(headers: headers)) + public func codespacesGetPublicKeyForAuthenticatedUser(headers: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input.Headers = .init()) async throws -> Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output { + try await codespacesGetPublicKeyForAuthenticatedUser(Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input(headers: headers)) } /// Get a secret for the authenticated user /// @@ -1096,11 +1096,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/get(codespaces/get-secret-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesGetSecretForAuthenticatedUser( + path: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetSecretForAuthenticatedUser.Output { + try await codespacesGetSecretForAuthenticatedUser(Operations.CodespacesGetSecretForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1116,12 +1116,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)`. - public func codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesCreateOrUpdateSecretForAuthenticatedUser( + path: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output { + try await codespacesCreateOrUpdateSecretForAuthenticatedUser(Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -1137,8 +1137,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)`. - public func codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(path: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path) async throws -> Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input(path: path)) + public func codespacesDeleteSecretForAuthenticatedUser(path: Operations.CodespacesDeleteSecretForAuthenticatedUser.Input.Path) async throws -> Operations.CodespacesDeleteSecretForAuthenticatedUser.Output { + try await codespacesDeleteSecretForAuthenticatedUser(Operations.CodespacesDeleteSecretForAuthenticatedUser.Input(path: path)) } /// List selected repositories for a user secret /// @@ -1150,11 +1150,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)`. - public func codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesListRepositoriesForSecretForAuthenticatedUser( + path: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output { + try await codespacesListRepositoriesForSecretForAuthenticatedUser(Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1169,12 +1169,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)`. - public func codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesSetRepositoriesForSecretForAuthenticatedUser( + path: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Output { + try await codespacesSetRepositoriesForSecretForAuthenticatedUser(Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -1190,11 +1190,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)`. - public func codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesAddRepositoryForSecretForAuthenticatedUser( + path: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Output { + try await codespacesAddRepositoryForSecretForAuthenticatedUser(Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1209,11 +1209,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)`. - public func codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesRemoveRepositoryForSecretForAuthenticatedUser( + path: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Output { + try await codespacesRemoveRepositoryForSecretForAuthenticatedUser(Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1226,11 +1226,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesGetForAuthenticatedUser( + path: Operations.CodespacesGetForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetForAuthenticatedUser.Output { + try await codespacesGetForAuthenticatedUser(Operations.CodespacesGetForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1245,12 +1245,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)`. - public func codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil - ) async throws -> Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesUpdateForAuthenticatedUser( + path: Operations.CodespacesUpdateForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesUpdateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesUpdateForAuthenticatedUser.Input.Body? = nil + ) async throws -> Operations.CodespacesUpdateForAuthenticatedUser.Output { + try await codespacesUpdateForAuthenticatedUser(Operations.CodespacesUpdateForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -1264,11 +1264,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)`. - public func codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesDeleteForAuthenticatedUser( + path: Operations.CodespacesDeleteForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesDeleteForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesDeleteForAuthenticatedUser.Output { + try await codespacesDeleteForAuthenticatedUser(Operations.CodespacesDeleteForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1283,11 +1283,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/exports`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)`. - public func codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesExportForAuthenticatedUser( + path: Operations.CodespacesExportForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesExportForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesExportForAuthenticatedUser.Output { + try await codespacesExportForAuthenticatedUser(Operations.CodespacesExportForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1300,11 +1300,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/exports/{export_id}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)`. - public func codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesGetExportDetailsForAuthenticatedUser( + path: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output { + try await codespacesGetExportDetailsForAuthenticatedUser(Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1317,11 +1317,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/machines`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)`. - public func codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesCodespaceMachinesForAuthenticatedUser( + path: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output { + try await codespacesCodespaceMachinesForAuthenticatedUser(Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1338,12 +1338,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/publish`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)`. - public func codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesPublishForAuthenticatedUser( + path: Operations.CodespacesPublishForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesPublishForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesPublishForAuthenticatedUser.Input.Body + ) async throws -> Operations.CodespacesPublishForAuthenticatedUser.Output { + try await codespacesPublishForAuthenticatedUser(Operations.CodespacesPublishForAuthenticatedUser.Input( path: path, headers: headers, body: body @@ -1357,11 +1357,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/start`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)`. - public func codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesStartForAuthenticatedUser( + path: Operations.CodespacesStartForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesStartForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesStartForAuthenticatedUser.Output { + try await codespacesStartForAuthenticatedUser(Operations.CodespacesStartForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1374,11 +1374,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)`. - public func codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user( - path: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user(Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func codespacesStopForAuthenticatedUser( + path: Operations.CodespacesStopForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesStopForAuthenticatedUser.Input.Headers = .init() + ) async throws -> Operations.CodespacesStopForAuthenticatedUser.Output { + try await codespacesStopForAuthenticatedUser(Operations.CodespacesStopForAuthenticatedUser.Input( path: path, headers: headers )) @@ -1387,6 +1387,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -1402,7 +1411,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -1412,171 +1421,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1584,11 +1593,11 @@ public enum Components { /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -1597,25 +1606,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -1623,7 +1632,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -1633,30 +1642,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1695,9 +1704,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1712,7 +1721,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1731,34 +1740,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1768,142 +1777,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -1911,66 +1920,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -1981,7 +1990,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -2011,15 +2020,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -2027,97 +2036,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -2125,38 +2134,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -2170,47 +2179,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -2218,7 +2227,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -2226,10 +2235,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -2238,16 +2247,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -2255,7 +2264,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -2263,10 +2272,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -2275,424 +2284,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code Of Conduct /// /// - Remark: Generated from `#/components/schemas/code-of-conduct`. - public struct code_hyphen_of_hyphen_conduct: Codable, Hashable, Sendable { + public struct CodeOfConduct: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct/name`. @@ -2702,52 +2711,52 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct/body`. public var body: Swift.String? /// - Remark: Generated from `#/components/schemas/code-of-conduct/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConduct`. /// /// - Parameters: /// - key: /// - name: /// - url: /// - body: - /// - html_url: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String, body: Swift.String? = nil, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url self.body = body - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url case body - case html_url + case htmlUrl = "html_url" } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2755,21 +2764,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2777,27 +2786,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2807,21 +2816,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2829,21 +2838,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2851,21 +2860,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2873,21 +2882,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2895,62 +2904,62 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Minimal Repository /// /// - Remark: Generated from `#/components/schemas/minimal-repository`. - public struct minimal_hyphen_repository: Codable, Hashable, Sendable { + public struct MinimalRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/minimal-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/minimal-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/minimal-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/fork`. @@ -2958,121 +2967,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/git_url`. - public var git_url: Swift.String? + public var gitUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/ssh_url`. - public var ssh_url: Swift.String? + public var sshUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/clone_url`. - public var clone_url: Swift.String? + public var cloneUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/minimal-repository/svn_url`. - public var svn_url: Swift.String? + public var svnUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks_count`. - public var forks_count: Swift.Int? + public var forksCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/stargazers_count`. - public var stargazers_count: Swift.Int? + public var stargazersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers_count`. - public var watchers_count: Swift.Int? + public var watchersCount: Swift.Int? /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/minimal-repository/size`. public var size: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/default_branch`. - public var default_branch: Swift.String? + public var defaultBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues_count`. - public var open_issues_count: Swift.Int? + public var openIssuesCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_issues`. - public var has_issues: Swift.Bool? + public var hasIssues: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_projects`. - public var has_projects: Swift.Bool? + public var hasProjects: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_wiki`. - public var has_wiki: Swift.Bool? + public var hasWiki: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_pages`. - public var has_pages: Swift.Bool? + public var hasPages: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/archived`. public var archived: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/disabled`. @@ -3080,13 +3089,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/minimal-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/admin`. public var admin: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/maintain`. @@ -3097,7 +3106,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions/pull`. public var pull: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -3127,436 +3136,436 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/minimal-repository/permissions`. - public var permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.MinimalRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/role_name`. - public var role_name: Swift.String? + public var roleName: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/subscribers_count`. - public var subscribers_count: Swift.Int? + public var subscribersCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/network_count`. - public var network_count: Swift.Int? + public var networkCount: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? + public var codeOfConduct: Components.Schemas.CodeOfConduct? /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public struct licensePayload: Codable, Hashable, Sendable { + public struct LicensePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/minimal-repository/license/key`. public var key: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/minimal-repository/license/node_id`. - public var node_id: Swift.String? - /// Creates a new `licensePayload`. + public var nodeId: Swift.String? + /// Creates a new `LicensePayload`. /// /// - Parameters: /// - key: /// - name: - /// - spdx_id: + /// - spdxId: /// - url: - /// - node_id: + /// - nodeId: public init( key: Swift.String? = nil, name: Swift.String? = nil, - spdx_id: Swift.String? = nil, + spdxId: Swift.String? = nil, url: Swift.String? = nil, - node_id: Swift.String? = nil + nodeId: Swift.String? = nil ) { self.key = key self.name = name - self.spdx_id = spdx_id + self.spdxId = spdxId self.url = url - self.node_id = node_id + self.nodeId = nodeId } public enum CodingKeys: String, CodingKey { case key case name - case spdx_id + case spdxId = "spdx_id" case url - case node_id + case nodeId = "node_id" } } /// - Remark: Generated from `#/components/schemas/minimal-repository/license`. - public var license: Components.Schemas.minimal_hyphen_repository.licensePayload? + public var license: Components.Schemas.MinimalRepository.LicensePayload? /// - Remark: Generated from `#/components/schemas/minimal-repository/forks`. public var forks: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/open_issues`. - public var open_issues: Swift.Int? + public var openIssues: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/watchers`. public var watchers: Swift.Int? /// - Remark: Generated from `#/components/schemas/minimal-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/minimal-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? - /// Creates a new `minimal_hyphen_repository`. + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? + /// Creates a new `MinimalRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: /// - visibility: - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - role_name: - /// - temp_clone_token: - /// - delete_branch_on_merge: - /// - subscribers_count: - /// - network_count: - /// - code_of_conduct: + /// - roleName: + /// - tempCloneToken: + /// - deleteBranchOnMerge: + /// - subscribersCount: + /// - networkCount: + /// - codeOfConduct: /// - license: /// - forks: - /// - open_issues: + /// - openIssues: /// - watchers: - /// - allow_forking: - /// - web_commit_signoff_required: - /// - security_and_analysis: + /// - allowForking: + /// - webCommitSignoffRequired: + /// - securityAndAnalysis: public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String? = nil, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String? = nil, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String? = nil, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String? = nil, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String? = nil, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String? = nil, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String? = nil, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String? = nil, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int? = nil, - stargazers_count: Swift.Int? = nil, - watchers_count: Swift.Int? = nil, + forksCount: Swift.Int? = nil, + stargazersCount: Swift.Int? = nil, + watchersCount: Swift.Int? = nil, size: Swift.Int? = nil, - default_branch: Swift.String? = nil, - open_issues_count: Swift.Int? = nil, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String? = nil, + openIssuesCount: Swift.Int? = nil, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool? = nil, - has_projects: Swift.Bool? = nil, - has_wiki: Swift.Bool? = nil, - has_pages: Swift.Bool? = nil, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool? = nil, + hasProjects: Swift.Bool? = nil, + hasWiki: Swift.Bool? = nil, + hasPages: Swift.Bool? = nil, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool? = nil, disabled: Swift.Bool? = nil, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - permissions: Components.Schemas.minimal_hyphen_repository.permissionsPayload? = nil, - role_name: Swift.String? = nil, - temp_clone_token: Swift.String? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - subscribers_count: Swift.Int? = nil, - network_count: Swift.Int? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct? = nil, - license: Components.Schemas.minimal_hyphen_repository.licensePayload? = nil, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + permissions: Components.Schemas.MinimalRepository.PermissionsPayload? = nil, + roleName: Swift.String? = nil, + tempCloneToken: Swift.String? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + subscribersCount: Swift.Int? = nil, + networkCount: Swift.Int? = nil, + codeOfConduct: Components.Schemas.CodeOfConduct? = nil, + license: Components.Schemas.MinimalRepository.LicensePayload? = nil, forks: Swift.Int? = nil, - open_issues: Swift.Int? = nil, + openIssues: Swift.Int? = nil, watchers: Swift.Int? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.role_name = role_name - self.temp_clone_token = temp_clone_token - self.delete_branch_on_merge = delete_branch_on_merge - self.subscribers_count = subscribers_count - self.network_count = network_count - self.code_of_conduct = code_of_conduct + self.roleName = roleName + self.tempCloneToken = tempCloneToken + self.deleteBranchOnMerge = deleteBranchOnMerge + self.subscribersCount = subscribersCount + self.networkCount = networkCount + self.codeOfConduct = codeOfConduct self.license = license self.forks = forks - self.open_issues = open_issues + self.openIssues = openIssues self.watchers = watchers - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.security_and_analysis = security_and_analysis + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.securityAndAnalysis = securityAndAnalysis } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case role_name - case temp_clone_token - case delete_branch_on_merge - case subscribers_count - case network_count - case code_of_conduct + case roleName = "role_name" + case tempCloneToken = "temp_clone_token" + case deleteBranchOnMerge = "delete_branch_on_merge" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" + case codeOfConduct = "code_of_conduct" case license case forks - case open_issues + case openIssues = "open_issues" case watchers - case allow_forking - case web_commit_signoff_required - case security_and_analysis + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case securityAndAnalysis = "security_and_analysis" } } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. - public struct empty_hyphen_object: Codable, Hashable, Sendable { - /// Creates a new `empty_hyphen_object`. + public struct EmptyObject: Codable, Hashable, Sendable { + /// Creates a new `EmptyObject`. public init() {} public init(from decoder: any Decoder) throws { try decoder.ensureNoAdditionalProperties(knownKeys: []) @@ -3565,7 +3574,7 @@ public enum Components { /// A description of the machine powering a codespace. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine`. - public struct nullable_hyphen_codespace_hyphen_machine: Codable, Hashable, Sendable { + public struct NullableCodespaceMachine: Codable, Hashable, Sendable { /// The name of the machine. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/name`. @@ -3573,19 +3582,19 @@ public enum Components { /// The display name of the machine includes cores, memory, and storage. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/display_name`. - public var display_name: Swift.String + public var displayName: Swift.String /// The operating system of the machine. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/operating_system`. - public var operating_system: Swift.String + public var operatingSystem: Swift.String /// How much storage is available to the codespace. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/storage_in_bytes`. - public var storage_in_bytes: Swift.Int + public var storageInBytes: Swift.Int /// How much memory is available to the codespace. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/memory_in_bytes`. - public var memory_in_bytes: Swift.Int + public var memoryInBytes: Swift.Int /// How many cores are available to the codespace. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/cpus`. @@ -3593,56 +3602,56 @@ public enum Components { /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/prebuild_availability`. - @frozen public enum prebuild_availabilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrebuildAvailabilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case ready = "ready" - case in_progress = "in_progress" + case inProgress = "in_progress" } /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// /// - Remark: Generated from `#/components/schemas/nullable-codespace-machine/prebuild_availability`. - public var prebuild_availability: Components.Schemas.nullable_hyphen_codespace_hyphen_machine.prebuild_availabilityPayload? - /// Creates a new `nullable_hyphen_codespace_hyphen_machine`. + public var prebuildAvailability: Components.Schemas.NullableCodespaceMachine.PrebuildAvailabilityPayload? + /// Creates a new `NullableCodespaceMachine`. /// /// - Parameters: /// - name: The name of the machine. - /// - display_name: The display name of the machine includes cores, memory, and storage. - /// - operating_system: The operating system of the machine. - /// - storage_in_bytes: How much storage is available to the codespace. - /// - memory_in_bytes: How much memory is available to the codespace. + /// - displayName: The display name of the machine includes cores, memory, and storage. + /// - operatingSystem: The operating system of the machine. + /// - storageInBytes: How much storage is available to the codespace. + /// - memoryInBytes: How much memory is available to the codespace. /// - cpus: How many cores are available to the codespace. - /// - prebuild_availability: Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. + /// - prebuildAvailability: Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. public init( name: Swift.String, - display_name: Swift.String, - operating_system: Swift.String, - storage_in_bytes: Swift.Int, - memory_in_bytes: Swift.Int, + displayName: Swift.String, + operatingSystem: Swift.String, + storageInBytes: Swift.Int, + memoryInBytes: Swift.Int, cpus: Swift.Int, - prebuild_availability: Components.Schemas.nullable_hyphen_codespace_hyphen_machine.prebuild_availabilityPayload? = nil + prebuildAvailability: Components.Schemas.NullableCodespaceMachine.PrebuildAvailabilityPayload? = nil ) { self.name = name - self.display_name = display_name - self.operating_system = operating_system - self.storage_in_bytes = storage_in_bytes - self.memory_in_bytes = memory_in_bytes + self.displayName = displayName + self.operatingSystem = operatingSystem + self.storageInBytes = storageInBytes + self.memoryInBytes = memoryInBytes self.cpus = cpus - self.prebuild_availability = prebuild_availability + self.prebuildAvailability = prebuildAvailability } public enum CodingKeys: String, CodingKey { case name - case display_name - case operating_system - case storage_in_bytes - case memory_in_bytes + case displayName = "display_name" + case operatingSystem = "operating_system" + case storageInBytes = "storage_in_bytes" + case memoryInBytes = "memory_in_bytes" case cpus - case prebuild_availability + case prebuildAvailability = "prebuild_availability" } } /// A codespace. /// /// - Remark: Generated from `#/components/schemas/codespace`. - public struct codespace: Codable, Hashable, Sendable { + public struct Codespace: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/codespace/id`. public var id: Swift.Int64 /// Automatically generated name of this codespace. @@ -3652,61 +3661,61 @@ public enum Components { /// Display name for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// UUID identifying this codespace's environment. /// /// - Remark: Generated from `#/components/schemas/codespace/environment_id`. - public var environment_id: Swift.String? + public var environmentId: Swift.String? /// - Remark: Generated from `#/components/schemas/codespace/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/codespace/billable_owner`. - public var billable_owner: Components.Schemas.simple_hyphen_user + public var billableOwner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/codespace/repository`. - public var repository: Components.Schemas.minimal_hyphen_repository + public var repository: Components.Schemas.MinimalRepository /// - Remark: Generated from `#/components/schemas/codespace/machine`. - public var machine: Components.Schemas.nullable_hyphen_codespace_hyphen_machine? + public var machine: Components.Schemas.NullableCodespaceMachine? /// Path to devcontainer.json from repo root used to create Codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Whether the codespace was created from a prebuild. /// /// - Remark: Generated from `#/components/schemas/codespace/prebuild`. public var prebuild: Swift.Bool? /// - Remark: Generated from `#/components/schemas/codespace/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/codespace/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Last known time this codespace was started. /// /// - Remark: Generated from `#/components/schemas/codespace/last_used_at`. - public var last_used_at: Foundation.Date + public var lastUsedAt: Foundation.Date /// State of this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { - case Unknown = "Unknown" - case Created = "Created" - case Queued = "Queued" - case Provisioning = "Provisioning" - case Available = "Available" - case Awaiting = "Awaiting" - case Unavailable = "Unavailable" - case Deleted = "Deleted" - case Moved = "Moved" - case Shutdown = "Shutdown" - case Archived = "Archived" - case Starting = "Starting" - case ShuttingDown = "ShuttingDown" - case Failed = "Failed" - case Exporting = "Exporting" - case Updating = "Updating" - case Rebuilding = "Rebuilding" + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { + case unknown = "Unknown" + case created = "Created" + case queued = "Queued" + case provisioning = "Provisioning" + case available = "Available" + case awaiting = "Awaiting" + case unavailable = "Unavailable" + case deleted = "Deleted" + case moved = "Moved" + case shutdown = "Shutdown" + case archived = "Archived" + case starting = "Starting" + case shuttingDown = "ShuttingDown" + case failed = "Failed" + case exporting = "Exporting" + case updating = "Updating" + case rebuilding = "Rebuilding" } /// State of this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/state`. - public var state: Components.Schemas.codespace.statePayload + public var state: Components.Schemas.Codespace.StatePayload /// API URL for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/url`. @@ -3714,7 +3723,7 @@ public enum Components { /// Details about the codespace's git repository. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status`. - public struct git_statusPayload: Codable, Hashable, Sendable { + public struct GitStatusPayload: Codable, Hashable, Sendable { /// The number of commits the local repository is ahead of the remote. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status/ahead`. @@ -3726,275 +3735,275 @@ public enum Components { /// Whether the local repository has unpushed changes. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status/has_unpushed_changes`. - public var has_unpushed_changes: Swift.Bool? + public var hasUnpushedChanges: Swift.Bool? /// Whether the local repository has uncommitted changes. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status/has_uncommitted_changes`. - public var has_uncommitted_changes: Swift.Bool? + public var hasUncommittedChanges: Swift.Bool? /// The current branch (or SHA if in detached HEAD state) of the local repository. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status/ref`. public var ref: Swift.String? - /// Creates a new `git_statusPayload`. + /// Creates a new `GitStatusPayload`. /// /// - Parameters: /// - ahead: The number of commits the local repository is ahead of the remote. /// - behind: The number of commits the local repository is behind the remote. - /// - has_unpushed_changes: Whether the local repository has unpushed changes. - /// - has_uncommitted_changes: Whether the local repository has uncommitted changes. + /// - hasUnpushedChanges: Whether the local repository has unpushed changes. + /// - hasUncommittedChanges: Whether the local repository has uncommitted changes. /// - ref: The current branch (or SHA if in detached HEAD state) of the local repository. public init( ahead: Swift.Int? = nil, behind: Swift.Int? = nil, - has_unpushed_changes: Swift.Bool? = nil, - has_uncommitted_changes: Swift.Bool? = nil, + hasUnpushedChanges: Swift.Bool? = nil, + hasUncommittedChanges: Swift.Bool? = nil, ref: Swift.String? = nil ) { self.ahead = ahead self.behind = behind - self.has_unpushed_changes = has_unpushed_changes - self.has_uncommitted_changes = has_uncommitted_changes + self.hasUnpushedChanges = hasUnpushedChanges + self.hasUncommittedChanges = hasUncommittedChanges self.ref = ref } public enum CodingKeys: String, CodingKey { case ahead case behind - case has_unpushed_changes - case has_uncommitted_changes + case hasUnpushedChanges = "has_unpushed_changes" + case hasUncommittedChanges = "has_uncommitted_changes" case ref } } /// Details about the codespace's git repository. /// /// - Remark: Generated from `#/components/schemas/codespace/git_status`. - public var git_status: Components.Schemas.codespace.git_statusPayload + public var gitStatus: Components.Schemas.Codespace.GitStatusPayload /// The initally assigned location of a new codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/location`. - @frozen public enum locationPayload: String, Codable, Hashable, Sendable { - case EastUs = "EastUs" - case SouthEastAsia = "SouthEastAsia" - case WestEurope = "WestEurope" - case WestUs2 = "WestUs2" + @frozen public enum LocationPayload: String, Codable, Hashable, Sendable, CaseIterable { + case eastUs = "EastUs" + case southEastAsia = "SouthEastAsia" + case westEurope = "WestEurope" + case westUs2 = "WestUs2" } /// The initally assigned location of a new codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/location`. - public var location: Components.Schemas.codespace.locationPayload + public var location: Components.Schemas.Codespace.LocationPayload /// The number of minutes of inactivity after which this codespace will be automatically stopped. /// /// - Remark: Generated from `#/components/schemas/codespace/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// URL to access this codespace on the web. /// /// - Remark: Generated from `#/components/schemas/codespace/web_url`. - public var web_url: Swift.String + public var webUrl: Swift.String /// API URL to access available alternate machine types for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/machines_url`. - public var machines_url: Swift.String + public var machinesUrl: Swift.String /// API URL to start this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/start_url`. - public var start_url: Swift.String + public var startUrl: Swift.String /// API URL to stop this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace/stop_url`. - public var stop_url: Swift.String + public var stopUrl: Swift.String /// API URL to publish this codespace to a new repository. /// /// - Remark: Generated from `#/components/schemas/codespace/publish_url`. - public var publish_url: Swift.String? + public var publishUrl: Swift.String? /// API URL for the Pull Request associated with this codespace, if any. /// /// - Remark: Generated from `#/components/schemas/codespace/pulls_url`. - public var pulls_url: Swift.String? + public var pullsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/codespace/recent_folders`. - public var recent_folders: [Swift.String] + public var recentFolders: [Swift.String] /// - Remark: Generated from `#/components/schemas/codespace/runtime_constraints`. - public struct runtime_constraintsPayload: Codable, Hashable, Sendable { + public struct RuntimeConstraintsPayload: Codable, Hashable, Sendable { /// The privacy settings a user can select from when forwarding a port. /// /// - Remark: Generated from `#/components/schemas/codespace/runtime_constraints/allowed_port_privacy_settings`. - public var allowed_port_privacy_settings: [Swift.String]? - /// Creates a new `runtime_constraintsPayload`. + public var allowedPortPrivacySettings: [Swift.String]? + /// Creates a new `RuntimeConstraintsPayload`. /// /// - Parameters: - /// - allowed_port_privacy_settings: The privacy settings a user can select from when forwarding a port. - public init(allowed_port_privacy_settings: [Swift.String]? = nil) { - self.allowed_port_privacy_settings = allowed_port_privacy_settings + /// - allowedPortPrivacySettings: The privacy settings a user can select from when forwarding a port. + public init(allowedPortPrivacySettings: [Swift.String]? = nil) { + self.allowedPortPrivacySettings = allowedPortPrivacySettings } public enum CodingKeys: String, CodingKey { - case allowed_port_privacy_settings + case allowedPortPrivacySettings = "allowed_port_privacy_settings" } } /// - Remark: Generated from `#/components/schemas/codespace/runtime_constraints`. - public var runtime_constraints: Components.Schemas.codespace.runtime_constraintsPayload? + public var runtimeConstraints: Components.Schemas.Codespace.RuntimeConstraintsPayload? /// Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. /// /// - Remark: Generated from `#/components/schemas/codespace/pending_operation`. - public var pending_operation: Swift.Bool? + public var pendingOperation: Swift.Bool? /// Text to show user when codespace is disabled by a pending operation /// /// - Remark: Generated from `#/components/schemas/codespace/pending_operation_disabled_reason`. - public var pending_operation_disabled_reason: Swift.String? + public var pendingOperationDisabledReason: Swift.String? /// Text to show user when codespace idle timeout minutes has been overriden by an organization policy /// /// - Remark: Generated from `#/components/schemas/codespace/idle_timeout_notice`. - public var idle_timeout_notice: Swift.String? + public var idleTimeoutNotice: Swift.String? /// Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). /// /// - Remark: Generated from `#/components/schemas/codespace/retention_period_minutes`. - public var retention_period_minutes: Swift.Int? + public var retentionPeriodMinutes: Swift.Int? /// When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" /// /// - Remark: Generated from `#/components/schemas/codespace/retention_expires_at`. - public var retention_expires_at: Foundation.Date? + public var retentionExpiresAt: Foundation.Date? /// The text to display to a user when a codespace has been stopped for a potentially actionable reason. /// /// - Remark: Generated from `#/components/schemas/codespace/last_known_stop_notice`. - public var last_known_stop_notice: Swift.String? - /// Creates a new `codespace`. + public var lastKnownStopNotice: Swift.String? + /// Creates a new `Codespace`. /// /// - Parameters: /// - id: /// - name: Automatically generated name of this codespace. - /// - display_name: Display name for this codespace. - /// - environment_id: UUID identifying this codespace's environment. + /// - displayName: Display name for this codespace. + /// - environmentId: UUID identifying this codespace's environment. /// - owner: - /// - billable_owner: + /// - billableOwner: /// - repository: /// - machine: - /// - devcontainer_path: Path to devcontainer.json from repo root used to create Codespace. + /// - devcontainerPath: Path to devcontainer.json from repo root used to create Codespace. /// - prebuild: Whether the codespace was created from a prebuild. - /// - created_at: - /// - updated_at: - /// - last_used_at: Last known time this codespace was started. + /// - createdAt: + /// - updatedAt: + /// - lastUsedAt: Last known time this codespace was started. /// - state: State of this codespace. /// - url: API URL for this codespace. - /// - git_status: Details about the codespace's git repository. + /// - gitStatus: Details about the codespace's git repository. /// - location: The initally assigned location of a new codespace. - /// - idle_timeout_minutes: The number of minutes of inactivity after which this codespace will be automatically stopped. - /// - web_url: URL to access this codespace on the web. - /// - machines_url: API URL to access available alternate machine types for this codespace. - /// - start_url: API URL to start this codespace. - /// - stop_url: API URL to stop this codespace. - /// - publish_url: API URL to publish this codespace to a new repository. - /// - pulls_url: API URL for the Pull Request associated with this codespace, if any. - /// - recent_folders: - /// - runtime_constraints: - /// - pending_operation: Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. - /// - pending_operation_disabled_reason: Text to show user when codespace is disabled by a pending operation - /// - idle_timeout_notice: Text to show user when codespace idle timeout minutes has been overriden by an organization policy - /// - retention_period_minutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). - /// - retention_expires_at: When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" - /// - last_known_stop_notice: The text to display to a user when a codespace has been stopped for a potentially actionable reason. + /// - idleTimeoutMinutes: The number of minutes of inactivity after which this codespace will be automatically stopped. + /// - webUrl: URL to access this codespace on the web. + /// - machinesUrl: API URL to access available alternate machine types for this codespace. + /// - startUrl: API URL to start this codespace. + /// - stopUrl: API URL to stop this codespace. + /// - publishUrl: API URL to publish this codespace to a new repository. + /// - pullsUrl: API URL for the Pull Request associated with this codespace, if any. + /// - recentFolders: + /// - runtimeConstraints: + /// - pendingOperation: Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. + /// - pendingOperationDisabledReason: Text to show user when codespace is disabled by a pending operation + /// - idleTimeoutNotice: Text to show user when codespace idle timeout minutes has been overriden by an organization policy + /// - retentionPeriodMinutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). + /// - retentionExpiresAt: When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" + /// - lastKnownStopNotice: The text to display to a user when a codespace has been stopped for a potentially actionable reason. public init( id: Swift.Int64, name: Swift.String, - display_name: Swift.String? = nil, - environment_id: Swift.String? = nil, - owner: Components.Schemas.simple_hyphen_user, - billable_owner: Components.Schemas.simple_hyphen_user, - repository: Components.Schemas.minimal_hyphen_repository, - machine: Components.Schemas.nullable_hyphen_codespace_hyphen_machine? = nil, - devcontainer_path: Swift.String? = nil, + displayName: Swift.String? = nil, + environmentId: Swift.String? = nil, + owner: Components.Schemas.SimpleUser, + billableOwner: Components.Schemas.SimpleUser, + repository: Components.Schemas.MinimalRepository, + machine: Components.Schemas.NullableCodespaceMachine? = nil, + devcontainerPath: Swift.String? = nil, prebuild: Swift.Bool? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - last_used_at: Foundation.Date, - state: Components.Schemas.codespace.statePayload, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + lastUsedAt: Foundation.Date, + state: Components.Schemas.Codespace.StatePayload, url: Swift.String, - git_status: Components.Schemas.codespace.git_statusPayload, - location: Components.Schemas.codespace.locationPayload, - idle_timeout_minutes: Swift.Int? = nil, - web_url: Swift.String, - machines_url: Swift.String, - start_url: Swift.String, - stop_url: Swift.String, - publish_url: Swift.String? = nil, - pulls_url: Swift.String? = nil, - recent_folders: [Swift.String], - runtime_constraints: Components.Schemas.codespace.runtime_constraintsPayload? = nil, - pending_operation: Swift.Bool? = nil, - pending_operation_disabled_reason: Swift.String? = nil, - idle_timeout_notice: Swift.String? = nil, - retention_period_minutes: Swift.Int? = nil, - retention_expires_at: Foundation.Date? = nil, - last_known_stop_notice: Swift.String? = nil + gitStatus: Components.Schemas.Codespace.GitStatusPayload, + location: Components.Schemas.Codespace.LocationPayload, + idleTimeoutMinutes: Swift.Int? = nil, + webUrl: Swift.String, + machinesUrl: Swift.String, + startUrl: Swift.String, + stopUrl: Swift.String, + publishUrl: Swift.String? = nil, + pullsUrl: Swift.String? = nil, + recentFolders: [Swift.String], + runtimeConstraints: Components.Schemas.Codespace.RuntimeConstraintsPayload? = nil, + pendingOperation: Swift.Bool? = nil, + pendingOperationDisabledReason: Swift.String? = nil, + idleTimeoutNotice: Swift.String? = nil, + retentionPeriodMinutes: Swift.Int? = nil, + retentionExpiresAt: Foundation.Date? = nil, + lastKnownStopNotice: Swift.String? = nil ) { self.id = id self.name = name - self.display_name = display_name - self.environment_id = environment_id + self.displayName = displayName + self.environmentId = environmentId self.owner = owner - self.billable_owner = billable_owner + self.billableOwner = billableOwner self.repository = repository self.machine = machine - self.devcontainer_path = devcontainer_path + self.devcontainerPath = devcontainerPath self.prebuild = prebuild - self.created_at = created_at - self.updated_at = updated_at - self.last_used_at = last_used_at + self.createdAt = createdAt + self.updatedAt = updatedAt + self.lastUsedAt = lastUsedAt self.state = state self.url = url - self.git_status = git_status + self.gitStatus = gitStatus self.location = location - self.idle_timeout_minutes = idle_timeout_minutes - self.web_url = web_url - self.machines_url = machines_url - self.start_url = start_url - self.stop_url = stop_url - self.publish_url = publish_url - self.pulls_url = pulls_url - self.recent_folders = recent_folders - self.runtime_constraints = runtime_constraints - self.pending_operation = pending_operation - self.pending_operation_disabled_reason = pending_operation_disabled_reason - self.idle_timeout_notice = idle_timeout_notice - self.retention_period_minutes = retention_period_minutes - self.retention_expires_at = retention_expires_at - self.last_known_stop_notice = last_known_stop_notice + self.idleTimeoutMinutes = idleTimeoutMinutes + self.webUrl = webUrl + self.machinesUrl = machinesUrl + self.startUrl = startUrl + self.stopUrl = stopUrl + self.publishUrl = publishUrl + self.pullsUrl = pullsUrl + self.recentFolders = recentFolders + self.runtimeConstraints = runtimeConstraints + self.pendingOperation = pendingOperation + self.pendingOperationDisabledReason = pendingOperationDisabledReason + self.idleTimeoutNotice = idleTimeoutNotice + self.retentionPeriodMinutes = retentionPeriodMinutes + self.retentionExpiresAt = retentionExpiresAt + self.lastKnownStopNotice = lastKnownStopNotice } public enum CodingKeys: String, CodingKey { case id case name - case display_name - case environment_id + case displayName = "display_name" + case environmentId = "environment_id" case owner - case billable_owner + case billableOwner = "billable_owner" case repository case machine - case devcontainer_path + case devcontainerPath = "devcontainer_path" case prebuild - case created_at - case updated_at - case last_used_at + case createdAt = "created_at" + case updatedAt = "updated_at" + case lastUsedAt = "last_used_at" case state case url - case git_status + case gitStatus = "git_status" case location - case idle_timeout_minutes - case web_url - case machines_url - case start_url - case stop_url - case publish_url - case pulls_url - case recent_folders - case runtime_constraints - case pending_operation - case pending_operation_disabled_reason - case idle_timeout_notice - case retention_period_minutes - case retention_expires_at - case last_known_stop_notice + case idleTimeoutMinutes = "idle_timeout_minutes" + case webUrl = "web_url" + case machinesUrl = "machines_url" + case startUrl = "start_url" + case stopUrl = "stop_url" + case publishUrl = "publish_url" + case pullsUrl = "pulls_url" + case recentFolders = "recent_folders" + case runtimeConstraints = "runtime_constraints" + case pendingOperation = "pending_operation" + case pendingOperationDisabledReason = "pending_operation_disabled_reason" + case idleTimeoutNotice = "idle_timeout_notice" + case retentionPeriodMinutes = "retention_period_minutes" + case retentionExpiresAt = "retention_expires_at" + case lastKnownStopNotice = "last_known_stop_notice" } } /// Secrets for a GitHub Codespace. /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret`. - public struct codespaces_hyphen_org_hyphen_secret: Codable, Hashable, Sendable { + public struct CodespacesOrgSecret: Codable, Hashable, Sendable { /// The name of the secret /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/name`. @@ -4002,15 +4011,15 @@ public enum Components { /// The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The type of repositories in the organization that the secret is visible to /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -4018,48 +4027,48 @@ public enum Components { /// The type of repositories in the organization that the secret is visible to /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/visibility`. - public var visibility: Components.Schemas.codespaces_hyphen_org_hyphen_secret.visibilityPayload + public var visibility: Components.Schemas.CodespacesOrgSecret.VisibilityPayload /// The API URL at which the list of repositories this secret is visible to can be retrieved /// /// - Remark: Generated from `#/components/schemas/codespaces-org-secret/selected_repositories_url`. - public var selected_repositories_url: Swift.String? - /// Creates a new `codespaces_hyphen_org_hyphen_secret`. + public var selectedRepositoriesUrl: Swift.String? + /// Creates a new `CodespacesOrgSecret`. /// /// - Parameters: /// - name: The name of the secret - /// - created_at: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// - visibility: The type of repositories in the organization that the secret is visible to - /// - selected_repositories_url: The API URL at which the list of repositories this secret is visible to can be retrieved + /// - selectedRepositoriesUrl: The API URL at which the list of repositories this secret is visible to can be retrieved public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - visibility: Components.Schemas.codespaces_hyphen_org_hyphen_secret.visibilityPayload, - selected_repositories_url: Swift.String? = nil + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + visibility: Components.Schemas.CodespacesOrgSecret.VisibilityPayload, + selectedRepositoriesUrl: Swift.String? = nil ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.visibility = visibility - self.selected_repositories_url = selected_repositories_url + self.selectedRepositoriesUrl = selectedRepositoriesUrl } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case visibility - case selected_repositories_url + case selectedRepositoriesUrl = "selected_repositories_url" } } /// The public key used for setting Codespaces secrets. /// /// - Remark: Generated from `#/components/schemas/codespaces-public-key`. - public struct codespaces_hyphen_public_hyphen_key: Codable, Hashable, Sendable { + public struct CodespacesPublicKey: Codable, Hashable, Sendable { /// The identifier for the key. /// /// - Remark: Generated from `#/components/schemas/codespaces-public-key/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// The Base64 encoded public key. /// /// - Remark: Generated from `#/components/schemas/codespaces-public-key/key`. @@ -4071,62 +4080,62 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/codespaces-public-key/title`. public var title: Swift.String? /// - Remark: Generated from `#/components/schemas/codespaces-public-key/created_at`. - public var created_at: Swift.String? - /// Creates a new `codespaces_hyphen_public_hyphen_key`. + public var createdAt: Swift.String? + /// Creates a new `CodespacesPublicKey`. /// /// - Parameters: - /// - key_id: The identifier for the key. + /// - keyId: The identifier for the key. /// - key: The Base64 encoded public key. /// - id: /// - url: /// - title: - /// - created_at: + /// - createdAt: public init( - key_id: Swift.String, + keyId: Swift.String, key: Swift.String, id: Swift.Int? = nil, url: Swift.String? = nil, title: Swift.String? = nil, - created_at: Swift.String? = nil + createdAt: Swift.String? = nil ) { - self.key_id = key_id + self.keyId = keyId self.key = key self.id = id self.url = url self.title = title - self.created_at = created_at + self.createdAt = createdAt } public enum CodingKeys: String, CodingKey { - case key_id + case keyId = "key_id" case key case id case url case title - case created_at + case createdAt = "created_at" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-repository`. - public struct nullable_hyphen_repository: Codable, Hashable, Sendable { + public struct NullableRepository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/pull`. @@ -4137,7 +4146,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4167,15 +4176,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.NullableRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/fork`. @@ -4183,97 +4192,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/size`. @@ -4281,38 +4290,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/archived`. @@ -4326,47 +4335,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/nullable-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -4374,7 +4383,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -4382,10 +4391,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -4394,16 +4403,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -4411,7 +4420,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -4419,10 +4428,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -4431,424 +4440,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/nullable-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `nullable_hyphen_repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `NullableRepository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.NullableRepository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code of Conduct Simple /// /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple`. - public struct code_hyphen_of_hyphen_conduct_hyphen_simple: Codable, Hashable, Sendable { + public struct CodeOfConductSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/key`. @@ -4856,50 +4865,50 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConductSimple`. /// /// - Parameters: /// - url: /// - key: /// - name: - /// - html_url: + /// - htmlUrl: public init( url: Swift.String, key: Swift.String, name: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.url = url self.key = key self.name = name - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case url case key case name - case html_url + case htmlUrl = "html_url" } } /// Full Repository /// /// - Remark: Generated from `#/components/schemas/full-repository`. - public struct full_hyphen_repository: Codable, Hashable, Sendable { + public struct FullRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/full-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/full-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/fork`. @@ -4907,121 +4916,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/full-repository/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/full-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/has_discussions`. - public var has_discussions: Swift.Bool + public var hasDiscussions: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/archived`. public var archived: Swift.Bool /// Returns whether or not this repository disabled. @@ -5033,13 +5042,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/pushed_at`. - public var pushed_at: Foundation.Date + public var pushedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/permissions/maintain`. @@ -5050,7 +5059,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/permissions/pull`. public var pull: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -5080,34 +5089,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public var permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.FullRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/template_repository`. - public var template_repository: Components.Schemas.nullable_hyphen_repository? + public var templateRepository: Components.Schemas.NullableRepository? /// - Remark: Generated from `#/components/schemas/full-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/use_squash_pr_title_as_default`. - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -5115,7 +5124,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -5123,10 +5132,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -5135,16 +5144,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -5152,7 +5161,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -5160,10 +5169,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -5172,46 +5181,46 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_count`. - public var subscribers_count: Swift.Int + public var subscribersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/network_count`. - public var network_count: Swift.Int + public var networkCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/full-repository/organization`. - public var organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var organization: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/full-repository/parent`. - public var parent: Components.Schemas.repository? + public var parent: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/source`. - public var source: Components.Schemas.repository? + public var source: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers`. public var watchers: Swift.Int /// Whether anonymous git access is allowed. /// /// - Remark: Generated from `#/components/schemas/full-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? + public var anonymousAccessEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? + public var codeOfConduct: Components.Schemas.CodeOfConductSimple? /// - Remark: Generated from `#/components/schemas/full-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public struct custom_propertiesPayload: Codable, Hashable, Sendable { + public struct CustomPropertiesPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `custom_propertiesPayload`. + /// Creates a new `CustomPropertiesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -5228,432 +5237,432 @@ public enum Components { /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public var custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? - /// Creates a new `full_hyphen_repository`. + public var customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? + /// Creates a new `FullRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - allow_rebase_merge: - /// - template_repository: - /// - temp_clone_token: - /// - allow_squash_merge: - /// - allow_auto_merge: - /// - delete_branch_on_merge: - /// - allow_merge_commit: - /// - allow_update_branch: - /// - use_squash_pr_title_as_default: - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_forking: - /// - web_commit_signoff_required: - /// - subscribers_count: - /// - network_count: + /// - allowRebaseMerge: + /// - templateRepository: + /// - tempCloneToken: + /// - allowSquashMerge: + /// - allowAutoMerge: + /// - deleteBranchOnMerge: + /// - allowMergeCommit: + /// - allowUpdateBranch: + /// - useSquashPrTitleAsDefault: + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowForking: + /// - webCommitSignoffRequired: + /// - subscribersCount: + /// - networkCount: /// - license: /// - organization: /// - parent: /// - source: /// - forks: - /// - master_branch: - /// - open_issues: + /// - masterBranch: + /// - openIssues: /// - watchers: - /// - anonymous_access_enabled: Whether anonymous git access is allowed. - /// - code_of_conduct: - /// - security_and_analysis: - /// - custom_properties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. + /// - anonymousAccessEnabled: Whether anonymous git access is allowed. + /// - codeOfConduct: + /// - securityAndAnalysis: + /// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? = nil, - allow_rebase_merge: Swift.Bool? = nil, - template_repository: Components.Schemas.nullable_hyphen_repository? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - subscribers_count: Swift.Int, - network_count: Swift.Int, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, - organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - parent: Components.Schemas.repository? = nil, - source: Components.Schemas.repository? = nil, + pushedAt: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.FullRepository.PermissionsPayload? = nil, + allowRebaseMerge: Swift.Bool? = nil, + templateRepository: Components.Schemas.NullableRepository? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + subscribersCount: Swift.Int, + networkCount: Swift.Int, + license: Components.Schemas.NullableLicenseSimple? = nil, + organization: Components.Schemas.NullableSimpleUser? = nil, + parent: Components.Schemas.Repository? = nil, + source: Components.Schemas.Repository? = nil, forks: Swift.Int, - master_branch: Swift.String? = nil, - open_issues: Swift.Int, + masterBranch: Swift.String? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - anonymous_access_enabled: Swift.Bool? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil, - custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeOfConduct: Components.Schemas.CodeOfConductSimple? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil, + customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.allow_rebase_merge = allow_rebase_merge - self.template_repository = template_repository - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_merge_commit = allow_merge_commit - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.subscribers_count = subscribers_count - self.network_count = network_count + self.allowRebaseMerge = allowRebaseMerge + self.templateRepository = templateRepository + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowMergeCommit = allowMergeCommit + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.subscribersCount = subscribersCount + self.networkCount = networkCount self.license = license self.organization = organization self.parent = parent self.source = source self.forks = forks - self.master_branch = master_branch - self.open_issues = open_issues + self.masterBranch = masterBranch + self.openIssues = openIssues self.watchers = watchers - self.anonymous_access_enabled = anonymous_access_enabled - self.code_of_conduct = code_of_conduct - self.security_and_analysis = security_and_analysis - self.custom_properties = custom_properties + self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeOfConduct = codeOfConduct + self.securityAndAnalysis = securityAndAnalysis + self.customProperties = customProperties } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case allow_rebase_merge - case template_repository - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_merge_commit - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_forking - case web_commit_signoff_required - case subscribers_count - case network_count + case allowRebaseMerge = "allow_rebase_merge" + case templateRepository = "template_repository" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowMergeCommit = "allow_merge_commit" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" case license case organization case parent case source case forks - case master_branch - case open_issues + case masterBranch = "master_branch" + case openIssues = "open_issues" case watchers - case anonymous_access_enabled - case code_of_conduct - case security_and_analysis - case custom_properties + case anonymousAccessEnabled = "anonymous_access_enabled" + case codeOfConduct = "code_of_conduct" + case securityAndAnalysis = "security_and_analysis" + case customProperties = "custom_properties" } } /// A description of the machine powering a codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-machine`. - public struct codespace_hyphen_machine: Codable, Hashable, Sendable { + public struct CodespaceMachine: Codable, Hashable, Sendable { /// The name of the machine. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/name`. @@ -5661,19 +5670,19 @@ public enum Components { /// The display name of the machine includes cores, memory, and storage. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/display_name`. - public var display_name: Swift.String + public var displayName: Swift.String /// The operating system of the machine. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/operating_system`. - public var operating_system: Swift.String + public var operatingSystem: Swift.String /// How much storage is available to the codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/storage_in_bytes`. - public var storage_in_bytes: Swift.Int + public var storageInBytes: Swift.Int /// How much memory is available to the codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/memory_in_bytes`. - public var memory_in_bytes: Swift.Int + public var memoryInBytes: Swift.Int /// How many cores are available to the codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/cpus`. @@ -5681,61 +5690,61 @@ public enum Components { /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/prebuild_availability`. - @frozen public enum prebuild_availabilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrebuildAvailabilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case ready = "ready" - case in_progress = "in_progress" + case inProgress = "in_progress" } /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// /// - Remark: Generated from `#/components/schemas/codespace-machine/prebuild_availability`. - public var prebuild_availability: Components.Schemas.codespace_hyphen_machine.prebuild_availabilityPayload? - /// Creates a new `codespace_hyphen_machine`. + public var prebuildAvailability: Components.Schemas.CodespaceMachine.PrebuildAvailabilityPayload? + /// Creates a new `CodespaceMachine`. /// /// - Parameters: /// - name: The name of the machine. - /// - display_name: The display name of the machine includes cores, memory, and storage. - /// - operating_system: The operating system of the machine. - /// - storage_in_bytes: How much storage is available to the codespace. - /// - memory_in_bytes: How much memory is available to the codespace. + /// - displayName: The display name of the machine includes cores, memory, and storage. + /// - operatingSystem: The operating system of the machine. + /// - storageInBytes: How much storage is available to the codespace. + /// - memoryInBytes: How much memory is available to the codespace. /// - cpus: How many cores are available to the codespace. - /// - prebuild_availability: Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. + /// - prebuildAvailability: Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. public init( name: Swift.String, - display_name: Swift.String, - operating_system: Swift.String, - storage_in_bytes: Swift.Int, - memory_in_bytes: Swift.Int, + displayName: Swift.String, + operatingSystem: Swift.String, + storageInBytes: Swift.Int, + memoryInBytes: Swift.Int, cpus: Swift.Int, - prebuild_availability: Components.Schemas.codespace_hyphen_machine.prebuild_availabilityPayload? = nil + prebuildAvailability: Components.Schemas.CodespaceMachine.PrebuildAvailabilityPayload? = nil ) { self.name = name - self.display_name = display_name - self.operating_system = operating_system - self.storage_in_bytes = storage_in_bytes - self.memory_in_bytes = memory_in_bytes + self.displayName = displayName + self.operatingSystem = operatingSystem + self.storageInBytes = storageInBytes + self.memoryInBytes = memoryInBytes self.cpus = cpus - self.prebuild_availability = prebuild_availability + self.prebuildAvailability = prebuildAvailability } public enum CodingKeys: String, CodingKey { case name - case display_name - case operating_system - case storage_in_bytes - case memory_in_bytes + case displayName = "display_name" + case operatingSystem = "operating_system" + case storageInBytes = "storage_in_bytes" + case memoryInBytes = "memory_in_bytes" case cpus - case prebuild_availability + case prebuildAvailability = "prebuild_availability" } } /// Permission check result for a given devcontainer config. /// /// - Remark: Generated from `#/components/schemas/codespaces-permissions-check-for-devcontainer`. - public struct codespaces_hyphen_permissions_hyphen_check_hyphen_for_hyphen_devcontainer: Codable, Hashable, Sendable { + public struct CodespacesPermissionsCheckForDevcontainer: Codable, Hashable, Sendable { /// Whether the user has accepted the permissions defined by the devcontainer config /// /// - Remark: Generated from `#/components/schemas/codespaces-permissions-check-for-devcontainer/accepted`. public var accepted: Swift.Bool - /// Creates a new `codespaces_hyphen_permissions_hyphen_check_hyphen_for_hyphen_devcontainer`. + /// Creates a new `CodespacesPermissionsCheckForDevcontainer`. /// /// - Parameters: /// - accepted: Whether the user has accepted the permissions defined by the devcontainer config @@ -5749,40 +5758,40 @@ public enum Components { /// Set repository secrets for GitHub Codespaces. /// /// - Remark: Generated from `#/components/schemas/repo-codespaces-secret`. - public struct repo_hyphen_codespaces_hyphen_secret: Codable, Hashable, Sendable { + public struct RepoCodespacesSecret: Codable, Hashable, Sendable { /// The name of the secret. /// /// - Remark: Generated from `#/components/schemas/repo-codespaces-secret/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repo-codespaces-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/repo-codespaces-secret/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `repo_hyphen_codespaces_hyphen_secret`. + public var updatedAt: Foundation.Date + /// Creates a new `RepoCodespacesSecret`. /// /// - Parameters: /// - name: The name of the secret. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Secrets for a GitHub Codespace. /// /// - Remark: Generated from `#/components/schemas/codespaces-secret`. - public struct codespaces_hyphen_secret: Codable, Hashable, Sendable { + public struct CodespacesSecret: Codable, Hashable, Sendable { /// The name of the secret /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/name`. @@ -5790,15 +5799,15 @@ public enum Components { /// The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The type of repositories in the organization that the secret is visible to /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -5806,73 +5815,73 @@ public enum Components { /// The type of repositories in the organization that the secret is visible to /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/visibility`. - public var visibility: Components.Schemas.codespaces_hyphen_secret.visibilityPayload + public var visibility: Components.Schemas.CodespacesSecret.VisibilityPayload /// The API URL at which the list of repositories this secret is visible to can be retrieved /// /// - Remark: Generated from `#/components/schemas/codespaces-secret/selected_repositories_url`. - public var selected_repositories_url: Swift.String - /// Creates a new `codespaces_hyphen_secret`. + public var selectedRepositoriesUrl: Swift.String + /// Creates a new `CodespacesSecret`. /// /// - Parameters: /// - name: The name of the secret - /// - created_at: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// - visibility: The type of repositories in the organization that the secret is visible to - /// - selected_repositories_url: The API URL at which the list of repositories this secret is visible to can be retrieved + /// - selectedRepositoriesUrl: The API URL at which the list of repositories this secret is visible to can be retrieved public init( name: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date, - visibility: Components.Schemas.codespaces_hyphen_secret.visibilityPayload, - selected_repositories_url: Swift.String + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + visibility: Components.Schemas.CodespacesSecret.VisibilityPayload, + selectedRepositoriesUrl: Swift.String ) { self.name = name - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.visibility = visibility - self.selected_repositories_url = selected_repositories_url + self.selectedRepositoriesUrl = selectedRepositoriesUrl } public enum CodingKeys: String, CodingKey { case name - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case visibility - case selected_repositories_url + case selectedRepositoriesUrl = "selected_repositories_url" } } /// The public key used for setting user Codespaces' Secrets. /// /// - Remark: Generated from `#/components/schemas/codespaces-user-public-key`. - public struct codespaces_hyphen_user_hyphen_public_hyphen_key: Codable, Hashable, Sendable { + public struct CodespacesUserPublicKey: Codable, Hashable, Sendable { /// The identifier for the key. /// /// - Remark: Generated from `#/components/schemas/codespaces-user-public-key/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// The Base64 encoded public key. /// /// - Remark: Generated from `#/components/schemas/codespaces-user-public-key/key`. public var key: Swift.String - /// Creates a new `codespaces_hyphen_user_hyphen_public_hyphen_key`. + /// Creates a new `CodespacesUserPublicKey`. /// /// - Parameters: - /// - key_id: The identifier for the key. + /// - keyId: The identifier for the key. /// - key: The Base64 encoded public key. public init( - key_id: Swift.String, + keyId: Swift.String, key: Swift.String ) { - self.key_id = key_id + self.keyId = keyId self.key = key } public enum CodingKeys: String, CodingKey { - case key_id + case keyId = "key_id" case key } } /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest /// /// - Remark: Generated from `#/components/schemas/codespace-export-details`. - public struct codespace_hyphen_export_hyphen_details: Codable, Hashable, Sendable { + public struct CodespaceExportDetails: Codable, Hashable, Sendable { /// State of the latest export /// /// - Remark: Generated from `#/components/schemas/codespace-export-details/state`. @@ -5880,7 +5889,7 @@ public enum Components { /// Completion time of the last export operation /// /// - Remark: Generated from `#/components/schemas/codespace-export-details/completed_at`. - public var completed_at: Foundation.Date? + public var completedAt: Foundation.Date? /// Name of the exported branch /// /// - Remark: Generated from `#/components/schemas/codespace-export-details/branch`. @@ -5896,52 +5905,52 @@ public enum Components { /// Url for fetching export details /// /// - Remark: Generated from `#/components/schemas/codespace-export-details/export_url`. - public var export_url: Swift.String? + public var exportUrl: Swift.String? /// Web url for the exported branch /// /// - Remark: Generated from `#/components/schemas/codespace-export-details/html_url`. - public var html_url: Swift.String? - /// Creates a new `codespace_hyphen_export_hyphen_details`. + public var htmlUrl: Swift.String? + /// Creates a new `CodespaceExportDetails`. /// /// - Parameters: /// - state: State of the latest export - /// - completed_at: Completion time of the last export operation + /// - completedAt: Completion time of the last export operation /// - branch: Name of the exported branch /// - sha: Git commit SHA of the exported branch /// - id: Id for the export details - /// - export_url: Url for fetching export details - /// - html_url: Web url for the exported branch + /// - exportUrl: Url for fetching export details + /// - htmlUrl: Web url for the exported branch public init( state: Swift.String? = nil, - completed_at: Foundation.Date? = nil, + completedAt: Foundation.Date? = nil, branch: Swift.String? = nil, sha: Swift.String? = nil, id: Swift.String? = nil, - export_url: Swift.String? = nil, - html_url: Swift.String? = nil + exportUrl: Swift.String? = nil, + htmlUrl: Swift.String? = nil ) { self.state = state - self.completed_at = completed_at + self.completedAt = completedAt self.branch = branch self.sha = sha self.id = id - self.export_url = export_url - self.html_url = html_url + self.exportUrl = exportUrl + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case state - case completed_at + case completedAt = "completed_at" case branch case sha case id - case export_url - case html_url + case exportUrl = "export_url" + case htmlUrl = "html_url" } } /// A codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository`. - public struct codespace_hyphen_with_hyphen_full_hyphen_repository: Codable, Hashable, Sendable { + public struct CodespaceWithFullRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/id`. public var id: Swift.Int64 /// Automatically generated name of this codespace. @@ -5951,61 +5960,61 @@ public enum Components { /// Display name for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// UUID identifying this codespace's environment. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/environment_id`. - public var environment_id: Swift.String? + public var environmentId: Swift.String? /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/billable_owner`. - public var billable_owner: Components.Schemas.simple_hyphen_user + public var billableOwner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/repository`. - public var repository: Components.Schemas.full_hyphen_repository + public var repository: Components.Schemas.FullRepository /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/machine`. - public var machine: Components.Schemas.nullable_hyphen_codespace_hyphen_machine? + public var machine: Components.Schemas.NullableCodespaceMachine? /// Path to devcontainer.json from repo root used to create Codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Whether the codespace was created from a prebuild. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/prebuild`. public var prebuild: Swift.Bool? /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// Last known time this codespace was started. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/last_used_at`. - public var last_used_at: Foundation.Date + public var lastUsedAt: Foundation.Date /// State of this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { - case Unknown = "Unknown" - case Created = "Created" - case Queued = "Queued" - case Provisioning = "Provisioning" - case Available = "Available" - case Awaiting = "Awaiting" - case Unavailable = "Unavailable" - case Deleted = "Deleted" - case Moved = "Moved" - case Shutdown = "Shutdown" - case Archived = "Archived" - case Starting = "Starting" - case ShuttingDown = "ShuttingDown" - case Failed = "Failed" - case Exporting = "Exporting" - case Updating = "Updating" - case Rebuilding = "Rebuilding" + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { + case unknown = "Unknown" + case created = "Created" + case queued = "Queued" + case provisioning = "Provisioning" + case available = "Available" + case awaiting = "Awaiting" + case unavailable = "Unavailable" + case deleted = "Deleted" + case moved = "Moved" + case shutdown = "Shutdown" + case archived = "Archived" + case starting = "Starting" + case shuttingDown = "ShuttingDown" + case failed = "Failed" + case exporting = "Exporting" + case updating = "Updating" + case rebuilding = "Rebuilding" } /// State of this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/state`. - public var state: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.statePayload + public var state: Components.Schemas.CodespaceWithFullRepository.StatePayload /// API URL for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/url`. @@ -6013,7 +6022,7 @@ public enum Components { /// Details about the codespace's git repository. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status`. - public struct git_statusPayload: Codable, Hashable, Sendable { + public struct GitStatusPayload: Codable, Hashable, Sendable { /// The number of commits the local repository is ahead of the remote. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status/ahead`. @@ -6025,261 +6034,261 @@ public enum Components { /// Whether the local repository has unpushed changes. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status/has_unpushed_changes`. - public var has_unpushed_changes: Swift.Bool? + public var hasUnpushedChanges: Swift.Bool? /// Whether the local repository has uncommitted changes. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status/has_uncommitted_changes`. - public var has_uncommitted_changes: Swift.Bool? + public var hasUncommittedChanges: Swift.Bool? /// The current branch (or SHA if in detached HEAD state) of the local repository. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status/ref`. public var ref: Swift.String? - /// Creates a new `git_statusPayload`. + /// Creates a new `GitStatusPayload`. /// /// - Parameters: /// - ahead: The number of commits the local repository is ahead of the remote. /// - behind: The number of commits the local repository is behind the remote. - /// - has_unpushed_changes: Whether the local repository has unpushed changes. - /// - has_uncommitted_changes: Whether the local repository has uncommitted changes. + /// - hasUnpushedChanges: Whether the local repository has unpushed changes. + /// - hasUncommittedChanges: Whether the local repository has uncommitted changes. /// - ref: The current branch (or SHA if in detached HEAD state) of the local repository. public init( ahead: Swift.Int? = nil, behind: Swift.Int? = nil, - has_unpushed_changes: Swift.Bool? = nil, - has_uncommitted_changes: Swift.Bool? = nil, + hasUnpushedChanges: Swift.Bool? = nil, + hasUncommittedChanges: Swift.Bool? = nil, ref: Swift.String? = nil ) { self.ahead = ahead self.behind = behind - self.has_unpushed_changes = has_unpushed_changes - self.has_uncommitted_changes = has_uncommitted_changes + self.hasUnpushedChanges = hasUnpushedChanges + self.hasUncommittedChanges = hasUncommittedChanges self.ref = ref } public enum CodingKeys: String, CodingKey { case ahead case behind - case has_unpushed_changes - case has_uncommitted_changes + case hasUnpushedChanges = "has_unpushed_changes" + case hasUncommittedChanges = "has_uncommitted_changes" case ref } } /// Details about the codespace's git repository. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/git_status`. - public var git_status: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.git_statusPayload + public var gitStatus: Components.Schemas.CodespaceWithFullRepository.GitStatusPayload /// The initally assigned location of a new codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/location`. - @frozen public enum locationPayload: String, Codable, Hashable, Sendable { - case EastUs = "EastUs" - case SouthEastAsia = "SouthEastAsia" - case WestEurope = "WestEurope" - case WestUs2 = "WestUs2" + @frozen public enum LocationPayload: String, Codable, Hashable, Sendable, CaseIterable { + case eastUs = "EastUs" + case southEastAsia = "SouthEastAsia" + case westEurope = "WestEurope" + case westUs2 = "WestUs2" } /// The initally assigned location of a new codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/location`. - public var location: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.locationPayload + public var location: Components.Schemas.CodespaceWithFullRepository.LocationPayload /// The number of minutes of inactivity after which this codespace will be automatically stopped. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// URL to access this codespace on the web. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/web_url`. - public var web_url: Swift.String + public var webUrl: Swift.String /// API URL to access available alternate machine types for this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/machines_url`. - public var machines_url: Swift.String + public var machinesUrl: Swift.String /// API URL to start this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/start_url`. - public var start_url: Swift.String + public var startUrl: Swift.String /// API URL to stop this codespace. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/stop_url`. - public var stop_url: Swift.String + public var stopUrl: Swift.String /// API URL to publish this codespace to a new repository. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/publish_url`. - public var publish_url: Swift.String? + public var publishUrl: Swift.String? /// API URL for the Pull Request associated with this codespace, if any. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/pulls_url`. - public var pulls_url: Swift.String? + public var pullsUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/recent_folders`. - public var recent_folders: [Swift.String] + public var recentFolders: [Swift.String] /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/runtime_constraints`. - public struct runtime_constraintsPayload: Codable, Hashable, Sendable { + public struct RuntimeConstraintsPayload: Codable, Hashable, Sendable { /// The privacy settings a user can select from when forwarding a port. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/runtime_constraints/allowed_port_privacy_settings`. - public var allowed_port_privacy_settings: [Swift.String]? - /// Creates a new `runtime_constraintsPayload`. + public var allowedPortPrivacySettings: [Swift.String]? + /// Creates a new `RuntimeConstraintsPayload`. /// /// - Parameters: - /// - allowed_port_privacy_settings: The privacy settings a user can select from when forwarding a port. - public init(allowed_port_privacy_settings: [Swift.String]? = nil) { - self.allowed_port_privacy_settings = allowed_port_privacy_settings + /// - allowedPortPrivacySettings: The privacy settings a user can select from when forwarding a port. + public init(allowedPortPrivacySettings: [Swift.String]? = nil) { + self.allowedPortPrivacySettings = allowedPortPrivacySettings } public enum CodingKeys: String, CodingKey { - case allowed_port_privacy_settings + case allowedPortPrivacySettings = "allowed_port_privacy_settings" } } /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/runtime_constraints`. - public var runtime_constraints: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.runtime_constraintsPayload? + public var runtimeConstraints: Components.Schemas.CodespaceWithFullRepository.RuntimeConstraintsPayload? /// Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/pending_operation`. - public var pending_operation: Swift.Bool? + public var pendingOperation: Swift.Bool? /// Text to show user when codespace is disabled by a pending operation /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/pending_operation_disabled_reason`. - public var pending_operation_disabled_reason: Swift.String? + public var pendingOperationDisabledReason: Swift.String? /// Text to show user when codespace idle timeout minutes has been overriden by an organization policy /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/idle_timeout_notice`. - public var idle_timeout_notice: Swift.String? + public var idleTimeoutNotice: Swift.String? /// Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/retention_period_minutes`. - public var retention_period_minutes: Swift.Int? + public var retentionPeriodMinutes: Swift.Int? /// When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" /// /// - Remark: Generated from `#/components/schemas/codespace-with-full-repository/retention_expires_at`. - public var retention_expires_at: Foundation.Date? - /// Creates a new `codespace_hyphen_with_hyphen_full_hyphen_repository`. + public var retentionExpiresAt: Foundation.Date? + /// Creates a new `CodespaceWithFullRepository`. /// /// - Parameters: /// - id: /// - name: Automatically generated name of this codespace. - /// - display_name: Display name for this codespace. - /// - environment_id: UUID identifying this codespace's environment. + /// - displayName: Display name for this codespace. + /// - environmentId: UUID identifying this codespace's environment. /// - owner: - /// - billable_owner: + /// - billableOwner: /// - repository: /// - machine: - /// - devcontainer_path: Path to devcontainer.json from repo root used to create Codespace. + /// - devcontainerPath: Path to devcontainer.json from repo root used to create Codespace. /// - prebuild: Whether the codespace was created from a prebuild. - /// - created_at: - /// - updated_at: - /// - last_used_at: Last known time this codespace was started. + /// - createdAt: + /// - updatedAt: + /// - lastUsedAt: Last known time this codespace was started. /// - state: State of this codespace. /// - url: API URL for this codespace. - /// - git_status: Details about the codespace's git repository. + /// - gitStatus: Details about the codespace's git repository. /// - location: The initally assigned location of a new codespace. - /// - idle_timeout_minutes: The number of minutes of inactivity after which this codespace will be automatically stopped. - /// - web_url: URL to access this codespace on the web. - /// - machines_url: API URL to access available alternate machine types for this codespace. - /// - start_url: API URL to start this codespace. - /// - stop_url: API URL to stop this codespace. - /// - publish_url: API URL to publish this codespace to a new repository. - /// - pulls_url: API URL for the Pull Request associated with this codespace, if any. - /// - recent_folders: - /// - runtime_constraints: - /// - pending_operation: Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. - /// - pending_operation_disabled_reason: Text to show user when codespace is disabled by a pending operation - /// - idle_timeout_notice: Text to show user when codespace idle timeout minutes has been overriden by an organization policy - /// - retention_period_minutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). - /// - retention_expires_at: When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" + /// - idleTimeoutMinutes: The number of minutes of inactivity after which this codespace will be automatically stopped. + /// - webUrl: URL to access this codespace on the web. + /// - machinesUrl: API URL to access available alternate machine types for this codespace. + /// - startUrl: API URL to start this codespace. + /// - stopUrl: API URL to stop this codespace. + /// - publishUrl: API URL to publish this codespace to a new repository. + /// - pullsUrl: API URL for the Pull Request associated with this codespace, if any. + /// - recentFolders: + /// - runtimeConstraints: + /// - pendingOperation: Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it. + /// - pendingOperationDisabledReason: Text to show user when codespace is disabled by a pending operation + /// - idleTimeoutNotice: Text to show user when codespace idle timeout minutes has been overriden by an organization policy + /// - retentionPeriodMinutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). + /// - retentionExpiresAt: When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at" public init( id: Swift.Int64, name: Swift.String, - display_name: Swift.String? = nil, - environment_id: Swift.String? = nil, - owner: Components.Schemas.simple_hyphen_user, - billable_owner: Components.Schemas.simple_hyphen_user, - repository: Components.Schemas.full_hyphen_repository, - machine: Components.Schemas.nullable_hyphen_codespace_hyphen_machine? = nil, - devcontainer_path: Swift.String? = nil, + displayName: Swift.String? = nil, + environmentId: Swift.String? = nil, + owner: Components.Schemas.SimpleUser, + billableOwner: Components.Schemas.SimpleUser, + repository: Components.Schemas.FullRepository, + machine: Components.Schemas.NullableCodespaceMachine? = nil, + devcontainerPath: Swift.String? = nil, prebuild: Swift.Bool? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date, - last_used_at: Foundation.Date, - state: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.statePayload, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + lastUsedAt: Foundation.Date, + state: Components.Schemas.CodespaceWithFullRepository.StatePayload, url: Swift.String, - git_status: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.git_statusPayload, - location: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.locationPayload, - idle_timeout_minutes: Swift.Int? = nil, - web_url: Swift.String, - machines_url: Swift.String, - start_url: Swift.String, - stop_url: Swift.String, - publish_url: Swift.String? = nil, - pulls_url: Swift.String? = nil, - recent_folders: [Swift.String], - runtime_constraints: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository.runtime_constraintsPayload? = nil, - pending_operation: Swift.Bool? = nil, - pending_operation_disabled_reason: Swift.String? = nil, - idle_timeout_notice: Swift.String? = nil, - retention_period_minutes: Swift.Int? = nil, - retention_expires_at: Foundation.Date? = nil + gitStatus: Components.Schemas.CodespaceWithFullRepository.GitStatusPayload, + location: Components.Schemas.CodespaceWithFullRepository.LocationPayload, + idleTimeoutMinutes: Swift.Int? = nil, + webUrl: Swift.String, + machinesUrl: Swift.String, + startUrl: Swift.String, + stopUrl: Swift.String, + publishUrl: Swift.String? = nil, + pullsUrl: Swift.String? = nil, + recentFolders: [Swift.String], + runtimeConstraints: Components.Schemas.CodespaceWithFullRepository.RuntimeConstraintsPayload? = nil, + pendingOperation: Swift.Bool? = nil, + pendingOperationDisabledReason: Swift.String? = nil, + idleTimeoutNotice: Swift.String? = nil, + retentionPeriodMinutes: Swift.Int? = nil, + retentionExpiresAt: Foundation.Date? = nil ) { self.id = id self.name = name - self.display_name = display_name - self.environment_id = environment_id + self.displayName = displayName + self.environmentId = environmentId self.owner = owner - self.billable_owner = billable_owner + self.billableOwner = billableOwner self.repository = repository self.machine = machine - self.devcontainer_path = devcontainer_path + self.devcontainerPath = devcontainerPath self.prebuild = prebuild - self.created_at = created_at - self.updated_at = updated_at - self.last_used_at = last_used_at + self.createdAt = createdAt + self.updatedAt = updatedAt + self.lastUsedAt = lastUsedAt self.state = state self.url = url - self.git_status = git_status + self.gitStatus = gitStatus self.location = location - self.idle_timeout_minutes = idle_timeout_minutes - self.web_url = web_url - self.machines_url = machines_url - self.start_url = start_url - self.stop_url = stop_url - self.publish_url = publish_url - self.pulls_url = pulls_url - self.recent_folders = recent_folders - self.runtime_constraints = runtime_constraints - self.pending_operation = pending_operation - self.pending_operation_disabled_reason = pending_operation_disabled_reason - self.idle_timeout_notice = idle_timeout_notice - self.retention_period_minutes = retention_period_minutes - self.retention_expires_at = retention_expires_at + self.idleTimeoutMinutes = idleTimeoutMinutes + self.webUrl = webUrl + self.machinesUrl = machinesUrl + self.startUrl = startUrl + self.stopUrl = stopUrl + self.publishUrl = publishUrl + self.pullsUrl = pullsUrl + self.recentFolders = recentFolders + self.runtimeConstraints = runtimeConstraints + self.pendingOperation = pendingOperation + self.pendingOperationDisabledReason = pendingOperationDisabledReason + self.idleTimeoutNotice = idleTimeoutNotice + self.retentionPeriodMinutes = retentionPeriodMinutes + self.retentionExpiresAt = retentionExpiresAt } public enum CodingKeys: String, CodingKey { case id case name - case display_name - case environment_id + case displayName = "display_name" + case environmentId = "environment_id" case owner - case billable_owner + case billableOwner = "billable_owner" case repository case machine - case devcontainer_path + case devcontainerPath = "devcontainer_path" case prebuild - case created_at - case updated_at - case last_used_at + case createdAt = "created_at" + case updatedAt = "updated_at" + case lastUsedAt = "last_used_at" case state case url - case git_status + case gitStatus = "git_status" case location - case idle_timeout_minutes - case web_url - case machines_url - case start_url - case stop_url - case publish_url - case pulls_url - case recent_folders - case runtime_constraints - case pending_operation - case pending_operation_disabled_reason - case idle_timeout_notice - case retention_period_minutes - case retention_expires_at + case idleTimeoutMinutes = "idle_timeout_minutes" + case webUrl = "web_url" + case machinesUrl = "machines_url" + case startUrl = "start_url" + case stopUrl = "stop_url" + case publishUrl = "publish_url" + case pullsUrl = "pulls_url" + case recentFolders = "recent_folders" + case runtimeConstraints = "runtime_constraints" + case pendingOperation = "pending_operation" + case pendingOperationDisabledReason = "pending_operation_disabled_reason" + case idleTimeoutNotice = "idle_timeout_notice" + case retentionPeriodMinutes = "retention_period_minutes" + case retentionExpiresAt = "retention_expires_at" } } } @@ -6288,62 +6297,62 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The name of the secret. /// /// - Remark: Generated from `#/components/parameters/secret-name`. - public typealias secret_hyphen_name = Swift.String + public typealias SecretName = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The name of the codespace. /// /// - Remark: Generated from `#/components/parameters/codespace-name`. - public typealias codespace_hyphen_name = Swift.String + public typealias CodespaceName = Swift.String /// The number that identifies the pull request. /// /// - Remark: Generated from `#/components/parameters/pull-number`. - public typealias pull_hyphen_number = Swift.Int + public typealias PullNumber = Swift.Int /// ID of the Repository to filter on /// /// - Remark: Generated from `#/components/parameters/repository-id-in-query`. - public typealias repository_hyphen_id_hyphen_in_hyphen_query = Swift.Int + public typealias RepositoryIdInQuery = Swift.Int /// The ID of the export operation, or `latest`. Currently only `latest` is currently supported. /// /// - Remark: Generated from `#/components/parameters/export-id`. - public typealias export_hyphen_id = Swift.String + public typealias ExportId = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6353,25 +6362,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6385,15 +6394,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -6405,25 +6414,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -6433,16 +6442,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -6461,29 +6470,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6493,25 +6502,53 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BasicError { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Components.Responses.Forbidden.Body) { + self.body = body + } + } + public struct InternalError: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6521,25 +6558,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { + public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6549,54 +6586,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6606,40 +6643,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { - self.body = body - } - } - public struct internal_error: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } @@ -6647,7 +6656,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -6661,7 +6670,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)`. - public enum codespaces_sol_list_hyphen_in_hyphen_organization { + public enum CodespacesListInOrganization { public static let id: Swift.String = "codespaces/list-in-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/path`. @@ -6669,52 +6678,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Path + public var path: Operations.CodespacesListInOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Query + public var query: Operations.CodespacesListInOrganization.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Headers + public var headers: Operations.CodespacesListInOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -6722,9 +6731,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Path, - query: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Input.Headers = .init() + path: Operations.CodespacesListInOrganization.Input.Path, + query: Operations.CodespacesListInOrganization.Input.Query = .init(), + headers: Operations.CodespacesListInOrganization.Input.Headers = .init() ) { self.path = path self.query = query @@ -6736,35 +6745,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/responses/200/content/json/codespaces`. - public var codespaces: [Components.Schemas.codespace] - /// Creates a new `jsonPayload`. + public var codespaces: [Components.Schemas.Codespace] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - codespaces: public init( - total_count: Swift.Int, - codespaces: [Components.Schemas.codespace] + totalCount: Swift.Int, + codespaces: [Components.Schemas.Codespace] ) { - self.total_count = total_count + self.totalCount = totalCount self.codespaces = codespaces } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case codespaces } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListInOrganization.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListInOrganization.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -6774,12 +6783,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body + public var body: Operations.CodespacesListInOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.CodespacesListInOrganization.Output.Ok.Body) { self.body = body } } @@ -6788,12 +6797,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok) + case ok(Operations.CodespacesListInOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_in_hyphen_organization.Output.Ok { + public var ok: Operations.CodespacesListInOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -6811,12 +6820,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6834,12 +6851,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -6857,12 +6874,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -6880,12 +6897,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6903,12 +6920,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/get(codespaces/list-in-organization)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6959,7 +6976,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/access`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)`. - public enum codespaces_sol_set_hyphen_codespaces_hyphen_access { + public enum CodespacesSetCodespacesAccess { public static let id: Swift.String = "codespaces/set-codespaces-access" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/path`. @@ -6967,70 +6984,70 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Path + public var path: Operations.CodespacesSetCodespacesAccess.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Headers + public var headers: Operations.CodespacesSetCodespacesAccess.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case disabled = "disabled" - case selected_members = "selected_members" - case all_members = "all_members" - case all_members_and_outside_collaborators = "all_members_and_outside_collaborators" + case selectedMembers = "selected_members" + case allMembers = "all_members" + case allMembersAndOutsideCollaborators = "all_members_and_outside_collaborators" } /// Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody/json/visibility`. - public var visibility: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.CodespacesSetCodespacesAccess.Input.Body.JsonPayload.VisibilityPayload /// The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody/json/selected_usernames`. - public var selected_usernames: [Swift.String]? - /// Creates a new `jsonPayload`. + public var selectedUsernames: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - visibility: Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization. - /// - selected_usernames: The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value. + /// - selectedUsernames: The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value. public init( - visibility: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body.jsonPayload.visibilityPayload, - selected_usernames: [Swift.String]? = nil + visibility: Operations.CodespacesSetCodespacesAccess.Input.Body.JsonPayload.VisibilityPayload, + selectedUsernames: [Swift.String]? = nil ) { self.visibility = visibility - self.selected_usernames = selected_usernames + self.selectedUsernames = selectedUsernames } public enum CodingKeys: String, CodingKey { case visibility - case selected_usernames + case selectedUsernames = "selected_usernames" } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body.jsonPayload) + case json(Operations.CodespacesSetCodespacesAccess.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body + public var body: Operations.CodespacesSetCodespacesAccess.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7038,9 +7055,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Input.Body + path: Operations.CodespacesSetCodespacesAccess.Input.Path, + headers: Operations.CodespacesSetCodespacesAccess.Input.Headers = .init(), + body: Operations.CodespacesSetCodespacesAccess.Input.Body ) { self.path = path self.headers = headers @@ -7057,12 +7074,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output.NoContent) + case noContent(Operations.CodespacesSetCodespacesAccess.Output.NoContent) + /// Response when successfully modifying permissions. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output.NoContent { + public var noContent: Operations.CodespacesSetCodespacesAccess.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7080,12 +7105,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7107,12 +7140,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output.BadRequest) + case badRequest(Operations.CodespacesSetCodespacesAccess.Output.BadRequest) + /// Users are neither members nor collaborators of this organization. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access.Output.BadRequest { + public var badRequest: Operations.CodespacesSetCodespacesAccess.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7130,12 +7171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7153,12 +7194,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7176,12 +7217,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/put(codespaces/set-codespaces-access)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -7236,7 +7277,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)`. - public enum codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users { + public enum CodespacesSetCodespacesAccessUsers { public static let id: Swift.String = "codespaces/set-codespaces-access-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/path`. @@ -7244,51 +7285,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path + public var path: Operations.CodespacesSetCodespacesAccessUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers + public var headers: Operations.CodespacesSetCodespacesAccessUsers.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The usernames of the organization members whose codespaces be billed to the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/requestBody/json/selected_usernames`. - public var selected_usernames: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedUsernames: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_usernames: The usernames of the organization members whose codespaces be billed to the organization. - public init(selected_usernames: [Swift.String]) { - self.selected_usernames = selected_usernames + /// - selectedUsernames: The usernames of the organization members whose codespaces be billed to the organization. + public init(selectedUsernames: [Swift.String]) { + self.selectedUsernames = selectedUsernames } public enum CodingKeys: String, CodingKey { - case selected_usernames + case selectedUsernames = "selected_usernames" } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/POST/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body.jsonPayload) + case json(Operations.CodespacesSetCodespacesAccessUsers.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body + public var body: Operations.CodespacesSetCodespacesAccessUsers.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7296,9 +7337,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body + path: Operations.CodespacesSetCodespacesAccessUsers.Input.Path, + headers: Operations.CodespacesSetCodespacesAccessUsers.Input.Headers = .init(), + body: Operations.CodespacesSetCodespacesAccessUsers.Input.Body ) { self.path = path self.headers = headers @@ -7315,12 +7356,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output.NoContent) + case noContent(Operations.CodespacesSetCodespacesAccessUsers.Output.NoContent) + /// Response when successfully modifying permissions. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output.NoContent { + public var noContent: Operations.CodespacesSetCodespacesAccessUsers.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7338,12 +7387,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7365,12 +7422,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output.BadRequest) + case badRequest(Operations.CodespacesSetCodespacesAccessUsers.Output.BadRequest) + /// Users are neither members nor collaborators of this organization. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.codespaces_sol_set_hyphen_codespaces_hyphen_access_hyphen_users.Output.BadRequest { + public var badRequest: Operations.CodespacesSetCodespacesAccessUsers.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7388,12 +7453,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7411,12 +7476,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7434,12 +7499,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/post(codespaces/set-codespaces-access-users)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -7494,7 +7559,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/access/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)`. - public enum codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users { + public enum CodespacesDeleteCodespacesAccessUsers { public static let id: Swift.String = "codespaces/delete-codespaces-access-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/path`. @@ -7502,51 +7567,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path + public var path: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers + public var headers: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The usernames of the organization members whose codespaces should not be billed to the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/requestBody/json/selected_usernames`. - public var selected_usernames: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedUsernames: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_usernames: The usernames of the organization members whose codespaces should not be billed to the organization. - public init(selected_usernames: [Swift.String]) { - self.selected_usernames = selected_usernames + /// - selectedUsernames: The usernames of the organization members whose codespaces should not be billed to the organization. + public init(selectedUsernames: [Swift.String]) { + self.selectedUsernames = selectedUsernames } public enum CodingKeys: String, CodingKey { - case selected_usernames + case selectedUsernames = "selected_usernames" } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/access/selected_users/DELETE/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body.jsonPayload) + case json(Operations.CodespacesDeleteCodespacesAccessUsers.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body + public var body: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7554,9 +7619,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Headers = .init(), - body: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Input.Body + path: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Path, + headers: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Headers = .init(), + body: Operations.CodespacesDeleteCodespacesAccessUsers.Input.Body ) { self.path = path self.headers = headers @@ -7573,12 +7638,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output.NoContent) + case noContent(Operations.CodespacesDeleteCodespacesAccessUsers.Output.NoContent) + /// Response when successfully modifying permissions. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output.NoContent { + public var noContent: Operations.CodespacesDeleteCodespacesAccessUsers.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7596,12 +7669,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -7623,12 +7704,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output.BadRequest) + case badRequest(Operations.CodespacesDeleteCodespacesAccessUsers.Output.BadRequest) + /// Users are neither members nor collaborators of this organization. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/400`. + /// + /// HTTP response code: `400 badRequest`. + public static var badRequest: Self { + .badRequest(.init()) + } /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.codespaces_sol_delete_hyphen_codespaces_hyphen_access_hyphen_users.Output.BadRequest { + public var badRequest: Operations.CodespacesDeleteCodespacesAccessUsers.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7646,12 +7735,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7669,12 +7758,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7692,12 +7781,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/access/selected_users/delete(codespaces/delete-codespaces-access-users)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -7750,7 +7839,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/get(codespaces/list-org-secrets)`. - public enum codespaces_sol_list_hyphen_org_hyphen_secrets { + public enum CodespacesListOrgSecrets { public static let id: Swift.String = "codespaces/list-org-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/path`. @@ -7758,52 +7847,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Path + public var path: Operations.CodespacesListOrgSecrets.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Query + public var query: Operations.CodespacesListOrgSecrets.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Headers + public var headers: Operations.CodespacesListOrgSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7811,9 +7900,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Path, - query: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Input.Headers = .init() + path: Operations.CodespacesListOrgSecrets.Input.Path, + query: Operations.CodespacesListOrgSecrets.Input.Query = .init(), + headers: Operations.CodespacesListOrgSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -7825,49 +7914,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.CodespacesListOrgSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.codespaces_hyphen_org_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.CodespacesOrgSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.codespaces_hyphen_org_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.CodespacesOrgSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListOrgSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListOrgSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -7877,15 +7966,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + public var body: Operations.CodespacesListOrgSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok.Body + headers: Operations.CodespacesListOrgSecrets.Output.Ok.Headers = .init(), + body: Operations.CodespacesListOrgSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -7896,12 +7985,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/get(codespaces/list-org-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok) + case ok(Operations.CodespacesListOrgSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_org_hyphen_secrets.Output.Ok { + public var ok: Operations.CodespacesListOrgSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -7952,7 +8041,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/public-key/get(codespaces/get-org-public-key)`. - public enum codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key { + public enum CodespacesGetOrgPublicKey { public static let id: Swift.String = "codespaces/get-org-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/public-key/GET/path`. @@ -7960,36 +8049,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/public-key/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path + public var path: Operations.CodespacesGetOrgPublicKey.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.CodespacesGetOrgPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.CodespacesGetOrgPublicKey.Input.Path, + headers: Operations.CodespacesGetOrgPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8000,12 +8089,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_public_hyphen_key) + case json(Components.Schemas.CodespacesPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_public_hyphen_key { + public var json: Components.Schemas.CodespacesPublicKey { get throws { switch self { case let .json(body): @@ -8015,12 +8104,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.CodespacesGetOrgPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.CodespacesGetOrgPublicKey.Output.Ok.Body) { self.body = body } } @@ -8029,12 +8118,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/public-key/get(codespaces/get-org-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.CodespacesGetOrgPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.CodespacesGetOrgPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -8086,7 +8175,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/get(codespaces/get-org-secret)`. - public enum codespaces_sol_get_hyphen_org_hyphen_secret { + public enum CodespacesGetOrgSecret { public static let id: Swift.String = "codespaces/get-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/path`. @@ -8094,45 +8183,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesGetOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesGetOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesGetOrgSecret.Input.Path, + headers: Operations.CodespacesGetOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8143,26 +8232,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Headers + public var headers: Operations.CodespacesGetOrgSecret.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_org_hyphen_secret) + case json(Components.Schemas.CodespacesOrgSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_org_hyphen_secret { + public var json: Components.Schemas.CodespacesOrgSecret { get throws { switch self { case let .json(body): @@ -8172,15 +8261,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.CodespacesGetOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Headers = .init(), - body: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok.Body + headers: Operations.CodespacesGetOrgSecret.Output.Ok.Headers = .init(), + body: Operations.CodespacesGetOrgSecret.Output.Ok.Body ) { self.headers = headers self.body = body @@ -8191,12 +8280,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/get(codespaces/get-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.CodespacesGetOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.CodespacesGetOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -8249,7 +8338,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)`. - public enum codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret { + public enum CodespacesCreateOrUpdateOrgSecret { public static let id: Swift.String = "codespaces/create-or-update-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/path`. @@ -8257,53 +8346,53 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// The ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String? + public var keyId: Swift.String? /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -8311,40 +8400,40 @@ public enum Operations { /// Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json/visibility`. - public var visibility: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload /// An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint. - /// - key_id: The ID of the key you used to encrypt the secret. + /// - encryptedValue: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint. + /// - keyId: The ID of the key you used to encrypt the secret. /// - visibility: Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret. - /// - selected_repository_ids: An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. + /// - selectedRepositoryIds: An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. public init( - encrypted_value: Swift.String? = nil, - key_id: Swift.String? = nil, - visibility: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload.visibilityPayload, - selected_repository_ids: [Swift.Int]? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String? = nil, + visibility: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body.JsonPayload.VisibilityPayload, + selectedRepositoryIds: [Swift.Int]? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8352,9 +8441,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Input.Body + path: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Path, + headers: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateOrgSecret.Input.Body ) { self.path = path self.headers = headers @@ -8366,12 +8455,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -8381,12 +8470,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body + public var body: Operations.CodespacesCreateOrUpdateOrgSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created.Body) { + public init(body: Operations.CodespacesCreateOrUpdateOrgSecret.Output.Created.Body) { self.body = body } } @@ -8395,12 +8484,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created) + case created(Operations.CodespacesCreateOrUpdateOrgSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.Created { + public var created: Operations.CodespacesCreateOrUpdateOrgSecret.Output.Created { get throws { switch self { case let .created(response): @@ -8422,12 +8511,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesCreateOrUpdateOrgSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesCreateOrUpdateOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8445,12 +8542,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8468,12 +8565,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-org-secret)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8525,7 +8622,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)`. - public enum codespaces_sol_delete_hyphen_org_hyphen_secret { + public enum CodespacesDeleteOrgSecret { public static let id: Swift.String = "codespaces/delete-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/DELETE/path`. @@ -8533,45 +8630,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesDeleteOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesDeleteOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesDeleteOrgSecret.Input.Path, + headers: Operations.CodespacesDeleteOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8587,12 +8684,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesDeleteOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_delete_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesDeleteOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8610,12 +8715,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/delete(codespaces/delete-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8668,7 +8773,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)`. - public enum codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum CodespacesListSelectedReposForOrgSecret { public static let id: Swift.String = "codespaces/list-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/path`. @@ -8676,61 +8781,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesListSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query + public var query: Operations.CodespacesListSelectedReposForOrgSecret.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesListSelectedReposForOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -8738,9 +8843,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - query: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesListSelectedReposForOrgSecret.Input.Path, + query: Operations.CodespacesListSelectedReposForOrgSecret.Input.Query = .init(), + headers: Operations.CodespacesListSelectedReposForOrgSecret.Input.Headers = .init() ) { self.path = path self.query = query @@ -8752,35 +8857,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Int, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -8790,12 +8895,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body + public var body: Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok.Body) { self.body = body } } @@ -8804,12 +8909,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok) + case ok(Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Ok { + public var ok: Operations.CodespacesListSelectedReposForOrgSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -8827,12 +8932,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-selected-repos-for-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8886,7 +8991,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)`. - public enum codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret { + public enum CodespacesSetSelectedReposForOrgSecret { public static let id: Swift.String = "codespaces/set-selected-repos-for-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/path`. @@ -8894,60 +8999,60 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.CodespacesSetSelectedReposForOrgSecret.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + public var body: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8955,9 +9060,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Input.Body + path: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Path, + headers: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Headers = .init(), + body: Operations.CodespacesSetSelectedReposForOrgSecret.Input.Body ) { self.path = path self.headers = headers @@ -8974,12 +9079,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesSetSelectedReposForOrgSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesSetSelectedReposForOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -8997,12 +9110,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9024,12 +9137,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.CodespacesSetSelectedReposForOrgSecret.Output.Conflict) + /// Conflict when visibility type not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-selected-repos-for-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.codespaces_sol_set_hyphen_selected_hyphen_repos_hyphen_for_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.CodespacesSetSelectedReposForOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -9080,7 +9201,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)`. - public enum codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret { + public enum CodespacesAddSelectedRepoToOrgSecret { public static let id: Swift.String = "codespaces/add-selected-repo-to-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path`. @@ -9088,50 +9209,50 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Path, + headers: Operations.CodespacesAddSelectedRepoToOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9147,12 +9268,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesAddSelectedRepoToOrgSecret.Output.NoContent) + /// No Content when repository was added to the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesAddSelectedRepoToOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9170,12 +9299,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9197,12 +9326,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.CodespacesAddSelectedRepoToOrgSecret.Output.Conflict) + /// Conflict when visibility type is not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.codespaces_sol_add_hyphen_selected_hyphen_repo_hyphen_to_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.CodespacesAddSelectedRepoToOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -9220,12 +9357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-selected-repo-to-org-secret)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9279,7 +9416,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)`. - public enum codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret { + public enum CodespacesRemoveSelectedRepoFromOrgSecret { public static let id: Swift.String = "codespaces/remove-selected-repo-from-org-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path`. @@ -9287,50 +9424,50 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { self.org = org - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path + public var path: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Path, + headers: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9346,12 +9483,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output.NoContent) + /// Response when repository was removed from the selected list + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -9369,12 +9514,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9396,12 +9541,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict) + case conflict(Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output.Conflict) + /// Conflict when visibility type not set to selected + /// + /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.codespaces_sol_remove_hyphen_selected_hyphen_repo_hyphen_from_hyphen_org_hyphen_secret.Output.Conflict { + public var conflict: Operations.CodespacesRemoveSelectedRepoFromOrgSecret.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -9419,12 +9572,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-selected-repo-from-org-secret)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -9476,7 +9629,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/codespaces`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)`. - public enum codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org { + public enum CodespacesGetCodespacesForUserInOrg { public static let id: Swift.String = "codespaces/get-codespaces-for-user-in-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/path`. @@ -9484,61 +9637,61 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path + public var path: Operations.CodespacesGetCodespacesForUserInOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Query + public var query: Operations.CodespacesGetCodespacesForUserInOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers + public var headers: Operations.CodespacesGetCodespacesForUserInOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -9546,9 +9699,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Path, - query: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Query = .init(), - headers: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Input.Headers = .init() + path: Operations.CodespacesGetCodespacesForUserInOrg.Input.Path, + query: Operations.CodespacesGetCodespacesForUserInOrg.Input.Query = .init(), + headers: Operations.CodespacesGetCodespacesForUserInOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -9560,35 +9713,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/responses/200/content/json/codespaces`. - public var codespaces: [Components.Schemas.codespace] - /// Creates a new `jsonPayload`. + public var codespaces: [Components.Schemas.Codespace] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - codespaces: public init( - total_count: Swift.Int, - codespaces: [Components.Schemas.codespace] + totalCount: Swift.Int, + codespaces: [Components.Schemas.Codespace] ) { - self.total_count = total_count + self.totalCount = totalCount self.codespaces = codespaces } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case codespaces } } /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -9598,12 +9751,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body + public var body: Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok.Body) { + public init(body: Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok.Body) { self.body = body } } @@ -9612,12 +9765,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok) + case ok(Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_codespaces_hyphen_for_hyphen_user_hyphen_in_hyphen_org.Output.Ok { + public var ok: Operations.CodespacesGetCodespacesForUserInOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -9635,12 +9788,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9658,12 +9819,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -9681,12 +9842,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9704,12 +9865,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9727,12 +9888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/get(codespaces/get-codespaces-for-user-in-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -9784,7 +9945,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)`. - public enum codespaces_sol_delete_hyphen_from_hyphen_organization { + public enum CodespacesDeleteFromOrganization { public static let id: Swift.String = "codespaces/delete-from-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/DELETE/path`. @@ -9792,52 +9953,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/DELETE/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// The name of the codespace. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/DELETE/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. - /// - codespace_name: The name of the codespace. + /// - codespaceName: The name of the codespace. public init( - org: Components.Parameters.org, - username: Components.Parameters.username, - codespace_name: Components.Parameters.codespace_hyphen_name + org: Components.Parameters.Org, + username: Components.Parameters.Username, + codespaceName: Components.Parameters.CodespaceName ) { self.org = org self.username = username - self.codespace_name = codespace_name + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Path + public var path: Operations.CodespacesDeleteFromOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Headers + public var headers: Operations.CodespacesDeleteFromOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_from_hyphen_organization.Input.Headers = .init() + path: Operations.CodespacesDeleteFromOrganization.Input.Path, + headers: Operations.CodespacesDeleteFromOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -9849,12 +10010,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -9872,12 +10033,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -9895,12 +10064,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -9918,12 +10087,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -9941,12 +10110,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -9964,12 +10133,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/delete(codespaces/delete-from-organization)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10021,7 +10190,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)`. - public enum codespaces_sol_stop_hyphen_in_hyphen_organization { + public enum CodespacesStopInOrganization { public static let id: Swift.String = "codespaces/stop-in-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/path`. @@ -10029,52 +10198,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// The name of the codespace. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. - /// - codespace_name: The name of the codespace. + /// - codespaceName: The name of the codespace. public init( - org: Components.Parameters.org, - username: Components.Parameters.username, - codespace_name: Components.Parameters.codespace_hyphen_name + org: Components.Parameters.Org, + username: Components.Parameters.Username, + codespaceName: Components.Parameters.CodespaceName ) { self.org = org self.username = username - self.codespace_name = codespace_name + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Path + public var path: Operations.CodespacesStopInOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Headers + public var headers: Operations.CodespacesStopInOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Path, - headers: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Input.Headers = .init() + path: Operations.CodespacesStopInOrganization.Input.Path, + headers: Operations.CodespacesStopInOrganization.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -10085,12 +10254,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/POST/responses/200/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -10100,12 +10269,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output.Ok.Body + public var body: Operations.CodespacesStopInOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.CodespacesStopInOrganization.Output.Ok.Body) { self.body = body } } @@ -10114,12 +10283,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output.Ok) + case ok(Operations.CodespacesStopInOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_stop_hyphen_in_hyphen_organization.Output.Ok { + public var ok: Operations.CodespacesStopInOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -10137,12 +10306,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -10160,12 +10337,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -10183,12 +10360,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10206,12 +10383,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10229,12 +10406,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/codespaces/{codespace_name}/stop/post(codespaces/stop-in-organization)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10286,7 +10463,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)`. - public enum codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesListInRepositoryForAuthenticatedUser { public static let id: Swift.String = "codespaces/list-in-repository-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/path`. @@ -10294,61 +10471,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -10356,9 +10533,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Path, + query: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListInRepositoryForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -10370,35 +10547,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/responses/200/content/json/codespaces`. - public var codespaces: [Components.Schemas.codespace] - /// Creates a new `jsonPayload`. + public var codespaces: [Components.Schemas.Codespace] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - codespaces: public init( - total_count: Swift.Int, - codespaces: [Components.Schemas.codespace] + totalCount: Swift.Int, + codespaces: [Components.Schemas.Codespace] ) { - self.total_count = total_count + self.totalCount = totalCount self.codespaces = codespaces } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case codespaces } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -10408,12 +10585,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -10422,12 +10599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesListInRepositoryForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -10445,12 +10622,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -10468,12 +10645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10491,12 +10668,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10514,12 +10691,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10571,7 +10748,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)`. - public enum codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesCreateWithRepoForAuthenticatedUser { public static let id: Swift.String = "codespaces/create-with-repo-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/path`. @@ -10579,41 +10756,41 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Git ref (typically a branch name) for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/ref`. @@ -10625,20 +10802,20 @@ public enum Operations { /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/geo`. - @frozen public enum geoPayload: String, Codable, Hashable, Sendable { - case EuropeWest = "EuropeWest" - case SoutheastAsia = "SoutheastAsia" - case UsEast = "UsEast" - case UsWest = "UsWest" + @frozen public enum GeoPayload: String, Codable, Hashable, Sendable, CaseIterable { + case europeWest = "EuropeWest" + case southeastAsia = "SoutheastAsia" + case usEast = "UsEast" + case usWest = "UsWest" } /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/geo`. - public var geo: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? + public var geo: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body.JsonPayload.GeoPayload? /// IP for location auto-detection when proxying a request /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/client_ip`. - public var client_ip: Swift.String? + public var clientIp: Swift.String? /// Machine type to use for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/machine`. @@ -10646,84 +10823,84 @@ public enum Operations { /// Path to devcontainer.json config to use for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Whether to authorize requested permissions from devcontainer.json /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/multi_repo_permissions_opt_out`. - public var multi_repo_permissions_opt_out: Swift.Bool? + public var multiRepoPermissionsOptOut: Swift.Bool? /// Working directory for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/working_directory`. - public var working_directory: Swift.String? + public var workingDirectory: Swift.String? /// Time in minutes before codespace stops from inactivity /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// Display name for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/retention_period_minutes`. - public var retention_period_minutes: Swift.Int? - /// Creates a new `jsonPayload`. + public var retentionPeriodMinutes: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - ref: Git ref (typically a branch name) for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. - /// - client_ip: IP for location auto-detection when proxying a request + /// - clientIp: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace - /// - devcontainer_path: Path to devcontainer.json config to use for this codespace - /// - multi_repo_permissions_opt_out: Whether to authorize requested permissions from devcontainer.json - /// - working_directory: Working directory for this codespace - /// - idle_timeout_minutes: Time in minutes before codespace stops from inactivity - /// - display_name: Display name for this codespace - /// - retention_period_minutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). + /// - devcontainerPath: Path to devcontainer.json config to use for this codespace + /// - multiRepoPermissionsOptOut: Whether to authorize requested permissions from devcontainer.json + /// - workingDirectory: Working directory for this codespace + /// - idleTimeoutMinutes: Time in minutes before codespace stops from inactivity + /// - displayName: Display name for this codespace + /// - retentionPeriodMinutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). public init( ref: Swift.String? = nil, location: Swift.String? = nil, - geo: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? = nil, - client_ip: Swift.String? = nil, + geo: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body.JsonPayload.GeoPayload? = nil, + clientIp: Swift.String? = nil, machine: Swift.String? = nil, - devcontainer_path: Swift.String? = nil, - multi_repo_permissions_opt_out: Swift.Bool? = nil, - working_directory: Swift.String? = nil, - idle_timeout_minutes: Swift.Int? = nil, - display_name: Swift.String? = nil, - retention_period_minutes: Swift.Int? = nil + devcontainerPath: Swift.String? = nil, + multiRepoPermissionsOptOut: Swift.Bool? = nil, + workingDirectory: Swift.String? = nil, + idleTimeoutMinutes: Swift.Int? = nil, + displayName: Swift.String? = nil, + retentionPeriodMinutes: Swift.Int? = nil ) { self.ref = ref self.location = location self.geo = geo - self.client_ip = client_ip + self.clientIp = clientIp self.machine = machine - self.devcontainer_path = devcontainer_path - self.multi_repo_permissions_opt_out = multi_repo_permissions_opt_out - self.working_directory = working_directory - self.idle_timeout_minutes = idle_timeout_minutes - self.display_name = display_name - self.retention_period_minutes = retention_period_minutes + self.devcontainerPath = devcontainerPath + self.multiRepoPermissionsOptOut = multiRepoPermissionsOptOut + self.workingDirectory = workingDirectory + self.idleTimeoutMinutes = idleTimeoutMinutes + self.displayName = displayName + self.retentionPeriodMinutes = retentionPeriodMinutes } public enum CodingKeys: String, CodingKey { case ref case location case geo - case client_ip + case clientIp = "client_ip" case machine - case devcontainer_path - case multi_repo_permissions_opt_out - case working_directory - case idle_timeout_minutes - case display_name - case retention_period_minutes + case devcontainerPath = "devcontainer_path" + case multiRepoPermissionsOptOut = "multi_repo_permissions_opt_out" + case workingDirectory = "working_directory" + case idleTimeoutMinutes = "idle_timeout_minutes" + case displayName = "display_name" + case retentionPeriodMinutes = "retention_period_minutes" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -10731,9 +10908,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -10745,12 +10922,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/responses/201/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -10760,12 +10937,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -10774,12 +10951,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -10796,12 +10973,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/responses/202/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -10811,12 +10988,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + public var body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body) { + public init(body: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Accepted.Body) { self.body = body } } @@ -10825,12 +11002,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted) + case accepted(Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted { + public var accepted: Operations.CodespacesCreateWithRepoForAuthenticatedUser.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -10848,12 +11025,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -10871,12 +11048,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -10894,12 +11071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -10917,12 +11094,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -10940,12 +11117,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -10965,14 +11142,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -10983,14 +11160,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -11004,7 +11181,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/devcontainers`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)`. - public enum codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesListDevcontainersInRepositoryForAuthenticatedUser { public static let id: Swift.String = "codespaces/list-devcontainers-in-repository-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/path`. @@ -11012,61 +11189,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11074,9 +11251,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Path, + query: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11088,66 +11265,66 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainersPayload`. - public struct devcontainersPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainersPayload/path`. + public var totalCount: Swift.Int + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/DevcontainersPayload`. + public struct DevcontainersPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/DevcontainersPayload/path`. public var path: Swift.String - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainersPayload/name`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/DevcontainersPayload/name`. public var name: Swift.String? - /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainersPayload/display_name`. - public var display_name: Swift.String? - /// Creates a new `devcontainersPayloadPayload`. + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/DevcontainersPayload/display_name`. + public var displayName: Swift.String? + /// Creates a new `DevcontainersPayloadPayload`. /// /// - Parameters: /// - path: /// - name: - /// - display_name: + /// - displayName: public init( path: Swift.String, name: Swift.String? = nil, - display_name: Swift.String? = nil + displayName: Swift.String? = nil ) { self.path = path self.name = name - self.display_name = display_name + self.displayName = displayName } public enum CodingKeys: String, CodingKey { case path case name - case display_name + case displayName = "display_name" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainers`. - public typealias devcontainersPayload = [Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.devcontainersPayloadPayload] + public typealias DevcontainersPayload = [Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload.DevcontainersPayloadPayload] /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/json/devcontainers`. - public var devcontainers: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.devcontainersPayload - /// Creates a new `jsonPayload`. + public var devcontainers: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload.DevcontainersPayload + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - devcontainers: public init( - total_count: Swift.Int, - devcontainers: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.devcontainersPayload + totalCount: Swift.Int, + devcontainers: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload.DevcontainersPayload ) { - self.total_count = total_count + self.totalCount = totalCount self.devcontainers = devcontainers } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case devcontainers } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/devcontainers/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11157,12 +11334,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -11171,12 +11348,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_devcontainers_hyphen_in_hyphen_repository_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11194,12 +11371,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -11217,12 +11394,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -11240,12 +11417,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -11263,12 +11440,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11286,12 +11463,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/devcontainers/get(codespaces/list-devcontainers-in-repository-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11311,14 +11488,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -11329,14 +11506,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -11349,7 +11526,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/machines`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)`. - public enum codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesRepoMachinesForAuthenticatedUser { public static let id: Swift.String = "codespaces/repo-machines-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/path`. @@ -11357,25 +11534,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/query`. public struct Query: Sendable, Hashable { /// The location to check for available machines. Assigned by IP if not provided. @@ -11385,7 +11562,7 @@ public enum Operations { /// IP for location auto-detection when proxying a request /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/query/client_ip`. - public var client_ip: Swift.String? + public var clientIp: Swift.String? /// The branch or commit to check for prebuild availability and devcontainer restrictions. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/query/ref`. @@ -11394,31 +11571,31 @@ public enum Operations { /// /// - Parameters: /// - location: The location to check for available machines. Assigned by IP if not provided. - /// - client_ip: IP for location auto-detection when proxying a request + /// - clientIp: IP for location auto-detection when proxying a request /// - ref: The branch or commit to check for prebuild availability and devcontainer restrictions. public init( location: Swift.String? = nil, - client_ip: Swift.String? = nil, + clientIp: Swift.String? = nil, ref: Swift.String? = nil ) { self.location = location - self.client_ip = client_ip + self.clientIp = clientIp self.ref = ref } } - public var query: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11426,9 +11603,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Path, + query: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesRepoMachinesForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11440,35 +11617,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/responses/200/content/json/machines`. - public var machines: [Components.Schemas.codespace_hyphen_machine] - /// Creates a new `jsonPayload`. + public var machines: [Components.Schemas.CodespaceMachine] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - machines: public init( - total_count: Swift.Int, - machines: [Components.Schemas.codespace_hyphen_machine] + totalCount: Swift.Int, + machines: [Components.Schemas.CodespaceMachine] ) { - self.total_count = total_count + self.totalCount = totalCount self.machines = machines } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case machines } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/machines/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11478,12 +11655,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -11492,12 +11669,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_repo_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesRepoMachinesForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11515,12 +11692,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -11538,12 +11723,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -11561,12 +11746,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -11584,12 +11769,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11607,12 +11792,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/machines/get(codespaces/repo-machines-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11664,7 +11849,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/new`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)`. - public enum codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesPreFlightWithRepoForAuthenticatedUser { public static let id: Swift.String = "codespaces/pre-flight-with-repo-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/path`. @@ -11672,25 +11857,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/query`. public struct Query: Sendable, Hashable { /// The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. @@ -11700,33 +11885,33 @@ public enum Operations { /// An alternative IP for default location auto-detection, such as when proxying a request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/query/client_ip`. - public var client_ip: Swift.String? + public var clientIp: Swift.String? /// Creates a new `Query`. /// /// - Parameters: /// - ref: The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. - /// - client_ip: An alternative IP for default location auto-detection, such as when proxying a request. + /// - clientIp: An alternative IP for default location auto-detection, such as when proxying a request. public init( ref: Swift.String? = nil, - client_ip: Swift.String? = nil + clientIp: Swift.String? = nil ) { self.ref = ref - self.client_ip = client_ip + self.clientIp = clientIp } } - public var query: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -11734,9 +11919,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - query: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Path, + query: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.query = query @@ -11748,58 +11933,58 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json/billable_owner`. - public var billable_owner: Components.Schemas.simple_hyphen_user? + public var billableOwner: Components.Schemas.SimpleUser? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json/defaults`. - public struct defaultsPayload: Codable, Hashable, Sendable { + public struct DefaultsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json/defaults/location`. public var location: Swift.String /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json/defaults/devcontainer_path`. - public var devcontainer_path: Swift.String? - /// Creates a new `defaultsPayload`. + public var devcontainerPath: Swift.String? + /// Creates a new `DefaultsPayload`. /// /// - Parameters: /// - location: - /// - devcontainer_path: + /// - devcontainerPath: public init( location: Swift.String, - devcontainer_path: Swift.String? = nil + devcontainerPath: Swift.String? = nil ) { self.location = location - self.devcontainer_path = devcontainer_path + self.devcontainerPath = devcontainerPath } public enum CodingKeys: String, CodingKey { case location - case devcontainer_path + case devcontainerPath = "devcontainer_path" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/json/defaults`. - public var defaults: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.defaultsPayload? - /// Creates a new `jsonPayload`. + public var defaults: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body.JsonPayload.DefaultsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - billable_owner: + /// - billableOwner: /// - defaults: public init( - billable_owner: Components.Schemas.simple_hyphen_user? = nil, - defaults: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.defaultsPayload? = nil + billableOwner: Components.Schemas.SimpleUser? = nil, + defaults: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body.JsonPayload.DefaultsPayload? = nil ) { - self.billable_owner = billable_owner + self.billableOwner = billableOwner self.defaults = defaults } public enum CodingKeys: String, CodingKey { - case billable_owner + case billableOwner = "billable_owner" case defaults } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/new/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -11809,12 +11994,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -11823,12 +12008,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_pre_hyphen_flight_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesPreFlightWithRepoForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -11846,12 +12031,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -11869,12 +12054,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -11892,12 +12077,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -11949,7 +12134,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/permissions_check`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)`. - public enum codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer { + public enum CodespacesCheckPermissionsForDevcontainer { public static let id: Swift.String = "codespaces/check-permissions-for-devcontainer" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/path`. @@ -11957,25 +12142,25 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Path + public var path: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/query`. public struct Query: Sendable, Hashable { /// The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically be a branch name (`heads/BRANCH_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -11985,33 +12170,33 @@ public enum Operations { /// Path to the devcontainer.json configuration to use for the permission check. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/query/devcontainer_path`. - public var devcontainer_path: Swift.String + public var devcontainerPath: Swift.String /// Creates a new `Query`. /// /// - Parameters: /// - ref: The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically be a branch name (`heads/BRANCH_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. - /// - devcontainer_path: Path to the devcontainer.json configuration to use for the permission check. + /// - devcontainerPath: Path to the devcontainer.json configuration to use for the permission check. public init( ref: Swift.String, - devcontainer_path: Swift.String + devcontainerPath: Swift.String ) { self.ref = ref - self.devcontainer_path = devcontainer_path + self.devcontainerPath = devcontainerPath } } - public var query: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Query + public var query: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Headers + public var headers: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12019,9 +12204,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Path, - query: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Query, - headers: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Input.Headers = .init() + path: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Path, + query: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Query, + headers: Operations.CodespacesCheckPermissionsForDevcontainer.Input.Headers = .init() ) { self.path = path self.query = query @@ -12033,12 +12218,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/permissions_check/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_permissions_hyphen_check_hyphen_for_hyphen_devcontainer) + case json(Components.Schemas.CodespacesPermissionsCheckForDevcontainer) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_permissions_hyphen_check_hyphen_for_hyphen_devcontainer { + public var json: Components.Schemas.CodespacesPermissionsCheckForDevcontainer { get throws { switch self { case let .json(body): @@ -12048,12 +12233,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output.Ok.Body + public var body: Operations.CodespacesCheckPermissionsForDevcontainer.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output.Ok.Body) { + public init(body: Operations.CodespacesCheckPermissionsForDevcontainer.Output.Ok.Body) { self.body = body } } @@ -12062,12 +12247,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output.Ok) + case ok(Operations.CodespacesCheckPermissionsForDevcontainer.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_check_hyphen_permissions_hyphen_for_hyphen_devcontainer.Output.Ok { + public var ok: Operations.CodespacesCheckPermissionsForDevcontainer.Output.Ok { get throws { switch self { case let .ok(response): @@ -12085,12 +12270,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -12108,12 +12293,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -12131,12 +12316,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -12154,12 +12339,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -12177,12 +12362,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -12235,7 +12420,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/get(codespaces/list-repo-secrets)`. - public enum codespaces_sol_list_hyphen_repo_hyphen_secrets { + public enum CodespacesListRepoSecrets { public static let id: Swift.String = "codespaces/list-repo-secrets" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/path`. @@ -12243,61 +12428,61 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Path + public var path: Operations.CodespacesListRepoSecrets.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Query + public var query: Operations.CodespacesListRepoSecrets.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Headers + public var headers: Operations.CodespacesListRepoSecrets.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -12305,9 +12490,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Path, - query: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Input.Headers = .init() + path: Operations.CodespacesListRepoSecrets.Input.Path, + query: Operations.CodespacesListRepoSecrets.Input.Query = .init(), + headers: Operations.CodespacesListRepoSecrets.Input.Headers = .init() ) { self.path = path self.query = query @@ -12319,49 +12504,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers + public var headers: Operations.CodespacesListRepoSecrets.Output.Ok.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.repo_hyphen_codespaces_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.RepoCodespacesSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.repo_hyphen_codespaces_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.RepoCodespacesSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListRepoSecrets.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListRepoSecrets.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -12371,15 +12556,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + public var body: Operations.CodespacesListRepoSecrets.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Headers = .init(), - body: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok.Body + headers: Operations.CodespacesListRepoSecrets.Output.Ok.Headers = .init(), + body: Operations.CodespacesListRepoSecrets.Output.Ok.Body ) { self.headers = headers self.body = body @@ -12390,12 +12575,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/get(codespaces/list-repo-secrets)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok) + case ok(Operations.CodespacesListRepoSecrets.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_repo_hyphen_secrets.Output.Ok { + public var ok: Operations.CodespacesListRepoSecrets.Output.Ok { get throws { switch self { case let .ok(response): @@ -12448,7 +12633,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/public-key/get(codespaces/get-repo-public-key)`. - public enum codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key { + public enum CodespacesGetRepoPublicKey { public static let id: Swift.String = "codespaces/get-repo-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/path`. @@ -12456,45 +12641,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path + public var path: Operations.CodespacesGetRepoPublicKey.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.CodespacesGetRepoPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.CodespacesGetRepoPublicKey.Input.Path, + headers: Operations.CodespacesGetRepoPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12505,12 +12690,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_public_hyphen_key) + case json(Components.Schemas.CodespacesPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_public_hyphen_key { + public var json: Components.Schemas.CodespacesPublicKey { get throws { switch self { case let .json(body): @@ -12520,12 +12705,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.CodespacesGetRepoPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok.Body) { + public init(body: Operations.CodespacesGetRepoPublicKey.Output.Ok.Body) { self.body = body } } @@ -12534,12 +12719,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/public-key/get(codespaces/get-repo-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.CodespacesGetRepoPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_repo_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.CodespacesGetRepoPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -12591,7 +12776,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/get(codespaces/get-repo-secret)`. - public enum codespaces_sol_get_hyphen_repo_hyphen_secret { + public enum CodespacesGetRepoSecret { public static let id: Swift.String = "codespaces/get-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/path`. @@ -12599,52 +12784,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.CodespacesGetRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesGetRepoSecret.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Input.Headers = .init() + path: Operations.CodespacesGetRepoSecret.Input.Path, + headers: Operations.CodespacesGetRepoSecret.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -12655,12 +12840,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repo_hyphen_codespaces_hyphen_secret) + case json(Components.Schemas.RepoCodespacesSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repo_hyphen_codespaces_hyphen_secret { + public var json: Components.Schemas.RepoCodespacesSecret { get throws { switch self { case let .json(body): @@ -12670,12 +12855,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body + public var body: Operations.CodespacesGetRepoSecret.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output.Ok.Body) { + public init(body: Operations.CodespacesGetRepoSecret.Output.Ok.Body) { self.body = body } } @@ -12684,12 +12869,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/get(codespaces/get-repo-secret)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output.Ok) + case ok(Operations.CodespacesGetRepoSecret.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_repo_hyphen_secret.Output.Ok { + public var ok: Operations.CodespacesGetRepoSecret.Output.Ok { get throws { switch self { case let .ok(response): @@ -12742,7 +12927,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)`. - public enum codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret { + public enum CodespacesCreateOrUpdateRepoSecret { public static let id: Swift.String = "codespaces/create-or-update-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/path`. @@ -12750,77 +12935,77 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers + public var headers: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String? - /// Creates a new `jsonPayload`. + public var keyId: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. public init( - encrypted_value: Swift.String? = nil, - key_id: Swift.String? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateOrUpdateRepoSecret.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + public var body: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -12828,9 +13013,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Input.Body + path: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Path, + headers: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateRepoSecret.Input.Body ) { self.path = path self.headers = headers @@ -12842,12 +13027,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -12857,12 +13042,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body + public var body: Operations.CodespacesCreateOrUpdateRepoSecret.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created.Body) { + public init(body: Operations.CodespacesCreateOrUpdateRepoSecret.Output.Created.Body) { self.body = body } } @@ -12871,12 +13056,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created) + case created(Operations.CodespacesCreateOrUpdateRepoSecret.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.Created { + public var created: Operations.CodespacesCreateOrUpdateRepoSecret.Output.Created { get throws { switch self { case let .created(response): @@ -12898,12 +13083,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesCreateOrUpdateRepoSecret.Output.NoContent) + /// Response when updating a secret + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesCreateOrUpdateRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -12955,7 +13148,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)`. - public enum codespaces_sol_delete_hyphen_repo_hyphen_secret { + public enum CodespacesDeleteRepoSecret { public static let id: Swift.String = "codespaces/delete-repo-secret" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/DELETE/path`. @@ -12963,37 +13156,37 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The name of the secret. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - secret_name: Components.Parameters.secret_hyphen_name + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + secretName: Components.Parameters.SecretName ) { self.owner = owner self.repo = repo - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input.Path + public var path: Operations.CodespacesDeleteRepoSecret.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Input.Path) { + public init(path: Operations.CodespacesDeleteRepoSecret.Input.Path) { self.path = path } } @@ -13007,12 +13200,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent) + case noContent(Operations.CodespacesDeleteRepoSecret.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/secrets/{secret_name}/delete(codespaces/delete-repo-secret)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_delete_hyphen_repo_hyphen_secret.Output.NoContent { + public var noContent: Operations.CodespacesDeleteRepoSecret.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -13039,7 +13240,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)`. - public enum codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesCreateWithPrForAuthenticatedUser { public static let id: Swift.String = "codespaces/create-with-pr-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/path`. @@ -13047,48 +13248,48 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The number that identifies the pull request. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/path/pull_number`. - public var pull_number: Components.Parameters.pull_hyphen_number + public var pullNumber: Components.Parameters.PullNumber /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - pull_number: The number that identifies the pull request. + /// - pullNumber: The number that identifies the pull request. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - pull_number: Components.Parameters.pull_hyphen_number + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + pullNumber: Components.Parameters.PullNumber ) { self.owner = owner self.repo = repo - self.pull_number = pull_number + self.pullNumber = pullNumber } } - public var path: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/location`. @@ -13096,20 +13297,20 @@ public enum Operations { /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/geo`. - @frozen public enum geoPayload: String, Codable, Hashable, Sendable { - case EuropeWest = "EuropeWest" - case SoutheastAsia = "SoutheastAsia" - case UsEast = "UsEast" - case UsWest = "UsWest" + @frozen public enum GeoPayload: String, Codable, Hashable, Sendable, CaseIterable { + case europeWest = "EuropeWest" + case southeastAsia = "SoutheastAsia" + case usEast = "UsEast" + case usWest = "UsWest" } /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/geo`. - public var geo: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? + public var geo: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body.JsonPayload.GeoPayload? /// IP for location auto-detection when proxying a request /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/client_ip`. - public var client_ip: Swift.String? + public var clientIp: Swift.String? /// Machine type to use for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/machine`. @@ -13117,80 +13318,80 @@ public enum Operations { /// Path to devcontainer.json config to use for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Whether to authorize requested permissions from devcontainer.json /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/multi_repo_permissions_opt_out`. - public var multi_repo_permissions_opt_out: Swift.Bool? + public var multiRepoPermissionsOptOut: Swift.Bool? /// Working directory for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/working_directory`. - public var working_directory: Swift.String? + public var workingDirectory: Swift.String? /// Time in minutes before codespace stops from inactivity /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// Display name for this codespace /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/retention_period_minutes`. - public var retention_period_minutes: Swift.Int? - /// Creates a new `jsonPayload`. + public var retentionPeriodMinutes: Swift.Int? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. - /// - client_ip: IP for location auto-detection when proxying a request + /// - clientIp: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace - /// - devcontainer_path: Path to devcontainer.json config to use for this codespace - /// - multi_repo_permissions_opt_out: Whether to authorize requested permissions from devcontainer.json - /// - working_directory: Working directory for this codespace - /// - idle_timeout_minutes: Time in minutes before codespace stops from inactivity - /// - display_name: Display name for this codespace - /// - retention_period_minutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). + /// - devcontainerPath: Path to devcontainer.json config to use for this codespace + /// - multiRepoPermissionsOptOut: Whether to authorize requested permissions from devcontainer.json + /// - workingDirectory: Working directory for this codespace + /// - idleTimeoutMinutes: Time in minutes before codespace stops from inactivity + /// - displayName: Display name for this codespace + /// - retentionPeriodMinutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). public init( location: Swift.String? = nil, - geo: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? = nil, - client_ip: Swift.String? = nil, + geo: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body.JsonPayload.GeoPayload? = nil, + clientIp: Swift.String? = nil, machine: Swift.String? = nil, - devcontainer_path: Swift.String? = nil, - multi_repo_permissions_opt_out: Swift.Bool? = nil, - working_directory: Swift.String? = nil, - idle_timeout_minutes: Swift.Int? = nil, - display_name: Swift.String? = nil, - retention_period_minutes: Swift.Int? = nil + devcontainerPath: Swift.String? = nil, + multiRepoPermissionsOptOut: Swift.Bool? = nil, + workingDirectory: Swift.String? = nil, + idleTimeoutMinutes: Swift.Int? = nil, + displayName: Swift.String? = nil, + retentionPeriodMinutes: Swift.Int? = nil ) { self.location = location self.geo = geo - self.client_ip = client_ip + self.clientIp = clientIp self.machine = machine - self.devcontainer_path = devcontainer_path - self.multi_repo_permissions_opt_out = multi_repo_permissions_opt_out - self.working_directory = working_directory - self.idle_timeout_minutes = idle_timeout_minutes - self.display_name = display_name - self.retention_period_minutes = retention_period_minutes + self.devcontainerPath = devcontainerPath + self.multiRepoPermissionsOptOut = multiRepoPermissionsOptOut + self.workingDirectory = workingDirectory + self.idleTimeoutMinutes = idleTimeoutMinutes + self.displayName = displayName + self.retentionPeriodMinutes = retentionPeriodMinutes } public enum CodingKeys: String, CodingKey { case location case geo - case client_ip + case clientIp = "client_ip" case machine - case devcontainer_path - case multi_repo_permissions_opt_out - case working_directory - case idle_timeout_minutes - case display_name - case retention_period_minutes + case devcontainerPath = "devcontainer_path" + case multiRepoPermissionsOptOut = "multi_repo_permissions_opt_out" + case workingDirectory = "working_directory" + case idleTimeoutMinutes = "idle_timeout_minutes" + case displayName = "display_name" + case retentionPeriodMinutes = "retention_period_minutes" } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -13198,9 +13399,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -13212,12 +13413,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/responses/201/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -13227,12 +13428,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -13241,12 +13442,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -13263,12 +13464,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/responses/202/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -13278,12 +13479,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + public var body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body) { + public init(body: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Accepted.Body) { self.body = body } } @@ -13292,12 +13493,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted) + case accepted(Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted { + public var accepted: Operations.CodespacesCreateWithPrForAuthenticatedUser.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -13315,12 +13516,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -13338,12 +13539,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -13361,12 +13562,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13384,12 +13585,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -13441,7 +13642,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)`. - public enum codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesListForAuthenticatedUser { public static let id: Swift.String = "codespaces/list-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/GET/query`. @@ -13449,52 +13650,52 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/codespaces/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/codespaces/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// ID of the Repository to filter on /// /// - Remark: Generated from `#/paths/user/codespaces/GET/query/repository_id`. - public var repository_id: Components.Parameters.repository_hyphen_id_hyphen_in_hyphen_query? + public var repositoryId: Components.Parameters.RepositoryIdInQuery? /// 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)." + /// - perPage: 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)." - /// - repository_id: ID of the Repository to filter on + /// - repositoryId: ID of the Repository to filter on public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil, - repository_id: Components.Parameters.repository_hyphen_id_hyphen_in_hyphen_query? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil, + repositoryId: Components.Parameters.RepositoryIdInQuery? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page - self.repository_id = repository_id + self.repositoryId = repositoryId } } - public var query: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesListForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/codespaces/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesListForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.CodespacesListForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -13505,35 +13706,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/codespaces/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/codespaces/GET/responses/200/content/json/codespaces`. - public var codespaces: [Components.Schemas.codespace] - /// Creates a new `jsonPayload`. + public var codespaces: [Components.Schemas.Codespace] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - codespaces: public init( - total_count: Swift.Int, - codespaces: [Components.Schemas.codespace] + totalCount: Swift.Int, + codespaces: [Components.Schemas.Codespace] ) { - self.total_count = total_count + self.totalCount = totalCount self.codespaces = codespaces } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case codespaces } } /// - Remark: Generated from `#/paths/user/codespaces/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -13543,12 +13744,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesListForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -13557,12 +13758,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesListForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesListForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -13580,12 +13781,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -13603,12 +13812,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -13626,12 +13835,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -13649,12 +13858,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -13672,12 +13881,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -13731,31 +13940,31 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/codespaces`. /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)`. - public enum codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesCreateForAuthenticatedUser { public static let id: Swift.String = "codespaces/create-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesCreateForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json`. - @frozen public enum jsonPayload: Codable, Hashable, Sendable { + @frozen public enum JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1`. public struct Case1Payload: Codable, Hashable, Sendable { /// Repository id for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Git ref (typically a branch name) for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/ref`. @@ -13767,20 +13976,20 @@ public enum Operations { /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/geo`. - @frozen public enum geoPayload: String, Codable, Hashable, Sendable { - case EuropeWest = "EuropeWest" - case SoutheastAsia = "SoutheastAsia" - case UsEast = "UsEast" - case UsWest = "UsWest" + @frozen public enum GeoPayload: String, Codable, Hashable, Sendable, CaseIterable { + case europeWest = "EuropeWest" + case southeastAsia = "SoutheastAsia" + case usEast = "UsEast" + case usWest = "UsWest" } /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/geo`. - public var geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload.geoPayload? + public var geo: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case1Payload.GeoPayload? /// IP for location auto-detection when proxying a request /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/client_ip`. - public var client_ip: Swift.String? + public var clientIp: Swift.String? /// Machine type to use for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/machine`. @@ -13788,121 +13997,121 @@ public enum Operations { /// Path to devcontainer.json config to use for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Whether to authorize requested permissions from devcontainer.json /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/multi_repo_permissions_opt_out`. - public var multi_repo_permissions_opt_out: Swift.Bool? + public var multiRepoPermissionsOptOut: Swift.Bool? /// Working directory for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/working_directory`. - public var working_directory: Swift.String? + public var workingDirectory: Swift.String? /// Time in minutes before codespace stops from inactivity /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// Display name for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/retention_period_minutes`. - public var retention_period_minutes: Swift.Int? + public var retentionPeriodMinutes: Swift.Int? /// Creates a new `Case1Payload`. /// /// - Parameters: - /// - repository_id: Repository id for this codespace + /// - repositoryId: Repository id for this codespace /// - ref: Git ref (typically a branch name) for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. - /// - client_ip: IP for location auto-detection when proxying a request + /// - clientIp: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace - /// - devcontainer_path: Path to devcontainer.json config to use for this codespace - /// - multi_repo_permissions_opt_out: Whether to authorize requested permissions from devcontainer.json - /// - working_directory: Working directory for this codespace - /// - idle_timeout_minutes: Time in minutes before codespace stops from inactivity - /// - display_name: Display name for this codespace - /// - retention_period_minutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). + /// - devcontainerPath: Path to devcontainer.json config to use for this codespace + /// - multiRepoPermissionsOptOut: Whether to authorize requested permissions from devcontainer.json + /// - workingDirectory: Working directory for this codespace + /// - idleTimeoutMinutes: Time in minutes before codespace stops from inactivity + /// - displayName: Display name for this codespace + /// - retentionPeriodMinutes: Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). public init( - repository_id: Swift.Int, + repositoryId: Swift.Int, ref: Swift.String? = nil, location: Swift.String? = nil, - geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload.geoPayload? = nil, - client_ip: Swift.String? = nil, + geo: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case1Payload.GeoPayload? = nil, + clientIp: Swift.String? = nil, machine: Swift.String? = nil, - devcontainer_path: Swift.String? = nil, - multi_repo_permissions_opt_out: Swift.Bool? = nil, - working_directory: Swift.String? = nil, - idle_timeout_minutes: Swift.Int? = nil, - display_name: Swift.String? = nil, - retention_period_minutes: Swift.Int? = nil + devcontainerPath: Swift.String? = nil, + multiRepoPermissionsOptOut: Swift.Bool? = nil, + workingDirectory: Swift.String? = nil, + idleTimeoutMinutes: Swift.Int? = nil, + displayName: Swift.String? = nil, + retentionPeriodMinutes: Swift.Int? = nil ) { - self.repository_id = repository_id + self.repositoryId = repositoryId self.ref = ref self.location = location self.geo = geo - self.client_ip = client_ip + self.clientIp = clientIp self.machine = machine - self.devcontainer_path = devcontainer_path - self.multi_repo_permissions_opt_out = multi_repo_permissions_opt_out - self.working_directory = working_directory - self.idle_timeout_minutes = idle_timeout_minutes - self.display_name = display_name - self.retention_period_minutes = retention_period_minutes + self.devcontainerPath = devcontainerPath + self.multiRepoPermissionsOptOut = multiRepoPermissionsOptOut + self.workingDirectory = workingDirectory + self.idleTimeoutMinutes = idleTimeoutMinutes + self.displayName = displayName + self.retentionPeriodMinutes = retentionPeriodMinutes } public enum CodingKeys: String, CodingKey { - case repository_id + case repositoryId = "repository_id" case ref case location case geo - case client_ip + case clientIp = "client_ip" case machine - case devcontainer_path - case multi_repo_permissions_opt_out - case working_directory - case idle_timeout_minutes - case display_name - case retention_period_minutes + case devcontainerPath = "devcontainer_path" + case multiRepoPermissionsOptOut = "multi_repo_permissions_opt_out" + case workingDirectory = "working_directory" + case idleTimeoutMinutes = "idle_timeout_minutes" + case displayName = "display_name" + case retentionPeriodMinutes = "retention_period_minutes" } } /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1`. - case case1(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload) + case case1(Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case1Payload) /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2`. public struct Case2Payload: Codable, Hashable, Sendable { /// Pull request number for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/pull_request`. - public struct pull_requestPayload: Codable, Hashable, Sendable { + public struct PullRequestPayload: Codable, Hashable, Sendable { /// Pull request number /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/pull_request/pull_request_number`. - public var pull_request_number: Swift.Int + public var pullRequestNumber: Swift.Int /// Repository id for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/pull_request/repository_id`. - public var repository_id: Swift.Int - /// Creates a new `pull_requestPayload`. + public var repositoryId: Swift.Int + /// Creates a new `PullRequestPayload`. /// /// - Parameters: - /// - pull_request_number: Pull request number - /// - repository_id: Repository id for this codespace + /// - pullRequestNumber: Pull request number + /// - repositoryId: Repository id for this codespace public init( - pull_request_number: Swift.Int, - repository_id: Swift.Int + pullRequestNumber: Swift.Int, + repositoryId: Swift.Int ) { - self.pull_request_number = pull_request_number - self.repository_id = repository_id + self.pullRequestNumber = pullRequestNumber + self.repositoryId = repositoryId } public enum CodingKeys: String, CodingKey { - case pull_request_number - case repository_id + case pullRequestNumber = "pull_request_number" + case repositoryId = "repository_id" } } /// Pull request number for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/pull_request`. - public var pull_request: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload.pull_requestPayload + public var pullRequest: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case2Payload.PullRequestPayload /// The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/location`. @@ -13910,16 +14119,16 @@ public enum Operations { /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/geo`. - @frozen public enum geoPayload: String, Codable, Hashable, Sendable { - case EuropeWest = "EuropeWest" - case SoutheastAsia = "SoutheastAsia" - case UsEast = "UsEast" - case UsWest = "UsWest" + @frozen public enum GeoPayload: String, Codable, Hashable, Sendable, CaseIterable { + case europeWest = "EuropeWest" + case southeastAsia = "SoutheastAsia" + case usEast = "UsEast" + case usWest = "UsWest" } /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/geo`. - public var geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload.geoPayload? + public var geo: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case2Payload.GeoPayload? /// Machine type to use for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/machine`. @@ -13927,54 +14136,54 @@ public enum Operations { /// Path to devcontainer.json config to use for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/devcontainer_path`. - public var devcontainer_path: Swift.String? + public var devcontainerPath: Swift.String? /// Working directory for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/working_directory`. - public var working_directory: Swift.String? + public var workingDirectory: Swift.String? /// Time in minutes before codespace stops from inactivity /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/idle_timeout_minutes`. - public var idle_timeout_minutes: Swift.Int? + public var idleTimeoutMinutes: Swift.Int? /// Creates a new `Case2Payload`. /// /// - Parameters: - /// - pull_request: Pull request number for this codespace + /// - pullRequest: Pull request number for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// - machine: Machine type to use for this codespace - /// - devcontainer_path: Path to devcontainer.json config to use for this codespace - /// - working_directory: Working directory for this codespace - /// - idle_timeout_minutes: Time in minutes before codespace stops from inactivity + /// - devcontainerPath: Path to devcontainer.json config to use for this codespace + /// - workingDirectory: Working directory for this codespace + /// - idleTimeoutMinutes: Time in minutes before codespace stops from inactivity public init( - pull_request: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload.pull_requestPayload, + pullRequest: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case2Payload.PullRequestPayload, location: Swift.String? = nil, - geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload.geoPayload? = nil, + geo: Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case2Payload.GeoPayload? = nil, machine: Swift.String? = nil, - devcontainer_path: Swift.String? = nil, - working_directory: Swift.String? = nil, - idle_timeout_minutes: Swift.Int? = nil + devcontainerPath: Swift.String? = nil, + workingDirectory: Swift.String? = nil, + idleTimeoutMinutes: Swift.Int? = nil ) { - self.pull_request = pull_request + self.pullRequest = pullRequest self.location = location self.geo = geo self.machine = machine - self.devcontainer_path = devcontainer_path - self.working_directory = working_directory - self.idle_timeout_minutes = idle_timeout_minutes + self.devcontainerPath = devcontainerPath + self.workingDirectory = workingDirectory + self.idleTimeoutMinutes = idleTimeoutMinutes } public enum CodingKeys: String, CodingKey { - case pull_request + case pullRequest = "pull_request" case location case geo case machine - case devcontainer_path - case working_directory - case idle_timeout_minutes + case devcontainerPath = "devcontainer_path" + case workingDirectory = "working_directory" + case idleTimeoutMinutes = "idle_timeout_minutes" } } /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2`. - case case2(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload) + case case2(Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload.Case2Payload) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { @@ -14005,17 +14214,17 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesCreateForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.CodespacesCreateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -14026,12 +14235,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/POST/responses/201/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -14041,12 +14250,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.CodespacesCreateForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.CodespacesCreateForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -14055,12 +14264,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.CodespacesCreateForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.CodespacesCreateForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -14077,12 +14286,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/POST/responses/202/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -14092,12 +14301,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + public var body: Operations.CodespacesCreateForAuthenticatedUser.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body) { + public init(body: Operations.CodespacesCreateForAuthenticatedUser.Output.Accepted.Body) { self.body = body } } @@ -14106,12 +14315,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted) + case accepted(Operations.CodespacesCreateForAuthenticatedUser.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted { + public var accepted: Operations.CodespacesCreateForAuthenticatedUser.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -14129,12 +14338,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -14152,12 +14361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -14175,12 +14384,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -14198,12 +14407,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -14258,7 +14467,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/secrets`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/get(codespaces/list-secrets-for-authenticated-user)`. - public enum codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesListSecretsForAuthenticatedUser { public static let id: Swift.String = "codespaces/list-secrets-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/query`. @@ -14266,45 +14475,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query + public var query: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Query /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Query = .init(), - headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + query: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Query = .init(), + headers: Operations.CodespacesListSecretsForAuthenticatedUser.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -14315,49 +14524,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers + public var headers: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Headers /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/content/json/secrets`. - public var secrets: [Components.Schemas.codespaces_hyphen_secret] - /// Creates a new `jsonPayload`. + public var secrets: [Components.Schemas.CodespacesSecret] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - secrets: public init( - total_count: Swift.Int, - secrets: [Components.Schemas.codespaces_hyphen_secret] + totalCount: Swift.Int, + secrets: [Components.Schemas.CodespacesSecret] ) { - self.total_count = total_count + self.totalCount = totalCount self.secrets = secrets } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case secrets } } /// - Remark: Generated from `#/paths/user/codespaces/secrets/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -14367,15 +14576,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Headers = .init(), - body: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + headers: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Headers = .init(), + body: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok.Body ) { self.headers = headers self.body = body @@ -14386,12 +14595,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/get(codespaces/list-secrets-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_secrets_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesListSecretsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -14445,26 +14654,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/secrets/public-key`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/public-key/get(codespaces/get-public-key-for-authenticated-user)`. - public enum codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesGetPublicKeyForAuthenticatedUser { public static let id: Swift.String = "codespaces/get-public-key-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) { + public init(headers: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Input.Headers = .init()) { self.headers = headers } } @@ -14473,12 +14682,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/secrets/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/public-key/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_user_hyphen_public_hyphen_key) + case json(Components.Schemas.CodespacesUserPublicKey) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_user_hyphen_public_hyphen_key { + public var json: Components.Schemas.CodespacesUserPublicKey { get throws { switch self { case let .json(body): @@ -14488,12 +14697,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -14502,12 +14711,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/public-key/get(codespaces/get-public-key-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_public_hyphen_key_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesGetPublicKeyForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -14561,7 +14770,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/get(codespaces/get-secret-for-authenticated-user)`. - public enum codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesGetSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/get-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/GET/path`. @@ -14569,36 +14778,36 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - public init(secret_name: Components.Parameters.secret_hyphen_name) { - self.secret_name = secret_name + /// - secretName: The name of the secret. + public init(secretName: Components.Parameters.SecretName) { + self.secretName = secretName } } - public var path: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetSecretForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -14609,12 +14818,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespaces_hyphen_secret) + case json(Components.Schemas.CodespacesSecret) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespaces_hyphen_secret { + public var json: Components.Schemas.CodespacesSecret { get throws { switch self { case let .json(body): @@ -14624,12 +14833,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesGetSecretForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesGetSecretForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -14638,12 +14847,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/get(codespaces/get-secret-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesGetSecretForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesGetSecretForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -14698,7 +14907,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)`. - public enum codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesCreateOrUpdateSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/create-or-update-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/path`. @@ -14706,47 +14915,47 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - public init(secret_name: Components.Parameters.secret_hyphen_name) { - self.secret_name = secret_name + /// - secretName: The name of the secret. + public init(secretName: Components.Parameters.SecretName) { + self.secretName = secretName } } - public var path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/key_id`. - public var key_id: Swift.String - /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_idsPayload`. - public struct selected_repository_idsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_idsPayload/value1`. + public var keyId: Swift.String + /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload`. + public struct SelectedRepositoryIdsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload/value1`. public var value1: Swift.Int? - /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_idsPayload/value2`. + /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/SelectedRepositoryIdsPayload/value2`. public var value2: Swift.String? - /// Creates a new `selected_repository_idsPayloadPayload`. + /// Creates a new `SelectedRepositoryIdsPayloadPayload`. /// /// - Parameters: /// - value1: @@ -14761,19 +14970,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try decoder.decodeFromSingleValueContainer() + self.value1 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } do { - value2 = try decoder.decodeFromSingleValueContainer() + self.value2 = try decoder.decodeFromSingleValueContainer() } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -14782,44 +14991,44 @@ public enum Operations { } public func encode(to encoder: any Encoder) throws { try encoder.encodeFirstNonNilValueToSingleValueContainer([ - value1, - value2 + self.value1, + self.value2 ]) } } /// An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`. - public typealias selected_repository_idsPayload = [Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.selected_repository_idsPayloadPayload] + public typealias SelectedRepositoryIdsPayload = [Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body.JsonPayload.SelectedRepositoryIdsPayloadPayload] /// An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.selected_repository_idsPayload? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body.JsonPayload.SelectedRepositoryIdsPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - encrypted_value: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint. - /// - key_id: ID of the key you used to encrypt the secret. - /// - selected_repository_ids: An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. + /// - encryptedValue: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint. + /// - keyId: ID of the key you used to encrypt the secret. + /// - selectedRepositoryIds: An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. public init( - encrypted_value: Swift.String? = nil, - key_id: Swift.String, - selected_repository_ids: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.selected_repository_idsPayload? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String, + selectedRepositoryIds: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body.JsonPayload.SelectedRepositoryIdsPayload? = nil ) { - self.encrypted_value = encrypted_value - self.key_id = key_id - self.selected_repository_ids = selected_repository_ids + self.encryptedValue = encryptedValue + self.keyId = keyId + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case encrypted_value - case key_id - case selected_repository_ids + case encryptedValue = "encrypted_value" + case keyId = "key_id" + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -14827,9 +15036,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -14841,12 +15050,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/PUT/responses/201/content/application\/json`. - case json(Components.Schemas.empty_hyphen_object) + case json(Components.Schemas.EmptyObject) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.empty_hyphen_object { + public var json: Components.Schemas.EmptyObject { get throws { switch self { case let .json(body): @@ -14856,12 +15065,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -14870,12 +15079,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -14897,12 +15106,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.NoContent) + /// Response after successfully updating a secret + /// + /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_create_hyphen_or_hyphen_update_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.CodespacesCreateOrUpdateSecretForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -14920,12 +15137,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -14943,12 +15160,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/put(codespaces/create-or-update-secret-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15002,7 +15219,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)`. - public enum codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesDeleteSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/delete-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/DELETE/path`. @@ -15010,21 +15227,21 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - public init(secret_name: Components.Parameters.secret_hyphen_name) { - self.secret_name = secret_name + /// - secretName: The name of the secret. + public init(secretName: Components.Parameters.SecretName) { + self.secretName = secretName } } - public var path: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesDeleteSecretForAuthenticatedUser.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path) { + public init(path: Operations.CodespacesDeleteSecretForAuthenticatedUser.Input.Path) { self.path = path } } @@ -15038,12 +15255,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.CodespacesDeleteSecretForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/delete(codespaces/delete-secret-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_delete_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.CodespacesDeleteSecretForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15072,7 +15297,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)`. - public enum codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesListRepositoriesForSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/list-repositories-for-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/path`. @@ -15080,36 +15305,36 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - public init(secret_name: Components.Parameters.secret_hyphen_name) { - self.secret_name = secret_name + /// - secretName: The name of the secret. + public init(secretName: Components.Parameters.SecretName) { + self.secretName = secretName } } - public var path: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15120,35 +15345,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/json/repositories`. - public var repositories: [Components.Schemas.minimal_hyphen_repository] - /// Creates a new `jsonPayload`. + public var repositories: [Components.Schemas.MinimalRepository] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - repositories: public init( - total_count: Swift.Int, - repositories: [Components.Schemas.minimal_hyphen_repository] + totalCount: Swift.Int, + repositories: [Components.Schemas.MinimalRepository] ) { - self.total_count = total_count + self.totalCount = totalCount self.repositories = repositories } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case repositories } } /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -15158,12 +15383,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -15172,12 +15397,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_list_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesListRepositoriesForSecretForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -15195,12 +15420,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -15218,12 +15443,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15241,12 +15466,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15264,12 +15489,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/get(codespaces/list-repositories-for-secret-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -15323,7 +15548,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)`. - public enum codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesSetRepositoriesForSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/set-repositories-for-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/path`. @@ -15331,51 +15556,51 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - public init(secret_name: Components.Parameters.secret_hyphen_name) { - self.secret_name = secret_name + /// - secretName: The name of the secret. + public init(secretName: Components.Parameters.SecretName) { + self.secretName = secretName } } - public var path: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int] - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. - public init(selected_repository_ids: [Swift.Int]) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. + public init(selectedRepositoryIds: [Swift.Int]) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/PUT/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -15383,9 +15608,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -15402,12 +15627,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Output.NoContent) + /// No Content when repositories were added to the selected list + /// + /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_set_hyphen_repositories_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.CodespacesSetRepositoriesForSecretForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15425,12 +15658,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -15448,12 +15681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15471,12 +15704,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15494,12 +15727,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/put(codespaces/set-repositories-for-secret-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -15553,7 +15786,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)`. - public enum codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesAddRepositoryForSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/add-repository-for-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path`. @@ -15561,43 +15794,43 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15613,12 +15846,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Output.NoContent) + /// No Content when repository was added to the selected list + /// + /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_add_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.CodespacesAddRepositoryForSecretForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15636,12 +15877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -15659,12 +15900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15682,12 +15923,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15705,12 +15946,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/put(codespaces/add-repository-for-secret-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -15764,7 +16005,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`. /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)`. - public enum codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesRemoveRepositoryForSecretForAuthenticatedUser { public static let id: Swift.String = "codespaces/remove-repository-for-secret-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path`. @@ -15772,43 +16013,43 @@ public enum Operations { /// The name of the secret. /// /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/path/repository_id`. - public var repository_id: Swift.Int + public var repositoryId: Swift.Int /// Creates a new `Path`. /// /// - Parameters: - /// - secret_name: The name of the secret. - /// - repository_id: + /// - secretName: The name of the secret. + /// - repositoryId: public init( - secret_name: Components.Parameters.secret_hyphen_name, - repository_id: Swift.Int + secretName: Components.Parameters.SecretName, + repositoryId: Swift.Int ) { - self.secret_name = secret_name - self.repository_id = repository_id + self.secretName = secretName + self.repositoryId = repositoryId } } - public var path: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/secrets/{secret_name}/repositories/{repository_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -15824,12 +16065,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Output.NoContent) + /// No Content when repository was removed from the selected list + /// + /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.codespaces_sol_remove_hyphen_repository_hyphen_for_hyphen_secret_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.CodespacesRemoveRepositoryForSecretForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -15847,12 +16096,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -15870,12 +16119,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -15893,12 +16142,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -15916,12 +16165,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/secrets/{secret_name}/repositories/{repository_id}/delete(codespaces/remove-repository-for-secret-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -15973,7 +16222,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)`. - public enum codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesGetForAuthenticatedUser { public static let id: Swift.String = "codespaces/get-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/GET/path`. @@ -15981,36 +16230,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/GET/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesGetForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesGetForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesGetForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16021,12 +16270,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -16036,12 +16285,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesGetForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesGetForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -16050,12 +16299,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesGetForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesGetForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -16073,12 +16322,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -16096,12 +16353,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -16119,12 +16376,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -16142,12 +16399,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16165,12 +16422,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16224,7 +16481,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)`. - public enum codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesUpdateForAuthenticatedUser { public static let id: Swift.String = "codespaces/update-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/path`. @@ -16232,32 +16489,32 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesUpdateForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesUpdateForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A valid machine to transition this codespace to. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody/json/machine`. @@ -16265,36 +16522,36 @@ public enum Operations { /// Display name for this codespace /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody/json/display_name`. - public var display_name: Swift.String? + public var displayName: Swift.String? /// Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody/json/recent_folders`. - public var recent_folders: [Swift.String]? - /// Creates a new `jsonPayload`. + public var recentFolders: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - machine: A valid machine to transition this codespace to. - /// - display_name: Display name for this codespace - /// - recent_folders: Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in. + /// - displayName: Display name for this codespace + /// - recentFolders: Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in. public init( machine: Swift.String? = nil, - display_name: Swift.String? = nil, - recent_folders: [Swift.String]? = nil + displayName: Swift.String? = nil, + recentFolders: [Swift.String]? = nil ) { self.machine = machine - self.display_name = display_name - self.recent_folders = recent_folders + self.displayName = displayName + self.recentFolders = recentFolders } public enum CodingKeys: String, CodingKey { case machine - case display_name - case recent_folders + case displayName = "display_name" + case recentFolders = "recent_folders" } } /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesUpdateForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? + public var body: Operations.CodespacesUpdateForAuthenticatedUser.Input.Body? /// Creates a new `Input`. /// /// - Parameters: @@ -16302,9 +16559,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body? = nil + path: Operations.CodespacesUpdateForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesUpdateForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesUpdateForAuthenticatedUser.Input.Body? = nil ) { self.path = path self.headers = headers @@ -16316,12 +16573,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -16331,12 +16588,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesUpdateForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesUpdateForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -16345,12 +16602,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesUpdateForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_update_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesUpdateForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -16368,12 +16625,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -16391,12 +16648,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16414,12 +16671,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16471,7 +16728,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/codespaces/{codespace_name}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)`. - public enum codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesDeleteForAuthenticatedUser { public static let id: Swift.String = "codespaces/delete-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/DELETE/path`. @@ -16479,36 +16736,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/DELETE/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesDeleteForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesDeleteForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_delete_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesDeleteForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesDeleteForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16520,12 +16777,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -16543,12 +16800,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -16566,12 +16831,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -16589,12 +16854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -16612,12 +16877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16635,12 +16900,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16694,7 +16959,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/exports`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)`. - public enum codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesExportForAuthenticatedUser { public static let id: Swift.String = "codespaces/export-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/POST/path`. @@ -16702,36 +16967,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/POST/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesExportForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesExportForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesExportForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesExportForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -16742,12 +17007,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/POST/responses/202/content/application\/json`. - case json(Components.Schemas.codespace_hyphen_export_hyphen_details) + case json(Components.Schemas.CodespaceExportDetails) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace_hyphen_export_hyphen_details { + public var json: Components.Schemas.CodespaceExportDetails { get throws { switch self { case let .json(body): @@ -16757,12 +17022,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body + public var body: Operations.CodespacesExportForAuthenticatedUser.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted.Body) { + public init(body: Operations.CodespacesExportForAuthenticatedUser.Output.Accepted.Body) { self.body = body } } @@ -16771,12 +17036,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted) + case accepted(Operations.CodespacesExportForAuthenticatedUser.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.codespaces_sol_export_hyphen_for_hyphen_authenticated_hyphen_user.Output.Accepted { + public var accepted: Operations.CodespacesExportForAuthenticatedUser.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -16794,12 +17059,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -16817,12 +17082,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -16840,12 +17105,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -16863,12 +17128,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -16886,12 +17151,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/post(codespaces/export-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -16943,7 +17208,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/exports/{export_id}`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)`. - public enum codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesGetExportDetailsForAuthenticatedUser { public static let id: Swift.String = "codespaces/get-export-details-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/path`. @@ -16951,45 +17216,45 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// The ID of the export operation, or `latest`. Currently only `latest` is currently supported. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/path/export_id`. - public var export_id: Components.Parameters.export_hyphen_id + public var exportId: Components.Parameters.ExportId /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - /// - export_id: The ID of the export operation, or `latest`. Currently only `latest` is currently supported. + /// - codespaceName: The name of the codespace. + /// - exportId: The ID of the export operation, or `latest`. Currently only `latest` is currently supported. public init( - codespace_name: Components.Parameters.codespace_hyphen_name, - export_id: Components.Parameters.export_hyphen_id + codespaceName: Components.Parameters.CodespaceName, + exportId: Components.Parameters.ExportId ) { - self.codespace_name = codespace_name - self.export_id = export_id + self.codespaceName = codespaceName + self.exportId = exportId } } - public var path: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17000,12 +17265,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/exports/{export_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.codespace_hyphen_export_hyphen_details) + case json(Components.Schemas.CodespaceExportDetails) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace_hyphen_export_hyphen_details { + public var json: Components.Schemas.CodespaceExportDetails { get throws { switch self { case let .json(body): @@ -17015,12 +17280,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -17029,12 +17294,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_get_hyphen_export_hyphen_details_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesGetExportDetailsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -17052,12 +17317,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/exports/{export_id}/get(codespaces/get-export-details-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17109,7 +17374,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/codespaces/{codespace_name}/machines`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)`. - public enum codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesCodespaceMachinesForAuthenticatedUser { public static let id: Swift.String = "codespaces/codespace-machines-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/path`. @@ -17117,36 +17382,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17157,35 +17422,35 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/responses/200/content/json/machines`. - public var machines: [Components.Schemas.codespace_hyphen_machine] - /// Creates a new `jsonPayload`. + public var machines: [Components.Schemas.CodespaceMachine] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - machines: public init( - total_count: Swift.Int, - machines: [Components.Schemas.codespace_hyphen_machine] + totalCount: Swift.Int, + machines: [Components.Schemas.CodespaceMachine] ) { - self.total_count = total_count + self.totalCount = totalCount self.machines = machines } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case machines } } /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/machines/GET/responses/200/content/application\/json`. - case json(Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -17195,12 +17460,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -17209,12 +17474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_codespace_hyphen_machines_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesCodespaceMachinesForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -17232,12 +17497,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -17255,12 +17528,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -17278,12 +17551,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -17301,12 +17574,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17324,12 +17597,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/machines/get(codespaces/codespace-machines-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17385,7 +17658,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/publish`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)`. - public enum codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesPublishForAuthenticatedUser { public static let id: Swift.String = "codespaces/publish-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/path`. @@ -17393,32 +17666,32 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesPublishForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesPublishForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// A name for the new repository. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/requestBody/json/name`. @@ -17427,7 +17700,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/requestBody/json/private`. public var _private: Swift.Bool? - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: A name for the new repository. @@ -17445,9 +17718,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/requestBody/content/application\/json`. - case json(Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload) + case json(Operations.CodespacesPublishForAuthenticatedUser.Input.Body.JsonPayload) } - public var body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.CodespacesPublishForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -17455,9 +17728,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + path: Operations.CodespacesPublishForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesPublishForAuthenticatedUser.Input.Headers = .init(), + body: Operations.CodespacesPublishForAuthenticatedUser.Input.Body ) { self.path = path self.headers = headers @@ -17469,12 +17742,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/publish/POST/responses/201/content/application\/json`. - case json(Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository) + case json(Components.Schemas.CodespaceWithFullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace_hyphen_with_hyphen_full_hyphen_repository { + public var json: Components.Schemas.CodespaceWithFullRepository { get throws { switch self { case let .json(body): @@ -17484,12 +17757,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body + public var body: Operations.CodespacesPublishForAuthenticatedUser.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created.Body) { + public init(body: Operations.CodespacesPublishForAuthenticatedUser.Output.Created.Body) { self.body = body } } @@ -17498,12 +17771,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created) + case created(Operations.CodespacesPublishForAuthenticatedUser.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.codespaces_sol_publish_hyphen_for_hyphen_authenticated_hyphen_user.Output.Created { + public var created: Operations.CodespacesPublishForAuthenticatedUser.Output.Created { get throws { switch self { case let .created(response): @@ -17521,12 +17794,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -17544,12 +17817,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17567,12 +17840,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17590,12 +17863,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -17647,7 +17920,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/start`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)`. - public enum codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesStartForAuthenticatedUser { public static let id: Swift.String = "codespaces/start-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/path`. @@ -17655,36 +17928,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesStartForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesStartForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesStartForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesStartForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -17695,12 +17968,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/responses/200/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -17710,12 +17983,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesStartForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesStartForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -17724,12 +17997,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesStartForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesStartForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -17747,12 +18020,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -17770,12 +18051,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -17793,12 +18074,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -17816,12 +18097,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -17838,12 +18119,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/responses/402/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/start/POST/responses/402/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -17853,12 +18134,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Code402.Body + public var body: Operations.CodespacesStartForAuthenticatedUser.Output.Code402.Body /// Creates a new `Code402`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Code402.Body) { + public init(body: Operations.CodespacesStartForAuthenticatedUser.Output.Code402.Body) { self.body = body } } @@ -17867,12 +18148,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/402`. /// /// HTTP response code: `402 code402`. - case code402(Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Code402) + case code402(Operations.CodespacesStartForAuthenticatedUser.Output.Code402) /// The associated value of the enum case if `self` is `.code402`. /// /// - Throws: An error if `self` is not `.code402`. /// - SeeAlso: `.code402`. - public var code402: Operations.codespaces_sol_start_hyphen_for_hyphen_authenticated_hyphen_user.Output.Code402 { + public var code402: Operations.CodespacesStartForAuthenticatedUser.Output.Code402 { get throws { switch self { case let .code402(response): @@ -17890,12 +18171,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -17913,12 +18194,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -17936,12 +18217,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/start/post(codespaces/start-for-authenticated-user)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -17961,14 +18242,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -17979,14 +18260,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -17999,7 +18280,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /user/codespaces/{codespace_name}/stop`. /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)`. - public enum codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user { + public enum CodespacesStopForAuthenticatedUser { public static let id: Swift.String = "codespaces/stop-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/stop/POST/path`. @@ -18007,36 +18288,36 @@ public enum Operations { /// The name of the codespace. /// /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/stop/POST/path/codespace_name`. - public var codespace_name: Components.Parameters.codespace_hyphen_name + public var codespaceName: Components.Parameters.CodespaceName /// Creates a new `Path`. /// /// - Parameters: - /// - codespace_name: The name of the codespace. - public init(codespace_name: Components.Parameters.codespace_hyphen_name) { - self.codespace_name = codespace_name + /// - codespaceName: The name of the codespace. + public init(codespaceName: Components.Parameters.CodespaceName) { + self.codespaceName = codespaceName } } - public var path: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path + public var path: Operations.CodespacesStopForAuthenticatedUser.Input.Path /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/stop/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.CodespacesStopForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Path, - headers: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init() + path: Operations.CodespacesStopForAuthenticatedUser.Input.Path, + headers: Operations.CodespacesStopForAuthenticatedUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -18047,12 +18328,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/stop/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/codespaces/{codespace_name}/stop/POST/responses/200/content/application\/json`. - case json(Components.Schemas.codespace) + case json(Components.Schemas.Codespace) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.codespace { + public var json: Components.Schemas.Codespace { get throws { switch self { case let .json(body): @@ -18062,12 +18343,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.CodespacesStopForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CodespacesStopForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -18076,12 +18357,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.CodespacesStopForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.codespaces_sol_stop_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.CodespacesStopForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -18099,12 +18380,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -18122,12 +18403,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -18145,12 +18426,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -18168,12 +18449,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/stop/post(codespaces/stop-for-authenticated-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): From 31ea9f5bafc1022196e62c9973e712d5064ca8e2 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:06:38 -0700 Subject: [PATCH 35/46] Commit via running ake Sources/copilot --- Sources/copilot/Client.swift | 228 ++-- Sources/copilot/Types.swift | 2435 +++++++++++++++++----------------- 2 files changed, 1360 insertions(+), 1303 deletions(-) diff --git a/Sources/copilot/Client.swift b/Sources/copilot/Client.swift index 4123eb63c8..14777b8561 100644 --- a/Sources/copilot/Client.swift +++ b/Sources/copilot/Client.swift @@ -53,10 +53,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`. - public func copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details(_ input: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output { + public func copilotGetCopilotOrganizationDetails(_ input: Operations.CopilotGetCopilotOrganizationDetails.Input) async throws -> Operations.CopilotGetCopilotOrganizationDetails.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.id, + forOperation: Operations.CopilotGetCopilotOrganizationDetails.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing", @@ -79,7 +79,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.Ok.Body + let body: Operations.CopilotGetCopilotOrganizationDetails.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -89,7 +89,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.copilot_hyphen_organization_hyphen_details.self, + Components.Schemas.CopilotOrganizationDetails.self, from: responseBody, transforming: { value in .json(value) @@ -101,7 +101,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -111,7 +111,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -123,7 +123,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -133,7 +133,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -145,7 +145,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -155,7 +155,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -167,7 +167,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -177,7 +177,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -216,10 +216,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`. - public func copilot_sol_list_hyphen_copilot_hyphen_seats(_ input: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input) async throws -> Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output { + public func copilotListCopilotSeats(_ input: Operations.CopilotListCopilotSeats.Input) async throws -> Operations.CopilotListCopilotSeats.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.id, + forOperation: Operations.CopilotListCopilotSeats.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing/seats", @@ -244,7 +244,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -255,13 +255,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CopilotListCopilotSeats.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body + let body: Operations.CopilotListCopilotSeats.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -271,7 +271,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body.jsonPayload.self, + Operations.CopilotListCopilotSeats.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -286,7 +286,7 @@ public struct Client: APIProtocol { )) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -296,7 +296,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -308,7 +308,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -318,7 +318,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -330,7 +330,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -340,7 +340,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -352,7 +352,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -362,7 +362,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -402,10 +402,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`. - public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output { + public func copilotAddCopilotSeatsForTeams(_ input: Operations.CopilotAddCopilotSeatsForTeams.Input) async throws -> Operations.CopilotAddCopilotSeatsForTeams.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.id, + forOperation: Operations.CopilotAddCopilotSeatsForTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing/selected_teams", @@ -437,7 +437,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body + let body: Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -447,7 +447,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body.jsonPayload.self, + Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -459,7 +459,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -469,7 +469,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -481,7 +481,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -491,7 +491,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -503,7 +503,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -513,7 +513,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -525,7 +525,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -535,7 +535,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -576,10 +576,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`. - public func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output { + public func copilotCancelCopilotSeatAssignmentForTeams(_ input: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.id, + forOperation: Operations.CopilotCancelCopilotSeatAssignmentForTeams.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing/selected_teams", @@ -611,7 +611,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body + let body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -621,7 +621,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body.jsonPayload.self, + Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -633,7 +633,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -643,7 +643,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -655,7 +655,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -665,7 +665,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -677,7 +677,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -687,7 +687,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -699,7 +699,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -709,7 +709,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -751,10 +751,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`. - public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output { + public func copilotAddCopilotSeatsForUsers(_ input: Operations.CopilotAddCopilotSeatsForUsers.Input) async throws -> Operations.CopilotAddCopilotSeatsForUsers.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.id, + forOperation: Operations.CopilotAddCopilotSeatsForUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing/selected_users", @@ -786,7 +786,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body + let body: Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -796,7 +796,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body.jsonPayload.self, + Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -808,7 +808,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -818,7 +818,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -830,7 +830,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -840,7 +840,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -852,7 +852,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -862,7 +862,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -874,7 +874,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -884,7 +884,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -925,10 +925,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`. - public func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output { + public func copilotCancelCopilotSeatAssignmentForUsers(_ input: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.id, + forOperation: Operations.CopilotCancelCopilotSeatAssignmentForUsers.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/billing/selected_users", @@ -960,7 +960,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body + let body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -970,7 +970,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body.jsonPayload.self, + Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -982,7 +982,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -992,7 +992,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1004,7 +1004,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1014,7 +1014,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1026,7 +1026,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1036,7 +1036,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1048,7 +1048,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1058,7 +1058,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1100,10 +1100,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)`. - public func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization(_ input: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output { + public func copilotCopilotMetricsForOrganization(_ input: Operations.CopilotCopilotMetricsForOrganization.Input) async throws -> Operations.CopilotCopilotMetricsForOrganization.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.id, + forOperation: Operations.CopilotCopilotMetricsForOrganization.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/copilot/metrics", @@ -1142,7 +1142,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -1154,7 +1154,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output.Ok.Body + let body: Operations.CopilotCopilotMetricsForOrganization.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1164,7 +1164,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day].self, + [Components.Schemas.CopilotUsageMetricsDay].self, from: responseBody, transforming: { value in .json(value) @@ -1176,7 +1176,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1186,7 +1186,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1198,7 +1198,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1208,7 +1208,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1220,7 +1220,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1230,7 +1230,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1242,7 +1242,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.usage_metrics_api_disabled.Body + let body: Components.Responses.UsageMetricsApiDisabled.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1252,7 +1252,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1290,10 +1290,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`. - public func copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user(_ input: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output { + public func copilotGetCopilotSeatDetailsForUser(_ input: Operations.CopilotGetCopilotSeatDetailsForUser.Input) async throws -> Operations.CopilotGetCopilotSeatDetailsForUser.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.id, + forOperation: Operations.CopilotGetCopilotSeatDetailsForUser.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/members/{}/copilot", @@ -1317,7 +1317,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.Ok.Body + let body: Operations.CopilotGetCopilotSeatDetailsForUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1327,7 +1327,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.copilot_hyphen_seat_hyphen_details.self, + Components.Schemas.CopilotSeatDetails.self, from: responseBody, transforming: { value in .json(value) @@ -1339,7 +1339,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1349,7 +1349,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1361,7 +1361,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 401: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.requires_authentication.Body + let body: Components.Responses.RequiresAuthentication.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1371,7 +1371,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1383,7 +1383,7 @@ public struct Client: APIProtocol { return .unauthorized(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1393,7 +1393,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1405,7 +1405,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1415,7 +1415,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1457,16 +1457,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/team/{team_slug}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)`. - public func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team(_ input: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output { + public func copilotCopilotMetricsForTeam(_ input: Operations.CopilotCopilotMetricsForTeam.Input) async throws -> Operations.CopilotCopilotMetricsForTeam.Output { try await client.send( input: input, - forOperation: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.id, + forOperation: Operations.CopilotCopilotMetricsForTeam.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/team/{}/copilot/metrics", parameters: [ input.path.org, - input.path.team_slug + input.path.teamSlug ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1500,7 +1500,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -1512,7 +1512,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output.Ok.Body + let body: Operations.CopilotCopilotMetricsForTeam.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1522,7 +1522,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day].self, + [Components.Schemas.CopilotUsageMetricsDay].self, from: responseBody, transforming: { value in .json(value) @@ -1534,7 +1534,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 500: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.internal_error.Body + let body: Components.Responses.InternalError.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1544,7 +1544,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1556,7 +1556,7 @@ public struct Client: APIProtocol { return .internalServerError(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1566,7 +1566,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1578,7 +1578,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1588,7 +1588,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1600,7 +1600,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.usage_metrics_api_disabled.Body + let body: Components.Responses.UsageMetricsApiDisabled.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1610,7 +1610,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index 9ff6ca65a1..887e63c624 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -26,7 +26,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`. - func copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details(_ input: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output + func copilotGetCopilotOrganizationDetails(_ input: Operations.CopilotGetCopilotOrganizationDetails.Input) async throws -> Operations.CopilotGetCopilotOrganizationDetails.Output /// List all Copilot seat assignments for an organization /// /// > [!NOTE] @@ -42,7 +42,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`. - func copilot_sol_list_hyphen_copilot_hyphen_seats(_ input: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input) async throws -> Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output + func copilotListCopilotSeats(_ input: Operations.CopilotListCopilotSeats.Input) async throws -> Operations.CopilotListCopilotSeats.Output /// Add teams to the Copilot subscription for an organization /// /// > [!NOTE] @@ -61,7 +61,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`. - func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output + func copilotAddCopilotSeatsForTeams(_ input: Operations.CopilotAddCopilotSeatsForTeams.Input) async throws -> Operations.CopilotAddCopilotSeatsForTeams.Output /// Remove teams from the Copilot subscription for an organization /// /// > [!NOTE] @@ -79,7 +79,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`. - func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams(_ input: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output + func copilotCancelCopilotSeatAssignmentForTeams(_ input: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output /// Add users to the Copilot subscription for an organization /// /// > [!NOTE] @@ -98,7 +98,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`. - func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output + func copilotAddCopilotSeatsForUsers(_ input: Operations.CopilotAddCopilotSeatsForUsers.Input) async throws -> Operations.CopilotAddCopilotSeatsForUsers.Output /// Remove users from the Copilot subscription for an organization /// /// > [!NOTE] @@ -116,7 +116,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`. - func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users(_ input: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output + func copilotCancelCopilotSeatAssignmentForUsers(_ input: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output /// Get Copilot metrics for an organization /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. @@ -135,7 +135,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)`. - func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization(_ input: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output + func copilotCopilotMetricsForOrganization(_ input: Operations.CopilotCopilotMetricsForOrganization.Input) async throws -> Operations.CopilotCopilotMetricsForOrganization.Output /// Get Copilot seat assignment details for a user /// /// > [!NOTE] @@ -152,7 +152,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`. - func copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user(_ input: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output + func copilotGetCopilotSeatDetailsForUser(_ input: Operations.CopilotGetCopilotSeatDetailsForUser.Input) async throws -> Operations.CopilotGetCopilotSeatDetailsForUser.Output /// Get Copilot metrics for a team /// /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. @@ -171,7 +171,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/team/{team_slug}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)`. - func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team(_ input: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output + func copilotCopilotMetricsForTeam(_ input: Operations.CopilotCopilotMetricsForTeam.Input) async throws -> Operations.CopilotCopilotMetricsForTeam.Output } /// Convenience overloads for operation inputs. @@ -191,11 +191,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`. - public func copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details( - path: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Path, - headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Headers = .init() - ) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output { - try await copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details(Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input( + public func copilotGetCopilotOrganizationDetails( + path: Operations.CopilotGetCopilotOrganizationDetails.Input.Path, + headers: Operations.CopilotGetCopilotOrganizationDetails.Input.Headers = .init() + ) async throws -> Operations.CopilotGetCopilotOrganizationDetails.Output { + try await copilotGetCopilotOrganizationDetails(Operations.CopilotGetCopilotOrganizationDetails.Input( path: path, headers: headers )) @@ -215,12 +215,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`. - public func copilot_sol_list_hyphen_copilot_hyphen_seats( - path: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Path, - query: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Query = .init(), - headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Headers = .init() - ) async throws -> Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output { - try await copilot_sol_list_hyphen_copilot_hyphen_seats(Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input( + public func copilotListCopilotSeats( + path: Operations.CopilotListCopilotSeats.Input.Path, + query: Operations.CopilotListCopilotSeats.Input.Query = .init(), + headers: Operations.CopilotListCopilotSeats.Input.Headers = .init() + ) async throws -> Operations.CopilotListCopilotSeats.Output { + try await copilotListCopilotSeats(Operations.CopilotListCopilotSeats.Input( path: path, query: query, headers: headers @@ -244,12 +244,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`. - public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams( - path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Path, - headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Headers = .init(), - body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Body - ) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output { - try await copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input( + public func copilotAddCopilotSeatsForTeams( + path: Operations.CopilotAddCopilotSeatsForTeams.Input.Path, + headers: Operations.CopilotAddCopilotSeatsForTeams.Input.Headers = .init(), + body: Operations.CopilotAddCopilotSeatsForTeams.Input.Body + ) async throws -> Operations.CopilotAddCopilotSeatsForTeams.Output { + try await copilotAddCopilotSeatsForTeams(Operations.CopilotAddCopilotSeatsForTeams.Input( path: path, headers: headers, body: body @@ -272,12 +272,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`. - public func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams( - path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Path, - headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Headers = .init(), - body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Body - ) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output { - try await copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input( + public func copilotCancelCopilotSeatAssignmentForTeams( + path: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Path, + headers: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Headers = .init(), + body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Body + ) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output { + try await copilotCancelCopilotSeatAssignmentForTeams(Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input( path: path, headers: headers, body: body @@ -301,12 +301,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`. - public func copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users( - path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Path, - headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Headers = .init(), - body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Body - ) async throws -> Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output { - try await copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input( + public func copilotAddCopilotSeatsForUsers( + path: Operations.CopilotAddCopilotSeatsForUsers.Input.Path, + headers: Operations.CopilotAddCopilotSeatsForUsers.Input.Headers = .init(), + body: Operations.CopilotAddCopilotSeatsForUsers.Input.Body + ) async throws -> Operations.CopilotAddCopilotSeatsForUsers.Output { + try await copilotAddCopilotSeatsForUsers(Operations.CopilotAddCopilotSeatsForUsers.Input( path: path, headers: headers, body: body @@ -329,12 +329,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`. - public func copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users( - path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Path, - headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Headers = .init(), - body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Body - ) async throws -> Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output { - try await copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input( + public func copilotCancelCopilotSeatAssignmentForUsers( + path: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Path, + headers: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Headers = .init(), + body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Body + ) async throws -> Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output { + try await copilotCancelCopilotSeatAssignmentForUsers(Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input( path: path, headers: headers, body: body @@ -358,12 +358,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)`. - public func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization( - path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Path, - query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Query = .init(), - headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Headers = .init() - ) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output { - try await copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization(Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input( + public func copilotCopilotMetricsForOrganization( + path: Operations.CopilotCopilotMetricsForOrganization.Input.Path, + query: Operations.CopilotCopilotMetricsForOrganization.Input.Query = .init(), + headers: Operations.CopilotCopilotMetricsForOrganization.Input.Headers = .init() + ) async throws -> Operations.CopilotCopilotMetricsForOrganization.Output { + try await copilotCopilotMetricsForOrganization(Operations.CopilotCopilotMetricsForOrganization.Input( path: path, query: query, headers: headers @@ -385,11 +385,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`. - public func copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user( - path: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Path, - headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Headers = .init() - ) async throws -> Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output { - try await copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user(Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input( + public func copilotGetCopilotSeatDetailsForUser( + path: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Path, + headers: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Headers = .init() + ) async throws -> Operations.CopilotGetCopilotSeatDetailsForUser.Output { + try await copilotGetCopilotSeatDetailsForUser(Operations.CopilotGetCopilotSeatDetailsForUser.Input( path: path, headers: headers )) @@ -412,12 +412,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/team/{team_slug}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)`. - public func copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team( - path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Path, - query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Query = .init(), - headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Headers = .init() - ) async throws -> Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output { - try await copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team(Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input( + public func copilotCopilotMetricsForTeam( + path: Operations.CopilotCopilotMetricsForTeam.Input.Path, + query: Operations.CopilotCopilotMetricsForTeam.Input.Query = .init(), + headers: Operations.CopilotCopilotMetricsForTeam.Input.Headers = .init() + ) async throws -> Operations.CopilotCopilotMetricsForTeam.Output { + try await copilotCopilotMetricsForTeam(Operations.CopilotCopilotMetricsForTeam.Input( path: path, query: query, headers: headers @@ -427,6 +427,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -442,36 +451,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -479,7 +488,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -489,154 +498,154 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -656,86 +665,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -745,11 +754,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -760,7 +769,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -790,86 +799,86 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// The breakdown of Copilot Business seats for the organization. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown`. - public struct copilot_hyphen_organization_hyphen_seat_hyphen_breakdown: Codable, Hashable, Sendable { + public struct CopilotOrganizationSeatBreakdown: Codable, Hashable, Sendable { /// The total number of seats being billed for the organization as of the current billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/total`. @@ -877,66 +886,66 @@ public enum Components { /// Seats added during the current billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/added_this_cycle`. - public var added_this_cycle: Swift.Int? + public var addedThisCycle: Swift.Int? /// The number of seats that are pending cancellation at the end of the current billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/pending_cancellation`. - public var pending_cancellation: Swift.Int? + public var pendingCancellation: Swift.Int? /// The number of users who have been invited to receive a Copilot seat through this organization. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/pending_invitation`. - public var pending_invitation: Swift.Int? + public var pendingInvitation: Swift.Int? /// The number of seats that have used Copilot during the current billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/active_this_cycle`. - public var active_this_cycle: Swift.Int? + public var activeThisCycle: Swift.Int? /// The number of seats that have not used Copilot during the current billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-seat-breakdown/inactive_this_cycle`. - public var inactive_this_cycle: Swift.Int? - /// Creates a new `copilot_hyphen_organization_hyphen_seat_hyphen_breakdown`. + public var inactiveThisCycle: Swift.Int? + /// Creates a new `CopilotOrganizationSeatBreakdown`. /// /// - Parameters: /// - total: The total number of seats being billed for the organization as of the current billing cycle. - /// - added_this_cycle: Seats added during the current billing cycle. - /// - pending_cancellation: The number of seats that are pending cancellation at the end of the current billing cycle. - /// - pending_invitation: The number of users who have been invited to receive a Copilot seat through this organization. - /// - active_this_cycle: The number of seats that have used Copilot during the current billing cycle. - /// - inactive_this_cycle: The number of seats that have not used Copilot during the current billing cycle. + /// - addedThisCycle: Seats added during the current billing cycle. + /// - pendingCancellation: The number of seats that are pending cancellation at the end of the current billing cycle. + /// - pendingInvitation: The number of users who have been invited to receive a Copilot seat through this organization. + /// - activeThisCycle: The number of seats that have used Copilot during the current billing cycle. + /// - inactiveThisCycle: The number of seats that have not used Copilot during the current billing cycle. public init( total: Swift.Int? = nil, - added_this_cycle: Swift.Int? = nil, - pending_cancellation: Swift.Int? = nil, - pending_invitation: Swift.Int? = nil, - active_this_cycle: Swift.Int? = nil, - inactive_this_cycle: Swift.Int? = nil + addedThisCycle: Swift.Int? = nil, + pendingCancellation: Swift.Int? = nil, + pendingInvitation: Swift.Int? = nil, + activeThisCycle: Swift.Int? = nil, + inactiveThisCycle: Swift.Int? = nil ) { self.total = total - self.added_this_cycle = added_this_cycle - self.pending_cancellation = pending_cancellation - self.pending_invitation = pending_invitation - self.active_this_cycle = active_this_cycle - self.inactive_this_cycle = inactive_this_cycle + self.addedThisCycle = addedThisCycle + self.pendingCancellation = pendingCancellation + self.pendingInvitation = pendingInvitation + self.activeThisCycle = activeThisCycle + self.inactiveThisCycle = inactiveThisCycle } public enum CodingKeys: String, CodingKey { case total - case added_this_cycle - case pending_cancellation - case pending_invitation - case active_this_cycle - case inactive_this_cycle + case addedThisCycle = "added_this_cycle" + case pendingCancellation = "pending_cancellation" + case pendingInvitation = "pending_invitation" + case activeThisCycle = "active_this_cycle" + case inactiveThisCycle = "inactive_this_cycle" } } /// Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details`. - public struct copilot_hyphen_organization_hyphen_details: Codable, Hashable, Sendable { + public struct CopilotOrganizationDetails: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_breakdown`. - public var seat_breakdown: Components.Schemas.copilot_hyphen_organization_hyphen_seat_hyphen_breakdown + public var seatBreakdown: Components.Schemas.CopilotOrganizationSeatBreakdown /// The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/public_code_suggestions`. - @frozen public enum public_code_suggestionsPayload: String, Codable, Hashable, Sendable { + @frozen public enum PublicCodeSuggestionsPayload: String, Codable, Hashable, Sendable, CaseIterable { case allow = "allow" case block = "block" case unconfigured = "unconfigured" @@ -944,11 +953,11 @@ public enum Components { /// The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/public_code_suggestions`. - public var public_code_suggestions: Components.Schemas.copilot_hyphen_organization_hyphen_details.public_code_suggestionsPayload + public var publicCodeSuggestions: Components.Schemas.CopilotOrganizationDetails.PublicCodeSuggestionsPayload /// The organization policy for allowing or disallowing Copilot Chat in the IDE. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/ide_chat`. - @frozen public enum ide_chatPayload: String, Codable, Hashable, Sendable { + @frozen public enum IdeChatPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" case unconfigured = "unconfigured" @@ -956,11 +965,11 @@ public enum Components { /// The organization policy for allowing or disallowing Copilot Chat in the IDE. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/ide_chat`. - public var ide_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.ide_chatPayload? + public var ideChat: Components.Schemas.CopilotOrganizationDetails.IdeChatPayload? /// The organization policy for allowing or disallowing Copilot features on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/platform_chat`. - @frozen public enum platform_chatPayload: String, Codable, Hashable, Sendable { + @frozen public enum PlatformChatPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" case unconfigured = "unconfigured" @@ -968,11 +977,11 @@ public enum Components { /// The organization policy for allowing or disallowing Copilot features on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/platform_chat`. - public var platform_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.platform_chatPayload? + public var platformChat: Components.Schemas.CopilotOrganizationDetails.PlatformChatPayload? /// The organization policy for allowing or disallowing Copilot in the CLI. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/cli`. - @frozen public enum cliPayload: String, Codable, Hashable, Sendable { + @frozen public enum CliPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" case unconfigured = "unconfigured" @@ -980,101 +989,101 @@ public enum Components { /// The organization policy for allowing or disallowing Copilot in the CLI. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/cli`. - public var cli: Components.Schemas.copilot_hyphen_organization_hyphen_details.cliPayload? + public var cli: Components.Schemas.CopilotOrganizationDetails.CliPayload? /// The mode of assigning new seats. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_management_setting`. - @frozen public enum seat_management_settingPayload: String, Codable, Hashable, Sendable { - case assign_all = "assign_all" - case assign_selected = "assign_selected" + @frozen public enum SeatManagementSettingPayload: String, Codable, Hashable, Sendable, CaseIterable { + case assignAll = "assign_all" + case assignSelected = "assign_selected" case disabled = "disabled" case unconfigured = "unconfigured" } /// The mode of assigning new seats. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_management_setting`. - public var seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload + public var seatManagementSetting: Components.Schemas.CopilotOrganizationDetails.SeatManagementSettingPayload /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`. - @frozen public enum plan_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PlanTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case business = "business" case enterprise = "enterprise" } /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-organization-details/plan_type`. - public var plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload? + public var planType: Components.Schemas.CopilotOrganizationDetails.PlanTypePayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_organization_hyphen_details`. + /// Creates a new `CopilotOrganizationDetails`. /// /// - Parameters: - /// - seat_breakdown: - /// - public_code_suggestions: The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). - /// - ide_chat: The organization policy for allowing or disallowing Copilot Chat in the IDE. - /// - platform_chat: The organization policy for allowing or disallowing Copilot features on GitHub.com. + /// - seatBreakdown: + /// - publicCodeSuggestions: The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). + /// - ideChat: The organization policy for allowing or disallowing Copilot Chat in the IDE. + /// - platformChat: The organization policy for allowing or disallowing Copilot features on GitHub.com. /// - cli: The organization policy for allowing or disallowing Copilot in the CLI. - /// - seat_management_setting: The mode of assigning new seats. - /// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable. + /// - seatManagementSetting: The mode of assigning new seats. + /// - planType: The Copilot plan of the organization, or the parent enterprise, when applicable. /// - additionalProperties: A container of undocumented properties. public init( - seat_breakdown: Components.Schemas.copilot_hyphen_organization_hyphen_seat_hyphen_breakdown, - public_code_suggestions: Components.Schemas.copilot_hyphen_organization_hyphen_details.public_code_suggestionsPayload, - ide_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.ide_chatPayload? = nil, - platform_chat: Components.Schemas.copilot_hyphen_organization_hyphen_details.platform_chatPayload? = nil, - cli: Components.Schemas.copilot_hyphen_organization_hyphen_details.cliPayload? = nil, - seat_management_setting: Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload, - plan_type: Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload? = nil, + seatBreakdown: Components.Schemas.CopilotOrganizationSeatBreakdown, + publicCodeSuggestions: Components.Schemas.CopilotOrganizationDetails.PublicCodeSuggestionsPayload, + ideChat: Components.Schemas.CopilotOrganizationDetails.IdeChatPayload? = nil, + platformChat: Components.Schemas.CopilotOrganizationDetails.PlatformChatPayload? = nil, + cli: Components.Schemas.CopilotOrganizationDetails.CliPayload? = nil, + seatManagementSetting: Components.Schemas.CopilotOrganizationDetails.SeatManagementSettingPayload, + planType: Components.Schemas.CopilotOrganizationDetails.PlanTypePayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.seat_breakdown = seat_breakdown - self.public_code_suggestions = public_code_suggestions - self.ide_chat = ide_chat - self.platform_chat = platform_chat + self.seatBreakdown = seatBreakdown + self.publicCodeSuggestions = publicCodeSuggestions + self.ideChat = ideChat + self.platformChat = platformChat self.cli = cli - self.seat_management_setting = seat_management_setting - self.plan_type = plan_type + self.seatManagementSetting = seatManagementSetting + self.planType = planType self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case seat_breakdown - case public_code_suggestions - case ide_chat - case platform_chat + case seatBreakdown = "seat_breakdown" + case publicCodeSuggestions = "public_code_suggestions" + case ideChat = "ide_chat" + case platformChat = "platform_chat" case cli - case seat_management_setting - case plan_type + case seatManagementSetting = "seat_management_setting" + case planType = "plan_type" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - seat_breakdown = try container.decode( - Components.Schemas.copilot_hyphen_organization_hyphen_seat_hyphen_breakdown.self, - forKey: .seat_breakdown + self.seatBreakdown = try container.decode( + Components.Schemas.CopilotOrganizationSeatBreakdown.self, + forKey: .seatBreakdown ) - public_code_suggestions = try container.decode( - Components.Schemas.copilot_hyphen_organization_hyphen_details.public_code_suggestionsPayload.self, - forKey: .public_code_suggestions + self.publicCodeSuggestions = try container.decode( + Components.Schemas.CopilotOrganizationDetails.PublicCodeSuggestionsPayload.self, + forKey: .publicCodeSuggestions ) - ide_chat = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_organization_hyphen_details.ide_chatPayload.self, - forKey: .ide_chat + self.ideChat = try container.decodeIfPresent( + Components.Schemas.CopilotOrganizationDetails.IdeChatPayload.self, + forKey: .ideChat ) - platform_chat = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_organization_hyphen_details.platform_chatPayload.self, - forKey: .platform_chat + self.platformChat = try container.decodeIfPresent( + Components.Schemas.CopilotOrganizationDetails.PlatformChatPayload.self, + forKey: .platformChat ) - cli = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_organization_hyphen_details.cliPayload.self, + self.cli = try container.decodeIfPresent( + Components.Schemas.CopilotOrganizationDetails.CliPayload.self, forKey: .cli ) - seat_management_setting = try container.decode( - Components.Schemas.copilot_hyphen_organization_hyphen_details.seat_management_settingPayload.self, - forKey: .seat_management_setting + self.seatManagementSetting = try container.decode( + Components.Schemas.CopilotOrganizationDetails.SeatManagementSettingPayload.self, + forKey: .seatManagementSetting ) - plan_type = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_organization_hyphen_details.plan_typePayload.self, - forKey: .plan_type + self.planType = try container.decodeIfPresent( + Components.Schemas.CopilotOrganizationDetails.PlanTypePayload.self, + forKey: .planType ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ "seat_breakdown", @@ -1089,32 +1098,32 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode( - seat_breakdown, - forKey: .seat_breakdown + self.seatBreakdown, + forKey: .seatBreakdown ) try container.encode( - public_code_suggestions, - forKey: .public_code_suggestions + self.publicCodeSuggestions, + forKey: .publicCodeSuggestions ) try container.encodeIfPresent( - ide_chat, - forKey: .ide_chat + self.ideChat, + forKey: .ideChat ) try container.encodeIfPresent( - platform_chat, - forKey: .platform_chat + self.platformChat, + forKey: .platformChat ) try container.encodeIfPresent( - cli, + self.cli, forKey: .cli ) try container.encode( - seat_management_setting, - forKey: .seat_management_setting + self.seatManagementSetting, + forKey: .seatManagementSetting ) try container.encodeIfPresent( - plan_type, - forKey: .plan_type + self.planType, + forKey: .planType ) try encoder.encodeAdditionalProperties(additionalProperties) } @@ -1122,92 +1131,92 @@ public enum Components { /// A GitHub organization. /// /// - Remark: Generated from `#/components/schemas/nullable-organization-simple`. - public struct nullable_hyphen_organization_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableOrganizationSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/public_members_url`. - public var public_members_url: Swift.String + public var publicMembersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-organization-simple/description`. public var description: Swift.String? - /// Creates a new `nullable_hyphen_organization_hyphen_simple`. + /// Creates a new `NullableOrganizationSimple`. /// /// - Parameters: /// - login: /// - id: - /// - node_id: + /// - nodeId: /// - url: - /// - repos_url: - /// - events_url: - /// - hooks_url: - /// - issues_url: - /// - members_url: - /// - public_members_url: - /// - avatar_url: + /// - reposUrl: + /// - eventsUrl: + /// - hooksUrl: + /// - issuesUrl: + /// - membersUrl: + /// - publicMembersUrl: + /// - avatarUrl: /// - description: public init( login: Swift.String, id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - hooks_url: Swift.String, - issues_url: Swift.String, - members_url: Swift.String, - public_members_url: Swift.String, - avatar_url: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + hooksUrl: Swift.String, + issuesUrl: Swift.String, + membersUrl: Swift.String, + publicMembersUrl: Swift.String, + avatarUrl: Swift.String, description: Swift.String? = nil ) { self.login = login self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.repos_url = repos_url - self.events_url = events_url - self.hooks_url = hooks_url - self.issues_url = issues_url - self.members_url = members_url - self.public_members_url = public_members_url - self.avatar_url = avatar_url + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.hooksUrl = hooksUrl + self.issuesUrl = issuesUrl + self.membersUrl = membersUrl + self.publicMembersUrl = publicMembersUrl + self.avatarUrl = avatarUrl self.description = description } public enum CodingKeys: String, CodingKey { case login case id - case node_id + case nodeId = "node_id" case url - case repos_url - case events_url - case hooks_url - case issues_url - case members_url - case public_members_url - case avatar_url + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case hooksUrl = "hooks_url" + case issuesUrl = "issues_url" + case membersUrl = "members_url" + case publicMembersUrl = "public_members_url" + case avatarUrl = "avatar_url" case description } } /// Group of enterprise owners and/or members /// /// - Remark: Generated from `#/components/schemas/enterprise-team`. - public struct enterprise_hyphen_team: Codable, Hashable, Sendable { + public struct EnterpriseTeam: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/enterprise-team/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/enterprise-team/name`. @@ -1217,98 +1226,98 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/enterprise-team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise-team/sync_to_organizations`. - public var sync_to_organizations: Swift.String + public var syncToOrganizations: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise-team/group_id`. - public var group_id: Swift.String? + public var groupId: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise-team/group_name`. - public var group_name: Swift.String? + public var groupName: Swift.String? /// - Remark: Generated from `#/components/schemas/enterprise-team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise-team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/enterprise-team/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/enterprise-team/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `enterprise_hyphen_team`. + public var updatedAt: Foundation.Date + /// Creates a new `EnterpriseTeam`. /// /// - Parameters: /// - id: /// - name: /// - slug: /// - url: - /// - sync_to_organizations: - /// - group_id: - /// - group_name: - /// - html_url: - /// - members_url: - /// - created_at: - /// - updated_at: + /// - syncToOrganizations: + /// - groupId: + /// - groupName: + /// - htmlUrl: + /// - membersUrl: + /// - createdAt: + /// - updatedAt: public init( id: Swift.Int64, name: Swift.String, slug: Swift.String, url: Swift.String, - sync_to_organizations: Swift.String, - group_id: Swift.String? = nil, - group_name: Swift.String? = nil, - html_url: Swift.String, - members_url: Swift.String, - created_at: Foundation.Date, - updated_at: Foundation.Date + syncToOrganizations: Swift.String, + groupId: Swift.String? = nil, + groupName: Swift.String? = nil, + htmlUrl: Swift.String, + membersUrl: Swift.String, + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.id = id self.name = name self.slug = slug self.url = url - self.sync_to_organizations = sync_to_organizations - self.group_id = group_id - self.group_name = group_name - self.html_url = html_url - self.members_url = members_url - self.created_at = created_at - self.updated_at = updated_at + self.syncToOrganizations = syncToOrganizations + self.groupId = groupId + self.groupName = groupName + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name case slug case url - case sync_to_organizations - case group_id - case group_name - case html_url - case members_url - case created_at - case updated_at + case syncToOrganizations = "sync_to_organizations" + case groupId = "group_id" + case groupName = "group_name" + case htmlUrl = "html_url" + case membersUrl = "members_url" + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Information about a Copilot Business seat assignment for a user, team, or organization. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details`. - public struct copilot_hyphen_seat_hyphen_details: Codable, Hashable, Sendable { + public struct CopilotSeatDetails: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assignee`. - public var assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var assignee: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/copilot-seat-details/organization`. - public var organization: Components.Schemas.nullable_hyphen_organization_hyphen_simple? + public var organization: Components.Schemas.NullableOrganizationSimple? /// The team through which the assignee is granted access to GitHub Copilot, if applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team`. - @frozen public enum assigning_teamPayload: Codable, Hashable, Sendable { + @frozen public enum AssigningTeamPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team/case1`. - case team(Components.Schemas.team) + case Team(Components.Schemas.Team) /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team/case2`. - case enterprise_hyphen_team(Components.Schemas.enterprise_hyphen_team) + case EnterpriseTeam(Components.Schemas.EnterpriseTeam) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - self = .team(try .init(from: decoder)) + self = .Team(try .init(from: decoder)) return } catch { errors.append(error) } do { - self = .enterprise_hyphen_team(try .init(from: decoder)) + self = .EnterpriseTeam(try .init(from: decoder)) return } catch { errors.append(error) @@ -1321,9 +1330,9 @@ public enum Components { } public func encode(to encoder: any Encoder) throws { switch self { - case let .team(value): + case let .Team(value): try value.encode(to: encoder) - case let .enterprise_hyphen_team(value): + case let .EnterpriseTeam(value): try value.encode(to: encoder) } } @@ -1331,32 +1340,32 @@ public enum Components { /// The team through which the assignee is granted access to GitHub Copilot, if applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/assigning_team`. - public var assigning_team: Components.Schemas.copilot_hyphen_seat_hyphen_details.assigning_teamPayload? + public var assigningTeam: Components.Schemas.CopilotSeatDetails.AssigningTeamPayload? /// The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/pending_cancellation_date`. - public var pending_cancellation_date: Swift.String? + public var pendingCancellationDate: Swift.String? /// Timestamp of user's last GitHub Copilot activity, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_activity_at`. - public var last_activity_at: Foundation.Date? + public var lastActivityAt: Foundation.Date? /// Last editor that was used by the user for a GitHub Copilot completion. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/last_activity_editor`. - public var last_activity_editor: Swift.String? + public var lastActivityEditor: Swift.String? /// Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/updated_at`. @available(*, deprecated) - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`. - @frozen public enum plan_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum PlanTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case business = "business" case enterprise = "enterprise" case unknown = "unknown" @@ -1364,88 +1373,88 @@ public enum Components { /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// /// - Remark: Generated from `#/components/schemas/copilot-seat-details/plan_type`. - public var plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload? - /// Creates a new `copilot_hyphen_seat_hyphen_details`. + public var planType: Components.Schemas.CopilotSeatDetails.PlanTypePayload? + /// Creates a new `CopilotSeatDetails`. /// /// - Parameters: /// - assignee: /// - organization: - /// - assigning_team: The team through which the assignee is granted access to GitHub Copilot, if applicable. - /// - pending_cancellation_date: The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle. - /// - last_activity_at: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format. - /// - last_activity_editor: Last editor that was used by the user for a GitHub Copilot completion. - /// - created_at: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format. - /// - updated_at: **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. - /// - plan_type: The Copilot plan of the organization, or the parent enterprise, when applicable. + /// - assigningTeam: The team through which the assignee is granted access to GitHub Copilot, if applicable. + /// - pendingCancellationDate: The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle. + /// - lastActivityAt: Timestamp of user's last GitHub Copilot activity, in ISO 8601 format. + /// - lastActivityEditor: Last editor that was used by the user for a GitHub Copilot completion. + /// - createdAt: Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format. + /// - updatedAt: **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. + /// - planType: The Copilot plan of the organization, or the parent enterprise, when applicable. public init( - assignee: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - organization: Components.Schemas.nullable_hyphen_organization_hyphen_simple? = nil, - assigning_team: Components.Schemas.copilot_hyphen_seat_hyphen_details.assigning_teamPayload? = nil, - pending_cancellation_date: Swift.String? = nil, - last_activity_at: Foundation.Date? = nil, - last_activity_editor: Swift.String? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date? = nil, - plan_type: Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload? = nil + assignee: Components.Schemas.NullableSimpleUser? = nil, + organization: Components.Schemas.NullableOrganizationSimple? = nil, + assigningTeam: Components.Schemas.CopilotSeatDetails.AssigningTeamPayload? = nil, + pendingCancellationDate: Swift.String? = nil, + lastActivityAt: Foundation.Date? = nil, + lastActivityEditor: Swift.String? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date? = nil, + planType: Components.Schemas.CopilotSeatDetails.PlanTypePayload? = nil ) { self.assignee = assignee self.organization = organization - self.assigning_team = assigning_team - self.pending_cancellation_date = pending_cancellation_date - self.last_activity_at = last_activity_at - self.last_activity_editor = last_activity_editor - self.created_at = created_at - self.updated_at = updated_at - self.plan_type = plan_type + self.assigningTeam = assigningTeam + self.pendingCancellationDate = pendingCancellationDate + self.lastActivityAt = lastActivityAt + self.lastActivityEditor = lastActivityEditor + self.createdAt = createdAt + self.updatedAt = updatedAt + self.planType = planType } public enum CodingKeys: String, CodingKey { case assignee case organization - case assigning_team - case pending_cancellation_date - case last_activity_at - case last_activity_editor - case created_at - case updated_at - case plan_type + case assigningTeam = "assigning_team" + case pendingCancellationDate = "pending_cancellation_date" + case lastActivityAt = "last_activity_at" + case lastActivityEditor = "last_activity_editor" + case createdAt = "created_at" + case updatedAt = "updated_at" + case planType = "plan_type" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - assignee = try container.decodeIfPresent( - Components.Schemas.nullable_hyphen_simple_hyphen_user.self, + self.assignee = try container.decodeIfPresent( + Components.Schemas.NullableSimpleUser.self, forKey: .assignee ) - organization = try container.decodeIfPresent( - Components.Schemas.nullable_hyphen_organization_hyphen_simple.self, + self.organization = try container.decodeIfPresent( + Components.Schemas.NullableOrganizationSimple.self, forKey: .organization ) - assigning_team = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_seat_hyphen_details.assigning_teamPayload.self, - forKey: .assigning_team + self.assigningTeam = try container.decodeIfPresent( + Components.Schemas.CopilotSeatDetails.AssigningTeamPayload.self, + forKey: .assigningTeam ) - pending_cancellation_date = try container.decodeIfPresent( + self.pendingCancellationDate = try container.decodeIfPresent( Swift.String.self, - forKey: .pending_cancellation_date + forKey: .pendingCancellationDate ) - last_activity_at = try container.decodeIfPresent( + self.lastActivityAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .last_activity_at + forKey: .lastActivityAt ) - last_activity_editor = try container.decodeIfPresent( + self.lastActivityEditor = try container.decodeIfPresent( Swift.String.self, - forKey: .last_activity_editor + forKey: .lastActivityEditor ) - created_at = try container.decode( + self.createdAt = try container.decode( Foundation.Date.self, - forKey: .created_at + forKey: .createdAt ) - updated_at = try container.decodeIfPresent( + self.updatedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - plan_type = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_seat_hyphen_details.plan_typePayload.self, - forKey: .plan_type + self.planType = try container.decodeIfPresent( + Components.Schemas.CopilotSeatDetails.PlanTypePayload.self, + forKey: .planType ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "assignee", @@ -1463,221 +1472,221 @@ public enum Components { /// Usage metrics for Copilot editor code completions in the IDE. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions`. - public struct copilot_hyphen_ide_hyphen_code_hyphen_completions: Codable, Hashable, Sendable { + public struct CopilotIdeCodeCompletions: Codable, Hashable, Sendable { /// Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/total_engaged_users`. - public var total_engaged_users: Swift.Int? + public var totalEngagedUsers: Swift.Int? /// Usage metrics for a given language for the given editor for Copilot code completions. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/languagesPayload`. - public struct languagesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/LanguagesPayload`. + public struct LanguagesPayloadPayload: Codable, Hashable, Sendable { /// Name of the language used for Copilot code completion suggestions. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/languagesPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/LanguagesPayload/name`. public var name: Swift.String? /// Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/languagesPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// Creates a new `languagesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/LanguagesPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? + /// Creates a new `LanguagesPayloadPayload`. /// /// - Parameters: /// - name: Name of the language used for Copilot code completion suggestions. - /// - total_engaged_users: Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances. + /// - totalEngagedUsers: Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances. public init( name: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil + totalEngagedUsers: Swift.Int? = nil ) { self.name = name - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers } public enum CodingKeys: String, CodingKey { case name - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" } } /// Code completion metrics for active languages. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/languages`. - public typealias languagesPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.languagesPayloadPayload] + public typealias LanguagesPayload = [Components.Schemas.CopilotIdeCodeCompletions.LanguagesPayloadPayload] /// Code completion metrics for active languages. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/languages`. - public var languages: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.languagesPayload? + public var languages: Components.Schemas.CopilotIdeCodeCompletions.LanguagesPayload? /// Copilot code completion metrics for active editors. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload`. - public struct editorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload`. + public struct EditorsPayloadPayload: Codable, Hashable, Sendable { /// Name of the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/name`. public var name: Swift.String? /// Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload`. - public struct modelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload`. + public struct ModelsPayloadPayload: Codable, Hashable, Sendable { /// Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/name`. public var name: Swift.String? /// Indicates whether a model is custom or default. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/is_custom_model`. - public var is_custom_model: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/is_custom_model`. + public var isCustomModel: Swift.Bool? /// The training date for the custom model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/custom_model_training_date`. - public var custom_model_training_date: Swift.String? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/custom_model_training_date`. + public var customModelTrainingDate: Swift.String? /// Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? /// Usage metrics for a given language for the given editor for Copilot code completions. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload`. - public struct languagesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload`. + public struct LanguagesPayloadPayload: Codable, Hashable, Sendable { /// Name of the language used for Copilot code completion suggestions, for the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/name`. public var name: Swift.String? /// Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? /// The number of Copilot code suggestions generated for the given editor, for the given language. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/total_code_suggestions`. - public var total_code_suggestions: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/total_code_suggestions`. + public var totalCodeSuggestions: Swift.Int? /// The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/total_code_acceptances`. - public var total_code_acceptances: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/total_code_acceptances`. + public var totalCodeAcceptances: Swift.Int? /// The number of lines of code suggested by Copilot code completions for the given editor, for the given language. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/total_code_lines_suggested`. - public var total_code_lines_suggested: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/total_code_lines_suggested`. + public var totalCodeLinesSuggested: Swift.Int? /// The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languagesPayload/total_code_lines_accepted`. - public var total_code_lines_accepted: Swift.Int? - /// Creates a new `languagesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/LanguagesPayload/total_code_lines_accepted`. + public var totalCodeLinesAccepted: Swift.Int? + /// Creates a new `LanguagesPayloadPayload`. /// /// - Parameters: /// - name: Name of the language used for Copilot code completion suggestions, for the given editor. - /// - total_engaged_users: Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances. - /// - total_code_suggestions: The number of Copilot code suggestions generated for the given editor, for the given language. - /// - total_code_acceptances: The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances. - /// - total_code_lines_suggested: The number of lines of code suggested by Copilot code completions for the given editor, for the given language. - /// - total_code_lines_accepted: The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language. + /// - totalEngagedUsers: Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances. + /// - totalCodeSuggestions: The number of Copilot code suggestions generated for the given editor, for the given language. + /// - totalCodeAcceptances: The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances. + /// - totalCodeLinesSuggested: The number of lines of code suggested by Copilot code completions for the given editor, for the given language. + /// - totalCodeLinesAccepted: The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language. public init( name: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - total_code_suggestions: Swift.Int? = nil, - total_code_acceptances: Swift.Int? = nil, - total_code_lines_suggested: Swift.Int? = nil, - total_code_lines_accepted: Swift.Int? = nil + totalEngagedUsers: Swift.Int? = nil, + totalCodeSuggestions: Swift.Int? = nil, + totalCodeAcceptances: Swift.Int? = nil, + totalCodeLinesSuggested: Swift.Int? = nil, + totalCodeLinesAccepted: Swift.Int? = nil ) { self.name = name - self.total_engaged_users = total_engaged_users - self.total_code_suggestions = total_code_suggestions - self.total_code_acceptances = total_code_acceptances - self.total_code_lines_suggested = total_code_lines_suggested - self.total_code_lines_accepted = total_code_lines_accepted + self.totalEngagedUsers = totalEngagedUsers + self.totalCodeSuggestions = totalCodeSuggestions + self.totalCodeAcceptances = totalCodeAcceptances + self.totalCodeLinesSuggested = totalCodeLinesSuggested + self.totalCodeLinesAccepted = totalCodeLinesAccepted } public enum CodingKeys: String, CodingKey { case name - case total_engaged_users - case total_code_suggestions - case total_code_acceptances - case total_code_lines_suggested - case total_code_lines_accepted + case totalEngagedUsers = "total_engaged_users" + case totalCodeSuggestions = "total_code_suggestions" + case totalCodeAcceptances = "total_code_acceptances" + case totalCodeLinesSuggested = "total_code_lines_suggested" + case totalCodeLinesAccepted = "total_code_lines_accepted" } } /// Code completion metrics for active languages, for the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languages`. - public typealias languagesPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayloadPayload.languagesPayloadPayload] + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/languages`. + public typealias LanguagesPayload = [Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayloadPayload.LanguagesPayloadPayload] /// Code completion metrics for active languages, for the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/modelsPayload/languages`. - public var languages: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayloadPayload.languagesPayload? - /// Creates a new `modelsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/ModelsPayload/languages`. + public var languages: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayloadPayload.LanguagesPayload? + /// Creates a new `ModelsPayloadPayload`. /// /// - Parameters: /// - name: Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. - /// - is_custom_model: Indicates whether a model is custom or default. - /// - custom_model_training_date: The training date for the custom model. - /// - total_engaged_users: Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances. + /// - isCustomModel: Indicates whether a model is custom or default. + /// - customModelTrainingDate: The training date for the custom model. + /// - totalEngagedUsers: Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances. /// - languages: Code completion metrics for active languages, for the given editor. public init( name: Swift.String? = nil, - is_custom_model: Swift.Bool? = nil, - custom_model_training_date: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - languages: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayloadPayload.languagesPayload? = nil + isCustomModel: Swift.Bool? = nil, + customModelTrainingDate: Swift.String? = nil, + totalEngagedUsers: Swift.Int? = nil, + languages: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayloadPayload.LanguagesPayload? = nil ) { self.name = name - self.is_custom_model = is_custom_model - self.custom_model_training_date = custom_model_training_date - self.total_engaged_users = total_engaged_users + self.isCustomModel = isCustomModel + self.customModelTrainingDate = customModelTrainingDate + self.totalEngagedUsers = totalEngagedUsers self.languages = languages } public enum CodingKeys: String, CodingKey { case name - case is_custom_model - case custom_model_training_date - case total_engaged_users + case isCustomModel = "is_custom_model" + case customModelTrainingDate = "custom_model_training_date" + case totalEngagedUsers = "total_engaged_users" case languages } } /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/models`. - public typealias modelsPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/models`. + public typealias ModelsPayload = [Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayloadPayload] /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editorsPayload/models`. - public var models: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayload? + /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/EditorsPayload/models`. + public var models: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `editorsPayloadPayload`. + /// Creates a new `EditorsPayloadPayload`. /// /// - Parameters: /// - name: Name of the given editor. - /// - total_engaged_users: Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances. + /// - totalEngagedUsers: Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances. /// - models: List of model metrics for custom models and the default model. /// - additionalProperties: A container of undocumented properties. public init( name: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - models: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayload? = nil, + totalEngagedUsers: Swift.Int? = nil, + models: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { self.name = name - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.models = models self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { case name - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case models } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - models = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload.modelsPayload.self, + self.models = try container.decodeIfPresent( + Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload.ModelsPayload.self, forKey: .models ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ @@ -1689,61 +1698,61 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - name, + self.name, forKey: .name ) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - models, + self.models, forKey: .models ) try encoder.encodeAdditionalProperties(additionalProperties) } } /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editors`. - public typealias editorsPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayloadPayload] + public typealias EditorsPayload = [Components.Schemas.CopilotIdeCodeCompletions.EditorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/copilot-ide-code-completions/editors`. - public var editors: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayload? + public var editors: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_ide_hyphen_code_hyphen_completions`. + /// Creates a new `CopilotIdeCodeCompletions`. /// /// - Parameters: - /// - total_engaged_users: Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances. + /// - totalEngagedUsers: Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances. /// - languages: Code completion metrics for active languages. /// - editors: /// - additionalProperties: A container of undocumented properties. public init( - total_engaged_users: Swift.Int? = nil, - languages: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.languagesPayload? = nil, - editors: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayload? = nil, + totalEngagedUsers: Swift.Int? = nil, + languages: Components.Schemas.CopilotIdeCodeCompletions.LanguagesPayload? = nil, + editors: Components.Schemas.CopilotIdeCodeCompletions.EditorsPayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.languages = languages self.editors = editors self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case languages case editors } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - languages = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.languagesPayload.self, + self.languages = try container.decodeIfPresent( + Components.Schemas.CopilotIdeCodeCompletions.LanguagesPayload.self, forKey: .languages ) - editors = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.editorsPayload.self, + self.editors = try container.decodeIfPresent( + Components.Schemas.CopilotIdeCodeCompletions.EditorsPayload.self, forKey: .editors ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ @@ -1755,15 +1764,15 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - languages, + self.languages, forKey: .languages ) try container.encodeIfPresent( - editors, + self.editors, forKey: .editors ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -1772,152 +1781,152 @@ public enum Components { /// Usage metrics for Copilot Chat in the IDE. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-chat`. - public struct copilot_hyphen_ide_hyphen_chat: Codable, Hashable, Sendable { + public struct CopilotIdeChat: Codable, Hashable, Sendable { /// Total number of users who prompted Copilot Chat in the IDE. /// /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/total_engaged_users`. - public var total_engaged_users: Swift.Int? + public var totalEngagedUsers: Swift.Int? /// Copilot Chat metrics, for active editors. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload`. - public struct editorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload`. + public struct EditorsPayloadPayload: Codable, Hashable, Sendable { /// Name of the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/name`. public var name: Swift.String? /// The number of users who prompted Copilot Chat in the specified editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload`. - public struct modelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload`. + public struct ModelsPayloadPayload: Codable, Hashable, Sendable { /// Name of the model used for Copilot Chat. If the default model is used will appear as 'default'. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/name`. public var name: Swift.String? /// Indicates whether a model is custom or default. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/is_custom_model`. - public var is_custom_model: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/is_custom_model`. + public var isCustomModel: Swift.Bool? /// The training date for the custom model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/custom_model_training_date`. - public var custom_model_training_date: Swift.String? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/custom_model_training_date`. + public var customModelTrainingDate: Swift.String? /// The number of users who prompted Copilot Chat in the given editor and model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? /// The total number of chats initiated by users in the given editor and model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/total_chats`. - public var total_chats: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/total_chats`. + public var totalChats: Swift.Int? /// The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/total_chat_insertion_events`. - public var total_chat_insertion_events: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/total_chat_insertion_events`. + public var totalChatInsertionEvents: Swift.Int? /// The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/modelsPayload/total_chat_copy_events`. - public var total_chat_copy_events: Swift.Int? - /// Creates a new `modelsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/ModelsPayload/total_chat_copy_events`. + public var totalChatCopyEvents: Swift.Int? + /// Creates a new `ModelsPayloadPayload`. /// /// - Parameters: /// - name: Name of the model used for Copilot Chat. If the default model is used will appear as 'default'. - /// - is_custom_model: Indicates whether a model is custom or default. - /// - custom_model_training_date: The training date for the custom model. - /// - total_engaged_users: The number of users who prompted Copilot Chat in the given editor and model. - /// - total_chats: The total number of chats initiated by users in the given editor and model. - /// - total_chat_insertion_events: The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor. - /// - total_chat_copy_events: The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor. + /// - isCustomModel: Indicates whether a model is custom or default. + /// - customModelTrainingDate: The training date for the custom model. + /// - totalEngagedUsers: The number of users who prompted Copilot Chat in the given editor and model. + /// - totalChats: The total number of chats initiated by users in the given editor and model. + /// - totalChatInsertionEvents: The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor. + /// - totalChatCopyEvents: The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor. public init( name: Swift.String? = nil, - is_custom_model: Swift.Bool? = nil, - custom_model_training_date: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - total_chats: Swift.Int? = nil, - total_chat_insertion_events: Swift.Int? = nil, - total_chat_copy_events: Swift.Int? = nil + isCustomModel: Swift.Bool? = nil, + customModelTrainingDate: Swift.String? = nil, + totalEngagedUsers: Swift.Int? = nil, + totalChats: Swift.Int? = nil, + totalChatInsertionEvents: Swift.Int? = nil, + totalChatCopyEvents: Swift.Int? = nil ) { self.name = name - self.is_custom_model = is_custom_model - self.custom_model_training_date = custom_model_training_date - self.total_engaged_users = total_engaged_users - self.total_chats = total_chats - self.total_chat_insertion_events = total_chat_insertion_events - self.total_chat_copy_events = total_chat_copy_events + self.isCustomModel = isCustomModel + self.customModelTrainingDate = customModelTrainingDate + self.totalEngagedUsers = totalEngagedUsers + self.totalChats = totalChats + self.totalChatInsertionEvents = totalChatInsertionEvents + self.totalChatCopyEvents = totalChatCopyEvents } public enum CodingKeys: String, CodingKey { case name - case is_custom_model - case custom_model_training_date - case total_engaged_users - case total_chats - case total_chat_insertion_events - case total_chat_copy_events + case isCustomModel = "is_custom_model" + case customModelTrainingDate = "custom_model_training_date" + case totalEngagedUsers = "total_engaged_users" + case totalChats = "total_chats" + case totalChatInsertionEvents = "total_chat_insertion_events" + case totalChatCopyEvents = "total_chat_copy_events" } } /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/models`. - public typealias modelsPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayloadPayload.modelsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/models`. + public typealias ModelsPayload = [Components.Schemas.CopilotIdeChat.EditorsPayloadPayload.ModelsPayloadPayload] /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editorsPayload/models`. - public var models: Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayloadPayload.modelsPayload? - /// Creates a new `editorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/EditorsPayload/models`. + public var models: Components.Schemas.CopilotIdeChat.EditorsPayloadPayload.ModelsPayload? + /// Creates a new `EditorsPayloadPayload`. /// /// - Parameters: /// - name: Name of the given editor. - /// - total_engaged_users: The number of users who prompted Copilot Chat in the specified editor. + /// - totalEngagedUsers: The number of users who prompted Copilot Chat in the specified editor. /// - models: List of model metrics for custom models and the default model. public init( name: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - models: Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayloadPayload.modelsPayload? = nil + totalEngagedUsers: Swift.Int? = nil, + models: Components.Schemas.CopilotIdeChat.EditorsPayloadPayload.ModelsPayload? = nil ) { self.name = name - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.models = models } public enum CodingKeys: String, CodingKey { case name - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case models } } /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editors`. - public typealias editorsPayload = [Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayloadPayload] + public typealias EditorsPayload = [Components.Schemas.CopilotIdeChat.EditorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/copilot-ide-chat/editors`. - public var editors: Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayload? + public var editors: Components.Schemas.CopilotIdeChat.EditorsPayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_ide_hyphen_chat`. + /// Creates a new `CopilotIdeChat`. /// /// - Parameters: - /// - total_engaged_users: Total number of users who prompted Copilot Chat in the IDE. + /// - totalEngagedUsers: Total number of users who prompted Copilot Chat in the IDE. /// - editors: /// - additionalProperties: A container of undocumented properties. public init( - total_engaged_users: Swift.Int? = nil, - editors: Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayload? = nil, + totalEngagedUsers: Swift.Int? = nil, + editors: Components.Schemas.CopilotIdeChat.EditorsPayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.editors = editors self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case editors } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - editors = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_chat.editorsPayload.self, + self.editors = try container.decodeIfPresent( + Components.Schemas.CopilotIdeChat.EditorsPayload.self, forKey: .editors ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ @@ -1928,11 +1937,11 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - editors, + self.editors, forKey: .editors ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -1941,99 +1950,99 @@ public enum Components { /// Usage metrics for Copilot Chat in GitHub.com /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat`. - public struct copilot_hyphen_dotcom_hyphen_chat: Codable, Hashable, Sendable { + public struct CopilotDotcomChat: Codable, Hashable, Sendable { /// Total number of users who prompted Copilot Chat on github.com at least once. /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload`. - public struct modelsPayloadPayload: Codable, Hashable, Sendable { + public var totalEngagedUsers: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload`. + public struct ModelsPayloadPayload: Codable, Hashable, Sendable { /// Name of the model used for Copilot Chat. If the default model is used will appear as 'default'. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload/name`. public var name: Swift.String? /// Indicates whether a model is custom or default. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload/is_custom_model`. - public var is_custom_model: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload/is_custom_model`. + public var isCustomModel: Swift.Bool? /// The training date for the custom model (if applicable). /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload/custom_model_training_date`. - public var custom_model_training_date: Swift.String? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload/custom_model_training_date`. + public var customModelTrainingDate: Swift.String? /// Total number of users who prompted Copilot Chat on github.com at least once for each model. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? /// Total number of chats initiated by users on github.com. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/modelsPayload/total_chats`. - public var total_chats: Swift.Int? - /// Creates a new `modelsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/ModelsPayload/total_chats`. + public var totalChats: Swift.Int? + /// Creates a new `ModelsPayloadPayload`. /// /// - Parameters: /// - name: Name of the model used for Copilot Chat. If the default model is used will appear as 'default'. - /// - is_custom_model: Indicates whether a model is custom or default. - /// - custom_model_training_date: The training date for the custom model (if applicable). - /// - total_engaged_users: Total number of users who prompted Copilot Chat on github.com at least once for each model. - /// - total_chats: Total number of chats initiated by users on github.com. + /// - isCustomModel: Indicates whether a model is custom or default. + /// - customModelTrainingDate: The training date for the custom model (if applicable). + /// - totalEngagedUsers: Total number of users who prompted Copilot Chat on github.com at least once for each model. + /// - totalChats: Total number of chats initiated by users on github.com. public init( name: Swift.String? = nil, - is_custom_model: Swift.Bool? = nil, - custom_model_training_date: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - total_chats: Swift.Int? = nil + isCustomModel: Swift.Bool? = nil, + customModelTrainingDate: Swift.String? = nil, + totalEngagedUsers: Swift.Int? = nil, + totalChats: Swift.Int? = nil ) { self.name = name - self.is_custom_model = is_custom_model - self.custom_model_training_date = custom_model_training_date - self.total_engaged_users = total_engaged_users - self.total_chats = total_chats + self.isCustomModel = isCustomModel + self.customModelTrainingDate = customModelTrainingDate + self.totalEngagedUsers = totalEngagedUsers + self.totalChats = totalChats } public enum CodingKeys: String, CodingKey { case name - case is_custom_model - case custom_model_training_date - case total_engaged_users - case total_chats + case isCustomModel = "is_custom_model" + case customModelTrainingDate = "custom_model_training_date" + case totalEngagedUsers = "total_engaged_users" + case totalChats = "total_chats" } } /// List of model metrics for a custom models and the default model. /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/models`. - public typealias modelsPayload = [Components.Schemas.copilot_hyphen_dotcom_hyphen_chat.modelsPayloadPayload] + public typealias ModelsPayload = [Components.Schemas.CopilotDotcomChat.ModelsPayloadPayload] /// List of model metrics for a custom models and the default model. /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-chat/models`. - public var models: Components.Schemas.copilot_hyphen_dotcom_hyphen_chat.modelsPayload? + public var models: Components.Schemas.CopilotDotcomChat.ModelsPayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_dotcom_hyphen_chat`. + /// Creates a new `CopilotDotcomChat`. /// /// - Parameters: - /// - total_engaged_users: Total number of users who prompted Copilot Chat on github.com at least once. + /// - totalEngagedUsers: Total number of users who prompted Copilot Chat on github.com at least once. /// - models: List of model metrics for a custom models and the default model. /// - additionalProperties: A container of undocumented properties. public init( - total_engaged_users: Swift.Int? = nil, - models: Components.Schemas.copilot_hyphen_dotcom_hyphen_chat.modelsPayload? = nil, + totalEngagedUsers: Swift.Int? = nil, + models: Components.Schemas.CopilotDotcomChat.ModelsPayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.models = models self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case models } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - models = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_dotcom_hyphen_chat.modelsPayload.self, + self.models = try container.decodeIfPresent( + Components.Schemas.CopilotDotcomChat.ModelsPayload.self, forKey: .models ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ @@ -2044,11 +2053,11 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - models, + self.models, forKey: .models ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -2057,138 +2066,138 @@ public enum Components { /// Usage metrics for Copilot for pull requests. /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests`. - public struct copilot_hyphen_dotcom_hyphen_pull_hyphen_requests: Codable, Hashable, Sendable { + public struct CopilotDotcomPullRequests: Codable, Hashable, Sendable { /// The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once. /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload`. - public struct repositoriesPayloadPayload: Codable, Hashable, Sendable { + public var totalEngagedUsers: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload`. + public struct RepositoriesPayloadPayload: Codable, Hashable, Sendable { /// Repository name /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/name`. public var name: Swift.String? /// The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload`. - public struct modelsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload`. + public struct ModelsPayloadPayload: Codable, Hashable, Sendable { /// Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload/name`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload/name`. public var name: Swift.String? /// Indicates whether a model is custom or default. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload/is_custom_model`. - public var is_custom_model: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload/is_custom_model`. + public var isCustomModel: Swift.Bool? /// The training date for the custom model. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload/custom_model_training_date`. - public var custom_model_training_date: Swift.String? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload/custom_model_training_date`. + public var customModelTrainingDate: Swift.String? /// The number of pull request summaries generated using Copilot for Pull Requests in the given repository. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload/total_pr_summaries_created`. - public var total_pr_summaries_created: Swift.Int? + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload/total_pr_summaries_created`. + public var totalPrSummariesCreated: Swift.Int? /// The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/modelsPayload/total_engaged_users`. - public var total_engaged_users: Swift.Int? - /// Creates a new `modelsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/ModelsPayload/total_engaged_users`. + public var totalEngagedUsers: Swift.Int? + /// Creates a new `ModelsPayloadPayload`. /// /// - Parameters: /// - name: Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'. - /// - is_custom_model: Indicates whether a model is custom or default. - /// - custom_model_training_date: The training date for the custom model. - /// - total_pr_summaries_created: The number of pull request summaries generated using Copilot for Pull Requests in the given repository. - /// - total_engaged_users: The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model. + /// - isCustomModel: Indicates whether a model is custom or default. + /// - customModelTrainingDate: The training date for the custom model. + /// - totalPrSummariesCreated: The number of pull request summaries generated using Copilot for Pull Requests in the given repository. + /// - totalEngagedUsers: The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model. public init( name: Swift.String? = nil, - is_custom_model: Swift.Bool? = nil, - custom_model_training_date: Swift.String? = nil, - total_pr_summaries_created: Swift.Int? = nil, - total_engaged_users: Swift.Int? = nil + isCustomModel: Swift.Bool? = nil, + customModelTrainingDate: Swift.String? = nil, + totalPrSummariesCreated: Swift.Int? = nil, + totalEngagedUsers: Swift.Int? = nil ) { self.name = name - self.is_custom_model = is_custom_model - self.custom_model_training_date = custom_model_training_date - self.total_pr_summaries_created = total_pr_summaries_created - self.total_engaged_users = total_engaged_users + self.isCustomModel = isCustomModel + self.customModelTrainingDate = customModelTrainingDate + self.totalPrSummariesCreated = totalPrSummariesCreated + self.totalEngagedUsers = totalEngagedUsers } public enum CodingKeys: String, CodingKey { case name - case is_custom_model - case custom_model_training_date - case total_pr_summaries_created - case total_engaged_users + case isCustomModel = "is_custom_model" + case customModelTrainingDate = "custom_model_training_date" + case totalPrSummariesCreated = "total_pr_summaries_created" + case totalEngagedUsers = "total_engaged_users" } } /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/models`. - public typealias modelsPayload = [Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayloadPayload.modelsPayloadPayload] + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/models`. + public typealias ModelsPayload = [Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayloadPayload.ModelsPayloadPayload] /// List of model metrics for custom models and the default model. /// - /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositoriesPayload/models`. - public var models: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayloadPayload.modelsPayload? - /// Creates a new `repositoriesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/RepositoriesPayload/models`. + public var models: Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayloadPayload.ModelsPayload? + /// Creates a new `RepositoriesPayloadPayload`. /// /// - Parameters: /// - name: Repository name - /// - total_engaged_users: The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository. + /// - totalEngagedUsers: The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository. /// - models: List of model metrics for custom models and the default model. public init( name: Swift.String? = nil, - total_engaged_users: Swift.Int? = nil, - models: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayloadPayload.modelsPayload? = nil + totalEngagedUsers: Swift.Int? = nil, + models: Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayloadPayload.ModelsPayload? = nil ) { self.name = name - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.models = models } public enum CodingKeys: String, CodingKey { case name - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case models } } /// Repositories in which users used Copilot for Pull Requests to generate pull request summaries /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositories`. - public typealias repositoriesPayload = [Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayloadPayload] + public typealias RepositoriesPayload = [Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayloadPayload] /// Repositories in which users used Copilot for Pull Requests to generate pull request summaries /// /// - Remark: Generated from `#/components/schemas/copilot-dotcom-pull-requests/repositories`. - public var repositories: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayload? + public var repositories: Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayload? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_dotcom_hyphen_pull_hyphen_requests`. + /// Creates a new `CopilotDotcomPullRequests`. /// /// - Parameters: - /// - total_engaged_users: The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once. + /// - totalEngagedUsers: The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once. /// - repositories: Repositories in which users used Copilot for Pull Requests to generate pull request summaries /// - additionalProperties: A container of undocumented properties. public init( - total_engaged_users: Swift.Int? = nil, - repositories: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayload? = nil, + totalEngagedUsers: Swift.Int? = nil, + repositories: Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayload? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { - self.total_engaged_users = total_engaged_users + self.totalEngagedUsers = totalEngagedUsers self.repositories = repositories self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { - case total_engaged_users + case totalEngagedUsers = "total_engaged_users" case repositories } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - repositories = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.repositoriesPayload.self, + self.repositories = try container.decodeIfPresent( + Components.Schemas.CopilotDotcomPullRequests.RepositoriesPayload.self, forKey: .repositories ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ @@ -2199,11 +2208,11 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - repositories, + self.repositories, forKey: .repositories ) try encoder.encodeAdditionalProperties(additionalProperties) @@ -2212,7 +2221,7 @@ public enum Components { /// Copilot usage metrics for a given day. /// /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day`. - public struct copilot_hyphen_usage_hyphen_metrics_hyphen_day: Codable, Hashable, Sendable { + public struct CopilotUsageMetricsDay: Codable, Hashable, Sendable { /// The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format. /// /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/date`. @@ -2220,89 +2229,89 @@ public enum Components { /// The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. /// /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/total_active_users`. - public var total_active_users: Swift.Int? + public var totalActiveUsers: Swift.Int? /// The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. /// /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/total_engaged_users`. - public var total_engaged_users: Swift.Int? + public var totalEngagedUsers: Swift.Int? /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/copilot_ide_code_completions`. - public var copilot_ide_code_completions: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions? + public var copilotIdeCodeCompletions: Components.Schemas.CopilotIdeCodeCompletions? /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/copilot_ide_chat`. - public var copilot_ide_chat: Components.Schemas.copilot_hyphen_ide_hyphen_chat? + public var copilotIdeChat: Components.Schemas.CopilotIdeChat? /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/copilot_dotcom_chat`. - public var copilot_dotcom_chat: Components.Schemas.copilot_hyphen_dotcom_hyphen_chat? + public var copilotDotcomChat: Components.Schemas.CopilotDotcomChat? /// - Remark: Generated from `#/components/schemas/copilot-usage-metrics-day/copilot_dotcom_pull_requests`. - public var copilot_dotcom_pull_requests: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests? + public var copilotDotcomPullRequests: Components.Schemas.CopilotDotcomPullRequests? /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `copilot_hyphen_usage_hyphen_metrics_hyphen_day`. + /// Creates a new `CopilotUsageMetricsDay`. /// /// - Parameters: /// - date: The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format. - /// - total_active_users: The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - total_engaged_users: The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - copilot_ide_code_completions: - /// - copilot_ide_chat: - /// - copilot_dotcom_chat: - /// - copilot_dotcom_pull_requests: + /// - totalActiveUsers: The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. + /// - totalEngagedUsers: The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. + /// - copilotIdeCodeCompletions: + /// - copilotIdeChat: + /// - copilotDotcomChat: + /// - copilotDotcomPullRequests: /// - additionalProperties: A container of undocumented properties. public init( date: Swift.String, - total_active_users: Swift.Int? = nil, - total_engaged_users: Swift.Int? = nil, - copilot_ide_code_completions: Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions? = nil, - copilot_ide_chat: Components.Schemas.copilot_hyphen_ide_hyphen_chat? = nil, - copilot_dotcom_chat: Components.Schemas.copilot_hyphen_dotcom_hyphen_chat? = nil, - copilot_dotcom_pull_requests: Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests? = nil, + totalActiveUsers: Swift.Int? = nil, + totalEngagedUsers: Swift.Int? = nil, + copilotIdeCodeCompletions: Components.Schemas.CopilotIdeCodeCompletions? = nil, + copilotIdeChat: Components.Schemas.CopilotIdeChat? = nil, + copilotDotcomChat: Components.Schemas.CopilotDotcomChat? = nil, + copilotDotcomPullRequests: Components.Schemas.CopilotDotcomPullRequests? = nil, additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer = .init() ) { self.date = date - self.total_active_users = total_active_users - self.total_engaged_users = total_engaged_users - self.copilot_ide_code_completions = copilot_ide_code_completions - self.copilot_ide_chat = copilot_ide_chat - self.copilot_dotcom_chat = copilot_dotcom_chat - self.copilot_dotcom_pull_requests = copilot_dotcom_pull_requests + self.totalActiveUsers = totalActiveUsers + self.totalEngagedUsers = totalEngagedUsers + self.copilotIdeCodeCompletions = copilotIdeCodeCompletions + self.copilotIdeChat = copilotIdeChat + self.copilotDotcomChat = copilotDotcomChat + self.copilotDotcomPullRequests = copilotDotcomPullRequests self.additionalProperties = additionalProperties } public enum CodingKeys: String, CodingKey { case date - case total_active_users - case total_engaged_users - case copilot_ide_code_completions - case copilot_ide_chat - case copilot_dotcom_chat - case copilot_dotcom_pull_requests + case totalActiveUsers = "total_active_users" + case totalEngagedUsers = "total_engaged_users" + case copilotIdeCodeCompletions = "copilot_ide_code_completions" + case copilotIdeChat = "copilot_ide_chat" + case copilotDotcomChat = "copilot_dotcom_chat" + case copilotDotcomPullRequests = "copilot_dotcom_pull_requests" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - date = try container.decode( + self.date = try container.decode( Swift.String.self, forKey: .date ) - total_active_users = try container.decodeIfPresent( + self.totalActiveUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_active_users + forKey: .totalActiveUsers ) - total_engaged_users = try container.decodeIfPresent( + self.totalEngagedUsers = try container.decodeIfPresent( Swift.Int.self, - forKey: .total_engaged_users + forKey: .totalEngagedUsers ) - copilot_ide_code_completions = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_code_hyphen_completions.self, - forKey: .copilot_ide_code_completions + self.copilotIdeCodeCompletions = try container.decodeIfPresent( + Components.Schemas.CopilotIdeCodeCompletions.self, + forKey: .copilotIdeCodeCompletions ) - copilot_ide_chat = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_ide_hyphen_chat.self, - forKey: .copilot_ide_chat + self.copilotIdeChat = try container.decodeIfPresent( + Components.Schemas.CopilotIdeChat.self, + forKey: .copilotIdeChat ) - copilot_dotcom_chat = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_dotcom_hyphen_chat.self, - forKey: .copilot_dotcom_chat + self.copilotDotcomChat = try container.decodeIfPresent( + Components.Schemas.CopilotDotcomChat.self, + forKey: .copilotDotcomChat ) - copilot_dotcom_pull_requests = try container.decodeIfPresent( - Components.Schemas.copilot_hyphen_dotcom_hyphen_pull_hyphen_requests.self, - forKey: .copilot_dotcom_pull_requests + self.copilotDotcomPullRequests = try container.decodeIfPresent( + Components.Schemas.CopilotDotcomPullRequests.self, + forKey: .copilotDotcomPullRequests ) additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [ "date", @@ -2317,32 +2326,32 @@ public enum Components { public func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode( - date, + self.date, forKey: .date ) try container.encodeIfPresent( - total_active_users, - forKey: .total_active_users + self.totalActiveUsers, + forKey: .totalActiveUsers ) try container.encodeIfPresent( - total_engaged_users, - forKey: .total_engaged_users + self.totalEngagedUsers, + forKey: .totalEngagedUsers ) try container.encodeIfPresent( - copilot_ide_code_completions, - forKey: .copilot_ide_code_completions + self.copilotIdeCodeCompletions, + forKey: .copilotIdeCodeCompletions ) try container.encodeIfPresent( - copilot_ide_chat, - forKey: .copilot_ide_chat + self.copilotIdeChat, + forKey: .copilotIdeChat ) try container.encodeIfPresent( - copilot_dotcom_chat, - forKey: .copilot_dotcom_chat + self.copilotDotcomChat, + forKey: .copilotDotcomChat ) try container.encodeIfPresent( - copilot_dotcom_pull_requests, - forKey: .copilot_dotcom_pull_requests + self.copilotDotcomPullRequests, + forKey: .copilotDotcomPullRequests ) try encoder.encodeAdditionalProperties(additionalProperties) } @@ -2353,34 +2362,34 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. - public typealias username = Swift.String + public typealias Username = Swift.String /// The slug of the team name. /// /// - Remark: Generated from `#/components/parameters/team-slug`. - public typealias team_hyphen_slug = Swift.String + public typealias TeamSlug = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2390,25 +2399,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct requires_authentication: Sendable, Hashable { + public struct RequiresAuthentication: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/requires_authentication/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2418,25 +2427,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.requires_authentication.Body - /// Creates a new `requires_authentication`. + public var body: Components.Responses.RequiresAuthentication.Body + /// Creates a new `RequiresAuthentication`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.requires_authentication.Body) { + public init(body: Components.Responses.RequiresAuthentication.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2446,25 +2455,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct internal_error: Sendable, Hashable { + public struct InternalError: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/internal_error/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/internal_error/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2474,25 +2483,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.internal_error.Body - /// Creates a new `internal_error`. + public var body: Components.Responses.InternalError.Body + /// Creates a new `InternalError`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.internal_error.Body) { + public init(body: Components.Responses.InternalError.Body) { self.body = body } } - public struct usage_metrics_api_disabled: Sendable, Hashable { + public struct UsageMetricsApiDisabled: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/usage_metrics_api_disabled/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/usage_metrics_api_disabled/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2502,12 +2511,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.usage_metrics_api_disabled.Body - /// Creates a new `usage_metrics_api_disabled`. + public var body: Components.Responses.UsageMetricsApiDisabled.Body + /// Creates a new `UsageMetricsApiDisabled`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.usage_metrics_api_disabled.Body) { + public init(body: Components.Responses.UsageMetricsApiDisabled.Body) { self.body = body } } @@ -2515,7 +2524,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -2536,7 +2545,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)`. - public enum copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details { + public enum CopilotGetCopilotOrganizationDetails { public static let id: Swift.String = "copilot/get-copilot-organization-details" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/GET/path`. @@ -2544,36 +2553,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Path + public var path: Operations.CopilotGetCopilotOrganizationDetails.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Headers + public var headers: Operations.CopilotGetCopilotOrganizationDetails.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Path, - headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Input.Headers = .init() + path: Operations.CopilotGetCopilotOrganizationDetails.Input.Path, + headers: Operations.CopilotGetCopilotOrganizationDetails.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2584,12 +2593,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/GET/responses/200/content/application\/json`. - case json(Components.Schemas.copilot_hyphen_organization_hyphen_details) + case json(Components.Schemas.CopilotOrganizationDetails) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.copilot_hyphen_organization_hyphen_details { + public var json: Components.Schemas.CopilotOrganizationDetails { get throws { switch self { case let .json(body): @@ -2599,12 +2608,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.Ok.Body + public var body: Operations.CopilotGetCopilotOrganizationDetails.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.Ok.Body) { + public init(body: Operations.CopilotGetCopilotOrganizationDetails.Output.Ok.Body) { self.body = body } } @@ -2613,12 +2622,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.Ok) + case ok(Operations.CopilotGetCopilotOrganizationDetails.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.Ok { + public var ok: Operations.CopilotGetCopilotOrganizationDetails.Output.Ok { get throws { switch self { case let .ok(response): @@ -2636,12 +2645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -2659,12 +2668,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -2682,12 +2691,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2705,12 +2714,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2732,12 +2741,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotGetCopilotOrganizationDetails.Output.UnprocessableContent) + /// There is a problem with your account's associated payment method. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotGetCopilotOrganizationDetails.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -2796,7 +2813,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/billing/seats`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)`. - public enum copilot_sol_list_hyphen_copilot_hyphen_seats { + public enum CopilotListCopilotSeats { public static let id: Swift.String = "copilot/list-copilot-seats" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/path`. @@ -2804,52 +2821,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Path + public var path: Operations.CopilotListCopilotSeats.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Swift.Int? = nil + page: Components.Parameters.Page? = nil, + perPage: Swift.Int? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Query + public var query: Operations.CopilotListCopilotSeats.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Headers + public var headers: Operations.CopilotListCopilotSeats.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2857,9 +2874,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Path, - query: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Query = .init(), - headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Input.Headers = .init() + path: Operations.CopilotListCopilotSeats.Input.Path, + query: Operations.CopilotListCopilotSeats.Input.Query = .init(), + headers: Operations.CopilotListCopilotSeats.Input.Headers = .init() ) { self.path = path self.query = query @@ -2871,51 +2888,51 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Headers + public var headers: Operations.CopilotListCopilotSeats.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Total number of Copilot seats for the organization currently being billed. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/content/json/total_seats`. - public var total_seats: Swift.Int? + public var totalSeats: Swift.Int? /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/content/json/seats`. - public var seats: [Components.Schemas.copilot_hyphen_seat_hyphen_details]? - /// Creates a new `jsonPayload`. + public var seats: [Components.Schemas.CopilotSeatDetails]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_seats: Total number of Copilot seats for the organization currently being billed. + /// - totalSeats: Total number of Copilot seats for the organization currently being billed. /// - seats: public init( - total_seats: Swift.Int? = nil, - seats: [Components.Schemas.copilot_hyphen_seat_hyphen_details]? = nil + totalSeats: Swift.Int? = nil, + seats: [Components.Schemas.CopilotSeatDetails]? = nil ) { - self.total_seats = total_seats + self.totalSeats = totalSeats self.seats = seats } public enum CodingKeys: String, CodingKey { - case total_seats + case totalSeats = "total_seats" case seats } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/seats/GET/responses/200/content/application\/json`. - case json(Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body.jsonPayload) + case json(Operations.CopilotListCopilotSeats.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body.jsonPayload { + public var json: Operations.CopilotListCopilotSeats.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -2925,15 +2942,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body + public var body: Operations.CopilotListCopilotSeats.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Headers = .init(), - body: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok.Body + headers: Operations.CopilotListCopilotSeats.Output.Ok.Headers = .init(), + body: Operations.CopilotListCopilotSeats.Output.Ok.Body ) { self.headers = headers self.body = body @@ -2944,12 +2961,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok) + case ok(Operations.CopilotListCopilotSeats.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_list_hyphen_copilot_hyphen_seats.Output.Ok { + public var ok: Operations.CopilotListCopilotSeats.Output.Ok { get throws { switch self { case let .ok(response): @@ -2967,12 +2984,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -2990,12 +3007,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3013,12 +3030,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3036,12 +3053,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/seats/get(copilot/list-copilot-seats)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3103,7 +3120,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)`. - public enum copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams { + public enum CopilotAddCopilotSeatsForTeams { public static let id: Swift.String = "copilot/add-copilot-seats-for-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/path`. @@ -3111,51 +3128,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Path + public var path: Operations.CopilotAddCopilotSeatsForTeams.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Headers + public var headers: Operations.CopilotAddCopilotSeatsForTeams.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// List of team names within the organization to which to grant access to GitHub Copilot. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/requestBody/json/selected_teams`. - public var selected_teams: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedTeams: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_teams: List of team names within the organization to which to grant access to GitHub Copilot. - public init(selected_teams: [Swift.String]) { - self.selected_teams = selected_teams + /// - selectedTeams: List of team names within the organization to which to grant access to GitHub Copilot. + public init(selectedTeams: [Swift.String]) { + self.selectedTeams = selectedTeams } public enum CodingKeys: String, CodingKey { - case selected_teams + case selectedTeams = "selected_teams" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/requestBody/content/application\/json`. - case json(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Body.jsonPayload) + case json(Operations.CopilotAddCopilotSeatsForTeams.Input.Body.JsonPayload) } - public var body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Body + public var body: Operations.CopilotAddCopilotSeatsForTeams.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3163,9 +3180,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Path, - headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Headers = .init(), - body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Input.Body + path: Operations.CopilotAddCopilotSeatsForTeams.Input.Path, + headers: Operations.CopilotAddCopilotSeatsForTeams.Input.Headers = .init(), + body: Operations.CopilotAddCopilotSeatsForTeams.Input.Body ) { self.path = path self.headers = headers @@ -3179,27 +3196,27 @@ public enum Operations { /// The total number of seats created for members of the specified team(s). /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/responses/201/content/json/seats_created`. - public var seats_created: Swift.Int - /// Creates a new `jsonPayload`. + public var seatsCreated: Swift.Int + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - seats_created: - public init(seats_created: Swift.Int) { - self.seats_created = seats_created + /// - seatsCreated: + public init(seatsCreated: Swift.Int) { + self.seatsCreated = seatsCreated } public enum CodingKeys: String, CodingKey { - case seats_created + case seatsCreated = "seats_created" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/POST/responses/201/content/application\/json`. - case json(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body.jsonPayload) + case json(Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body.jsonPayload { + public var json: Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3209,12 +3226,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body + public var body: Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created.Body) { + public init(body: Operations.CopilotAddCopilotSeatsForTeams.Output.Created.Body) { self.body = body } } @@ -3223,12 +3240,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created) + case created(Operations.CopilotAddCopilotSeatsForTeams.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.Created { + public var created: Operations.CopilotAddCopilotSeatsForTeams.Output.Created { get throws { switch self { case let .created(response): @@ -3246,12 +3263,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -3269,12 +3286,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3292,12 +3309,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3315,12 +3332,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3342,12 +3359,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotAddCopilotSeatsForTeams.Output.UnprocessableContent) + /// Copilot Business or Enterprise is not enabled for this organization, billing has not been set up for this organization, a public code suggestions policy has not been set for this organization, or the organization's Copilot access setting is set to enable Copilot for all users or is unconfigured. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/post(copilot/add-copilot-seats-for-teams)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_teams.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotAddCopilotSeatsForTeams.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -3408,7 +3433,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_teams`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)`. - public enum copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams { + public enum CopilotCancelCopilotSeatAssignmentForTeams { public static let id: Swift.String = "copilot/cancel-copilot-seat-assignment-for-teams" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/path`. @@ -3416,51 +3441,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Path + public var path: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Headers + public var headers: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The names of teams from which to revoke access to GitHub Copilot. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/requestBody/json/selected_teams`. - public var selected_teams: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedTeams: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_teams: The names of teams from which to revoke access to GitHub Copilot. - public init(selected_teams: [Swift.String]) { - self.selected_teams = selected_teams + /// - selectedTeams: The names of teams from which to revoke access to GitHub Copilot. + public init(selectedTeams: [Swift.String]) { + self.selectedTeams = selectedTeams } public enum CodingKeys: String, CodingKey { - case selected_teams + case selectedTeams = "selected_teams" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/requestBody/content/application\/json`. - case json(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Body.jsonPayload) + case json(Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Body.JsonPayload) } - public var body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Body + public var body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3468,9 +3493,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Path, - headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Headers = .init(), - body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Input.Body + path: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Path, + headers: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Headers = .init(), + body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Input.Body ) { self.path = path self.headers = headers @@ -3484,27 +3509,27 @@ public enum Operations { /// The total number of seats set to "pending cancellation" for members of the specified team(s). /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/responses/200/content/json/seats_cancelled`. - public var seats_cancelled: Swift.Int - /// Creates a new `jsonPayload`. + public var seatsCancelled: Swift.Int + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - seats_cancelled: - public init(seats_cancelled: Swift.Int) { - self.seats_cancelled = seats_cancelled + /// - seatsCancelled: + public init(seatsCancelled: Swift.Int) { + self.seatsCancelled = seatsCancelled } public enum CodingKeys: String, CodingKey { - case seats_cancelled + case seatsCancelled = "seats_cancelled" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_teams/DELETE/responses/200/content/application\/json`. - case json(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body.jsonPayload) + case json(Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body.jsonPayload { + public var json: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3514,12 +3539,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body + public var body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok.Body) { + public init(body: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok.Body) { self.body = body } } @@ -3528,12 +3553,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok) + case ok(Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.Ok { + public var ok: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.Ok { get throws { switch self { case let .ok(response): @@ -3551,12 +3576,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -3574,12 +3599,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3597,12 +3622,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3620,12 +3645,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3647,12 +3672,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.UnprocessableContent) + /// Copilot Business or Enterprise is not enabled for this organization, billing has not been set up for this organization, a public code suggestions policy has not been set for this organization, or the organization's Copilot access setting is set to enable Copilot for all users or is unconfigured. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_teams/delete(copilot/cancel-copilot-seat-assignment-for-teams)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_teams.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotCancelCopilotSeatAssignmentForTeams.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -3714,7 +3747,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)`. - public enum copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users { + public enum CopilotAddCopilotSeatsForUsers { public static let id: Swift.String = "copilot/add-copilot-seats-for-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/path`. @@ -3722,51 +3755,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Path + public var path: Operations.CopilotAddCopilotSeatsForUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Headers + public var headers: Operations.CopilotAddCopilotSeatsForUsers.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The usernames of the organization members to be granted access to GitHub Copilot. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/requestBody/json/selected_usernames`. - public var selected_usernames: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedUsernames: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_usernames: The usernames of the organization members to be granted access to GitHub Copilot. - public init(selected_usernames: [Swift.String]) { - self.selected_usernames = selected_usernames + /// - selectedUsernames: The usernames of the organization members to be granted access to GitHub Copilot. + public init(selectedUsernames: [Swift.String]) { + self.selectedUsernames = selectedUsernames } public enum CodingKeys: String, CodingKey { - case selected_usernames + case selectedUsernames = "selected_usernames" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/requestBody/content/application\/json`. - case json(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Body.jsonPayload) + case json(Operations.CopilotAddCopilotSeatsForUsers.Input.Body.JsonPayload) } - public var body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Body + public var body: Operations.CopilotAddCopilotSeatsForUsers.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3774,9 +3807,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Path, - headers: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Headers = .init(), - body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Input.Body + path: Operations.CopilotAddCopilotSeatsForUsers.Input.Path, + headers: Operations.CopilotAddCopilotSeatsForUsers.Input.Headers = .init(), + body: Operations.CopilotAddCopilotSeatsForUsers.Input.Body ) { self.path = path self.headers = headers @@ -3790,27 +3823,27 @@ public enum Operations { /// The total number of seats created for the specified user(s). /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/responses/201/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/responses/201/content/json/seats_created`. - public var seats_created: Swift.Int - /// Creates a new `jsonPayload`. + public var seatsCreated: Swift.Int + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - seats_created: - public init(seats_created: Swift.Int) { - self.seats_created = seats_created + /// - seatsCreated: + public init(seatsCreated: Swift.Int) { + self.seatsCreated = seatsCreated } public enum CodingKeys: String, CodingKey { - case seats_created + case seatsCreated = "seats_created" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/POST/responses/201/content/application\/json`. - case json(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body.jsonPayload) + case json(Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body.jsonPayload { + public var json: Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -3820,12 +3853,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body + public var body: Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created.Body) { + public init(body: Operations.CopilotAddCopilotSeatsForUsers.Output.Created.Body) { self.body = body } } @@ -3834,12 +3867,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created) + case created(Operations.CopilotAddCopilotSeatsForUsers.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.Created { + public var created: Operations.CopilotAddCopilotSeatsForUsers.Output.Created { get throws { switch self { case let .created(response): @@ -3857,12 +3890,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -3880,12 +3913,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -3903,12 +3936,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3926,12 +3959,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3953,12 +3986,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotAddCopilotSeatsForUsers.Output.UnprocessableContent) + /// Copilot Business or Enterprise is not enabled for this organization, billing has not been set up for this organization, a public code suggestions policy has not been set for this organization, or the organization's Copilot access setting is set to enable Copilot for all users or is unconfigured. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/post(copilot/add-copilot-seats-for-users)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_add_hyphen_copilot_hyphen_seats_hyphen_for_hyphen_users.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotAddCopilotSeatsForUsers.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -4019,7 +4060,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/copilot/billing/selected_users`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)`. - public enum copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users { + public enum CopilotCancelCopilotSeatAssignmentForUsers { public static let id: Swift.String = "copilot/cancel-copilot-seat-assignment-for-users" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/path`. @@ -4027,51 +4068,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Path + public var path: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Headers + public var headers: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The usernames of the organization members for which to revoke access to GitHub Copilot. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/requestBody/json/selected_usernames`. - public var selected_usernames: [Swift.String] - /// Creates a new `jsonPayload`. + public var selectedUsernames: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_usernames: The usernames of the organization members for which to revoke access to GitHub Copilot. - public init(selected_usernames: [Swift.String]) { - self.selected_usernames = selected_usernames + /// - selectedUsernames: The usernames of the organization members for which to revoke access to GitHub Copilot. + public init(selectedUsernames: [Swift.String]) { + self.selectedUsernames = selectedUsernames } public enum CodingKeys: String, CodingKey { - case selected_usernames + case selectedUsernames = "selected_usernames" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/requestBody/content/application\/json`. - case json(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Body.jsonPayload) + case json(Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Body.JsonPayload) } - public var body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Body + public var body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4079,9 +4120,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Path, - headers: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Headers = .init(), - body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Input.Body + path: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Path, + headers: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Headers = .init(), + body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Input.Body ) { self.path = path self.headers = headers @@ -4095,27 +4136,27 @@ public enum Operations { /// The total number of seats set to "pending cancellation" for the specified users. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/responses/200/content/json/seats_cancelled`. - public var seats_cancelled: Swift.Int - /// Creates a new `jsonPayload`. + public var seatsCancelled: Swift.Int + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - seats_cancelled: - public init(seats_cancelled: Swift.Int) { - self.seats_cancelled = seats_cancelled + /// - seatsCancelled: + public init(seatsCancelled: Swift.Int) { + self.seatsCancelled = seatsCancelled } public enum CodingKeys: String, CodingKey { - case seats_cancelled + case seatsCancelled = "seats_cancelled" } } /// - Remark: Generated from `#/paths/orgs/{org}/copilot/billing/selected_users/DELETE/responses/200/content/application\/json`. - case json(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body.jsonPayload) + case json(Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body.jsonPayload { + public var json: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4125,12 +4166,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body + public var body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok.Body) { + public init(body: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok.Body) { self.body = body } } @@ -4139,12 +4180,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok) + case ok(Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.Ok { + public var ok: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.Ok { get throws { switch self { case let .ok(response): @@ -4162,12 +4203,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -4185,12 +4226,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4208,12 +4249,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4231,12 +4272,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4258,12 +4299,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.UnprocessableContent) + /// Copilot Business or Enterprise is not enabled for this organization, billing has not been set up for this organization, a public code suggestions policy has not been set for this organization, the seat management setting is set to enable Copilot for all users or is unconfigured, or a user's seat cannot be cancelled because it was assigned to them via a team. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/selected_users/delete(copilot/cancel-copilot-seat-assignment-for-users)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_cancel_hyphen_copilot_hyphen_seat_hyphen_assignment_hyphen_for_hyphen_users.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotCancelCopilotSeatAssignmentForUsers.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -4325,7 +4374,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)`. - public enum copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization { + public enum CopilotCopilotMetricsForOrganization { public static let id: Swift.String = "copilot/copilot-metrics-for-organization" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/path`. @@ -4333,16 +4382,16 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Path + public var path: Operations.CopilotCopilotMetricsForOrganization.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query`. public struct Query: Sendable, Hashable { /// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago. @@ -4356,43 +4405,43 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The number of days of metrics to display per page (max 28). 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: /// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago. /// - until: Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed. /// - 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)." - /// - per_page: The number of days of metrics to display per page (max 28). 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)." + /// - perPage: The number of days of metrics to display per page (max 28). 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)." public init( since: Swift.String? = nil, until: Swift.String? = nil, - page: Components.Parameters.page? = nil, - per_page: Swift.Int? = nil + page: Components.Parameters.Page? = nil, + perPage: Swift.Int? = nil ) { self.since = since self.until = until self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Query + public var query: Operations.CopilotCopilotMetricsForOrganization.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Headers + public var headers: Operations.CopilotCopilotMetricsForOrganization.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4400,9 +4449,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Path, - query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Query = .init(), - headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Input.Headers = .init() + path: Operations.CopilotCopilotMetricsForOrganization.Input.Path, + query: Operations.CopilotCopilotMetricsForOrganization.Input.Query = .init(), + headers: Operations.CopilotCopilotMetricsForOrganization.Input.Headers = .init() ) { self.path = path self.query = query @@ -4414,12 +4463,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/copilot/metrics/GET/responses/200/content/application\/json`. - case json([Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day]) + case json([Components.Schemas.CopilotUsageMetricsDay]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day] { + public var json: [Components.Schemas.CopilotUsageMetricsDay] { get throws { switch self { case let .json(body): @@ -4429,12 +4478,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output.Ok.Body + public var body: Operations.CopilotCopilotMetricsForOrganization.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output.Ok.Body) { + public init(body: Operations.CopilotCopilotMetricsForOrganization.Output.Ok.Body) { self.body = body } } @@ -4443,12 +4492,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output.Ok) + case ok(Operations.CopilotCopilotMetricsForOrganization.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_organization.Output.Ok { + public var ok: Operations.CopilotCopilotMetricsForOrganization.Output.Ok { get throws { switch self { case let .ok(response): @@ -4466,12 +4515,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -4489,12 +4538,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4512,12 +4561,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4535,12 +4584,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/copilot/metrics/get(copilot/copilot-metrics-for-organization)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.usage_metrics_api_disabled) + case unprocessableContent(Components.Responses.UsageMetricsApiDisabled) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.usage_metrics_api_disabled { + public var unprocessableContent: Components.Responses.UsageMetricsApiDisabled { get throws { switch self { case let .unprocessableContent(response): @@ -4600,7 +4649,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/members/{username}/copilot`. /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)`. - public enum copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user { + public enum CopilotGetCopilotSeatDetailsForUser { public static let id: Swift.String = "copilot/get-copilot-seat-details-for-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/path`. @@ -4608,45 +4657,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/path/username`. - public var username: Components.Parameters.username + public var username: Components.Parameters.Username /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. /// - username: The handle for the GitHub user account. public init( - org: Components.Parameters.org, - username: Components.Parameters.username + org: Components.Parameters.Org, + username: Components.Parameters.Username ) { self.org = org self.username = username } } - public var path: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Path + public var path: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Headers + public var headers: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Path, - headers: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Input.Headers = .init() + path: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Path, + headers: Operations.CopilotGetCopilotSeatDetailsForUser.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4657,12 +4706,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/members/{username}/copilot/GET/responses/200/content/application\/json`. - case json(Components.Schemas.copilot_hyphen_seat_hyphen_details) + case json(Components.Schemas.CopilotSeatDetails) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.copilot_hyphen_seat_hyphen_details { + public var json: Components.Schemas.CopilotSeatDetails { get throws { switch self { case let .json(body): @@ -4672,12 +4721,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.Ok.Body + public var body: Operations.CopilotGetCopilotSeatDetailsForUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.Ok.Body) { + public init(body: Operations.CopilotGetCopilotSeatDetailsForUser.Output.Ok.Body) { self.body = body } } @@ -4686,12 +4735,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.Ok) + case ok(Operations.CopilotGetCopilotSeatDetailsForUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.Ok { + public var ok: Operations.CopilotGetCopilotSeatDetailsForUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -4709,12 +4758,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -4732,12 +4781,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/401`. /// /// HTTP response code: `401 unauthorized`. - case unauthorized(Components.Responses.requires_authentication) + case unauthorized(Components.Responses.RequiresAuthentication) /// The associated value of the enum case if `self` is `.unauthorized`. /// /// - Throws: An error if `self` is not `.unauthorized`. /// - SeeAlso: `.unauthorized`. - public var unauthorized: Components.Responses.requires_authentication { + public var unauthorized: Components.Responses.RequiresAuthentication { get throws { switch self { case let .unauthorized(response): @@ -4755,12 +4804,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4778,12 +4827,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4805,12 +4854,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.UnprocessableContent) + case unprocessableContent(Operations.CopilotGetCopilotSeatDetailsForUser.Output.UnprocessableContent) + /// Copilot Business or Enterprise is not enabled for this organization or the user has a pending organization invitation. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/copilot/get(copilot/get-copilot-seat-details-for-user)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + public static var unprocessableContent: Self { + .unprocessableContent(.init()) + } /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.copilot_sol_get_hyphen_copilot_hyphen_seat_hyphen_details_hyphen_for_hyphen_user.Output.UnprocessableContent { + public var unprocessableContent: Operations.CopilotGetCopilotSeatDetailsForUser.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -4872,7 +4929,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/team/{team_slug}/copilot/metrics`. /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)`. - public enum copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team { + public enum CopilotCopilotMetricsForTeam { public static let id: Swift.String = "copilot/copilot-metrics-for-team" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/path`. @@ -4880,25 +4937,25 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The slug of the team name. /// /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/path/team_slug`. - public var team_slug: Components.Parameters.team_hyphen_slug + public var teamSlug: Components.Parameters.TeamSlug /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - team_slug: The slug of the team name. + /// - teamSlug: The slug of the team name. public init( - org: Components.Parameters.org, - team_slug: Components.Parameters.team_hyphen_slug + org: Components.Parameters.Org, + teamSlug: Components.Parameters.TeamSlug ) { self.org = org - self.team_slug = team_slug + self.teamSlug = teamSlug } } - public var path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Path + public var path: Operations.CopilotCopilotMetricsForTeam.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query`. public struct Query: Sendable, Hashable { /// Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago. @@ -4912,43 +4969,43 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// The number of days of metrics to display per page (max 28). 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// Creates a new `Query`. /// /// - Parameters: /// - since: Show usage metrics since this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). Maximum value is 28 days ago. /// - until: Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed. /// - 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)." - /// - per_page: The number of days of metrics to display per page (max 28). 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)." + /// - perPage: The number of days of metrics to display per page (max 28). 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)." public init( since: Swift.String? = nil, until: Swift.String? = nil, - page: Components.Parameters.page? = nil, - per_page: Swift.Int? = nil + page: Components.Parameters.Page? = nil, + perPage: Swift.Int? = nil ) { self.since = since self.until = until self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Query + public var query: Operations.CopilotCopilotMetricsForTeam.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Headers + public var headers: Operations.CopilotCopilotMetricsForTeam.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4956,9 +5013,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Path, - query: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Query = .init(), - headers: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Input.Headers = .init() + path: Operations.CopilotCopilotMetricsForTeam.Input.Path, + query: Operations.CopilotCopilotMetricsForTeam.Input.Query = .init(), + headers: Operations.CopilotCopilotMetricsForTeam.Input.Headers = .init() ) { self.path = path self.query = query @@ -4970,12 +5027,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/team/{team_slug}/copilot/metrics/GET/responses/200/content/application\/json`. - case json([Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day]) + case json([Components.Schemas.CopilotUsageMetricsDay]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.copilot_hyphen_usage_hyphen_metrics_hyphen_day] { + public var json: [Components.Schemas.CopilotUsageMetricsDay] { get throws { switch self { case let .json(body): @@ -4985,12 +5042,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output.Ok.Body + public var body: Operations.CopilotCopilotMetricsForTeam.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output.Ok.Body) { + public init(body: Operations.CopilotCopilotMetricsForTeam.Output.Ok.Body) { self.body = body } } @@ -4999,12 +5056,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output.Ok) + case ok(Operations.CopilotCopilotMetricsForTeam.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.copilot_sol_copilot_hyphen_metrics_hyphen_for_hyphen_team.Output.Ok { + public var ok: Operations.CopilotCopilotMetricsForTeam.Output.Ok { get throws { switch self { case let .ok(response): @@ -5022,12 +5079,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)/responses/500`. /// /// HTTP response code: `500 internalServerError`. - case internalServerError(Components.Responses.internal_error) + case internalServerError(Components.Responses.InternalError) /// The associated value of the enum case if `self` is `.internalServerError`. /// /// - Throws: An error if `self` is not `.internalServerError`. /// - SeeAlso: `.internalServerError`. - public var internalServerError: Components.Responses.internal_error { + public var internalServerError: Components.Responses.InternalError { get throws { switch self { case let .internalServerError(response): @@ -5045,12 +5102,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5068,12 +5125,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5091,12 +5148,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/team/{team_slug}/copilot/metrics/get(copilot/copilot-metrics-for-team)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.usage_metrics_api_disabled) + case unprocessableContent(Components.Responses.UsageMetricsApiDisabled) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.usage_metrics_api_disabled { + public var unprocessableContent: Components.Responses.UsageMetricsApiDisabled { get throws { switch self { case let .unprocessableContent(response): From bb9db1e9aad380ce97156ee0be86d799d9d8f26f Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:06:52 -0700 Subject: [PATCH 36/46] Commit via running ake Sources/security-advisories --- Sources/security-advisories/Client.swift | 224 +- Sources/security-advisories/Types.swift | 6085 +++++++++++----------- 2 files changed, 3159 insertions(+), 3150 deletions(-) diff --git a/Sources/security-advisories/Client.swift b/Sources/security-advisories/Client.swift index dbe8c7827c..efd1604206 100644 --- a/Sources/security-advisories/Client.swift +++ b/Sources/security-advisories/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /advisories`. /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output { + public func securityAdvisoriesListGlobalAdvisories(_ input: Operations.SecurityAdvisoriesListGlobalAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListGlobalAdvisories.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.id, + forOperation: Operations.SecurityAdvisoriesListGlobalAdvisories.id, serializer: { input in let path = try converter.renderedPath( template: "/advisories", @@ -65,7 +65,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "ghsa_id", - value: input.query.ghsa_id + value: input.query.ghsaId ) try converter.setQueryItemAsURI( in: &request, @@ -79,7 +79,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "cve_id", - value: input.query.cve_id + value: input.query.cveId ) try converter.setQueryItemAsURI( in: &request, @@ -107,7 +107,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "is_withdrawn", - value: input.query.is_withdrawn + value: input.query.isWithdrawn ) try converter.setQueryItemAsURI( in: &request, @@ -142,14 +142,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "epss_percentage", - value: input.query.epss_percentage + value: input.query.epssPercentage ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "epss_percentile", - value: input.query.epss_percentile + value: input.query.epssPercentile ) try converter.setQueryItemAsURI( in: &request, @@ -177,7 +177,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -196,7 +196,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.Ok.Body + let body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -206,7 +206,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.global_hyphen_advisory].self, + [Components.Schemas.GlobalAdvisory].self, from: responseBody, transforming: { value in .json(value) @@ -218,7 +218,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 429: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.TooManyRequests.Body + let body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.TooManyRequests.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -228,7 +228,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -240,7 +240,7 @@ public struct Client: APIProtocol { return .tooManyRequests(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed_simple.Body + let body: Components.Responses.ValidationFailedSimple.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -250,7 +250,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error_hyphen_simple.self, + Components.Schemas.ValidationErrorSimple.self, from: responseBody, transforming: { value in .json(value) @@ -278,15 +278,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)`. - public func security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output { + public func securityAdvisoriesGetGlobalAdvisory(_ input: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input) async throws -> Operations.SecurityAdvisoriesGetGlobalAdvisory.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.id, + forOperation: Operations.SecurityAdvisoriesGetGlobalAdvisory.id, serializer: { input in let path = try converter.renderedPath( template: "/advisories/{}", parameters: [ - input.path.ghsa_id + input.path.ghsaId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -304,7 +304,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output.Ok.Body + let body: Operations.SecurityAdvisoriesGetGlobalAdvisory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -314,7 +314,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.global_hyphen_advisory.self, + Components.Schemas.GlobalAdvisory.self, from: responseBody, transforming: { value in .json(value) @@ -326,7 +326,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -336,7 +336,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -368,10 +368,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/security-advisories`. /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output { + public func securityAdvisoriesListOrgRepositoryAdvisories(_ input: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.id, + forOperation: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/security-advisories", @@ -417,7 +417,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -436,7 +436,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output.Ok.Body + let body: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -446,7 +446,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_advisory].self, + [Components.Schemas.RepositoryAdvisory].self, from: responseBody, transforming: { value in .json(value) @@ -458,7 +458,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -469,7 +469,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -477,10 +477,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -489,7 +489,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -499,7 +499,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -531,10 +531,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output { + public func securityAdvisoriesListRepositoryAdvisories(_ input: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListRepositoryAdvisories.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.id, + forOperation: Operations.SecurityAdvisoriesListRepositoryAdvisories.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories", @@ -581,7 +581,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -600,7 +600,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output.Ok.Body + let body: Operations.SecurityAdvisoriesListRepositoryAdvisories.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -610,7 +610,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.repository_hyphen_advisory].self, + [Components.Schemas.RepositoryAdvisory].self, from: responseBody, transforming: { value in .json(value) @@ -622,7 +622,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -633,7 +633,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -641,10 +641,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -653,7 +653,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -663,7 +663,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -695,10 +695,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`. - public func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output { + public func securityAdvisoriesCreateRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.id, + forOperation: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories", @@ -731,7 +731,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output.Created.Body + let body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -741,7 +741,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_advisory.self, + Components.Schemas.RepositoryAdvisory.self, from: responseBody, transforming: { value in .json(value) @@ -753,7 +753,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -763,7 +763,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -775,7 +775,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -785,7 +785,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -797,7 +797,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -807,7 +807,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -836,10 +836,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/reports`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)`. - public func security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output { + public func securityAdvisoriesCreatePrivateVulnerabilityReport(_ input: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input) async throws -> Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.id, + forOperation: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories/reports", @@ -872,7 +872,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output.Created.Body + let body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -882,7 +882,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_advisory.self, + Components.Schemas.RepositoryAdvisory.self, from: responseBody, transforming: { value in .json(value) @@ -894,7 +894,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -904,7 +904,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -916,7 +916,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -926,7 +926,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -938,7 +938,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -948,7 +948,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -983,17 +983,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)`. - public func security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output { + public func securityAdvisoriesGetRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.id, + forOperation: Operations.SecurityAdvisoriesGetRepositoryAdvisory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ghsa_id + input.path.ghsaId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1011,7 +1011,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output.Ok.Body + let body: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1021,7 +1021,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_advisory.self, + Components.Schemas.RepositoryAdvisory.self, from: responseBody, transforming: { value in .json(value) @@ -1033,7 +1033,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1043,7 +1043,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1055,7 +1055,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1065,7 +1065,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1098,17 +1098,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)`. - public func security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output { + public func securityAdvisoriesUpdateRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.id, + forOperation: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories/{}", parameters: [ input.path.owner, input.path.repo, - input.path.ghsa_id + input.path.ghsaId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1135,7 +1135,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.Ok.Body + let body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1145,7 +1145,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.repository_hyphen_advisory.self, + Components.Schemas.RepositoryAdvisory.self, from: responseBody, transforming: { value in .json(value) @@ -1157,7 +1157,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1167,7 +1167,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1179,7 +1179,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1189,7 +1189,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1201,7 +1201,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.UnprocessableContent.Body + let body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1211,7 +1211,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1245,17 +1245,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)`. - public func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Output { + public func securityAdvisoriesCreateRepositoryAdvisoryCveRequest(_ input: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.id, + forOperation: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories/{}/cve", parameters: [ input.path.owner, input.path.repo, - input.path.ghsa_id + input.path.ghsaId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1273,7 +1273,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1295,7 +1295,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1306,7 +1306,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1314,10 +1314,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1326,7 +1326,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1336,7 +1336,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1348,7 +1348,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1358,7 +1358,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1370,7 +1370,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1380,7 +1380,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1411,17 +1411,17 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)`. - public func security_hyphen_advisories_sol_create_hyphen_fork(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output { + public func securityAdvisoriesCreateFork(_ input: Operations.SecurityAdvisoriesCreateFork.Input) async throws -> Operations.SecurityAdvisoriesCreateFork.Output { try await client.send( input: input, - forOperation: Operations.security_hyphen_advisories_sol_create_hyphen_fork.id, + forOperation: Operations.SecurityAdvisoriesCreateFork.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/security-advisories/{}/forks", parameters: [ input.path.owner, input.path.repo, - input.path.ghsa_id + input.path.ghsaId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1439,7 +1439,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output.Accepted.Body + let body: Operations.SecurityAdvisoriesCreateFork.Output.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1449,7 +1449,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.full_hyphen_repository.self, + Components.Schemas.FullRepository.self, from: responseBody, transforming: { value in .json(value) @@ -1461,7 +1461,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1472,7 +1472,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1480,10 +1480,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1492,7 +1492,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1502,7 +1502,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -1514,7 +1514,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1524,7 +1524,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1536,7 +1536,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1546,7 +1546,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index 3b705fb9ff..6140331094 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -19,14 +19,14 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /advisories`. /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)`. - func security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output + func securityAdvisoriesListGlobalAdvisories(_ input: Operations.SecurityAdvisoriesListGlobalAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListGlobalAdvisories.Output /// Get a global security advisory /// /// Gets a global security advisory using its GitHub Security Advisory (GHSA) identifier. /// /// - Remark: HTTP `GET /advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)`. - func security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output + func securityAdvisoriesGetGlobalAdvisory(_ input: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input) async throws -> Operations.SecurityAdvisoriesGetGlobalAdvisory.Output /// List repository security advisories for an organization /// /// Lists repository security advisories for an organization. @@ -37,7 +37,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/security-advisories`. /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`. - func security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output + func securityAdvisoriesListOrgRepositoryAdvisories(_ input: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output /// List repository security advisories /// /// Lists security advisories in a repository. @@ -48,7 +48,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)`. - func security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories(_ input: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output + func securityAdvisoriesListRepositoryAdvisories(_ input: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input) async throws -> Operations.SecurityAdvisoriesListRepositoryAdvisories.Output /// Create a repository security advisory /// /// Creates a new repository security advisory. @@ -59,7 +59,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`. - func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output + func securityAdvisoriesCreateRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output /// Privately report a security vulnerability /// /// Report a security vulnerability to the maintainers of the repository. @@ -67,7 +67,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/reports`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)`. - func security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output + func securityAdvisoriesCreatePrivateVulnerabilityReport(_ input: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input) async throws -> Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output /// Get a repository security advisory /// /// Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier. @@ -81,7 +81,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)`. - func security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output + func securityAdvisoriesGetRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output /// Update a repository security advisory /// /// Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier. @@ -93,7 +93,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)`. - func security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output + func securityAdvisoriesUpdateRepositoryAdvisory(_ input: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input) async throws -> Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output /// Request a CVE for a repository security advisory /// /// If you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see "[Requesting a CVE identification number](https://docs.github.com/code-security/security-advisories/repository-security-advisories/publishing-a-repository-security-advisory#requesting-a-cve-identification-number-optional)." @@ -106,7 +106,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)`. - func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Output + func securityAdvisoriesCreateRepositoryAdvisoryCveRequest(_ input: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Output /// Create a temporary private fork /// /// Create a temporary private fork to collaborate on fixing a security vulnerability in your repository. @@ -116,7 +116,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)`. - func security_hyphen_advisories_sol_create_hyphen_fork(_ input: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output + func securityAdvisoriesCreateFork(_ input: Operations.SecurityAdvisoriesCreateFork.Input) async throws -> Operations.SecurityAdvisoriesCreateFork.Output } /// Convenience overloads for operation inputs. @@ -129,11 +129,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /advisories`. /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories( - query: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output { - try await security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories(Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input( + public func securityAdvisoriesListGlobalAdvisories( + query: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesListGlobalAdvisories.Output { + try await securityAdvisoriesListGlobalAdvisories(Operations.SecurityAdvisoriesListGlobalAdvisories.Input( query: query, headers: headers )) @@ -144,11 +144,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)`. - public func security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory( - path: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output { - try await security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory(Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input( + public func securityAdvisoriesGetGlobalAdvisory( + path: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesGetGlobalAdvisory.Output { + try await securityAdvisoriesGetGlobalAdvisory(Operations.SecurityAdvisoriesGetGlobalAdvisory.Input( path: path, headers: headers )) @@ -163,12 +163,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/security-advisories`. /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories( - path: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Path, - query: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output { - try await security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories(Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input( + public func securityAdvisoriesListOrgRepositoryAdvisories( + path: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Path, + query: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output { + try await securityAdvisoriesListOrgRepositoryAdvisories(Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input( path: path, query: query, headers: headers @@ -184,12 +184,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)`. - public func security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories( - path: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Path, - query: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output { - try await security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories(Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input( + public func securityAdvisoriesListRepositoryAdvisories( + path: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Path, + query: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesListRepositoryAdvisories.Output { + try await securityAdvisoriesListRepositoryAdvisories(Operations.SecurityAdvisoriesListRepositoryAdvisories.Input( path: path, query: query, headers: headers @@ -205,12 +205,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`. - public func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory( - path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Body - ) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output { - try await security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory(Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input( + public func securityAdvisoriesCreateRepositoryAdvisory( + path: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Body + ) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output { + try await securityAdvisoriesCreateRepositoryAdvisory(Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input( path: path, headers: headers, body: body @@ -223,12 +223,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/reports`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)`. - public func security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report( - path: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Body - ) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output { - try await security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report(Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input( + public func securityAdvisoriesCreatePrivateVulnerabilityReport( + path: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Path, + headers: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Body + ) async throws -> Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output { + try await securityAdvisoriesCreatePrivateVulnerabilityReport(Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input( path: path, headers: headers, body: body @@ -247,11 +247,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)`. - public func security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory( - path: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output { - try await security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory(Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input( + public func securityAdvisoriesGetRepositoryAdvisory( + path: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output { + try await securityAdvisoriesGetRepositoryAdvisory(Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input( path: path, headers: headers )) @@ -267,12 +267,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)`. - public func security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory( - path: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Body - ) async throws -> Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output { - try await security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory(Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input( + public func securityAdvisoriesUpdateRepositoryAdvisory( + path: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Body + ) async throws -> Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output { + try await securityAdvisoriesUpdateRepositoryAdvisory(Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input( path: path, headers: headers, body: body @@ -290,11 +290,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)`. - public func security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request( - path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Output { - try await security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request(Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input( + public func securityAdvisoriesCreateRepositoryAdvisoryCveRequest( + path: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Path, + headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Output { + try await securityAdvisoriesCreateRepositoryAdvisoryCveRequest(Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input( path: path, headers: headers )) @@ -308,11 +308,11 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)`. - public func security_hyphen_advisories_sol_create_hyphen_fork( - path: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Headers = .init() - ) async throws -> Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output { - try await security_hyphen_advisories_sol_create_hyphen_fork(Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input( + public func securityAdvisoriesCreateFork( + path: Operations.SecurityAdvisoriesCreateFork.Input.Path, + headers: Operations.SecurityAdvisoriesCreateFork.Input.Headers = .init() + ) async throws -> Operations.SecurityAdvisoriesCreateFork.Output { + try await securityAdvisoriesCreateFork(Operations.SecurityAdvisoriesCreateFork.Input( path: path, headers: headers )) @@ -321,6 +321,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -336,7 +345,7 @@ public enum Components { /// The package's language or package management ecosystem. /// /// - Remark: Generated from `#/components/schemas/security-advisory-ecosystems`. - @frozen public enum security_hyphen_advisory_hyphen_ecosystems: String, Codable, Hashable, Sendable { + @frozen public enum SecurityAdvisoryEcosystems: String, Codable, Hashable, Sendable, CaseIterable { case rubygems = "rubygems" case npm = "npm" case pip = "pip" @@ -354,24 +363,24 @@ public enum Components { /// A vulnerability describing the product and its affected versions within a GitHub Security Advisory. /// /// - Remark: Generated from `#/components/schemas/vulnerability`. - public struct vulnerability: Codable, Hashable, Sendable { + public struct Vulnerability: Codable, Hashable, Sendable { /// The name of the package affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/vulnerability/package`. - public struct packagePayload: Codable, Hashable, Sendable { + public struct PackagePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/vulnerability/package/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems /// The unique package name within its ecosystem. /// /// - Remark: Generated from `#/components/schemas/vulnerability/package/name`. public var name: Swift.String? - /// Creates a new `packagePayload`. + /// Creates a new `PackagePayload`. /// /// - Parameters: /// - ecosystem: /// - name: The unique package name within its ecosystem. public init( - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems, name: Swift.String? = nil ) { self.ecosystem = ecosystem @@ -385,130 +394,130 @@ public enum Components { /// The name of the package affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/vulnerability/package`. - public var package: Components.Schemas.vulnerability.packagePayload? + public var package: Components.Schemas.Vulnerability.PackagePayload? /// The range of the package versions affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/vulnerability/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String? + public var vulnerableVersionRange: Swift.String? /// The package version that resolves the vulnerability. /// /// - Remark: Generated from `#/components/schemas/vulnerability/first_patched_version`. - public var first_patched_version: Swift.String? + public var firstPatchedVersion: Swift.String? /// The functions in the package that are affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/vulnerability/vulnerable_functions`. - public var vulnerable_functions: [Swift.String]? - /// Creates a new `vulnerability`. + public var vulnerableFunctions: [Swift.String]? + /// Creates a new `Vulnerability`. /// /// - Parameters: /// - package: The name of the package affected by the vulnerability. - /// - vulnerable_version_range: The range of the package versions affected by the vulnerability. - /// - first_patched_version: The package version that resolves the vulnerability. - /// - vulnerable_functions: The functions in the package that are affected by the vulnerability. + /// - vulnerableVersionRange: The range of the package versions affected by the vulnerability. + /// - firstPatchedVersion: The package version that resolves the vulnerability. + /// - vulnerableFunctions: The functions in the package that are affected by the vulnerability. public init( - package: Components.Schemas.vulnerability.packagePayload? = nil, - vulnerable_version_range: Swift.String? = nil, - first_patched_version: Swift.String? = nil, - vulnerable_functions: [Swift.String]? = nil + package: Components.Schemas.Vulnerability.PackagePayload? = nil, + vulnerableVersionRange: Swift.String? = nil, + firstPatchedVersion: Swift.String? = nil, + vulnerableFunctions: [Swift.String]? = nil ) { self.package = package - self.vulnerable_version_range = vulnerable_version_range - self.first_patched_version = first_patched_version - self.vulnerable_functions = vulnerable_functions + self.vulnerableVersionRange = vulnerableVersionRange + self.firstPatchedVersion = firstPatchedVersion + self.vulnerableFunctions = vulnerableFunctions } public enum CodingKeys: String, CodingKey { case package - case vulnerable_version_range - case first_patched_version - case vulnerable_functions + case vulnerableVersionRange = "vulnerable_version_range" + case firstPatchedVersion = "first_patched_version" + case vulnerableFunctions = "vulnerable_functions" } } /// - Remark: Generated from `#/components/schemas/cvss-severities`. - public struct cvss_hyphen_severities: Codable, Hashable, Sendable { + public struct CvssSeverities: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. - public struct cvss_v3Payload: Codable, Hashable, Sendable { + public struct CvssV3Payload: Codable, Hashable, Sendable { /// The CVSS 3 vector string. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS 3 score. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`. public var score: Swift.Double? - /// Creates a new `cvss_v3Payload`. + /// Creates a new `CvssV3Payload`. /// /// - Parameters: - /// - vector_string: The CVSS 3 vector string. + /// - vectorString: The CVSS 3 vector string. /// - score: The CVSS 3 score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. - public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? + public var cvssV3: Components.Schemas.CvssSeverities.CvssV3Payload? /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. - public struct cvss_v4Payload: Codable, Hashable, Sendable { + public struct CvssV4Payload: Codable, Hashable, Sendable { /// The CVSS 4 vector string. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS 4 score. /// /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`. public var score: Swift.Double? - /// Creates a new `cvss_v4Payload`. + /// Creates a new `CvssV4Payload`. /// /// - Parameters: - /// - vector_string: The CVSS 4 vector string. + /// - vectorString: The CVSS 4 vector string. /// - score: The CVSS 4 score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. - public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? - /// Creates a new `cvss_hyphen_severities`. + public var cvssV4: Components.Schemas.CvssSeverities.CvssV4Payload? + /// Creates a new `CvssSeverities`. /// /// - Parameters: - /// - cvss_v3: - /// - cvss_v4: + /// - cvssV3: + /// - cvssV4: public init( - cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil, - cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil + cvssV3: Components.Schemas.CvssSeverities.CvssV3Payload? = nil, + cvssV4: Components.Schemas.CvssSeverities.CvssV4Payload? = nil ) { - self.cvss_v3 = cvss_v3 - self.cvss_v4 = cvss_v4 + self.cvssV3 = cvssV3 + self.cvssV4 = cvssV4 } public enum CodingKeys: String, CodingKey { - case cvss_v3 - case cvss_v4 + case cvssV3 = "cvss_v3" + case cvssV4 = "cvss_v4" } } /// The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). /// /// - Remark: Generated from `#/components/schemas/security-advisory-epss`. - public struct security_hyphen_advisory_hyphen_epss: Codable, Hashable, Sendable { + public struct SecurityAdvisoryEpss: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-advisory-epss/percentage`. public var percentage: Swift.Double? /// - Remark: Generated from `#/components/schemas/security-advisory-epss/percentile`. public var percentile: Swift.Double? - /// Creates a new `security_hyphen_advisory_hyphen_epss`. + /// Creates a new `SecurityAdvisoryEpss`. /// /// - Parameters: /// - percentage: @@ -528,7 +537,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -538,149 +547,149 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// The type of credit the user is receiving. /// /// - Remark: Generated from `#/components/schemas/security-advisory-credit-types`. - @frozen public enum security_hyphen_advisory_hyphen_credit_hyphen_types: String, Codable, Hashable, Sendable { + @frozen public enum SecurityAdvisoryCreditTypes: String, Codable, Hashable, Sendable, CaseIterable { case analyst = "analyst" case finder = "finder" case reporter = "reporter" case coordinator = "coordinator" - case remediation_developer = "remediation_developer" - case remediation_reviewer = "remediation_reviewer" - case remediation_verifier = "remediation_verifier" + case remediationDeveloper = "remediation_developer" + case remediationReviewer = "remediation_reviewer" + case remediationVerifier = "remediation_verifier" case tool = "tool" case sponsor = "sponsor" case other = "other" @@ -688,15 +697,15 @@ public enum Components { /// A GitHub Security Advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory`. - public struct global_hyphen_advisory: Codable, Hashable, Sendable { + public struct GlobalAdvisory: Codable, Hashable, Sendable { /// The GitHub Security Advisory ID. /// /// - Remark: Generated from `#/components/schemas/global-advisory/ghsa_id`. - public var ghsa_id: Swift.String + public var ghsaId: Swift.String /// The Common Vulnerabilities and Exposures (CVE) ID. /// /// - Remark: Generated from `#/components/schemas/global-advisory/cve_id`. - public var cve_id: Swift.String? + public var cveId: Swift.String? /// The API URL for the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/url`. @@ -704,11 +713,11 @@ public enum Components { /// The URL for the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The API URL for the repository advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/repository_advisory_url`. - public var repository_advisory_url: Swift.String? + public var repositoryAdvisoryUrl: Swift.String? /// A short summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/summary`. @@ -720,7 +729,7 @@ public enum Components { /// The type of advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case reviewed = "reviewed" case unreviewed = "unreviewed" case malware = "malware" @@ -728,11 +737,11 @@ public enum Components { /// The type of advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/type`. - public var _type: Components.Schemas.global_hyphen_advisory._typePayload + public var _type: Components.Schemas.GlobalAdvisory._TypePayload /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -742,35 +751,35 @@ public enum Components { /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/severity`. - public var severity: Components.Schemas.global_hyphen_advisory.severityPayload + public var severity: Components.Schemas.GlobalAdvisory.SeverityPayload /// The URL of the advisory's source code. /// /// - Remark: Generated from `#/components/schemas/global-advisory/source_code_location`. - public var source_code_location: Swift.String? - /// - Remark: Generated from `#/components/schemas/global-advisory/identifiersPayload`. - public struct identifiersPayloadPayload: Codable, Hashable, Sendable { + public var sourceCodeLocation: Swift.String? + /// - Remark: Generated from `#/components/schemas/global-advisory/IdentifiersPayload`. + public struct IdentifiersPayloadPayload: Codable, Hashable, Sendable { /// The type of identifier. /// - /// - Remark: Generated from `#/components/schemas/global-advisory/identifiersPayload/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case CVE = "CVE" - case GHSA = "GHSA" + /// - Remark: Generated from `#/components/schemas/global-advisory/IdentifiersPayload/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case cve = "CVE" + case ghsa = "GHSA" } /// The type of identifier. /// - /// - Remark: Generated from `#/components/schemas/global-advisory/identifiersPayload/type`. - public var _type: Components.Schemas.global_hyphen_advisory.identifiersPayloadPayload._typePayload + /// - Remark: Generated from `#/components/schemas/global-advisory/IdentifiersPayload/type`. + public var _type: Components.Schemas.GlobalAdvisory.IdentifiersPayloadPayload._TypePayload /// The identifier value. /// - /// - Remark: Generated from `#/components/schemas/global-advisory/identifiersPayload/value`. + /// - Remark: Generated from `#/components/schemas/global-advisory/IdentifiersPayload/value`. public var value: Swift.String - /// Creates a new `identifiersPayloadPayload`. + /// Creates a new `IdentifiersPayloadPayload`. /// /// - Parameters: /// - _type: The type of identifier. /// - value: The identifier value. public init( - _type: Components.Schemas.global_hyphen_advisory.identifiersPayloadPayload._typePayload, + _type: Components.Schemas.GlobalAdvisory.IdentifiersPayloadPayload._TypePayload, value: Swift.String ) { self._type = _type @@ -782,114 +791,114 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/global-advisory/identifiers`. - public typealias identifiersPayload = [Components.Schemas.global_hyphen_advisory.identifiersPayloadPayload] + public typealias IdentifiersPayload = [Components.Schemas.GlobalAdvisory.IdentifiersPayloadPayload] /// - Remark: Generated from `#/components/schemas/global-advisory/identifiers`. - public var identifiers: Components.Schemas.global_hyphen_advisory.identifiersPayload? + public var identifiers: Components.Schemas.GlobalAdvisory.IdentifiersPayload? /// - Remark: Generated from `#/components/schemas/global-advisory/references`. public var references: [Swift.String]? /// The date and time of when the advisory was published, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/global-advisory/published_at`. - public var published_at: Foundation.Date + public var publishedAt: Foundation.Date /// The date and time of when the advisory was last updated, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/global-advisory/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/global-advisory/github_reviewed_at`. - public var github_reviewed_at: Foundation.Date? + public var githubReviewedAt: Foundation.Date? /// The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format. /// This field is only populated when the advisory is imported from the National Vulnerability Database. /// /// - Remark: Generated from `#/components/schemas/global-advisory/nvd_published_at`. - public var nvd_published_at: Foundation.Date? + public var nvdPublishedAt: Foundation.Date? /// The date and time of when the advisory was withdrawn, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/global-advisory/withdrawn_at`. - public var withdrawn_at: Foundation.Date? + public var withdrawnAt: Foundation.Date? /// The products and respective version ranges affected by the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/vulnerabilities`. - public var vulnerabilities: [Components.Schemas.vulnerability]? + public var vulnerabilities: [Components.Schemas.Vulnerability]? /// - Remark: Generated from `#/components/schemas/global-advisory/cvss`. - public struct cvssPayload: Codable, Hashable, Sendable { + public struct CvssPayload: Codable, Hashable, Sendable { /// The CVSS vector. /// /// - Remark: Generated from `#/components/schemas/global-advisory/cvss/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS score. /// /// - Remark: Generated from `#/components/schemas/global-advisory/cvss/score`. public var score: Swift.Double? - /// Creates a new `cvssPayload`. + /// Creates a new `CvssPayload`. /// /// - Parameters: - /// - vector_string: The CVSS vector. + /// - vectorString: The CVSS vector. /// - score: The CVSS score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/global-advisory/cvss`. - public var cvss: Components.Schemas.global_hyphen_advisory.cvssPayload? + public var cvss: Components.Schemas.GlobalAdvisory.CvssPayload? /// - Remark: Generated from `#/components/schemas/global-advisory/cvss_severities`. - public var cvss_severities: Components.Schemas.cvss_hyphen_severities? + public var cvssSeverities: Components.Schemas.CvssSeverities? /// - Remark: Generated from `#/components/schemas/global-advisory/epss`. - public var epss: Components.Schemas.security_hyphen_advisory_hyphen_epss? - /// - Remark: Generated from `#/components/schemas/global-advisory/cwesPayload`. - public struct cwesPayloadPayload: Codable, Hashable, Sendable { + public var epss: Components.Schemas.SecurityAdvisoryEpss? + /// - Remark: Generated from `#/components/schemas/global-advisory/CwesPayload`. + public struct CwesPayloadPayload: Codable, Hashable, Sendable { /// The Common Weakness Enumeration (CWE) identifier. /// - /// - Remark: Generated from `#/components/schemas/global-advisory/cwesPayload/cwe_id`. - public var cwe_id: Swift.String + /// - Remark: Generated from `#/components/schemas/global-advisory/CwesPayload/cwe_id`. + public var cweId: Swift.String /// The name of the CWE. /// - /// - Remark: Generated from `#/components/schemas/global-advisory/cwesPayload/name`. + /// - Remark: Generated from `#/components/schemas/global-advisory/CwesPayload/name`. public var name: Swift.String - /// Creates a new `cwesPayloadPayload`. + /// Creates a new `CwesPayloadPayload`. /// /// - Parameters: - /// - cwe_id: The Common Weakness Enumeration (CWE) identifier. + /// - cweId: The Common Weakness Enumeration (CWE) identifier. /// - name: The name of the CWE. public init( - cwe_id: Swift.String, + cweId: Swift.String, name: Swift.String ) { - self.cwe_id = cwe_id + self.cweId = cweId self.name = name } public enum CodingKeys: String, CodingKey { - case cwe_id + case cweId = "cwe_id" case name } } /// - Remark: Generated from `#/components/schemas/global-advisory/cwes`. - public typealias cwesPayload = [Components.Schemas.global_hyphen_advisory.cwesPayloadPayload] + public typealias CwesPayload = [Components.Schemas.GlobalAdvisory.CwesPayloadPayload] /// - Remark: Generated from `#/components/schemas/global-advisory/cwes`. - public var cwes: Components.Schemas.global_hyphen_advisory.cwesPayload? - /// - Remark: Generated from `#/components/schemas/global-advisory/creditsPayload`. - public struct creditsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/global-advisory/creditsPayload/user`. - public var user: Components.Schemas.simple_hyphen_user - /// - Remark: Generated from `#/components/schemas/global-advisory/creditsPayload/type`. - public var _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types - /// Creates a new `creditsPayloadPayload`. + public var cwes: Components.Schemas.GlobalAdvisory.CwesPayload? + /// - Remark: Generated from `#/components/schemas/global-advisory/CreditsPayload`. + public struct CreditsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/global-advisory/CreditsPayload/user`. + public var user: Components.Schemas.SimpleUser + /// - Remark: Generated from `#/components/schemas/global-advisory/CreditsPayload/type`. + public var _type: Components.Schemas.SecurityAdvisoryCreditTypes + /// Creates a new `CreditsPayloadPayload`. /// /// - Parameters: /// - user: /// - _type: public init( - user: Components.Schemas.simple_hyphen_user, - _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types + user: Components.Schemas.SimpleUser, + _type: Components.Schemas.SecurityAdvisoryCreditTypes ) { self.user = user self._type = _type @@ -902,203 +911,203 @@ public enum Components { /// The users who contributed to the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/credits`. - public typealias creditsPayload = [Components.Schemas.global_hyphen_advisory.creditsPayloadPayload] + public typealias CreditsPayload = [Components.Schemas.GlobalAdvisory.CreditsPayloadPayload] /// The users who contributed to the advisory. /// /// - Remark: Generated from `#/components/schemas/global-advisory/credits`. - public var credits: Components.Schemas.global_hyphen_advisory.creditsPayload? - /// Creates a new `global_hyphen_advisory`. + public var credits: Components.Schemas.GlobalAdvisory.CreditsPayload? + /// Creates a new `GlobalAdvisory`. /// /// - Parameters: - /// - ghsa_id: The GitHub Security Advisory ID. - /// - cve_id: The Common Vulnerabilities and Exposures (CVE) ID. + /// - ghsaId: The GitHub Security Advisory ID. + /// - cveId: The Common Vulnerabilities and Exposures (CVE) ID. /// - url: The API URL for the advisory. - /// - html_url: The URL for the advisory. - /// - repository_advisory_url: The API URL for the repository advisory. + /// - htmlUrl: The URL for the advisory. + /// - repositoryAdvisoryUrl: The API URL for the repository advisory. /// - summary: A short summary of the advisory. /// - description: A detailed description of what the advisory entails. /// - _type: The type of advisory. /// - severity: The severity of the advisory. - /// - source_code_location: The URL of the advisory's source code. + /// - sourceCodeLocation: The URL of the advisory's source code. /// - identifiers: /// - references: - /// - published_at: The date and time of when the advisory was published, in ISO 8601 format. - /// - updated_at: The date and time of when the advisory was last updated, in ISO 8601 format. - /// - github_reviewed_at: The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format. - /// - nvd_published_at: The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format. - /// - withdrawn_at: The date and time of when the advisory was withdrawn, in ISO 8601 format. + /// - publishedAt: The date and time of when the advisory was published, in ISO 8601 format. + /// - updatedAt: The date and time of when the advisory was last updated, in ISO 8601 format. + /// - githubReviewedAt: The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format. + /// - nvdPublishedAt: The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format. + /// - withdrawnAt: The date and time of when the advisory was withdrawn, in ISO 8601 format. /// - vulnerabilities: The products and respective version ranges affected by the advisory. /// - cvss: - /// - cvss_severities: + /// - cvssSeverities: /// - epss: /// - cwes: /// - credits: The users who contributed to the advisory. public init( - ghsa_id: Swift.String, - cve_id: Swift.String? = nil, + ghsaId: Swift.String, + cveId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - repository_advisory_url: Swift.String? = nil, + htmlUrl: Swift.String, + repositoryAdvisoryUrl: Swift.String? = nil, summary: Swift.String, description: Swift.String? = nil, - _type: Components.Schemas.global_hyphen_advisory._typePayload, - severity: Components.Schemas.global_hyphen_advisory.severityPayload, - source_code_location: Swift.String? = nil, - identifiers: Components.Schemas.global_hyphen_advisory.identifiersPayload? = nil, + _type: Components.Schemas.GlobalAdvisory._TypePayload, + severity: Components.Schemas.GlobalAdvisory.SeverityPayload, + sourceCodeLocation: Swift.String? = nil, + identifiers: Components.Schemas.GlobalAdvisory.IdentifiersPayload? = nil, references: [Swift.String]? = nil, - published_at: Foundation.Date, - updated_at: Foundation.Date, - github_reviewed_at: Foundation.Date? = nil, - nvd_published_at: Foundation.Date? = nil, - withdrawn_at: Foundation.Date? = nil, - vulnerabilities: [Components.Schemas.vulnerability]? = nil, - cvss: Components.Schemas.global_hyphen_advisory.cvssPayload? = nil, - cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, - epss: Components.Schemas.security_hyphen_advisory_hyphen_epss? = nil, - cwes: Components.Schemas.global_hyphen_advisory.cwesPayload? = nil, - credits: Components.Schemas.global_hyphen_advisory.creditsPayload? = nil + publishedAt: Foundation.Date, + updatedAt: Foundation.Date, + githubReviewedAt: Foundation.Date? = nil, + nvdPublishedAt: Foundation.Date? = nil, + withdrawnAt: Foundation.Date? = nil, + vulnerabilities: [Components.Schemas.Vulnerability]? = nil, + cvss: Components.Schemas.GlobalAdvisory.CvssPayload? = nil, + cvssSeverities: Components.Schemas.CvssSeverities? = nil, + epss: Components.Schemas.SecurityAdvisoryEpss? = nil, + cwes: Components.Schemas.GlobalAdvisory.CwesPayload? = nil, + credits: Components.Schemas.GlobalAdvisory.CreditsPayload? = nil ) { - self.ghsa_id = ghsa_id - self.cve_id = cve_id + self.ghsaId = ghsaId + self.cveId = cveId self.url = url - self.html_url = html_url - self.repository_advisory_url = repository_advisory_url + self.htmlUrl = htmlUrl + self.repositoryAdvisoryUrl = repositoryAdvisoryUrl self.summary = summary self.description = description self._type = _type self.severity = severity - self.source_code_location = source_code_location + self.sourceCodeLocation = sourceCodeLocation self.identifiers = identifiers self.references = references - self.published_at = published_at - self.updated_at = updated_at - self.github_reviewed_at = github_reviewed_at - self.nvd_published_at = nvd_published_at - self.withdrawn_at = withdrawn_at + self.publishedAt = publishedAt + self.updatedAt = updatedAt + self.githubReviewedAt = githubReviewedAt + self.nvdPublishedAt = nvdPublishedAt + self.withdrawnAt = withdrawnAt self.vulnerabilities = vulnerabilities self.cvss = cvss - self.cvss_severities = cvss_severities + self.cvssSeverities = cvssSeverities self.epss = epss self.cwes = cwes self.credits = credits } public enum CodingKeys: String, CodingKey { - case ghsa_id - case cve_id + case ghsaId = "ghsa_id" + case cveId = "cve_id" case url - case html_url - case repository_advisory_url + case htmlUrl = "html_url" + case repositoryAdvisoryUrl = "repository_advisory_url" case summary case description case _type = "type" case severity - case source_code_location + case sourceCodeLocation = "source_code_location" case identifiers case references - case published_at - case updated_at - case github_reviewed_at - case nvd_published_at - case withdrawn_at + case publishedAt = "published_at" + case updatedAt = "updated_at" + case githubReviewedAt = "github_reviewed_at" + case nvdPublishedAt = "nvd_published_at" + case withdrawnAt = "withdrawn_at" case vulnerabilities case cvss - case cvss_severities + case cvssSeverities = "cvss_severities" case epss case cwes case credits } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - ghsa_id = try container.decode( + self.ghsaId = try container.decode( Swift.String.self, - forKey: .ghsa_id + forKey: .ghsaId ) - cve_id = try container.decodeIfPresent( + self.cveId = try container.decodeIfPresent( Swift.String.self, - forKey: .cve_id + forKey: .cveId ) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) - html_url = try container.decode( + self.htmlUrl = try container.decode( Swift.String.self, - forKey: .html_url + forKey: .htmlUrl ) - repository_advisory_url = try container.decodeIfPresent( + self.repositoryAdvisoryUrl = try container.decodeIfPresent( Swift.String.self, - forKey: .repository_advisory_url + forKey: .repositoryAdvisoryUrl ) - summary = try container.decode( + self.summary = try container.decode( Swift.String.self, forKey: .summary ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - _type = try container.decode( - Components.Schemas.global_hyphen_advisory._typePayload.self, + self._type = try container.decode( + Components.Schemas.GlobalAdvisory._TypePayload.self, forKey: ._type ) - severity = try container.decode( - Components.Schemas.global_hyphen_advisory.severityPayload.self, + self.severity = try container.decode( + Components.Schemas.GlobalAdvisory.SeverityPayload.self, forKey: .severity ) - source_code_location = try container.decodeIfPresent( + self.sourceCodeLocation = try container.decodeIfPresent( Swift.String.self, - forKey: .source_code_location + forKey: .sourceCodeLocation ) - identifiers = try container.decodeIfPresent( - Components.Schemas.global_hyphen_advisory.identifiersPayload.self, + self.identifiers = try container.decodeIfPresent( + Components.Schemas.GlobalAdvisory.IdentifiersPayload.self, forKey: .identifiers ) - references = try container.decodeIfPresent( + self.references = try container.decodeIfPresent( [Swift.String].self, forKey: .references ) - published_at = try container.decode( + self.publishedAt = try container.decode( Foundation.Date.self, - forKey: .published_at + forKey: .publishedAt ) - updated_at = try container.decode( + self.updatedAt = try container.decode( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - github_reviewed_at = try container.decodeIfPresent( + self.githubReviewedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .github_reviewed_at + forKey: .githubReviewedAt ) - nvd_published_at = try container.decodeIfPresent( + self.nvdPublishedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .nvd_published_at + forKey: .nvdPublishedAt ) - withdrawn_at = try container.decodeIfPresent( + self.withdrawnAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .withdrawn_at + forKey: .withdrawnAt ) - vulnerabilities = try container.decodeIfPresent( - [Components.Schemas.vulnerability].self, + self.vulnerabilities = try container.decodeIfPresent( + [Components.Schemas.Vulnerability].self, forKey: .vulnerabilities ) - cvss = try container.decodeIfPresent( - Components.Schemas.global_hyphen_advisory.cvssPayload.self, + self.cvss = try container.decodeIfPresent( + Components.Schemas.GlobalAdvisory.CvssPayload.self, forKey: .cvss ) - cvss_severities = try container.decodeIfPresent( - Components.Schemas.cvss_hyphen_severities.self, - forKey: .cvss_severities + self.cvssSeverities = try container.decodeIfPresent( + Components.Schemas.CvssSeverities.self, + forKey: .cvssSeverities ) - epss = try container.decodeIfPresent( - Components.Schemas.security_hyphen_advisory_hyphen_epss.self, + self.epss = try container.decodeIfPresent( + Components.Schemas.SecurityAdvisoryEpss.self, forKey: .epss ) - cwes = try container.decodeIfPresent( - Components.Schemas.global_hyphen_advisory.cwesPayload.self, + self.cwes = try container.decodeIfPresent( + Components.Schemas.GlobalAdvisory.CwesPayload.self, forKey: .cwes ) - credits = try container.decodeIfPresent( - Components.Schemas.global_hyphen_advisory.creditsPayload.self, + self.credits = try container.decodeIfPresent( + Components.Schemas.GlobalAdvisory.CreditsPayload.self, forKey: .credits ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -1131,36 +1140,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -1168,42 +1177,42 @@ public enum Components { /// Validation Error Simple /// /// - Remark: Generated from `#/components/schemas/validation-error-simple`. - public struct validation_hyphen_error_hyphen_simple: Codable, Hashable, Sendable { + public struct ValidationErrorSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error-simple/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/documentation_url`. - public var documentation_url: Swift.String + public var documentationUrl: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error-simple/errors`. public var errors: [Swift.String]? - /// Creates a new `validation_hyphen_error_hyphen_simple`. + /// Creates a new `ValidationErrorSimple`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, + documentationUrl: Swift.String, errors: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -1212,25 +1221,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -1238,7 +1247,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -1248,30 +1257,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -1310,9 +1319,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -1327,7 +1336,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -1346,34 +1355,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/nullable-simple-user`. - public struct nullable_hyphen_simple_hyphen_user: Codable, Hashable, Sendable { + public struct NullableSimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/email`. @@ -1383,142 +1392,142 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `nullable_hyphen_simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `NullableSimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// License Simple /// /// - Remark: Generated from `#/components/schemas/nullable-license-simple`. - public struct nullable_hyphen_license_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableLicenseSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`. public var key: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`. @@ -1526,66 +1535,66 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`. - public var spdx_id: Swift.String? + public var spdxId: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `nullable_hyphen_license_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `NullableLicenseSimple`. /// /// - Parameters: /// - key: /// - name: /// - url: - /// - spdx_id: - /// - node_id: - /// - html_url: + /// - spdxId: + /// - nodeId: + /// - htmlUrl: public init( key: Swift.String, name: Swift.String, url: Swift.String? = nil, - spdx_id: Swift.String? = nil, - node_id: Swift.String, - html_url: Swift.String? = nil + spdxId: Swift.String? = nil, + nodeId: Swift.String, + htmlUrl: Swift.String? = nil ) { self.key = key self.name = name self.url = url - self.spdx_id = spdx_id - self.node_id = node_id - self.html_url = html_url + self.spdxId = spdxId + self.nodeId = nodeId + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case key case name case url - case spdx_id - case node_id - case html_url + case spdxId = "spdx_id" + case nodeId = "node_id" + case htmlUrl = "html_url" } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/repository`. - public struct repository: Codable, Hashable, Sendable { + public struct Repository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/pull`. @@ -1596,7 +1605,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -1626,15 +1635,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository/permissions`. - public var permissions: Components.Schemas.repository.permissionsPayload? + public var permissions: Components.Schemas.Repository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/fork`. @@ -1642,97 +1651,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/repository/size`. @@ -1740,38 +1749,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/repository/archived`. @@ -1785,47 +1794,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -1833,7 +1842,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -1841,10 +1850,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -1853,16 +1862,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -1870,7 +1879,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -1878,10 +1887,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -1890,424 +1899,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `Repository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.Repository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.Repository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.Repository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.Repository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.Repository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// A GitHub repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository`. - public struct simple_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/id`. @@ -2315,7 +2324,7 @@ public enum Components { /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/name`. @@ -2323,9 +2332,9 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/simple-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-repository/private`. @@ -2333,7 +2342,7 @@ public enum Components { /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The repository description. /// /// - Remark: Generated from `#/components/schemas/simple-repository/description`. @@ -2349,356 +2358,356 @@ public enum Components { /// A template for the API URL to download the repository as an archive. /// /// - Remark: Generated from `#/components/schemas/simple-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// A template for the API URL to list the available assignees for issues in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git blob in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// A template for the API URL to get information about branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// A template for the API URL to get information about collaborators of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// A template for the API URL to get information about comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// A template for the API URL to get information about commits on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// A template for the API URL to compare two commits or refs. /// /// - Remark: Generated from `#/components/schemas/simple-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// A template for the API URL to get the contents of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// A template for the API URL to list the contributors to the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// The API URL to list the deployments of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// The API URL to list the downloads on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// The API URL to list the events of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// The API URL to list the forks of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// A template for the API URL to get information about Git commits of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// A template for the API URL to get information about Git refs of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// A template for the API URL to get information about Git tags of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// A template for the API URL to get information about issue comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// A template for the API URL to get information about issue events on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// A template for the API URL to get information about issues on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// A template for the API URL to get information about deploy keys on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// A template for the API URL to get information about labels of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// The API URL to get information about the languages of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// The API URL to merge branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// A template for the API URL to get information about milestones of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// A template for the API URL to get information about notifications on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// A template for the API URL to get information about pull requests on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// A template for the API URL to get information about releases on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// The API URL to list the stargazers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// A template for the API URL to get information about statuses of a commit. /// /// - Remark: Generated from `#/components/schemas/simple-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// The API URL to list the subscribers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// The API URL to subscribe to notifications for this repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// The API URL to get information about tags on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// The API URL to list the teams on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git tree of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// The API URL to list the hooks on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/hooks_url`. - public var hooks_url: Swift.String - /// Creates a new `simple_hyphen_repository`. + public var hooksUrl: Swift.String + /// Creates a new `SimpleRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - node_id: The GraphQL identifier of the repository. + /// - nodeId: The GraphQL identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - owner: /// - _private: Whether the repository is private. - /// - html_url: The URL to view the repository on GitHub.com. + /// - htmlUrl: The URL to view the repository on GitHub.com. /// - description: The repository description. /// - fork: Whether the repository is a fork. /// - url: The URL to get more information about the repository from the GitHub API. - /// - archive_url: A template for the API URL to download the repository as an archive. - /// - assignees_url: A template for the API URL to list the available assignees for issues in the repository. - /// - blobs_url: A template for the API URL to create or retrieve a raw Git blob in the repository. - /// - branches_url: A template for the API URL to get information about branches in the repository. - /// - collaborators_url: A template for the API URL to get information about collaborators of the repository. - /// - comments_url: A template for the API URL to get information about comments on the repository. - /// - commits_url: A template for the API URL to get information about commits on the repository. - /// - compare_url: A template for the API URL to compare two commits or refs. - /// - contents_url: A template for the API URL to get the contents of the repository. - /// - contributors_url: A template for the API URL to list the contributors to the repository. - /// - deployments_url: The API URL to list the deployments of the repository. - /// - downloads_url: The API URL to list the downloads on the repository. - /// - events_url: The API URL to list the events of the repository. - /// - forks_url: The API URL to list the forks of the repository. - /// - git_commits_url: A template for the API URL to get information about Git commits of the repository. - /// - git_refs_url: A template for the API URL to get information about Git refs of the repository. - /// - git_tags_url: A template for the API URL to get information about Git tags of the repository. - /// - issue_comment_url: A template for the API URL to get information about issue comments on the repository. - /// - issue_events_url: A template for the API URL to get information about issue events on the repository. - /// - issues_url: A template for the API URL to get information about issues on the repository. - /// - keys_url: A template for the API URL to get information about deploy keys on the repository. - /// - labels_url: A template for the API URL to get information about labels of the repository. - /// - languages_url: The API URL to get information about the languages of the repository. - /// - merges_url: The API URL to merge branches in the repository. - /// - milestones_url: A template for the API URL to get information about milestones of the repository. - /// - notifications_url: A template for the API URL to get information about notifications on the repository. - /// - pulls_url: A template for the API URL to get information about pull requests on the repository. - /// - releases_url: A template for the API URL to get information about releases on the repository. - /// - stargazers_url: The API URL to list the stargazers on the repository. - /// - statuses_url: A template for the API URL to get information about statuses of a commit. - /// - subscribers_url: The API URL to list the subscribers on the repository. - /// - subscription_url: The API URL to subscribe to notifications for this repository. - /// - tags_url: The API URL to get information about tags on the repository. - /// - teams_url: The API URL to list the teams on the repository. - /// - trees_url: A template for the API URL to create or retrieve a raw Git tree of the repository. - /// - hooks_url: The API URL to list the hooks on the repository. + /// - archiveUrl: A template for the API URL to download the repository as an archive. + /// - assigneesUrl: A template for the API URL to list the available assignees for issues in the repository. + /// - blobsUrl: A template for the API URL to create or retrieve a raw Git blob in the repository. + /// - branchesUrl: A template for the API URL to get information about branches in the repository. + /// - collaboratorsUrl: A template for the API URL to get information about collaborators of the repository. + /// - commentsUrl: A template for the API URL to get information about comments on the repository. + /// - commitsUrl: A template for the API URL to get information about commits on the repository. + /// - compareUrl: A template for the API URL to compare two commits or refs. + /// - contentsUrl: A template for the API URL to get the contents of the repository. + /// - contributorsUrl: A template for the API URL to list the contributors to the repository. + /// - deploymentsUrl: The API URL to list the deployments of the repository. + /// - downloadsUrl: The API URL to list the downloads on the repository. + /// - eventsUrl: The API URL to list the events of the repository. + /// - forksUrl: The API URL to list the forks of the repository. + /// - gitCommitsUrl: A template for the API URL to get information about Git commits of the repository. + /// - gitRefsUrl: A template for the API URL to get information about Git refs of the repository. + /// - gitTagsUrl: A template for the API URL to get information about Git tags of the repository. + /// - issueCommentUrl: A template for the API URL to get information about issue comments on the repository. + /// - issueEventsUrl: A template for the API URL to get information about issue events on the repository. + /// - issuesUrl: A template for the API URL to get information about issues on the repository. + /// - keysUrl: A template for the API URL to get information about deploy keys on the repository. + /// - labelsUrl: A template for the API URL to get information about labels of the repository. + /// - languagesUrl: The API URL to get information about the languages of the repository. + /// - mergesUrl: The API URL to merge branches in the repository. + /// - milestonesUrl: A template for the API URL to get information about milestones of the repository. + /// - notificationsUrl: A template for the API URL to get information about notifications on the repository. + /// - pullsUrl: A template for the API URL to get information about pull requests on the repository. + /// - releasesUrl: A template for the API URL to get information about releases on the repository. + /// - stargazersUrl: The API URL to list the stargazers on the repository. + /// - statusesUrl: A template for the API URL to get information about statuses of a commit. + /// - subscribersUrl: The API URL to list the subscribers on the repository. + /// - subscriptionUrl: The API URL to subscribe to notifications for this repository. + /// - tagsUrl: The API URL to get information about tags on the repository. + /// - teamsUrl: The API URL to list the teams on the repository. + /// - treesUrl: A template for the API URL to create or retrieve a raw Git tree of the repository. + /// - hooksUrl: The API URL to list the hooks on the repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - hooks_url: Swift.String + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + hooksUrl: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.hooks_url = hooks_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.hooksUrl = hooksUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case hooks_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case hooksUrl = "hooks_url" } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. - public struct security_hyphen_and_hyphen_analysis: Codable, Hashable, Sendable { + public struct SecurityAndAnalysis: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public struct advanced_securityPayload: Codable, Hashable, Sendable { + public struct AdvancedSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? - /// Creates a new `advanced_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? + /// Creates a new `AdvancedSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2706,21 +2715,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`. - public var advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public struct code_securityPayload: Codable, Hashable, Sendable { + public struct CodeSecurityPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? - /// Creates a new `code_securityPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? + /// Creates a new `CodeSecurityPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2728,27 +2737,27 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`. - public var code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? + public var codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public struct dependabot_security_updatesPayload: Codable, Hashable, Sendable { + public struct DependabotSecurityUpdatesPayload: Codable, Hashable, Sendable { /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// The enablement status of Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? - /// Creates a new `dependabot_security_updatesPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? + /// Creates a new `DependabotSecurityUpdatesPayload`. /// /// - Parameters: /// - status: The enablement status of Dependabot security updates for the repository. - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2758,21 +2767,21 @@ public enum Components { /// Enable or disable Dependabot security updates for the repository. /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public struct secret_scanningPayload: Codable, Hashable, Sendable { + public struct SecretScanningPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? - /// Creates a new `secret_scanningPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? + /// Creates a new `SecretScanningPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2780,21 +2789,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning`. - public var secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? + public var secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public struct secret_scanning_push_protectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningPushProtectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? - /// Creates a new `secret_scanning_push_protectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? + /// Creates a new `SecretScanningPushProtectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2802,21 +2811,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public struct secret_scanning_non_provider_patternsPayload: Codable, Hashable, Sendable { + public struct SecretScanningNonProviderPatternsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? - /// Creates a new `secret_scanning_non_provider_patternsPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? + /// Creates a new `SecretScanningNonProviderPatternsPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2824,21 +2833,21 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + public struct SecretScanningAiDetectionPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. - public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? - /// Creates a new `secret_scanning_ai_detectionPayload`. + public var status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? + /// Creates a new `SecretScanningAiDetectionPayload`. /// /// - Parameters: /// - status: - public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + public init(status: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload.StatusPayload? = nil) { self.status = status } public enum CodingKeys: String, CodingKey { @@ -2846,60 +2855,60 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. - public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? - /// Creates a new `security_hyphen_and_hyphen_analysis`. + public var secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? + /// Creates a new `SecurityAndAnalysis`. /// /// - Parameters: - /// - advanced_security: - /// - code_security: - /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository. - /// - secret_scanning: - /// - secret_scanning_push_protection: - /// - secret_scanning_non_provider_patterns: - /// - secret_scanning_ai_detection: + /// - advancedSecurity: + /// - codeSecurity: + /// - dependabotSecurityUpdates: Enable or disable Dependabot security updates for the repository. + /// - secretScanning: + /// - secretScanningPushProtection: + /// - secretScanningNonProviderPatterns: + /// - secretScanningAiDetection: public init( - advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, - code_security: Components.Schemas.security_hyphen_and_hyphen_analysis.code_securityPayload? = nil, - dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, - secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil + advancedSecurity: Components.Schemas.SecurityAndAnalysis.AdvancedSecurityPayload? = nil, + codeSecurity: Components.Schemas.SecurityAndAnalysis.CodeSecurityPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.SecurityAndAnalysis.DependabotSecurityUpdatesPayload? = nil, + secretScanning: Components.Schemas.SecurityAndAnalysis.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.SecurityAndAnalysis.SecretScanningPushProtectionPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.SecurityAndAnalysis.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningAiDetection: Components.Schemas.SecurityAndAnalysis.SecretScanningAiDetectionPayload? = nil ) { - self.advanced_security = advanced_security - self.code_security = code_security - self.dependabot_security_updates = dependabot_security_updates - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_ai_detection = secret_scanning_ai_detection + self.advancedSecurity = advancedSecurity + self.codeSecurity = codeSecurity + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningAiDetection = secretScanningAiDetection } public enum CodingKeys: String, CodingKey { - case advanced_security - case code_security - case dependabot_security_updates - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_non_provider_patterns - case secret_scanning_ai_detection + case advancedSecurity = "advanced_security" + case codeSecurity = "code_security" + case dependabotSecurityUpdates = "dependabot_security_updates" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningAiDetection = "secret_scanning_ai_detection" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -2919,86 +2928,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -3008,11 +3017,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -3023,7 +3032,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -3053,104 +3062,104 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// A repository on GitHub. /// /// - Remark: Generated from `#/components/schemas/nullable-repository`. - public struct nullable_hyphen_repository: Codable, Hashable, Sendable { + public struct NullableRepository: Codable, Hashable, Sendable { /// Unique identifier of the repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/nullable-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/pull`. @@ -3161,7 +3170,7 @@ public enum Components { public var push: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions/maintain`. public var maintain: Swift.Bool? - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -3191,15 +3200,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/nullable-repository/permissions`. - public var permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.NullableRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private or public. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/fork`. @@ -3207,97 +3216,97 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/size`. @@ -3305,38 +3314,38 @@ public enum Components { /// The default branch of the repository. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// Whether this repository acts as a template that can be used to generate new repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/topics`. public var topics: [Swift.String]? /// Whether issues are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// Whether projects are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// Whether the wiki is enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// Whether downloads are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_downloads`. @available(*, deprecated) - public var has_downloads: Swift.Bool + public var hasDownloads: Swift.Bool /// Whether discussions are enabled. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/has_discussions`. - public var has_discussions: Swift.Bool? + public var hasDiscussions: Swift.Bool? /// Whether the repository is archived. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/archived`. @@ -3350,47 +3359,47 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/nullable-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/pushed_at`. - public var pushed_at: Foundation.Date? + public var pushedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/nullable-repository/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// Whether to allow rebase merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// Whether to allow squash merges for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// Whether to allow Auto-merge to be used on pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// Whether to delete head branches when pull requests are merged /// /// - Remark: Generated from `#/components/schemas/nullable-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -3398,7 +3407,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -3406,10 +3415,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -3418,16 +3427,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -3435,7 +3444,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -3443,10 +3452,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -3455,424 +3464,424 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? /// Whether to allow merge commits for pull requests. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// Whether to allow forking this repo /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// Whether to require contributors to sign off on web-based commits /// /// - Remark: Generated from `#/components/schemas/nullable-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/nullable-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/watchers`. public var watchers: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-repository/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// Whether anonymous git access is enabled for this repository /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? - /// Creates a new `nullable_hyphen_repository`. + public var anonymousAccessEnabled: Swift.Bool? + /// Creates a new `NullableRepository`. /// /// - Parameters: /// - id: Unique identifier of the repository - /// - node_id: + /// - nodeId: /// - name: The name of the repository. - /// - full_name: + /// - fullName: /// - license: /// - forks: /// - permissions: /// - owner: /// - _private: Whether the repository is private or public. - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: The default branch of the repository. - /// - open_issues_count: - /// - is_template: Whether this repository acts as a template that can be used to generate new repositories. + /// - defaultBranch: The default branch of the repository. + /// - openIssuesCount: + /// - isTemplate: Whether this repository acts as a template that can be used to generate new repositories. /// - topics: - /// - has_issues: Whether issues are enabled. - /// - has_projects: Whether projects are enabled. - /// - has_wiki: Whether the wiki is enabled. - /// - has_pages: - /// - has_downloads: Whether downloads are enabled. - /// - has_discussions: Whether discussions are enabled. + /// - hasIssues: Whether issues are enabled. + /// - hasProjects: Whether projects are enabled. + /// - hasWiki: Whether the wiki is enabled. + /// - hasPages: + /// - hasDownloads: Whether downloads are enabled. + /// - hasDiscussions: Whether discussions are enabled. /// - archived: Whether the repository is archived. /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: - /// - allow_rebase_merge: Whether to allow rebase merges for pull requests. - /// - temp_clone_token: - /// - allow_squash_merge: Whether to allow squash merges for pull requests. - /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. - /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged - /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_merge_commit: Whether to allow merge commits for pull requests. - /// - allow_forking: Whether to allow forking this repo - /// - web_commit_signoff_required: Whether to require contributors to sign off on web-based commits - /// - open_issues: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: + /// - allowRebaseMerge: Whether to allow rebase merges for pull requests. + /// - tempCloneToken: + /// - allowSquashMerge: Whether to allow squash merges for pull requests. + /// - allowAutoMerge: Whether to allow Auto-merge to be used on pull requests. + /// - deleteBranchOnMerge: Whether to delete head branches when pull requests are merged + /// - allowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. + /// - useSquashPrTitleAsDefault: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowMergeCommit: Whether to allow merge commits for pull requests. + /// - allowForking: Whether to allow forking this repo + /// - webCommitSignoffRequired: Whether to require contributors to sign off on web-based commits + /// - openIssues: /// - watchers: - /// - master_branch: - /// - starred_at: - /// - anonymous_access_enabled: Whether anonymous git access is enabled for this repository + /// - masterBranch: + /// - starredAt: + /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, + fullName: Swift.String, + license: Components.Schemas.NullableLicenseSimple? = nil, forks: Swift.Int, - permissions: Components.Schemas.nullable_hyphen_repository.permissionsPayload? = nil, - owner: Components.Schemas.simple_hyphen_user, + permissions: Components.Schemas.NullableRepository.PermissionsPayload? = nil, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool, - has_discussions: Swift.Bool? = nil, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool, + hasDiscussions: Swift.Bool? = nil, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - allow_rebase_merge: Swift.Bool? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.nullable_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.nullable_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.nullable_hyphen_repository.merge_commit_messagePayload? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - open_issues: Swift.Int, + pushedAt: Foundation.Date? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + allowRebaseMerge: Swift.Bool? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.NullableRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.NullableRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.NullableRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.NullableRepository.MergeCommitMessagePayload? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - master_branch: Swift.String? = nil, - starred_at: Swift.String? = nil, - anonymous_access_enabled: Swift.Bool? = nil + masterBranch: Swift.String? = nil, + starredAt: Swift.String? = nil, + anonymousAccessEnabled: Swift.Bool? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.license = license self.forks = forks self.permissions = permissions self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at - self.allow_rebase_merge = allow_rebase_merge - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_merge_commit = allow_merge_commit - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.open_issues = open_issues + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt + self.allowRebaseMerge = allowRebaseMerge + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowMergeCommit = allowMergeCommit + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.openIssues = openIssues self.watchers = watchers - self.master_branch = master_branch - self.starred_at = starred_at - self.anonymous_access_enabled = anonymous_access_enabled + self.masterBranch = masterBranch + self.starredAt = starredAt + self.anonymousAccessEnabled = anonymousAccessEnabled } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case license case forks case permissions case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at - case allow_rebase_merge - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_merge_commit - case allow_forking - case web_commit_signoff_required - case open_issues + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" + case allowRebaseMerge = "allow_rebase_merge" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowMergeCommit = "allow_merge_commit" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case openIssues = "open_issues" case watchers - case master_branch - case starred_at - case anonymous_access_enabled + case masterBranch = "master_branch" + case starredAt = "starred_at" + case anonymousAccessEnabled = "anonymous_access_enabled" } } /// Code of Conduct Simple /// /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple`. - public struct code_hyphen_of_hyphen_conduct_hyphen_simple: Codable, Hashable, Sendable { + public struct CodeOfConductSimple: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/key`. @@ -3880,50 +3889,50 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/code-of-conduct-simple/html_url`. - public var html_url: Swift.String? - /// Creates a new `code_hyphen_of_hyphen_conduct_hyphen_simple`. + public var htmlUrl: Swift.String? + /// Creates a new `CodeOfConductSimple`. /// /// - Parameters: /// - url: /// - key: /// - name: - /// - html_url: + /// - htmlUrl: public init( url: Swift.String, key: Swift.String, name: Swift.String, - html_url: Swift.String? = nil + htmlUrl: Swift.String? = nil ) { self.url = url self.key = key self.name = name - self.html_url = html_url + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case url case key case name - case html_url + case htmlUrl = "html_url" } } /// Full Repository /// /// - Remark: Generated from `#/components/schemas/full-repository`. - public struct full_hyphen_repository: Codable, Hashable, Sendable { + public struct FullRepository: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/full-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/full-repository/private`. public var _private: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/description`. public var description: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/fork`. @@ -3931,121 +3940,121 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/git_url`. - public var git_url: Swift.String + public var gitUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/ssh_url`. - public var ssh_url: Swift.String + public var sshUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/clone_url`. - public var clone_url: Swift.String + public var cloneUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/mirror_url`. - public var mirror_url: Swift.String? + public var mirrorUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/hooks_url`. - public var hooks_url: Swift.String + public var hooksUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/svn_url`. - public var svn_url: Swift.String + public var svnUrl: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/homepage`. public var homepage: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/language`. public var language: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/forks_count`. - public var forks_count: Swift.Int + public var forksCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/stargazers_count`. - public var stargazers_count: Swift.Int + public var stargazersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers_count`. - public var watchers_count: Swift.Int + public var watchersCount: Swift.Int /// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. /// /// - Remark: Generated from `#/components/schemas/full-repository/size`. public var size: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/default_branch`. - public var default_branch: Swift.String + public var defaultBranch: Swift.String /// - Remark: Generated from `#/components/schemas/full-repository/open_issues_count`. - public var open_issues_count: Swift.Int + public var openIssuesCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/is_template`. - public var is_template: Swift.Bool? + public var isTemplate: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/topics`. public var topics: [Swift.String]? /// - Remark: Generated from `#/components/schemas/full-repository/has_issues`. - public var has_issues: Swift.Bool + public var hasIssues: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_projects`. - public var has_projects: Swift.Bool + public var hasProjects: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_wiki`. - public var has_wiki: Swift.Bool + public var hasWiki: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_pages`. - public var has_pages: Swift.Bool + public var hasPages: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/has_downloads`. - public var has_downloads: Swift.Bool? + public var hasDownloads: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/has_discussions`. - public var has_discussions: Swift.Bool + public var hasDiscussions: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/archived`. public var archived: Swift.Bool /// Returns whether or not this repository disabled. @@ -4057,13 +4066,13 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/full-repository/visibility`. public var visibility: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/pushed_at`. - public var pushed_at: Foundation.Date + public var pushedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/full-repository/permissions/admin`. public var admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/full-repository/permissions/maintain`. @@ -4074,7 +4083,7 @@ public enum Components { public var triage: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/permissions/pull`. public var pull: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - admin: @@ -4104,34 +4113,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/full-repository/permissions`. - public var permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? + public var permissions: Components.Schemas.FullRepository.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_rebase_merge`. - public var allow_rebase_merge: Swift.Bool? + public var allowRebaseMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/template_repository`. - public var template_repository: Components.Schemas.nullable_hyphen_repository? + public var templateRepository: Components.Schemas.NullableRepository? /// - Remark: Generated from `#/components/schemas/full-repository/temp_clone_token`. - public var temp_clone_token: Swift.String? + public var tempCloneToken: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/allow_squash_merge`. - public var allow_squash_merge: Swift.Bool? + public var allowSquashMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_auto_merge`. - public var allow_auto_merge: Swift.Bool? + public var allowAutoMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/delete_branch_on_merge`. - public var delete_branch_on_merge: Swift.Bool? + public var deleteBranchOnMerge: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_merge_commit`. - public var allow_merge_commit: Swift.Bool? + public var allowMergeCommit: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/allow_update_branch`. - public var allow_update_branch: Swift.Bool? + public var allowUpdateBranch: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/use_squash_pr_title_as_default`. - public var use_squash_pr_title_as_default: Swift.Bool? + public var useSquashPrTitleAsDefault: Swift.Bool? /// The default value for a squash merge commit title: /// /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - @frozen public enum squash_merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case COMMIT_OR_PR_TITLE = "COMMIT_OR_PR_TITLE" + @frozen public enum SquashMergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case commitOrPrTitle = "COMMIT_OR_PR_TITLE" } /// The default value for a squash merge commit title: /// @@ -4139,7 +4148,7 @@ public enum Components { /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_title`. - public var squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? + public var squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? /// The default value for a squash merge commit message: /// /// - `PR_BODY` - default to the pull request's body. @@ -4147,10 +4156,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - @frozen public enum squash_merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case COMMIT_MESSAGES = "COMMIT_MESSAGES" - case BLANK = "BLANK" + @frozen public enum SquashMergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case commitMessages = "COMMIT_MESSAGES" + case blank = "BLANK" } /// The default value for a squash merge commit message: /// @@ -4159,16 +4168,16 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/squash_merge_commit_message`. - public var squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? + public var squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? /// The default value for a merge commit title. /// /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - @frozen public enum merge_commit_titlePayload: String, Codable, Hashable, Sendable { - case PR_TITLE = "PR_TITLE" - case MERGE_MESSAGE = "MERGE_MESSAGE" + @frozen public enum MergeCommitTitlePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prTitle = "PR_TITLE" + case mergeMessage = "MERGE_MESSAGE" } /// The default value for a merge commit title. /// @@ -4176,7 +4185,7 @@ public enum Components { /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_title`. - public var merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? + public var mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? /// The default value for a merge commit message. /// /// - `PR_TITLE` - default to the pull request's title. @@ -4184,10 +4193,10 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - @frozen public enum merge_commit_messagePayload: String, Codable, Hashable, Sendable { - case PR_BODY = "PR_BODY" - case PR_TITLE = "PR_TITLE" - case BLANK = "BLANK" + @frozen public enum MergeCommitMessagePayload: String, Codable, Hashable, Sendable, CaseIterable { + case prBody = "PR_BODY" + case prTitle = "PR_TITLE" + case blank = "BLANK" } /// The default value for a merge commit message. /// @@ -4196,46 +4205,46 @@ public enum Components { /// - `BLANK` - default to a blank commit message. /// /// - Remark: Generated from `#/components/schemas/full-repository/merge_commit_message`. - public var merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? + public var mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? /// - Remark: Generated from `#/components/schemas/full-repository/allow_forking`. - public var allow_forking: Swift.Bool? + public var allowForking: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/web_commit_signoff_required`. - public var web_commit_signoff_required: Swift.Bool? + public var webCommitSignoffRequired: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/subscribers_count`. - public var subscribers_count: Swift.Int + public var subscribersCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/network_count`. - public var network_count: Swift.Int + public var networkCount: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/license`. - public var license: Components.Schemas.nullable_hyphen_license_hyphen_simple? + public var license: Components.Schemas.NullableLicenseSimple? /// - Remark: Generated from `#/components/schemas/full-repository/organization`. - public var organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? + public var organization: Components.Schemas.NullableSimpleUser? /// - Remark: Generated from `#/components/schemas/full-repository/parent`. - public var parent: Components.Schemas.repository? + public var parent: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/source`. - public var source: Components.Schemas.repository? + public var source: Components.Schemas.Repository? /// - Remark: Generated from `#/components/schemas/full-repository/forks`. public var forks: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/master_branch`. - public var master_branch: Swift.String? + public var masterBranch: Swift.String? /// - Remark: Generated from `#/components/schemas/full-repository/open_issues`. - public var open_issues: Swift.Int + public var openIssues: Swift.Int /// - Remark: Generated from `#/components/schemas/full-repository/watchers`. public var watchers: Swift.Int /// Whether anonymous git access is allowed. /// /// - Remark: Generated from `#/components/schemas/full-repository/anonymous_access_enabled`. - public var anonymous_access_enabled: Swift.Bool? + public var anonymousAccessEnabled: Swift.Bool? /// - Remark: Generated from `#/components/schemas/full-repository/code_of_conduct`. - public var code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? + public var codeOfConduct: Components.Schemas.CodeOfConductSimple? /// - Remark: Generated from `#/components/schemas/full-repository/security_and_analysis`. - public var security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? + public var securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public struct custom_propertiesPayload: Codable, Hashable, Sendable { + public struct CustomPropertiesPayload: Codable, Hashable, Sendable { /// A container of undocumented properties. public var additionalProperties: OpenAPIRuntime.OpenAPIObjectContainer - /// Creates a new `custom_propertiesPayload`. + /// Creates a new `CustomPropertiesPayload`. /// /// - Parameters: /// - additionalProperties: A container of undocumented properties. @@ -4252,449 +4261,449 @@ public enum Components { /// The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. /// /// - Remark: Generated from `#/components/schemas/full-repository/custom_properties`. - public var custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? - /// Creates a new `full_hyphen_repository`. + public var customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? + /// Creates a new `FullRepository`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: - /// - full_name: + /// - fullName: /// - owner: /// - _private: - /// - html_url: + /// - htmlUrl: /// - description: /// - fork: /// - url: - /// - archive_url: - /// - assignees_url: - /// - blobs_url: - /// - branches_url: - /// - collaborators_url: - /// - comments_url: - /// - commits_url: - /// - compare_url: - /// - contents_url: - /// - contributors_url: - /// - deployments_url: - /// - downloads_url: - /// - events_url: - /// - forks_url: - /// - git_commits_url: - /// - git_refs_url: - /// - git_tags_url: - /// - git_url: - /// - issue_comment_url: - /// - issue_events_url: - /// - issues_url: - /// - keys_url: - /// - labels_url: - /// - languages_url: - /// - merges_url: - /// - milestones_url: - /// - notifications_url: - /// - pulls_url: - /// - releases_url: - /// - ssh_url: - /// - stargazers_url: - /// - statuses_url: - /// - subscribers_url: - /// - subscription_url: - /// - tags_url: - /// - teams_url: - /// - trees_url: - /// - clone_url: - /// - mirror_url: - /// - hooks_url: - /// - svn_url: + /// - archiveUrl: + /// - assigneesUrl: + /// - blobsUrl: + /// - branchesUrl: + /// - collaboratorsUrl: + /// - commentsUrl: + /// - commitsUrl: + /// - compareUrl: + /// - contentsUrl: + /// - contributorsUrl: + /// - deploymentsUrl: + /// - downloadsUrl: + /// - eventsUrl: + /// - forksUrl: + /// - gitCommitsUrl: + /// - gitRefsUrl: + /// - gitTagsUrl: + /// - gitUrl: + /// - issueCommentUrl: + /// - issueEventsUrl: + /// - issuesUrl: + /// - keysUrl: + /// - labelsUrl: + /// - languagesUrl: + /// - mergesUrl: + /// - milestonesUrl: + /// - notificationsUrl: + /// - pullsUrl: + /// - releasesUrl: + /// - sshUrl: + /// - stargazersUrl: + /// - statusesUrl: + /// - subscribersUrl: + /// - subscriptionUrl: + /// - tagsUrl: + /// - teamsUrl: + /// - treesUrl: + /// - cloneUrl: + /// - mirrorUrl: + /// - hooksUrl: + /// - svnUrl: /// - homepage: /// - language: - /// - forks_count: - /// - stargazers_count: - /// - watchers_count: + /// - forksCount: + /// - stargazersCount: + /// - watchersCount: /// - size: The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. - /// - default_branch: - /// - open_issues_count: - /// - is_template: + /// - defaultBranch: + /// - openIssuesCount: + /// - isTemplate: /// - topics: - /// - has_issues: - /// - has_projects: - /// - has_wiki: - /// - has_pages: - /// - has_downloads: - /// - has_discussions: + /// - hasIssues: + /// - hasProjects: + /// - hasWiki: + /// - hasPages: + /// - hasDownloads: + /// - hasDiscussions: /// - archived: /// - disabled: Returns whether or not this repository disabled. /// - visibility: The repository visibility: public, private, or internal. - /// - pushed_at: - /// - created_at: - /// - updated_at: + /// - pushedAt: + /// - createdAt: + /// - updatedAt: /// - permissions: - /// - allow_rebase_merge: - /// - template_repository: - /// - temp_clone_token: - /// - allow_squash_merge: - /// - allow_auto_merge: - /// - delete_branch_on_merge: - /// - allow_merge_commit: - /// - allow_update_branch: - /// - use_squash_pr_title_as_default: - /// - squash_merge_commit_title: The default value for a squash merge commit title: - /// - squash_merge_commit_message: The default value for a squash merge commit message: - /// - merge_commit_title: The default value for a merge commit title. - /// - merge_commit_message: The default value for a merge commit message. - /// - allow_forking: - /// - web_commit_signoff_required: - /// - subscribers_count: - /// - network_count: + /// - allowRebaseMerge: + /// - templateRepository: + /// - tempCloneToken: + /// - allowSquashMerge: + /// - allowAutoMerge: + /// - deleteBranchOnMerge: + /// - allowMergeCommit: + /// - allowUpdateBranch: + /// - useSquashPrTitleAsDefault: + /// - squashMergeCommitTitle: The default value for a squash merge commit title: + /// - squashMergeCommitMessage: The default value for a squash merge commit message: + /// - mergeCommitTitle: The default value for a merge commit title. + /// - mergeCommitMessage: The default value for a merge commit message. + /// - allowForking: + /// - webCommitSignoffRequired: + /// - subscribersCount: + /// - networkCount: /// - license: /// - organization: /// - parent: /// - source: /// - forks: - /// - master_branch: - /// - open_issues: + /// - masterBranch: + /// - openIssues: /// - watchers: - /// - anonymous_access_enabled: Whether anonymous git access is allowed. - /// - code_of_conduct: - /// - security_and_analysis: - /// - custom_properties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. + /// - anonymousAccessEnabled: Whether anonymous git access is allowed. + /// - codeOfConduct: + /// - securityAndAnalysis: + /// - customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - git_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - ssh_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - clone_url: Swift.String, - mirror_url: Swift.String? = nil, - hooks_url: Swift.String, - svn_url: Swift.String, + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + gitUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + sshUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + cloneUrl: Swift.String, + mirrorUrl: Swift.String? = nil, + hooksUrl: Swift.String, + svnUrl: Swift.String, homepage: Swift.String? = nil, language: Swift.String? = nil, - forks_count: Swift.Int, - stargazers_count: Swift.Int, - watchers_count: Swift.Int, + forksCount: Swift.Int, + stargazersCount: Swift.Int, + watchersCount: Swift.Int, size: Swift.Int, - default_branch: Swift.String, - open_issues_count: Swift.Int, - is_template: Swift.Bool? = nil, + defaultBranch: Swift.String, + openIssuesCount: Swift.Int, + isTemplate: Swift.Bool? = nil, topics: [Swift.String]? = nil, - has_issues: Swift.Bool, - has_projects: Swift.Bool, - has_wiki: Swift.Bool, - has_pages: Swift.Bool, - has_downloads: Swift.Bool? = nil, - has_discussions: Swift.Bool, + hasIssues: Swift.Bool, + hasProjects: Swift.Bool, + hasWiki: Swift.Bool, + hasPages: Swift.Bool, + hasDownloads: Swift.Bool? = nil, + hasDiscussions: Swift.Bool, archived: Swift.Bool, disabled: Swift.Bool, visibility: Swift.String? = nil, - pushed_at: Foundation.Date, - created_at: Foundation.Date, - updated_at: Foundation.Date, - permissions: Components.Schemas.full_hyphen_repository.permissionsPayload? = nil, - allow_rebase_merge: Swift.Bool? = nil, - template_repository: Components.Schemas.nullable_hyphen_repository? = nil, - temp_clone_token: Swift.String? = nil, - allow_squash_merge: Swift.Bool? = nil, - allow_auto_merge: Swift.Bool? = nil, - delete_branch_on_merge: Swift.Bool? = nil, - allow_merge_commit: Swift.Bool? = nil, - allow_update_branch: Swift.Bool? = nil, - use_squash_pr_title_as_default: Swift.Bool? = nil, - squash_merge_commit_title: Components.Schemas.full_hyphen_repository.squash_merge_commit_titlePayload? = nil, - squash_merge_commit_message: Components.Schemas.full_hyphen_repository.squash_merge_commit_messagePayload? = nil, - merge_commit_title: Components.Schemas.full_hyphen_repository.merge_commit_titlePayload? = nil, - merge_commit_message: Components.Schemas.full_hyphen_repository.merge_commit_messagePayload? = nil, - allow_forking: Swift.Bool? = nil, - web_commit_signoff_required: Swift.Bool? = nil, - subscribers_count: Swift.Int, - network_count: Swift.Int, - license: Components.Schemas.nullable_hyphen_license_hyphen_simple? = nil, - organization: Components.Schemas.nullable_hyphen_simple_hyphen_user? = nil, - parent: Components.Schemas.repository? = nil, - source: Components.Schemas.repository? = nil, + pushedAt: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, + permissions: Components.Schemas.FullRepository.PermissionsPayload? = nil, + allowRebaseMerge: Swift.Bool? = nil, + templateRepository: Components.Schemas.NullableRepository? = nil, + tempCloneToken: Swift.String? = nil, + allowSquashMerge: Swift.Bool? = nil, + allowAutoMerge: Swift.Bool? = nil, + deleteBranchOnMerge: Swift.Bool? = nil, + allowMergeCommit: Swift.Bool? = nil, + allowUpdateBranch: Swift.Bool? = nil, + useSquashPrTitleAsDefault: Swift.Bool? = nil, + squashMergeCommitTitle: Components.Schemas.FullRepository.SquashMergeCommitTitlePayload? = nil, + squashMergeCommitMessage: Components.Schemas.FullRepository.SquashMergeCommitMessagePayload? = nil, + mergeCommitTitle: Components.Schemas.FullRepository.MergeCommitTitlePayload? = nil, + mergeCommitMessage: Components.Schemas.FullRepository.MergeCommitMessagePayload? = nil, + allowForking: Swift.Bool? = nil, + webCommitSignoffRequired: Swift.Bool? = nil, + subscribersCount: Swift.Int, + networkCount: Swift.Int, + license: Components.Schemas.NullableLicenseSimple? = nil, + organization: Components.Schemas.NullableSimpleUser? = nil, + parent: Components.Schemas.Repository? = nil, + source: Components.Schemas.Repository? = nil, forks: Swift.Int, - master_branch: Swift.String? = nil, - open_issues: Swift.Int, + masterBranch: Swift.String? = nil, + openIssues: Swift.Int, watchers: Swift.Int, - anonymous_access_enabled: Swift.Bool? = nil, - code_of_conduct: Components.Schemas.code_hyphen_of_hyphen_conduct_hyphen_simple? = nil, - security_and_analysis: Components.Schemas.security_hyphen_and_hyphen_analysis? = nil, - custom_properties: Components.Schemas.full_hyphen_repository.custom_propertiesPayload? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeOfConduct: Components.Schemas.CodeOfConductSimple? = nil, + securityAndAnalysis: Components.Schemas.SecurityAndAnalysis? = nil, + customProperties: Components.Schemas.FullRepository.CustomPropertiesPayload? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.git_url = git_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.ssh_url = ssh_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.clone_url = clone_url - self.mirror_url = mirror_url - self.hooks_url = hooks_url - self.svn_url = svn_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.gitUrl = gitUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.sshUrl = sshUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.cloneUrl = cloneUrl + self.mirrorUrl = mirrorUrl + self.hooksUrl = hooksUrl + self.svnUrl = svnUrl self.homepage = homepage self.language = language - self.forks_count = forks_count - self.stargazers_count = stargazers_count - self.watchers_count = watchers_count + self.forksCount = forksCount + self.stargazersCount = stargazersCount + self.watchersCount = watchersCount self.size = size - self.default_branch = default_branch - self.open_issues_count = open_issues_count - self.is_template = is_template + self.defaultBranch = defaultBranch + self.openIssuesCount = openIssuesCount + self.isTemplate = isTemplate self.topics = topics - self.has_issues = has_issues - self.has_projects = has_projects - self.has_wiki = has_wiki - self.has_pages = has_pages - self.has_downloads = has_downloads - self.has_discussions = has_discussions + self.hasIssues = hasIssues + self.hasProjects = hasProjects + self.hasWiki = hasWiki + self.hasPages = hasPages + self.hasDownloads = hasDownloads + self.hasDiscussions = hasDiscussions self.archived = archived self.disabled = disabled self.visibility = visibility - self.pushed_at = pushed_at - self.created_at = created_at - self.updated_at = updated_at + self.pushedAt = pushedAt + self.createdAt = createdAt + self.updatedAt = updatedAt self.permissions = permissions - self.allow_rebase_merge = allow_rebase_merge - self.template_repository = template_repository - self.temp_clone_token = temp_clone_token - self.allow_squash_merge = allow_squash_merge - self.allow_auto_merge = allow_auto_merge - self.delete_branch_on_merge = delete_branch_on_merge - self.allow_merge_commit = allow_merge_commit - self.allow_update_branch = allow_update_branch - self.use_squash_pr_title_as_default = use_squash_pr_title_as_default - self.squash_merge_commit_title = squash_merge_commit_title - self.squash_merge_commit_message = squash_merge_commit_message - self.merge_commit_title = merge_commit_title - self.merge_commit_message = merge_commit_message - self.allow_forking = allow_forking - self.web_commit_signoff_required = web_commit_signoff_required - self.subscribers_count = subscribers_count - self.network_count = network_count + self.allowRebaseMerge = allowRebaseMerge + self.templateRepository = templateRepository + self.tempCloneToken = tempCloneToken + self.allowSquashMerge = allowSquashMerge + self.allowAutoMerge = allowAutoMerge + self.deleteBranchOnMerge = deleteBranchOnMerge + self.allowMergeCommit = allowMergeCommit + self.allowUpdateBranch = allowUpdateBranch + self.useSquashPrTitleAsDefault = useSquashPrTitleAsDefault + self.squashMergeCommitTitle = squashMergeCommitTitle + self.squashMergeCommitMessage = squashMergeCommitMessage + self.mergeCommitTitle = mergeCommitTitle + self.mergeCommitMessage = mergeCommitMessage + self.allowForking = allowForking + self.webCommitSignoffRequired = webCommitSignoffRequired + self.subscribersCount = subscribersCount + self.networkCount = networkCount self.license = license self.organization = organization self.parent = parent self.source = source self.forks = forks - self.master_branch = master_branch - self.open_issues = open_issues + self.masterBranch = masterBranch + self.openIssues = openIssues self.watchers = watchers - self.anonymous_access_enabled = anonymous_access_enabled - self.code_of_conduct = code_of_conduct - self.security_and_analysis = security_and_analysis - self.custom_properties = custom_properties + self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeOfConduct = codeOfConduct + self.securityAndAnalysis = securityAndAnalysis + self.customProperties = customProperties } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case git_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case ssh_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case clone_url - case mirror_url - case hooks_url - case svn_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case gitUrl = "git_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case sshUrl = "ssh_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case cloneUrl = "clone_url" + case mirrorUrl = "mirror_url" + case hooksUrl = "hooks_url" + case svnUrl = "svn_url" case homepage case language - case forks_count - case stargazers_count - case watchers_count + case forksCount = "forks_count" + case stargazersCount = "stargazers_count" + case watchersCount = "watchers_count" case size - case default_branch - case open_issues_count - case is_template + case defaultBranch = "default_branch" + case openIssuesCount = "open_issues_count" + case isTemplate = "is_template" case topics - case has_issues - case has_projects - case has_wiki - case has_pages - case has_downloads - case has_discussions + case hasIssues = "has_issues" + case hasProjects = "has_projects" + case hasWiki = "has_wiki" + case hasPages = "has_pages" + case hasDownloads = "has_downloads" + case hasDiscussions = "has_discussions" case archived case disabled case visibility - case pushed_at - case created_at - case updated_at + case pushedAt = "pushed_at" + case createdAt = "created_at" + case updatedAt = "updated_at" case permissions - case allow_rebase_merge - case template_repository - case temp_clone_token - case allow_squash_merge - case allow_auto_merge - case delete_branch_on_merge - case allow_merge_commit - case allow_update_branch - case use_squash_pr_title_as_default - case squash_merge_commit_title - case squash_merge_commit_message - case merge_commit_title - case merge_commit_message - case allow_forking - case web_commit_signoff_required - case subscribers_count - case network_count + case allowRebaseMerge = "allow_rebase_merge" + case templateRepository = "template_repository" + case tempCloneToken = "temp_clone_token" + case allowSquashMerge = "allow_squash_merge" + case allowAutoMerge = "allow_auto_merge" + case deleteBranchOnMerge = "delete_branch_on_merge" + case allowMergeCommit = "allow_merge_commit" + case allowUpdateBranch = "allow_update_branch" + case useSquashPrTitleAsDefault = "use_squash_pr_title_as_default" + case squashMergeCommitTitle = "squash_merge_commit_title" + case squashMergeCommitMessage = "squash_merge_commit_message" + case mergeCommitTitle = "merge_commit_title" + case mergeCommitMessage = "merge_commit_message" + case allowForking = "allow_forking" + case webCommitSignoffRequired = "web_commit_signoff_required" + case subscribersCount = "subscribers_count" + case networkCount = "network_count" case license case organization case parent case source case forks - case master_branch - case open_issues + case masterBranch = "master_branch" + case openIssues = "open_issues" case watchers - case anonymous_access_enabled - case code_of_conduct - case security_and_analysis - case custom_properties + case anonymousAccessEnabled = "anonymous_access_enabled" + case codeOfConduct = "code_of_conduct" + case securityAndAnalysis = "security_and_analysis" + case customProperties = "custom_properties" } } /// A product affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability`. - public struct repository_hyphen_advisory_hyphen_vulnerability: Codable, Hashable, Sendable { + public struct RepositoryAdvisoryVulnerability: Codable, Hashable, Sendable { /// The name of the package affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/package`. - public struct packagePayload: Codable, Hashable, Sendable { + public struct PackagePayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/package/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems /// The unique package name within its ecosystem. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/package/name`. public var name: Swift.String? - /// Creates a new `packagePayload`. + /// Creates a new `PackagePayload`. /// /// - Parameters: /// - ecosystem: /// - name: The unique package name within its ecosystem. public init( - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems, name: Swift.String? = nil ) { self.ecosystem = ecosystem @@ -4708,60 +4717,60 @@ public enum Components { /// The name of the package affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/package`. - public var package: Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability.packagePayload? + public var package: Components.Schemas.RepositoryAdvisoryVulnerability.PackagePayload? /// The range of the package versions affected by the vulnerability. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String? + public var vulnerableVersionRange: Swift.String? /// The package version(s) that resolve the vulnerability. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/patched_versions`. - public var patched_versions: Swift.String? + public var patchedVersions: Swift.String? /// The functions in the package that are affected. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-vulnerability/vulnerable_functions`. - public var vulnerable_functions: [Swift.String]? - /// Creates a new `repository_hyphen_advisory_hyphen_vulnerability`. + public var vulnerableFunctions: [Swift.String]? + /// Creates a new `RepositoryAdvisoryVulnerability`. /// /// - Parameters: /// - package: The name of the package affected by the vulnerability. - /// - vulnerable_version_range: The range of the package versions affected by the vulnerability. - /// - patched_versions: The package version(s) that resolve the vulnerability. - /// - vulnerable_functions: The functions in the package that are affected. + /// - vulnerableVersionRange: The range of the package versions affected by the vulnerability. + /// - patchedVersions: The package version(s) that resolve the vulnerability. + /// - vulnerableFunctions: The functions in the package that are affected. public init( - package: Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability.packagePayload? = nil, - vulnerable_version_range: Swift.String? = nil, - patched_versions: Swift.String? = nil, - vulnerable_functions: [Swift.String]? = nil + package: Components.Schemas.RepositoryAdvisoryVulnerability.PackagePayload? = nil, + vulnerableVersionRange: Swift.String? = nil, + patchedVersions: Swift.String? = nil, + vulnerableFunctions: [Swift.String]? = nil ) { self.package = package - self.vulnerable_version_range = vulnerable_version_range - self.patched_versions = patched_versions - self.vulnerable_functions = vulnerable_functions + self.vulnerableVersionRange = vulnerableVersionRange + self.patchedVersions = patchedVersions + self.vulnerableFunctions = vulnerableFunctions } public enum CodingKeys: String, CodingKey { case package - case vulnerable_version_range - case patched_versions - case vulnerable_functions + case vulnerableVersionRange = "vulnerable_version_range" + case patchedVersions = "patched_versions" + case vulnerableFunctions = "vulnerable_functions" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability.packagePayload.self, + self.package = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryVulnerability.PackagePayload.self, forKey: .package ) - vulnerable_version_range = try container.decodeIfPresent( + self.vulnerableVersionRange = try container.decodeIfPresent( Swift.String.self, - forKey: .vulnerable_version_range + forKey: .vulnerableVersionRange ) - patched_versions = try container.decodeIfPresent( + self.patchedVersions = try container.decodeIfPresent( Swift.String.self, - forKey: .patched_versions + forKey: .patchedVersions ) - vulnerable_functions = try container.decodeIfPresent( + self.vulnerableFunctions = try container.decodeIfPresent( [Swift.String].self, - forKey: .vulnerable_functions + forKey: .vulnerableFunctions ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "package", @@ -4774,15 +4783,15 @@ public enum Components { /// A credit given to a user for a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-credit`. - public struct repository_hyphen_advisory_hyphen_credit: Codable, Hashable, Sendable { + public struct RepositoryAdvisoryCredit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-advisory-credit/user`. - public var user: Components.Schemas.simple_hyphen_user + public var user: Components.Schemas.SimpleUser /// - Remark: Generated from `#/components/schemas/repository-advisory-credit/type`. - public var _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types + public var _type: Components.Schemas.SecurityAdvisoryCreditTypes /// The state of the user's acceptance of the credit. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-credit/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case accepted = "accepted" case declined = "declined" case pending = "pending" @@ -4790,17 +4799,17 @@ public enum Components { /// The state of the user's acceptance of the credit. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-credit/state`. - public var state: Components.Schemas.repository_hyphen_advisory_hyphen_credit.statePayload - /// Creates a new `repository_hyphen_advisory_hyphen_credit`. + public var state: Components.Schemas.RepositoryAdvisoryCredit.StatePayload + /// Creates a new `RepositoryAdvisoryCredit`. /// /// - Parameters: /// - user: /// - _type: /// - state: The state of the user's acceptance of the credit. public init( - user: Components.Schemas.simple_hyphen_user, - _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types, - state: Components.Schemas.repository_hyphen_advisory_hyphen_credit.statePayload + user: Components.Schemas.SimpleUser, + _type: Components.Schemas.SecurityAdvisoryCreditTypes, + state: Components.Schemas.RepositoryAdvisoryCredit.StatePayload ) { self.user = user self._type = _type @@ -4813,16 +4822,16 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - user = try container.decode( - Components.Schemas.simple_hyphen_user.self, + self.user = try container.decode( + Components.Schemas.SimpleUser.self, forKey: .user ) - _type = try container.decode( - Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types.self, + self._type = try container.decode( + Components.Schemas.SecurityAdvisoryCreditTypes.self, forKey: ._type ) - state = try container.decode( - Components.Schemas.repository_hyphen_advisory_hyphen_credit.statePayload.self, + self.state = try container.decode( + Components.Schemas.RepositoryAdvisoryCredit.StatePayload.self, forKey: .state ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -4835,15 +4844,15 @@ public enum Components { /// A repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory`. - public struct repository_hyphen_advisory: Codable, Hashable, Sendable { + public struct RepositoryAdvisory: Codable, Hashable, Sendable { /// The GitHub Security Advisory ID. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/ghsa_id`. - public var ghsa_id: Swift.String + public var ghsaId: Swift.String /// The Common Vulnerabilities and Exposures (CVE) ID. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/cve_id`. - public var cve_id: Swift.String? + public var cveId: Swift.String? /// The API URL for the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/url`. @@ -4851,7 +4860,7 @@ public enum Components { /// The URL for the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// A short summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/summary`. @@ -4863,7 +4872,7 @@ public enum Components { /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -4872,79 +4881,79 @@ public enum Components { /// The severity of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/severity`. - public var severity: Components.Schemas.repository_hyphen_advisory.severityPayload? + public var severity: Components.Schemas.RepositoryAdvisory.SeverityPayload? /// The author of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/author`. - public struct authorPayload: Codable, Hashable, Sendable { + public struct AuthorPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-advisory/author/value1`. - public var value1: Components.Schemas.simple_hyphen_user - /// Creates a new `authorPayload`. + public var value1: Components.Schemas.SimpleUser + /// Creates a new `AuthorPayload`. /// /// - Parameters: /// - value1: - public init(value1: Components.Schemas.simple_hyphen_user) { + public init(value1: Components.Schemas.SimpleUser) { self.value1 = value1 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) + try self.value1.encode(to: encoder) } } /// The author of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/author`. - public var author: Components.Schemas.repository_hyphen_advisory.authorPayload? + public var author: Components.Schemas.RepositoryAdvisory.AuthorPayload? /// The publisher of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/publisher`. - public struct publisherPayload: Codable, Hashable, Sendable { + public struct PublisherPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-advisory/publisher/value1`. - public var value1: Components.Schemas.simple_hyphen_user - /// Creates a new `publisherPayload`. + public var value1: Components.Schemas.SimpleUser + /// Creates a new `PublisherPayload`. /// /// - Parameters: /// - value1: - public init(value1: Components.Schemas.simple_hyphen_user) { + public init(value1: Components.Schemas.SimpleUser) { self.value1 = value1 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) + try self.value1.encode(to: encoder) } } /// The publisher of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/publisher`. - public var publisher: Components.Schemas.repository_hyphen_advisory.publisherPayload? - /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiersPayload`. - public struct identifiersPayloadPayload: Codable, Hashable, Sendable { + public var publisher: Components.Schemas.RepositoryAdvisory.PublisherPayload? + /// - Remark: Generated from `#/components/schemas/repository-advisory/IdentifiersPayload`. + public struct IdentifiersPayloadPayload: Codable, Hashable, Sendable { /// The type of identifier. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiersPayload/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { - case CVE = "CVE" - case GHSA = "GHSA" + /// - Remark: Generated from `#/components/schemas/repository-advisory/IdentifiersPayload/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case cve = "CVE" + case ghsa = "GHSA" } /// The type of identifier. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiersPayload/type`. - public var _type: Components.Schemas.repository_hyphen_advisory.identifiersPayloadPayload._typePayload + /// - Remark: Generated from `#/components/schemas/repository-advisory/IdentifiersPayload/type`. + public var _type: Components.Schemas.RepositoryAdvisory.IdentifiersPayloadPayload._TypePayload /// The identifier value. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiersPayload/value`. + /// - Remark: Generated from `#/components/schemas/repository-advisory/IdentifiersPayload/value`. public var value: Swift.String - /// Creates a new `identifiersPayloadPayload`. + /// Creates a new `IdentifiersPayloadPayload`. /// /// - Parameters: /// - _type: The type of identifier. /// - value: The identifier value. public init( - _type: Components.Schemas.repository_hyphen_advisory.identifiersPayloadPayload._typePayload, + _type: Components.Schemas.RepositoryAdvisory.IdentifiersPayloadPayload._TypePayload, value: Swift.String ) { self._type = _type @@ -4956,13 +4965,13 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiers`. - public typealias identifiersPayload = [Components.Schemas.repository_hyphen_advisory.identifiersPayloadPayload] + public typealias IdentifiersPayload = [Components.Schemas.RepositoryAdvisory.IdentifiersPayloadPayload] /// - Remark: Generated from `#/components/schemas/repository-advisory/identifiers`. - public var identifiers: Components.Schemas.repository_hyphen_advisory.identifiersPayload + public var identifiers: Components.Schemas.RepositoryAdvisory.IdentifiersPayload /// The state of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case published = "published" case closed = "closed" case withdrawn = "withdrawn" @@ -4972,34 +4981,34 @@ public enum Components { /// The state of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/state`. - public var state: Components.Schemas.repository_hyphen_advisory.statePayload + public var state: Components.Schemas.RepositoryAdvisory.StatePayload /// The date and time of when the advisory was created, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// The date and time of when the advisory was last updated, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/updated_at`. - public var updated_at: Foundation.Date? + public var updatedAt: Foundation.Date? /// The date and time of when the advisory was published, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/published_at`. - public var published_at: Foundation.Date? + public var publishedAt: Foundation.Date? /// The date and time of when the advisory was closed, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// The date and time of when the advisory was withdrawn, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/withdrawn_at`. - public var withdrawn_at: Foundation.Date? + public var withdrawnAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/repository-advisory/submission`. - public struct submissionPayload: Codable, Hashable, Sendable { + public struct SubmissionPayload: Codable, Hashable, Sendable { /// Whether a private vulnerability report was accepted by the repository's administrators. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/submission/accepted`. public var accepted: Swift.Bool - /// Creates a new `submissionPayload`. + /// Creates a new `SubmissionPayload`. /// /// - Parameters: /// - accepted: Whether a private vulnerability report was accepted by the repository's administrators. @@ -5011,91 +5020,91 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-advisory/submission`. - public var submission: Components.Schemas.repository_hyphen_advisory.submissionPayload? + public var submission: Components.Schemas.RepositoryAdvisory.SubmissionPayload? /// - Remark: Generated from `#/components/schemas/repository-advisory/vulnerabilities`. - public var vulnerabilities: [Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability]? + public var vulnerabilities: [Components.Schemas.RepositoryAdvisoryVulnerability]? /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss`. - public struct cvssPayload: Codable, Hashable, Sendable { + public struct CvssPayload: Codable, Hashable, Sendable { /// The CVSS vector. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss/vector_string`. - public var vector_string: Swift.String? + public var vectorString: Swift.String? /// The CVSS score. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss/score`. public var score: Swift.Double? - /// Creates a new `cvssPayload`. + /// Creates a new `CvssPayload`. /// /// - Parameters: - /// - vector_string: The CVSS vector. + /// - vectorString: The CVSS vector. /// - score: The CVSS score. public init( - vector_string: Swift.String? = nil, + vectorString: Swift.String? = nil, score: Swift.Double? = nil ) { - self.vector_string = vector_string + self.vectorString = vectorString self.score = score } public enum CodingKeys: String, CodingKey { - case vector_string + case vectorString = "vector_string" case score } } /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss`. - public var cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload? + public var cvss: Components.Schemas.RepositoryAdvisory.CvssPayload? /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss_severities`. - public var cvss_severities: Components.Schemas.cvss_hyphen_severities? - /// - Remark: Generated from `#/components/schemas/repository-advisory/cwesPayload`. - public struct cwesPayloadPayload: Codable, Hashable, Sendable { + public var cvssSeverities: Components.Schemas.CvssSeverities? + /// - Remark: Generated from `#/components/schemas/repository-advisory/CwesPayload`. + public struct CwesPayloadPayload: Codable, Hashable, Sendable { /// The Common Weakness Enumeration (CWE) identifier. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/cwesPayload/cwe_id`. - public var cwe_id: Swift.String + /// - Remark: Generated from `#/components/schemas/repository-advisory/CwesPayload/cwe_id`. + public var cweId: Swift.String /// The name of the CWE. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/cwesPayload/name`. + /// - Remark: Generated from `#/components/schemas/repository-advisory/CwesPayload/name`. public var name: Swift.String - /// Creates a new `cwesPayloadPayload`. + /// Creates a new `CwesPayloadPayload`. /// /// - Parameters: - /// - cwe_id: The Common Weakness Enumeration (CWE) identifier. + /// - cweId: The Common Weakness Enumeration (CWE) identifier. /// - name: The name of the CWE. public init( - cwe_id: Swift.String, + cweId: Swift.String, name: Swift.String ) { - self.cwe_id = cwe_id + self.cweId = cweId self.name = name } public enum CodingKeys: String, CodingKey { - case cwe_id + case cweId = "cwe_id" case name } } /// - Remark: Generated from `#/components/schemas/repository-advisory/cwes`. - public typealias cwesPayload = [Components.Schemas.repository_hyphen_advisory.cwesPayloadPayload] + public typealias CwesPayload = [Components.Schemas.RepositoryAdvisory.CwesPayloadPayload] /// - Remark: Generated from `#/components/schemas/repository-advisory/cwes`. - public var cwes: Components.Schemas.repository_hyphen_advisory.cwesPayload? + public var cwes: Components.Schemas.RepositoryAdvisory.CwesPayload? /// A list of only the CWE IDs. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/cwe_ids`. - public var cwe_ids: [Swift.String]? - /// - Remark: Generated from `#/components/schemas/repository-advisory/creditsPayload`. - public struct creditsPayloadPayload: Codable, Hashable, Sendable { + public var cweIds: [Swift.String]? + /// - Remark: Generated from `#/components/schemas/repository-advisory/CreditsPayload`. + public struct CreditsPayloadPayload: Codable, Hashable, Sendable { /// The username of the user credited. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory/creditsPayload/login`. + /// - Remark: Generated from `#/components/schemas/repository-advisory/CreditsPayload/login`. public var login: Swift.String? - /// - Remark: Generated from `#/components/schemas/repository-advisory/creditsPayload/type`. - public var _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types? - /// Creates a new `creditsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/repository-advisory/CreditsPayload/type`. + public var _type: Components.Schemas.SecurityAdvisoryCreditTypes? + /// Creates a new `CreditsPayloadPayload`. /// /// - Parameters: /// - login: The username of the user credited. /// - _type: public init( login: Swift.String? = nil, - _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types? = nil + _type: Components.Schemas.SecurityAdvisoryCreditTypes? = nil ) { self.login = login self._type = _type @@ -5106,50 +5115,50 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-advisory/credits`. - public typealias creditsPayload = [Components.Schemas.repository_hyphen_advisory.creditsPayloadPayload] + public typealias CreditsPayload = [Components.Schemas.RepositoryAdvisory.CreditsPayloadPayload] /// - Remark: Generated from `#/components/schemas/repository-advisory/credits`. - public var credits: Components.Schemas.repository_hyphen_advisory.creditsPayload? + public var credits: Components.Schemas.RepositoryAdvisory.CreditsPayload? /// - Remark: Generated from `#/components/schemas/repository-advisory/credits_detailed`. - public var credits_detailed: [Components.Schemas.repository_hyphen_advisory_hyphen_credit]? + public var creditsDetailed: [Components.Schemas.RepositoryAdvisoryCredit]? /// A list of users that collaborate on the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/collaborating_users`. - public var collaborating_users: [Components.Schemas.simple_hyphen_user]? + public var collaboratingUsers: [Components.Schemas.SimpleUser]? /// A list of teams that collaborate on the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/collaborating_teams`. - public var collaborating_teams: [Components.Schemas.team]? + public var collaboratingTeams: [Components.Schemas.Team]? /// A temporary private fork of the advisory's repository for collaborating on a fix. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/private_fork`. - public struct private_forkPayload: Codable, Hashable, Sendable { + public struct PrivateForkPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/repository-advisory/private_fork/value1`. - public var value1: Components.Schemas.simple_hyphen_repository - /// Creates a new `private_forkPayload`. + public var value1: Components.Schemas.SimpleRepository + /// Creates a new `PrivateForkPayload`. /// /// - Parameters: /// - value1: - public init(value1: Components.Schemas.simple_hyphen_repository) { + public init(value1: Components.Schemas.SimpleRepository) { self.value1 = value1 } public init(from decoder: any Decoder) throws { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } public func encode(to encoder: any Encoder) throws { - try value1.encode(to: encoder) + try self.value1.encode(to: encoder) } } /// A temporary private fork of the advisory's repository for collaborating on a fix. /// /// - Remark: Generated from `#/components/schemas/repository-advisory/private_fork`. - public var private_fork: Components.Schemas.repository_hyphen_advisory.private_forkPayload? - /// Creates a new `repository_hyphen_advisory`. + public var privateFork: Components.Schemas.RepositoryAdvisory.PrivateForkPayload? + /// Creates a new `RepositoryAdvisory`. /// /// - Parameters: - /// - ghsa_id: The GitHub Security Advisory ID. - /// - cve_id: The Common Vulnerabilities and Exposures (CVE) ID. + /// - ghsaId: The GitHub Security Advisory ID. + /// - cveId: The Common Vulnerabilities and Exposures (CVE) ID. /// - url: The API URL for the advisory. - /// - html_url: The URL for the advisory. + /// - htmlUrl: The URL for the advisory. /// - summary: A short summary of the advisory. /// - description: A detailed description of what the advisory entails. /// - severity: The severity of the advisory. @@ -5157,55 +5166,55 @@ public enum Components { /// - publisher: The publisher of the advisory. /// - identifiers: /// - state: The state of the advisory. - /// - created_at: The date and time of when the advisory was created, in ISO 8601 format. - /// - updated_at: The date and time of when the advisory was last updated, in ISO 8601 format. - /// - published_at: The date and time of when the advisory was published, in ISO 8601 format. - /// - closed_at: The date and time of when the advisory was closed, in ISO 8601 format. - /// - withdrawn_at: The date and time of when the advisory was withdrawn, in ISO 8601 format. + /// - createdAt: The date and time of when the advisory was created, in ISO 8601 format. + /// - updatedAt: The date and time of when the advisory was last updated, in ISO 8601 format. + /// - publishedAt: The date and time of when the advisory was published, in ISO 8601 format. + /// - closedAt: The date and time of when the advisory was closed, in ISO 8601 format. + /// - withdrawnAt: The date and time of when the advisory was withdrawn, in ISO 8601 format. /// - submission: /// - vulnerabilities: /// - cvss: - /// - cvss_severities: + /// - cvssSeverities: /// - cwes: - /// - cwe_ids: A list of only the CWE IDs. + /// - cweIds: A list of only the CWE IDs. /// - credits: - /// - credits_detailed: - /// - collaborating_users: A list of users that collaborate on the advisory. - /// - collaborating_teams: A list of teams that collaborate on the advisory. - /// - private_fork: A temporary private fork of the advisory's repository for collaborating on a fix. + /// - creditsDetailed: + /// - collaboratingUsers: A list of users that collaborate on the advisory. + /// - collaboratingTeams: A list of teams that collaborate on the advisory. + /// - privateFork: A temporary private fork of the advisory's repository for collaborating on a fix. public init( - ghsa_id: Swift.String, - cve_id: Swift.String? = nil, + ghsaId: Swift.String, + cveId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, + htmlUrl: Swift.String, summary: Swift.String, description: Swift.String? = nil, - severity: Components.Schemas.repository_hyphen_advisory.severityPayload? = nil, - author: Components.Schemas.repository_hyphen_advisory.authorPayload? = nil, - publisher: Components.Schemas.repository_hyphen_advisory.publisherPayload? = nil, - identifiers: Components.Schemas.repository_hyphen_advisory.identifiersPayload, - state: Components.Schemas.repository_hyphen_advisory.statePayload, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil, - published_at: Foundation.Date? = nil, - closed_at: Foundation.Date? = nil, - withdrawn_at: Foundation.Date? = nil, - submission: Components.Schemas.repository_hyphen_advisory.submissionPayload? = nil, - vulnerabilities: [Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability]? = nil, - cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload? = nil, - cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, - cwes: Components.Schemas.repository_hyphen_advisory.cwesPayload? = nil, - cwe_ids: [Swift.String]? = nil, - credits: Components.Schemas.repository_hyphen_advisory.creditsPayload? = nil, - credits_detailed: [Components.Schemas.repository_hyphen_advisory_hyphen_credit]? = nil, - collaborating_users: [Components.Schemas.simple_hyphen_user]? = nil, - collaborating_teams: [Components.Schemas.team]? = nil, - private_fork: Components.Schemas.repository_hyphen_advisory.private_forkPayload? = nil + severity: Components.Schemas.RepositoryAdvisory.SeverityPayload? = nil, + author: Components.Schemas.RepositoryAdvisory.AuthorPayload? = nil, + publisher: Components.Schemas.RepositoryAdvisory.PublisherPayload? = nil, + identifiers: Components.Schemas.RepositoryAdvisory.IdentifiersPayload, + state: Components.Schemas.RepositoryAdvisory.StatePayload, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil, + publishedAt: Foundation.Date? = nil, + closedAt: Foundation.Date? = nil, + withdrawnAt: Foundation.Date? = nil, + submission: Components.Schemas.RepositoryAdvisory.SubmissionPayload? = nil, + vulnerabilities: [Components.Schemas.RepositoryAdvisoryVulnerability]? = nil, + cvss: Components.Schemas.RepositoryAdvisory.CvssPayload? = nil, + cvssSeverities: Components.Schemas.CvssSeverities? = nil, + cwes: Components.Schemas.RepositoryAdvisory.CwesPayload? = nil, + cweIds: [Swift.String]? = nil, + credits: Components.Schemas.RepositoryAdvisory.CreditsPayload? = nil, + creditsDetailed: [Components.Schemas.RepositoryAdvisoryCredit]? = nil, + collaboratingUsers: [Components.Schemas.SimpleUser]? = nil, + collaboratingTeams: [Components.Schemas.Team]? = nil, + privateFork: Components.Schemas.RepositoryAdvisory.PrivateForkPayload? = nil ) { - self.ghsa_id = ghsa_id - self.cve_id = cve_id + self.ghsaId = ghsaId + self.cveId = cveId self.url = url - self.html_url = html_url + self.htmlUrl = htmlUrl self.summary = summary self.description = description self.severity = severity @@ -5213,28 +5222,28 @@ public enum Components { self.publisher = publisher self.identifiers = identifiers self.state = state - self.created_at = created_at - self.updated_at = updated_at - self.published_at = published_at - self.closed_at = closed_at - self.withdrawn_at = withdrawn_at + self.createdAt = createdAt + self.updatedAt = updatedAt + self.publishedAt = publishedAt + self.closedAt = closedAt + self.withdrawnAt = withdrawnAt self.submission = submission self.vulnerabilities = vulnerabilities self.cvss = cvss - self.cvss_severities = cvss_severities + self.cvssSeverities = cvssSeverities self.cwes = cwes - self.cwe_ids = cwe_ids + self.cweIds = cweIds self.credits = credits - self.credits_detailed = credits_detailed - self.collaborating_users = collaborating_users - self.collaborating_teams = collaborating_teams - self.private_fork = private_fork + self.creditsDetailed = creditsDetailed + self.collaboratingUsers = collaboratingUsers + self.collaboratingTeams = collaboratingTeams + self.privateFork = privateFork } public enum CodingKeys: String, CodingKey { - case ghsa_id - case cve_id + case ghsaId = "ghsa_id" + case cveId = "cve_id" case url - case html_url + case htmlUrl = "html_url" case summary case description case severity @@ -5242,132 +5251,132 @@ public enum Components { case publisher case identifiers case state - case created_at - case updated_at - case published_at - case closed_at - case withdrawn_at + case createdAt = "created_at" + case updatedAt = "updated_at" + case publishedAt = "published_at" + case closedAt = "closed_at" + case withdrawnAt = "withdrawn_at" case submission case vulnerabilities case cvss - case cvss_severities + case cvssSeverities = "cvss_severities" case cwes - case cwe_ids + case cweIds = "cwe_ids" case credits - case credits_detailed - case collaborating_users - case collaborating_teams - case private_fork + case creditsDetailed = "credits_detailed" + case collaboratingUsers = "collaborating_users" + case collaboratingTeams = "collaborating_teams" + case privateFork = "private_fork" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - ghsa_id = try container.decode( + self.ghsaId = try container.decode( Swift.String.self, - forKey: .ghsa_id + forKey: .ghsaId ) - cve_id = try container.decodeIfPresent( + self.cveId = try container.decodeIfPresent( Swift.String.self, - forKey: .cve_id + forKey: .cveId ) - url = try container.decode( + self.url = try container.decode( Swift.String.self, forKey: .url ) - html_url = try container.decode( + self.htmlUrl = try container.decode( Swift.String.self, - forKey: .html_url + forKey: .htmlUrl ) - summary = try container.decode( + self.summary = try container.decode( Swift.String.self, forKey: .summary ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - severity = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.severityPayload.self, + self.severity = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.SeverityPayload.self, forKey: .severity ) - author = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.authorPayload.self, + self.author = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.AuthorPayload.self, forKey: .author ) - publisher = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.publisherPayload.self, + self.publisher = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.PublisherPayload.self, forKey: .publisher ) - identifiers = try container.decode( - Components.Schemas.repository_hyphen_advisory.identifiersPayload.self, + self.identifiers = try container.decode( + Components.Schemas.RepositoryAdvisory.IdentifiersPayload.self, forKey: .identifiers ) - state = try container.decode( - Components.Schemas.repository_hyphen_advisory.statePayload.self, + self.state = try container.decode( + Components.Schemas.RepositoryAdvisory.StatePayload.self, forKey: .state ) - created_at = try container.decodeIfPresent( + self.createdAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .created_at + forKey: .createdAt ) - updated_at = try container.decodeIfPresent( + self.updatedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .updated_at + forKey: .updatedAt ) - published_at = try container.decodeIfPresent( + self.publishedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .published_at + forKey: .publishedAt ) - closed_at = try container.decodeIfPresent( + self.closedAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .closed_at + forKey: .closedAt ) - withdrawn_at = try container.decodeIfPresent( + self.withdrawnAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .withdrawn_at + forKey: .withdrawnAt ) - submission = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.submissionPayload.self, + self.submission = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.SubmissionPayload.self, forKey: .submission ) - vulnerabilities = try container.decodeIfPresent( - [Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability].self, + self.vulnerabilities = try container.decodeIfPresent( + [Components.Schemas.RepositoryAdvisoryVulnerability].self, forKey: .vulnerabilities ) - cvss = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.cvssPayload.self, + self.cvss = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.CvssPayload.self, forKey: .cvss ) - cvss_severities = try container.decodeIfPresent( - Components.Schemas.cvss_hyphen_severities.self, - forKey: .cvss_severities + self.cvssSeverities = try container.decodeIfPresent( + Components.Schemas.CvssSeverities.self, + forKey: .cvssSeverities ) - cwes = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.cwesPayload.self, + self.cwes = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.CwesPayload.self, forKey: .cwes ) - cwe_ids = try container.decodeIfPresent( + self.cweIds = try container.decodeIfPresent( [Swift.String].self, - forKey: .cwe_ids + forKey: .cweIds ) - credits = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.creditsPayload.self, + self.credits = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.CreditsPayload.self, forKey: .credits ) - credits_detailed = try container.decodeIfPresent( - [Components.Schemas.repository_hyphen_advisory_hyphen_credit].self, - forKey: .credits_detailed + self.creditsDetailed = try container.decodeIfPresent( + [Components.Schemas.RepositoryAdvisoryCredit].self, + forKey: .creditsDetailed ) - collaborating_users = try container.decodeIfPresent( - [Components.Schemas.simple_hyphen_user].self, - forKey: .collaborating_users + self.collaboratingUsers = try container.decodeIfPresent( + [Components.Schemas.SimpleUser].self, + forKey: .collaboratingUsers ) - collaborating_teams = try container.decodeIfPresent( - [Components.Schemas.team].self, - forKey: .collaborating_teams + self.collaboratingTeams = try container.decodeIfPresent( + [Components.Schemas.Team].self, + forKey: .collaboratingTeams ) - private_fork = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory.private_forkPayload.self, - forKey: .private_fork + self.privateFork = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisory.PrivateForkPayload.self, + forKey: .privateFork ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "ghsa_id", @@ -5401,7 +5410,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-advisory-create`. - public struct repository_hyphen_advisory_hyphen_create: Codable, Hashable, Sendable { + public struct RepositoryAdvisoryCreate: Codable, Hashable, Sendable { /// A short summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/summary`. @@ -5413,26 +5422,26 @@ public enum Components { /// The Common Vulnerabilities and Exposures (CVE) ID. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/cve_id`. - public var cve_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload`. - public struct vulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { + public var cveId: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload`. + public struct VulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/package`. - public struct packagePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/package/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/package`. + public struct PackagePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/package/ecosystem`. + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems /// The unique package name within its ecosystem. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/package/name`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/package/name`. public var name: Swift.String? - /// Creates a new `packagePayload`. + /// Creates a new `PackagePayload`. /// /// - Parameters: /// - ecosystem: /// - name: The unique package name within its ecosystem. public init( - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems, name: Swift.String? = nil ) { self.ecosystem = ecosystem @@ -5445,61 +5454,61 @@ public enum Components { } /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/package`. - public var package: Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/package`. + public var package: Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayloadPayload.PackagePayload /// The range of the package versions affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/vulnerable_version_range`. + public var vulnerableVersionRange: Swift.String? /// The package version(s) that resolve the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/patched_versions`. - public var patched_versions: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/patched_versions`. + public var patchedVersions: Swift.String? /// The functions in the package that are affected. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilitiesPayload/vulnerable_functions`. - public var vulnerable_functions: [Swift.String]? - /// Creates a new `vulnerabilitiesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/VulnerabilitiesPayload/vulnerable_functions`. + public var vulnerableFunctions: [Swift.String]? + /// Creates a new `VulnerabilitiesPayloadPayload`. /// /// - Parameters: /// - package: The name of the package affected by the vulnerability. - /// - vulnerable_version_range: The range of the package versions affected by the vulnerability. - /// - patched_versions: The package version(s) that resolve the vulnerability. - /// - vulnerable_functions: The functions in the package that are affected. + /// - vulnerableVersionRange: The range of the package versions affected by the vulnerability. + /// - patchedVersions: The package version(s) that resolve the vulnerability. + /// - vulnerableFunctions: The functions in the package that are affected. public init( - package: Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload, - vulnerable_version_range: Swift.String? = nil, - patched_versions: Swift.String? = nil, - vulnerable_functions: [Swift.String]? = nil + package: Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayloadPayload.PackagePayload, + vulnerableVersionRange: Swift.String? = nil, + patchedVersions: Swift.String? = nil, + vulnerableFunctions: [Swift.String]? = nil ) { self.package = package - self.vulnerable_version_range = vulnerable_version_range - self.patched_versions = patched_versions - self.vulnerable_functions = vulnerable_functions + self.vulnerableVersionRange = vulnerableVersionRange + self.patchedVersions = patchedVersions + self.vulnerableFunctions = vulnerableFunctions } public enum CodingKeys: String, CodingKey { case package - case vulnerable_version_range - case patched_versions - case vulnerable_functions + case vulnerableVersionRange = "vulnerable_version_range" + case patchedVersions = "patched_versions" + case vulnerableFunctions = "vulnerable_functions" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package = try container.decode( - Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload.self, + self.package = try container.decode( + Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayloadPayload.PackagePayload.self, forKey: .package ) - vulnerable_version_range = try container.decodeIfPresent( + self.vulnerableVersionRange = try container.decodeIfPresent( Swift.String.self, - forKey: .vulnerable_version_range + forKey: .vulnerableVersionRange ) - patched_versions = try container.decodeIfPresent( + self.patchedVersions = try container.decodeIfPresent( Swift.String.self, - forKey: .patched_versions + forKey: .patchedVersions ) - vulnerable_functions = try container.decodeIfPresent( + self.vulnerableFunctions = try container.decodeIfPresent( [Swift.String].self, - forKey: .vulnerable_functions + forKey: .vulnerableFunctions ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "package", @@ -5512,31 +5521,31 @@ public enum Components { /// A product affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilities`. - public typealias vulnerabilitiesPayload = [Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayloadPayload] + public typealias VulnerabilitiesPayload = [Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayloadPayload] /// A product affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/vulnerabilities`. - public var vulnerabilities: Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayload + public var vulnerabilities: Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayload /// A list of Common Weakness Enumeration (CWE) IDs. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/cwe_ids`. - public var cwe_ids: [Swift.String]? - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/creditsPayload`. - public struct creditsPayloadPayload: Codable, Hashable, Sendable { + public var cweIds: [Swift.String]? + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/CreditsPayload`. + public struct CreditsPayloadPayload: Codable, Hashable, Sendable { /// The username of the user credited. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/creditsPayload/login`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/CreditsPayload/login`. public var login: Swift.String - /// - Remark: Generated from `#/components/schemas/repository-advisory-create/creditsPayload/type`. - public var _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types - /// Creates a new `creditsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-create/CreditsPayload/type`. + public var _type: Components.Schemas.SecurityAdvisoryCreditTypes + /// Creates a new `CreditsPayloadPayload`. /// /// - Parameters: /// - login: The username of the user credited. /// - _type: public init( login: Swift.String, - _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types + _type: Components.Schemas.SecurityAdvisoryCreditTypes ) { self.login = login self._type = _type @@ -5547,12 +5556,12 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - login = try container.decode( + self.login = try container.decode( Swift.String.self, forKey: .login ) - _type = try container.decode( - Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types.self, + self._type = try container.decode( + Components.Schemas.SecurityAdvisoryCreditTypes.self, forKey: ._type ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -5564,15 +5573,15 @@ public enum Components { /// A list of users receiving credit for their participation in the security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/credits`. - public typealias creditsPayload = [Components.Schemas.repository_hyphen_advisory_hyphen_create.creditsPayloadPayload] + public typealias CreditsPayload = [Components.Schemas.RepositoryAdvisoryCreate.CreditsPayloadPayload] /// A list of users receiving credit for their participation in the security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/credits`. - public var credits: Components.Schemas.repository_hyphen_advisory_hyphen_create.creditsPayload? + public var credits: Components.Schemas.RepositoryAdvisoryCreate.CreditsPayload? /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -5581,96 +5590,96 @@ public enum Components { /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/severity`. - public var severity: Components.Schemas.repository_hyphen_advisory_hyphen_create.severityPayload? + public var severity: Components.Schemas.RepositoryAdvisoryCreate.SeverityPayload? /// The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/cvss_vector_string`. - public var cvss_vector_string: Swift.String? + public var cvssVectorString: Swift.String? /// Whether to create a temporary private fork of the repository to collaborate on a fix. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-create/start_private_fork`. - public var start_private_fork: Swift.Bool? - /// Creates a new `repository_hyphen_advisory_hyphen_create`. + public var startPrivateFork: Swift.Bool? + /// Creates a new `RepositoryAdvisoryCreate`. /// /// - Parameters: /// - summary: A short summary of the advisory. /// - description: A detailed description of what the advisory impacts. - /// - cve_id: The Common Vulnerabilities and Exposures (CVE) ID. + /// - cveId: The Common Vulnerabilities and Exposures (CVE) ID. /// - vulnerabilities: A product affected by the vulnerability detailed in a repository security advisory. - /// - cwe_ids: A list of Common Weakness Enumeration (CWE) IDs. + /// - cweIds: A list of Common Weakness Enumeration (CWE) IDs. /// - credits: A list of users receiving credit for their participation in the security advisory. /// - severity: The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - /// - cvss_vector_string: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. - /// - start_private_fork: Whether to create a temporary private fork of the repository to collaborate on a fix. + /// - cvssVectorString: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. + /// - startPrivateFork: Whether to create a temporary private fork of the repository to collaborate on a fix. public init( summary: Swift.String, description: Swift.String, - cve_id: Swift.String? = nil, - vulnerabilities: Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayload, - cwe_ids: [Swift.String]? = nil, - credits: Components.Schemas.repository_hyphen_advisory_hyphen_create.creditsPayload? = nil, - severity: Components.Schemas.repository_hyphen_advisory_hyphen_create.severityPayload? = nil, - cvss_vector_string: Swift.String? = nil, - start_private_fork: Swift.Bool? = nil + cveId: Swift.String? = nil, + vulnerabilities: Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayload, + cweIds: [Swift.String]? = nil, + credits: Components.Schemas.RepositoryAdvisoryCreate.CreditsPayload? = nil, + severity: Components.Schemas.RepositoryAdvisoryCreate.SeverityPayload? = nil, + cvssVectorString: Swift.String? = nil, + startPrivateFork: Swift.Bool? = nil ) { self.summary = summary self.description = description - self.cve_id = cve_id + self.cveId = cveId self.vulnerabilities = vulnerabilities - self.cwe_ids = cwe_ids + self.cweIds = cweIds self.credits = credits self.severity = severity - self.cvss_vector_string = cvss_vector_string - self.start_private_fork = start_private_fork + self.cvssVectorString = cvssVectorString + self.startPrivateFork = startPrivateFork } public enum CodingKeys: String, CodingKey { case summary case description - case cve_id + case cveId = "cve_id" case vulnerabilities - case cwe_ids + case cweIds = "cwe_ids" case credits case severity - case cvss_vector_string - case start_private_fork + case cvssVectorString = "cvss_vector_string" + case startPrivateFork = "start_private_fork" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - summary = try container.decode( + self.summary = try container.decode( Swift.String.self, forKey: .summary ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - cve_id = try container.decodeIfPresent( + self.cveId = try container.decodeIfPresent( Swift.String.self, - forKey: .cve_id + forKey: .cveId ) - vulnerabilities = try container.decode( - Components.Schemas.repository_hyphen_advisory_hyphen_create.vulnerabilitiesPayload.self, + self.vulnerabilities = try container.decode( + Components.Schemas.RepositoryAdvisoryCreate.VulnerabilitiesPayload.self, forKey: .vulnerabilities ) - cwe_ids = try container.decodeIfPresent( + self.cweIds = try container.decodeIfPresent( [Swift.String].self, - forKey: .cwe_ids + forKey: .cweIds ) - credits = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_create.creditsPayload.self, + self.credits = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryCreate.CreditsPayload.self, forKey: .credits ) - severity = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_create.severityPayload.self, + self.severity = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryCreate.SeverityPayload.self, forKey: .severity ) - cvss_vector_string = try container.decodeIfPresent( + self.cvssVectorString = try container.decodeIfPresent( Swift.String.self, - forKey: .cvss_vector_string + forKey: .cvssVectorString ) - start_private_fork = try container.decodeIfPresent( + self.startPrivateFork = try container.decodeIfPresent( Swift.Bool.self, - forKey: .start_private_fork + forKey: .startPrivateFork ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "summary", @@ -5686,7 +5695,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create`. - public struct private_hyphen_vulnerability_hyphen_report_hyphen_create: Codable, Hashable, Sendable { + public struct PrivateVulnerabilityReportCreate: Codable, Hashable, Sendable { /// A short summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/summary`. @@ -5695,25 +5704,25 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/description`. public var description: Swift.String - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload`. - public struct vulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload`. + public struct VulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/package`. - public struct packagePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/package/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/package`. + public struct PackagePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/package/ecosystem`. + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems /// The unique package name within its ecosystem. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/package/name`. + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/package/name`. public var name: Swift.String? - /// Creates a new `packagePayload`. + /// Creates a new `PackagePayload`. /// /// - Parameters: /// - ecosystem: /// - name: The unique package name within its ecosystem. public init( - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems, name: Swift.String? = nil ) { self.ecosystem = ecosystem @@ -5726,61 +5735,61 @@ public enum Components { } /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/package`. - public var package: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/package`. + public var package: Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayloadPayload.PackagePayload /// The range of the package versions affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String? + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/vulnerable_version_range`. + public var vulnerableVersionRange: Swift.String? /// The package version(s) that resolve the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/patched_versions`. - public var patched_versions: Swift.String? + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/patched_versions`. + public var patchedVersions: Swift.String? /// The functions in the package that are affected. /// - /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilitiesPayload/vulnerable_functions`. - public var vulnerable_functions: [Swift.String]? - /// Creates a new `vulnerabilitiesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/VulnerabilitiesPayload/vulnerable_functions`. + public var vulnerableFunctions: [Swift.String]? + /// Creates a new `VulnerabilitiesPayloadPayload`. /// /// - Parameters: /// - package: The name of the package affected by the vulnerability. - /// - vulnerable_version_range: The range of the package versions affected by the vulnerability. - /// - patched_versions: The package version(s) that resolve the vulnerability. - /// - vulnerable_functions: The functions in the package that are affected. + /// - vulnerableVersionRange: The range of the package versions affected by the vulnerability. + /// - patchedVersions: The package version(s) that resolve the vulnerability. + /// - vulnerableFunctions: The functions in the package that are affected. public init( - package: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload, - vulnerable_version_range: Swift.String? = nil, - patched_versions: Swift.String? = nil, - vulnerable_functions: [Swift.String]? = nil + package: Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayloadPayload.PackagePayload, + vulnerableVersionRange: Swift.String? = nil, + patchedVersions: Swift.String? = nil, + vulnerableFunctions: [Swift.String]? = nil ) { self.package = package - self.vulnerable_version_range = vulnerable_version_range - self.patched_versions = patched_versions - self.vulnerable_functions = vulnerable_functions + self.vulnerableVersionRange = vulnerableVersionRange + self.patchedVersions = patchedVersions + self.vulnerableFunctions = vulnerableFunctions } public enum CodingKeys: String, CodingKey { case package - case vulnerable_version_range - case patched_versions - case vulnerable_functions + case vulnerableVersionRange = "vulnerable_version_range" + case patchedVersions = "patched_versions" + case vulnerableFunctions = "vulnerable_functions" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package = try container.decode( - Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayloadPayload.packagePayload.self, + self.package = try container.decode( + Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayloadPayload.PackagePayload.self, forKey: .package ) - vulnerable_version_range = try container.decodeIfPresent( + self.vulnerableVersionRange = try container.decodeIfPresent( Swift.String.self, - forKey: .vulnerable_version_range + forKey: .vulnerableVersionRange ) - patched_versions = try container.decodeIfPresent( + self.patchedVersions = try container.decodeIfPresent( Swift.String.self, - forKey: .patched_versions + forKey: .patchedVersions ) - vulnerable_functions = try container.decodeIfPresent( + self.vulnerableFunctions = try container.decodeIfPresent( [Swift.String].self, - forKey: .vulnerable_functions + forKey: .vulnerableFunctions ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "package", @@ -5793,19 +5802,19 @@ public enum Components { /// An array of products affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilities`. - public typealias vulnerabilitiesPayload = [Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayloadPayload] + public typealias VulnerabilitiesPayload = [Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayloadPayload] /// An array of products affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/vulnerabilities`. - public var vulnerabilities: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayload? + public var vulnerabilities: Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayload? /// A list of Common Weakness Enumeration (CWE) IDs. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/cwe_ids`. - public var cwe_ids: [Swift.String]? + public var cweIds: [Swift.String]? /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -5814,80 +5823,80 @@ public enum Components { /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/severity`. - public var severity: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.severityPayload? + public var severity: Components.Schemas.PrivateVulnerabilityReportCreate.SeverityPayload? /// The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/cvss_vector_string`. - public var cvss_vector_string: Swift.String? + public var cvssVectorString: Swift.String? /// Whether to create a temporary private fork of the repository to collaborate on a fix. /// /// - Remark: Generated from `#/components/schemas/private-vulnerability-report-create/start_private_fork`. - public var start_private_fork: Swift.Bool? - /// Creates a new `private_hyphen_vulnerability_hyphen_report_hyphen_create`. + public var startPrivateFork: Swift.Bool? + /// Creates a new `PrivateVulnerabilityReportCreate`. /// /// - Parameters: /// - summary: A short summary of the advisory. /// - description: A detailed description of what the advisory impacts. /// - vulnerabilities: An array of products affected by the vulnerability detailed in a repository security advisory. - /// - cwe_ids: A list of Common Weakness Enumeration (CWE) IDs. + /// - cweIds: A list of Common Weakness Enumeration (CWE) IDs. /// - severity: The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - /// - cvss_vector_string: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. - /// - start_private_fork: Whether to create a temporary private fork of the repository to collaborate on a fix. + /// - cvssVectorString: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. + /// - startPrivateFork: Whether to create a temporary private fork of the repository to collaborate on a fix. public init( summary: Swift.String, description: Swift.String, - vulnerabilities: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayload? = nil, - cwe_ids: [Swift.String]? = nil, - severity: Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.severityPayload? = nil, - cvss_vector_string: Swift.String? = nil, - start_private_fork: Swift.Bool? = nil + vulnerabilities: Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayload? = nil, + cweIds: [Swift.String]? = nil, + severity: Components.Schemas.PrivateVulnerabilityReportCreate.SeverityPayload? = nil, + cvssVectorString: Swift.String? = nil, + startPrivateFork: Swift.Bool? = nil ) { self.summary = summary self.description = description self.vulnerabilities = vulnerabilities - self.cwe_ids = cwe_ids + self.cweIds = cweIds self.severity = severity - self.cvss_vector_string = cvss_vector_string - self.start_private_fork = start_private_fork + self.cvssVectorString = cvssVectorString + self.startPrivateFork = startPrivateFork } public enum CodingKeys: String, CodingKey { case summary case description case vulnerabilities - case cwe_ids + case cweIds = "cwe_ids" case severity - case cvss_vector_string - case start_private_fork + case cvssVectorString = "cvss_vector_string" + case startPrivateFork = "start_private_fork" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - summary = try container.decode( + self.summary = try container.decode( Swift.String.self, forKey: .summary ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - vulnerabilities = try container.decodeIfPresent( - Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.vulnerabilitiesPayload.self, + self.vulnerabilities = try container.decodeIfPresent( + Components.Schemas.PrivateVulnerabilityReportCreate.VulnerabilitiesPayload.self, forKey: .vulnerabilities ) - cwe_ids = try container.decodeIfPresent( + self.cweIds = try container.decodeIfPresent( [Swift.String].self, - forKey: .cwe_ids + forKey: .cweIds ) - severity = try container.decodeIfPresent( - Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create.severityPayload.self, + self.severity = try container.decodeIfPresent( + Components.Schemas.PrivateVulnerabilityReportCreate.SeverityPayload.self, forKey: .severity ) - cvss_vector_string = try container.decodeIfPresent( + self.cvssVectorString = try container.decodeIfPresent( Swift.String.self, - forKey: .cvss_vector_string + forKey: .cvssVectorString ) - start_private_fork = try container.decodeIfPresent( + self.startPrivateFork = try container.decodeIfPresent( Swift.Bool.self, - forKey: .start_private_fork + forKey: .startPrivateFork ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "summary", @@ -5901,7 +5910,7 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/repository-advisory-update`. - public struct repository_hyphen_advisory_hyphen_update: Codable, Hashable, Sendable { + public struct RepositoryAdvisoryUpdate: Codable, Hashable, Sendable { /// A short summary of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/summary`. @@ -5913,26 +5922,26 @@ public enum Components { /// The Common Vulnerabilities and Exposures (CVE) ID. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/cve_id`. - public var cve_id: Swift.String? - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload`. - public struct vulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { + public var cveId: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload`. + public struct VulnerabilitiesPayloadPayload: Codable, Hashable, Sendable { /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/package`. - public struct packagePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/package/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/package`. + public struct PackagePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/package/ecosystem`. + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems /// The unique package name within its ecosystem. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/package/name`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/package/name`. public var name: Swift.String? - /// Creates a new `packagePayload`. + /// Creates a new `PackagePayload`. /// /// - Parameters: /// - ecosystem: /// - name: The unique package name within its ecosystem. public init( - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems, name: Swift.String? = nil ) { self.ecosystem = ecosystem @@ -5945,61 +5954,61 @@ public enum Components { } /// The name of the package affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/package`. - public var package: Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayloadPayload.packagePayload + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/package`. + public var package: Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayloadPayload.PackagePayload /// The range of the package versions affected by the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/vulnerable_version_range`. - public var vulnerable_version_range: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/vulnerable_version_range`. + public var vulnerableVersionRange: Swift.String? /// The package version(s) that resolve the vulnerability. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/patched_versions`. - public var patched_versions: Swift.String? + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/patched_versions`. + public var patchedVersions: Swift.String? /// The functions in the package that are affected. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilitiesPayload/vulnerable_functions`. - public var vulnerable_functions: [Swift.String]? - /// Creates a new `vulnerabilitiesPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/VulnerabilitiesPayload/vulnerable_functions`. + public var vulnerableFunctions: [Swift.String]? + /// Creates a new `VulnerabilitiesPayloadPayload`. /// /// - Parameters: /// - package: The name of the package affected by the vulnerability. - /// - vulnerable_version_range: The range of the package versions affected by the vulnerability. - /// - patched_versions: The package version(s) that resolve the vulnerability. - /// - vulnerable_functions: The functions in the package that are affected. + /// - vulnerableVersionRange: The range of the package versions affected by the vulnerability. + /// - patchedVersions: The package version(s) that resolve the vulnerability. + /// - vulnerableFunctions: The functions in the package that are affected. public init( - package: Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayloadPayload.packagePayload, - vulnerable_version_range: Swift.String? = nil, - patched_versions: Swift.String? = nil, - vulnerable_functions: [Swift.String]? = nil + package: Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayloadPayload.PackagePayload, + vulnerableVersionRange: Swift.String? = nil, + patchedVersions: Swift.String? = nil, + vulnerableFunctions: [Swift.String]? = nil ) { self.package = package - self.vulnerable_version_range = vulnerable_version_range - self.patched_versions = patched_versions - self.vulnerable_functions = vulnerable_functions + self.vulnerableVersionRange = vulnerableVersionRange + self.patchedVersions = patchedVersions + self.vulnerableFunctions = vulnerableFunctions } public enum CodingKeys: String, CodingKey { case package - case vulnerable_version_range - case patched_versions - case vulnerable_functions + case vulnerableVersionRange = "vulnerable_version_range" + case patchedVersions = "patched_versions" + case vulnerableFunctions = "vulnerable_functions" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - package = try container.decode( - Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayloadPayload.packagePayload.self, + self.package = try container.decode( + Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayloadPayload.PackagePayload.self, forKey: .package ) - vulnerable_version_range = try container.decodeIfPresent( + self.vulnerableVersionRange = try container.decodeIfPresent( Swift.String.self, - forKey: .vulnerable_version_range + forKey: .vulnerableVersionRange ) - patched_versions = try container.decodeIfPresent( + self.patchedVersions = try container.decodeIfPresent( Swift.String.self, - forKey: .patched_versions + forKey: .patchedVersions ) - vulnerable_functions = try container.decodeIfPresent( + self.vulnerableFunctions = try container.decodeIfPresent( [Swift.String].self, - forKey: .vulnerable_functions + forKey: .vulnerableFunctions ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "package", @@ -6012,31 +6021,31 @@ public enum Components { /// A product affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilities`. - public typealias vulnerabilitiesPayload = [Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayloadPayload] + public typealias VulnerabilitiesPayload = [Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayloadPayload] /// A product affected by the vulnerability detailed in a repository security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/vulnerabilities`. - public var vulnerabilities: Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayload? + public var vulnerabilities: Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayload? /// A list of Common Weakness Enumeration (CWE) IDs. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/cwe_ids`. - public var cwe_ids: [Swift.String]? - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/creditsPayload`. - public struct creditsPayloadPayload: Codable, Hashable, Sendable { + public var cweIds: [Swift.String]? + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/CreditsPayload`. + public struct CreditsPayloadPayload: Codable, Hashable, Sendable { /// The username of the user credited. /// - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/creditsPayload/login`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/CreditsPayload/login`. public var login: Swift.String - /// - Remark: Generated from `#/components/schemas/repository-advisory-update/creditsPayload/type`. - public var _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types - /// Creates a new `creditsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/repository-advisory-update/CreditsPayload/type`. + public var _type: Components.Schemas.SecurityAdvisoryCreditTypes + /// Creates a new `CreditsPayloadPayload`. /// /// - Parameters: /// - login: The username of the user credited. /// - _type: public init( login: Swift.String, - _type: Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types + _type: Components.Schemas.SecurityAdvisoryCreditTypes ) { self.login = login self._type = _type @@ -6047,12 +6056,12 @@ public enum Components { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - login = try container.decode( + self.login = try container.decode( Swift.String.self, forKey: .login ) - _type = try container.decode( - Components.Schemas.security_hyphen_advisory_hyphen_credit_hyphen_types.self, + self._type = try container.decode( + Components.Schemas.SecurityAdvisoryCreditTypes.self, forKey: ._type ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -6064,15 +6073,15 @@ public enum Components { /// A list of users receiving credit for their participation in the security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/credits`. - public typealias creditsPayload = [Components.Schemas.repository_hyphen_advisory_hyphen_update.creditsPayloadPayload] + public typealias CreditsPayload = [Components.Schemas.RepositoryAdvisoryUpdate.CreditsPayloadPayload] /// A list of users receiving credit for their participation in the security advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/credits`. - public var credits: Components.Schemas.repository_hyphen_advisory_hyphen_update.creditsPayload? + public var credits: Components.Schemas.RepositoryAdvisoryUpdate.CreditsPayload? /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case critical = "critical" case high = "high" case medium = "medium" @@ -6081,15 +6090,15 @@ public enum Components { /// The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/severity`. - public var severity: Components.Schemas.repository_hyphen_advisory_hyphen_update.severityPayload? + public var severity: Components.Schemas.RepositoryAdvisoryUpdate.SeverityPayload? /// The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/cvss_vector_string`. - public var cvss_vector_string: Swift.String? + public var cvssVectorString: Swift.String? /// The state of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case published = "published" case closed = "closed" case draft = "draft" @@ -6097,112 +6106,112 @@ public enum Components { /// The state of the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/state`. - public var state: Components.Schemas.repository_hyphen_advisory_hyphen_update.statePayload? + public var state: Components.Schemas.RepositoryAdvisoryUpdate.StatePayload? /// A list of usernames who have been granted write access to the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/collaborating_users`. - public var collaborating_users: [Swift.String]? + public var collaboratingUsers: [Swift.String]? /// A list of team slugs which have been granted write access to the advisory. /// /// - Remark: Generated from `#/components/schemas/repository-advisory-update/collaborating_teams`. - public var collaborating_teams: [Swift.String]? - /// Creates a new `repository_hyphen_advisory_hyphen_update`. + public var collaboratingTeams: [Swift.String]? + /// Creates a new `RepositoryAdvisoryUpdate`. /// /// - Parameters: /// - summary: A short summary of the advisory. /// - description: A detailed description of what the advisory impacts. - /// - cve_id: The Common Vulnerabilities and Exposures (CVE) ID. + /// - cveId: The Common Vulnerabilities and Exposures (CVE) ID. /// - vulnerabilities: A product affected by the vulnerability detailed in a repository security advisory. - /// - cwe_ids: A list of Common Weakness Enumeration (CWE) IDs. + /// - cweIds: A list of Common Weakness Enumeration (CWE) IDs. /// - credits: A list of users receiving credit for their participation in the security advisory. /// - severity: The severity of the advisory. You must choose between setting this field or `cvss_vector_string`. - /// - cvss_vector_string: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. + /// - cvssVectorString: The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`. /// - state: The state of the advisory. - /// - collaborating_users: A list of usernames who have been granted write access to the advisory. - /// - collaborating_teams: A list of team slugs which have been granted write access to the advisory. + /// - collaboratingUsers: A list of usernames who have been granted write access to the advisory. + /// - collaboratingTeams: A list of team slugs which have been granted write access to the advisory. public init( summary: Swift.String? = nil, description: Swift.String? = nil, - cve_id: Swift.String? = nil, - vulnerabilities: Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayload? = nil, - cwe_ids: [Swift.String]? = nil, - credits: Components.Schemas.repository_hyphen_advisory_hyphen_update.creditsPayload? = nil, - severity: Components.Schemas.repository_hyphen_advisory_hyphen_update.severityPayload? = nil, - cvss_vector_string: Swift.String? = nil, - state: Components.Schemas.repository_hyphen_advisory_hyphen_update.statePayload? = nil, - collaborating_users: [Swift.String]? = nil, - collaborating_teams: [Swift.String]? = nil + cveId: Swift.String? = nil, + vulnerabilities: Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayload? = nil, + cweIds: [Swift.String]? = nil, + credits: Components.Schemas.RepositoryAdvisoryUpdate.CreditsPayload? = nil, + severity: Components.Schemas.RepositoryAdvisoryUpdate.SeverityPayload? = nil, + cvssVectorString: Swift.String? = nil, + state: Components.Schemas.RepositoryAdvisoryUpdate.StatePayload? = nil, + collaboratingUsers: [Swift.String]? = nil, + collaboratingTeams: [Swift.String]? = nil ) { self.summary = summary self.description = description - self.cve_id = cve_id + self.cveId = cveId self.vulnerabilities = vulnerabilities - self.cwe_ids = cwe_ids + self.cweIds = cweIds self.credits = credits self.severity = severity - self.cvss_vector_string = cvss_vector_string + self.cvssVectorString = cvssVectorString self.state = state - self.collaborating_users = collaborating_users - self.collaborating_teams = collaborating_teams + self.collaboratingUsers = collaboratingUsers + self.collaboratingTeams = collaboratingTeams } public enum CodingKeys: String, CodingKey { case summary case description - case cve_id + case cveId = "cve_id" case vulnerabilities - case cwe_ids + case cweIds = "cwe_ids" case credits case severity - case cvss_vector_string + case cvssVectorString = "cvss_vector_string" case state - case collaborating_users - case collaborating_teams + case collaboratingUsers = "collaborating_users" + case collaboratingTeams = "collaborating_teams" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - summary = try container.decodeIfPresent( + self.summary = try container.decodeIfPresent( Swift.String.self, forKey: .summary ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - cve_id = try container.decodeIfPresent( + self.cveId = try container.decodeIfPresent( Swift.String.self, - forKey: .cve_id + forKey: .cveId ) - vulnerabilities = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_update.vulnerabilitiesPayload.self, + self.vulnerabilities = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryUpdate.VulnerabilitiesPayload.self, forKey: .vulnerabilities ) - cwe_ids = try container.decodeIfPresent( + self.cweIds = try container.decodeIfPresent( [Swift.String].self, - forKey: .cwe_ids + forKey: .cweIds ) - credits = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_update.creditsPayload.self, + self.credits = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryUpdate.CreditsPayload.self, forKey: .credits ) - severity = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_update.severityPayload.self, + self.severity = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryUpdate.SeverityPayload.self, forKey: .severity ) - cvss_vector_string = try container.decodeIfPresent( + self.cvssVectorString = try container.decodeIfPresent( Swift.String.self, - forKey: .cvss_vector_string + forKey: .cvssVectorString ) - state = try container.decodeIfPresent( - Components.Schemas.repository_hyphen_advisory_hyphen_update.statePayload.self, + self.state = try container.decodeIfPresent( + Components.Schemas.RepositoryAdvisoryUpdate.StatePayload.self, forKey: .state ) - collaborating_users = try container.decodeIfPresent( + self.collaboratingUsers = try container.decodeIfPresent( [Swift.String].self, - forKey: .collaborating_users + forKey: .collaboratingUsers ) - collaborating_teams = try container.decodeIfPresent( + self.collaboratingTeams = try container.decodeIfPresent( [Swift.String].self, - forKey: .collaborating_teams + forKey: .collaboratingTeams ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "summary", @@ -6225,49 +6234,49 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/components/parameters/ghsa_id`. - public typealias ghsa_id = Swift.String + public typealias GhsaId = Swift.String /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed_simple: Sendable, Hashable { + public struct ValidationFailedSimple: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed_simple/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error_hyphen_simple) + case json(Components.Schemas.ValidationErrorSimple) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error_hyphen_simple { + public var json: Components.Schemas.ValidationErrorSimple { get throws { switch self { case let .json(body): @@ -6277,25 +6286,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed_simple.Body - /// Creates a new `validation_failed_simple`. + public var body: Components.Responses.ValidationFailedSimple.Body + /// Creates a new `ValidationFailedSimple`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed_simple.Body) { + public init(body: Components.Responses.ValidationFailedSimple.Body) { self.body = body } } - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6305,25 +6314,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6337,15 +6346,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -6357,25 +6366,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -6385,16 +6394,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -6413,25 +6422,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6441,12 +6450,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } @@ -6465,7 +6474,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /advisories`. /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)`. - public enum security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories { + public enum SecurityAdvisoriesListGlobalAdvisories { public static let id: Swift.String = "security-advisories/list-global-advisories" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/advisories/GET/query`. @@ -6473,9 +6482,9 @@ public enum Operations { /// If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned. /// /// - Remark: Generated from `#/paths/advisories/GET/query/ghsa_id`. - public var ghsa_id: Swift.String? + public var ghsaId: Swift.String? /// - Remark: Generated from `#/paths/advisories/GET/query/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case reviewed = "reviewed" case malware = "malware" case unreviewed = "unreviewed" @@ -6483,17 +6492,17 @@ public enum Operations { /// If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware. /// /// - Remark: Generated from `#/paths/advisories/GET/query/type`. - public var _type: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query._typePayload? + public var _type: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query._TypePayload? /// If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned. /// /// - Remark: Generated from `#/paths/advisories/GET/query/cve_id`. - public var cve_id: Swift.String? + public var cveId: Swift.String? /// If specified, only advisories for these ecosystems will be returned. /// /// - Remark: Generated from `#/paths/advisories/GET/query/ecosystem`. - public var ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems? + public var ecosystem: Components.Schemas.SecurityAdvisoryEcosystems? /// - Remark: Generated from `#/paths/advisories/GET/query/severity`. - @frozen public enum severityPayload: String, Codable, Hashable, Sendable { + @frozen public enum SeverityPayload: String, Codable, Hashable, Sendable, CaseIterable { case unknown = "unknown" case low = "low" case medium = "medium" @@ -6503,9 +6512,9 @@ public enum Operations { /// If specified, only advisories with these severities will be returned. /// /// - Remark: Generated from `#/paths/advisories/GET/query/severity`. - public var severity: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.severityPayload? + public var severity: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.SeverityPayload? /// - Remark: Generated from `#/paths/advisories/GET/query/cwes`. - @frozen public enum cwesPayload: Codable, Hashable, Sendable { + @frozen public enum CwesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/advisories/GET/query/cwes/case1`. case case1(Swift.String) /// - Remark: Generated from `#/paths/advisories/GET/query/cwes/case2`. @@ -6544,13 +6553,13 @@ public enum Operations { /// Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` /// /// - Remark: Generated from `#/paths/advisories/GET/query/cwes`. - public var cwes: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.cwesPayload? + public var cwes: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.CwesPayload? /// Whether to only return advisories that have been withdrawn. /// /// - Remark: Generated from `#/paths/advisories/GET/query/is_withdrawn`. - public var is_withdrawn: Swift.Bool? + public var isWithdrawn: Swift.Bool? /// - Remark: Generated from `#/paths/advisories/GET/query/affects`. - @frozen public enum affectsPayload: Codable, Hashable, Sendable { + @frozen public enum AffectsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/advisories/GET/query/affects/case1`. case case1(Swift.String) /// - Remark: Generated from `#/paths/advisories/GET/query/affects/case2`. @@ -6590,7 +6599,7 @@ public enum Operations { /// Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` /// /// - Remark: Generated from `#/paths/advisories/GET/query/affects`. - public var affects: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.affectsPayload? + public var affects: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.AffectsPayload? /// If specified, only return advisories that were published on a date or date range. /// /// For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -6613,126 +6622,126 @@ public enum Operations { /// The EPSS percentage represents the likelihood of a CVE being exploited. /// /// - Remark: Generated from `#/paths/advisories/GET/query/epss_percentage`. - public var epss_percentage: Swift.String? + public var epssPercentage: Swift.String? /// If specified, only return advisories that have an EPSS percentile score that matches the provided value. /// The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. /// /// - Remark: Generated from `#/paths/advisories/GET/query/epss_percentile`. - public var epss_percentile: Swift.String? + public var epssPercentile: Swift.String? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/advisories/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/advisories/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/advisories/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// 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)." /// /// - Remark: Generated from `#/paths/advisories/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// - Remark: Generated from `#/paths/advisories/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case updated = "updated" case published = "published" - case epss_percentage = "epss_percentage" - case epss_percentile = "epss_percentile" + case epssPercentage = "epss_percentage" + case epssPercentile = "epss_percentile" } /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/advisories/GET/query/sort`. - public var sort: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.sortPayload? + public var sort: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.SortPayload? /// Creates a new `Query`. /// /// - Parameters: - /// - ghsa_id: If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned. + /// - ghsaId: If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned. /// - _type: If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware. - /// - cve_id: If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned. + /// - cveId: If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned. /// - ecosystem: If specified, only advisories for these ecosystems will be returned. /// - severity: If specified, only advisories with these severities will be returned. /// - cwes: If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. - /// - is_withdrawn: Whether to only return advisories that have been withdrawn. + /// - isWithdrawn: Whether to only return advisories that have been withdrawn. /// - affects: If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. /// - published: If specified, only return advisories that were published on a date or date range. /// - updated: If specified, only return advisories that were updated on a date or date range. /// - modified: If specified, only show advisories that were updated or published on a date or date range. - /// - epss_percentage: If specified, only return advisories that have an EPSS percentage score that matches the provided value. - /// - epss_percentile: If specified, only return advisories that have an EPSS percentile score that matches the provided value. + /// - epssPercentage: If specified, only return advisories that have an EPSS percentage score that matches the provided value. + /// - epssPercentile: If specified, only return advisories that have an EPSS percentile score that matches the provided value. /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - direction: The direction to sort the results by. - /// - 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)." + /// - perPage: 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)." /// - sort: The property to sort the results by. public init( - ghsa_id: Swift.String? = nil, - _type: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query._typePayload? = nil, - cve_id: Swift.String? = nil, - ecosystem: Components.Schemas.security_hyphen_advisory_hyphen_ecosystems? = nil, - severity: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.severityPayload? = nil, - cwes: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.cwesPayload? = nil, - is_withdrawn: Swift.Bool? = nil, - affects: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.affectsPayload? = nil, + ghsaId: Swift.String? = nil, + _type: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query._TypePayload? = nil, + cveId: Swift.String? = nil, + ecosystem: Components.Schemas.SecurityAdvisoryEcosystems? = nil, + severity: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.SeverityPayload? = nil, + cwes: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.CwesPayload? = nil, + isWithdrawn: Swift.Bool? = nil, + affects: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.AffectsPayload? = nil, published: Swift.String? = nil, updated: Swift.String? = nil, modified: Swift.String? = nil, - epss_percentage: Swift.String? = nil, - epss_percentile: Swift.String? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - direction: Components.Parameters.direction? = nil, - per_page: Swift.Int? = nil, - sort: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query.sortPayload? = nil + epssPercentage: Swift.String? = nil, + epssPercentile: Swift.String? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + direction: Components.Parameters.Direction? = nil, + perPage: Swift.Int? = nil, + sort: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query.SortPayload? = nil ) { - self.ghsa_id = ghsa_id + self.ghsaId = ghsaId self._type = _type - self.cve_id = cve_id + self.cveId = cveId self.ecosystem = ecosystem self.severity = severity self.cwes = cwes - self.is_withdrawn = is_withdrawn + self.isWithdrawn = isWithdrawn self.affects = affects self.published = published self.updated = updated self.modified = modified - self.epss_percentage = epss_percentage - self.epss_percentile = epss_percentile + self.epssPercentage = epssPercentage + self.epssPercentile = epssPercentile self.before = before self.after = after self.direction = direction - self.per_page = per_page + self.perPage = perPage self.sort = sort } } - public var query: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query + public var query: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query /// - Remark: Generated from `#/paths/advisories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Headers + public var headers: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Input.Headers = .init() + query: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListGlobalAdvisories.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -6743,12 +6752,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/advisories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/advisories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.global_hyphen_advisory]) + case json([Components.Schemas.GlobalAdvisory]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.global_hyphen_advisory] { + public var json: [Components.Schemas.GlobalAdvisory] { get throws { switch self { case let .json(body): @@ -6758,12 +6767,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.Ok.Body) { self.body = body } } @@ -6772,12 +6781,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.Ok) + case ok(Operations.SecurityAdvisoriesListGlobalAdvisories.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.Ok { + public var ok: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.Ok { get throws { switch self { case let .ok(response): @@ -6794,12 +6803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/advisories/GET/responses/429/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/advisories/GET/responses/429/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -6809,12 +6818,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.TooManyRequests.Body + public var body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.TooManyRequests.Body /// Creates a new `TooManyRequests`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.TooManyRequests.Body) { + public init(body: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.TooManyRequests.Body) { self.body = body } } @@ -6823,12 +6832,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)/responses/429`. /// /// HTTP response code: `429 tooManyRequests`. - case tooManyRequests(Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.TooManyRequests) + case tooManyRequests(Operations.SecurityAdvisoriesListGlobalAdvisories.Output.TooManyRequests) /// The associated value of the enum case if `self` is `.tooManyRequests`. /// /// - Throws: An error if `self` is not `.tooManyRequests`. /// - SeeAlso: `.tooManyRequests`. - public var tooManyRequests: Operations.security_hyphen_advisories_sol_list_hyphen_global_hyphen_advisories.Output.TooManyRequests { + public var tooManyRequests: Operations.SecurityAdvisoriesListGlobalAdvisories.Output.TooManyRequests { get throws { switch self { case let .tooManyRequests(response): @@ -6846,12 +6855,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//advisories/get(security-advisories/list-global-advisories)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed_simple) + case unprocessableContent(Components.Responses.ValidationFailedSimple) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed_simple { + public var unprocessableContent: Components.Responses.ValidationFailedSimple { get throws { switch self { case let .unprocessableContent(response): @@ -6901,7 +6910,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)`. - public enum security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory { + public enum SecurityAdvisoriesGetGlobalAdvisory { public static let id: Swift.String = "security-advisories/get-global-advisory" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/advisories/{ghsa_id}/GET/path`. @@ -6909,36 +6918,36 @@ public enum Operations { /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/paths/advisories/{ghsa_id}/GET/path/ghsa_id`. - public var ghsa_id: Components.Parameters.ghsa_id + public var ghsaId: Components.Parameters.GhsaId /// Creates a new `Path`. /// /// - Parameters: - /// - ghsa_id: The GHSA (GitHub Security Advisory) identifier of the advisory. - public init(ghsa_id: Components.Parameters.ghsa_id) { - self.ghsa_id = ghsa_id + /// - ghsaId: The GHSA (GitHub Security Advisory) identifier of the advisory. + public init(ghsaId: Components.Parameters.GhsaId) { + self.ghsaId = ghsaId } } - public var path: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Path + public var path: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Path /// - Remark: Generated from `#/paths/advisories/{ghsa_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Headers + public var headers: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Input.Headers = .init() + path: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesGetGlobalAdvisory.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6949,12 +6958,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/advisories/{ghsa_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/advisories/{ghsa_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.global_hyphen_advisory) + case json(Components.Schemas.GlobalAdvisory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.global_hyphen_advisory { + public var json: Components.Schemas.GlobalAdvisory { get throws { switch self { case let .json(body): @@ -6964,12 +6973,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesGetGlobalAdvisory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesGetGlobalAdvisory.Output.Ok.Body) { self.body = body } } @@ -6978,12 +6987,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output.Ok) + case ok(Operations.SecurityAdvisoriesGetGlobalAdvisory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_get_hyphen_global_hyphen_advisory.Output.Ok { + public var ok: Operations.SecurityAdvisoriesGetGlobalAdvisory.Output.Ok { get throws { switch self { case let .ok(response): @@ -7001,12 +7010,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//advisories/{ghsa_id}/get(security-advisories/get-global-advisory)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7060,7 +7069,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/security-advisories`. /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`. - public enum security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories { + public enum SecurityAdvisoriesListOrgRepositoryAdvisories { public static let id: Swift.String = "security-advisories/list-org-repository-advisories" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/path`. @@ -7068,29 +7077,29 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Path + public var path: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case published = "published" @@ -7098,21 +7107,21 @@ public enum Operations { /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/sort`. - public var sort: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query.sortPayload? + public var sort: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query.SortPayload? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// The number of advisories to return per page. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case triage = "triage" case draft = "draft" case published = "published" @@ -7121,7 +7130,7 @@ public enum Operations { /// Filter by the state of the repository advisories. Only advisories of this state will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/query/state`. - public var state: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query.statePayload? + public var state: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query.StatePayload? /// Creates a new `Query`. /// /// - Parameters: @@ -7129,37 +7138,37 @@ public enum Operations { /// - sort: The property to sort the results by. /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - per_page: The number of advisories to return per page. 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)." + /// - perPage: The number of advisories to return per page. 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)." /// - state: Filter by the state of the repository advisories. Only advisories of this state will be returned. public init( - direction: Components.Parameters.direction? = nil, - sort: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query.sortPayload? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - per_page: Swift.Int? = nil, - state: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query.statePayload? = nil + direction: Components.Parameters.Direction? = nil, + sort: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query.SortPayload? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + perPage: Swift.Int? = nil, + state: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query.StatePayload? = nil ) { self.direction = direction self.sort = sort self.before = before self.after = after - self.per_page = per_page + self.perPage = perPage self.state = state } } - public var query: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query + public var query: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Headers + public var headers: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7167,9 +7176,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Path, - query: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Input.Headers = .init() + path: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Path, + query: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Input.Headers = .init() ) { self.path = path self.query = query @@ -7181,12 +7190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/security-advisories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_advisory]) + case json([Components.Schemas.RepositoryAdvisory]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_advisory] { + public var json: [Components.Schemas.RepositoryAdvisory] { get throws { switch self { case let .json(body): @@ -7196,12 +7205,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output.Ok.Body) { self.body = body } } @@ -7210,12 +7219,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output.Ok) + case ok(Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_list_hyphen_org_hyphen_repository_hyphen_advisories.Output.Ok { + public var ok: Operations.SecurityAdvisoriesListOrgRepositoryAdvisories.Output.Ok { get throws { switch self { case let .ok(response): @@ -7233,12 +7242,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7256,12 +7265,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7281,14 +7290,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -7299,14 +7308,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -7321,7 +7330,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)`. - public enum security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories { + public enum SecurityAdvisoriesListRepositoryAdvisories { public static let id: Swift.String = "security-advisories/list-repository-advisories" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/path`. @@ -7329,38 +7338,38 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Path + public var path: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" case published = "published" @@ -7368,21 +7377,21 @@ public enum Operations { /// The property to sort the results by. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/sort`. - public var sort: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query.sortPayload? + public var sort: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query.SortPayload? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// The number of advisories to return per page. 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)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/state`. - @frozen public enum statePayload: String, Codable, Hashable, Sendable { + @frozen public enum StatePayload: String, Codable, Hashable, Sendable, CaseIterable { case triage = "triage" case draft = "draft" case published = "published" @@ -7391,7 +7400,7 @@ public enum Operations { /// Filter by state of the repository advisories. Only advisories of this state will be returned. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/query/state`. - public var state: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query.statePayload? + public var state: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query.StatePayload? /// Creates a new `Query`. /// /// - Parameters: @@ -7399,37 +7408,37 @@ public enum Operations { /// - sort: The property to sort the results by. /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." - /// - per_page: The number of advisories to return per page. 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)." + /// - perPage: The number of advisories to return per page. 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)." /// - state: Filter by state of the repository advisories. Only advisories of this state will be returned. public init( - direction: Components.Parameters.direction? = nil, - sort: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query.sortPayload? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, - per_page: Swift.Int? = nil, - state: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query.statePayload? = nil + direction: Components.Parameters.Direction? = nil, + sort: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query.SortPayload? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, + perPage: Swift.Int? = nil, + state: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query.StatePayload? = nil ) { self.direction = direction self.sort = sort self.before = before self.after = after - self.per_page = per_page + self.perPage = perPage self.state = state } } - public var query: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query + public var query: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Headers + public var headers: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7437,9 +7446,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Path, - query: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Query = .init(), - headers: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Input.Headers = .init() + path: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Path, + query: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Query = .init(), + headers: Operations.SecurityAdvisoriesListRepositoryAdvisories.Input.Headers = .init() ) { self.path = path self.query = query @@ -7451,12 +7460,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.repository_hyphen_advisory]) + case json([Components.Schemas.RepositoryAdvisory]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.repository_hyphen_advisory] { + public var json: [Components.Schemas.RepositoryAdvisory] { get throws { switch self { case let .json(body): @@ -7466,12 +7475,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesListRepositoryAdvisories.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesListRepositoryAdvisories.Output.Ok.Body) { self.body = body } } @@ -7480,12 +7489,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output.Ok) + case ok(Operations.SecurityAdvisoriesListRepositoryAdvisories.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_list_hyphen_repository_hyphen_advisories.Output.Ok { + public var ok: Operations.SecurityAdvisoriesListRepositoryAdvisories.Output.Ok { get throws { switch self { case let .ok(response): @@ -7503,12 +7512,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7526,12 +7535,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7551,14 +7560,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -7569,14 +7578,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -7591,7 +7600,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`. - public enum security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory { + public enum SecurityAdvisoriesCreateRepositoryAdvisory { public static let id: Swift.String = "security-advisories/create-repository-advisory" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/path`. @@ -7599,43 +7608,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Path + public var path: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Headers + public var headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/requestBody/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory_hyphen_create) + case json(Components.Schemas.RepositoryAdvisoryCreate) } - public var body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Body + public var body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7643,9 +7652,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Input.Body + path: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Input.Body ) { self.path = path self.headers = headers @@ -7657,12 +7666,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/POST/responses/201/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory) + case json(Components.Schemas.RepositoryAdvisory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_advisory { + public var json: Components.Schemas.RepositoryAdvisory { get throws { switch self { case let .json(body): @@ -7672,12 +7681,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output.Created.Body + public var body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output.Created.Body) { + public init(body: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output.Created.Body) { self.body = body } } @@ -7686,12 +7695,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output.Created) + case created(Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory.Output.Created { + public var created: Operations.SecurityAdvisoriesCreateRepositoryAdvisory.Output.Created { get throws { switch self { case let .created(response): @@ -7709,12 +7718,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7732,12 +7741,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7755,12 +7764,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -7811,7 +7820,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/reports`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)`. - public enum security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report { + public enum SecurityAdvisoriesCreatePrivateVulnerabilityReport { public static let id: Swift.String = "security-advisories/create-private-vulnerability-report" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/path`. @@ -7819,43 +7828,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Path + public var path: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Headers + public var headers: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/requestBody/content/application\/json`. - case json(Components.Schemas.private_hyphen_vulnerability_hyphen_report_hyphen_create) + case json(Components.Schemas.PrivateVulnerabilityReportCreate) } - public var body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Body + public var body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7863,9 +7872,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Input.Body + path: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Path, + headers: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Input.Body ) { self.path = path self.headers = headers @@ -7877,12 +7886,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/reports/POST/responses/201/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory) + case json(Components.Schemas.RepositoryAdvisory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_advisory { + public var json: Components.Schemas.RepositoryAdvisory { get throws { switch self { case let .json(body): @@ -7892,12 +7901,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output.Created.Body + public var body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output.Created.Body) { + public init(body: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output.Created.Body) { self.body = body } } @@ -7906,12 +7915,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output.Created) + case created(Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.security_hyphen_advisories_sol_create_hyphen_private_hyphen_vulnerability_hyphen_report.Output.Created { + public var created: Operations.SecurityAdvisoriesCreatePrivateVulnerabilityReport.Output.Created { get throws { switch self { case let .created(response): @@ -7929,12 +7938,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7952,12 +7961,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7975,12 +7984,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/reports/post(security-advisories/create-private-vulnerability-report)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8037,7 +8046,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)`. - public enum security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory { + public enum SecurityAdvisoriesGetRepositoryAdvisory { public static let id: Swift.String = "security-advisories/get-repository-advisory" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/path`. @@ -8045,52 +8054,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/path/ghsa_id`. - public var ghsa_id: Components.Parameters.ghsa_id + public var ghsaId: Components.Parameters.GhsaId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ghsa_id: The GHSA (GitHub Security Advisory) identifier of the advisory. + /// - ghsaId: The GHSA (GitHub Security Advisory) identifier of the advisory. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ghsa_id: Components.Parameters.ghsa_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ghsaId: Components.Parameters.GhsaId ) { self.owner = owner self.repo = repo - self.ghsa_id = ghsa_id + self.ghsaId = ghsaId } } - public var path: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Path + public var path: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Headers + public var headers: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input.Headers = .init() + path: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8101,12 +8110,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory) + case json(Components.Schemas.RepositoryAdvisory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_advisory { + public var json: Components.Schemas.RepositoryAdvisory { get throws { switch self { case let .json(body): @@ -8116,12 +8125,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output.Ok.Body) { self.body = body } } @@ -8130,12 +8139,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output.Ok) + case ok(Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output.Ok { + public var ok: Operations.SecurityAdvisoriesGetRepositoryAdvisory.Output.Ok { get throws { switch self { case let .ok(response): @@ -8153,12 +8162,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8176,12 +8185,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8236,7 +8245,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)`. - public enum security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory { + public enum SecurityAdvisoriesUpdateRepositoryAdvisory { public static let id: Swift.String = "security-advisories/update-repository-advisory" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/path`. @@ -8244,50 +8253,50 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/path/ghsa_id`. - public var ghsa_id: Components.Parameters.ghsa_id + public var ghsaId: Components.Parameters.GhsaId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ghsa_id: The GHSA (GitHub Security Advisory) identifier of the advisory. + /// - ghsaId: The GHSA (GitHub Security Advisory) identifier of the advisory. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ghsa_id: Components.Parameters.ghsa_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ghsaId: Components.Parameters.GhsaId ) { self.owner = owner self.repo = repo - self.ghsa_id = ghsa_id + self.ghsaId = ghsaId } } - public var path: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Path + public var path: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Headers + public var headers: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/requestBody/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory_hyphen_update) + case json(Components.Schemas.RepositoryAdvisoryUpdate) } - public var body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Body + public var body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -8295,9 +8304,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Path, - headers: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Headers = .init(), - body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input.Body + path: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Path, + headers: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Headers = .init(), + body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Input.Body ) { self.path = path self.headers = headers @@ -8309,12 +8318,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.repository_hyphen_advisory) + case json(Components.Schemas.RepositoryAdvisory) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.repository_hyphen_advisory { + public var json: Components.Schemas.RepositoryAdvisory { get throws { switch self { case let .json(body): @@ -8324,12 +8333,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.Ok.Body + public var body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.Ok.Body) { + public init(body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.Ok.Body) { self.body = body } } @@ -8338,12 +8347,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.Ok) + case ok(Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.Ok { + public var ok: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.Ok { get throws { switch self { case let .ok(response): @@ -8361,12 +8370,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8384,12 +8393,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8406,12 +8415,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/PATCH/responses/422/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -8421,12 +8430,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.UnprocessableContent.Body + public var body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.UnprocessableContent.Body) { + public init(body: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.UnprocessableContent.Body) { self.body = body } } @@ -8435,12 +8444,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.UnprocessableContent) + case unprocessableContent(Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output.UnprocessableContent { + public var unprocessableContent: Operations.SecurityAdvisoriesUpdateRepositoryAdvisory.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -8496,7 +8505,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)`. - public enum security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request { + public enum SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest { public static let id: Swift.String = "security-advisories/create-repository-advisory-cve-request" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/POST/path`. @@ -8504,52 +8513,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/POST/path/ghsa_id`. - public var ghsa_id: Components.Parameters.ghsa_id + public var ghsaId: Components.Parameters.GhsaId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ghsa_id: The GHSA (GitHub Security Advisory) identifier of the advisory. + /// - ghsaId: The GHSA (GitHub Security Advisory) identifier of the advisory. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ghsa_id: Components.Parameters.ghsa_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ghsaId: Components.Parameters.GhsaId ) { self.owner = owner self.repo = repo - self.ghsa_id = ghsa_id + self.ghsaId = ghsaId } } - public var path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Path + public var path: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Headers + public var headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_repository_hyphen_advisory_hyphen_cve_hyphen_request.Input.Headers = .init() + path: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Path, + headers: Operations.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8561,12 +8570,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -8584,12 +8593,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -8607,12 +8616,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8630,12 +8639,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8653,12 +8662,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8678,14 +8687,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -8696,14 +8705,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -8717,7 +8726,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)`. - public enum security_hyphen_advisories_sol_create_hyphen_fork { + public enum SecurityAdvisoriesCreateFork { public static let id: Swift.String = "security-advisories/create-fork" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/path`. @@ -8725,52 +8734,52 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// The GHSA (GitHub Security Advisory) identifier of the advisory. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/path/ghsa_id`. - public var ghsa_id: Components.Parameters.ghsa_id + public var ghsaId: Components.Parameters.GhsaId /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. - /// - ghsa_id: The GHSA (GitHub Security Advisory) identifier of the advisory. + /// - ghsaId: The GHSA (GitHub Security Advisory) identifier of the advisory. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo, - ghsa_id: Components.Parameters.ghsa_id + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo, + ghsaId: Components.Parameters.GhsaId ) { self.owner = owner self.repo = repo - self.ghsa_id = ghsa_id + self.ghsaId = ghsaId } } - public var path: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Path + public var path: Operations.SecurityAdvisoriesCreateFork.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Headers + public var headers: Operations.SecurityAdvisoriesCreateFork.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Path, - headers: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Input.Headers = .init() + path: Operations.SecurityAdvisoriesCreateFork.Input.Path, + headers: Operations.SecurityAdvisoriesCreateFork.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8781,12 +8790,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/responses/202/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/POST/responses/202/content/application\/json`. - case json(Components.Schemas.full_hyphen_repository) + case json(Components.Schemas.FullRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.full_hyphen_repository { + public var json: Components.Schemas.FullRepository { get throws { switch self { case let .json(body): @@ -8796,12 +8805,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output.Accepted.Body + public var body: Operations.SecurityAdvisoriesCreateFork.Output.Accepted.Body /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output.Accepted.Body) { + public init(body: Operations.SecurityAdvisoriesCreateFork.Output.Accepted.Body) { self.body = body } } @@ -8810,12 +8819,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output.Accepted) + case accepted(Operations.SecurityAdvisoriesCreateFork.Output.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Operations.security_hyphen_advisories_sol_create_hyphen_fork.Output.Accepted { + public var accepted: Operations.SecurityAdvisoriesCreateFork.Output.Accepted { get throws { switch self { case let .accepted(response): @@ -8833,12 +8842,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -8856,12 +8865,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -8879,12 +8888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8902,12 +8911,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks/post(security-advisories/create-fork)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8927,14 +8936,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -8945,14 +8954,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } From 97e9ec64cf98a0e9f001ba282449e21e403aa8e1 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:07:05 -0700 Subject: [PATCH 37/46] Commit via running ake Sources/interactions --- Sources/interactions/Client.swift | 68 ++-- Sources/interactions/Types.swift | 585 ++++++++++++++++-------------- 2 files changed, 355 insertions(+), 298 deletions(-) diff --git a/Sources/interactions/Client.swift b/Sources/interactions/Client.swift index 6f3ef2e77f..c174bba5b6 100644 --- a/Sources/interactions/Client.swift +++ b/Sources/interactions/Client.swift @@ -44,10 +44,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output { + public func interactionsGetRestrictionsForOrg(_ input: Operations.InteractionsGetRestrictionsForOrg.Input) async throws -> Operations.InteractionsGetRestrictionsForOrg.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.id, + forOperation: Operations.InteractionsGetRestrictionsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/interaction-limits", @@ -70,7 +70,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -80,7 +80,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -108,10 +108,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output { + public func interactionsSetRestrictionsForOrg(_ input: Operations.InteractionsSetRestrictionsForOrg.Input) async throws -> Operations.InteractionsSetRestrictionsForOrg.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.id, + forOperation: Operations.InteractionsSetRestrictionsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/interaction-limits", @@ -143,7 +143,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.InteractionsSetRestrictionsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -153,7 +153,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.interaction_hyphen_limit_hyphen_response.self, + Components.Schemas.InteractionLimitResponse.self, from: responseBody, transforming: { value in .json(value) @@ -165,7 +165,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -175,7 +175,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -203,10 +203,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output { + public func interactionsRemoveRestrictionsForOrg(_ input: Operations.InteractionsRemoveRestrictionsForOrg.Input) async throws -> Operations.InteractionsRemoveRestrictionsForOrg.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.id, + forOperation: Operations.InteractionsRemoveRestrictionsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/interaction-limits", @@ -243,10 +243,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output { + public func interactionsGetRestrictionsForRepo(_ input: Operations.InteractionsGetRestrictionsForRepo.Input) async throws -> Operations.InteractionsGetRestrictionsForRepo.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.id, + forOperation: Operations.InteractionsGetRestrictionsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/interaction-limits", @@ -270,7 +270,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -280,7 +280,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.self, + Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -308,10 +308,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output { + public func interactionsSetRestrictionsForRepo(_ input: Operations.InteractionsSetRestrictionsForRepo.Input) async throws -> Operations.InteractionsSetRestrictionsForRepo.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.id, + forOperation: Operations.InteractionsSetRestrictionsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/interaction-limits", @@ -344,7 +344,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body + let body: Operations.InteractionsSetRestrictionsForRepo.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -354,7 +354,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.interaction_hyphen_limit_hyphen_response.self, + Components.Schemas.InteractionLimitResponse.self, from: responseBody, transforming: { value in .json(value) @@ -384,10 +384,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output { + public func interactionsRemoveRestrictionsForRepo(_ input: Operations.InteractionsRemoveRestrictionsForRepo.Input) async throws -> Operations.InteractionsRemoveRestrictionsForRepo.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.id, + forOperation: Operations.InteractionsRemoveRestrictionsForRepo.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/interaction-limits", @@ -427,10 +427,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func interactionsGetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.InteractionsGetRestrictionsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/interaction-limits", @@ -451,7 +451,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -461,7 +461,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.self, + Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -491,10 +491,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func interactionsSetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.InteractionsSetRestrictionsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/interaction-limits", @@ -524,7 +524,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + let body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -534,7 +534,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.interaction_hyphen_limit_hyphen_response.self, + Components.Schemas.InteractionLimitResponse.self, from: responseBody, transforming: { value in .json(value) @@ -546,7 +546,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -556,7 +556,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -584,10 +584,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { + public func interactionsRemoveRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output { try await client.send( input: input, - forOperation: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.id, + forOperation: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.id, serializer: { input in let path = try converter.renderedPath( template: "/user/interaction-limits", diff --git a/Sources/interactions/Types.swift b/Sources/interactions/Types.swift index a89a2328d6..43900c98f7 100644 --- a/Sources/interactions/Types.swift +++ b/Sources/interactions/Types.swift @@ -17,63 +17,63 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)`. - func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output + func interactionsGetRestrictionsForOrg(_ input: Operations.InteractionsGetRestrictionsForOrg.Input) async throws -> Operations.InteractionsGetRestrictionsForOrg.Output /// Set interaction restrictions for an organization /// /// Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. /// /// - Remark: HTTP `PUT /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)`. - func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output + func interactionsSetRestrictionsForOrg(_ input: Operations.InteractionsSetRestrictionsForOrg.Input) async throws -> Operations.InteractionsSetRestrictionsForOrg.Output /// Remove interaction restrictions for an organization /// /// Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. /// /// - Remark: HTTP `DELETE /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)`. - func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output + func interactionsRemoveRestrictionsForOrg(_ input: Operations.InteractionsRemoveRestrictionsForOrg.Input) async throws -> Operations.InteractionsRemoveRestrictionsForOrg.Output /// Get interaction restrictions for a repository /// /// Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)`. - func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output + func interactionsGetRestrictionsForRepo(_ input: Operations.InteractionsGetRestrictionsForRepo.Input) async throws -> Operations.InteractionsGetRestrictionsForRepo.Output /// Set interaction restrictions for a repository /// /// Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)`. - func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output + func interactionsSetRestrictionsForRepo(_ input: Operations.InteractionsSetRestrictionsForRepo.Input) async throws -> Operations.InteractionsSetRestrictionsForRepo.Output /// Remove interaction restrictions for a repository /// /// Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)`. - func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output + func interactionsRemoveRestrictionsForRepo(_ input: Operations.InteractionsRemoveRestrictionsForRepo.Input) async throws -> Operations.InteractionsRemoveRestrictionsForRepo.Output /// Get interaction restrictions for your public repositories /// /// Shows which type of GitHub user can interact with your public repositories and when the restriction expires. /// /// - Remark: HTTP `GET /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)`. - func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output + func interactionsGetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output /// Set interaction restrictions for your public repositories /// /// Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. /// /// - Remark: HTTP `PUT /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)`. - func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output + func interactionsSetRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output /// Remove interaction restrictions from your public repositories /// /// Removes any interaction restrictions from your public repositories. /// /// - Remark: HTTP `DELETE /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)`. - func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output + func interactionsRemoveRestrictionsForAuthenticatedUser(_ input: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Input) async throws -> Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output } /// Convenience overloads for operation inputs. @@ -84,11 +84,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org( - path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path, - headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output { - try await interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input( + public func interactionsGetRestrictionsForOrg( + path: Operations.InteractionsGetRestrictionsForOrg.Input.Path, + headers: Operations.InteractionsGetRestrictionsForOrg.Input.Headers = .init() + ) async throws -> Operations.InteractionsGetRestrictionsForOrg.Output { + try await interactionsGetRestrictionsForOrg(Operations.InteractionsGetRestrictionsForOrg.Input( path: path, headers: headers )) @@ -99,12 +99,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org( - path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path, - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output { - try await interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input( + public func interactionsSetRestrictionsForOrg( + path: Operations.InteractionsSetRestrictionsForOrg.Input.Path, + headers: Operations.InteractionsSetRestrictionsForOrg.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForOrg.Input.Body + ) async throws -> Operations.InteractionsSetRestrictionsForOrg.Output { + try await interactionsSetRestrictionsForOrg(Operations.InteractionsSetRestrictionsForOrg.Input( path: path, headers: headers, body: body @@ -116,8 +116,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org(path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output { - try await interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input(path: path)) + public func interactionsRemoveRestrictionsForOrg(path: Operations.InteractionsRemoveRestrictionsForOrg.Input.Path) async throws -> Operations.InteractionsRemoveRestrictionsForOrg.Output { + try await interactionsRemoveRestrictionsForOrg(Operations.InteractionsRemoveRestrictionsForOrg.Input(path: path)) } /// Get interaction restrictions for a repository /// @@ -125,11 +125,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo( - path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers = .init() - ) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output { - try await interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input( + public func interactionsGetRestrictionsForRepo( + path: Operations.InteractionsGetRestrictionsForRepo.Input.Path, + headers: Operations.InteractionsGetRestrictionsForRepo.Input.Headers = .init() + ) async throws -> Operations.InteractionsGetRestrictionsForRepo.Output { + try await interactionsGetRestrictionsForRepo(Operations.InteractionsGetRestrictionsForRepo.Input( path: path, headers: headers )) @@ -140,12 +140,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo( - path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Body - ) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output { - try await interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input( + public func interactionsSetRestrictionsForRepo( + path: Operations.InteractionsSetRestrictionsForRepo.Input.Path, + headers: Operations.InteractionsSetRestrictionsForRepo.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForRepo.Input.Body + ) async throws -> Operations.InteractionsSetRestrictionsForRepo.Output { + try await interactionsSetRestrictionsForRepo(Operations.InteractionsSetRestrictionsForRepo.Input( path: path, headers: headers, body: body @@ -157,8 +157,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo(path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path) async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output { - try await interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input(path: path)) + public func interactionsRemoveRestrictionsForRepo(path: Operations.InteractionsRemoveRestrictionsForRepo.Input.Path) async throws -> Operations.InteractionsRemoveRestrictionsForRepo.Output { + try await interactionsRemoveRestrictionsForRepo(Operations.InteractionsRemoveRestrictionsForRepo.Input(path: path)) } /// Get interaction restrictions for your public repositories /// @@ -166,8 +166,8 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)`. - public func interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) async throws -> Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input(headers: headers)) + public func interactionsGetRestrictionsForAuthenticatedUser(headers: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input.Headers = .init()) async throws -> Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output { + try await interactionsGetRestrictionsForAuthenticatedUser(Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input(headers: headers)) } /// Set interaction restrictions for your public repositories /// @@ -175,11 +175,11 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)`. - public func interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user( - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body - ) async throws -> Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input( + public func interactionsSetRestrictionsForAuthenticatedUser( + headers: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Body + ) async throws -> Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output { + try await interactionsSetRestrictionsForAuthenticatedUser(Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input( headers: headers, body: body )) @@ -190,13 +190,22 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)`. - public func interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user() async throws -> Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output { - try await interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input()) + public func interactionsRemoveRestrictionsForAuthenticatedUser() async throws -> Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output { + try await interactionsRemoveRestrictionsForAuthenticatedUser(Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Input()) } } /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -212,30 +221,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -274,9 +283,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -291,7 +300,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -310,95 +319,95 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. /// /// - Remark: Generated from `#/components/schemas/interaction-group`. - @frozen public enum interaction_hyphen_group: String, Codable, Hashable, Sendable { - case existing_users = "existing_users" - case contributors_only = "contributors_only" - case collaborators_only = "collaborators_only" + @frozen public enum InteractionGroup: String, Codable, Hashable, Sendable, CaseIterable { + case existingUsers = "existing_users" + case contributorsOnly = "contributors_only" + case collaboratorsOnly = "collaborators_only" } /// Interaction limit settings. /// /// - Remark: Generated from `#/components/schemas/interaction-limit-response`. - public struct interaction_hyphen_limit_hyphen_response: Codable, Hashable, Sendable { + public struct InteractionLimitResponse: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/interaction-limit-response/limit`. - public var limit: Components.Schemas.interaction_hyphen_group + public var limit: Components.Schemas.InteractionGroup /// - Remark: Generated from `#/components/schemas/interaction-limit-response/origin`. public var origin: Swift.String /// - Remark: Generated from `#/components/schemas/interaction-limit-response/expires_at`. - public var expires_at: Foundation.Date - /// Creates a new `interaction_hyphen_limit_hyphen_response`. + public var expiresAt: Foundation.Date + /// Creates a new `InteractionLimitResponse`. /// /// - Parameters: /// - limit: /// - origin: - /// - expires_at: + /// - expiresAt: public init( - limit: Components.Schemas.interaction_hyphen_group, + limit: Components.Schemas.InteractionGroup, origin: Swift.String, - expires_at: Foundation.Date + expiresAt: Foundation.Date ) { self.limit = limit self.origin = origin - self.expires_at = expires_at + self.expiresAt = expiresAt } public enum CodingKeys: String, CodingKey { case limit case origin - case expires_at + case expiresAt = "expires_at" } } /// The duration of the interaction restriction. Default: `one_day`. /// /// - Remark: Generated from `#/components/schemas/interaction-expiry`. - @frozen public enum interaction_hyphen_expiry: String, Codable, Hashable, Sendable { - case one_day = "one_day" - case three_days = "three_days" - case one_week = "one_week" - case one_month = "one_month" - case six_months = "six_months" + @frozen public enum InteractionExpiry: String, Codable, Hashable, Sendable, CaseIterable { + case oneDay = "one_day" + case threeDays = "three_days" + case oneWeek = "one_week" + case oneMonth = "one_month" + case sixMonths = "six_months" } /// Limit interactions to a specific type of user for a specified duration /// /// - Remark: Generated from `#/components/schemas/interaction-limit`. - public struct interaction_hyphen_limit: Codable, Hashable, Sendable { + public struct InteractionLimit: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/interaction-limit/limit`. - public var limit: Components.Schemas.interaction_hyphen_group + public var limit: Components.Schemas.InteractionGroup /// - Remark: Generated from `#/components/schemas/interaction-limit/expiry`. - public var expiry: Components.Schemas.interaction_hyphen_expiry? - /// Creates a new `interaction_hyphen_limit`. + public var expiry: Components.Schemas.InteractionExpiry? + /// Creates a new `InteractionLimit`. /// /// - Parameters: /// - limit: /// - expiry: public init( - limit: Components.Schemas.interaction_hyphen_group, - expiry: Components.Schemas.interaction_hyphen_expiry? = nil + limit: Components.Schemas.InteractionGroup, + expiry: Components.Schemas.InteractionExpiry? = nil ) { self.limit = limit self.expiry = expiry @@ -414,30 +423,30 @@ public enum Components { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -447,12 +456,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } @@ -469,7 +478,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)`. - public enum interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org { + public enum InteractionsGetRestrictionsForOrg { public static let id: Swift.String = "interactions/get-restrictions-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/path`. @@ -477,36 +486,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path + public var path: Operations.InteractionsGetRestrictionsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.InteractionsGetRestrictionsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path, - headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.InteractionsGetRestrictionsForOrg.Input.Path, + headers: Operations.InteractionsGetRestrictionsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -517,9 +526,9 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/json/value1`. - public var value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? + public var value1: Components.Schemas.InteractionLimitResponse? /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. @@ -529,15 +538,15 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/json/value2`. - public var value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? = nil, - value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.Value2Payload? = nil + value1: Components.Schemas.InteractionLimitResponse? = nil, + value2: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -545,19 +554,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -565,17 +574,17 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/application\/json`. - case json(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -585,12 +594,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.InteractionsGetRestrictionsForOrg.Output.Ok.Body) { self.body = body } } @@ -599,12 +608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/get(interactions/get-restrictions-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.InteractionsGetRestrictionsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.InteractionsGetRestrictionsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -654,7 +663,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)`. - public enum interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org { + public enum InteractionsSetRestrictionsForOrg { public static let id: Swift.String = "interactions/set-restrictions-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/path`. @@ -662,34 +671,34 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path + public var path: Operations.InteractionsSetRestrictionsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.InteractionsSetRestrictionsForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit) + case json(Components.Schemas.InteractionLimit) } - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Body + public var body: Operations.InteractionsSetRestrictionsForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -697,9 +706,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path, - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Input.Body + path: Operations.InteractionsSetRestrictionsForOrg.Input.Path, + headers: Operations.InteractionsSetRestrictionsForOrg.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForOrg.Input.Body ) { self.path = path self.headers = headers @@ -711,12 +720,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit_hyphen_response) + case json(Components.Schemas.InteractionLimitResponse) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.interaction_hyphen_limit_hyphen_response { + public var json: Components.Schemas.InteractionLimitResponse { get throws { switch self { case let .json(body): @@ -726,12 +735,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.InteractionsSetRestrictionsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.InteractionsSetRestrictionsForOrg.Output.Ok.Body) { self.body = body } } @@ -740,12 +749,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.InteractionsSetRestrictionsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.InteractionsSetRestrictionsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -763,12 +772,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/put(interactions/set-restrictions-for-org)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -818,7 +827,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/interaction-limits`. /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)`. - public enum interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org { + public enum InteractionsRemoveRestrictionsForOrg { public static let id: Swift.String = "interactions/remove-restrictions-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/DELETE/path`. @@ -826,21 +835,21 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path + public var path: Operations.InteractionsRemoveRestrictionsForOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Input.Path) { + public init(path: Operations.InteractionsRemoveRestrictionsForOrg.Input.Path) { self.path = path } } @@ -854,12 +863,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output.NoContent) + case noContent(Operations.InteractionsRemoveRestrictionsForOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org.Output.NoContent { + public var noContent: Operations.InteractionsRemoveRestrictionsForOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -884,7 +901,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)`. - public enum interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo { + public enum InteractionsGetRestrictionsForRepo { public static let id: Swift.String = "interactions/get-restrictions-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/path`. @@ -892,45 +909,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.InteractionsGetRestrictionsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.InteractionsGetRestrictionsForRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers = .init() + path: Operations.InteractionsGetRestrictionsForRepo.Input.Path, + headers: Operations.InteractionsGetRestrictionsForRepo.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -941,9 +958,9 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/json/value1`. - public var value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? + public var value1: Components.Schemas.InteractionLimitResponse? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. @@ -953,15 +970,15 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/json/value2`. - public var value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? = nil, - value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload.Value2Payload? = nil + value1: Components.Schemas.InteractionLimitResponse? = nil, + value2: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -969,19 +986,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -989,17 +1006,17 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/application\/json`. - case json(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload) + case json(Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body.jsonPayload { + public var json: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -1009,12 +1026,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.InteractionsGetRestrictionsForRepo.Output.Ok.Body) { self.body = body } } @@ -1023,12 +1040,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/get(interactions/get-restrictions-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.InteractionsGetRestrictionsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.InteractionsGetRestrictionsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -1078,7 +1095,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)`. - public enum interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo { + public enum InteractionsSetRestrictionsForRepo { public static let id: Swift.String = "interactions/set-restrictions-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/path`. @@ -1086,43 +1103,43 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.InteractionsSetRestrictionsForRepo.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers + public var headers: Operations.InteractionsSetRestrictionsForRepo.Input.Headers /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit) + case json(Components.Schemas.InteractionLimit) } - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Body + public var body: Operations.InteractionsSetRestrictionsForRepo.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1130,9 +1147,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path, - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Body + path: Operations.InteractionsSetRestrictionsForRepo.Input.Path, + headers: Operations.InteractionsSetRestrictionsForRepo.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForRepo.Input.Body ) { self.path = path self.headers = headers @@ -1144,12 +1161,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit_hyphen_response) + case json(Components.Schemas.InteractionLimitResponse) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.interaction_hyphen_limit_hyphen_response { + public var json: Components.Schemas.InteractionLimitResponse { get throws { switch self { case let .json(body): @@ -1159,12 +1176,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body + public var body: Operations.InteractionsSetRestrictionsForRepo.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok.Body) { + public init(body: Operations.InteractionsSetRestrictionsForRepo.Output.Ok.Body) { self.body = body } } @@ -1173,12 +1190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok) + case ok(Operations.InteractionsSetRestrictionsForRepo.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Ok { + public var ok: Operations.InteractionsSetRestrictionsForRepo.Output.Ok { get throws { switch self { case let .ok(response): @@ -1200,12 +1217,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Conflict) + case conflict(Operations.InteractionsSetRestrictionsForRepo.Output.Conflict) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Conflict { + public var conflict: Operations.InteractionsSetRestrictionsForRepo.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -1255,7 +1280,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/interaction-limits`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)`. - public enum interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo { + public enum InteractionsRemoveRestrictionsForRepo { public static let id: Swift.String = "interactions/remove-restrictions-for-repo" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/DELETE/path`. @@ -1263,30 +1288,30 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/DELETE/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/DELETE/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path + public var path: Operations.InteractionsRemoveRestrictionsForRepo.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Input.Path) { + public init(path: Operations.InteractionsRemoveRestrictionsForRepo.Input.Path) { self.path = path } } @@ -1300,12 +1325,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output.NoContent) + case noContent(Operations.InteractionsRemoveRestrictionsForRepo.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output.NoContent { + public var noContent: Operations.InteractionsRemoveRestrictionsForRepo.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1327,12 +1360,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Conflict) + case conflict(Operations.InteractionsRemoveRestrictionsForRepo.Output.Conflict) + /// Response + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + public static var conflict: Self { + .conflict(.init()) + } /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo.Output.Conflict { + public var conflict: Operations.InteractionsRemoveRestrictionsForRepo.Output.Conflict { get throws { switch self { case let .conflict(response): @@ -1357,26 +1398,26 @@ public enum Operations { /// /// - Remark: HTTP `GET /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)`. - public enum interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user { + public enum InteractionsGetRestrictionsForAuthenticatedUser { public static let id: Swift.String = "interactions/get-restrictions-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/interaction-limits/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - headers: - public init(headers: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init()) { + public init(headers: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Input.Headers = .init()) { self.headers = headers } } @@ -1385,9 +1426,9 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/json/value1`. - public var value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? + public var value1: Components.Schemas.InteractionLimitResponse? /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/json/value2`. public struct Value2Payload: Codable, Hashable, Sendable { /// Creates a new `Value2Payload`. @@ -1397,15 +1438,15 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/json/value2`. - public var value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.Value2Payload? - /// Creates a new `jsonPayload`. + public var value2: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload.Value2Payload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - value1: /// - value2: public init( - value1: Components.Schemas.interaction_hyphen_limit_hyphen_response? = nil, - value2: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload.Value2Payload? = nil + value1: Components.Schemas.InteractionLimitResponse? = nil, + value2: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload.Value2Payload? = nil ) { self.value1 = value1 self.value2 = value2 @@ -1413,19 +1454,19 @@ public enum Operations { public init(from decoder: any Decoder) throws { var errors: [any Error] = [] do { - value1 = try .init(from: decoder) + self.value1 = try .init(from: decoder) } catch { errors.append(error) } do { - value2 = try .init(from: decoder) + self.value2 = try .init(from: decoder) } catch { errors.append(error) } try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil( [ - value1, - value2 + self.value1, + self.value2 ], type: Self.self, codingPath: decoder.codingPath, @@ -1433,17 +1474,17 @@ public enum Operations { ) } public func encode(to encoder: any Encoder) throws { - try value1?.encode(to: encoder) - try value2?.encode(to: encoder) + try self.value1?.encode(to: encoder) + try self.value2?.encode(to: encoder) } } /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/application\/json`. - case json(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload) + case json(Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body.jsonPayload { + public var json: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -1453,12 +1494,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -1467,12 +1508,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -1494,12 +1535,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.NoContent) + /// Response when there are no restrictions + /// + /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.InteractionsGetRestrictionsForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1549,35 +1598,35 @@ public enum Operations { /// /// - Remark: HTTP `PUT /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)`. - public enum interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user { + public enum InteractionsSetRestrictionsForAuthenticatedUser { public static let id: Swift.String = "interactions/set-restrictions-for-authenticated-user" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/interaction-limits/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers + public var headers: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Headers /// - Remark: Generated from `#/paths/user/interaction-limits/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/interaction-limits/PUT/requestBody/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit) + case json(Components.Schemas.InteractionLimit) } - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + public var body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Body /// Creates a new `Input`. /// /// - Parameters: /// - headers: /// - body: public init( - headers: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Headers = .init(), - body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body + headers: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Headers = .init(), + body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Input.Body ) { self.headers = headers self.body = body @@ -1588,12 +1637,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/user/interaction-limits/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/interaction-limits/PUT/responses/200/content/application\/json`. - case json(Components.Schemas.interaction_hyphen_limit_hyphen_response) + case json(Components.Schemas.InteractionLimitResponse) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.interaction_hyphen_limit_hyphen_response { + public var json: Components.Schemas.InteractionLimitResponse { get throws { switch self { case let .json(body): @@ -1603,12 +1652,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body + public var body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok.Body) { + public init(body: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok.Body) { self.body = body } } @@ -1617,12 +1666,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok) + case ok(Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.Ok { + public var ok: Operations.InteractionsSetRestrictionsForAuthenticatedUser.Output.Ok { get throws { switch self { case let .ok(response): @@ -1640,12 +1689,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/interaction-limits/put(interactions/set-restrictions-for-authenticated-user)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -1695,7 +1744,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /user/interaction-limits`. /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)`. - public enum interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user { + public enum InteractionsRemoveRestrictionsForAuthenticatedUser { public static let id: Swift.String = "interactions/remove-restrictions-for-authenticated-user" public struct Input: Sendable, Hashable { /// Creates a new `Input`. @@ -1711,12 +1760,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent) + case noContent(Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user.Output.NoContent { + public var noContent: Operations.InteractionsRemoveRestrictionsForAuthenticatedUser.Output.NoContent { get throws { switch self { case let .noContent(response): From 15c36d06df1cf6b984b42ab74a1ea147fcabbf18 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:07:18 -0700 Subject: [PATCH 38/46] Commit via running ake Sources/classroom --- Sources/classroom/Client.swift | 76 ++-- Sources/classroom/Types.swift | 803 +++++++++++++++++---------------- 2 files changed, 444 insertions(+), 435 deletions(-) diff --git a/Sources/classroom/Client.swift b/Sources/classroom/Client.swift index 783acbf532..9c71d4726f 100644 --- a/Sources/classroom/Client.swift +++ b/Sources/classroom/Client.swift @@ -44,15 +44,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)`. - public func classroom_sol_get_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output { + public func classroomGetAnAssignment(_ input: Operations.ClassroomGetAnAssignment.Input) async throws -> Operations.ClassroomGetAnAssignment.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.id, + forOperation: Operations.ClassroomGetAnAssignment.id, serializer: { input in let path = try converter.renderedPath( template: "/assignments/{}", parameters: [ - input.path.assignment_id + input.path.assignmentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -70,7 +70,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok.Body + let body: Operations.ClassroomGetAnAssignment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -80,7 +80,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.classroom_hyphen_assignment.self, + Components.Schemas.ClassroomAssignment.self, from: responseBody, transforming: { value in .json(value) @@ -92,7 +92,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -102,7 +102,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -130,15 +130,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`. - public func classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output { + public func classroomListAcceptedAssignmentsForAnAssignment(_ input: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input) async throws -> Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.id, + forOperation: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.id, serializer: { input in let path = try converter.renderedPath( template: "/assignments/{}/accepted_assignments", parameters: [ - input.path.assignment_id + input.path.assignmentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -158,7 +158,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -170,7 +170,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body + let body: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -180,7 +180,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.classroom_hyphen_accepted_hyphen_assignment].self, + [Components.Schemas.ClassroomAcceptedAssignment].self, from: responseBody, transforming: { value in .json(value) @@ -208,15 +208,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/grades`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)`. - public func classroom_sol_get_hyphen_assignment_hyphen_grades(_ input: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input) async throws -> Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output { + public func classroomGetAssignmentGrades(_ input: Operations.ClassroomGetAssignmentGrades.Input) async throws -> Operations.ClassroomGetAssignmentGrades.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.id, + forOperation: Operations.ClassroomGetAssignmentGrades.id, serializer: { input in let path = try converter.renderedPath( template: "/assignments/{}/grades", parameters: [ - input.path.assignment_id + input.path.assignmentId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -234,7 +234,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok.Body + let body: Operations.ClassroomGetAssignmentGrades.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -244,7 +244,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.classroom_hyphen_assignment_hyphen_grade].self, + [Components.Schemas.ClassroomAssignmentGrade].self, from: responseBody, transforming: { value in .json(value) @@ -256,7 +256,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -266,7 +266,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -294,10 +294,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /classrooms`. /// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)`. - public func classroom_sol_list_hyphen_classrooms(_ input: Operations.classroom_sol_list_hyphen_classrooms.Input) async throws -> Operations.classroom_sol_list_hyphen_classrooms.Output { + public func classroomListClassrooms(_ input: Operations.ClassroomListClassrooms.Input) async throws -> Operations.ClassroomListClassrooms.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_list_hyphen_classrooms.id, + forOperation: Operations.ClassroomListClassrooms.id, serializer: { input in let path = try converter.renderedPath( template: "/classrooms", @@ -320,7 +320,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -332,7 +332,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_list_hyphen_classrooms.Output.Ok.Body + let body: Operations.ClassroomListClassrooms.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -342,7 +342,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_classroom].self, + [Components.Schemas.SimpleClassroom].self, from: responseBody, transforming: { value in .json(value) @@ -370,15 +370,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)`. - public func classroom_sol_get_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output { + public func classroomGetAClassroom(_ input: Operations.ClassroomGetAClassroom.Input) async throws -> Operations.ClassroomGetAClassroom.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.id, + forOperation: Operations.ClassroomGetAClassroom.id, serializer: { input in let path = try converter.renderedPath( template: "/classrooms/{}", parameters: [ - input.path.classroom_id + input.path.classroomId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -396,7 +396,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok.Body + let body: Operations.ClassroomGetAClassroom.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -406,7 +406,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.classroom.self, + Components.Schemas.Classroom.self, from: responseBody, transforming: { value in .json(value) @@ -418,7 +418,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -428,7 +428,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -456,15 +456,15 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}/assignments`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)`. - public func classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output { + public func classroomListAssignmentsForAClassroom(_ input: Operations.ClassroomListAssignmentsForAClassroom.Input) async throws -> Operations.ClassroomListAssignmentsForAClassroom.Output { try await client.send( input: input, - forOperation: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.id, + forOperation: Operations.ClassroomListAssignmentsForAClassroom.id, serializer: { input in let path = try converter.renderedPath( template: "/classrooms/{}/assignments", parameters: [ - input.path.classroom_id + input.path.classroomId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -484,7 +484,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) converter.setAcceptHeader( in: &request.headerFields, @@ -496,7 +496,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok.Body + let body: Operations.ClassroomListAssignmentsForAClassroom.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -506,7 +506,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.simple_hyphen_classroom_hyphen_assignment].self, + [Components.Schemas.SimpleClassroomAssignment].self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/classroom/Types.swift b/Sources/classroom/Types.swift index 27a0816361..b04289a262 100644 --- a/Sources/classroom/Types.swift +++ b/Sources/classroom/Types.swift @@ -17,42 +17,42 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /assignments/{assignment_id}`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)`. - func classroom_sol_get_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output + func classroomGetAnAssignment(_ input: Operations.ClassroomGetAnAssignment.Input) async throws -> Operations.ClassroomGetAnAssignment.Output /// List accepted assignments for an assignment /// /// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// /// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`. - func classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output + func classroomListAcceptedAssignmentsForAnAssignment(_ input: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input) async throws -> Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output /// Get assignment grades /// /// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment. /// /// - Remark: HTTP `GET /assignments/{assignment_id}/grades`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)`. - func classroom_sol_get_hyphen_assignment_hyphen_grades(_ input: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input) async throws -> Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output + func classroomGetAssignmentGrades(_ input: Operations.ClassroomGetAssignmentGrades.Input) async throws -> Operations.ClassroomGetAssignmentGrades.Output /// List classrooms /// /// Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms. /// /// - Remark: HTTP `GET /classrooms`. /// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)`. - func classroom_sol_list_hyphen_classrooms(_ input: Operations.classroom_sol_list_hyphen_classrooms.Input) async throws -> Operations.classroom_sol_list_hyphen_classrooms.Output + func classroomListClassrooms(_ input: Operations.ClassroomListClassrooms.Input) async throws -> Operations.ClassroomListClassrooms.Output /// Get a classroom /// /// Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom. /// /// - Remark: HTTP `GET /classrooms/{classroom_id}`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)`. - func classroom_sol_get_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output + func classroomGetAClassroom(_ input: Operations.ClassroomGetAClassroom.Input) async throws -> Operations.ClassroomGetAClassroom.Output /// List assignments for a classroom /// /// Lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom. /// /// - Remark: HTTP `GET /classrooms/{classroom_id}/assignments`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)`. - func classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output + func classroomListAssignmentsForAClassroom(_ input: Operations.ClassroomListAssignmentsForAClassroom.Input) async throws -> Operations.ClassroomListAssignmentsForAClassroom.Output } /// Convenience overloads for operation inputs. @@ -63,11 +63,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)`. - public func classroom_sol_get_hyphen_an_hyphen_assignment( - path: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Path, - headers: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output { - try await classroom_sol_get_hyphen_an_hyphen_assignment(Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input( + public func classroomGetAnAssignment( + path: Operations.ClassroomGetAnAssignment.Input.Path, + headers: Operations.ClassroomGetAnAssignment.Input.Headers = .init() + ) async throws -> Operations.ClassroomGetAnAssignment.Output { + try await classroomGetAnAssignment(Operations.ClassroomGetAnAssignment.Input( path: path, headers: headers )) @@ -78,12 +78,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`. - public func classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment( - path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path, - query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output { - try await classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input( + public func classroomListAcceptedAssignmentsForAnAssignment( + path: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Path, + query: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Query = .init(), + headers: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Headers = .init() + ) async throws -> Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output { + try await classroomListAcceptedAssignmentsForAnAssignment(Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input( path: path, query: query, headers: headers @@ -95,11 +95,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/grades`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)`. - public func classroom_sol_get_hyphen_assignment_hyphen_grades( - path: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Path, - headers: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output { - try await classroom_sol_get_hyphen_assignment_hyphen_grades(Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input( + public func classroomGetAssignmentGrades( + path: Operations.ClassroomGetAssignmentGrades.Input.Path, + headers: Operations.ClassroomGetAssignmentGrades.Input.Headers = .init() + ) async throws -> Operations.ClassroomGetAssignmentGrades.Output { + try await classroomGetAssignmentGrades(Operations.ClassroomGetAssignmentGrades.Input( path: path, headers: headers )) @@ -110,11 +110,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /classrooms`. /// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)`. - public func classroom_sol_list_hyphen_classrooms( - query: Operations.classroom_sol_list_hyphen_classrooms.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_classrooms.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_list_hyphen_classrooms.Output { - try await classroom_sol_list_hyphen_classrooms(Operations.classroom_sol_list_hyphen_classrooms.Input( + public func classroomListClassrooms( + query: Operations.ClassroomListClassrooms.Input.Query = .init(), + headers: Operations.ClassroomListClassrooms.Input.Headers = .init() + ) async throws -> Operations.ClassroomListClassrooms.Output { + try await classroomListClassrooms(Operations.ClassroomListClassrooms.Input( query: query, headers: headers )) @@ -125,11 +125,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)`. - public func classroom_sol_get_hyphen_a_hyphen_classroom( - path: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Path, - headers: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output { - try await classroom_sol_get_hyphen_a_hyphen_classroom(Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input( + public func classroomGetAClassroom( + path: Operations.ClassroomGetAClassroom.Input.Path, + headers: Operations.ClassroomGetAClassroom.Input.Headers = .init() + ) async throws -> Operations.ClassroomGetAClassroom.Output { + try await classroomGetAClassroom(Operations.ClassroomGetAClassroom.Input( path: path, headers: headers )) @@ -140,12 +140,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}/assignments`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)`. - public func classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom( - path: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Path, - query: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Headers = .init() - ) async throws -> Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output { - try await classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom(Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input( + public func classroomListAssignmentsForAClassroom( + path: Operations.ClassroomListAssignmentsForAClassroom.Input.Path, + query: Operations.ClassroomListAssignmentsForAClassroom.Input.Query = .init(), + headers: Operations.ClassroomListAssignmentsForAClassroom.Input.Headers = .init() + ) async throws -> Operations.ClassroomListAssignmentsForAClassroom.Output { + try await classroomListAssignmentsForAClassroom(Operations.ClassroomListAssignmentsForAClassroom.Input( path: path, query: query, headers: headers @@ -155,6 +155,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -170,36 +179,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -207,7 +216,7 @@ public enum Components { /// A GitHub repository view for Classroom /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository`. - public struct simple_hyphen_classroom_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleClassroomRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/id`. @@ -215,15 +224,15 @@ public enum Components { /// The full, globally unique name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/private`. @@ -231,93 +240,93 @@ public enum Components { /// The default branch for the repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-repository/default_branch`. - public var default_branch: Swift.String - /// Creates a new `simple_hyphen_classroom_hyphen_repository`. + public var defaultBranch: Swift.String + /// Creates a new `SimpleClassroomRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - full_name: The full, globally unique name of the repository. - /// - html_url: The URL to view the repository on GitHub.com. - /// - node_id: The GraphQL identifier of the repository. + /// - fullName: The full, globally unique name of the repository. + /// - htmlUrl: The URL to view the repository on GitHub.com. + /// - nodeId: The GraphQL identifier of the repository. /// - _private: Whether the repository is private. - /// - default_branch: The default branch for the repository. + /// - defaultBranch: The default branch for the repository. public init( id: Swift.Int, - full_name: Swift.String, - html_url: Swift.String, - node_id: Swift.String, + fullName: Swift.String, + htmlUrl: Swift.String, + nodeId: Swift.String, _private: Swift.Bool, - default_branch: Swift.String + defaultBranch: Swift.String ) { self.id = id - self.full_name = full_name - self.html_url = html_url - self.node_id = node_id + self.fullName = fullName + self.htmlUrl = htmlUrl + self.nodeId = nodeId self._private = _private - self.default_branch = default_branch + self.defaultBranch = defaultBranch } public enum CodingKeys: String, CodingKey { case id - case full_name - case html_url - case node_id + case fullName = "full_name" + case htmlUrl = "html_url" + case nodeId = "node_id" case _private = "private" - case default_branch + case defaultBranch = "default_branch" } } /// A GitHub organization. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-organization`. - public struct simple_hyphen_classroom_hyphen_organization: Codable, Hashable, Sendable { + public struct SimpleClassroomOrganization: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-classroom-organization/avatar_url`. - public var avatar_url: Swift.String - /// Creates a new `simple_hyphen_classroom_hyphen_organization`. + public var avatarUrl: Swift.String + /// Creates a new `SimpleClassroomOrganization`. /// /// - Parameters: /// - id: /// - login: - /// - node_id: - /// - html_url: + /// - nodeId: + /// - htmlUrl: /// - name: - /// - avatar_url: + /// - avatarUrl: public init( id: Swift.Int, login: Swift.String, - node_id: Swift.String, - html_url: Swift.String, + nodeId: Swift.String, + htmlUrl: Swift.String, name: Swift.String? = nil, - avatar_url: Swift.String + avatarUrl: Swift.String ) { self.id = id self.login = login - self.node_id = node_id - self.html_url = html_url + self.nodeId = nodeId + self.htmlUrl = htmlUrl self.name = name - self.avatar_url = avatar_url + self.avatarUrl = avatarUrl } public enum CodingKeys: String, CodingKey { case id case login - case node_id - case html_url + case nodeId = "node_id" + case htmlUrl = "html_url" case name - case avatar_url + case avatarUrl = "avatar_url" } } /// A GitHub Classroom classroom /// /// - Remark: Generated from `#/components/schemas/classroom`. - public struct classroom: Codable, Hashable, Sendable { + public struct Classroom: Codable, Hashable, Sendable { /// Unique identifier of the classroom. /// /// - Remark: Generated from `#/components/schemas/classroom/id`. @@ -331,12 +340,12 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/classroom/archived`. public var archived: Swift.Bool /// - Remark: Generated from `#/components/schemas/classroom/organization`. - public var organization: Components.Schemas.simple_hyphen_classroom_hyphen_organization + public var organization: Components.Schemas.SimpleClassroomOrganization /// The URL of the classroom on GitHub Classroom. /// /// - Remark: Generated from `#/components/schemas/classroom/url`. public var url: Swift.String - /// Creates a new `classroom`. + /// Creates a new `Classroom`. /// /// - Parameters: /// - id: Unique identifier of the classroom. @@ -348,7 +357,7 @@ public enum Components { id: Swift.Int, name: Swift.String, archived: Swift.Bool, - organization: Components.Schemas.simple_hyphen_classroom_hyphen_organization, + organization: Components.Schemas.SimpleClassroomOrganization, url: Swift.String ) { self.id = id @@ -368,7 +377,7 @@ public enum Components { /// A GitHub Classroom assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment`. - public struct classroom_hyphen_assignment: Codable, Hashable, Sendable { + public struct ClassroomAssignment: Codable, Hashable, Sendable { /// Unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/id`. @@ -376,7 +385,7 @@ public enum Components { /// Whether an accepted assignment creates a public repository. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/public_repo`. - public var public_repo: Swift.Bool + public var publicRepo: Swift.Bool /// Assignment title. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/title`. @@ -384,22 +393,22 @@ public enum Components { /// Whether it's a group assignment or individual assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case individual = "individual" case group = "group" } /// Whether it's a group assignment or individual assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/type`. - public var _type: Components.Schemas.classroom_hyphen_assignment._typePayload + public var _type: Components.Schemas.ClassroomAssignment._TypePayload /// The link that a student can use to accept the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/invite_link`. - public var invite_link: Swift.String + public var inviteLink: Swift.String /// Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/invitations_enabled`. - public var invitations_enabled: Swift.Bool + public var invitationsEnabled: Swift.Bool /// Sluggified name of the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/slug`. @@ -407,19 +416,19 @@ public enum Components { /// Whether students are admins on created repository when a student accepts the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/students_are_repo_admins`. - public var students_are_repo_admins: Swift.Bool + public var studentsAreRepoAdmins: Swift.Bool /// Whether feedback pull request will be created when a student accepts the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/feedback_pull_requests_enabled`. - public var feedback_pull_requests_enabled: Swift.Bool + public var feedbackPullRequestsEnabled: Swift.Bool /// The maximum allowable teams for the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/max_teams`. - public var max_teams: Swift.Int? + public var maxTeams: Swift.Int? /// The maximum allowable members per team. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/max_members`. - public var max_members: Swift.Int? + public var maxMembers: Swift.Int? /// The selected editor for the assignment. /// /// - Remark: Generated from `#/components/schemas/classroom-assignment/editor`. @@ -445,135 +454,135 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/classroom-assignment/deadline`. public var deadline: Foundation.Date? /// - Remark: Generated from `#/components/schemas/classroom-assignment/starter_code_repository`. - public var starter_code_repository: Components.Schemas.simple_hyphen_classroom_hyphen_repository + public var starterCodeRepository: Components.Schemas.SimpleClassroomRepository /// - Remark: Generated from `#/components/schemas/classroom-assignment/classroom`. - public var classroom: Components.Schemas.classroom - /// Creates a new `classroom_hyphen_assignment`. + public var classroom: Components.Schemas.Classroom + /// Creates a new `ClassroomAssignment`. /// /// - Parameters: /// - id: Unique identifier of the repository. - /// - public_repo: Whether an accepted assignment creates a public repository. + /// - publicRepo: Whether an accepted assignment creates a public repository. /// - title: Assignment title. /// - _type: Whether it's a group assignment or individual assignment. - /// - invite_link: The link that a student can use to accept the assignment. - /// - invitations_enabled: Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. + /// - inviteLink: The link that a student can use to accept the assignment. + /// - invitationsEnabled: Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. /// - slug: Sluggified name of the assignment. - /// - students_are_repo_admins: Whether students are admins on created repository when a student accepts the assignment. - /// - feedback_pull_requests_enabled: Whether feedback pull request will be created when a student accepts the assignment. - /// - max_teams: The maximum allowable teams for the assignment. - /// - max_members: The maximum allowable members per team. + /// - studentsAreRepoAdmins: Whether students are admins on created repository when a student accepts the assignment. + /// - feedbackPullRequestsEnabled: Whether feedback pull request will be created when a student accepts the assignment. + /// - maxTeams: The maximum allowable teams for the assignment. + /// - maxMembers: The maximum allowable members per team. /// - editor: The selected editor for the assignment. /// - accepted: The number of students that have accepted the assignment. /// - submitted: The number of students that have submitted the assignment. /// - passing: The number of students that have passed the assignment. /// - language: The programming language used in the assignment. /// - deadline: The time at which the assignment is due. - /// - starter_code_repository: + /// - starterCodeRepository: /// - classroom: public init( id: Swift.Int, - public_repo: Swift.Bool, + publicRepo: Swift.Bool, title: Swift.String, - _type: Components.Schemas.classroom_hyphen_assignment._typePayload, - invite_link: Swift.String, - invitations_enabled: Swift.Bool, + _type: Components.Schemas.ClassroomAssignment._TypePayload, + inviteLink: Swift.String, + invitationsEnabled: Swift.Bool, slug: Swift.String, - students_are_repo_admins: Swift.Bool, - feedback_pull_requests_enabled: Swift.Bool, - max_teams: Swift.Int? = nil, - max_members: Swift.Int? = nil, + studentsAreRepoAdmins: Swift.Bool, + feedbackPullRequestsEnabled: Swift.Bool, + maxTeams: Swift.Int? = nil, + maxMembers: Swift.Int? = nil, editor: Swift.String, accepted: Swift.Int, submitted: Swift.Int, passing: Swift.Int, language: Swift.String, deadline: Foundation.Date? = nil, - starter_code_repository: Components.Schemas.simple_hyphen_classroom_hyphen_repository, - classroom: Components.Schemas.classroom + starterCodeRepository: Components.Schemas.SimpleClassroomRepository, + classroom: Components.Schemas.Classroom ) { self.id = id - self.public_repo = public_repo + self.publicRepo = publicRepo self.title = title self._type = _type - self.invite_link = invite_link - self.invitations_enabled = invitations_enabled + self.inviteLink = inviteLink + self.invitationsEnabled = invitationsEnabled self.slug = slug - self.students_are_repo_admins = students_are_repo_admins - self.feedback_pull_requests_enabled = feedback_pull_requests_enabled - self.max_teams = max_teams - self.max_members = max_members + self.studentsAreRepoAdmins = studentsAreRepoAdmins + self.feedbackPullRequestsEnabled = feedbackPullRequestsEnabled + self.maxTeams = maxTeams + self.maxMembers = maxMembers self.editor = editor self.accepted = accepted self.submitted = submitted self.passing = passing self.language = language self.deadline = deadline - self.starter_code_repository = starter_code_repository + self.starterCodeRepository = starterCodeRepository self.classroom = classroom } public enum CodingKeys: String, CodingKey { case id - case public_repo + case publicRepo = "public_repo" case title case _type = "type" - case invite_link - case invitations_enabled + case inviteLink = "invite_link" + case invitationsEnabled = "invitations_enabled" case slug - case students_are_repo_admins - case feedback_pull_requests_enabled - case max_teams - case max_members + case studentsAreRepoAdmins = "students_are_repo_admins" + case feedbackPullRequestsEnabled = "feedback_pull_requests_enabled" + case maxTeams = "max_teams" + case maxMembers = "max_members" case editor case accepted case submitted case passing case language case deadline - case starter_code_repository + case starterCodeRepository = "starter_code_repository" case classroom } } /// A GitHub user simplified for Classroom. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-user`. - public struct simple_hyphen_classroom_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleClassroomUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-classroom-user/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/simple-classroom-user/login`. public var login: Swift.String /// - Remark: Generated from `#/components/schemas/simple-classroom-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-classroom-user/html_url`. - public var html_url: Swift.String - /// Creates a new `simple_hyphen_classroom_hyphen_user`. + public var htmlUrl: Swift.String + /// Creates a new `SimpleClassroomUser`. /// /// - Parameters: /// - id: /// - login: - /// - avatar_url: - /// - html_url: + /// - avatarUrl: + /// - htmlUrl: public init( id: Swift.Int, login: Swift.String, - avatar_url: Swift.String, - html_url: Swift.String + avatarUrl: Swift.String, + htmlUrl: Swift.String ) { self.id = id self.login = login - self.avatar_url = avatar_url - self.html_url = html_url + self.avatarUrl = avatarUrl + self.htmlUrl = htmlUrl } public enum CodingKeys: String, CodingKey { case id case login - case avatar_url - case html_url + case avatarUrl = "avatar_url" + case htmlUrl = "html_url" } } /// A GitHub Classroom classroom /// /// - Remark: Generated from `#/components/schemas/simple-classroom`. - public struct simple_hyphen_classroom: Codable, Hashable, Sendable { + public struct SimpleClassroom: Codable, Hashable, Sendable { /// Unique identifier of the classroom. /// /// - Remark: Generated from `#/components/schemas/simple-classroom/id`. @@ -590,7 +599,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/simple-classroom/url`. public var url: Swift.String - /// Creates a new `simple_hyphen_classroom`. + /// Creates a new `SimpleClassroom`. /// /// - Parameters: /// - id: Unique identifier of the classroom. @@ -618,7 +627,7 @@ public enum Components { /// A GitHub Classroom assignment /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment`. - public struct simple_hyphen_classroom_hyphen_assignment: Codable, Hashable, Sendable { + public struct SimpleClassroomAssignment: Codable, Hashable, Sendable { /// Unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/id`. @@ -626,7 +635,7 @@ public enum Components { /// Whether an accepted assignment creates a public repository. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/public_repo`. - public var public_repo: Swift.Bool + public var publicRepo: Swift.Bool /// Assignment title. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/title`. @@ -634,22 +643,22 @@ public enum Components { /// Whether it's a Group Assignment or Individual Assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/type`. - @frozen public enum _typePayload: String, Codable, Hashable, Sendable { + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { case individual = "individual" case group = "group" } /// Whether it's a Group Assignment or Individual Assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/type`. - public var _type: Components.Schemas.simple_hyphen_classroom_hyphen_assignment._typePayload + public var _type: Components.Schemas.SimpleClassroomAssignment._TypePayload /// The link that a student can use to accept the assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/invite_link`. - public var invite_link: Swift.String + public var inviteLink: Swift.String /// Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/invitations_enabled`. - public var invitations_enabled: Swift.Bool + public var invitationsEnabled: Swift.Bool /// Sluggified name of the assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/slug`. @@ -657,19 +666,19 @@ public enum Components { /// Whether students are admins on created repository on accepted assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/students_are_repo_admins`. - public var students_are_repo_admins: Swift.Bool + public var studentsAreRepoAdmins: Swift.Bool /// Whether feedback pull request will be created on assignment acceptance. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/feedback_pull_requests_enabled`. - public var feedback_pull_requests_enabled: Swift.Bool + public var feedbackPullRequestsEnabled: Swift.Bool /// The maximum allowable teams for the assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/max_teams`. - public var max_teams: Swift.Int? + public var maxTeams: Swift.Int? /// The maximum allowable members per team. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/max_members`. - public var max_members: Swift.Int? + public var maxMembers: Swift.Int? /// The selected editor for the assignment. /// /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/editor`. @@ -695,21 +704,21 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/deadline`. public var deadline: Foundation.Date? /// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/classroom`. - public var classroom: Components.Schemas.simple_hyphen_classroom - /// Creates a new `simple_hyphen_classroom_hyphen_assignment`. + public var classroom: Components.Schemas.SimpleClassroom + /// Creates a new `SimpleClassroomAssignment`. /// /// - Parameters: /// - id: Unique identifier of the repository. - /// - public_repo: Whether an accepted assignment creates a public repository. + /// - publicRepo: Whether an accepted assignment creates a public repository. /// - title: Assignment title. /// - _type: Whether it's a Group Assignment or Individual Assignment. - /// - invite_link: The link that a student can use to accept the assignment. - /// - invitations_enabled: Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. + /// - inviteLink: The link that a student can use to accept the assignment. + /// - invitationsEnabled: Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment. /// - slug: Sluggified name of the assignment. - /// - students_are_repo_admins: Whether students are admins on created repository on accepted assignment. - /// - feedback_pull_requests_enabled: Whether feedback pull request will be created on assignment acceptance. - /// - max_teams: The maximum allowable teams for the assignment. - /// - max_members: The maximum allowable members per team. + /// - studentsAreRepoAdmins: Whether students are admins on created repository on accepted assignment. + /// - feedbackPullRequestsEnabled: Whether feedback pull request will be created on assignment acceptance. + /// - maxTeams: The maximum allowable teams for the assignment. + /// - maxMembers: The maximum allowable members per team. /// - editor: The selected editor for the assignment. /// - accepted: The number of students that have accepted the assignment. /// - submitted: The number of students that have submitted the assignment. @@ -719,35 +728,35 @@ public enum Components { /// - classroom: public init( id: Swift.Int, - public_repo: Swift.Bool, + publicRepo: Swift.Bool, title: Swift.String, - _type: Components.Schemas.simple_hyphen_classroom_hyphen_assignment._typePayload, - invite_link: Swift.String, - invitations_enabled: Swift.Bool, + _type: Components.Schemas.SimpleClassroomAssignment._TypePayload, + inviteLink: Swift.String, + invitationsEnabled: Swift.Bool, slug: Swift.String, - students_are_repo_admins: Swift.Bool, - feedback_pull_requests_enabled: Swift.Bool, - max_teams: Swift.Int? = nil, - max_members: Swift.Int? = nil, + studentsAreRepoAdmins: Swift.Bool, + feedbackPullRequestsEnabled: Swift.Bool, + maxTeams: Swift.Int? = nil, + maxMembers: Swift.Int? = nil, editor: Swift.String, accepted: Swift.Int, submitted: Swift.Int, passing: Swift.Int, language: Swift.String, deadline: Foundation.Date? = nil, - classroom: Components.Schemas.simple_hyphen_classroom + classroom: Components.Schemas.SimpleClassroom ) { self.id = id - self.public_repo = public_repo + self.publicRepo = publicRepo self.title = title self._type = _type - self.invite_link = invite_link - self.invitations_enabled = invitations_enabled + self.inviteLink = inviteLink + self.invitationsEnabled = invitationsEnabled self.slug = slug - self.students_are_repo_admins = students_are_repo_admins - self.feedback_pull_requests_enabled = feedback_pull_requests_enabled - self.max_teams = max_teams - self.max_members = max_members + self.studentsAreRepoAdmins = studentsAreRepoAdmins + self.feedbackPullRequestsEnabled = feedbackPullRequestsEnabled + self.maxTeams = maxTeams + self.maxMembers = maxMembers self.editor = editor self.accepted = accepted self.submitted = submitted @@ -758,16 +767,16 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case id - case public_repo + case publicRepo = "public_repo" case title case _type = "type" - case invite_link - case invitations_enabled + case inviteLink = "invite_link" + case invitationsEnabled = "invitations_enabled" case slug - case students_are_repo_admins - case feedback_pull_requests_enabled - case max_teams - case max_members + case studentsAreRepoAdmins = "students_are_repo_admins" + case feedbackPullRequestsEnabled = "feedback_pull_requests_enabled" + case maxTeams = "max_teams" + case maxMembers = "max_members" case editor case accepted case submitted @@ -780,7 +789,7 @@ public enum Components { /// A GitHub Classroom accepted assignment /// /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment`. - public struct classroom_hyphen_accepted_hyphen_assignment: Codable, Hashable, Sendable { + public struct ClassroomAcceptedAssignment: Codable, Hashable, Sendable { /// Unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/id`. @@ -796,24 +805,24 @@ public enum Components { /// Count of student commits. /// /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/commit_count`. - public var commit_count: Swift.Int + public var commitCount: Swift.Int /// Most recent grade. /// /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/grade`. public var grade: Swift.String /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/students`. - public var students: [Components.Schemas.simple_hyphen_classroom_hyphen_user] + public var students: [Components.Schemas.SimpleClassroomUser] /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/repository`. - public var repository: Components.Schemas.simple_hyphen_classroom_hyphen_repository + public var repository: Components.Schemas.SimpleClassroomRepository /// - Remark: Generated from `#/components/schemas/classroom-accepted-assignment/assignment`. - public var assignment: Components.Schemas.simple_hyphen_classroom_hyphen_assignment - /// Creates a new `classroom_hyphen_accepted_hyphen_assignment`. + public var assignment: Components.Schemas.SimpleClassroomAssignment + /// Creates a new `ClassroomAcceptedAssignment`. /// /// - Parameters: /// - id: Unique identifier of the repository. /// - submitted: Whether an accepted assignment has been submitted. /// - passing: Whether a submission passed. - /// - commit_count: Count of student commits. + /// - commitCount: Count of student commits. /// - grade: Most recent grade. /// - students: /// - repository: @@ -822,16 +831,16 @@ public enum Components { id: Swift.Int, submitted: Swift.Bool, passing: Swift.Bool, - commit_count: Swift.Int, + commitCount: Swift.Int, grade: Swift.String, - students: [Components.Schemas.simple_hyphen_classroom_hyphen_user], - repository: Components.Schemas.simple_hyphen_classroom_hyphen_repository, - assignment: Components.Schemas.simple_hyphen_classroom_hyphen_assignment + students: [Components.Schemas.SimpleClassroomUser], + repository: Components.Schemas.SimpleClassroomRepository, + assignment: Components.Schemas.SimpleClassroomAssignment ) { self.id = id self.submitted = submitted self.passing = passing - self.commit_count = commit_count + self.commitCount = commitCount self.grade = grade self.students = students self.repository = repository @@ -841,7 +850,7 @@ public enum Components { case id case submitted case passing - case commit_count + case commitCount = "commit_count" case grade case students case repository @@ -851,102 +860,102 @@ public enum Components { /// Grade for a student or groups GitHub Classroom assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade`. - public struct classroom_hyphen_assignment_hyphen_grade: Codable, Hashable, Sendable { + public struct ClassroomAssignmentGrade: Codable, Hashable, Sendable { /// Name of the assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/assignment_name`. - public var assignment_name: Swift.String + public var assignmentName: Swift.String /// URL of the assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/assignment_url`. - public var assignment_url: Swift.String + public var assignmentUrl: Swift.String /// URL of the starter code for the assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/starter_code_url`. - public var starter_code_url: Swift.String + public var starterCodeUrl: Swift.String /// GitHub username of the student /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/github_username`. - public var github_username: Swift.String + public var githubUsername: Swift.String /// Roster identifier of the student /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/roster_identifier`. - public var roster_identifier: Swift.String + public var rosterIdentifier: Swift.String /// Name of the student's assignment repository /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/student_repository_name`. - public var student_repository_name: Swift.String + public var studentRepositoryName: Swift.String /// URL of the student's assignment repository /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/student_repository_url`. - public var student_repository_url: Swift.String + public var studentRepositoryUrl: Swift.String /// Timestamp of the student's assignment submission /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/submission_timestamp`. - public var submission_timestamp: Swift.String + public var submissionTimestamp: Swift.String /// Number of points awarded to the student /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/points_awarded`. - public var points_awarded: Swift.Int + public var pointsAwarded: Swift.Int /// Number of points available for the assignment /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/points_available`. - public var points_available: Swift.Int + public var pointsAvailable: Swift.Int /// If a group assignment, name of the group the student is in /// /// - Remark: Generated from `#/components/schemas/classroom-assignment-grade/group_name`. - public var group_name: Swift.String? - /// Creates a new `classroom_hyphen_assignment_hyphen_grade`. + public var groupName: Swift.String? + /// Creates a new `ClassroomAssignmentGrade`. /// /// - Parameters: - /// - assignment_name: Name of the assignment - /// - assignment_url: URL of the assignment - /// - starter_code_url: URL of the starter code for the assignment - /// - github_username: GitHub username of the student - /// - roster_identifier: Roster identifier of the student - /// - student_repository_name: Name of the student's assignment repository - /// - student_repository_url: URL of the student's assignment repository - /// - submission_timestamp: Timestamp of the student's assignment submission - /// - points_awarded: Number of points awarded to the student - /// - points_available: Number of points available for the assignment - /// - group_name: If a group assignment, name of the group the student is in + /// - assignmentName: Name of the assignment + /// - assignmentUrl: URL of the assignment + /// - starterCodeUrl: URL of the starter code for the assignment + /// - githubUsername: GitHub username of the student + /// - rosterIdentifier: Roster identifier of the student + /// - studentRepositoryName: Name of the student's assignment repository + /// - studentRepositoryUrl: URL of the student's assignment repository + /// - submissionTimestamp: Timestamp of the student's assignment submission + /// - pointsAwarded: Number of points awarded to the student + /// - pointsAvailable: Number of points available for the assignment + /// - groupName: If a group assignment, name of the group the student is in public init( - assignment_name: Swift.String, - assignment_url: Swift.String, - starter_code_url: Swift.String, - github_username: Swift.String, - roster_identifier: Swift.String, - student_repository_name: Swift.String, - student_repository_url: Swift.String, - submission_timestamp: Swift.String, - points_awarded: Swift.Int, - points_available: Swift.Int, - group_name: Swift.String? = nil + assignmentName: Swift.String, + assignmentUrl: Swift.String, + starterCodeUrl: Swift.String, + githubUsername: Swift.String, + rosterIdentifier: Swift.String, + studentRepositoryName: Swift.String, + studentRepositoryUrl: Swift.String, + submissionTimestamp: Swift.String, + pointsAwarded: Swift.Int, + pointsAvailable: Swift.Int, + groupName: Swift.String? = nil ) { - self.assignment_name = assignment_name - self.assignment_url = assignment_url - self.starter_code_url = starter_code_url - self.github_username = github_username - self.roster_identifier = roster_identifier - self.student_repository_name = student_repository_name - self.student_repository_url = student_repository_url - self.submission_timestamp = submission_timestamp - self.points_awarded = points_awarded - self.points_available = points_available - self.group_name = group_name + self.assignmentName = assignmentName + self.assignmentUrl = assignmentUrl + self.starterCodeUrl = starterCodeUrl + self.githubUsername = githubUsername + self.rosterIdentifier = rosterIdentifier + self.studentRepositoryName = studentRepositoryName + self.studentRepositoryUrl = studentRepositoryUrl + self.submissionTimestamp = submissionTimestamp + self.pointsAwarded = pointsAwarded + self.pointsAvailable = pointsAvailable + self.groupName = groupName } public enum CodingKeys: String, CodingKey { - case assignment_name - case assignment_url - case starter_code_url - case github_username - case roster_identifier - case student_repository_name - case student_repository_url - case submission_timestamp - case points_awarded - case points_available - case group_name + case assignmentName = "assignment_name" + case assignmentUrl = "assignment_url" + case starterCodeUrl = "starter_code_url" + case githubUsername = "github_username" + case rosterIdentifier = "roster_identifier" + case studentRepositoryName = "student_repository_name" + case studentRepositoryUrl = "student_repository_url" + case submissionTimestamp = "submission_timestamp" + case pointsAwarded = "points_awarded" + case pointsAvailable = "points_available" + case groupName = "group_name" } } } @@ -955,34 +964,34 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The unique identifier of the classroom assignment. /// /// - Remark: Generated from `#/components/parameters/assignment-id`. - public typealias assignment_hyphen_id = Swift.Int + public typealias AssignmentId = Swift.Int /// The unique identifier of the classroom. /// /// - Remark: Generated from `#/components/parameters/classroom-id`. - public typealias classroom_hyphen_id = Swift.Int + public typealias ClassroomId = Swift.Int } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -992,12 +1001,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } @@ -1014,7 +1023,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /assignments/{assignment_id}`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)`. - public enum classroom_sol_get_hyphen_an_hyphen_assignment { + public enum ClassroomGetAnAssignment { public static let id: Swift.String = "classroom/get-an-assignment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/GET/path`. @@ -1022,36 +1031,36 @@ public enum Operations { /// The unique identifier of the classroom assignment. /// /// - Remark: Generated from `#/paths/assignments/{assignment_id}/GET/path/assignment_id`. - public var assignment_id: Components.Parameters.assignment_hyphen_id + public var assignmentId: Components.Parameters.AssignmentId /// Creates a new `Path`. /// /// - Parameters: - /// - assignment_id: The unique identifier of the classroom assignment. - public init(assignment_id: Components.Parameters.assignment_hyphen_id) { - self.assignment_id = assignment_id + /// - assignmentId: The unique identifier of the classroom assignment. + public init(assignmentId: Components.Parameters.AssignmentId) { + self.assignmentId = assignmentId } } - public var path: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Path + public var path: Operations.ClassroomGetAnAssignment.Input.Path /// - Remark: Generated from `#/paths/assignments/{assignment_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Headers + public var headers: Operations.ClassroomGetAnAssignment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Path, - headers: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input.Headers = .init() + path: Operations.ClassroomGetAnAssignment.Input.Path, + headers: Operations.ClassroomGetAnAssignment.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1062,12 +1071,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.classroom_hyphen_assignment) + case json(Components.Schemas.ClassroomAssignment) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.classroom_hyphen_assignment { + public var json: Components.Schemas.ClassroomAssignment { get throws { switch self { case let .json(body): @@ -1077,12 +1086,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok.Body + public var body: Operations.ClassroomGetAnAssignment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok.Body) { + public init(body: Operations.ClassroomGetAnAssignment.Output.Ok.Body) { self.body = body } } @@ -1091,12 +1100,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok) + case ok(Operations.ClassroomGetAnAssignment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok { + public var ok: Operations.ClassroomGetAnAssignment.Output.Ok { get throws { switch self { case let .ok(response): @@ -1114,12 +1123,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1169,7 +1178,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`. - public enum classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment { + public enum ClassroomListAcceptedAssignmentsForAnAssignment { public static let id: Swift.String = "classroom/list-accepted-assignments-for-an-assignment" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/path`. @@ -1177,52 +1186,52 @@ public enum Operations { /// The unique identifier of the classroom assignment. /// /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/path/assignment_id`. - public var assignment_id: Components.Parameters.assignment_hyphen_id + public var assignmentId: Components.Parameters.AssignmentId /// Creates a new `Path`. /// /// - Parameters: - /// - assignment_id: The unique identifier of the classroom assignment. - public init(assignment_id: Components.Parameters.assignment_hyphen_id) { - self.assignment_id = assignment_id + /// - assignmentId: The unique identifier of the classroom assignment. + public init(assignmentId: Components.Parameters.AssignmentId) { + self.assignmentId = assignmentId } } - public var path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path + public var path: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Path /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query + public var query: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Query /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers + public var headers: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1230,9 +1239,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path, - query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init() + path: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Path, + query: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Query = .init(), + headers: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input.Headers = .init() ) { self.path = path self.query = query @@ -1244,12 +1253,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.classroom_hyphen_accepted_hyphen_assignment]) + case json([Components.Schemas.ClassroomAcceptedAssignment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.classroom_hyphen_accepted_hyphen_assignment] { + public var json: [Components.Schemas.ClassroomAcceptedAssignment] { get throws { switch self { case let .json(body): @@ -1259,12 +1268,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body + public var body: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body) { + public init(body: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok.Body) { self.body = body } } @@ -1273,12 +1282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok) + case ok(Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok { + public var ok: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok { get throws { switch self { case let .ok(response): @@ -1328,7 +1337,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /assignments/{assignment_id}/grades`. /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)`. - public enum classroom_sol_get_hyphen_assignment_hyphen_grades { + public enum ClassroomGetAssignmentGrades { public static let id: Swift.String = "classroom/get-assignment-grades" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/grades/GET/path`. @@ -1336,36 +1345,36 @@ public enum Operations { /// The unique identifier of the classroom assignment. /// /// - Remark: Generated from `#/paths/assignments/{assignment_id}/grades/GET/path/assignment_id`. - public var assignment_id: Components.Parameters.assignment_hyphen_id + public var assignmentId: Components.Parameters.AssignmentId /// Creates a new `Path`. /// /// - Parameters: - /// - assignment_id: The unique identifier of the classroom assignment. - public init(assignment_id: Components.Parameters.assignment_hyphen_id) { - self.assignment_id = assignment_id + /// - assignmentId: The unique identifier of the classroom assignment. + public init(assignmentId: Components.Parameters.AssignmentId) { + self.assignmentId = assignmentId } } - public var path: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Path + public var path: Operations.ClassroomGetAssignmentGrades.Input.Path /// - Remark: Generated from `#/paths/assignments/{assignment_id}/grades/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Headers + public var headers: Operations.ClassroomGetAssignmentGrades.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Path, - headers: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input.Headers = .init() + path: Operations.ClassroomGetAssignmentGrades.Input.Path, + headers: Operations.ClassroomGetAssignmentGrades.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1376,12 +1385,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/grades/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/assignments/{assignment_id}/grades/GET/responses/200/content/application\/json`. - case json([Components.Schemas.classroom_hyphen_assignment_hyphen_grade]) + case json([Components.Schemas.ClassroomAssignmentGrade]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.classroom_hyphen_assignment_hyphen_grade] { + public var json: [Components.Schemas.ClassroomAssignmentGrade] { get throws { switch self { case let .json(body): @@ -1391,12 +1400,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok.Body + public var body: Operations.ClassroomGetAssignmentGrades.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok.Body) { + public init(body: Operations.ClassroomGetAssignmentGrades.Output.Ok.Body) { self.body = body } } @@ -1405,12 +1414,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok) + case ok(Operations.ClassroomGetAssignmentGrades.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok { + public var ok: Operations.ClassroomGetAssignmentGrades.Output.Ok { get throws { switch self { case let .ok(response): @@ -1428,12 +1437,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1483,7 +1492,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /classrooms`. /// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)`. - public enum classroom_sol_list_hyphen_classrooms { + public enum ClassroomListClassrooms { public static let id: Swift.String = "classroom/list-classrooms" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/GET/query`. @@ -1491,45 +1500,45 @@ public enum Operations { /// 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)." /// /// - Remark: Generated from `#/paths/classrooms/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/classrooms/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.classroom_sol_list_hyphen_classrooms.Input.Query + public var query: Operations.ClassroomListClassrooms.Input.Query /// - Remark: Generated from `#/paths/classrooms/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_list_hyphen_classrooms.Input.Headers + public var headers: Operations.ClassroomListClassrooms.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - query: /// - headers: public init( - query: Operations.classroom_sol_list_hyphen_classrooms.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_classrooms.Input.Headers = .init() + query: Operations.ClassroomListClassrooms.Input.Query = .init(), + headers: Operations.ClassroomListClassrooms.Input.Headers = .init() ) { self.query = query self.headers = headers @@ -1540,12 +1549,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/classrooms/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_classroom]) + case json([Components.Schemas.SimpleClassroom]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_classroom] { + public var json: [Components.Schemas.SimpleClassroom] { get throws { switch self { case let .json(body): @@ -1555,12 +1564,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_list_hyphen_classrooms.Output.Ok.Body + public var body: Operations.ClassroomListClassrooms.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_list_hyphen_classrooms.Output.Ok.Body) { + public init(body: Operations.ClassroomListClassrooms.Output.Ok.Body) { self.body = body } } @@ -1569,12 +1578,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_list_hyphen_classrooms.Output.Ok) + case ok(Operations.ClassroomListClassrooms.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_list_hyphen_classrooms.Output.Ok { + public var ok: Operations.ClassroomListClassrooms.Output.Ok { get throws { switch self { case let .ok(response): @@ -1624,7 +1633,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)`. - public enum classroom_sol_get_hyphen_a_hyphen_classroom { + public enum ClassroomGetAClassroom { public static let id: Swift.String = "classroom/get-a-classroom" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/GET/path`. @@ -1632,36 +1641,36 @@ public enum Operations { /// The unique identifier of the classroom. /// /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/GET/path/classroom_id`. - public var classroom_id: Components.Parameters.classroom_hyphen_id + public var classroomId: Components.Parameters.ClassroomId /// Creates a new `Path`. /// /// - Parameters: - /// - classroom_id: The unique identifier of the classroom. - public init(classroom_id: Components.Parameters.classroom_hyphen_id) { - self.classroom_id = classroom_id + /// - classroomId: The unique identifier of the classroom. + public init(classroomId: Components.Parameters.ClassroomId) { + self.classroomId = classroomId } } - public var path: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Path + public var path: Operations.ClassroomGetAClassroom.Input.Path /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Headers + public var headers: Operations.ClassroomGetAClassroom.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Path, - headers: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input.Headers = .init() + path: Operations.ClassroomGetAClassroom.Input.Path, + headers: Operations.ClassroomGetAClassroom.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1672,12 +1681,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.classroom) + case json(Components.Schemas.Classroom) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.classroom { + public var json: Components.Schemas.Classroom { get throws { switch self { case let .json(body): @@ -1687,12 +1696,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok.Body + public var body: Operations.ClassroomGetAClassroom.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok.Body) { + public init(body: Operations.ClassroomGetAClassroom.Output.Ok.Body) { self.body = body } } @@ -1701,12 +1710,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok) + case ok(Operations.ClassroomGetAClassroom.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok { + public var ok: Operations.ClassroomGetAClassroom.Output.Ok { get throws { switch self { case let .ok(response): @@ -1724,12 +1733,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1779,7 +1788,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /classrooms/{classroom_id}/assignments`. /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)`. - public enum classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom { + public enum ClassroomListAssignmentsForAClassroom { public static let id: Swift.String = "classroom/list-assignments-for-a-classroom" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/path`. @@ -1787,52 +1796,52 @@ public enum Operations { /// The unique identifier of the classroom. /// /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/path/classroom_id`. - public var classroom_id: Components.Parameters.classroom_hyphen_id + public var classroomId: Components.Parameters.ClassroomId /// Creates a new `Path`. /// /// - Parameters: - /// - classroom_id: The unique identifier of the classroom. - public init(classroom_id: Components.Parameters.classroom_hyphen_id) { - self.classroom_id = classroom_id + /// - classroomId: The unique identifier of the classroom. + public init(classroomId: Components.Parameters.ClassroomId) { + self.classroomId = classroomId } } - public var path: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Path + public var path: Operations.ClassroomListAssignmentsForAClassroom.Input.Path /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage } } - public var query: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Query + public var query: Operations.ClassroomListAssignmentsForAClassroom.Input.Query /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Headers + public var headers: Operations.ClassroomListAssignmentsForAClassroom.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1840,9 +1849,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Path, - query: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Query = .init(), - headers: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input.Headers = .init() + path: Operations.ClassroomListAssignmentsForAClassroom.Input.Path, + query: Operations.ClassroomListAssignmentsForAClassroom.Input.Query = .init(), + headers: Operations.ClassroomListAssignmentsForAClassroom.Input.Headers = .init() ) { self.path = path self.query = query @@ -1854,12 +1863,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/classrooms/{classroom_id}/assignments/GET/responses/200/content/application\/json`. - case json([Components.Schemas.simple_hyphen_classroom_hyphen_assignment]) + case json([Components.Schemas.SimpleClassroomAssignment]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.simple_hyphen_classroom_hyphen_assignment] { + public var json: [Components.Schemas.SimpleClassroomAssignment] { get throws { switch self { case let .json(body): @@ -1869,12 +1878,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok.Body + public var body: Operations.ClassroomListAssignmentsForAClassroom.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok.Body) { + public init(body: Operations.ClassroomListAssignmentsForAClassroom.Output.Ok.Body) { self.body = body } } @@ -1883,12 +1892,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok) + case ok(Operations.ClassroomListAssignmentsForAClassroom.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok { + public var ok: Operations.ClassroomListAssignmentsForAClassroom.Output.Ok { get throws { switch self { case let .ok(response): From 3e783e19b28c821ac95964ae3a4a968ef12b1e0a Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:07:32 -0700 Subject: [PATCH 39/46] Commit via running ake Sources/desktop --- Sources/desktop/Types.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/desktop/Types.swift b/Sources/desktop/Types.swift index 2a210decbf..c3d1209ecf 100644 --- a/Sources/desktop/Types.swift +++ b/Sources/desktop/Types.swift @@ -18,6 +18,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", From 9c569c924997262aab5d6e052c31813dd18ddc15 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:07:45 -0700 Subject: [PATCH 40/46] Commit via running ake Sources/enterprise-teams --- Sources/enterprise-teams/Types.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/enterprise-teams/Types.swift b/Sources/enterprise-teams/Types.swift index 2a210decbf..c3d1209ecf 100644 --- a/Sources/enterprise-teams/Types.swift +++ b/Sources/enterprise-teams/Types.swift @@ -18,6 +18,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", From 7882e6ed2c777759930699f5caa502e8cde17c4e Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:07:59 -0700 Subject: [PATCH 41/46] Commit via running ake Sources/code-security --- Sources/code-security/Client.swift | 358 +-- Sources/code-security/Types.swift | 4231 ++++++++++++++-------------- 2 files changed, 2339 insertions(+), 2250 deletions(-) diff --git a/Sources/code-security/Client.swift b/Sources/code-security/Client.swift index 19252b6959..a6b1e09031 100644 --- a/Sources/code-security/Client.swift +++ b/Sources/code-security/Client.swift @@ -48,10 +48,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output { + public func codeSecurityGetConfigurationsForEnterprise(_ input: Operations.CodeSecurityGetConfigurationsForEnterprise.Input) async throws -> Operations.CodeSecurityGetConfigurationsForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecurityGetConfigurationsForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations", @@ -69,7 +69,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -95,7 +95,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.CodeSecurityGetConfigurationsForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -105,7 +105,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_security_hyphen_configuration].self, + [Components.Schemas.CodeSecurityConfiguration].self, from: responseBody, transforming: { value in .json(value) @@ -117,7 +117,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -127,7 +127,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -139,7 +139,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -149,7 +149,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -181,10 +181,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)`. - public func code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { + public func codeSecurityCreateConfigurationForEnterprise(_ input: Operations.CodeSecurityCreateConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityCreateConfigurationForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecurityCreateConfigurationForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations", @@ -216,7 +216,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Created.Body + let body: Operations.CodeSecurityCreateConfigurationForEnterprise.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -226,7 +226,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -238,7 +238,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -249,7 +249,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -257,10 +257,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -269,7 +269,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -279,7 +279,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -291,7 +291,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -301,7 +301,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -333,10 +333,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/defaults/get(code-security/get-default-configurations-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output { + public func codeSecurityGetDefaultConfigurationsForEnterprise(_ input: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input) async throws -> Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/defaults", @@ -359,7 +359,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -369,7 +369,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations.self, + Components.Schemas.CodeSecurityDefaultConfigurations.self, from: responseBody, transforming: { value in .json(value) @@ -401,16 +401,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { + public func codeSecurityGetSingleConfigurationForEnterprise(_ input: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecurityGetSingleConfigurationForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -428,7 +428,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -438,7 +438,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -452,7 +452,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -462,7 +462,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -474,7 +474,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -484,7 +484,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -516,16 +516,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)`. - public func code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output { + public func codeSecurityUpdateEnterpriseConfiguration(_ input: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityUpdateEnterpriseConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.id, + forOperation: Operations.CodeSecurityUpdateEnterpriseConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -552,7 +552,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output.Ok.Body + let body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -562,7 +562,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -576,7 +576,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -586,7 +586,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -598,7 +598,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -608,7 +608,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -620,7 +620,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -630,7 +630,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -664,16 +664,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)`. - public func code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { + public func codeSecurityDeleteConfigurationForEnterprise(_ input: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityDeleteConfigurationForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecurityDeleteConfigurationForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -693,7 +693,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -704,7 +704,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -712,10 +712,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -724,7 +724,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -734,7 +734,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -746,7 +746,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -756,7 +756,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -768,7 +768,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -778,7 +778,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -812,16 +812,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)`. - public func code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Output { + public func codeSecurityAttachEnterpriseConfiguration(_ input: Operations.CodeSecurityAttachEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityAttachEnterpriseConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.id, + forOperation: Operations.CodeSecurityAttachEnterpriseConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}/attach", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -848,7 +848,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -870,7 +870,7 @@ public struct Client: APIProtocol { return .accepted(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -880,7 +880,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -892,7 +892,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -902,7 +902,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -914,7 +914,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -924,7 +924,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -958,16 +958,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)`. - public func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output { + public func codeSecuritySetConfigurationAsDefaultForEnterprise(_ input: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input) async throws -> Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.id, + forOperation: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}/defaults", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -994,7 +994,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body + let body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1004,7 +1004,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body.jsonPayload.self, + Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -1016,7 +1016,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1026,7 +1026,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1038,7 +1038,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1048,7 +1048,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1080,16 +1080,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)`. - public func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output { + public func codeSecurityGetRepositoriesForEnterpriseConfiguration(_ input: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.id, + forOperation: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/enterprises/{}/code-security/configurations/{}/repositories", parameters: [ input.path.enterprise, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1102,7 +1102,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1135,7 +1135,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output.Ok.Body + let body: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1145,7 +1145,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories].self, + [Components.Schemas.CodeSecurityConfigurationRepositories].self, from: responseBody, transforming: { value in .json(value) @@ -1157,7 +1157,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1167,7 +1167,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1179,7 +1179,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1189,7 +1189,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1221,10 +1221,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`. - public func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org(_ input: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output { + public func codeSecurityGetConfigurationsForOrg(_ input: Operations.CodeSecurityGetConfigurationsForOrg.Input) async throws -> Operations.CodeSecurityGetConfigurationsForOrg.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.id, + forOperation: Operations.CodeSecurityGetConfigurationsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations", @@ -1242,14 +1242,14 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "target_type", - value: input.query.target_type + value: input.query.targetType ) try converter.setQueryItemAsURI( in: &request, style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -1275,7 +1275,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.CodeSecurityGetConfigurationsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1285,7 +1285,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_security_hyphen_configuration].self, + [Components.Schemas.CodeSecurityConfiguration].self, from: responseBody, transforming: { value in .json(value) @@ -1297,7 +1297,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1307,7 +1307,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1319,7 +1319,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1329,7 +1329,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1361,10 +1361,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/post(code-security/create-configuration)`. - public func code_hyphen_security_sol_create_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration.Output { + public func codeSecurityCreateConfiguration(_ input: Operations.CodeSecurityCreateConfiguration.Input) async throws -> Operations.CodeSecurityCreateConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_create_hyphen_configuration.id, + forOperation: Operations.CodeSecurityCreateConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations", @@ -1396,7 +1396,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Output.Created.Body + let body: Operations.CodeSecurityCreateConfiguration.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1406,7 +1406,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -1438,10 +1438,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`. - public func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations(_ input: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output { + public func codeSecurityGetDefaultConfigurations(_ input: Operations.CodeSecurityGetDefaultConfigurations.Input) async throws -> Operations.CodeSecurityGetDefaultConfigurations.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.id, + forOperation: Operations.CodeSecurityGetDefaultConfigurations.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/defaults", @@ -1464,7 +1464,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output.Ok.Body + let body: Operations.CodeSecurityGetDefaultConfigurations.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1474,7 +1474,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations.self, + Components.Schemas.CodeSecurityDefaultConfigurations.self, from: responseBody, transforming: { value in .json(value) @@ -1488,7 +1488,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1498,7 +1498,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1510,7 +1510,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1520,7 +1520,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1553,10 +1553,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/detach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)`. - public func code_hyphen_security_sol_detach_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_detach_hyphen_configuration.Output { + public func codeSecurityDetachConfiguration(_ input: Operations.CodeSecurityDetachConfiguration.Input) async throws -> Operations.CodeSecurityDetachConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_detach_hyphen_configuration.id, + forOperation: Operations.CodeSecurityDetachConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/detach", @@ -1590,7 +1590,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1601,7 +1601,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1609,10 +1609,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1621,7 +1621,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1631,7 +1631,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1643,7 +1643,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1653,7 +1653,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1665,7 +1665,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1675,7 +1675,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1707,16 +1707,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)`. - public func code_hyphen_security_sol_get_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration.Output { + public func codeSecurityGetConfiguration(_ input: Operations.CodeSecurityGetConfiguration.Input) async throws -> Operations.CodeSecurityGetConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_configuration.id, + forOperation: Operations.CodeSecurityGetConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1734,7 +1734,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_configuration.Output.Ok.Body + let body: Operations.CodeSecurityGetConfiguration.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1744,7 +1744,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -1758,7 +1758,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1768,7 +1768,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1780,7 +1780,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1790,7 +1790,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1822,16 +1822,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)`. - public func code_hyphen_security_sol_update_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_update_hyphen_configuration.Output { + public func codeSecurityUpdateConfiguration(_ input: Operations.CodeSecurityUpdateConfiguration.Input) async throws -> Operations.CodeSecurityUpdateConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_update_hyphen_configuration.id, + forOperation: Operations.CodeSecurityUpdateConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1858,7 +1858,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.Ok.Body + let body: Operations.CodeSecurityUpdateConfiguration.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1868,7 +1868,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration.self, + Components.Schemas.CodeSecurityConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -1904,16 +1904,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)`. - public func code_hyphen_security_sol_delete_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration.Output { + public func codeSecurityDeleteConfiguration(_ input: Operations.CodeSecurityDeleteConfiguration.Input) async throws -> Operations.CodeSecurityDeleteConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_delete_hyphen_configuration.id, + forOperation: Operations.CodeSecurityDeleteConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -1933,7 +1933,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1944,7 +1944,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1952,10 +1952,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -1964,7 +1964,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1974,7 +1974,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -1986,7 +1986,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -1996,7 +1996,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2008,7 +2008,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.conflict.Body + let body: Components.Responses.Conflict.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2018,7 +2018,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2052,16 +2052,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-configuration)`. - public func code_hyphen_security_sol_attach_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_configuration.Output { + public func codeSecurityAttachConfiguration(_ input: Operations.CodeSecurityAttachConfiguration.Input) async throws -> Operations.CodeSecurityAttachConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_attach_hyphen_configuration.id, + forOperation: Operations.CodeSecurityAttachConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}/attach", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2088,7 +2088,7 @@ public struct Client: APIProtocol { switch response.status.code { case 202: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.accepted.Body + let body: Components.Responses.Accepted.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2132,16 +2132,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)`. - public func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default(_ input: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output { + public func codeSecuritySetConfigurationAsDefault(_ input: Operations.CodeSecuritySetConfigurationAsDefault.Input) async throws -> Operations.CodeSecuritySetConfigurationAsDefault.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.id, + forOperation: Operations.CodeSecuritySetConfigurationAsDefault.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}/defaults", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2168,7 +2168,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body + let body: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2178,7 +2178,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body.jsonPayload.self, + Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -2190,7 +2190,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2200,7 +2200,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2212,7 +2212,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2222,7 +2222,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2254,16 +2254,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`. - public func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output { + public func codeSecurityGetRepositoriesForConfiguration(_ input: Operations.CodeSecurityGetRepositoriesForConfiguration.Input) async throws -> Operations.CodeSecurityGetRepositoriesForConfiguration.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.id, + forOperation: Operations.CodeSecurityGetRepositoriesForConfiguration.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/code-security/configurations/{}/repositories", parameters: [ input.path.org, - input.path.configuration_id + input.path.configurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -2276,7 +2276,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -2309,7 +2309,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output.Ok.Body + let body: Operations.CodeSecurityGetRepositoriesForConfiguration.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2319,7 +2319,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories].self, + [Components.Schemas.CodeSecurityConfigurationRepositories].self, from: responseBody, transforming: { value in .json(value) @@ -2331,7 +2331,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2341,7 +2341,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2353,7 +2353,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2363,7 +2363,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2395,10 +2395,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-security-configuration`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)`. - public func code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository(_ input: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output { + public func codeSecurityGetConfigurationForRepository(_ input: Operations.CodeSecurityGetConfigurationForRepository.Input) async throws -> Operations.CodeSecurityGetConfigurationForRepository.Output { try await client.send( input: input, - forOperation: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.id, + forOperation: Operations.CodeSecurityGetConfigurationForRepository.id, serializer: { input in let path = try converter.renderedPath( template: "/repos/{}/{}/code-security-configuration", @@ -2422,7 +2422,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output.Ok.Body + let body: Operations.CodeSecurityGetConfigurationForRepository.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2432,7 +2432,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository.self, + Components.Schemas.CodeSecurityConfigurationForRepository.self, from: responseBody, transforming: { value in .json(value) @@ -2448,7 +2448,7 @@ public struct Client: APIProtocol { return .notModified(.init()) case 403: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.forbidden.Body + let body: Components.Responses.Forbidden.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2458,7 +2458,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -2470,7 +2470,7 @@ public struct Client: APIProtocol { return .forbidden(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -2480,7 +2480,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index f32aebc6b2..d6eb34a464 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -21,7 +21,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)`. - func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output + func codeSecurityGetConfigurationsForEnterprise(_ input: Operations.CodeSecurityGetConfigurationsForEnterprise.Input) async throws -> Operations.CodeSecurityGetConfigurationsForEnterprise.Output /// Create a code security configuration for an enterprise /// /// Creates a code security configuration in an enterprise. @@ -32,7 +32,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)`. - func code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output + func codeSecurityCreateConfigurationForEnterprise(_ input: Operations.CodeSecurityCreateConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityCreateConfigurationForEnterprise.Output /// Get default code security configurations for an enterprise /// /// Lists the default code security configurations for an enterprise. @@ -43,7 +43,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/defaults/get(code-security/get-default-configurations-for-enterprise)`. - func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output + func codeSecurityGetDefaultConfigurationsForEnterprise(_ input: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input) async throws -> Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output /// Retrieve a code security configuration of an enterprise /// /// Gets a code security configuration available in an enterprise. @@ -54,7 +54,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)`. - func code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output + func codeSecurityGetSingleConfigurationForEnterprise(_ input: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output /// Update a custom code security configuration for an enterprise /// /// Updates a code security configuration in an enterprise. @@ -65,7 +65,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)`. - func code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output + func codeSecurityUpdateEnterpriseConfiguration(_ input: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityUpdateEnterpriseConfiguration.Output /// Delete a code security configuration for an enterprise /// /// Deletes a code security configuration from an enterprise. @@ -78,7 +78,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)`. - func code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Output + func codeSecurityDeleteConfigurationForEnterprise(_ input: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input) async throws -> Operations.CodeSecurityDeleteConfigurationForEnterprise.Output /// Attach an enterprise configuration to repositories /// /// Attaches an enterprise code security configuration to repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration. @@ -91,7 +91,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)`. - func code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Output + func codeSecurityAttachEnterpriseConfiguration(_ input: Operations.CodeSecurityAttachEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityAttachEnterpriseConfiguration.Output /// Set a code security configuration as a default for an enterprise /// /// Sets a code security configuration as a default to be applied to new repositories in your enterprise. @@ -104,7 +104,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)`. - func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise(_ input: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output + func codeSecuritySetConfigurationAsDefaultForEnterprise(_ input: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input) async throws -> Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output /// Get repositories associated with an enterprise code security configuration /// /// Lists the repositories associated with an enterprise code security configuration in an organization. @@ -115,7 +115,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)`. - func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output + func codeSecurityGetRepositoriesForEnterpriseConfiguration(_ input: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input) async throws -> Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output /// Get code security configurations for an organization /// /// Lists all code security configurations available in an organization. @@ -126,7 +126,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`. - func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org(_ input: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output + func codeSecurityGetConfigurationsForOrg(_ input: Operations.CodeSecurityGetConfigurationsForOrg.Input) async throws -> Operations.CodeSecurityGetConfigurationsForOrg.Output /// Create a code security configuration /// /// Creates a code security configuration in an organization. @@ -137,7 +137,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/post(code-security/create-configuration)`. - func code_hyphen_security_sol_create_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration.Output + func codeSecurityCreateConfiguration(_ input: Operations.CodeSecurityCreateConfiguration.Input) async throws -> Operations.CodeSecurityCreateConfiguration.Output /// Get default code security configurations /// /// Lists the default code security configurations for an organization. @@ -148,7 +148,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`. - func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations(_ input: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output + func codeSecurityGetDefaultConfigurations(_ input: Operations.CodeSecurityGetDefaultConfigurations.Input) async throws -> Operations.CodeSecurityGetDefaultConfigurations.Output /// Detach configurations from repositories /// /// Detach code security configuration(s) from a set of repositories. @@ -160,7 +160,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/detach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)`. - func code_hyphen_security_sol_detach_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_detach_hyphen_configuration.Output + func codeSecurityDetachConfiguration(_ input: Operations.CodeSecurityDetachConfiguration.Input) async throws -> Operations.CodeSecurityDetachConfiguration.Output /// Get a code security configuration /// /// Gets a code security configuration available in an organization. @@ -171,7 +171,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)`. - func code_hyphen_security_sol_get_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration.Output + func codeSecurityGetConfiguration(_ input: Operations.CodeSecurityGetConfiguration.Input) async throws -> Operations.CodeSecurityGetConfiguration.Output /// Update a code security configuration /// /// Updates a code security configuration in an organization. @@ -182,7 +182,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)`. - func code_hyphen_security_sol_update_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_update_hyphen_configuration.Output + func codeSecurityUpdateConfiguration(_ input: Operations.CodeSecurityUpdateConfiguration.Input) async throws -> Operations.CodeSecurityUpdateConfiguration.Output /// Delete a code security configuration /// /// Deletes the desired code security configuration from an organization. @@ -195,7 +195,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)`. - func code_hyphen_security_sol_delete_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration.Output + func codeSecurityDeleteConfiguration(_ input: Operations.CodeSecurityDeleteConfiguration.Input) async throws -> Operations.CodeSecurityDeleteConfiguration.Output /// Attach a configuration to repositories /// /// Attach a code security configuration to a set of repositories. If the repositories specified are already attached to a configuration, they will be re-attached to the provided configuration. @@ -208,7 +208,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-configuration)`. - func code_hyphen_security_sol_attach_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_configuration.Output + func codeSecurityAttachConfiguration(_ input: Operations.CodeSecurityAttachConfiguration.Input) async throws -> Operations.CodeSecurityAttachConfiguration.Output /// Set a code security configuration as a default for an organization /// /// Sets a code security configuration as a default to be applied to new repositories in your organization. @@ -221,7 +221,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)`. - func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default(_ input: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output + func codeSecuritySetConfigurationAsDefault(_ input: Operations.CodeSecuritySetConfigurationAsDefault.Input) async throws -> Operations.CodeSecuritySetConfigurationAsDefault.Output /// Get repositories associated with a code security configuration /// /// Lists the repositories associated with a code security configuration in an organization. @@ -232,7 +232,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`. - func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration(_ input: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output + func codeSecurityGetRepositoriesForConfiguration(_ input: Operations.CodeSecurityGetRepositoriesForConfiguration.Input) async throws -> Operations.CodeSecurityGetRepositoriesForConfiguration.Output /// Get the code security configuration associated with a repository /// /// Get the code security configuration that manages a repository's code security settings. @@ -243,7 +243,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-security-configuration`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)`. - func code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository(_ input: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output + func codeSecurityGetConfigurationForRepository(_ input: Operations.CodeSecurityGetConfigurationForRepository.Input) async throws -> Operations.CodeSecurityGetConfigurationForRepository.Output } /// Convenience overloads for operation inputs. @@ -258,12 +258,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input( + public func codeSecurityGetConfigurationsForEnterprise( + path: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Path, + query: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Query = .init(), + headers: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetConfigurationsForEnterprise.Output { + try await codeSecurityGetConfigurationsForEnterprise(Operations.CodeSecurityGetConfigurationsForEnterprise.Input( path: path, query: query, headers: headers @@ -279,12 +279,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)`. - public func code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input( + public func codeSecurityCreateConfigurationForEnterprise( + path: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Headers = .init(), + body: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body + ) async throws -> Operations.CodeSecurityCreateConfigurationForEnterprise.Output { + try await codeSecurityCreateConfigurationForEnterprise(Operations.CodeSecurityCreateConfigurationForEnterprise.Input( path: path, headers: headers, body: body @@ -300,11 +300,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/defaults/get(code-security/get-default-configurations-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input( + public func codeSecurityGetDefaultConfigurationsForEnterprise( + path: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Path, + headers: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output { + try await codeSecurityGetDefaultConfigurationsForEnterprise(Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input( path: path, headers: headers )) @@ -319,11 +319,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)`. - public func code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input( + public func codeSecurityGetSingleConfigurationForEnterprise( + path: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output { + try await codeSecurityGetSingleConfigurationForEnterprise(Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input( path: path, headers: headers )) @@ -338,12 +338,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)`. - public func code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration( - path: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output { - try await code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration(Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input( + public func codeSecurityUpdateEnterpriseConfiguration( + path: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Path, + headers: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityUpdateEnterpriseConfiguration.Output { + try await codeSecurityUpdateEnterpriseConfiguration(Operations.CodeSecurityUpdateEnterpriseConfiguration.Input( path: path, headers: headers, body: body @@ -361,11 +361,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)`. - public func code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input( + public func codeSecurityDeleteConfigurationForEnterprise( + path: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityDeleteConfigurationForEnterprise.Output { + try await codeSecurityDeleteConfigurationForEnterprise(Operations.CodeSecurityDeleteConfigurationForEnterprise.Input( path: path, headers: headers )) @@ -382,12 +382,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)`. - public func code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration( - path: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Output { - try await code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration(Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input( + public func codeSecurityAttachEnterpriseConfiguration( + path: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Path, + headers: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityAttachEnterpriseConfiguration.Output { + try await codeSecurityAttachEnterpriseConfiguration(Operations.CodeSecurityAttachEnterpriseConfiguration.Input( path: path, headers: headers, body: body @@ -405,12 +405,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)`. - public func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise( - path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output { - try await code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input( + public func codeSecuritySetConfigurationAsDefaultForEnterprise( + path: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Path, + headers: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Headers = .init(), + body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body + ) async throws -> Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output { + try await codeSecuritySetConfigurationAsDefaultForEnterprise(Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input( path: path, headers: headers, body: body @@ -426,12 +426,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)`. - public func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration( - path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output { - try await code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration(Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input( + public func codeSecurityGetRepositoriesForEnterpriseConfiguration( + path: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Path, + query: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Query = .init(), + headers: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output { + try await codeSecurityGetRepositoriesForEnterpriseConfiguration(Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input( path: path, query: query, headers: headers @@ -447,12 +447,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`. - public func code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org( - path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output { - try await code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org(Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input( + public func codeSecurityGetConfigurationsForOrg( + path: Operations.CodeSecurityGetConfigurationsForOrg.Input.Path, + query: Operations.CodeSecurityGetConfigurationsForOrg.Input.Query = .init(), + headers: Operations.CodeSecurityGetConfigurationsForOrg.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetConfigurationsForOrg.Output { + try await codeSecurityGetConfigurationsForOrg(Operations.CodeSecurityGetConfigurationsForOrg.Input( path: path, query: query, headers: headers @@ -468,12 +468,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/post(code-security/create-configuration)`. - public func code_hyphen_security_sol_create_hyphen_configuration( - path: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_create_hyphen_configuration.Output { - try await code_hyphen_security_sol_create_hyphen_configuration(Operations.code_hyphen_security_sol_create_hyphen_configuration.Input( + public func codeSecurityCreateConfiguration( + path: Operations.CodeSecurityCreateConfiguration.Input.Path, + headers: Operations.CodeSecurityCreateConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityCreateConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityCreateConfiguration.Output { + try await codeSecurityCreateConfiguration(Operations.CodeSecurityCreateConfiguration.Input( path: path, headers: headers, body: body @@ -489,11 +489,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`. - public func code_hyphen_security_sol_get_hyphen_default_hyphen_configurations( - path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output { - try await code_hyphen_security_sol_get_hyphen_default_hyphen_configurations(Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input( + public func codeSecurityGetDefaultConfigurations( + path: Operations.CodeSecurityGetDefaultConfigurations.Input.Path, + headers: Operations.CodeSecurityGetDefaultConfigurations.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetDefaultConfigurations.Output { + try await codeSecurityGetDefaultConfigurations(Operations.CodeSecurityGetDefaultConfigurations.Input( path: path, headers: headers )) @@ -509,12 +509,12 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/detach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)`. - public func code_hyphen_security_sol_detach_hyphen_configuration( - path: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_detach_hyphen_configuration.Output { - try await code_hyphen_security_sol_detach_hyphen_configuration(Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input( + public func codeSecurityDetachConfiguration( + path: Operations.CodeSecurityDetachConfiguration.Input.Path, + headers: Operations.CodeSecurityDetachConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityDetachConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityDetachConfiguration.Output { + try await codeSecurityDetachConfiguration(Operations.CodeSecurityDetachConfiguration.Input( path: path, headers: headers, body: body @@ -530,11 +530,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)`. - public func code_hyphen_security_sol_get_hyphen_configuration( - path: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration.Output { - try await code_hyphen_security_sol_get_hyphen_configuration(Operations.code_hyphen_security_sol_get_hyphen_configuration.Input( + public func codeSecurityGetConfiguration( + path: Operations.CodeSecurityGetConfiguration.Input.Path, + headers: Operations.CodeSecurityGetConfiguration.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetConfiguration.Output { + try await codeSecurityGetConfiguration(Operations.CodeSecurityGetConfiguration.Input( path: path, headers: headers )) @@ -549,12 +549,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)`. - public func code_hyphen_security_sol_update_hyphen_configuration( - path: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_update_hyphen_configuration.Output { - try await code_hyphen_security_sol_update_hyphen_configuration(Operations.code_hyphen_security_sol_update_hyphen_configuration.Input( + public func codeSecurityUpdateConfiguration( + path: Operations.CodeSecurityUpdateConfiguration.Input.Path, + headers: Operations.CodeSecurityUpdateConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityUpdateConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityUpdateConfiguration.Output { + try await codeSecurityUpdateConfiguration(Operations.CodeSecurityUpdateConfiguration.Input( path: path, headers: headers, body: body @@ -572,11 +572,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)`. - public func code_hyphen_security_sol_delete_hyphen_configuration( - path: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_delete_hyphen_configuration.Output { - try await code_hyphen_security_sol_delete_hyphen_configuration(Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input( + public func codeSecurityDeleteConfiguration( + path: Operations.CodeSecurityDeleteConfiguration.Input.Path, + headers: Operations.CodeSecurityDeleteConfiguration.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityDeleteConfiguration.Output { + try await codeSecurityDeleteConfiguration(Operations.CodeSecurityDeleteConfiguration.Input( path: path, headers: headers )) @@ -593,12 +593,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-configuration)`. - public func code_hyphen_security_sol_attach_hyphen_configuration( - path: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_attach_hyphen_configuration.Output { - try await code_hyphen_security_sol_attach_hyphen_configuration(Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input( + public func codeSecurityAttachConfiguration( + path: Operations.CodeSecurityAttachConfiguration.Input.Path, + headers: Operations.CodeSecurityAttachConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityAttachConfiguration.Input.Body + ) async throws -> Operations.CodeSecurityAttachConfiguration.Output { + try await codeSecurityAttachConfiguration(Operations.CodeSecurityAttachConfiguration.Input( path: path, headers: headers, body: body @@ -616,12 +616,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)`. - public func code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default( - path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Path, - headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body - ) async throws -> Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output { - try await code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input( + public func codeSecuritySetConfigurationAsDefault( + path: Operations.CodeSecuritySetConfigurationAsDefault.Input.Path, + headers: Operations.CodeSecuritySetConfigurationAsDefault.Input.Headers = .init(), + body: Operations.CodeSecuritySetConfigurationAsDefault.Input.Body + ) async throws -> Operations.CodeSecuritySetConfigurationAsDefault.Output { + try await codeSecuritySetConfigurationAsDefault(Operations.CodeSecuritySetConfigurationAsDefault.Input( path: path, headers: headers, body: body @@ -637,12 +637,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`. - public func code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration( - path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output { - try await code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration(Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input( + public func codeSecurityGetRepositoriesForConfiguration( + path: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Path, + query: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Query = .init(), + headers: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetRepositoriesForConfiguration.Output { + try await codeSecurityGetRepositoriesForConfiguration(Operations.CodeSecurityGetRepositoriesForConfiguration.Input( path: path, query: query, headers: headers @@ -658,11 +658,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-security-configuration`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)`. - public func code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository( - path: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Headers = .init() - ) async throws -> Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output { - try await code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository(Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input( + public func codeSecurityGetConfigurationForRepository( + path: Operations.CodeSecurityGetConfigurationForRepository.Input.Path, + headers: Operations.CodeSecurityGetConfigurationForRepository.Input.Headers = .init() + ) async throws -> Operations.CodeSecurityGetConfigurationForRepository.Output { + try await codeSecurityGetConfigurationForRepository(Operations.CodeSecurityGetConfigurationForRepository.Input( path: path, headers: headers )) @@ -671,6 +671,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -686,7 +695,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -696,171 +705,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -868,11 +877,11 @@ public enum Components { /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -881,25 +890,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -907,7 +916,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -917,7 +926,7 @@ public enum Components { /// A code security configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration`. - public struct code_hyphen_security_hyphen_configuration: Codable, Hashable, Sendable { + public struct CodeSecurityConfiguration: Codable, Hashable, Sendable { /// The ID of the code security configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/id`. @@ -929,7 +938,7 @@ public enum Components { /// The type of the code security configuration. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/target_type`. - @frozen public enum target_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case global = "global" case organization = "organization" case enterprise = "enterprise" @@ -937,7 +946,7 @@ public enum Components { /// The type of the code security configuration. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/target_type`. - public var target_type: Components.Schemas.code_hyphen_security_hyphen_configuration.target_typePayload? + public var targetType: Components.Schemas.CodeSecurityConfiguration.TargetTypePayload? /// A description of the code security configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/description`. @@ -945,239 +954,239 @@ public enum Components { /// The enablement status of GitHub Advanced Security /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/advanced_security`. - @frozen public enum advanced_securityPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdvancedSecurityPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case code_security = "code_security" - case secret_protection = "secret_protection" + case codeSecurity = "code_security" + case secretProtection = "secret_protection" } /// The enablement status of GitHub Advanced Security /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/advanced_security`. - public var advanced_security: Components.Schemas.code_hyphen_security_hyphen_configuration.advanced_securityPayload? + public var advancedSecurity: Components.Schemas.CodeSecurityConfiguration.AdvancedSecurityPayload? /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph`. - @frozen public enum dependency_graphPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph`. - public var dependency_graph: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graphPayload? + public var dependencyGraph: Components.Schemas.CodeSecurityConfiguration.DependencyGraphPayload? /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph_autosubmit_action`. - @frozen public enum dependency_graph_autosubmit_actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphAutosubmitActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph_autosubmit_action`. - public var dependency_graph_autosubmit_action: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graph_autosubmit_actionPayload? + public var dependencyGraphAutosubmitAction: Components.Schemas.CodeSecurityConfiguration.DependencyGraphAutosubmitActionPayload? /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph_autosubmit_action_options`. - public struct dependency_graph_autosubmit_action_optionsPayload: Codable, Hashable, Sendable { + public struct DependencyGraphAutosubmitActionOptionsPayload: Codable, Hashable, Sendable { /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph_autosubmit_action_options/labeled_runners`. - public var labeled_runners: Swift.Bool? - /// Creates a new `dependency_graph_autosubmit_action_optionsPayload`. + public var labeledRunners: Swift.Bool? + /// Creates a new `DependencyGraphAutosubmitActionOptionsPayload`. /// /// - Parameters: - /// - labeled_runners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. - public init(labeled_runners: Swift.Bool? = nil) { - self.labeled_runners = labeled_runners + /// - labeledRunners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. + public init(labeledRunners: Swift.Bool? = nil) { + self.labeledRunners = labeledRunners } public enum CodingKeys: String, CodingKey { - case labeled_runners + case labeledRunners = "labeled_runners" } } /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependency_graph_autosubmit_action_options`. - public var dependency_graph_autosubmit_action_options: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graph_autosubmit_action_optionsPayload? + public var dependencyGraphAutosubmitActionOptions: Components.Schemas.CodeSecurityConfiguration.DependencyGraphAutosubmitActionOptionsPayload? /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependabot_alerts`. - @frozen public enum dependabot_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependabot_alerts`. - public var dependabot_alerts: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_alertsPayload? + public var dependabotAlerts: Components.Schemas.CodeSecurityConfiguration.DependabotAlertsPayload? /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependabot_security_updates`. - @frozen public enum dependabot_security_updatesPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecurityUpdatesPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/dependabot_security_updates`. - public var dependabot_security_updates: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Components.Schemas.CodeSecurityConfiguration.DependabotSecurityUpdatesPayload? /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup`. - @frozen public enum code_scanning_default_setupPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDefaultSetupPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup`. - public var code_scanning_default_setup: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setupPayload? + public var codeScanningDefaultSetup: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupPayload? /// Feature options for code scanning default setup /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options`. - public struct code_scanning_default_setup_optionsPayload: Codable, Hashable, Sendable { + public struct CodeScanningDefaultSetupOptionsPayload: Codable, Hashable, Sendable { /// Whether to use labeled runners or standard GitHub runners. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_type`. - @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum RunnerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case standard = "standard" case labeled = "labeled" - case not_set = "not_set" + case notSet = "not_set" } /// Whether to use labeled runners or standard GitHub runners. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_type`. - public var runner_type: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload.runner_typePayload? + public var runnerType: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupOptionsPayload.RunnerTypePayload? /// The label of the runner to use for code scanning when runner_type is 'labeled'. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options/runner_label`. - public var runner_label: Swift.String? - /// Creates a new `code_scanning_default_setup_optionsPayload`. + public var runnerLabel: Swift.String? + /// Creates a new `CodeScanningDefaultSetupOptionsPayload`. /// /// - Parameters: - /// - runner_type: Whether to use labeled runners or standard GitHub runners. - /// - runner_label: The label of the runner to use for code scanning when runner_type is 'labeled'. + /// - runnerType: Whether to use labeled runners or standard GitHub runners. + /// - runnerLabel: The label of the runner to use for code scanning when runner_type is 'labeled'. public init( - runner_type: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload.runner_typePayload? = nil, - runner_label: Swift.String? = nil + runnerType: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupOptionsPayload.RunnerTypePayload? = nil, + runnerLabel: Swift.String? = nil ) { - self.runner_type = runner_type - self.runner_label = runner_label + self.runnerType = runnerType + self.runnerLabel = runnerLabel } public enum CodingKeys: String, CodingKey { - case runner_type - case runner_label + case runnerType = "runner_type" + case runnerLabel = "runner_label" } } /// Feature options for code scanning default setup /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_default_setup_options`. - public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload? + public var codeScanningDefaultSetupOptions: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupOptionsPayload? /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_delegated_alert_dismissal`. - @frozen public enum code_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/code_scanning_delegated_alert_dismissal`. - public var code_scanning_delegated_alert_dismissal: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_delegated_alert_dismissalPayload? + public var codeScanningDelegatedAlertDismissal: Components.Schemas.CodeSecurityConfiguration.CodeScanningDelegatedAlertDismissalPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning`. - @frozen public enum secret_scanningPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning`. - public var secret_scanning: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanningPayload? + public var secretScanning: Components.Schemas.CodeSecurityConfiguration.SecretScanningPayload? /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_push_protection`. - @frozen public enum secret_scanning_push_protectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPushProtectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Components.Schemas.CodeSecurityConfiguration.SecretScanningPushProtectionPayload? /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass`. - @frozen public enum secret_scanning_delegated_bypassPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedBypassPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass`. - public var secret_scanning_delegated_bypass: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypassPayload? + public var secretScanningDelegatedBypass: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassPayload? /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options`. - public struct secret_scanning_delegated_bypass_optionsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { + public struct SecretScanningDelegatedBypassOptionsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { /// The ID of the team or role selected as a bypass reviewer /// - /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_id`. - public var reviewer_id: Swift.Int + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_id`. + public var reviewerId: Swift.Int /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - @frozen public enum reviewer_typePayload: String, Codable, Hashable, Sendable { - case TEAM = "TEAM" - case ROLE = "ROLE" + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + @frozen public enum ReviewerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case team = "TEAM" + case role = "ROLE" } /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - public var reviewer_type: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload - /// Creates a new `reviewersPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + public var reviewerType: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: - /// - reviewer_id: The ID of the team or role selected as a bypass reviewer - /// - reviewer_type: The type of the bypass reviewer + /// - reviewerId: The ID of the team or role selected as a bypass reviewer + /// - reviewerType: The type of the bypass reviewer public init( - reviewer_id: Swift.Int, - reviewer_type: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload + reviewerId: Swift.Int, + reviewerType: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload ) { - self.reviewer_id = reviewer_id - self.reviewer_type = reviewer_type + self.reviewerId = reviewerId + self.reviewerType = reviewerType } public enum CodingKeys: String, CodingKey { - case reviewer_id - case reviewer_type + case reviewerId = "reviewer_id" + case reviewerType = "reviewer_type" } } /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewers`. - public typealias reviewersPayload = [Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload] + public typealias ReviewersPayload = [Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload] /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/reviewers`. - public var reviewers: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? - /// Creates a new `secret_scanning_delegated_bypass_optionsPayload`. + public var reviewers: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? + /// Creates a new `SecretScanningDelegatedBypassOptionsPayload`. /// /// - Parameters: /// - reviewers: The bypass reviewers for secret scanning delegated bypass - public init(reviewers: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? = nil) { + public init(reviewers: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? = nil) { self.reviewers = reviewers } public enum CodingKeys: String, CodingKey { @@ -1187,78 +1196,78 @@ public enum Components { /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options`. - public var secret_scanning_delegated_bypass_options: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload? + public var secretScanningDelegatedBypassOptions: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload? /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_validity_checks`. - @frozen public enum secret_scanning_validity_checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningValidityChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_validity_checks`. - public var secret_scanning_validity_checks: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_validity_checksPayload? + public var secretScanningValidityChecks: Components.Schemas.CodeSecurityConfiguration.SecretScanningValidityChecksPayload? /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_non_provider_patterns`. - @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningNonProviderPatternsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Components.Schemas.CodeSecurityConfiguration.SecretScanningNonProviderPatternsPayload? /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_generic_secrets`. - @frozen public enum secret_scanning_generic_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningGenericSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_generic_secrets`. - public var secret_scanning_generic_secrets: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_generic_secretsPayload? + public var secretScanningGenericSecrets: Components.Schemas.CodeSecurityConfiguration.SecretScanningGenericSecretsPayload? /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_alert_dismissal`. - @frozen public enum secret_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_alert_dismissal`. - public var secret_scanning_delegated_alert_dismissal: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_alert_dismissalPayload? + public var secretScanningDelegatedAlertDismissal: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedAlertDismissalPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/private_vulnerability_reporting`. - @frozen public enum private_vulnerability_reportingPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivateVulnerabilityReportingPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/private_vulnerability_reporting`. - public var private_vulnerability_reporting: Components.Schemas.code_hyphen_security_hyphen_configuration.private_vulnerability_reportingPayload? + public var privateVulnerabilityReporting: Components.Schemas.CodeSecurityConfiguration.PrivateVulnerabilityReportingPayload? /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case enforced = "enforced" case unenforced = "unenforced" } /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/enforcement`. - public var enforcement: Components.Schemas.code_hyphen_security_hyphen_configuration.enforcementPayload? + public var enforcement: Components.Schemas.CodeSecurityConfiguration.EnforcementPayload? /// The URL of the configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/url`. @@ -1266,198 +1275,198 @@ public enum Components { /// The URL of the configuration /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/html_url`. - public var html_url: Swift.String? + public var htmlUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/code-security-configuration/created_at`. - public var created_at: Foundation.Date? + public var createdAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/code-security-configuration/updated_at`. - public var updated_at: Foundation.Date? - /// Creates a new `code_hyphen_security_hyphen_configuration`. + public var updatedAt: Foundation.Date? + /// Creates a new `CodeSecurityConfiguration`. /// /// - Parameters: /// - id: The ID of the code security configuration /// - name: The name of the code security configuration. Must be unique within the organization. - /// - target_type: The type of the code security configuration. + /// - targetType: The type of the code security configuration. /// - description: A description of the code security configuration - /// - advanced_security: The enablement status of GitHub Advanced Security - /// - dependency_graph: The enablement status of Dependency Graph - /// - dependency_graph_autosubmit_action: The enablement status of Automatic dependency submission - /// - dependency_graph_autosubmit_action_options: Feature options for Automatic dependency submission - /// - dependabot_alerts: The enablement status of Dependabot alerts - /// - dependabot_security_updates: The enablement status of Dependabot security updates - /// - code_scanning_default_setup: The enablement status of code scanning default setup - /// - code_scanning_default_setup_options: Feature options for code scanning default setup - /// - code_scanning_delegated_alert_dismissal: The enablement status of code scanning delegated alert dismissal - /// - secret_scanning: The enablement status of secret scanning - /// - secret_scanning_push_protection: The enablement status of secret scanning push protection - /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass - /// - secret_scanning_delegated_bypass_options: Feature options for secret scanning delegated bypass - /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks - /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non-provider patterns - /// - secret_scanning_generic_secrets: The enablement status of Copilot secret scanning - /// - secret_scanning_delegated_alert_dismissal: The enablement status of secret scanning delegated alert dismissal - /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting + /// - advancedSecurity: The enablement status of GitHub Advanced Security + /// - dependencyGraph: The enablement status of Dependency Graph + /// - dependencyGraphAutosubmitAction: The enablement status of Automatic dependency submission + /// - dependencyGraphAutosubmitActionOptions: Feature options for Automatic dependency submission + /// - dependabotAlerts: The enablement status of Dependabot alerts + /// - dependabotSecurityUpdates: The enablement status of Dependabot security updates + /// - codeScanningDefaultSetup: The enablement status of code scanning default setup + /// - codeScanningDefaultSetupOptions: Feature options for code scanning default setup + /// - codeScanningDelegatedAlertDismissal: The enablement status of code scanning delegated alert dismissal + /// - secretScanning: The enablement status of secret scanning + /// - secretScanningPushProtection: The enablement status of secret scanning push protection + /// - secretScanningDelegatedBypass: The enablement status of secret scanning delegated bypass + /// - secretScanningDelegatedBypassOptions: Feature options for secret scanning delegated bypass + /// - secretScanningValidityChecks: The enablement status of secret scanning validity checks + /// - secretScanningNonProviderPatterns: The enablement status of secret scanning non-provider patterns + /// - secretScanningGenericSecrets: The enablement status of Copilot secret scanning + /// - secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal + /// - privateVulnerabilityReporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration /// - url: The URL of the configuration - /// - html_url: The URL of the configuration - /// - created_at: - /// - updated_at: + /// - htmlUrl: The URL of the configuration + /// - createdAt: + /// - updatedAt: public init( id: Swift.Int? = nil, name: Swift.String? = nil, - target_type: Components.Schemas.code_hyphen_security_hyphen_configuration.target_typePayload? = nil, + targetType: Components.Schemas.CodeSecurityConfiguration.TargetTypePayload? = nil, description: Swift.String? = nil, - advanced_security: Components.Schemas.code_hyphen_security_hyphen_configuration.advanced_securityPayload? = nil, - dependency_graph: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graphPayload? = nil, - dependency_graph_autosubmit_action: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graph_autosubmit_actionPayload? = nil, - dependency_graph_autosubmit_action_options: Components.Schemas.code_hyphen_security_hyphen_configuration.dependency_graph_autosubmit_action_optionsPayload? = nil, - dependabot_alerts: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_alertsPayload? = nil, - dependabot_security_updates: Components.Schemas.code_hyphen_security_hyphen_configuration.dependabot_security_updatesPayload? = nil, - code_scanning_default_setup: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setupPayload? = nil, - code_scanning_default_setup_options: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_default_setup_optionsPayload? = nil, - code_scanning_delegated_alert_dismissal: Components.Schemas.code_hyphen_security_hyphen_configuration.code_scanning_delegated_alert_dismissalPayload? = nil, - secret_scanning: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanningPayload? = nil, - secret_scanning_push_protection: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_push_protectionPayload? = nil, - secret_scanning_delegated_bypass: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypassPayload? = nil, - secret_scanning_delegated_bypass_options: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_bypass_optionsPayload? = nil, - secret_scanning_validity_checks: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_validity_checksPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_generic_secrets: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_generic_secretsPayload? = nil, - secret_scanning_delegated_alert_dismissal: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_delegated_alert_dismissalPayload? = nil, - private_vulnerability_reporting: Components.Schemas.code_hyphen_security_hyphen_configuration.private_vulnerability_reportingPayload? = nil, - enforcement: Components.Schemas.code_hyphen_security_hyphen_configuration.enforcementPayload? = nil, + advancedSecurity: Components.Schemas.CodeSecurityConfiguration.AdvancedSecurityPayload? = nil, + dependencyGraph: Components.Schemas.CodeSecurityConfiguration.DependencyGraphPayload? = nil, + dependencyGraphAutosubmitAction: Components.Schemas.CodeSecurityConfiguration.DependencyGraphAutosubmitActionPayload? = nil, + dependencyGraphAutosubmitActionOptions: Components.Schemas.CodeSecurityConfiguration.DependencyGraphAutosubmitActionOptionsPayload? = nil, + dependabotAlerts: Components.Schemas.CodeSecurityConfiguration.DependabotAlertsPayload? = nil, + dependabotSecurityUpdates: Components.Schemas.CodeSecurityConfiguration.DependabotSecurityUpdatesPayload? = nil, + codeScanningDefaultSetup: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupPayload? = nil, + codeScanningDefaultSetupOptions: Components.Schemas.CodeSecurityConfiguration.CodeScanningDefaultSetupOptionsPayload? = nil, + codeScanningDelegatedAlertDismissal: Components.Schemas.CodeSecurityConfiguration.CodeScanningDelegatedAlertDismissalPayload? = nil, + secretScanning: Components.Schemas.CodeSecurityConfiguration.SecretScanningPayload? = nil, + secretScanningPushProtection: Components.Schemas.CodeSecurityConfiguration.SecretScanningPushProtectionPayload? = nil, + secretScanningDelegatedBypass: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassPayload? = nil, + secretScanningDelegatedBypassOptions: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload? = nil, + secretScanningValidityChecks: Components.Schemas.CodeSecurityConfiguration.SecretScanningValidityChecksPayload? = nil, + secretScanningNonProviderPatterns: Components.Schemas.CodeSecurityConfiguration.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningGenericSecrets: Components.Schemas.CodeSecurityConfiguration.SecretScanningGenericSecretsPayload? = nil, + secretScanningDelegatedAlertDismissal: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedAlertDismissalPayload? = nil, + privateVulnerabilityReporting: Components.Schemas.CodeSecurityConfiguration.PrivateVulnerabilityReportingPayload? = nil, + enforcement: Components.Schemas.CodeSecurityConfiguration.EnforcementPayload? = nil, url: Swift.String? = nil, - html_url: Swift.String? = nil, - created_at: Foundation.Date? = nil, - updated_at: Foundation.Date? = nil + htmlUrl: Swift.String? = nil, + createdAt: Foundation.Date? = nil, + updatedAt: Foundation.Date? = nil ) { self.id = id self.name = name - self.target_type = target_type + self.targetType = targetType self.description = description - self.advanced_security = advanced_security - self.dependency_graph = dependency_graph - self.dependency_graph_autosubmit_action = dependency_graph_autosubmit_action - self.dependency_graph_autosubmit_action_options = dependency_graph_autosubmit_action_options - self.dependabot_alerts = dependabot_alerts - self.dependabot_security_updates = dependabot_security_updates - self.code_scanning_default_setup = code_scanning_default_setup - self.code_scanning_default_setup_options = code_scanning_default_setup_options - self.code_scanning_delegated_alert_dismissal = code_scanning_delegated_alert_dismissal - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass - self.secret_scanning_delegated_bypass_options = secret_scanning_delegated_bypass_options - self.secret_scanning_validity_checks = secret_scanning_validity_checks - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_generic_secrets = secret_scanning_generic_secrets - self.secret_scanning_delegated_alert_dismissal = secret_scanning_delegated_alert_dismissal - self.private_vulnerability_reporting = private_vulnerability_reporting + self.advancedSecurity = advancedSecurity + self.dependencyGraph = dependencyGraph + self.dependencyGraphAutosubmitAction = dependencyGraphAutosubmitAction + self.dependencyGraphAutosubmitActionOptions = dependencyGraphAutosubmitActionOptions + self.dependabotAlerts = dependabotAlerts + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.codeScanningDefaultSetup = codeScanningDefaultSetup + self.codeScanningDefaultSetupOptions = codeScanningDefaultSetupOptions + self.codeScanningDelegatedAlertDismissal = codeScanningDelegatedAlertDismissal + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningDelegatedBypass = secretScanningDelegatedBypass + self.secretScanningDelegatedBypassOptions = secretScanningDelegatedBypassOptions + self.secretScanningValidityChecks = secretScanningValidityChecks + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningGenericSecrets = secretScanningGenericSecrets + self.secretScanningDelegatedAlertDismissal = secretScanningDelegatedAlertDismissal + self.privateVulnerabilityReporting = privateVulnerabilityReporting self.enforcement = enforcement self.url = url - self.html_url = html_url - self.created_at = created_at - self.updated_at = updated_at + self.htmlUrl = htmlUrl + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case id case name - case target_type + case targetType = "target_type" case description - case advanced_security - case dependency_graph - case dependency_graph_autosubmit_action - case dependency_graph_autosubmit_action_options - case dependabot_alerts - case dependabot_security_updates - case code_scanning_default_setup - case code_scanning_default_setup_options - case code_scanning_delegated_alert_dismissal - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_delegated_bypass - case secret_scanning_delegated_bypass_options - case secret_scanning_validity_checks - case secret_scanning_non_provider_patterns - case secret_scanning_generic_secrets - case secret_scanning_delegated_alert_dismissal - case private_vulnerability_reporting + case advancedSecurity = "advanced_security" + case dependencyGraph = "dependency_graph" + case dependencyGraphAutosubmitAction = "dependency_graph_autosubmit_action" + case dependencyGraphAutosubmitActionOptions = "dependency_graph_autosubmit_action_options" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case codeScanningDefaultSetupOptions = "code_scanning_default_setup_options" + case codeScanningDelegatedAlertDismissal = "code_scanning_delegated_alert_dismissal" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningDelegatedBypass = "secret_scanning_delegated_bypass" + case secretScanningDelegatedBypassOptions = "secret_scanning_delegated_bypass_options" + case secretScanningValidityChecks = "secret_scanning_validity_checks" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningGenericSecrets = "secret_scanning_generic_secrets" + case secretScanningDelegatedAlertDismissal = "secret_scanning_delegated_alert_dismissal" + case privateVulnerabilityReporting = "private_vulnerability_reporting" case enforcement case url - case html_url - case created_at - case updated_at + case htmlUrl = "html_url" + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Feature options for code scanning default setup /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options`. - public struct code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options: Codable, Hashable, Sendable { + public struct CodeScanningDefaultSetupOptions: Codable, Hashable, Sendable { /// Whether to use labeled runners or standard GitHub runners. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_type`. - @frozen public enum runner_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum RunnerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case standard = "standard" case labeled = "labeled" - case not_set = "not_set" + case notSet = "not_set" } /// Whether to use labeled runners or standard GitHub runners. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_type`. - public var runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.runner_typePayload? + public var runnerType: Components.Schemas.CodeScanningDefaultSetupOptions.RunnerTypePayload? /// The label of the runner to use for code scanning default setup when runner_type is 'labeled'. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-options/runner_label`. - public var runner_label: Swift.String? - /// Creates a new `code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options`. + public var runnerLabel: Swift.String? + /// Creates a new `CodeScanningDefaultSetupOptions`. /// /// - Parameters: - /// - runner_type: Whether to use labeled runners or standard GitHub runners. - /// - runner_label: The label of the runner to use for code scanning default setup when runner_type is 'labeled'. + /// - runnerType: Whether to use labeled runners or standard GitHub runners. + /// - runnerLabel: The label of the runner to use for code scanning default setup when runner_type is 'labeled'. public init( - runner_type: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.runner_typePayload? = nil, - runner_label: Swift.String? = nil + runnerType: Components.Schemas.CodeScanningDefaultSetupOptions.RunnerTypePayload? = nil, + runnerLabel: Swift.String? = nil ) { - self.runner_type = runner_type - self.runner_label = runner_label + self.runnerType = runnerType + self.runnerLabel = runnerLabel } public enum CodingKeys: String, CodingKey { - case runner_type - case runner_label + case runnerType = "runner_type" + case runnerLabel = "runner_label" } } - /// - Remark: Generated from `#/components/schemas/code_hyphen_security_hyphen_default_hyphen_configurations`. - public struct code_hyphen_security_hyphen_default_hyphen_configurationsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/CodeSecurityDefaultConfigurations`. + public struct CodeSecurityDefaultConfigurationsPayload: Codable, Hashable, Sendable { /// The visibility of newly created repositories for which the code security configuration will be applied to by default /// - /// - Remark: Generated from `#/components/schemas/code_hyphen_security_hyphen_default_hyphen_configurations/default_for_new_repos`. - public var default_for_new_repos: OpenAPIRuntime.OpenAPIValueContainer? - /// - Remark: Generated from `#/components/schemas/code_hyphen_security_hyphen_default_hyphen_configurations/configuration`. - public var configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? - /// Creates a new `code_hyphen_security_hyphen_default_hyphen_configurationsPayload`. + /// - Remark: Generated from `#/components/schemas/CodeSecurityDefaultConfigurations/default_for_new_repos`. + public var defaultForNewRepos: OpenAPIRuntime.OpenAPIValueContainer? + /// - Remark: Generated from `#/components/schemas/CodeSecurityDefaultConfigurations/configuration`. + public var configuration: Components.Schemas.CodeSecurityConfiguration? + /// Creates a new `CodeSecurityDefaultConfigurationsPayload`. /// /// - Parameters: - /// - default_for_new_repos: The visibility of newly created repositories for which the code security configuration will be applied to by default + /// - defaultForNewRepos: The visibility of newly created repositories for which the code security configuration will be applied to by default /// - configuration: public init( - default_for_new_repos: OpenAPIRuntime.OpenAPIValueContainer? = nil, - configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? = nil + defaultForNewRepos: OpenAPIRuntime.OpenAPIValueContainer? = nil, + configuration: Components.Schemas.CodeSecurityConfiguration? = nil ) { - self.default_for_new_repos = default_for_new_repos + self.defaultForNewRepos = defaultForNewRepos self.configuration = configuration } public enum CodingKeys: String, CodingKey { - case default_for_new_repos + case defaultForNewRepos = "default_for_new_repos" case configuration } } /// A list of default code security configurations /// /// - Remark: Generated from `#/components/schemas/code-security-default-configurations`. - public typealias code_hyphen_security_hyphen_default_hyphen_configurations = [Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurationsPayload] + public typealias CodeSecurityDefaultConfigurations = [Components.Schemas.CodeSecurityDefaultConfigurationsPayload] /// A GitHub repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository`. - public struct simple_hyphen_repository: Codable, Hashable, Sendable { + public struct SimpleRepository: Codable, Hashable, Sendable { /// A unique identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/id`. @@ -1465,7 +1474,7 @@ public enum Components { /// The GraphQL identifier of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// The name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/name`. @@ -1473,9 +1482,9 @@ public enum Components { /// The full, globally unique, name of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/full_name`. - public var full_name: Swift.String + public var fullName: Swift.String /// - Remark: Generated from `#/components/schemas/simple-repository/owner`. - public var owner: Components.Schemas.simple_hyphen_user + public var owner: Components.Schemas.SimpleUser /// Whether the repository is private. /// /// - Remark: Generated from `#/components/schemas/simple-repository/private`. @@ -1483,7 +1492,7 @@ public enum Components { /// The URL to view the repository on GitHub.com. /// /// - Remark: Generated from `#/components/schemas/simple-repository/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// The repository description. /// /// - Remark: Generated from `#/components/schemas/simple-repository/description`. @@ -1499,348 +1508,348 @@ public enum Components { /// A template for the API URL to download the repository as an archive. /// /// - Remark: Generated from `#/components/schemas/simple-repository/archive_url`. - public var archive_url: Swift.String + public var archiveUrl: Swift.String /// A template for the API URL to list the available assignees for issues in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/assignees_url`. - public var assignees_url: Swift.String + public var assigneesUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git blob in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/blobs_url`. - public var blobs_url: Swift.String + public var blobsUrl: Swift.String /// A template for the API URL to get information about branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/branches_url`. - public var branches_url: Swift.String + public var branchesUrl: Swift.String /// A template for the API URL to get information about collaborators of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/collaborators_url`. - public var collaborators_url: Swift.String + public var collaboratorsUrl: Swift.String /// A template for the API URL to get information about comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/comments_url`. - public var comments_url: Swift.String + public var commentsUrl: Swift.String /// A template for the API URL to get information about commits on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/commits_url`. - public var commits_url: Swift.String + public var commitsUrl: Swift.String /// A template for the API URL to compare two commits or refs. /// /// - Remark: Generated from `#/components/schemas/simple-repository/compare_url`. - public var compare_url: Swift.String + public var compareUrl: Swift.String /// A template for the API URL to get the contents of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contents_url`. - public var contents_url: Swift.String + public var contentsUrl: Swift.String /// A template for the API URL to list the contributors to the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/contributors_url`. - public var contributors_url: Swift.String + public var contributorsUrl: Swift.String /// The API URL to list the deployments of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/deployments_url`. - public var deployments_url: Swift.String + public var deploymentsUrl: Swift.String /// The API URL to list the downloads on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/downloads_url`. - public var downloads_url: Swift.String + public var downloadsUrl: Swift.String /// The API URL to list the events of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// The API URL to list the forks of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/forks_url`. - public var forks_url: Swift.String + public var forksUrl: Swift.String /// A template for the API URL to get information about Git commits of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_commits_url`. - public var git_commits_url: Swift.String + public var gitCommitsUrl: Swift.String /// A template for the API URL to get information about Git refs of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_refs_url`. - public var git_refs_url: Swift.String + public var gitRefsUrl: Swift.String /// A template for the API URL to get information about Git tags of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/git_tags_url`. - public var git_tags_url: Swift.String + public var gitTagsUrl: Swift.String /// A template for the API URL to get information about issue comments on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_comment_url`. - public var issue_comment_url: Swift.String + public var issueCommentUrl: Swift.String /// A template for the API URL to get information about issue events on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issue_events_url`. - public var issue_events_url: Swift.String + public var issueEventsUrl: Swift.String /// A template for the API URL to get information about issues on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/issues_url`. - public var issues_url: Swift.String + public var issuesUrl: Swift.String /// A template for the API URL to get information about deploy keys on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/keys_url`. - public var keys_url: Swift.String + public var keysUrl: Swift.String /// A template for the API URL to get information about labels of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/labels_url`. - public var labels_url: Swift.String + public var labelsUrl: Swift.String /// The API URL to get information about the languages of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/languages_url`. - public var languages_url: Swift.String + public var languagesUrl: Swift.String /// The API URL to merge branches in the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/merges_url`. - public var merges_url: Swift.String + public var mergesUrl: Swift.String /// A template for the API URL to get information about milestones of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/milestones_url`. - public var milestones_url: Swift.String + public var milestonesUrl: Swift.String /// A template for the API URL to get information about notifications on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/notifications_url`. - public var notifications_url: Swift.String + public var notificationsUrl: Swift.String /// A template for the API URL to get information about pull requests on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/pulls_url`. - public var pulls_url: Swift.String + public var pullsUrl: Swift.String /// A template for the API URL to get information about releases on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/releases_url`. - public var releases_url: Swift.String + public var releasesUrl: Swift.String /// The API URL to list the stargazers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/stargazers_url`. - public var stargazers_url: Swift.String + public var stargazersUrl: Swift.String /// A template for the API URL to get information about statuses of a commit. /// /// - Remark: Generated from `#/components/schemas/simple-repository/statuses_url`. - public var statuses_url: Swift.String + public var statusesUrl: Swift.String /// The API URL to list the subscribers on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscribers_url`. - public var subscribers_url: Swift.String + public var subscribersUrl: Swift.String /// The API URL to subscribe to notifications for this repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/subscription_url`. - public var subscription_url: Swift.String + public var subscriptionUrl: Swift.String /// The API URL to get information about tags on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/tags_url`. - public var tags_url: Swift.String + public var tagsUrl: Swift.String /// The API URL to list the teams on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/teams_url`. - public var teams_url: Swift.String + public var teamsUrl: Swift.String /// A template for the API URL to create or retrieve a raw Git tree of the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/trees_url`. - public var trees_url: Swift.String + public var treesUrl: Swift.String /// The API URL to list the hooks on the repository. /// /// - Remark: Generated from `#/components/schemas/simple-repository/hooks_url`. - public var hooks_url: Swift.String - /// Creates a new `simple_hyphen_repository`. + public var hooksUrl: Swift.String + /// Creates a new `SimpleRepository`. /// /// - Parameters: /// - id: A unique identifier of the repository. - /// - node_id: The GraphQL identifier of the repository. + /// - nodeId: The GraphQL identifier of the repository. /// - name: The name of the repository. - /// - full_name: The full, globally unique, name of the repository. + /// - fullName: The full, globally unique, name of the repository. /// - owner: /// - _private: Whether the repository is private. - /// - html_url: The URL to view the repository on GitHub.com. + /// - htmlUrl: The URL to view the repository on GitHub.com. /// - description: The repository description. /// - fork: Whether the repository is a fork. /// - url: The URL to get more information about the repository from the GitHub API. - /// - archive_url: A template for the API URL to download the repository as an archive. - /// - assignees_url: A template for the API URL to list the available assignees for issues in the repository. - /// - blobs_url: A template for the API URL to create or retrieve a raw Git blob in the repository. - /// - branches_url: A template for the API URL to get information about branches in the repository. - /// - collaborators_url: A template for the API URL to get information about collaborators of the repository. - /// - comments_url: A template for the API URL to get information about comments on the repository. - /// - commits_url: A template for the API URL to get information about commits on the repository. - /// - compare_url: A template for the API URL to compare two commits or refs. - /// - contents_url: A template for the API URL to get the contents of the repository. - /// - contributors_url: A template for the API URL to list the contributors to the repository. - /// - deployments_url: The API URL to list the deployments of the repository. - /// - downloads_url: The API URL to list the downloads on the repository. - /// - events_url: The API URL to list the events of the repository. - /// - forks_url: The API URL to list the forks of the repository. - /// - git_commits_url: A template for the API URL to get information about Git commits of the repository. - /// - git_refs_url: A template for the API URL to get information about Git refs of the repository. - /// - git_tags_url: A template for the API URL to get information about Git tags of the repository. - /// - issue_comment_url: A template for the API URL to get information about issue comments on the repository. - /// - issue_events_url: A template for the API URL to get information about issue events on the repository. - /// - issues_url: A template for the API URL to get information about issues on the repository. - /// - keys_url: A template for the API URL to get information about deploy keys on the repository. - /// - labels_url: A template for the API URL to get information about labels of the repository. - /// - languages_url: The API URL to get information about the languages of the repository. - /// - merges_url: The API URL to merge branches in the repository. - /// - milestones_url: A template for the API URL to get information about milestones of the repository. - /// - notifications_url: A template for the API URL to get information about notifications on the repository. - /// - pulls_url: A template for the API URL to get information about pull requests on the repository. - /// - releases_url: A template for the API URL to get information about releases on the repository. - /// - stargazers_url: The API URL to list the stargazers on the repository. - /// - statuses_url: A template for the API URL to get information about statuses of a commit. - /// - subscribers_url: The API URL to list the subscribers on the repository. - /// - subscription_url: The API URL to subscribe to notifications for this repository. - /// - tags_url: The API URL to get information about tags on the repository. - /// - teams_url: The API URL to list the teams on the repository. - /// - trees_url: A template for the API URL to create or retrieve a raw Git tree of the repository. - /// - hooks_url: The API URL to list the hooks on the repository. + /// - archiveUrl: A template for the API URL to download the repository as an archive. + /// - assigneesUrl: A template for the API URL to list the available assignees for issues in the repository. + /// - blobsUrl: A template for the API URL to create or retrieve a raw Git blob in the repository. + /// - branchesUrl: A template for the API URL to get information about branches in the repository. + /// - collaboratorsUrl: A template for the API URL to get information about collaborators of the repository. + /// - commentsUrl: A template for the API URL to get information about comments on the repository. + /// - commitsUrl: A template for the API URL to get information about commits on the repository. + /// - compareUrl: A template for the API URL to compare two commits or refs. + /// - contentsUrl: A template for the API URL to get the contents of the repository. + /// - contributorsUrl: A template for the API URL to list the contributors to the repository. + /// - deploymentsUrl: The API URL to list the deployments of the repository. + /// - downloadsUrl: The API URL to list the downloads on the repository. + /// - eventsUrl: The API URL to list the events of the repository. + /// - forksUrl: The API URL to list the forks of the repository. + /// - gitCommitsUrl: A template for the API URL to get information about Git commits of the repository. + /// - gitRefsUrl: A template for the API URL to get information about Git refs of the repository. + /// - gitTagsUrl: A template for the API URL to get information about Git tags of the repository. + /// - issueCommentUrl: A template for the API URL to get information about issue comments on the repository. + /// - issueEventsUrl: A template for the API URL to get information about issue events on the repository. + /// - issuesUrl: A template for the API URL to get information about issues on the repository. + /// - keysUrl: A template for the API URL to get information about deploy keys on the repository. + /// - labelsUrl: A template for the API URL to get information about labels of the repository. + /// - languagesUrl: The API URL to get information about the languages of the repository. + /// - mergesUrl: The API URL to merge branches in the repository. + /// - milestonesUrl: A template for the API URL to get information about milestones of the repository. + /// - notificationsUrl: A template for the API URL to get information about notifications on the repository. + /// - pullsUrl: A template for the API URL to get information about pull requests on the repository. + /// - releasesUrl: A template for the API URL to get information about releases on the repository. + /// - stargazersUrl: The API URL to list the stargazers on the repository. + /// - statusesUrl: A template for the API URL to get information about statuses of a commit. + /// - subscribersUrl: The API URL to list the subscribers on the repository. + /// - subscriptionUrl: The API URL to subscribe to notifications for this repository. + /// - tagsUrl: The API URL to get information about tags on the repository. + /// - teamsUrl: The API URL to list the teams on the repository. + /// - treesUrl: A template for the API URL to create or retrieve a raw Git tree of the repository. + /// - hooksUrl: The API URL to list the hooks on the repository. public init( id: Swift.Int64, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, - full_name: Swift.String, - owner: Components.Schemas.simple_hyphen_user, + fullName: Swift.String, + owner: Components.Schemas.SimpleUser, _private: Swift.Bool, - html_url: Swift.String, + htmlUrl: Swift.String, description: Swift.String? = nil, fork: Swift.Bool, url: Swift.String, - archive_url: Swift.String, - assignees_url: Swift.String, - blobs_url: Swift.String, - branches_url: Swift.String, - collaborators_url: Swift.String, - comments_url: Swift.String, - commits_url: Swift.String, - compare_url: Swift.String, - contents_url: Swift.String, - contributors_url: Swift.String, - deployments_url: Swift.String, - downloads_url: Swift.String, - events_url: Swift.String, - forks_url: Swift.String, - git_commits_url: Swift.String, - git_refs_url: Swift.String, - git_tags_url: Swift.String, - issue_comment_url: Swift.String, - issue_events_url: Swift.String, - issues_url: Swift.String, - keys_url: Swift.String, - labels_url: Swift.String, - languages_url: Swift.String, - merges_url: Swift.String, - milestones_url: Swift.String, - notifications_url: Swift.String, - pulls_url: Swift.String, - releases_url: Swift.String, - stargazers_url: Swift.String, - statuses_url: Swift.String, - subscribers_url: Swift.String, - subscription_url: Swift.String, - tags_url: Swift.String, - teams_url: Swift.String, - trees_url: Swift.String, - hooks_url: Swift.String + archiveUrl: Swift.String, + assigneesUrl: Swift.String, + blobsUrl: Swift.String, + branchesUrl: Swift.String, + collaboratorsUrl: Swift.String, + commentsUrl: Swift.String, + commitsUrl: Swift.String, + compareUrl: Swift.String, + contentsUrl: Swift.String, + contributorsUrl: Swift.String, + deploymentsUrl: Swift.String, + downloadsUrl: Swift.String, + eventsUrl: Swift.String, + forksUrl: Swift.String, + gitCommitsUrl: Swift.String, + gitRefsUrl: Swift.String, + gitTagsUrl: Swift.String, + issueCommentUrl: Swift.String, + issueEventsUrl: Swift.String, + issuesUrl: Swift.String, + keysUrl: Swift.String, + labelsUrl: Swift.String, + languagesUrl: Swift.String, + mergesUrl: Swift.String, + milestonesUrl: Swift.String, + notificationsUrl: Swift.String, + pullsUrl: Swift.String, + releasesUrl: Swift.String, + stargazersUrl: Swift.String, + statusesUrl: Swift.String, + subscribersUrl: Swift.String, + subscriptionUrl: Swift.String, + tagsUrl: Swift.String, + teamsUrl: Swift.String, + treesUrl: Swift.String, + hooksUrl: Swift.String ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name - self.full_name = full_name + self.fullName = fullName self.owner = owner self._private = _private - self.html_url = html_url + self.htmlUrl = htmlUrl self.description = description self.fork = fork self.url = url - self.archive_url = archive_url - self.assignees_url = assignees_url - self.blobs_url = blobs_url - self.branches_url = branches_url - self.collaborators_url = collaborators_url - self.comments_url = comments_url - self.commits_url = commits_url - self.compare_url = compare_url - self.contents_url = contents_url - self.contributors_url = contributors_url - self.deployments_url = deployments_url - self.downloads_url = downloads_url - self.events_url = events_url - self.forks_url = forks_url - self.git_commits_url = git_commits_url - self.git_refs_url = git_refs_url - self.git_tags_url = git_tags_url - self.issue_comment_url = issue_comment_url - self.issue_events_url = issue_events_url - self.issues_url = issues_url - self.keys_url = keys_url - self.labels_url = labels_url - self.languages_url = languages_url - self.merges_url = merges_url - self.milestones_url = milestones_url - self.notifications_url = notifications_url - self.pulls_url = pulls_url - self.releases_url = releases_url - self.stargazers_url = stargazers_url - self.statuses_url = statuses_url - self.subscribers_url = subscribers_url - self.subscription_url = subscription_url - self.tags_url = tags_url - self.teams_url = teams_url - self.trees_url = trees_url - self.hooks_url = hooks_url + self.archiveUrl = archiveUrl + self.assigneesUrl = assigneesUrl + self.blobsUrl = blobsUrl + self.branchesUrl = branchesUrl + self.collaboratorsUrl = collaboratorsUrl + self.commentsUrl = commentsUrl + self.commitsUrl = commitsUrl + self.compareUrl = compareUrl + self.contentsUrl = contentsUrl + self.contributorsUrl = contributorsUrl + self.deploymentsUrl = deploymentsUrl + self.downloadsUrl = downloadsUrl + self.eventsUrl = eventsUrl + self.forksUrl = forksUrl + self.gitCommitsUrl = gitCommitsUrl + self.gitRefsUrl = gitRefsUrl + self.gitTagsUrl = gitTagsUrl + self.issueCommentUrl = issueCommentUrl + self.issueEventsUrl = issueEventsUrl + self.issuesUrl = issuesUrl + self.keysUrl = keysUrl + self.labelsUrl = labelsUrl + self.languagesUrl = languagesUrl + self.mergesUrl = mergesUrl + self.milestonesUrl = milestonesUrl + self.notificationsUrl = notificationsUrl + self.pullsUrl = pullsUrl + self.releasesUrl = releasesUrl + self.stargazersUrl = stargazersUrl + self.statusesUrl = statusesUrl + self.subscribersUrl = subscribersUrl + self.subscriptionUrl = subscriptionUrl + self.tagsUrl = tagsUrl + self.teamsUrl = teamsUrl + self.treesUrl = treesUrl + self.hooksUrl = hooksUrl } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name - case full_name + case fullName = "full_name" case owner case _private = "private" - case html_url + case htmlUrl = "html_url" case description case fork case url - case archive_url - case assignees_url - case blobs_url - case branches_url - case collaborators_url - case comments_url - case commits_url - case compare_url - case contents_url - case contributors_url - case deployments_url - case downloads_url - case events_url - case forks_url - case git_commits_url - case git_refs_url - case git_tags_url - case issue_comment_url - case issue_events_url - case issues_url - case keys_url - case labels_url - case languages_url - case merges_url - case milestones_url - case notifications_url - case pulls_url - case releases_url - case stargazers_url - case statuses_url - case subscribers_url - case subscription_url - case tags_url - case teams_url - case trees_url - case hooks_url + case archiveUrl = "archive_url" + case assigneesUrl = "assignees_url" + case blobsUrl = "blobs_url" + case branchesUrl = "branches_url" + case collaboratorsUrl = "collaborators_url" + case commentsUrl = "comments_url" + case commitsUrl = "commits_url" + case compareUrl = "compare_url" + case contentsUrl = "contents_url" + case contributorsUrl = "contributors_url" + case deploymentsUrl = "deployments_url" + case downloadsUrl = "downloads_url" + case eventsUrl = "events_url" + case forksUrl = "forks_url" + case gitCommitsUrl = "git_commits_url" + case gitRefsUrl = "git_refs_url" + case gitTagsUrl = "git_tags_url" + case issueCommentUrl = "issue_comment_url" + case issueEventsUrl = "issue_events_url" + case issuesUrl = "issues_url" + case keysUrl = "keys_url" + case labelsUrl = "labels_url" + case languagesUrl = "languages_url" + case mergesUrl = "merges_url" + case milestonesUrl = "milestones_url" + case notificationsUrl = "notifications_url" + case pullsUrl = "pulls_url" + case releasesUrl = "releases_url" + case stargazersUrl = "stargazers_url" + case statusesUrl = "statuses_url" + case subscribersUrl = "subscribers_url" + case subscriptionUrl = "subscription_url" + case tagsUrl = "tags_url" + case teamsUrl = "teams_url" + case treesUrl = "trees_url" + case hooksUrl = "hooks_url" } } /// Repositories associated with a code security configuration and attachment status /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-repositories`. - public struct code_hyphen_security_hyphen_configuration_hyphen_repositories: Codable, Hashable, Sendable { + public struct CodeSecurityConfigurationRepositories: Codable, Hashable, Sendable { /// The attachment status of the code security configuration on the repository. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-repositories/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case attached = "attached" case attaching = "attaching" case detached = "detached" @@ -1848,22 +1857,22 @@ public enum Components { case enforced = "enforced" case failed = "failed" case updating = "updating" - case removed_by_enterprise = "removed_by_enterprise" + case removedByEnterprise = "removed_by_enterprise" } /// The attachment status of the code security configuration on the repository. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-repositories/status`. - public var status: Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories.statusPayload? + public var status: Components.Schemas.CodeSecurityConfigurationRepositories.StatusPayload? /// - Remark: Generated from `#/components/schemas/code-security-configuration-repositories/repository`. - public var repository: Components.Schemas.simple_hyphen_repository? - /// Creates a new `code_hyphen_security_hyphen_configuration_hyphen_repositories`. + public var repository: Components.Schemas.SimpleRepository? + /// Creates a new `CodeSecurityConfigurationRepositories`. /// /// - Parameters: /// - status: The attachment status of the code security configuration on the repository. /// - repository: public init( - status: Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories.statusPayload? = nil, - repository: Components.Schemas.simple_hyphen_repository? = nil + status: Components.Schemas.CodeSecurityConfigurationRepositories.StatusPayload? = nil, + repository: Components.Schemas.SimpleRepository? = nil ) { self.status = status self.repository = repository @@ -1876,11 +1885,11 @@ public enum Components { /// Code security configuration associated with a repository and attachment status /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-for-repository`. - public struct code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository: Codable, Hashable, Sendable { + public struct CodeSecurityConfigurationForRepository: Codable, Hashable, Sendable { /// The attachment status of the code security configuration on the repository. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-for-repository/status`. - @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + @frozen public enum StatusPayload: String, Codable, Hashable, Sendable, CaseIterable { case attached = "attached" case attaching = "attaching" case detached = "detached" @@ -1888,22 +1897,22 @@ public enum Components { case enforced = "enforced" case failed = "failed" case updating = "updating" - case removed_by_enterprise = "removed_by_enterprise" + case removedByEnterprise = "removed_by_enterprise" } /// The attachment status of the code security configuration on the repository. /// /// - Remark: Generated from `#/components/schemas/code-security-configuration-for-repository/status`. - public var status: Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository.statusPayload? + public var status: Components.Schemas.CodeSecurityConfigurationForRepository.StatusPayload? /// - Remark: Generated from `#/components/schemas/code-security-configuration-for-repository/configuration`. - public var configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? - /// Creates a new `code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository`. + public var configuration: Components.Schemas.CodeSecurityConfiguration? + /// Creates a new `CodeSecurityConfigurationForRepository`. /// /// - Parameters: /// - status: The attachment status of the code security configuration on the repository. /// - configuration: public init( - status: Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository.statusPayload? = nil, - configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? = nil + status: Components.Schemas.CodeSecurityConfigurationForRepository.StatusPayload? = nil, + configuration: Components.Schemas.CodeSecurityConfiguration? = nil ) { self.status = status self.configuration = configuration @@ -1919,46 +1928,46 @@ public enum Components { /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-before`. - public typealias pagination_hyphen_before = Swift.String + public typealias PaginationBefore = Swift.String /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/components/parameters/pagination-after`. - public typealias pagination_hyphen_after = Swift.String + public typealias PaginationAfter = Swift.String /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/components/parameters/enterprise`. - public typealias enterprise = Swift.String + public typealias Enterprise = Swift.String /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/components/parameters/configuration-id`. - public typealias configuration_hyphen_id = Swift.Int + public typealias ConfigurationId = Swift.Int /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. - public typealias owner = Swift.String + public typealias Owner = Swift.String /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/repo`. - public typealias repo = Swift.String + public typealias Repo = Swift.String /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1968,25 +1977,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2000,15 +2009,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -2020,16 +2029,16 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct accepted: Sendable, Hashable { + public struct Accepted: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/accepted/content/application\/json`. @@ -2048,29 +2057,29 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.accepted.Body - /// Creates a new `accepted`. + public var body: Components.Responses.Accepted.Body + /// Creates a new `Accepted`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.accepted.Body) { + public init(body: Components.Responses.Accepted.Body) { self.body = body } } - public struct not_modified: Sendable, Hashable { - /// Creates a new `not_modified`. + public struct NotModified: Sendable, Hashable { + /// Creates a new `NotModified`. public init() {} } - public struct forbidden: Sendable, Hashable { + public struct Forbidden: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/forbidden/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2080,25 +2089,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.forbidden.Body - /// Creates a new `forbidden`. + public var body: Components.Responses.Forbidden.Body + /// Creates a new `Forbidden`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.forbidden.Body) { + public init(body: Components.Responses.Forbidden.Body) { self.body = body } } - public struct conflict: Sendable, Hashable { + public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/conflict/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2108,17 +2117,17 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.conflict.Body - /// Creates a new `conflict`. + public var body: Components.Responses.Conflict.Body + /// Creates a new `Conflict`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.conflict.Body) { + public init(body: Components.Responses.Conflict.Body) { self.body = body } } - public struct no_content: Sendable, Hashable { - /// Creates a new `no_content`. + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. public init() {} } } @@ -2138,7 +2147,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)`. - public enum code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise { + public enum CodeSecurityGetConfigurationsForEnterprise { public static let id: Swift.String = "code-security/get-configurations-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/path`. @@ -2146,59 +2155,59 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - public init(enterprise: Components.Parameters.enterprise) { + public init(enterprise: Components.Parameters.Enterprise) { self.enterprise = enterprise } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." public init( - per_page: Swift.Int? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil + perPage: Swift.Int? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after } } - public var query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Query + public var query: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Query /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -2206,9 +2215,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Path, + query: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Query = .init(), + headers: Operations.CodeSecurityGetConfigurationsForEnterprise.Input.Headers = .init() ) { self.path = path self.query = query @@ -2220,12 +2229,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_security_hyphen_configuration]) + case json([Components.Schemas.CodeSecurityConfiguration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_security_hyphen_configuration] { + public var json: [Components.Schemas.CodeSecurityConfiguration] { get throws { switch self { case let .json(body): @@ -2235,12 +2244,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.CodeSecurityGetConfigurationsForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetConfigurationsForEnterprise.Output.Ok.Body) { self.body = body } } @@ -2249,12 +2258,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.CodeSecurityGetConfigurationsForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.CodeSecurityGetConfigurationsForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -2272,12 +2281,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2295,12 +2304,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/get(code-security/get-configurations-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2354,7 +2363,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)`. - public enum code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise { + public enum CodeSecurityCreateConfigurationForEnterprise { public static let id: Swift.String = "code-security/create-configuration-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/path`. @@ -2362,32 +2371,32 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - public init(enterprise: Components.Parameters.enterprise) { + public init(enterprise: Components.Parameters.Enterprise) { self.enterprise = enterprise } } - public var path: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Headers /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the code security configuration. Must be unique within the enterprise. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/name`. @@ -2399,368 +2408,368 @@ public enum Operations { /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/advanced_security`. - @frozen public enum advanced_securityPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdvancedSecurityPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case code_security = "code_security" - case secret_protection = "secret_protection" + case codeSecurity = "code_security" + case secretProtection = "secret_protection" } /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/advanced_security`. - public var advanced_security: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.advanced_securityPayload? + public var advancedSecurity: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.AdvancedSecurityPayload? /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph`. - @frozen public enum dependency_graphPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph`. - public var dependency_graph: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graphPayload? + public var dependencyGraph: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphPayload? /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action`. - @frozen public enum dependency_graph_autosubmit_actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphAutosubmitActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action`. - public var dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? + public var dependencyGraphAutosubmitAction: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options`. - public struct dependency_graph_autosubmit_action_optionsPayload: Codable, Hashable, Sendable { + public struct DependencyGraphAutosubmitActionOptionsPayload: Codable, Hashable, Sendable { /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options/labeled_runners`. - public var labeled_runners: Swift.Bool? - /// Creates a new `dependency_graph_autosubmit_action_optionsPayload`. + public var labeledRunners: Swift.Bool? + /// Creates a new `DependencyGraphAutosubmitActionOptionsPayload`. /// /// - Parameters: - /// - labeled_runners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. - public init(labeled_runners: Swift.Bool? = nil) { - self.labeled_runners = labeled_runners + /// - labeledRunners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. + public init(labeledRunners: Swift.Bool? = nil) { + self.labeledRunners = labeledRunners } public enum CodingKeys: String, CodingKey { - case labeled_runners + case labeledRunners = "labeled_runners" } } /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options`. - public var dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? + public var dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependabot_alerts`. - @frozen public enum dependabot_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependabot_alerts`. - public var dependabot_alerts: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_alertsPayload? + public var dependabotAlerts: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotAlertsPayload? /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependabot_security_updates`. - @frozen public enum dependabot_security_updatesPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecurityUpdatesPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/dependabot_security_updates`. - public var dependabot_security_updates: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup`. - @frozen public enum code_scanning_default_setupPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDefaultSetupPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup`. - public var code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_default_setupPayload? + public var codeScanningDefaultSetup: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup_options`. - public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? + public var codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/code_scanning_delegated_alert_dismissal`. - @frozen public enum code_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/code_scanning_delegated_alert_dismissal`. - public var code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? + public var codeScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning`. - @frozen public enum secret_scanningPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning`. - public var secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanningPayload? + public var secretScanning: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPayload? /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_push_protection`. - @frozen public enum secret_scanning_push_protectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPushProtectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_validity_checks`. - @frozen public enum secret_scanning_validity_checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningValidityChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_validity_checks`. - public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + public var secretScanningValidityChecks: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? /// The enablement status of secret scanning non provider patterns /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. - @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningNonProviderPatternsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning non provider patterns /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_generic_secrets`. - @frozen public enum secret_scanning_generic_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningGenericSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_generic_secrets`. - public var secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? + public var secretScanningGenericSecrets: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_alert_dismissal`. - @frozen public enum secret_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_alert_dismissal`. - public var secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? + public var secretScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`. - @frozen public enum private_vulnerability_reportingPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivateVulnerabilityReportingPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`. - public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.private_vulnerability_reportingPayload? + public var privateVulnerabilityReporting: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case enforced = "enforced" case unenforced = "unenforced" } /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/json/enforcement`. - public var enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.enforcementPayload? - /// Creates a new `jsonPayload`. + public var enforcement: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.EnforcementPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the code security configuration. Must be unique within the enterprise. /// - description: A description of the code security configuration - /// - advanced_security: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. - /// - dependency_graph: The enablement status of Dependency Graph - /// - dependency_graph_autosubmit_action: The enablement status of Automatic dependency submission - /// - dependency_graph_autosubmit_action_options: Feature options for Automatic dependency submission - /// - dependabot_alerts: The enablement status of Dependabot alerts - /// - dependabot_security_updates: The enablement status of Dependabot security updates - /// - code_scanning_default_setup: The enablement status of code scanning default setup - /// - code_scanning_default_setup_options: - /// - code_scanning_delegated_alert_dismissal: The enablement status of code scanning delegated alert dismissal - /// - secret_scanning: The enablement status of secret scanning - /// - secret_scanning_push_protection: The enablement status of secret scanning push protection - /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks - /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non provider patterns - /// - secret_scanning_generic_secrets: The enablement status of Copilot secret scanning - /// - secret_scanning_delegated_alert_dismissal: The enablement status of secret scanning delegated alert dismissal - /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting + /// - advancedSecurity: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. + /// - dependencyGraph: The enablement status of Dependency Graph + /// - dependencyGraphAutosubmitAction: The enablement status of Automatic dependency submission + /// - dependencyGraphAutosubmitActionOptions: Feature options for Automatic dependency submission + /// - dependabotAlerts: The enablement status of Dependabot alerts + /// - dependabotSecurityUpdates: The enablement status of Dependabot security updates + /// - codeScanningDefaultSetup: The enablement status of code scanning default setup + /// - codeScanningDefaultSetupOptions: + /// - codeScanningDelegatedAlertDismissal: The enablement status of code scanning delegated alert dismissal + /// - secretScanning: The enablement status of secret scanning + /// - secretScanningPushProtection: The enablement status of secret scanning push protection + /// - secretScanningValidityChecks: The enablement status of secret scanning validity checks + /// - secretScanningNonProviderPatterns: The enablement status of secret scanning non provider patterns + /// - secretScanningGenericSecrets: The enablement status of Copilot secret scanning + /// - secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal + /// - privateVulnerabilityReporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( name: Swift.String, description: Swift.String, - advanced_security: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.advanced_securityPayload? = nil, - dependency_graph: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graphPayload? = nil, - dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? = nil, - dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? = nil, - dependabot_alerts: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, - dependabot_security_updates: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, - code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, - code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, - code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? = nil, - secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanningPayload? = nil, - secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, - secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, - secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? = nil, - secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? = nil, - private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, - enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.enforcementPayload? = nil + advancedSecurity: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil, + dependencyGraph: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphPayload? = nil, + dependencyGraphAutosubmitAction: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? = nil, + dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? = nil, + dependabotAlerts: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotAlertsPayload? = nil, + dependabotSecurityUpdates: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? = nil, + codeScanningDefaultSetup: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? = nil, + codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? = nil, + codeScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? = nil, + secretScanning: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPayload? = nil, + secretScanningPushProtection: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? = nil, + secretScanningValidityChecks: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? = nil, + secretScanningNonProviderPatterns: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningGenericSecrets: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? = nil, + secretScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? = nil, + privateVulnerabilityReporting: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? = nil, + enforcement: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.EnforcementPayload? = nil ) { self.name = name self.description = description - self.advanced_security = advanced_security - self.dependency_graph = dependency_graph - self.dependency_graph_autosubmit_action = dependency_graph_autosubmit_action - self.dependency_graph_autosubmit_action_options = dependency_graph_autosubmit_action_options - self.dependabot_alerts = dependabot_alerts - self.dependabot_security_updates = dependabot_security_updates - self.code_scanning_default_setup = code_scanning_default_setup - self.code_scanning_default_setup_options = code_scanning_default_setup_options - self.code_scanning_delegated_alert_dismissal = code_scanning_delegated_alert_dismissal - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_validity_checks = secret_scanning_validity_checks - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_generic_secrets = secret_scanning_generic_secrets - self.secret_scanning_delegated_alert_dismissal = secret_scanning_delegated_alert_dismissal - self.private_vulnerability_reporting = private_vulnerability_reporting + self.advancedSecurity = advancedSecurity + self.dependencyGraph = dependencyGraph + self.dependencyGraphAutosubmitAction = dependencyGraphAutosubmitAction + self.dependencyGraphAutosubmitActionOptions = dependencyGraphAutosubmitActionOptions + self.dependabotAlerts = dependabotAlerts + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.codeScanningDefaultSetup = codeScanningDefaultSetup + self.codeScanningDefaultSetupOptions = codeScanningDefaultSetupOptions + self.codeScanningDelegatedAlertDismissal = codeScanningDelegatedAlertDismissal + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningValidityChecks = secretScanningValidityChecks + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningGenericSecrets = secretScanningGenericSecrets + self.secretScanningDelegatedAlertDismissal = secretScanningDelegatedAlertDismissal + self.privateVulnerabilityReporting = privateVulnerabilityReporting self.enforcement = enforcement } public enum CodingKeys: String, CodingKey { case name case description - case advanced_security - case dependency_graph - case dependency_graph_autosubmit_action - case dependency_graph_autosubmit_action_options - case dependabot_alerts - case dependabot_security_updates - case code_scanning_default_setup - case code_scanning_default_setup_options - case code_scanning_delegated_alert_dismissal - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_validity_checks - case secret_scanning_non_provider_patterns - case secret_scanning_generic_secrets - case secret_scanning_delegated_alert_dismissal - case private_vulnerability_reporting + case advancedSecurity = "advanced_security" + case dependencyGraph = "dependency_graph" + case dependencyGraphAutosubmitAction = "dependency_graph_autosubmit_action" + case dependencyGraphAutosubmitActionOptions = "dependency_graph_autosubmit_action_options" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case codeScanningDefaultSetupOptions = "code_scanning_default_setup_options" + case codeScanningDelegatedAlertDismissal = "code_scanning_delegated_alert_dismissal" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningValidityChecks = "secret_scanning_validity_checks" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningGenericSecrets = "secret_scanning_generic_secrets" + case secretScanningDelegatedAlertDismissal = "secret_scanning_delegated_alert_dismissal" + case privateVulnerabilityReporting = "private_vulnerability_reporting" case enforcement } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - advanced_security = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.advanced_securityPayload.self, - forKey: .advanced_security + self.advancedSecurity = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.AdvancedSecurityPayload.self, + forKey: .advancedSecurity ) - dependency_graph = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graphPayload.self, - forKey: .dependency_graph + self.dependencyGraph = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphPayload.self, + forKey: .dependencyGraph ) - dependency_graph_autosubmit_action = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload.self, - forKey: .dependency_graph_autosubmit_action + self.dependencyGraphAutosubmitAction = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload.self, + forKey: .dependencyGraphAutosubmitAction ) - dependency_graph_autosubmit_action_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload.self, - forKey: .dependency_graph_autosubmit_action_options + self.dependencyGraphAutosubmitActionOptions = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload.self, + forKey: .dependencyGraphAutosubmitActionOptions ) - dependabot_alerts = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_alertsPayload.self, - forKey: .dependabot_alerts + self.dependabotAlerts = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotAlertsPayload.self, + forKey: .dependabotAlerts ) - dependabot_security_updates = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.dependabot_security_updatesPayload.self, - forKey: .dependabot_security_updates + self.dependabotSecurityUpdates = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload.self, + forKey: .dependabotSecurityUpdates ) - code_scanning_default_setup = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, - forKey: .code_scanning_default_setup + self.codeScanningDefaultSetup = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload.self, + forKey: .codeScanningDefaultSetup ) - code_scanning_default_setup_options = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, - forKey: .code_scanning_default_setup_options + self.codeScanningDefaultSetupOptions = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupOptions.self, + forKey: .codeScanningDefaultSetupOptions ) - code_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload.self, - forKey: .code_scanning_delegated_alert_dismissal + self.codeScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload.self, + forKey: .codeScanningDelegatedAlertDismissal ) - secret_scanning = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanningPayload.self, - forKey: .secret_scanning + self.secretScanning = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPayload.self, + forKey: .secretScanning ) - secret_scanning_push_protection = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_push_protectionPayload.self, - forKey: .secret_scanning_push_protection + self.secretScanningPushProtection = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningPushProtectionPayload.self, + forKey: .secretScanningPushProtection ) - secret_scanning_validity_checks = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, - forKey: .secret_scanning_validity_checks + self.secretScanningValidityChecks = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningValidityChecksPayload.self, + forKey: .secretScanningValidityChecks ) - secret_scanning_non_provider_patterns = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, - forKey: .secret_scanning_non_provider_patterns + self.secretScanningNonProviderPatterns = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload.self, + forKey: .secretScanningNonProviderPatterns ) - secret_scanning_generic_secrets = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload.self, - forKey: .secret_scanning_generic_secrets + self.secretScanningGenericSecrets = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload.self, + forKey: .secretScanningGenericSecrets ) - secret_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload.self, - forKey: .secret_scanning_delegated_alert_dismissal + self.secretScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload.self, + forKey: .secretScanningDelegatedAlertDismissal ) - private_vulnerability_reporting = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, - forKey: .private_vulnerability_reporting + self.privateVulnerabilityReporting = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload.self, + forKey: .privateVulnerabilityReporting ) - enforcement = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.enforcementPayload.self, + self.enforcement = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload.EnforcementPayload.self, forKey: .enforcement ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -2787,9 +2796,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload) + case json(Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body + public var body: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2797,9 +2806,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Body + path: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Headers = .init(), + body: Operations.CodeSecurityCreateConfigurationForEnterprise.Input.Body ) { self.path = path self.headers = headers @@ -2811,12 +2820,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -2826,12 +2835,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Created.Body + public var body: Operations.CodeSecurityCreateConfigurationForEnterprise.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Created.Body) { + public init(body: Operations.CodeSecurityCreateConfigurationForEnterprise.Output.Created.Body) { self.body = body } } @@ -2840,12 +2849,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Created) + case created(Operations.CodeSecurityCreateConfigurationForEnterprise.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.code_hyphen_security_sol_create_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Created { + public var created: Operations.CodeSecurityCreateConfigurationForEnterprise.Output.Created { get throws { switch self { case let .created(response): @@ -2863,12 +2872,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -2886,12 +2895,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -2909,12 +2918,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/post(code-security/create-configuration-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2934,14 +2943,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -2952,14 +2961,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -2974,7 +2983,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/defaults/get(code-security/get-default-configurations-for-enterprise)`. - public enum code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise { + public enum CodeSecurityGetDefaultConfigurationsForEnterprise { public static let id: Swift.String = "code-security/get-default-configurations-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/defaults/GET/path`. @@ -2982,36 +2991,36 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/defaults/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - public init(enterprise: Components.Parameters.enterprise) { + public init(enterprise: Components.Parameters.Enterprise) { self.enterprise = enterprise } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/defaults/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Path, + headers: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3022,12 +3031,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/defaults/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/defaults/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations) + case json(Components.Schemas.CodeSecurityDefaultConfigurations) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations { + public var json: Components.Schemas.CodeSecurityDefaultConfigurations { get throws { switch self { case let .json(body): @@ -3037,12 +3046,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output.Ok.Body) { self.body = body } } @@ -3051,12 +3060,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/defaults/get(code-security/get-default-configurations-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.CodeSecurityGetDefaultConfigurationsForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -3110,7 +3119,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)`. - public enum code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise { + public enum CodeSecurityGetSingleConfigurationForEnterprise { public static let id: Swift.String = "code-security/get-single-configuration-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/path`. @@ -3118,45 +3127,45 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -3167,12 +3176,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -3182,12 +3191,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output.Ok.Body) { self.body = body } } @@ -3196,12 +3205,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_single_hyphen_configuration_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.CodeSecurityGetSingleConfigurationForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -3219,12 +3228,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3242,12 +3259,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3265,12 +3282,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/get(code-security/get-single-configuration-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3324,7 +3341,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)`. - public enum code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration { + public enum CodeSecurityUpdateEnterpriseConfiguration { public static let id: Swift.String = "code-security/update-enterprise-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/path`. @@ -3332,41 +3349,41 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Headers /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the code security configuration. Must be unique across the enterprise. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/name`. @@ -3378,368 +3395,368 @@ public enum Operations { /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/advanced_security`. - @frozen public enum advanced_securityPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdvancedSecurityPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case code_security = "code_security" - case secret_protection = "secret_protection" + case codeSecurity = "code_security" + case secretProtection = "secret_protection" } /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/advanced_security`. - public var advanced_security: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? + public var advancedSecurity: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph`. - @frozen public enum dependency_graphPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph`. - public var dependency_graph: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? + public var dependencyGraph: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action`. - @frozen public enum dependency_graph_autosubmit_actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphAutosubmitActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action`. - public var dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? + public var dependencyGraphAutosubmitAction: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options`. - public struct dependency_graph_autosubmit_action_optionsPayload: Codable, Hashable, Sendable { + public struct DependencyGraphAutosubmitActionOptionsPayload: Codable, Hashable, Sendable { /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options/labeled_runners`. - public var labeled_runners: Swift.Bool? - /// Creates a new `dependency_graph_autosubmit_action_optionsPayload`. + public var labeledRunners: Swift.Bool? + /// Creates a new `DependencyGraphAutosubmitActionOptionsPayload`. /// /// - Parameters: - /// - labeled_runners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. - public init(labeled_runners: Swift.Bool? = nil) { - self.labeled_runners = labeled_runners + /// - labeledRunners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. + public init(labeledRunners: Swift.Bool? = nil) { + self.labeledRunners = labeledRunners } public enum CodingKeys: String, CodingKey { - case labeled_runners + case labeledRunners = "labeled_runners" } } /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options`. - public var dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? + public var dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_alerts`. - @frozen public enum dependabot_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_alerts`. - public var dependabot_alerts: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? + public var dependabotAlerts: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_security_updates`. - @frozen public enum dependabot_security_updatesPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecurityUpdatesPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_security_updates`. - public var dependabot_security_updates: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup`. - @frozen public enum code_scanning_default_setupPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDefaultSetupPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup`. - public var code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? + public var codeScanningDefaultSetup: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup_options`. - public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? + public var codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_delegated_alert_dismissal`. - @frozen public enum code_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_delegated_alert_dismissal`. - public var code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? + public var codeScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning`. - @frozen public enum secret_scanningPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning`. - public var secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? + public var secretScanning: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPayload? /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_push_protection`. - @frozen public enum secret_scanning_push_protectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPushProtectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_validity_checks`. - @frozen public enum secret_scanning_validity_checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningValidityChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_validity_checks`. - public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + public var secretScanningValidityChecks: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. - @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningNonProviderPatternsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_generic_secrets`. - @frozen public enum secret_scanning_generic_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningGenericSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_generic_secrets`. - public var secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? + public var secretScanningGenericSecrets: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_alert_dismissal`. - @frozen public enum secret_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_alert_dismissal`. - public var secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? + public var secretScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`. - @frozen public enum private_vulnerability_reportingPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivateVulnerabilityReportingPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`. - public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? + public var privateVulnerabilityReporting: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case enforced = "enforced" case unenforced = "unenforced" } /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`. - public var enforcement: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? - /// Creates a new `jsonPayload`. + public var enforcement: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.EnforcementPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the code security configuration. Must be unique across the enterprise. /// - description: A description of the code security configuration - /// - advanced_security: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. - /// - dependency_graph: The enablement status of Dependency Graph - /// - dependency_graph_autosubmit_action: The enablement status of Automatic dependency submission - /// - dependency_graph_autosubmit_action_options: Feature options for Automatic dependency submission - /// - dependabot_alerts: The enablement status of Dependabot alerts - /// - dependabot_security_updates: The enablement status of Dependabot security updates - /// - code_scanning_default_setup: The enablement status of code scanning default setup - /// - code_scanning_default_setup_options: - /// - code_scanning_delegated_alert_dismissal: The enablement status of code scanning delegated alert dismissal - /// - secret_scanning: The enablement status of secret scanning - /// - secret_scanning_push_protection: The enablement status of secret scanning push protection - /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks - /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non-provider patterns - /// - secret_scanning_generic_secrets: The enablement status of Copilot secret scanning - /// - secret_scanning_delegated_alert_dismissal: The enablement status of secret scanning delegated alert dismissal - /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting + /// - advancedSecurity: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. + /// - dependencyGraph: The enablement status of Dependency Graph + /// - dependencyGraphAutosubmitAction: The enablement status of Automatic dependency submission + /// - dependencyGraphAutosubmitActionOptions: Feature options for Automatic dependency submission + /// - dependabotAlerts: The enablement status of Dependabot alerts + /// - dependabotSecurityUpdates: The enablement status of Dependabot security updates + /// - codeScanningDefaultSetup: The enablement status of code scanning default setup + /// - codeScanningDefaultSetupOptions: + /// - codeScanningDelegatedAlertDismissal: The enablement status of code scanning delegated alert dismissal + /// - secretScanning: The enablement status of secret scanning + /// - secretScanningPushProtection: The enablement status of secret scanning push protection + /// - secretScanningValidityChecks: The enablement status of secret scanning validity checks + /// - secretScanningNonProviderPatterns: The enablement status of secret scanning non-provider patterns + /// - secretScanningGenericSecrets: The enablement status of Copilot secret scanning + /// - secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal + /// - privateVulnerabilityReporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( name: Swift.String? = nil, description: Swift.String? = nil, - advanced_security: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? = nil, - dependency_graph: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? = nil, - dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? = nil, - dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? = nil, - dependabot_alerts: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, - dependabot_security_updates: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, - code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, - code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, - code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? = nil, - secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, - secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, - secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, - secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? = nil, - secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? = nil, - private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, - enforcement: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? = nil + advancedSecurity: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil, + dependencyGraph: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? = nil, + dependencyGraphAutosubmitAction: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? = nil, + dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? = nil, + dependabotAlerts: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? = nil, + dependabotSecurityUpdates: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? = nil, + codeScanningDefaultSetup: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? = nil, + codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? = nil, + codeScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? = nil, + secretScanning: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPayload? = nil, + secretScanningPushProtection: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? = nil, + secretScanningValidityChecks: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? = nil, + secretScanningNonProviderPatterns: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningGenericSecrets: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? = nil, + secretScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? = nil, + privateVulnerabilityReporting: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? = nil, + enforcement: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.EnforcementPayload? = nil ) { self.name = name self.description = description - self.advanced_security = advanced_security - self.dependency_graph = dependency_graph - self.dependency_graph_autosubmit_action = dependency_graph_autosubmit_action - self.dependency_graph_autosubmit_action_options = dependency_graph_autosubmit_action_options - self.dependabot_alerts = dependabot_alerts - self.dependabot_security_updates = dependabot_security_updates - self.code_scanning_default_setup = code_scanning_default_setup - self.code_scanning_default_setup_options = code_scanning_default_setup_options - self.code_scanning_delegated_alert_dismissal = code_scanning_delegated_alert_dismissal - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_validity_checks = secret_scanning_validity_checks - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_generic_secrets = secret_scanning_generic_secrets - self.secret_scanning_delegated_alert_dismissal = secret_scanning_delegated_alert_dismissal - self.private_vulnerability_reporting = private_vulnerability_reporting + self.advancedSecurity = advancedSecurity + self.dependencyGraph = dependencyGraph + self.dependencyGraphAutosubmitAction = dependencyGraphAutosubmitAction + self.dependencyGraphAutosubmitActionOptions = dependencyGraphAutosubmitActionOptions + self.dependabotAlerts = dependabotAlerts + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.codeScanningDefaultSetup = codeScanningDefaultSetup + self.codeScanningDefaultSetupOptions = codeScanningDefaultSetupOptions + self.codeScanningDelegatedAlertDismissal = codeScanningDelegatedAlertDismissal + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningValidityChecks = secretScanningValidityChecks + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningGenericSecrets = secretScanningGenericSecrets + self.secretScanningDelegatedAlertDismissal = secretScanningDelegatedAlertDismissal + self.privateVulnerabilityReporting = privateVulnerabilityReporting self.enforcement = enforcement } public enum CodingKeys: String, CodingKey { case name case description - case advanced_security - case dependency_graph - case dependency_graph_autosubmit_action - case dependency_graph_autosubmit_action_options - case dependabot_alerts - case dependabot_security_updates - case code_scanning_default_setup - case code_scanning_default_setup_options - case code_scanning_delegated_alert_dismissal - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_validity_checks - case secret_scanning_non_provider_patterns - case secret_scanning_generic_secrets - case secret_scanning_delegated_alert_dismissal - case private_vulnerability_reporting + case advancedSecurity = "advanced_security" + case dependencyGraph = "dependency_graph" + case dependencyGraphAutosubmitAction = "dependency_graph_autosubmit_action" + case dependencyGraphAutosubmitActionOptions = "dependency_graph_autosubmit_action_options" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case codeScanningDefaultSetupOptions = "code_scanning_default_setup_options" + case codeScanningDelegatedAlertDismissal = "code_scanning_delegated_alert_dismissal" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningValidityChecks = "secret_scanning_validity_checks" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningGenericSecrets = "secret_scanning_generic_secrets" + case secretScanningDelegatedAlertDismissal = "secret_scanning_delegated_alert_dismissal" + case privateVulnerabilityReporting = "private_vulnerability_reporting" case enforcement } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - advanced_security = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload.self, - forKey: .advanced_security + self.advancedSecurity = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload.self, + forKey: .advancedSecurity ) - dependency_graph = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload.self, - forKey: .dependency_graph + self.dependencyGraph = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphPayload.self, + forKey: .dependencyGraph ) - dependency_graph_autosubmit_action = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload.self, - forKey: .dependency_graph_autosubmit_action + self.dependencyGraphAutosubmitAction = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload.self, + forKey: .dependencyGraphAutosubmitAction ) - dependency_graph_autosubmit_action_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload.self, - forKey: .dependency_graph_autosubmit_action_options + self.dependencyGraphAutosubmitActionOptions = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload.self, + forKey: .dependencyGraphAutosubmitActionOptions ) - dependabot_alerts = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload.self, - forKey: .dependabot_alerts + self.dependabotAlerts = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload.self, + forKey: .dependabotAlerts ) - dependabot_security_updates = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload.self, - forKey: .dependabot_security_updates + self.dependabotSecurityUpdates = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload.self, + forKey: .dependabotSecurityUpdates ) - code_scanning_default_setup = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, - forKey: .code_scanning_default_setup + self.codeScanningDefaultSetup = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload.self, + forKey: .codeScanningDefaultSetup ) - code_scanning_default_setup_options = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, - forKey: .code_scanning_default_setup_options + self.codeScanningDefaultSetupOptions = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupOptions.self, + forKey: .codeScanningDefaultSetupOptions ) - code_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload.self, - forKey: .code_scanning_delegated_alert_dismissal + self.codeScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload.self, + forKey: .codeScanningDelegatedAlertDismissal ) - secret_scanning = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload.self, - forKey: .secret_scanning + self.secretScanning = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPayload.self, + forKey: .secretScanning ) - secret_scanning_push_protection = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload.self, - forKey: .secret_scanning_push_protection + self.secretScanningPushProtection = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload.self, + forKey: .secretScanningPushProtection ) - secret_scanning_validity_checks = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, - forKey: .secret_scanning_validity_checks + self.secretScanningValidityChecks = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload.self, + forKey: .secretScanningValidityChecks ) - secret_scanning_non_provider_patterns = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, - forKey: .secret_scanning_non_provider_patterns + self.secretScanningNonProviderPatterns = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload.self, + forKey: .secretScanningNonProviderPatterns ) - secret_scanning_generic_secrets = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload.self, - forKey: .secret_scanning_generic_secrets + self.secretScanningGenericSecrets = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload.self, + forKey: .secretScanningGenericSecrets ) - secret_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload.self, - forKey: .secret_scanning_delegated_alert_dismissal + self.secretScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload.self, + forKey: .secretScanningDelegatedAlertDismissal ) - private_vulnerability_reporting = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, - forKey: .private_vulnerability_reporting + self.privateVulnerabilityReporting = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload.self, + forKey: .privateVulnerabilityReporting ) - enforcement = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload.self, + self.enforcement = try container.decodeIfPresent( + Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload.EnforcementPayload.self, forKey: .enforcement ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -3766,9 +3783,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -3776,9 +3793,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Input.Body + path: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Path, + headers: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -3790,12 +3807,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -3805,12 +3822,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output.Ok.Body + public var body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output.Ok.Body) { + public init(body: Operations.CodeSecurityUpdateEnterpriseConfiguration.Output.Ok.Body) { self.body = body } } @@ -3819,12 +3836,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output.Ok) + case ok(Operations.CodeSecurityUpdateEnterpriseConfiguration.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_update_hyphen_enterprise_hyphen_configuration.Output.Ok { + public var ok: Operations.CodeSecurityUpdateEnterpriseConfiguration.Output.Ok { get throws { switch self { case let .ok(response): @@ -3842,12 +3859,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -3865,12 +3890,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -3888,12 +3913,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -3911,12 +3936,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/patch(code-security/update-enterprise-configuration)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -3972,7 +3997,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)`. - public enum code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise { + public enum CodeSecurityDeleteConfigurationForEnterprise { public static let id: Swift.String = "code-security/delete-configuration-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/DELETE/path`. @@ -3980,45 +4005,45 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/DELETE/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/DELETE/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration_hyphen_for_hyphen_enterprise.Input.Headers = .init() + path: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Path, + headers: Operations.CodeSecurityDeleteConfigurationForEnterprise.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -4030,12 +4055,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -4053,12 +4086,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -4076,12 +4109,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4099,12 +4132,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4122,12 +4155,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration-for-enterprise)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -4147,14 +4180,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -4165,14 +4198,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -4189,7 +4222,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)`. - public enum code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration { + public enum CodeSecurityAttachEnterpriseConfiguration { public static let id: Swift.String = "code-security/attach-enterprise-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/path`. @@ -4197,57 +4230,57 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Headers /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The type of repositories to attach the configuration to. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" - case all_without_configurations = "all_without_configurations" + case allWithoutConfigurations = "all_without_configurations" } /// The type of repositories to attach the configuration to. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json/scope`. - public var scope: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.scopePayload - /// Creates a new `jsonPayload`. + public var scope: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body.JsonPayload.ScopePayload + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - scope: The type of repositories to attach the configuration to. - public init(scope: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.scopePayload) { + public init(scope: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body.JsonPayload.ScopePayload) { self.scope = scope } public enum CodingKeys: String, CodingKey { @@ -4255,8 +4288,8 @@ public enum Operations { } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - scope = try container.decode( - Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload.scopePayload.self, + self.scope = try container.decode( + Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body.JsonPayload.ScopePayload.self, forKey: .scope ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -4265,9 +4298,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4275,9 +4308,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_attach_hyphen_enterprise_hyphen_configuration.Input.Body + path: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Path, + headers: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityAttachEnterpriseConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -4290,12 +4323,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -4313,12 +4346,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4336,12 +4369,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4359,12 +4392,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-enterprise-configuration)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -4420,7 +4453,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)`. - public enum code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise { + public enum CodeSecuritySetConfigurationAsDefaultForEnterprise { public static let id: Swift.String = "code-security/set-configuration-as-default-for-enterprise" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/path`. @@ -4428,69 +4461,69 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Path + public var path: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Headers + public var headers: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Headers /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Specify which types of repository this security configuration should be applied to by default. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json/default_for_new_repos`. - @frozen public enum default_for_new_reposPayload: String, Codable, Hashable, Sendable { + @frozen public enum DefaultForNewReposPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case none = "none" - case private_and_internal = "private_and_internal" + case privateAndInternal = "private_and_internal" case _public = "public" } /// Specify which types of repository this security configuration should be applied to by default. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json/default_for_new_repos`. - public var default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.default_for_new_reposPayload? - /// Creates a new `jsonPayload`. + public var defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body.JsonPayload.DefaultForNewReposPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - default_for_new_repos: Specify which types of repository this security configuration should be applied to by default. - public init(default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload.default_for_new_reposPayload? = nil) { - self.default_for_new_repos = default_for_new_repos + /// - defaultForNewRepos: Specify which types of repository this security configuration should be applied to by default. + public init(defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body.JsonPayload.DefaultForNewReposPayload? = nil) { + self.defaultForNewRepos = defaultForNewRepos } public enum CodingKeys: String, CodingKey { - case default_for_new_repos + case defaultForNewRepos = "default_for_new_repos" } } /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body.jsonPayload) + case json(Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body + public var body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -4498,9 +4531,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Path, - headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Input.Body + path: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Path, + headers: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Headers = .init(), + body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Input.Body ) { self.path = path self.headers = headers @@ -4512,46 +4545,46 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Specifies which types of repository this security configuration is applied to by default. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/default_for_new_repos`. - @frozen public enum default_for_new_reposPayload: String, Codable, Hashable, Sendable { + @frozen public enum DefaultForNewReposPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case none = "none" - case private_and_internal = "private_and_internal" + case privateAndInternal = "private_and_internal" case _public = "public" } /// Specifies which types of repository this security configuration is applied to by default. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/default_for_new_repos`. - public var default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body.jsonPayload.default_for_new_reposPayload? + public var defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body.JsonPayload.DefaultForNewReposPayload? /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/configuration`. - public var configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? - /// Creates a new `jsonPayload`. + public var configuration: Components.Schemas.CodeSecurityConfiguration? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - default_for_new_repos: Specifies which types of repository this security configuration is applied to by default. + /// - defaultForNewRepos: Specifies which types of repository this security configuration is applied to by default. /// - configuration: public init( - default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body.jsonPayload.default_for_new_reposPayload? = nil, - configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? = nil + defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body.JsonPayload.DefaultForNewReposPayload? = nil, + configuration: Components.Schemas.CodeSecurityConfiguration? = nil ) { - self.default_for_new_repos = default_for_new_repos + self.defaultForNewRepos = defaultForNewRepos self.configuration = configuration } public enum CodingKeys: String, CodingKey { - case default_for_new_repos + case defaultForNewRepos = "default_for_new_repos" case configuration } } /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/application\/json`. - case json(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body.jsonPayload) + case json(Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body.jsonPayload { + public var json: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -4561,12 +4594,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body + public var body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok.Body) { + public init(body: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok.Body) { self.body = body } } @@ -4575,12 +4608,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok) + case ok(Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default_hyphen_for_hyphen_enterprise.Output.Ok { + public var ok: Operations.CodeSecuritySetConfigurationAsDefaultForEnterprise.Output.Ok { get throws { switch self { case let .ok(response): @@ -4598,12 +4631,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4621,12 +4654,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default-for-enterprise)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4680,7 +4713,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)`. - public enum code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration { + public enum CodeSecurityGetRepositoriesForEnterpriseConfiguration { public static let id: Swift.String = "code-security/get-repositories-for-enterprise-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/path`. @@ -4688,39 +4721,39 @@ public enum Operations { /// The slug version of the enterprise name. You can also substitute this value with the enterprise id. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/path/enterprise`. - public var enterprise: Components.Parameters.enterprise + public var enterprise: Components.Parameters.Enterprise /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - enterprise: Components.Parameters.enterprise, - configuration_id: Components.Parameters.configuration_hyphen_id + enterprise: Components.Parameters.Enterprise, + configurationId: Components.Parameters.ConfigurationId ) { self.enterprise = enterprise - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Path /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. /// /// Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` @@ -4730,35 +4763,35 @@ public enum Operations { /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - status: A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. public init( - per_page: Swift.Int? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, + perPage: Swift.Int? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, status: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.status = status } } - public var query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Query + public var query: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Query /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4766,9 +4799,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Input.Headers = .init() + path: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Path, + query: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Query = .init(), + headers: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Input.Headers = .init() ) { self.path = path self.query = query @@ -4780,12 +4813,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories]) + case json([Components.Schemas.CodeSecurityConfigurationRepositories]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories] { + public var json: [Components.Schemas.CodeSecurityConfigurationRepositories] { get throws { switch self { case let .json(body): @@ -4795,12 +4828,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output.Ok.Body + public var body: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output.Ok.Body) { self.body = body } } @@ -4809,12 +4842,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output.Ok) + case ok(Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_enterprise_hyphen_configuration.Output.Ok { + public var ok: Operations.CodeSecurityGetRepositoriesForEnterpriseConfiguration.Output.Ok { get throws { switch self { case let .ok(response): @@ -4832,12 +4865,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -4855,12 +4888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-enterprise-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -4914,7 +4947,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`. - public enum code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org { + public enum CodeSecurityGetConfigurationsForOrg { public static let id: Swift.String = "code-security/get-configurations-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/path`. @@ -4922,71 +4955,71 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Path + public var path: Operations.CodeSecurityGetConfigurationsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query`. public struct Query: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query/target_type`. - @frozen public enum target_typePayload: String, Codable, Hashable, Sendable { + @frozen public enum TargetTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case global = "global" case all = "all" } /// The target type of the code security configuration /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query/target_type`. - public var target_type: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Query.target_typePayload? + public var targetType: Operations.CodeSecurityGetConfigurationsForOrg.Input.Query.TargetTypePayload? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// Creates a new `Query`. /// /// - Parameters: - /// - target_type: The target type of the code security configuration - /// - 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)." + /// - targetType: The target type of the code security configuration + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." public init( - target_type: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Query.target_typePayload? = nil, - per_page: Swift.Int? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil + targetType: Operations.CodeSecurityGetConfigurationsForOrg.Input.Query.TargetTypePayload? = nil, + perPage: Swift.Int? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil ) { - self.target_type = target_type - self.per_page = per_page + self.targetType = targetType + self.perPage = perPage self.before = before self.after = after } } - public var query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Query + public var query: Operations.CodeSecurityGetConfigurationsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.CodeSecurityGetConfigurationsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -4994,9 +5027,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.CodeSecurityGetConfigurationsForOrg.Input.Path, + query: Operations.CodeSecurityGetConfigurationsForOrg.Input.Query = .init(), + headers: Operations.CodeSecurityGetConfigurationsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -5008,12 +5041,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_security_hyphen_configuration]) + case json([Components.Schemas.CodeSecurityConfiguration]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_security_hyphen_configuration] { + public var json: [Components.Schemas.CodeSecurityConfiguration] { get throws { switch self { case let .json(body): @@ -5023,12 +5056,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.CodeSecurityGetConfigurationsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetConfigurationsForOrg.Output.Ok.Body) { self.body = body } } @@ -5037,12 +5070,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.CodeSecurityGetConfigurationsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.CodeSecurityGetConfigurationsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -5060,12 +5093,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5083,12 +5116,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5142,7 +5175,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/post(code-security/create-configuration)`. - public enum code_hyphen_security_sol_create_hyphen_configuration { + public enum CodeSecurityCreateConfiguration { public static let id: Swift.String = "code-security/create-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/path`. @@ -5150,32 +5183,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityCreateConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityCreateConfiguration.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the code security configuration. Must be unique within the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/name`. @@ -5187,200 +5220,200 @@ public enum Operations { /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/advanced_security`. - @frozen public enum advanced_securityPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdvancedSecurityPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case code_security = "code_security" - case secret_protection = "secret_protection" + case codeSecurity = "code_security" + case secretProtection = "secret_protection" } /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/advanced_security`. - public var advanced_security: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? + public var advancedSecurity: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph`. - @frozen public enum dependency_graphPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph`. - public var dependency_graph: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? + public var dependencyGraph: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action`. - @frozen public enum dependency_graph_autosubmit_actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphAutosubmitActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action`. - public var dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? + public var dependencyGraphAutosubmitAction: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options`. - public struct dependency_graph_autosubmit_action_optionsPayload: Codable, Hashable, Sendable { + public struct DependencyGraphAutosubmitActionOptionsPayload: Codable, Hashable, Sendable { /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options/labeled_runners`. - public var labeled_runners: Swift.Bool? - /// Creates a new `dependency_graph_autosubmit_action_optionsPayload`. + public var labeledRunners: Swift.Bool? + /// Creates a new `DependencyGraphAutosubmitActionOptionsPayload`. /// /// - Parameters: - /// - labeled_runners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. - public init(labeled_runners: Swift.Bool? = nil) { - self.labeled_runners = labeled_runners + /// - labeledRunners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. + public init(labeledRunners: Swift.Bool? = nil) { + self.labeledRunners = labeledRunners } public enum CodingKeys: String, CodingKey { - case labeled_runners + case labeledRunners = "labeled_runners" } } /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependency_graph_autosubmit_action_options`. - public var dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? + public var dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependabot_alerts`. - @frozen public enum dependabot_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependabot_alerts`. - public var dependabot_alerts: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? + public var dependabotAlerts: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependabot_security_updates`. - @frozen public enum dependabot_security_updatesPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecurityUpdatesPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/dependabot_security_updates`. - public var dependabot_security_updates: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup`. - @frozen public enum code_scanning_default_setupPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDefaultSetupPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup`. - public var code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? + public var codeScanningDefaultSetup: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_default_setup_options`. - public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? + public var codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_delegated_alert_dismissal`. - @frozen public enum code_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/code_scanning_delegated_alert_dismissal`. - public var code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? + public var codeScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning`. - @frozen public enum secret_scanningPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning`. - public var secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? + public var secretScanning: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPayload? /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_push_protection`. - @frozen public enum secret_scanning_push_protectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPushProtectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass`. - @frozen public enum secret_scanning_delegated_bypassPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedBypassPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass`. - public var secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? + public var secretScanningDelegatedBypass: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload? /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options`. - public struct secret_scanning_delegated_bypass_optionsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { + public struct SecretScanningDelegatedBypassOptionsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { /// The ID of the team or role selected as a bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_id`. - public var reviewer_id: Swift.Int + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_id`. + public var reviewerId: Swift.Int /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - @frozen public enum reviewer_typePayload: String, Codable, Hashable, Sendable { - case TEAM = "TEAM" - case ROLE = "ROLE" + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + @frozen public enum ReviewerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case team = "TEAM" + case role = "ROLE" } /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - public var reviewer_type: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload - /// Creates a new `reviewersPayloadPayload`. + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + public var reviewerType: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: - /// - reviewer_id: The ID of the team or role selected as a bypass reviewer - /// - reviewer_type: The type of the bypass reviewer + /// - reviewerId: The ID of the team or role selected as a bypass reviewer + /// - reviewerType: The type of the bypass reviewer public init( - reviewer_id: Swift.Int, - reviewer_type: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload + reviewerId: Swift.Int, + reviewerType: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload ) { - self.reviewer_id = reviewer_id - self.reviewer_type = reviewer_type + self.reviewerId = reviewerId + self.reviewerType = reviewerType } public enum CodingKeys: String, CodingKey { - case reviewer_id - case reviewer_type + case reviewerId = "reviewer_id" + case reviewerType = "reviewer_type" } } /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewers`. - public typealias reviewersPayload = [Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload] + public typealias ReviewersPayload = [Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload] /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/reviewers`. - public var reviewers: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? - /// Creates a new `secret_scanning_delegated_bypass_optionsPayload`. + public var reviewers: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? + /// Creates a new `SecretScanningDelegatedBypassOptionsPayload`. /// /// - Parameters: /// - reviewers: The bypass reviewers for secret scanning delegated bypass - public init(reviewers: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? = nil) { + public init(reviewers: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? = nil) { self.reviewers = reviewers } public enum CodingKeys: String, CodingKey { @@ -5390,254 +5423,254 @@ public enum Operations { /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options`. - public var secret_scanning_delegated_bypass_options: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload? + public var secretScanningDelegatedBypassOptions: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload? /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_validity_checks`. - @frozen public enum secret_scanning_validity_checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningValidityChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_validity_checks`. - public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + public var secretScanningValidityChecks: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? /// The enablement status of secret scanning non provider patterns /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. - @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningNonProviderPatternsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning non provider patterns /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_generic_secrets`. - @frozen public enum secret_scanning_generic_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningGenericSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_generic_secrets`. - public var secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? + public var secretScanningGenericSecrets: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_alert_dismissal`. - @frozen public enum secret_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_alert_dismissal`. - public var secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? + public var secretScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`. - @frozen public enum private_vulnerability_reportingPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivateVulnerabilityReportingPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`. - public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? + public var privateVulnerabilityReporting: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case enforced = "enforced" case unenforced = "unenforced" } /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/enforcement`. - public var enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? - /// Creates a new `jsonPayload`. + public var enforcement: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.EnforcementPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the code security configuration. Must be unique within the organization. /// - description: A description of the code security configuration - /// - advanced_security: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. - /// - dependency_graph: The enablement status of Dependency Graph - /// - dependency_graph_autosubmit_action: The enablement status of Automatic dependency submission - /// - dependency_graph_autosubmit_action_options: Feature options for Automatic dependency submission - /// - dependabot_alerts: The enablement status of Dependabot alerts - /// - dependabot_security_updates: The enablement status of Dependabot security updates - /// - code_scanning_default_setup: The enablement status of code scanning default setup - /// - code_scanning_default_setup_options: - /// - code_scanning_delegated_alert_dismissal: The enablement status of code scanning delegated alert dismissal - /// - secret_scanning: The enablement status of secret scanning - /// - secret_scanning_push_protection: The enablement status of secret scanning push protection - /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass - /// - secret_scanning_delegated_bypass_options: Feature options for secret scanning delegated bypass - /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks - /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non provider patterns - /// - secret_scanning_generic_secrets: The enablement status of Copilot secret scanning - /// - secret_scanning_delegated_alert_dismissal: The enablement status of secret scanning delegated alert dismissal - /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting + /// - advancedSecurity: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. + /// - dependencyGraph: The enablement status of Dependency Graph + /// - dependencyGraphAutosubmitAction: The enablement status of Automatic dependency submission + /// - dependencyGraphAutosubmitActionOptions: Feature options for Automatic dependency submission + /// - dependabotAlerts: The enablement status of Dependabot alerts + /// - dependabotSecurityUpdates: The enablement status of Dependabot security updates + /// - codeScanningDefaultSetup: The enablement status of code scanning default setup + /// - codeScanningDefaultSetupOptions: + /// - codeScanningDelegatedAlertDismissal: The enablement status of code scanning delegated alert dismissal + /// - secretScanning: The enablement status of secret scanning + /// - secretScanningPushProtection: The enablement status of secret scanning push protection + /// - secretScanningDelegatedBypass: The enablement status of secret scanning delegated bypass + /// - secretScanningDelegatedBypassOptions: Feature options for secret scanning delegated bypass + /// - secretScanningValidityChecks: The enablement status of secret scanning validity checks + /// - secretScanningNonProviderPatterns: The enablement status of secret scanning non provider patterns + /// - secretScanningGenericSecrets: The enablement status of Copilot secret scanning + /// - secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal + /// - privateVulnerabilityReporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( name: Swift.String, description: Swift.String, - advanced_security: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? = nil, - dependency_graph: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? = nil, - dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? = nil, - dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? = nil, - dependabot_alerts: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, - dependabot_security_updates: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, - code_scanning_default_setup: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, - code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, - code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? = nil, - secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, - secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, - secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? = nil, - secret_scanning_delegated_bypass_options: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload? = nil, - secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, - secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? = nil, - secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? = nil, - private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, - enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? = nil + advancedSecurity: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil, + dependencyGraph: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? = nil, + dependencyGraphAutosubmitAction: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? = nil, + dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? = nil, + dependabotAlerts: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? = nil, + dependabotSecurityUpdates: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? = nil, + codeScanningDefaultSetup: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? = nil, + codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? = nil, + codeScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? = nil, + secretScanning: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPayload? = nil, + secretScanningPushProtection: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? = nil, + secretScanningDelegatedBypass: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload? = nil, + secretScanningDelegatedBypassOptions: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload? = nil, + secretScanningValidityChecks: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? = nil, + secretScanningNonProviderPatterns: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningGenericSecrets: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? = nil, + secretScanningDelegatedAlertDismissal: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? = nil, + privateVulnerabilityReporting: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? = nil, + enforcement: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.EnforcementPayload? = nil ) { self.name = name self.description = description - self.advanced_security = advanced_security - self.dependency_graph = dependency_graph - self.dependency_graph_autosubmit_action = dependency_graph_autosubmit_action - self.dependency_graph_autosubmit_action_options = dependency_graph_autosubmit_action_options - self.dependabot_alerts = dependabot_alerts - self.dependabot_security_updates = dependabot_security_updates - self.code_scanning_default_setup = code_scanning_default_setup - self.code_scanning_default_setup_options = code_scanning_default_setup_options - self.code_scanning_delegated_alert_dismissal = code_scanning_delegated_alert_dismissal - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass - self.secret_scanning_delegated_bypass_options = secret_scanning_delegated_bypass_options - self.secret_scanning_validity_checks = secret_scanning_validity_checks - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_generic_secrets = secret_scanning_generic_secrets - self.secret_scanning_delegated_alert_dismissal = secret_scanning_delegated_alert_dismissal - self.private_vulnerability_reporting = private_vulnerability_reporting + self.advancedSecurity = advancedSecurity + self.dependencyGraph = dependencyGraph + self.dependencyGraphAutosubmitAction = dependencyGraphAutosubmitAction + self.dependencyGraphAutosubmitActionOptions = dependencyGraphAutosubmitActionOptions + self.dependabotAlerts = dependabotAlerts + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.codeScanningDefaultSetup = codeScanningDefaultSetup + self.codeScanningDefaultSetupOptions = codeScanningDefaultSetupOptions + self.codeScanningDelegatedAlertDismissal = codeScanningDelegatedAlertDismissal + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningDelegatedBypass = secretScanningDelegatedBypass + self.secretScanningDelegatedBypassOptions = secretScanningDelegatedBypassOptions + self.secretScanningValidityChecks = secretScanningValidityChecks + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningGenericSecrets = secretScanningGenericSecrets + self.secretScanningDelegatedAlertDismissal = secretScanningDelegatedAlertDismissal + self.privateVulnerabilityReporting = privateVulnerabilityReporting self.enforcement = enforcement } public enum CodingKeys: String, CodingKey { case name case description - case advanced_security - case dependency_graph - case dependency_graph_autosubmit_action - case dependency_graph_autosubmit_action_options - case dependabot_alerts - case dependabot_security_updates - case code_scanning_default_setup - case code_scanning_default_setup_options - case code_scanning_delegated_alert_dismissal - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_delegated_bypass - case secret_scanning_delegated_bypass_options - case secret_scanning_validity_checks - case secret_scanning_non_provider_patterns - case secret_scanning_generic_secrets - case secret_scanning_delegated_alert_dismissal - case private_vulnerability_reporting + case advancedSecurity = "advanced_security" + case dependencyGraph = "dependency_graph" + case dependencyGraphAutosubmitAction = "dependency_graph_autosubmit_action" + case dependencyGraphAutosubmitActionOptions = "dependency_graph_autosubmit_action_options" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case codeScanningDefaultSetupOptions = "code_scanning_default_setup_options" + case codeScanningDelegatedAlertDismissal = "code_scanning_delegated_alert_dismissal" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningDelegatedBypass = "secret_scanning_delegated_bypass" + case secretScanningDelegatedBypassOptions = "secret_scanning_delegated_bypass_options" + case secretScanningValidityChecks = "secret_scanning_validity_checks" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningGenericSecrets = "secret_scanning_generic_secrets" + case secretScanningDelegatedAlertDismissal = "secret_scanning_delegated_alert_dismissal" + case privateVulnerabilityReporting = "private_vulnerability_reporting" case enforcement } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - advanced_security = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload.self, - forKey: .advanced_security + self.advancedSecurity = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload.self, + forKey: .advancedSecurity ) - dependency_graph = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload.self, - forKey: .dependency_graph + self.dependencyGraph = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload.self, + forKey: .dependencyGraph ) - dependency_graph_autosubmit_action = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload.self, - forKey: .dependency_graph_autosubmit_action + self.dependencyGraphAutosubmitAction = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload.self, + forKey: .dependencyGraphAutosubmitAction ) - dependency_graph_autosubmit_action_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload.self, - forKey: .dependency_graph_autosubmit_action_options + self.dependencyGraphAutosubmitActionOptions = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload.self, + forKey: .dependencyGraphAutosubmitActionOptions ) - dependabot_alerts = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload.self, - forKey: .dependabot_alerts + self.dependabotAlerts = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload.self, + forKey: .dependabotAlerts ) - dependabot_security_updates = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload.self, - forKey: .dependabot_security_updates + self.dependabotSecurityUpdates = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload.self, + forKey: .dependabotSecurityUpdates ) - code_scanning_default_setup = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, - forKey: .code_scanning_default_setup + self.codeScanningDefaultSetup = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload.self, + forKey: .codeScanningDefaultSetup ) - code_scanning_default_setup_options = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, - forKey: .code_scanning_default_setup_options + self.codeScanningDefaultSetupOptions = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupOptions.self, + forKey: .codeScanningDefaultSetupOptions ) - code_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload.self, - forKey: .code_scanning_delegated_alert_dismissal + self.codeScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload.self, + forKey: .codeScanningDelegatedAlertDismissal ) - secret_scanning = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload.self, - forKey: .secret_scanning + self.secretScanning = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPayload.self, + forKey: .secretScanning ) - secret_scanning_push_protection = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload.self, - forKey: .secret_scanning_push_protection + self.secretScanningPushProtection = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload.self, + forKey: .secretScanningPushProtection ) - secret_scanning_delegated_bypass = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload.self, - forKey: .secret_scanning_delegated_bypass + self.secretScanningDelegatedBypass = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload.self, + forKey: .secretScanningDelegatedBypass ) - secret_scanning_delegated_bypass_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.self, - forKey: .secret_scanning_delegated_bypass_options + self.secretScanningDelegatedBypassOptions = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.self, + forKey: .secretScanningDelegatedBypassOptions ) - secret_scanning_validity_checks = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, - forKey: .secret_scanning_validity_checks + self.secretScanningValidityChecks = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload.self, + forKey: .secretScanningValidityChecks ) - secret_scanning_non_provider_patterns = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, - forKey: .secret_scanning_non_provider_patterns + self.secretScanningNonProviderPatterns = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload.self, + forKey: .secretScanningNonProviderPatterns ) - secret_scanning_generic_secrets = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload.self, - forKey: .secret_scanning_generic_secrets + self.secretScanningGenericSecrets = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload.self, + forKey: .secretScanningGenericSecrets ) - secret_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload.self, - forKey: .secret_scanning_delegated_alert_dismissal + self.secretScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload.self, + forKey: .secretScanningDelegatedAlertDismissal ) - private_vulnerability_reporting = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, - forKey: .private_vulnerability_reporting + self.privateVulnerabilityReporting = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload.self, + forKey: .privateVulnerabilityReporting ) - enforcement = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload.self, + self.enforcement = try container.decodeIfPresent( + Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.EnforcementPayload.self, forKey: .enforcement ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -5666,9 +5699,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityCreateConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -5676,9 +5709,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body + path: Operations.CodeSecurityCreateConfiguration.Input.Path, + headers: Operations.CodeSecurityCreateConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityCreateConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -5690,12 +5723,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -5705,12 +5738,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Output.Created.Body + public var body: Operations.CodeSecurityCreateConfiguration.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_create_hyphen_configuration.Output.Created.Body) { + public init(body: Operations.CodeSecurityCreateConfiguration.Output.Created.Body) { self.body = body } } @@ -5719,12 +5752,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/post(code-security/create-configuration)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.code_hyphen_security_sol_create_hyphen_configuration.Output.Created) + case created(Operations.CodeSecurityCreateConfiguration.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.code_hyphen_security_sol_create_hyphen_configuration.Output.Created { + public var created: Operations.CodeSecurityCreateConfiguration.Output.Created { get throws { switch self { case let .created(response): @@ -5778,7 +5811,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`. - public enum code_hyphen_security_sol_get_hyphen_default_hyphen_configurations { + public enum CodeSecurityGetDefaultConfigurations { public static let id: Swift.String = "code-security/get-default-configurations" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/defaults/GET/path`. @@ -5786,36 +5819,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/defaults/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Path + public var path: Operations.CodeSecurityGetDefaultConfigurations.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/defaults/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Headers + public var headers: Operations.CodeSecurityGetDefaultConfigurations.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Input.Headers = .init() + path: Operations.CodeSecurityGetDefaultConfigurations.Input.Path, + headers: Operations.CodeSecurityGetDefaultConfigurations.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -5826,12 +5859,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/defaults/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/defaults/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations) + case json(Components.Schemas.CodeSecurityDefaultConfigurations) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_default_hyphen_configurations { + public var json: Components.Schemas.CodeSecurityDefaultConfigurations { get throws { switch self { case let .json(body): @@ -5841,12 +5874,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output.Ok.Body + public var body: Operations.CodeSecurityGetDefaultConfigurations.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetDefaultConfigurations.Output.Ok.Body) { self.body = body } } @@ -5855,12 +5888,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output.Ok) + case ok(Operations.CodeSecurityGetDefaultConfigurations.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_default_hyphen_configurations.Output.Ok { + public var ok: Operations.CodeSecurityGetDefaultConfigurations.Output.Ok { get throws { switch self { case let .ok(response): @@ -5878,12 +5911,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -5901,12 +5942,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -5924,12 +5965,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -5984,7 +6025,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/detach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)`. - public enum code_hyphen_security_sol_detach_hyphen_configuration { + public enum CodeSecurityDetachConfiguration { public static let id: Swift.String = "code-security/detach-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/path`. @@ -5992,51 +6033,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityDetachConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityDetachConfiguration.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// An array of repository IDs to detach from configurations. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - selected_repository_ids: An array of repository IDs to detach from configurations. - public init(selected_repository_ids: [Swift.Int]? = nil) { - self.selected_repository_ids = selected_repository_ids + /// - selectedRepositoryIds: An array of repository IDs to detach from configurations. + public init(selectedRepositoryIds: [Swift.Int]? = nil) { + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - selected_repository_ids = try container.decodeIfPresent( + self.selectedRepositoryIds = try container.decodeIfPresent( [Swift.Int].self, - forKey: .selected_repository_ids + forKey: .selectedRepositoryIds ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "selected_repository_ids" @@ -6044,9 +6085,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/detach/DELETE/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityDetachConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityDetachConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6054,9 +6095,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_detach_hyphen_configuration.Input.Body + path: Operations.CodeSecurityDetachConfiguration.Input.Path, + headers: Operations.CodeSecurityDetachConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityDetachConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -6069,12 +6110,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -6092,12 +6141,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -6115,12 +6164,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6138,12 +6187,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6161,12 +6210,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/detach/delete(code-security/detach-configuration)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -6186,14 +6235,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -6204,14 +6253,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -6226,7 +6275,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)`. - public enum code_hyphen_security_sol_get_hyphen_configuration { + public enum CodeSecurityGetConfiguration { public static let id: Swift.String = "code-security/get-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/path`. @@ -6234,45 +6283,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityGetConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityGetConfiguration.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_configuration.Input.Headers = .init() + path: Operations.CodeSecurityGetConfiguration.Input.Path, + headers: Operations.CodeSecurityGetConfiguration.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -6283,12 +6332,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -6298,12 +6347,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_configuration.Output.Ok.Body + public var body: Operations.CodeSecurityGetConfiguration.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_configuration.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetConfiguration.Output.Ok.Body) { self.body = body } } @@ -6312,12 +6361,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_configuration.Output.Ok) + case ok(Operations.CodeSecurityGetConfiguration.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_configuration.Output.Ok { + public var ok: Operations.CodeSecurityGetConfiguration.Output.Ok { get throws { switch self { case let .ok(response): @@ -6335,12 +6384,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -6358,12 +6415,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -6381,12 +6438,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/get(code-security/get-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -6440,7 +6497,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)`. - public enum code_hyphen_security_sol_update_hyphen_configuration { + public enum CodeSecurityUpdateConfiguration { public static let id: Swift.String = "code-security/update-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/path`. @@ -6448,41 +6505,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityUpdateConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityUpdateConfiguration.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the code security configuration. Must be unique within the organization. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/name`. @@ -6494,200 +6551,200 @@ public enum Operations { /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/advanced_security`. - @frozen public enum advanced_securityPayload: String, Codable, Hashable, Sendable { + @frozen public enum AdvancedSecurityPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case code_security = "code_security" - case secret_protection = "secret_protection" + case codeSecurity = "code_security" + case secretProtection = "secret_protection" } /// The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/advanced_security`. - public var advanced_security: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? + public var advancedSecurity: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph`. - @frozen public enum dependency_graphPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependency Graph /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph`. - public var dependency_graph: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? + public var dependencyGraph: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action`. - @frozen public enum dependency_graph_autosubmit_actionPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependencyGraphAutosubmitActionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action`. - public var dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? + public var dependencyGraphAutosubmitAction: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options`. - public struct dependency_graph_autosubmit_action_optionsPayload: Codable, Hashable, Sendable { + public struct DependencyGraphAutosubmitActionOptionsPayload: Codable, Hashable, Sendable { /// Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options/labeled_runners`. - public var labeled_runners: Swift.Bool? - /// Creates a new `dependency_graph_autosubmit_action_optionsPayload`. + public var labeledRunners: Swift.Bool? + /// Creates a new `DependencyGraphAutosubmitActionOptionsPayload`. /// /// - Parameters: - /// - labeled_runners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. - public init(labeled_runners: Swift.Bool? = nil) { - self.labeled_runners = labeled_runners + /// - labeledRunners: Whether to use runners labeled with 'dependency-submission' or standard GitHub runners. + public init(labeledRunners: Swift.Bool? = nil) { + self.labeledRunners = labeledRunners } public enum CodingKeys: String, CodingKey { - case labeled_runners + case labeledRunners = "labeled_runners" } } /// Feature options for Automatic dependency submission /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependency_graph_autosubmit_action_options`. - public var dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? + public var dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_alerts`. - @frozen public enum dependabot_alertsPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotAlertsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot alerts /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_alerts`. - public var dependabot_alerts: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? + public var dependabotAlerts: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_security_updates`. - @frozen public enum dependabot_security_updatesPayload: String, Codable, Hashable, Sendable { + @frozen public enum DependabotSecurityUpdatesPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Dependabot security updates /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/dependabot_security_updates`. - public var dependabot_security_updates: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? + public var dependabotSecurityUpdates: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup`. - @frozen public enum code_scanning_default_setupPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDefaultSetupPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning default setup /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup`. - public var code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? + public var codeScanningDefaultSetup: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_default_setup_options`. - public var code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? + public var codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_delegated_alert_dismissal`. - @frozen public enum code_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum CodeScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of code scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/code_scanning_delegated_alert_dismissal`. - public var code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? + public var codeScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning`. - @frozen public enum secret_scanningPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning`. - public var secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? + public var secretScanning: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPayload? /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_push_protection`. - @frozen public enum secret_scanning_push_protectionPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningPushProtectionPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning push protection /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_push_protection`. - public var secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? + public var secretScanningPushProtection: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass`. - @frozen public enum secret_scanning_delegated_bypassPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedBypassPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass`. - public var secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? + public var secretScanningDelegatedBypass: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload? /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options`. - public struct secret_scanning_delegated_bypass_optionsPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload`. - public struct reviewersPayloadPayload: Codable, Hashable, Sendable { + public struct SecretScanningDelegatedBypassOptionsPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload`. + public struct ReviewersPayloadPayload: Codable, Hashable, Sendable { /// The ID of the team or role selected as a bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_id`. - public var reviewer_id: Swift.Int + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_id`. + public var reviewerId: Swift.Int /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - @frozen public enum reviewer_typePayload: String, Codable, Hashable, Sendable { - case TEAM = "TEAM" - case ROLE = "ROLE" + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + @frozen public enum ReviewerTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case team = "TEAM" + case role = "ROLE" } /// The type of the bypass reviewer /// - /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewersPayload/reviewer_type`. - public var reviewer_type: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload - /// Creates a new `reviewersPayloadPayload`. + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. + public var reviewerType: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: - /// - reviewer_id: The ID of the team or role selected as a bypass reviewer - /// - reviewer_type: The type of the bypass reviewer + /// - reviewerId: The ID of the team or role selected as a bypass reviewer + /// - reviewerType: The type of the bypass reviewer public init( - reviewer_id: Swift.Int, - reviewer_type: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload.reviewer_typePayload + reviewerId: Swift.Int, + reviewerType: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload ) { - self.reviewer_id = reviewer_id - self.reviewer_type = reviewer_type + self.reviewerId = reviewerId + self.reviewerType = reviewerType } public enum CodingKeys: String, CodingKey { - case reviewer_id - case reviewer_type + case reviewerId = "reviewer_id" + case reviewerType = "reviewer_type" } } /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewers`. - public typealias reviewersPayload = [Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayloadPayload] + public typealias ReviewersPayload = [Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload] /// The bypass reviewers for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/reviewers`. - public var reviewers: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? - /// Creates a new `secret_scanning_delegated_bypass_optionsPayload`. + public var reviewers: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? + /// Creates a new `SecretScanningDelegatedBypassOptionsPayload`. /// /// - Parameters: /// - reviewers: The bypass reviewers for secret scanning delegated bypass - public init(reviewers: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.reviewersPayload? = nil) { + public init(reviewers: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayload? = nil) { self.reviewers = reviewers } public enum CodingKeys: String, CodingKey { @@ -6697,254 +6754,254 @@ public enum Operations { /// Feature options for secret scanning delegated bypass /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options`. - public var secret_scanning_delegated_bypass_options: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload? + public var secretScanningDelegatedBypassOptions: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload? /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_validity_checks`. - @frozen public enum secret_scanning_validity_checksPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningValidityChecksPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning validity checks /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_validity_checks`. - public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + public var secretScanningValidityChecks: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. - @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningNonProviderPatternsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning non-provider patterns /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. - public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? + public var secretScanningNonProviderPatterns: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_generic_secrets`. - @frozen public enum secret_scanning_generic_secretsPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningGenericSecretsPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of Copilot secret scanning /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_generic_secrets`. - public var secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? + public var secretScanningGenericSecrets: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_alert_dismissal`. - @frozen public enum secret_scanning_delegated_alert_dismissalPayload: String, Codable, Hashable, Sendable { + @frozen public enum SecretScanningDelegatedAlertDismissalPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of secret scanning delegated alert dismissal /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_alert_dismissal`. - public var secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? + public var secretScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`. - @frozen public enum private_vulnerability_reportingPayload: String, Codable, Hashable, Sendable { + @frozen public enum PrivateVulnerabilityReportingPayload: String, Codable, Hashable, Sendable, CaseIterable { case enabled = "enabled" case disabled = "disabled" - case not_set = "not_set" + case notSet = "not_set" } /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`. - public var private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? + public var privateVulnerabilityReporting: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`. - @frozen public enum enforcementPayload: String, Codable, Hashable, Sendable { + @frozen public enum EnforcementPayload: String, Codable, Hashable, Sendable, CaseIterable { case enforced = "enforced" case unenforced = "unenforced" } /// The enforcement status for a security configuration /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/enforcement`. - public var enforcement: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? - /// Creates a new `jsonPayload`. + public var enforcement: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.EnforcementPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the code security configuration. Must be unique within the organization. /// - description: A description of the code security configuration - /// - advanced_security: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. - /// - dependency_graph: The enablement status of Dependency Graph - /// - dependency_graph_autosubmit_action: The enablement status of Automatic dependency submission - /// - dependency_graph_autosubmit_action_options: Feature options for Automatic dependency submission - /// - dependabot_alerts: The enablement status of Dependabot alerts - /// - dependabot_security_updates: The enablement status of Dependabot security updates - /// - code_scanning_default_setup: The enablement status of code scanning default setup - /// - code_scanning_default_setup_options: - /// - code_scanning_delegated_alert_dismissal: The enablement status of code scanning delegated alert dismissal - /// - secret_scanning: The enablement status of secret scanning - /// - secret_scanning_push_protection: The enablement status of secret scanning push protection - /// - secret_scanning_delegated_bypass: The enablement status of secret scanning delegated bypass - /// - secret_scanning_delegated_bypass_options: Feature options for secret scanning delegated bypass - /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks - /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non-provider patterns - /// - secret_scanning_generic_secrets: The enablement status of Copilot secret scanning - /// - secret_scanning_delegated_alert_dismissal: The enablement status of secret scanning delegated alert dismissal - /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting + /// - advancedSecurity: The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features. + /// - dependencyGraph: The enablement status of Dependency Graph + /// - dependencyGraphAutosubmitAction: The enablement status of Automatic dependency submission + /// - dependencyGraphAutosubmitActionOptions: Feature options for Automatic dependency submission + /// - dependabotAlerts: The enablement status of Dependabot alerts + /// - dependabotSecurityUpdates: The enablement status of Dependabot security updates + /// - codeScanningDefaultSetup: The enablement status of code scanning default setup + /// - codeScanningDefaultSetupOptions: + /// - codeScanningDelegatedAlertDismissal: The enablement status of code scanning delegated alert dismissal + /// - secretScanning: The enablement status of secret scanning + /// - secretScanningPushProtection: The enablement status of secret scanning push protection + /// - secretScanningDelegatedBypass: The enablement status of secret scanning delegated bypass + /// - secretScanningDelegatedBypassOptions: Feature options for secret scanning delegated bypass + /// - secretScanningValidityChecks: The enablement status of secret scanning validity checks + /// - secretScanningNonProviderPatterns: The enablement status of secret scanning non-provider patterns + /// - secretScanningGenericSecrets: The enablement status of Copilot secret scanning + /// - secretScanningDelegatedAlertDismissal: The enablement status of secret scanning delegated alert dismissal + /// - privateVulnerabilityReporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( name: Swift.String? = nil, description: Swift.String? = nil, - advanced_security: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload? = nil, - dependency_graph: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload? = nil, - dependency_graph_autosubmit_action: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload? = nil, - dependency_graph_autosubmit_action_options: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload? = nil, - dependabot_alerts: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload? = nil, - dependabot_security_updates: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload? = nil, - code_scanning_default_setup: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload? = nil, - code_scanning_default_setup_options: Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options? = nil, - code_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload? = nil, - secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, - secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, - secret_scanning_delegated_bypass: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload? = nil, - secret_scanning_delegated_bypass_options: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload? = nil, - secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, - secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, - secret_scanning_generic_secrets: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload? = nil, - secret_scanning_delegated_alert_dismissal: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload? = nil, - private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, - enforcement: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? = nil + advancedSecurity: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload? = nil, + dependencyGraph: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload? = nil, + dependencyGraphAutosubmitAction: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload? = nil, + dependencyGraphAutosubmitActionOptions: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload? = nil, + dependabotAlerts: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload? = nil, + dependabotSecurityUpdates: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload? = nil, + codeScanningDefaultSetup: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload? = nil, + codeScanningDefaultSetupOptions: Components.Schemas.CodeScanningDefaultSetupOptions? = nil, + codeScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload? = nil, + secretScanning: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPayload? = nil, + secretScanningPushProtection: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload? = nil, + secretScanningDelegatedBypass: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload? = nil, + secretScanningDelegatedBypassOptions: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload? = nil, + secretScanningValidityChecks: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload? = nil, + secretScanningNonProviderPatterns: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload? = nil, + secretScanningGenericSecrets: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload? = nil, + secretScanningDelegatedAlertDismissal: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload? = nil, + privateVulnerabilityReporting: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload? = nil, + enforcement: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.EnforcementPayload? = nil ) { self.name = name self.description = description - self.advanced_security = advanced_security - self.dependency_graph = dependency_graph - self.dependency_graph_autosubmit_action = dependency_graph_autosubmit_action - self.dependency_graph_autosubmit_action_options = dependency_graph_autosubmit_action_options - self.dependabot_alerts = dependabot_alerts - self.dependabot_security_updates = dependabot_security_updates - self.code_scanning_default_setup = code_scanning_default_setup - self.code_scanning_default_setup_options = code_scanning_default_setup_options - self.code_scanning_delegated_alert_dismissal = code_scanning_delegated_alert_dismissal - self.secret_scanning = secret_scanning - self.secret_scanning_push_protection = secret_scanning_push_protection - self.secret_scanning_delegated_bypass = secret_scanning_delegated_bypass - self.secret_scanning_delegated_bypass_options = secret_scanning_delegated_bypass_options - self.secret_scanning_validity_checks = secret_scanning_validity_checks - self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns - self.secret_scanning_generic_secrets = secret_scanning_generic_secrets - self.secret_scanning_delegated_alert_dismissal = secret_scanning_delegated_alert_dismissal - self.private_vulnerability_reporting = private_vulnerability_reporting + self.advancedSecurity = advancedSecurity + self.dependencyGraph = dependencyGraph + self.dependencyGraphAutosubmitAction = dependencyGraphAutosubmitAction + self.dependencyGraphAutosubmitActionOptions = dependencyGraphAutosubmitActionOptions + self.dependabotAlerts = dependabotAlerts + self.dependabotSecurityUpdates = dependabotSecurityUpdates + self.codeScanningDefaultSetup = codeScanningDefaultSetup + self.codeScanningDefaultSetupOptions = codeScanningDefaultSetupOptions + self.codeScanningDelegatedAlertDismissal = codeScanningDelegatedAlertDismissal + self.secretScanning = secretScanning + self.secretScanningPushProtection = secretScanningPushProtection + self.secretScanningDelegatedBypass = secretScanningDelegatedBypass + self.secretScanningDelegatedBypassOptions = secretScanningDelegatedBypassOptions + self.secretScanningValidityChecks = secretScanningValidityChecks + self.secretScanningNonProviderPatterns = secretScanningNonProviderPatterns + self.secretScanningGenericSecrets = secretScanningGenericSecrets + self.secretScanningDelegatedAlertDismissal = secretScanningDelegatedAlertDismissal + self.privateVulnerabilityReporting = privateVulnerabilityReporting self.enforcement = enforcement } public enum CodingKeys: String, CodingKey { case name case description - case advanced_security - case dependency_graph - case dependency_graph_autosubmit_action - case dependency_graph_autosubmit_action_options - case dependabot_alerts - case dependabot_security_updates - case code_scanning_default_setup - case code_scanning_default_setup_options - case code_scanning_delegated_alert_dismissal - case secret_scanning - case secret_scanning_push_protection - case secret_scanning_delegated_bypass - case secret_scanning_delegated_bypass_options - case secret_scanning_validity_checks - case secret_scanning_non_provider_patterns - case secret_scanning_generic_secrets - case secret_scanning_delegated_alert_dismissal - case private_vulnerability_reporting + case advancedSecurity = "advanced_security" + case dependencyGraph = "dependency_graph" + case dependencyGraphAutosubmitAction = "dependency_graph_autosubmit_action" + case dependencyGraphAutosubmitActionOptions = "dependency_graph_autosubmit_action_options" + case dependabotAlerts = "dependabot_alerts" + case dependabotSecurityUpdates = "dependabot_security_updates" + case codeScanningDefaultSetup = "code_scanning_default_setup" + case codeScanningDefaultSetupOptions = "code_scanning_default_setup_options" + case codeScanningDelegatedAlertDismissal = "code_scanning_delegated_alert_dismissal" + case secretScanning = "secret_scanning" + case secretScanningPushProtection = "secret_scanning_push_protection" + case secretScanningDelegatedBypass = "secret_scanning_delegated_bypass" + case secretScanningDelegatedBypassOptions = "secret_scanning_delegated_bypass_options" + case secretScanningValidityChecks = "secret_scanning_validity_checks" + case secretScanningNonProviderPatterns = "secret_scanning_non_provider_patterns" + case secretScanningGenericSecrets = "secret_scanning_generic_secrets" + case secretScanningDelegatedAlertDismissal = "secret_scanning_delegated_alert_dismissal" + case privateVulnerabilityReporting = "private_vulnerability_reporting" case enforcement } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - advanced_security = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.advanced_securityPayload.self, - forKey: .advanced_security + self.advancedSecurity = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.AdvancedSecurityPayload.self, + forKey: .advancedSecurity ) - dependency_graph = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graphPayload.self, - forKey: .dependency_graph + self.dependencyGraph = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphPayload.self, + forKey: .dependencyGraph ) - dependency_graph_autosubmit_action = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_actionPayload.self, - forKey: .dependency_graph_autosubmit_action + self.dependencyGraphAutosubmitAction = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionPayload.self, + forKey: .dependencyGraphAutosubmitAction ) - dependency_graph_autosubmit_action_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependency_graph_autosubmit_action_optionsPayload.self, - forKey: .dependency_graph_autosubmit_action_options + self.dependencyGraphAutosubmitActionOptions = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependencyGraphAutosubmitActionOptionsPayload.self, + forKey: .dependencyGraphAutosubmitActionOptions ) - dependabot_alerts = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_alertsPayload.self, - forKey: .dependabot_alerts + self.dependabotAlerts = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotAlertsPayload.self, + forKey: .dependabotAlerts ) - dependabot_security_updates = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.dependabot_security_updatesPayload.self, - forKey: .dependabot_security_updates + self.dependabotSecurityUpdates = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.DependabotSecurityUpdatesPayload.self, + forKey: .dependabotSecurityUpdates ) - code_scanning_default_setup = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_default_setupPayload.self, - forKey: .code_scanning_default_setup + self.codeScanningDefaultSetup = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDefaultSetupPayload.self, + forKey: .codeScanningDefaultSetup ) - code_scanning_default_setup_options = try container.decodeIfPresent( - Components.Schemas.code_hyphen_scanning_hyphen_default_hyphen_setup_hyphen_options.self, - forKey: .code_scanning_default_setup_options + self.codeScanningDefaultSetupOptions = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupOptions.self, + forKey: .codeScanningDefaultSetupOptions ) - code_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.code_scanning_delegated_alert_dismissalPayload.self, - forKey: .code_scanning_delegated_alert_dismissal + self.codeScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.CodeScanningDelegatedAlertDismissalPayload.self, + forKey: .codeScanningDelegatedAlertDismissal ) - secret_scanning = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload.self, - forKey: .secret_scanning + self.secretScanning = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPayload.self, + forKey: .secretScanning ) - secret_scanning_push_protection = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload.self, - forKey: .secret_scanning_push_protection + self.secretScanningPushProtection = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningPushProtectionPayload.self, + forKey: .secretScanningPushProtection ) - secret_scanning_delegated_bypass = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypassPayload.self, - forKey: .secret_scanning_delegated_bypass + self.secretScanningDelegatedBypass = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassPayload.self, + forKey: .secretScanningDelegatedBypass ) - secret_scanning_delegated_bypass_options = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_bypass_optionsPayload.self, - forKey: .secret_scanning_delegated_bypass_options + self.secretScanningDelegatedBypassOptions = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.self, + forKey: .secretScanningDelegatedBypassOptions ) - secret_scanning_validity_checks = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, - forKey: .secret_scanning_validity_checks + self.secretScanningValidityChecks = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningValidityChecksPayload.self, + forKey: .secretScanningValidityChecks ) - secret_scanning_non_provider_patterns = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, - forKey: .secret_scanning_non_provider_patterns + self.secretScanningNonProviderPatterns = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningNonProviderPatternsPayload.self, + forKey: .secretScanningNonProviderPatterns ) - secret_scanning_generic_secrets = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_generic_secretsPayload.self, - forKey: .secret_scanning_generic_secrets + self.secretScanningGenericSecrets = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningGenericSecretsPayload.self, + forKey: .secretScanningGenericSecrets ) - secret_scanning_delegated_alert_dismissal = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_delegated_alert_dismissalPayload.self, - forKey: .secret_scanning_delegated_alert_dismissal + self.secretScanningDelegatedAlertDismissal = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedAlertDismissalPayload.self, + forKey: .secretScanningDelegatedAlertDismissal ) - private_vulnerability_reporting = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, - forKey: .private_vulnerability_reporting + self.privateVulnerabilityReporting = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.PrivateVulnerabilityReportingPayload.self, + forKey: .privateVulnerabilityReporting ) - enforcement = try container.decodeIfPresent( - Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload.self, + self.enforcement = try container.decodeIfPresent( + Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.EnforcementPayload.self, forKey: .enforcement ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -6973,9 +7030,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityUpdateConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -6983,9 +7040,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body + path: Operations.CodeSecurityUpdateConfiguration.Input.Path, + headers: Operations.CodeSecurityUpdateConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityUpdateConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -6997,12 +7054,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration) + case json(Components.Schemas.CodeSecurityConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration { + public var json: Components.Schemas.CodeSecurityConfiguration { get throws { switch self { case let .json(body): @@ -7012,12 +7069,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.Ok.Body + public var body: Operations.CodeSecurityUpdateConfiguration.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.Ok.Body) { + public init(body: Operations.CodeSecurityUpdateConfiguration.Output.Ok.Body) { self.body = body } } @@ -7026,12 +7083,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.Ok) + case ok(Operations.CodeSecurityUpdateConfiguration.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.Ok { + public var ok: Operations.CodeSecurityUpdateConfiguration.Output.Ok { get throws { switch self { case let .ok(response): @@ -7053,12 +7110,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.NoContent) + case noContent(Operations.CodeSecurityUpdateConfiguration.Output.NoContent) + /// Response when no new updates are made + /// + /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/patch(code-security/update-configuration)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.code_hyphen_security_sol_update_hyphen_configuration.Output.NoContent { + public var noContent: Operations.CodeSecurityUpdateConfiguration.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -7114,7 +7179,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/code-security/configurations/{configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)`. - public enum code_hyphen_security_sol_delete_hyphen_configuration { + public enum CodeSecurityDeleteConfiguration { public static let id: Swift.String = "code-security/delete-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/DELETE/path`. @@ -7122,45 +7187,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/DELETE/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityDeleteConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityDeleteConfiguration.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_delete_hyphen_configuration.Input.Headers = .init() + path: Operations.CodeSecurityDeleteConfiguration.Input.Path, + headers: Operations.CodeSecurityDeleteConfiguration.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -7172,12 +7237,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -7195,12 +7268,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -7218,12 +7291,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7241,12 +7314,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7264,12 +7337,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/delete(code-security/delete-configuration)/responses/409`. /// /// HTTP response code: `409 conflict`. - case conflict(Components.Responses.conflict) + case conflict(Components.Responses.Conflict) /// The associated value of the enum case if `self` is `.conflict`. /// /// - Throws: An error if `self` is not `.conflict`. /// - SeeAlso: `.conflict`. - public var conflict: Components.Responses.conflict { + public var conflict: Components.Responses.Conflict { get throws { switch self { case let .conflict(response): @@ -7289,14 +7362,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -7307,14 +7380,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -7331,7 +7404,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-configuration)`. - public enum code_hyphen_security_sol_attach_hyphen_configuration { + public enum CodeSecurityAttachConfiguration { public static let id: Swift.String = "code-security/attach-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/path`. @@ -7339,84 +7412,84 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityAttachConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityAttachConfiguration.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json/scope`. - @frozen public enum scopePayload: String, Codable, Hashable, Sendable { + @frozen public enum ScopePayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" - case all_without_configurations = "all_without_configurations" + case allWithoutConfigurations = "all_without_configurations" case _public = "public" - case private_or_internal = "private_or_internal" + case privateOrInternal = "private_or_internal" case selected = "selected" } /// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json/scope`. - public var scope: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body.jsonPayload.scopePayload + public var scope: Operations.CodeSecurityAttachConfiguration.Input.Body.JsonPayload.ScopePayload /// An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - scope: The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` - /// - selected_repository_ids: An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`. + /// - selectedRepositoryIds: An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`. public init( - scope: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body.jsonPayload.scopePayload, - selected_repository_ids: [Swift.Int]? = nil + scope: Operations.CodeSecurityAttachConfiguration.Input.Body.JsonPayload.ScopePayload, + selectedRepositoryIds: [Swift.Int]? = nil ) { self.scope = scope - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { case scope - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - scope = try container.decode( - Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body.jsonPayload.scopePayload.self, + self.scope = try container.decode( + Operations.CodeSecurityAttachConfiguration.Input.Body.JsonPayload.ScopePayload.self, forKey: .scope ) - selected_repository_ids = try container.decodeIfPresent( + self.selectedRepositoryIds = try container.decodeIfPresent( [Swift.Int].self, - forKey: .selected_repository_ids + forKey: .selectedRepositoryIds ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "scope", @@ -7425,9 +7498,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/attach/POST/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body.jsonPayload) + case json(Operations.CodeSecurityAttachConfiguration.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body + public var body: Operations.CodeSecurityAttachConfiguration.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7435,9 +7508,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Path, - headers: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_attach_hyphen_configuration.Input.Body + path: Operations.CodeSecurityAttachConfiguration.Input.Path, + headers: Operations.CodeSecurityAttachConfiguration.Input.Headers = .init(), + body: Operations.CodeSecurityAttachConfiguration.Input.Body ) { self.path = path self.headers = headers @@ -7450,12 +7523,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/attach/post(code-security/attach-configuration)/responses/202`. /// /// HTTP response code: `202 accepted`. - case accepted(Components.Responses.accepted) + case accepted(Components.Responses.Accepted) /// The associated value of the enum case if `self` is `.accepted`. /// /// - Throws: An error if `self` is not `.accepted`. /// - SeeAlso: `.accepted`. - public var accepted: Components.Responses.accepted { + public var accepted: Components.Responses.Accepted { get throws { switch self { case let .accepted(response): @@ -7511,7 +7584,7 @@ public enum Operations { /// /// - Remark: HTTP `PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)`. - public enum code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default { + public enum CodeSecuritySetConfigurationAsDefault { public static let id: Swift.String = "code-security/set-configuration-as-default" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/path`. @@ -7519,69 +7592,69 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Path + public var path: Operations.CodeSecuritySetConfigurationAsDefault.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Headers + public var headers: Operations.CodeSecuritySetConfigurationAsDefault.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Specify which types of repository this security configuration should be applied to by default. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json/default_for_new_repos`. - @frozen public enum default_for_new_reposPayload: String, Codable, Hashable, Sendable { + @frozen public enum DefaultForNewReposPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case none = "none" - case private_and_internal = "private_and_internal" + case privateAndInternal = "private_and_internal" case _public = "public" } /// Specify which types of repository this security configuration should be applied to by default. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/json/default_for_new_repos`. - public var default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body.jsonPayload.default_for_new_reposPayload? - /// Creates a new `jsonPayload`. + public var defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefault.Input.Body.JsonPayload.DefaultForNewReposPayload? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - default_for_new_repos: Specify which types of repository this security configuration should be applied to by default. - public init(default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body.jsonPayload.default_for_new_reposPayload? = nil) { - self.default_for_new_repos = default_for_new_repos + /// - defaultForNewRepos: Specify which types of repository this security configuration should be applied to by default. + public init(defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefault.Input.Body.JsonPayload.DefaultForNewReposPayload? = nil) { + self.defaultForNewRepos = defaultForNewRepos } public enum CodingKeys: String, CodingKey { - case default_for_new_repos + case defaultForNewRepos = "default_for_new_repos" } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/requestBody/content/application\/json`. - case json(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body.jsonPayload) + case json(Operations.CodeSecuritySetConfigurationAsDefault.Input.Body.JsonPayload) } - public var body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body + public var body: Operations.CodeSecuritySetConfigurationAsDefault.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -7589,9 +7662,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Path, - headers: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Headers = .init(), - body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Input.Body + path: Operations.CodeSecuritySetConfigurationAsDefault.Input.Path, + headers: Operations.CodeSecuritySetConfigurationAsDefault.Input.Headers = .init(), + body: Operations.CodeSecuritySetConfigurationAsDefault.Input.Body ) { self.path = path self.headers = headers @@ -7603,46 +7676,46 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Specifies which types of repository this security configuration is applied to by default. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/default_for_new_repos`. - @frozen public enum default_for_new_reposPayload: String, Codable, Hashable, Sendable { + @frozen public enum DefaultForNewReposPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case none = "none" - case private_and_internal = "private_and_internal" + case privateAndInternal = "private_and_internal" case _public = "public" } /// Specifies which types of repository this security configuration is applied to by default. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/default_for_new_repos`. - public var default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body.jsonPayload.default_for_new_reposPayload? + public var defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body.JsonPayload.DefaultForNewReposPayload? /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/json/configuration`. - public var configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? - /// Creates a new `jsonPayload`. + public var configuration: Components.Schemas.CodeSecurityConfiguration? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - default_for_new_repos: Specifies which types of repository this security configuration is applied to by default. + /// - defaultForNewRepos: Specifies which types of repository this security configuration is applied to by default. /// - configuration: public init( - default_for_new_repos: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body.jsonPayload.default_for_new_reposPayload? = nil, - configuration: Components.Schemas.code_hyphen_security_hyphen_configuration? = nil + defaultForNewRepos: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body.JsonPayload.DefaultForNewReposPayload? = nil, + configuration: Components.Schemas.CodeSecurityConfiguration? = nil ) { - self.default_for_new_repos = default_for_new_repos + self.defaultForNewRepos = defaultForNewRepos self.configuration = configuration } public enum CodingKeys: String, CodingKey { - case default_for_new_repos + case defaultForNewRepos = "default_for_new_repos" case configuration } } /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/defaults/PUT/responses/200/content/application\/json`. - case json(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body.jsonPayload) + case json(Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body.jsonPayload { + public var json: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -7652,12 +7725,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body + public var body: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok.Body) { + public init(body: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok.Body) { self.body = body } } @@ -7666,12 +7739,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok) + case ok(Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_set_hyphen_configuration_hyphen_as_hyphen_default.Output.Ok { + public var ok: Operations.CodeSecuritySetConfigurationAsDefault.Output.Ok { get throws { switch self { case let .ok(response): @@ -7689,12 +7762,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7712,12 +7785,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/defaults/put(code-security/set-configuration-as-default)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -7771,7 +7844,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`. /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`. - public enum code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration { + public enum CodeSecurityGetRepositoriesForConfiguration { public static let id: Swift.String = "code-security/get-repositories-for-configuration" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/path`. @@ -7779,39 +7852,39 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The unique identifier of the code security configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/path/configuration_id`. - public var configuration_id: Components.Parameters.configuration_hyphen_id + public var configurationId: Components.Parameters.ConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - configuration_id: The unique identifier of the code security configuration. + /// - configurationId: The unique identifier of the code security configuration. public init( - org: Components.Parameters.org, - configuration_id: Components.Parameters.configuration_hyphen_id + org: Components.Parameters.Org, + configurationId: Components.Parameters.ConfigurationId ) { self.org = org - self.configuration_id = configuration_id + self.configurationId = configurationId } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Path + public var path: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/query/per_page`. - public var per_page: Swift.Int? + public var perPage: Swift.Int? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/query/before`. - public var before: Components.Parameters.pagination_hyphen_before? + public var before: Components.Parameters.PaginationBefore? /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/query/after`. - public var after: Components.Parameters.pagination_hyphen_after? + public var after: Components.Parameters.PaginationAfter? /// A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. /// /// Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` @@ -7821,35 +7894,35 @@ public enum Operations { /// 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)." + /// - perPage: 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)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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)." /// - status: A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. public init( - per_page: Swift.Int? = nil, - before: Components.Parameters.pagination_hyphen_before? = nil, - after: Components.Parameters.pagination_hyphen_after? = nil, + perPage: Swift.Int? = nil, + before: Components.Parameters.PaginationBefore? = nil, + after: Components.Parameters.PaginationAfter? = nil, status: Swift.String? = nil ) { - self.per_page = per_page + self.perPage = perPage self.before = before self.after = after self.status = status } } - public var query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Query + public var query: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Headers + public var headers: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -7857,9 +7930,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Path, - query: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Query = .init(), - headers: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Input.Headers = .init() + path: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Path, + query: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Query = .init(), + headers: Operations.CodeSecurityGetRepositoriesForConfiguration.Input.Headers = .init() ) { self.path = path self.query = query @@ -7871,12 +7944,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/repositories/GET/responses/200/content/application\/json`. - case json([Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories]) + case json([Components.Schemas.CodeSecurityConfigurationRepositories]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_repositories] { + public var json: [Components.Schemas.CodeSecurityConfigurationRepositories] { get throws { switch self { case let .json(body): @@ -7886,12 +7959,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output.Ok.Body + public var body: Operations.CodeSecurityGetRepositoriesForConfiguration.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetRepositoriesForConfiguration.Output.Ok.Body) { self.body = body } } @@ -7900,12 +7973,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output.Ok) + case ok(Operations.CodeSecurityGetRepositoriesForConfiguration.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_repositories_hyphen_for_hyphen_configuration.Output.Ok { + public var ok: Operations.CodeSecurityGetRepositoriesForConfiguration.Output.Ok { get throws { switch self { case let .ok(response): @@ -7923,12 +7996,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -7946,12 +8019,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -8005,7 +8078,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/code-security-configuration`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)`. - public enum code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository { + public enum CodeSecurityGetConfigurationForRepository { public static let id: Swift.String = "code-security/get-configuration-for-repository" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/path`. @@ -8013,45 +8086,45 @@ public enum Operations { /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/path/owner`. - public var owner: Components.Parameters.owner + public var owner: Components.Parameters.Owner /// The name of the repository without the `.git` extension. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/path/repo`. - public var repo: Components.Parameters.repo + public var repo: Components.Parameters.Repo /// Creates a new `Path`. /// /// - Parameters: /// - owner: The account owner of the repository. The name is not case sensitive. /// - repo: The name of the repository without the `.git` extension. The name is not case sensitive. public init( - owner: Components.Parameters.owner, - repo: Components.Parameters.repo + owner: Components.Parameters.Owner, + repo: Components.Parameters.Repo ) { self.owner = owner self.repo = repo } } - public var path: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Path + public var path: Operations.CodeSecurityGetConfigurationForRepository.Input.Path /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Headers + public var headers: Operations.CodeSecurityGetConfigurationForRepository.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Path, - headers: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Input.Headers = .init() + path: Operations.CodeSecurityGetConfigurationForRepository.Input.Path, + headers: Operations.CodeSecurityGetConfigurationForRepository.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -8062,12 +8135,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-security-configuration/GET/responses/200/content/application\/json`. - case json(Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository) + case json(Components.Schemas.CodeSecurityConfigurationForRepository) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.code_hyphen_security_hyphen_configuration_hyphen_for_hyphen_repository { + public var json: Components.Schemas.CodeSecurityConfigurationForRepository { get throws { switch self { case let .json(body): @@ -8077,12 +8150,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output.Ok.Body + public var body: Operations.CodeSecurityGetConfigurationForRepository.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output.Ok.Body) { + public init(body: Operations.CodeSecurityGetConfigurationForRepository.Output.Ok.Body) { self.body = body } } @@ -8091,12 +8164,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output.Ok) + case ok(Operations.CodeSecurityGetConfigurationForRepository.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.code_hyphen_security_sol_get_hyphen_configuration_hyphen_for_hyphen_repository.Output.Ok { + public var ok: Operations.CodeSecurityGetConfigurationForRepository.Output.Ok { get throws { switch self { case let .ok(response): @@ -8114,12 +8187,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Components.Responses.no_content) + case noContent(Components.Responses.NoContent) + /// A header with no content is returned. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Components.Responses.no_content { + public var noContent: Components.Responses.NoContent { get throws { switch self { case let .noContent(response): @@ -8137,12 +8218,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/304`. /// /// HTTP response code: `304 notModified`. - case notModified(Components.Responses.not_modified) + case notModified(Components.Responses.NotModified) + /// Not modified + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/304`. + /// + /// HTTP response code: `304 notModified`. + public static var notModified: Self { + .notModified(.init()) + } /// The associated value of the enum case if `self` is `.notModified`. /// /// - Throws: An error if `self` is not `.notModified`. /// - SeeAlso: `.notModified`. - public var notModified: Components.Responses.not_modified { + public var notModified: Components.Responses.NotModified { get throws { switch self { case let .notModified(response): @@ -8160,12 +8249,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/403`. /// /// HTTP response code: `403 forbidden`. - case forbidden(Components.Responses.forbidden) + case forbidden(Components.Responses.Forbidden) /// The associated value of the enum case if `self` is `.forbidden`. /// /// - Throws: An error if `self` is not `.forbidden`. /// - SeeAlso: `.forbidden`. - public var forbidden: Components.Responses.forbidden { + public var forbidden: Components.Responses.Forbidden { get throws { switch self { case let .forbidden(response): @@ -8183,12 +8272,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-security-configuration/get(code-security/get-configuration-for-repository)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): From 56693fe6f9b4c820a46772a2bbe4d7351dd4d55a Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:08:12 -0700 Subject: [PATCH 42/46] Commit via running ake Sources/private-registries --- Sources/private-registries/Client.swift | 104 ++-- Sources/private-registries/Types.swift | 775 ++++++++++++------------ 2 files changed, 452 insertions(+), 427 deletions(-) diff --git a/Sources/private-registries/Client.swift b/Sources/private-registries/Client.swift index 0736a7ba3a..828d00dea8 100644 --- a/Sources/private-registries/Client.swift +++ b/Sources/private-registries/Client.swift @@ -48,10 +48,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)`. - public func private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries(_ input: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input) async throws -> Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output { + public func privateRegistriesListOrgPrivateRegistries(_ input: Operations.PrivateRegistriesListOrgPrivateRegistries.Input) async throws -> Operations.PrivateRegistriesListOrgPrivateRegistries.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.id, + forOperation: Operations.PrivateRegistriesListOrgPrivateRegistries.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries", @@ -69,7 +69,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -87,13 +87,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body + let body: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -103,7 +103,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body.jsonPayload.self, + Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -118,7 +118,7 @@ public struct Client: APIProtocol { )) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -129,7 +129,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -137,10 +137,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -149,7 +149,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -159,7 +159,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -190,10 +190,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)`. - public func private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output { + public func privateRegistriesCreateOrgPrivateRegistry(_ input: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.id, + forOperation: Operations.PrivateRegistriesCreateOrgPrivateRegistry.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries", @@ -225,7 +225,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output.Created.Body + let body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -235,7 +235,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories.self, + Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.self, from: responseBody, transforming: { value in .json(value) @@ -247,7 +247,7 @@ public struct Client: APIProtocol { return .created(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -257,7 +257,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -269,7 +269,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -279,7 +279,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -310,10 +310,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)`. - public func private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { + public func privateRegistriesGetOrgPublicKey(_ input: Operations.PrivateRegistriesGetOrgPublicKey.Input) async throws -> Operations.PrivateRegistriesGetOrgPublicKey.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.id, + forOperation: Operations.PrivateRegistriesGetOrgPublicKey.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries/public-key", @@ -335,13 +335,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + let body: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -351,7 +351,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body.jsonPayload.self, + Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -366,7 +366,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -376,7 +376,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -407,16 +407,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)`. - public func private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output { + public func privateRegistriesGetOrgPrivateRegistry(_ input: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesGetOrgPrivateRegistry.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.id, + forOperation: Operations.PrivateRegistriesGetOrgPrivateRegistry.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -434,7 +434,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output.Ok.Body + let body: Operations.PrivateRegistriesGetOrgPrivateRegistry.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -444,7 +444,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration.self, + Components.Schemas.OrgPrivateRegistryConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -456,7 +456,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -466,7 +466,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -497,16 +497,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)`. - public func private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output { + public func privateRegistriesUpdateOrgPrivateRegistry(_ input: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.id, + forOperation: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -535,7 +535,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -545,7 +545,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -557,7 +557,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.validation_failed.Body + let body: Components.Responses.ValidationFailed.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -567,7 +567,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.validation_hyphen_error.self, + Components.Schemas.ValidationError.self, from: responseBody, transforming: { value in .json(value) @@ -598,16 +598,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)`. - public func private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output { + public func privateRegistriesDeleteOrgPrivateRegistry(_ input: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Output { try await client.send( input: input, - forOperation: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.id, + forOperation: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/private-registries/{}", parameters: [ input.path.org, - input.path.secret_name + input.path.secretName ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -627,7 +627,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.bad_request.Body + let body: Components.Responses.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -638,7 +638,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -646,10 +646,10 @@ public struct Client: APIProtocol { ) case "application/scim+json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.scim_hyphen_error.self, + Components.Schemas.ScimError.self, from: responseBody, transforming: { value in - .application_scim_plus_json(value) + .applicationScimJson(value) } ) default: @@ -658,7 +658,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -668,7 +668,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/private-registries/Types.swift b/Sources/private-registries/Types.swift index c6ae22521a..d89d001fbc 100644 --- a/Sources/private-registries/Types.swift +++ b/Sources/private-registries/Types.swift @@ -21,7 +21,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)`. - func private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries(_ input: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input) async throws -> Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output + func privateRegistriesListOrgPrivateRegistries(_ input: Operations.PrivateRegistriesListOrgPrivateRegistries.Input) async throws -> Operations.PrivateRegistriesListOrgPrivateRegistries.Output /// Create a private registry for an organization /// /// @@ -31,7 +31,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)`. - func private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output + func privateRegistriesCreateOrgPrivateRegistry(_ input: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output /// Get private registries public key for an organization /// /// @@ -41,7 +41,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)`. - func private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key(_ input: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output + func privateRegistriesGetOrgPublicKey(_ input: Operations.PrivateRegistriesGetOrgPublicKey.Input) async throws -> Operations.PrivateRegistriesGetOrgPublicKey.Output /// Get a private registry for an organization /// /// @@ -51,7 +51,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)`. - func private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output + func privateRegistriesGetOrgPrivateRegistry(_ input: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesGetOrgPrivateRegistry.Output /// Update a private registry for an organization /// /// @@ -61,7 +61,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)`. - func private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output + func privateRegistriesUpdateOrgPrivateRegistry(_ input: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Output /// Delete a private registry for an organization /// /// @@ -71,7 +71,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)`. - func private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry(_ input: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input) async throws -> Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output + func privateRegistriesDeleteOrgPrivateRegistry(_ input: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input) async throws -> Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Output } /// Convenience overloads for operation inputs. @@ -86,12 +86,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)`. - public func private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries( - path: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Path, - query: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Query = .init(), - headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Headers = .init() - ) async throws -> Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output { - try await private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries(Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input( + public func privateRegistriesListOrgPrivateRegistries( + path: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Path, + query: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Query = .init(), + headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Headers = .init() + ) async throws -> Operations.PrivateRegistriesListOrgPrivateRegistries.Output { + try await privateRegistriesListOrgPrivateRegistries(Operations.PrivateRegistriesListOrgPrivateRegistries.Input( path: path, query: query, headers: headers @@ -106,12 +106,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)`. - public func private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry( - path: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init(), - body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body - ) async throws -> Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output { - try await private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry(Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input( + public func privateRegistriesCreateOrgPrivateRegistry( + path: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Headers = .init(), + body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body + ) async throws -> Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output { + try await privateRegistriesCreateOrgPrivateRegistry(Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input( path: path, headers: headers, body: body @@ -126,11 +126,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)`. - public func private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key( - path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() - ) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output { - try await private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key(Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input( + public func privateRegistriesGetOrgPublicKey( + path: Operations.PrivateRegistriesGetOrgPublicKey.Input.Path, + headers: Operations.PrivateRegistriesGetOrgPublicKey.Input.Headers = .init() + ) async throws -> Operations.PrivateRegistriesGetOrgPublicKey.Output { + try await privateRegistriesGetOrgPublicKey(Operations.PrivateRegistriesGetOrgPublicKey.Input( path: path, headers: headers )) @@ -144,11 +144,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)`. - public func private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry( - path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init() - ) async throws -> Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output { - try await private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry(Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input( + public func privateRegistriesGetOrgPrivateRegistry( + path: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Headers = .init() + ) async throws -> Operations.PrivateRegistriesGetOrgPrivateRegistry.Output { + try await privateRegistriesGetOrgPrivateRegistry(Operations.PrivateRegistriesGetOrgPrivateRegistry.Input( path: path, headers: headers )) @@ -162,12 +162,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)`. - public func private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry( - path: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init(), - body: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body - ) async throws -> Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output { - try await private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry(Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input( + public func privateRegistriesUpdateOrgPrivateRegistry( + path: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Headers = .init(), + body: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body + ) async throws -> Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Output { + try await privateRegistriesUpdateOrgPrivateRegistry(Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input( path: path, headers: headers, body: body @@ -182,11 +182,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)`. - public func private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry( - path: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init() - ) async throws -> Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output { - try await private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry(Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input( + public func privateRegistriesDeleteOrgPrivateRegistry( + path: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Headers = .init() + ) async throws -> Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Output { + try await privateRegistriesDeleteOrgPrivateRegistry(Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input( path: path, headers: headers )) @@ -195,6 +195,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -210,36 +219,36 @@ public enum Components { /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -247,11 +256,11 @@ public enum Components { /// Scim Error /// /// - Remark: Generated from `#/components/schemas/scim-error`. - public struct scim_hyphen_error: Codable, Hashable, Sendable { + public struct ScimError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/scim-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/detail`. public var detail: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/status`. @@ -260,25 +269,25 @@ public enum Components { public var scimType: Swift.String? /// - Remark: Generated from `#/components/schemas/scim-error/schemas`. public var schemas: [Swift.String]? - /// Creates a new `scim_hyphen_error`. + /// Creates a new `ScimError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - detail: /// - status: /// - scimType: /// - schemas: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, detail: Swift.String? = nil, status: Swift.Int? = nil, scimType: Swift.String? = nil, schemas: [Swift.String]? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.detail = detail self.status = status self.scimType = scimType @@ -286,7 +295,7 @@ public enum Components { } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case detail case status case scimType @@ -296,30 +305,30 @@ public enum Components { /// Validation Error /// /// - Remark: Generated from `#/components/schemas/validation-error`. - public struct validation_hyphen_error: Codable, Hashable, Sendable { + public struct ValidationError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/validation-error/message`. public var message: Swift.String /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`. - public var documentation_url: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`. - public struct errorsPayloadPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`. + public var documentationUrl: Swift.String + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload`. + public struct ErrorsPayloadPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/resource`. public var resource: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/field`. public var field: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/message`. public var message: Swift.String? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/code`. public var code: Swift.String - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/index`. public var index: Swift.Int? - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - @frozen public enum valuePayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + @frozen public enum ValuePayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case1`. case case1(Swift.String?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case2`. case case2(Swift.Int?) - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value/case3`. case case3([Swift.String]?) public init(from decoder: any Decoder) throws { var errors: [any Error] = [] @@ -358,9 +367,9 @@ public enum Components { } } } - /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`. - public var value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? - /// Creates a new `errorsPayloadPayload`. + /// - Remark: Generated from `#/components/schemas/validation-error/ErrorsPayload/value`. + public var value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? + /// Creates a new `ErrorsPayloadPayload`. /// /// - Parameters: /// - resource: @@ -375,7 +384,7 @@ public enum Components { message: Swift.String? = nil, code: Swift.String, index: Swift.Int? = nil, - value: Components.Schemas.validation_hyphen_error.errorsPayloadPayload.valuePayload? = nil + value: Components.Schemas.ValidationError.ErrorsPayloadPayload.ValuePayload? = nil ) { self.resource = resource self.field = field @@ -394,34 +403,34 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public typealias errorsPayload = [Components.Schemas.validation_hyphen_error.errorsPayloadPayload] + public typealias ErrorsPayload = [Components.Schemas.ValidationError.ErrorsPayloadPayload] /// - Remark: Generated from `#/components/schemas/validation-error/errors`. - public var errors: Components.Schemas.validation_hyphen_error.errorsPayload? - /// Creates a new `validation_hyphen_error`. + public var errors: Components.Schemas.ValidationError.ErrorsPayload? + /// Creates a new `ValidationError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - errors: public init( message: Swift.String, - documentation_url: Swift.String, - errors: Components.Schemas.validation_hyphen_error.errorsPayload? = nil + documentationUrl: Swift.String, + errors: Components.Schemas.ValidationError.ErrorsPayload? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.errors = errors } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case errors } } /// Private registry configuration for an organization /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration`. - public struct org_hyphen_private_hyphen_registry_hyphen_configuration: Codable, Hashable, Sendable { + public struct OrgPrivateRegistryConfiguration: Codable, Hashable, Sendable { /// The name of the private registry configuration. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/name`. @@ -429,13 +438,13 @@ public enum Components { /// The registry type. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/registry_type`. - @frozen public enum registry_typePayload: String, Codable, Hashable, Sendable { - case maven_repository = "maven_repository" + @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case mavenRepository = "maven_repository" } /// The registry type. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/registry_type`. - public var registry_type: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration.registry_typePayload + public var registryType: Components.Schemas.OrgPrivateRegistryConfiguration.RegistryTypePayload /// The username to use when authenticating with the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/username`. @@ -443,7 +452,7 @@ public enum Components { /// Which type of organization repositories have access to the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -451,48 +460,48 @@ public enum Components { /// Which type of organization repositories have access to the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/visibility`. - public var visibility: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration.visibilityPayload + public var visibility: Components.Schemas.OrgPrivateRegistryConfiguration.VisibilityPayload /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `org_hyphen_private_hyphen_registry_hyphen_configuration`. + public var updatedAt: Foundation.Date + /// Creates a new `OrgPrivateRegistryConfiguration`. /// /// - Parameters: /// - name: The name of the private registry configuration. - /// - registry_type: The registry type. + /// - registryType: The registry type. /// - username: The username to use when authenticating with the private registry. /// - visibility: Which type of organization repositories have access to the private registry. - /// - created_at: - /// - updated_at: + /// - createdAt: + /// - updatedAt: public init( name: Swift.String, - registry_type: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration.registry_typePayload, + registryType: Components.Schemas.OrgPrivateRegistryConfiguration.RegistryTypePayload, username: Swift.String? = nil, - visibility: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration.visibilityPayload, - created_at: Foundation.Date, - updated_at: Foundation.Date + visibility: Components.Schemas.OrgPrivateRegistryConfiguration.VisibilityPayload, + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name - self.registry_type = registry_type + self.registryType = registryType self.username = username self.visibility = visibility - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name - case registry_type + case registryType = "registry_type" case username case visibility - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" } } /// Private registry configuration for an organization /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories`. - public struct org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories: Codable, Hashable, Sendable { + public struct OrgPrivateRegistryConfigurationWithSelectedRepositories: Codable, Hashable, Sendable { /// The name of the private registry configuration. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/name`. @@ -500,13 +509,13 @@ public enum Components { /// The registry type. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/registry_type`. - @frozen public enum registry_typePayload: String, Codable, Hashable, Sendable { - case maven_repository = "maven_repository" + @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case mavenRepository = "maven_repository" } /// The registry type. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/registry_type`. - public var registry_type: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories.registry_typePayload + public var registryType: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.RegistryTypePayload /// The username to use when authenticating with the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/username`. @@ -514,7 +523,7 @@ public enum Components { /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -522,50 +531,50 @@ public enum Components { /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/visibility`. - public var visibility: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories.visibilityPayload + public var visibility: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.VisibilityPayload /// An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`. /// /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? + public var selectedRepositoryIds: [Swift.Int]? /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/updated_at`. - public var updated_at: Foundation.Date - /// Creates a new `org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories`. + public var updatedAt: Foundation.Date + /// Creates a new `OrgPrivateRegistryConfigurationWithSelectedRepositories`. /// /// - Parameters: /// - name: The name of the private registry configuration. - /// - registry_type: The registry type. + /// - registryType: The registry type. /// - username: The username to use when authenticating with the private registry. /// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. - /// - selected_repository_ids: An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`. - /// - created_at: - /// - updated_at: + /// - selectedRepositoryIds: An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`. + /// - createdAt: + /// - updatedAt: public init( name: Swift.String, - registry_type: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories.registry_typePayload, + registryType: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.RegistryTypePayload, username: Swift.String? = nil, - visibility: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories.visibilityPayload, - selected_repository_ids: [Swift.Int]? = nil, - created_at: Foundation.Date, - updated_at: Foundation.Date + visibility: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories.VisibilityPayload, + selectedRepositoryIds: [Swift.Int]? = nil, + createdAt: Foundation.Date, + updatedAt: Foundation.Date ) { self.name = name - self.registry_type = registry_type + self.registryType = registryType self.username = username self.visibility = visibility - self.selected_repository_ids = selected_repository_ids - self.created_at = created_at - self.updated_at = updated_at + self.selectedRepositoryIds = selectedRepositoryIds + self.createdAt = createdAt + self.updatedAt = updatedAt } public enum CodingKeys: String, CodingKey { case name - case registry_type + case registryType = "registry_type" case username case visibility - case selected_repository_ids - case created_at - case updated_at + case selectedRepositoryIds = "selected_repository_ids" + case createdAt = "created_at" + case updatedAt = "updated_at" } } } @@ -574,34 +583,34 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// The name of the secret. /// /// - Remark: Generated from `#/components/parameters/secret-name`. - public typealias secret_hyphen_name = Swift.String + public typealias SecretName = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -611,25 +620,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct bad_request: Sendable, Hashable { + public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/bad_request/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -643,15 +652,15 @@ public enum Components { } } /// - Remark: Generated from `#/components/responses/bad_request/content/application\/scim+json`. - case application_scim_plus_json(Components.Schemas.scim_hyphen_error) - /// The associated value of the enum case if `self` is `.application_scim_plus_json`. + case applicationScimJson(Components.Schemas.ScimError) + /// The associated value of the enum case if `self` is `.applicationScimJson`. /// - /// - Throws: An error if `self` is not `.application_scim_plus_json`. - /// - SeeAlso: `.application_scim_plus_json`. - public var application_scim_plus_json: Components.Schemas.scim_hyphen_error { + /// - Throws: An error if `self` is not `.applicationScimJson`. + /// - SeeAlso: `.applicationScimJson`. + public var applicationScimJson: Components.Schemas.ScimError { get throws { switch self { - case let .application_scim_plus_json(body): + case let .applicationScimJson(body): return body default: try throwUnexpectedResponseBody( @@ -663,25 +672,25 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.bad_request.Body - /// Creates a new `bad_request`. + public var body: Components.Responses.BadRequest.Body + /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.bad_request.Body) { + public init(body: Components.Responses.BadRequest.Body) { self.body = body } } - public struct validation_failed: Sendable, Hashable { + public struct ValidationFailed: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/validation_failed/content/application\/json`. - case json(Components.Schemas.validation_hyphen_error) + case json(Components.Schemas.ValidationError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.validation_hyphen_error { + public var json: Components.Schemas.ValidationError { get throws { switch self { case let .json(body): @@ -691,12 +700,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.validation_failed.Body - /// Creates a new `validation_failed`. + public var body: Components.Responses.ValidationFailed.Body + /// Creates a new `ValidationFailed`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.validation_failed.Body) { + public init(body: Components.Responses.ValidationFailed.Body) { self.body = body } } @@ -704,7 +713,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -720,7 +729,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)`. - public enum private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries { + public enum PrivateRegistriesListOrgPrivateRegistries { public static let id: Swift.String = "private-registries/list-org-private-registries" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/path`. @@ -728,52 +737,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Path + public var path: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Query + public var query: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Headers + public var headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -781,9 +790,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Path, - query: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Query = .init(), - headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Input.Headers = .init() + path: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Path, + query: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Query = .init(), + headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Input.Headers = .init() ) { self.path = path self.query = query @@ -795,49 +804,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Headers + public var headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/content/json/configurations`. - public var configurations: [Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration] - /// Creates a new `jsonPayload`. + public var configurations: [Components.Schemas.OrgPrivateRegistryConfiguration] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: + /// - totalCount: /// - configurations: public init( - total_count: Swift.Int, - configurations: [Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration] + totalCount: Swift.Int, + configurations: [Components.Schemas.OrgPrivateRegistryConfiguration] ) { - self.total_count = total_count + self.totalCount = totalCount self.configurations = configurations } public enum CodingKeys: String, CodingKey { - case total_count + case totalCount = "total_count" case configurations } } /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/GET/responses/200/content/application\/json`. - case json(Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body.jsonPayload) + case json(Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body.jsonPayload { + public var json: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -847,15 +856,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body + public var body: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Headers = .init(), - body: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok.Body + headers: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Headers = .init(), + body: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok.Body ) { self.headers = headers self.body = body @@ -866,12 +875,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok) + case ok(Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.private_hyphen_registries_sol_list_hyphen_org_hyphen_private_hyphen_registries.Output.Ok { + public var ok: Operations.PrivateRegistriesListOrgPrivateRegistries.Output.Ok { get throws { switch self { case let .ok(response): @@ -889,12 +898,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -912,12 +921,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/get(private-registries/list-org-private-registries)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -937,14 +946,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -955,14 +964,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } @@ -976,7 +985,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/private-registries`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)`. - public enum private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry { + public enum PrivateRegistriesCreateOrgPrivateRegistry { public static let id: Swift.String = "private-registries/create-org-private-registry" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/path`. @@ -984,42 +993,42 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Path + public var path: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Headers + public var headers: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The registry type. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/registry_type`. - @frozen public enum registry_typePayload: String, Codable, Hashable, Sendable { - case maven_repository = "maven_repository" + @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case mavenRepository = "maven_repository" } /// The registry type. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/registry_type`. - public var registry_type: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.registry_typePayload + public var registryType: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload /// The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/username`. @@ -1027,15 +1036,15 @@ public enum Operations { /// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String + public var encryptedValue: Swift.String /// The ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -1043,48 +1052,48 @@ public enum Operations { /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/visibility`. - public var visibility: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.visibilityPayload + public var visibility: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload /// An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - registry_type: The registry type. + /// - registryType: The registry type. /// - username: The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication. - /// - encrypted_value: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. - /// - key_id: The ID of the key you used to encrypt the secret. + /// - encryptedValue: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. + /// - keyId: The ID of the key you used to encrypt the secret. /// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. - /// - selected_repository_ids: An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`. + /// - selectedRepositoryIds: An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`. public init( - registry_type: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.registry_typePayload, + registryType: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload, username: Swift.String? = nil, - encrypted_value: Swift.String, - key_id: Swift.String, - visibility: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.visibilityPayload, - selected_repository_ids: [Swift.Int]? = nil + encryptedValue: Swift.String, + keyId: Swift.String, + visibility: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload, + selectedRepositoryIds: [Swift.Int]? = nil ) { - self.registry_type = registry_type + self.registryType = registryType self.username = username - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case registry_type + case registryType = "registry_type" case username - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/content/application\/json`. - case json(Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload) + case json(Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body.JsonPayload) } - public var body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body + public var body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1092,9 +1101,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init(), - body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Input.Body + path: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Headers = .init(), + body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Input.Body ) { self.path = path self.headers = headers @@ -1106,12 +1115,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/responses/201/content/application\/json`. - case json(Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories) + case json(Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration_hyphen_with_hyphen_selected_hyphen_repositories { + public var json: Components.Schemas.OrgPrivateRegistryConfigurationWithSelectedRepositories { get throws { switch self { case let .json(body): @@ -1121,12 +1130,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output.Created.Body + public var body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output.Created.Body) { + public init(body: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output.Created.Body) { self.body = body } } @@ -1135,12 +1144,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output.Created) + case created(Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.private_hyphen_registries_sol_create_hyphen_org_hyphen_private_hyphen_registry.Output.Created { + public var created: Operations.PrivateRegistriesCreateOrgPrivateRegistry.Output.Created { get throws { switch self { case let .created(response): @@ -1158,12 +1167,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1181,12 +1190,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/post(private-registries/create-org-private-registry)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -1239,7 +1248,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/public-key`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)`. - public enum private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key { + public enum PrivateRegistriesGetOrgPublicKey { public static let id: Swift.String = "private-registries/get-org-public-key" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/path`. @@ -1247,36 +1256,36 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path + public var path: Operations.PrivateRegistriesGetOrgPublicKey.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers + public var headers: Operations.PrivateRegistriesGetOrgPublicKey.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Path, - headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Input.Headers = .init() + path: Operations.PrivateRegistriesGetOrgPublicKey.Input.Path, + headers: Operations.PrivateRegistriesGetOrgPublicKey.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1287,53 +1296,53 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Headers + public var headers: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The identifier for the key. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/content/json/key_id`. - public var key_id: Swift.String + public var keyId: Swift.String /// The Base64 encoded public key. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/content/json/key`. public var key: Swift.String - /// Creates a new `jsonPayload`. + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - key_id: The identifier for the key. + /// - keyId: The identifier for the key. /// - key: The Base64 encoded public key. public init( - key_id: Swift.String, + keyId: Swift.String, key: Swift.String ) { - self.key_id = key_id + self.keyId = keyId self.key = key } public enum CodingKeys: String, CodingKey { - case key_id + case keyId = "key_id" case key } } /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/public-key/GET/responses/200/content/application\/json`. - case json(Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body.jsonPayload) + case json(Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body.jsonPayload { + public var json: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -1343,15 +1352,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + public var body: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Headers = .init(), - body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok.Body + headers: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Headers = .init(), + body: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1362,12 +1371,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok) + case ok(Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_public_hyphen_key.Output.Ok { + public var ok: Operations.PrivateRegistriesGetOrgPublicKey.Output.Ok { get throws { switch self { case let .ok(response): @@ -1385,12 +1394,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/public-key/get(private-registries/get-org-public-key)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1443,7 +1452,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)`. - public enum private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry { + public enum PrivateRegistriesGetOrgPrivateRegistry { public static let id: Swift.String = "private-registries/get-org-private-registry" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/path`. @@ -1451,45 +1460,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Path + public var path: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Headers + public var headers: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init() + path: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesGetOrgPrivateRegistry.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1500,12 +1509,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration) + case json(Components.Schemas.OrgPrivateRegistryConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.org_hyphen_private_hyphen_registry_hyphen_configuration { + public var json: Components.Schemas.OrgPrivateRegistryConfiguration { get throws { switch self { case let .json(body): @@ -1515,12 +1524,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output.Ok.Body + public var body: Operations.PrivateRegistriesGetOrgPrivateRegistry.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output.Ok.Body) { + public init(body: Operations.PrivateRegistriesGetOrgPrivateRegistry.Output.Ok.Body) { self.body = body } } @@ -1529,12 +1538,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output.Ok) + case ok(Operations.PrivateRegistriesGetOrgPrivateRegistry.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.private_hyphen_registries_sol_get_hyphen_org_hyphen_private_hyphen_registry.Output.Ok { + public var ok: Operations.PrivateRegistriesGetOrgPrivateRegistry.Output.Ok { get throws { switch self { case let .ok(response): @@ -1552,12 +1561,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/get(private-registries/get-org-private-registry)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1610,7 +1619,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)`. - public enum private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry { + public enum PrivateRegistriesUpdateOrgPrivateRegistry { public static let id: Swift.String = "private-registries/update-org-private-registry" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/path`. @@ -1618,51 +1627,51 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Path + public var path: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Headers + public var headers: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The registry type. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/registry_type`. - @frozen public enum registry_typePayload: String, Codable, Hashable, Sendable { - case maven_repository = "maven_repository" + @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case mavenRepository = "maven_repository" } /// The registry type. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/registry_type`. - public var registry_type: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.registry_typePayload? + public var registryType: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload? /// The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/username`. @@ -1670,15 +1679,15 @@ public enum Operations { /// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/encrypted_value`. - public var encrypted_value: Swift.String? + public var encryptedValue: Swift.String? /// The ID of the key you used to encrypt the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/key_id`. - public var key_id: Swift.String? + public var keyId: Swift.String? /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/visibility`. - @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + @frozen public enum VisibilityPayload: String, Codable, Hashable, Sendable, CaseIterable { case all = "all" case _private = "private" case selected = "selected" @@ -1686,48 +1695,48 @@ public enum Operations { /// Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/visibility`. - public var visibility: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.visibilityPayload? + public var visibility: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload? /// An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/selected_repository_ids`. - public var selected_repository_ids: [Swift.Int]? - /// Creates a new `jsonPayload`. + public var selectedRepositoryIds: [Swift.Int]? + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - registry_type: The registry type. + /// - registryType: The registry type. /// - username: The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication. - /// - encrypted_value: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. - /// - key_id: The ID of the key you used to encrypt the secret. + /// - encryptedValue: The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint. + /// - keyId: The ID of the key you used to encrypt the secret. /// - visibility: Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry. - /// - selected_repository_ids: An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`. + /// - selectedRepositoryIds: An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`. public init( - registry_type: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.registry_typePayload? = nil, + registryType: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.RegistryTypePayload? = nil, username: Swift.String? = nil, - encrypted_value: Swift.String? = nil, - key_id: Swift.String? = nil, - visibility: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload.visibilityPayload? = nil, - selected_repository_ids: [Swift.Int]? = nil + encryptedValue: Swift.String? = nil, + keyId: Swift.String? = nil, + visibility: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload.VisibilityPayload? = nil, + selectedRepositoryIds: [Swift.Int]? = nil ) { - self.registry_type = registry_type + self.registryType = registryType self.username = username - self.encrypted_value = encrypted_value - self.key_id = key_id + self.encryptedValue = encryptedValue + self.keyId = keyId self.visibility = visibility - self.selected_repository_ids = selected_repository_ids + self.selectedRepositoryIds = selectedRepositoryIds } public enum CodingKeys: String, CodingKey { - case registry_type + case registryType = "registry_type" case username - case encrypted_value - case key_id + case encryptedValue = "encrypted_value" + case keyId = "key_id" case visibility - case selected_repository_ids + case selectedRepositoryIds = "selected_repository_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/content/application\/json`. - case json(Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body.jsonPayload) + case json(Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body.JsonPayload) } - public var body: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body + public var body: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1735,9 +1744,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init(), - body: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Input.Body + path: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Headers = .init(), + body: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Input.Body ) { self.path = path self.headers = headers @@ -1754,12 +1763,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent) + case noContent(Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.private_hyphen_registries_sol_update_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent { + public var noContent: Operations.PrivateRegistriesUpdateOrgPrivateRegistry.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1777,12 +1794,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1800,12 +1817,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/patch(private-registries/update-org-private-registry)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Components.Responses.validation_failed) + case unprocessableContent(Components.Responses.ValidationFailed) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Components.Responses.validation_failed { + public var unprocessableContent: Components.Responses.ValidationFailed { get throws { switch self { case let .unprocessableContent(response): @@ -1858,7 +1875,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/private-registries/{secret_name}`. /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)`. - public enum private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry { + public enum PrivateRegistriesDeleteOrgPrivateRegistry { public static let id: Swift.String = "private-registries/delete-org-private-registry" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/DELETE/path`. @@ -1866,45 +1883,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The name of the secret. /// /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/DELETE/path/secret_name`. - public var secret_name: Components.Parameters.secret_hyphen_name + public var secretName: Components.Parameters.SecretName /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - secret_name: The name of the secret. + /// - secretName: The name of the secret. public init( - org: Components.Parameters.org, - secret_name: Components.Parameters.secret_hyphen_name + org: Components.Parameters.Org, + secretName: Components.Parameters.SecretName ) { self.org = org - self.secret_name = secret_name + self.secretName = secretName } } - public var path: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Path + public var path: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Headers + public var headers: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Path, - headers: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Input.Headers = .init() + path: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Path, + headers: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1920,12 +1937,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent) + case noContent(Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.private_hyphen_registries_sol_delete_hyphen_org_hyphen_private_hyphen_registry.Output.NoContent { + public var noContent: Operations.PrivateRegistriesDeleteOrgPrivateRegistry.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1943,12 +1968,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Components.Responses.bad_request) + case badRequest(Components.Responses.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Components.Responses.bad_request { + public var badRequest: Components.Responses.BadRequest { get throws { switch self { case let .badRequest(response): @@ -1966,12 +1991,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/private-registries/{secret_name}/delete(private-registries/delete-org-private-registry)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1991,14 +2016,14 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json - case application_scim_plus_json + case applicationScimJson case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json case "application/scim+json": - self = .application_scim_plus_json + self = .applicationScimJson default: self = .other(rawValue) } @@ -2009,14 +2034,14 @@ public enum Operations { return string case .json: return "application/json" - case .application_scim_plus_json: + case .applicationScimJson: return "application/scim+json" } } public static var allCases: [Self] { [ .json, - .application_scim_plus_json + .applicationScimJson ] } } From 0eb8e619beb5f9d3932613e1f01d0872150d9262 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:08:26 -0700 Subject: [PATCH 43/46] Commit via running ake Sources/hosted-compute --- Sources/hosted-compute/Client.swift | 66 ++-- Sources/hosted-compute/Types.swift | 497 ++++++++++++++-------------- 2 files changed, 290 insertions(+), 273 deletions(-) diff --git a/Sources/hosted-compute/Client.swift b/Sources/hosted-compute/Client.swift index e84741437d..506266e13d 100644 --- a/Sources/hosted-compute/Client.swift +++ b/Sources/hosted-compute/Client.swift @@ -46,10 +46,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)`. - public func hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output { + public func hostedComputeListNetworkConfigurationsForOrg(_ input: Operations.HostedComputeListNetworkConfigurationsForOrg.Input) async throws -> Operations.HostedComputeListNetworkConfigurationsForOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.id, + forOperation: Operations.HostedComputeListNetworkConfigurationsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-configurations", @@ -67,7 +67,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -85,13 +85,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -101,7 +101,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -134,10 +134,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { + public func hostedComputeCreateNetworkConfigurationForOrg(_ input: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeCreateNetworkConfigurationForOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id, + forOperation: Operations.HostedComputeCreateNetworkConfigurationForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-configurations", @@ -169,7 +169,7 @@ public struct Client: APIProtocol { switch response.status.code { case 201: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created.Body + let body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -179,7 +179,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.network_hyphen_configuration.self, + Components.Schemas.NetworkConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -209,16 +209,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { + public func hostedComputeGetNetworkConfigurationForOrg(_ input: Operations.HostedComputeGetNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeGetNetworkConfigurationForOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id, + forOperation: Operations.HostedComputeGetNetworkConfigurationForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-configurations/{}", parameters: [ input.path.org, - input.path.network_configuration_id + input.path.networkConfigurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -235,13 +235,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -251,7 +251,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.network_hyphen_configuration.self, + Components.Schemas.NetworkConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -284,16 +284,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { + public func hostedComputeUpdateNetworkConfigurationForOrg(_ input: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.id, + forOperation: Operations.HostedComputeUpdateNetworkConfigurationForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-configurations/{}", parameters: [ input.path.org, - input.path.network_configuration_id + input.path.networkConfigurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -320,7 +320,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -330,7 +330,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.network_hyphen_configuration.self, + Components.Schemas.NetworkConfiguration.self, from: responseBody, transforming: { value in .json(value) @@ -360,16 +360,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)`. - public func hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output { + public func hostedComputeDeleteNetworkConfigurationFromOrg(_ input: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input) async throws -> Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.id, + forOperation: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-configurations/{}", parameters: [ input.path.org, - input.path.network_configuration_id + input.path.networkConfigurationId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -403,16 +403,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-settings/{network_settings_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)`. - public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output { + public func hostedComputeGetNetworkSettingsForOrg(_ input: Operations.HostedComputeGetNetworkSettingsForOrg.Input) async throws -> Operations.HostedComputeGetNetworkSettingsForOrg.Output { try await client.send( input: input, - forOperation: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.id, + forOperation: Operations.HostedComputeGetNetworkSettingsForOrg.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/settings/network-settings/{}", parameters: [ input.path.org, - input.path.network_settings_id + input.path.networkSettingsId ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -429,13 +429,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Body + let body: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -445,7 +445,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.network_hyphen_settings.self, + Components.Schemas.NetworkSettings.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/hosted-compute/Types.swift b/Sources/hosted-compute/Types.swift index 3ea064e4db..0ee225d62f 100644 --- a/Sources/hosted-compute/Types.swift +++ b/Sources/hosted-compute/Types.swift @@ -19,7 +19,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)`. - func hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output + func hostedComputeListNetworkConfigurationsForOrg(_ input: Operations.HostedComputeListNetworkConfigurationsForOrg.Input) async throws -> Operations.HostedComputeListNetworkConfigurationsForOrg.Output /// Create a hosted compute network configuration for an organization /// /// Creates a hosted compute network configuration for an organization. @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)`. - func hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output + func hostedComputeCreateNetworkConfigurationForOrg(_ input: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeCreateNetworkConfigurationForOrg.Output /// Get a hosted compute network configuration for an organization /// /// Gets a hosted compute network configuration configured in an organization. @@ -37,7 +37,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)`. - func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output + func hostedComputeGetNetworkConfigurationForOrg(_ input: Operations.HostedComputeGetNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeGetNetworkConfigurationForOrg.Output /// Update a hosted compute network configuration for an organization /// /// Updates a hosted compute network configuration for an organization. @@ -46,7 +46,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)`. - func hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output + func hostedComputeUpdateNetworkConfigurationForOrg(_ input: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input) async throws -> Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output /// Delete a hosted compute network configuration from an organization /// /// Deletes a hosted compute network configuration from an organization. @@ -55,7 +55,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)`. - func hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output + func hostedComputeDeleteNetworkConfigurationFromOrg(_ input: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input) async throws -> Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output /// Get a hosted compute network settings resource for an organization /// /// Gets a hosted compute network settings resource configured for an organization. @@ -64,7 +64,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-settings/{network_settings_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)`. - func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org(_ input: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output + func hostedComputeGetNetworkSettingsForOrg(_ input: Operations.HostedComputeGetNetworkSettingsForOrg.Input) async throws -> Operations.HostedComputeGetNetworkSettingsForOrg.Output } /// Convenience overloads for operation inputs. @@ -77,12 +77,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)`. - public func hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org( - path: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Path, - query: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output { - try await hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org(Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input( + public func hostedComputeListNetworkConfigurationsForOrg( + path: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Path, + query: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Query = .init(), + headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Headers = .init() + ) async throws -> Operations.HostedComputeListNetworkConfigurationsForOrg.Output { + try await hostedComputeListNetworkConfigurationsForOrg(Operations.HostedComputeListNetworkConfigurationsForOrg.Input( path: path, query: query, headers: headers @@ -96,12 +96,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org( - path: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { - try await hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input( + public func hostedComputeCreateNetworkConfigurationForOrg( + path: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Headers = .init(), + body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body + ) async throws -> Operations.HostedComputeCreateNetworkConfigurationForOrg.Output { + try await hostedComputeCreateNetworkConfigurationForOrg(Operations.HostedComputeCreateNetworkConfigurationForOrg.Input( path: path, headers: headers, body: body @@ -115,11 +115,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org( - path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { - try await hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input( + public func hostedComputeGetNetworkConfigurationForOrg( + path: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Headers = .init() + ) async throws -> Operations.HostedComputeGetNetworkConfigurationForOrg.Output { + try await hostedComputeGetNetworkConfigurationForOrg(Operations.HostedComputeGetNetworkConfigurationForOrg.Input( path: path, headers: headers )) @@ -132,12 +132,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)`. - public func hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org( - path: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body - ) async throws -> Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output { - try await hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org(Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input( + public func hostedComputeUpdateNetworkConfigurationForOrg( + path: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Headers = .init(), + body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body + ) async throws -> Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output { + try await hostedComputeUpdateNetworkConfigurationForOrg(Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input( path: path, headers: headers, body: body @@ -151,8 +151,8 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)`. - public func hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org(path: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input.Path) async throws -> Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output { - try await hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org(Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input(path: path)) + public func hostedComputeDeleteNetworkConfigurationFromOrg(path: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input.Path) async throws -> Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output { + try await hostedComputeDeleteNetworkConfigurationFromOrg(Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input(path: path)) } /// Get a hosted compute network settings resource for an organization /// @@ -162,11 +162,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-settings/{network_settings_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)`. - public func hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org( - path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Headers = .init() - ) async throws -> Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output { - try await hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org(Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input( + public func hostedComputeGetNetworkSettingsForOrg( + path: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Path, + headers: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Headers = .init() + ) async throws -> Operations.HostedComputeGetNetworkSettingsForOrg.Output { + try await hostedComputeGetNetworkSettingsForOrg(Operations.HostedComputeGetNetworkSettingsForOrg.Input( path: path, headers: headers )) @@ -175,6 +175,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -190,7 +199,7 @@ public enum Components { /// A hosted compute network configuration. /// /// - Remark: Generated from `#/components/schemas/network-configuration`. - public struct network_hyphen_configuration: Codable, Hashable, Sendable { + public struct NetworkConfiguration: Codable, Hashable, Sendable { /// The unique identifier of the network configuration. /// /// - Remark: Generated from `#/components/schemas/network-configuration/id`. @@ -202,7 +211,7 @@ public enum Components { /// The hosted compute service the network configuration supports. /// /// - Remark: Generated from `#/components/schemas/network-configuration/compute_service`. - @frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable { + @frozen public enum ComputeServicePayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case actions = "actions" case codespaces = "codespaces" @@ -210,48 +219,48 @@ public enum Components { /// The hosted compute service the network configuration supports. /// /// - Remark: Generated from `#/components/schemas/network-configuration/compute_service`. - public var compute_service: Components.Schemas.network_hyphen_configuration.compute_servicePayload? + public var computeService: Components.Schemas.NetworkConfiguration.ComputeServicePayload? /// The unique identifier of each network settings in the configuration. /// /// - Remark: Generated from `#/components/schemas/network-configuration/network_settings_ids`. - public var network_settings_ids: [Swift.String]? + public var networkSettingsIds: [Swift.String]? /// The time at which the network configuration was created, in ISO 8601 format. /// /// - Remark: Generated from `#/components/schemas/network-configuration/created_on`. - public var created_on: Foundation.Date? - /// Creates a new `network_hyphen_configuration`. + public var createdOn: Foundation.Date? + /// Creates a new `NetworkConfiguration`. /// /// - Parameters: /// - id: The unique identifier of the network configuration. /// - name: The name of the network configuration. - /// - compute_service: The hosted compute service the network configuration supports. - /// - network_settings_ids: The unique identifier of each network settings in the configuration. - /// - created_on: The time at which the network configuration was created, in ISO 8601 format. + /// - computeService: The hosted compute service the network configuration supports. + /// - networkSettingsIds: The unique identifier of each network settings in the configuration. + /// - createdOn: The time at which the network configuration was created, in ISO 8601 format. public init( id: Swift.String, name: Swift.String, - compute_service: Components.Schemas.network_hyphen_configuration.compute_servicePayload? = nil, - network_settings_ids: [Swift.String]? = nil, - created_on: Foundation.Date? = nil + computeService: Components.Schemas.NetworkConfiguration.ComputeServicePayload? = nil, + networkSettingsIds: [Swift.String]? = nil, + createdOn: Foundation.Date? = nil ) { self.id = id self.name = name - self.compute_service = compute_service - self.network_settings_ids = network_settings_ids - self.created_on = created_on + self.computeService = computeService + self.networkSettingsIds = networkSettingsIds + self.createdOn = createdOn } public enum CodingKeys: String, CodingKey { case id case name - case compute_service - case network_settings_ids - case created_on + case computeService = "compute_service" + case networkSettingsIds = "network_settings_ids" + case createdOn = "created_on" } } /// A hosted compute network settings resource. /// /// - Remark: Generated from `#/components/schemas/network-settings`. - public struct network_hyphen_settings: Codable, Hashable, Sendable { + public struct NetworkSettings: Codable, Hashable, Sendable { /// The unique identifier of the network settings resource. /// /// - Remark: Generated from `#/components/schemas/network-settings/id`. @@ -259,7 +268,7 @@ public enum Components { /// The identifier of the network configuration that is using this settings resource. /// /// - Remark: Generated from `#/components/schemas/network-settings/network_configuration_id`. - public var network_configuration_id: Swift.String? + public var networkConfigurationId: Swift.String? /// The name of the network settings resource. /// /// - Remark: Generated from `#/components/schemas/network-settings/name`. @@ -267,37 +276,37 @@ public enum Components { /// The subnet this network settings resource is configured for. /// /// - Remark: Generated from `#/components/schemas/network-settings/subnet_id`. - public var subnet_id: Swift.String + public var subnetId: Swift.String /// The location of the subnet this network settings resource is configured for. /// /// - Remark: Generated from `#/components/schemas/network-settings/region`. public var region: Swift.String - /// Creates a new `network_hyphen_settings`. + /// Creates a new `NetworkSettings`. /// /// - Parameters: /// - id: The unique identifier of the network settings resource. - /// - network_configuration_id: The identifier of the network configuration that is using this settings resource. + /// - networkConfigurationId: The identifier of the network configuration that is using this settings resource. /// - name: The name of the network settings resource. - /// - subnet_id: The subnet this network settings resource is configured for. + /// - subnetId: The subnet this network settings resource is configured for. /// - region: The location of the subnet this network settings resource is configured for. public init( id: Swift.String, - network_configuration_id: Swift.String? = nil, + networkConfigurationId: Swift.String? = nil, name: Swift.String, - subnet_id: Swift.String, + subnetId: Swift.String, region: Swift.String ) { self.id = id - self.network_configuration_id = network_configuration_id + self.networkConfigurationId = networkConfigurationId self.name = name - self.subnet_id = subnet_id + self.subnetId = subnetId self.region = region } public enum CodingKeys: String, CodingKey { case id - case network_configuration_id + case networkConfigurationId = "network_configuration_id" case name - case subnet_id + case subnetId = "subnet_id" case region } } @@ -307,23 +316,23 @@ public enum Components { /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String /// Unique identifier of the hosted compute network configuration. /// /// - Remark: Generated from `#/components/parameters/network-configuration-id`. - public typealias network_hyphen_configuration_hyphen_id = Swift.String + public typealias NetworkConfigurationId = Swift.String /// Unique identifier of the hosted compute network settings. /// /// - Remark: Generated from `#/components/parameters/network-settings-id`. - public typealias network_hyphen_settings_hyphen_id = Swift.String + public typealias NetworkSettingsId = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} @@ -332,7 +341,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -346,7 +355,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)`. - public enum hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org { + public enum HostedComputeListNetworkConfigurationsForOrg { public static let id: Swift.String = "hosted-compute/list-network-configurations-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/path`. @@ -354,52 +363,52 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Path + public var path: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.Page? /// 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)." + /// - perPage: 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)." public init( - per_page: Components.Parameters.per_hyphen_page? = nil, - page: Components.Parameters.page? = nil + perPage: Components.Parameters.PerPage? = nil, + page: Components.Parameters.Page? = nil ) { - self.per_page = per_page + self.perPage = perPage self.page = page } } - public var query: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Query + public var query: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -407,9 +416,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Path, - query: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Query = .init(), - headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Path, + query: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Query = .init(), + headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Input.Headers = .init() ) { self.path = path self.query = query @@ -421,49 +430,49 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/content/json/total_count`. - public var total_count: Swift.Int + public var totalCount: Swift.Int /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/content/json/network_configurations`. - public var network_configurations: [Components.Schemas.network_hyphen_configuration] - /// Creates a new `jsonPayload`. + public var networkConfigurations: [Components.Schemas.NetworkConfiguration] + /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - total_count: - /// - network_configurations: + /// - totalCount: + /// - networkConfigurations: public init( - total_count: Swift.Int, - network_configurations: [Components.Schemas.network_hyphen_configuration] + totalCount: Swift.Int, + networkConfigurations: [Components.Schemas.NetworkConfiguration] ) { - self.total_count = total_count - self.network_configurations = network_configurations + self.totalCount = totalCount + self.networkConfigurations = networkConfigurations } public enum CodingKeys: String, CodingKey { - case total_count - case network_configurations + case totalCount = "total_count" + case networkConfigurations = "network_configurations" } } /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/GET/responses/200/content/application\/json`. - case json(Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + case json(Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + public var json: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -473,15 +482,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Headers = .init(), + body: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -492,12 +501,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/get(hosted-compute/list-network-configurations-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.hosted_hyphen_compute_sol_list_hyphen_network_hyphen_configurations_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.HostedComputeListNetworkConfigurationsForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -549,7 +558,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/settings/network-configurations`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)`. - public enum hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org { + public enum HostedComputeCreateNetworkConfigurationForOrg { public static let id: Swift.String = "hosted-compute/create-network-configuration-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/path`. @@ -557,32 +566,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path + public var path: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json/name`. @@ -590,43 +599,43 @@ public enum Operations { /// The hosted compute service to use for the network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json/compute_service`. - @frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable { + @frozen public enum ComputeServicePayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case actions = "actions" } /// The hosted compute service to use for the network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json/compute_service`. - public var compute_service: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload.compute_servicePayload? + public var computeService: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body.JsonPayload.ComputeServicePayload? /// The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/json/network_settings_ids`. - public var network_settings_ids: [Swift.String] - /// Creates a new `jsonPayload`. + public var networkSettingsIds: [Swift.String] + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. - /// - compute_service: The hosted compute service to use for the network configuration. - /// - network_settings_ids: The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. + /// - computeService: The hosted compute service to use for the network configuration. + /// - networkSettingsIds: The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. public init( name: Swift.String, - compute_service: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload.compute_servicePayload? = nil, - network_settings_ids: [Swift.String] + computeService: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body.JsonPayload.ComputeServicePayload? = nil, + networkSettingsIds: [Swift.String] ) { self.name = name - self.compute_service = compute_service - self.network_settings_ids = network_settings_ids + self.computeService = computeService + self.networkSettingsIds = networkSettingsIds } public enum CodingKeys: String, CodingKey { case name - case compute_service - case network_settings_ids + case computeService = "compute_service" + case networkSettingsIds = "network_settings_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/requestBody/content/application\/json`. - case json(Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body.JsonPayload) } - public var body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body + public var body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -634,9 +643,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body + path: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Headers = .init(), + body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Input.Body ) { self.path = path self.headers = headers @@ -648,12 +657,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/responses/201/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/POST/responses/201/content/application\/json`. - case json(Components.Schemas.network_hyphen_configuration) + case json(Components.Schemas.NetworkConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.network_hyphen_configuration { + public var json: Components.Schemas.NetworkConfiguration { get throws { switch self { case let .json(body): @@ -663,12 +672,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created.Body + public var body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created.Body /// Creates a new `Created`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created.Body) { + public init(body: Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created.Body) { self.body = body } } @@ -677,12 +686,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/post(hosted-compute/create-network-configuration-for-org)/responses/201`. /// /// HTTP response code: `201 created`. - case created(Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created) + case created(Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created) /// The associated value of the enum case if `self` is `.created`. /// /// - Throws: An error if `self` is not `.created`. /// - SeeAlso: `.created`. - public var created: Operations.hosted_hyphen_compute_sol_create_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Created { + public var created: Operations.HostedComputeCreateNetworkConfigurationForOrg.Output.Created { get throws { switch self { case let .created(response): @@ -734,7 +743,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)`. - public enum hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org { + public enum HostedComputeGetNetworkConfigurationForOrg { public static let id: Swift.String = "hosted-compute/get-network-configuration-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/path`. @@ -742,45 +751,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the hosted compute network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/path/network_configuration_id`. - public var network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + public var networkConfigurationId: Components.Parameters.NetworkConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - network_configuration_id: Unique identifier of the hosted compute network configuration. + /// - networkConfigurationId: Unique identifier of the hosted compute network configuration. public init( - org: Components.Parameters.org, - network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + org: Components.Parameters.Org, + networkConfigurationId: Components.Parameters.NetworkConfigurationId ) { self.org = org - self.network_configuration_id = network_configuration_id + self.networkConfigurationId = networkConfigurationId } } - public var path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path + public var path: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -791,26 +800,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.network_hyphen_configuration) + case json(Components.Schemas.NetworkConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.network_hyphen_configuration { + public var json: Components.Schemas.NetworkConfiguration { get throws { switch self { case let .json(body): @@ -820,15 +829,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Headers = .init(), + body: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -839,12 +848,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/get(hosted-compute/get-network-configuration-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.HostedComputeGetNetworkConfigurationForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -896,7 +905,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)`. - public enum hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org { + public enum HostedComputeUpdateNetworkConfigurationForOrg { public static let id: Swift.String = "hosted-compute/update-network-configuration-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/path`. @@ -904,41 +913,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the hosted compute network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/path/network_configuration_id`. - public var network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + public var networkConfigurationId: Components.Parameters.NetworkConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - network_configuration_id: Unique identifier of the hosted compute network configuration. + /// - networkConfigurationId: Unique identifier of the hosted compute network configuration. public init( - org: Components.Parameters.org, - network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + org: Components.Parameters.Org, + networkConfigurationId: Components.Parameters.NetworkConfigurationId ) { self.org = org - self.network_configuration_id = network_configuration_id + self.networkConfigurationId = networkConfigurationId } } - public var path: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path + public var path: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json/name`. @@ -946,43 +955,43 @@ public enum Operations { /// The hosted compute service to use for the network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json/compute_service`. - @frozen public enum compute_servicePayload: String, Codable, Hashable, Sendable { + @frozen public enum ComputeServicePayload: String, Codable, Hashable, Sendable, CaseIterable { case none = "none" case actions = "actions" } /// The hosted compute service to use for the network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json/compute_service`. - public var compute_service: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload.compute_servicePayload? + public var computeService: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body.JsonPayload.ComputeServicePayload? /// The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/json/network_settings_ids`. - public var network_settings_ids: [Swift.String]? - /// Creates a new `jsonPayload`. + public var networkSettingsIds: [Swift.String]? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'. - /// - compute_service: The hosted compute service to use for the network configuration. - /// - network_settings_ids: The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. + /// - computeService: The hosted compute service to use for the network configuration. + /// - networkSettingsIds: The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified. public init( name: Swift.String? = nil, - compute_service: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload.compute_servicePayload? = nil, - network_settings_ids: [Swift.String]? = nil + computeService: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body.JsonPayload.ComputeServicePayload? = nil, + networkSettingsIds: [Swift.String]? = nil ) { self.name = name - self.compute_service = compute_service - self.network_settings_ids = network_settings_ids + self.computeService = computeService + self.networkSettingsIds = networkSettingsIds } public enum CodingKeys: String, CodingKey { case name - case compute_service - case network_settings_ids + case computeService = "compute_service" + case networkSettingsIds = "network_settings_ids" } } /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/requestBody/content/application\/json`. - case json(Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body.jsonPayload) + case json(Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body.JsonPayload) } - public var body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body + public var body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -990,9 +999,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Input.Body + path: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Path, + headers: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Headers = .init(), + body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Input.Body ) { self.path = path self.headers = headers @@ -1004,12 +1013,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.network_hyphen_configuration) + case json(Components.Schemas.NetworkConfiguration) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.network_hyphen_configuration { + public var json: Components.Schemas.NetworkConfiguration { get throws { switch self { case let .json(body): @@ -1019,12 +1028,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok.Body) { + public init(body: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok.Body) { self.body = body } } @@ -1033,12 +1042,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/patch(hosted-compute/update-network-configuration-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.hosted_hyphen_compute_sol_update_hyphen_network_hyphen_configuration_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.HostedComputeUpdateNetworkConfigurationForOrg.Output.Ok { get throws { switch self { case let .ok(response): @@ -1090,7 +1099,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)`. - public enum hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org { + public enum HostedComputeDeleteNetworkConfigurationFromOrg { public static let id: Swift.String = "hosted-compute/delete-network-configuration-from-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/DELETE/path`. @@ -1098,30 +1107,30 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the hosted compute network configuration. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-configurations/{network_configuration_id}/DELETE/path/network_configuration_id`. - public var network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + public var networkConfigurationId: Components.Parameters.NetworkConfigurationId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - network_configuration_id: Unique identifier of the hosted compute network configuration. + /// - networkConfigurationId: Unique identifier of the hosted compute network configuration. public init( - org: Components.Parameters.org, - network_configuration_id: Components.Parameters.network_hyphen_configuration_hyphen_id + org: Components.Parameters.Org, + networkConfigurationId: Components.Parameters.NetworkConfigurationId ) { self.org = org - self.network_configuration_id = network_configuration_id + self.networkConfigurationId = networkConfigurationId } } - public var path: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input.Path + public var path: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input.Path /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Input.Path) { + public init(path: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Input.Path) { self.path = path } } @@ -1135,12 +1144,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output.NoContent) + case noContent(Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-configurations/{network_configuration_id}/delete(hosted-compute/delete-network-configuration-from-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.hosted_hyphen_compute_sol_delete_hyphen_network_hyphen_configuration_hyphen_from_hyphen_org.Output.NoContent { + public var noContent: Operations.HostedComputeDeleteNetworkConfigurationFromOrg.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -1167,7 +1184,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/settings/network-settings/{network_settings_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)`. - public enum hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org { + public enum HostedComputeGetNetworkSettingsForOrg { public static let id: Swift.String = "hosted-compute/get-network-settings-for-org" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/path`. @@ -1175,45 +1192,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Unique identifier of the hosted compute network settings. /// /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/path/network_settings_id`. - public var network_settings_id: Components.Parameters.network_hyphen_settings_hyphen_id + public var networkSettingsId: Components.Parameters.NetworkSettingsId /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - network_settings_id: Unique identifier of the hosted compute network settings. + /// - networkSettingsId: Unique identifier of the hosted compute network settings. public init( - org: Components.Parameters.org, - network_settings_id: Components.Parameters.network_hyphen_settings_hyphen_id + org: Components.Parameters.Org, + networkSettingsId: Components.Parameters.NetworkSettingsId ) { self.org = org - self.network_settings_id = network_settings_id + self.networkSettingsId = networkSettingsId } } - public var path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Path + public var path: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Headers + public var headers: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Path, - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Input.Headers = .init() + path: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Path, + headers: Operations.HostedComputeGetNetworkSettingsForOrg.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1224,26 +1241,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Headers + public var headers: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/settings/network-settings/{network_settings_id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.network_hyphen_settings) + case json(Components.Schemas.NetworkSettings) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.network_hyphen_settings { + public var json: Components.Schemas.NetworkSettings { get throws { switch self { case let .json(body): @@ -1253,15 +1270,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Body + public var body: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), - body: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok.Body + headers: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Headers = .init(), + body: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1272,12 +1289,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/settings/network-settings/{network_settings_id}/get(hosted-compute/get-network-settings-for-org)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok) + case ok(Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.hosted_hyphen_compute_sol_get_hyphen_network_hyphen_settings_hyphen_for_hyphen_org.Output.Ok { + public var ok: Operations.HostedComputeGetNetworkSettingsForOrg.Output.Ok { get throws { switch self { case let .ok(response): From 0880bc739f9a35693f9bddbbdd3b2eae3731f015 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 09:08:39 -0700 Subject: [PATCH 44/46] Commit via running ake Sources/campaigns --- Sources/campaigns/Client.swift | 108 ++-- Sources/campaigns/Types.swift | 1097 ++++++++++++++++---------------- 2 files changed, 615 insertions(+), 590 deletions(-) diff --git a/Sources/campaigns/Client.swift b/Sources/campaigns/Client.swift index ae99ad9c1c..a1eb36496b 100644 --- a/Sources/campaigns/Client.swift +++ b/Sources/campaigns/Client.swift @@ -48,10 +48,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)`. - public func campaigns_sol_list_hyphen_org_hyphen_campaigns(_ input: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input) async throws -> Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output { + public func campaignsListOrgCampaigns(_ input: Operations.CampaignsListOrgCampaigns.Input) async throws -> Operations.CampaignsListOrgCampaigns.Output { try await client.send( input: input, - forOperation: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.id, + forOperation: Operations.CampaignsListOrgCampaigns.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/campaigns", @@ -76,7 +76,7 @@ public struct Client: APIProtocol { style: .form, explode: true, name: "per_page", - value: input.query.per_page + value: input.query.perPage ) try converter.setQueryItemAsURI( in: &request, @@ -108,13 +108,13 @@ public struct Client: APIProtocol { deserializer: { response, responseBody in switch response.status.code { case 200: - let headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + let headers: Operations.CampaignsListOrgCampaigns.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI( in: response.headerFields, name: "Link", - as: Components.Headers.link.self + as: Components.Headers.Link.self )) let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Body + let body: Operations.CampaignsListOrgCampaigns.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -124,7 +124,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - [Components.Schemas.campaign_hyphen_summary].self, + [Components.Schemas.CampaignSummary].self, from: responseBody, transforming: { value in .json(value) @@ -139,7 +139,7 @@ public struct Client: APIProtocol { )) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -149,7 +149,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -161,7 +161,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -171,7 +171,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -206,10 +206,10 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)`. - public func campaigns_sol_create_hyphen_campaign(_ input: Operations.campaigns_sol_create_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_create_hyphen_campaign.Output { + public func campaignsCreateCampaign(_ input: Operations.CampaignsCreateCampaign.Input) async throws -> Operations.CampaignsCreateCampaign.Output { try await client.send( input: input, - forOperation: Operations.campaigns_sol_create_hyphen_campaign.id, + forOperation: Operations.CampaignsCreateCampaign.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/campaigns", @@ -241,7 +241,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_create_hyphen_campaign.Output.Ok.Body + let body: Operations.CampaignsCreateCampaign.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -251,7 +251,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.campaign_hyphen_summary.self, + Components.Schemas.CampaignSummary.self, from: responseBody, transforming: { value in .json(value) @@ -263,7 +263,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_create_hyphen_campaign.Output.BadRequest.Body + let body: Operations.CampaignsCreateCampaign.Output.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -273,7 +273,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -285,7 +285,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -295,7 +295,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -307,7 +307,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_create_hyphen_campaign.Output.UnprocessableContent.Body + let body: Operations.CampaignsCreateCampaign.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -317,7 +317,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -331,7 +331,7 @@ public struct Client: APIProtocol { return .tooManyRequests(.init()) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -341,7 +341,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -373,16 +373,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)`. - public func campaigns_sol_get_hyphen_campaign_hyphen_summary(_ input: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input) async throws -> Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output { + public func campaignsGetCampaignSummary(_ input: Operations.CampaignsGetCampaignSummary.Input) async throws -> Operations.CampaignsGetCampaignSummary.Output { try await client.send( input: input, - forOperation: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.id, + forOperation: Operations.CampaignsGetCampaignSummary.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/campaigns/{}", parameters: [ input.path.org, - input.path.campaign_number + input.path.campaignNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -400,7 +400,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.Ok.Body + let body: Operations.CampaignsGetCampaignSummary.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -410,7 +410,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.campaign_hyphen_summary.self, + Components.Schemas.CampaignSummary.self, from: responseBody, transforming: { value in .json(value) @@ -422,7 +422,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -432,7 +432,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -444,7 +444,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.UnprocessableContent.Body + let body: Operations.CampaignsGetCampaignSummary.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -454,7 +454,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -466,7 +466,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -476,7 +476,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -508,16 +508,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)`. - public func campaigns_sol_update_hyphen_campaign(_ input: Operations.campaigns_sol_update_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_update_hyphen_campaign.Output { + public func campaignsUpdateCampaign(_ input: Operations.CampaignsUpdateCampaign.Input) async throws -> Operations.CampaignsUpdateCampaign.Output { try await client.send( input: input, - forOperation: Operations.campaigns_sol_update_hyphen_campaign.id, + forOperation: Operations.CampaignsUpdateCampaign.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/campaigns/{}", parameters: [ input.path.org, - input.path.campaign_number + input.path.campaignNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -544,7 +544,7 @@ public struct Client: APIProtocol { switch response.status.code { case 200: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_update_hyphen_campaign.Output.Ok.Body + let body: Operations.CampaignsUpdateCampaign.Output.Ok.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -554,7 +554,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.campaign_hyphen_summary.self, + Components.Schemas.CampaignSummary.self, from: responseBody, transforming: { value in .json(value) @@ -566,7 +566,7 @@ public struct Client: APIProtocol { return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_update_hyphen_campaign.Output.BadRequest.Body + let body: Operations.CampaignsUpdateCampaign.Output.BadRequest.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -576,7 +576,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -588,7 +588,7 @@ public struct Client: APIProtocol { return .badRequest(.init(body: body)) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -598,7 +598,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -610,7 +610,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 422: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.campaigns_sol_update_hyphen_campaign.Output.UnprocessableContent.Body + let body: Operations.CampaignsUpdateCampaign.Output.UnprocessableContent.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -620,7 +620,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -632,7 +632,7 @@ public struct Client: APIProtocol { return .unprocessableContent(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -642,7 +642,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) @@ -674,16 +674,16 @@ public struct Client: APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)`. - public func campaigns_sol_delete_hyphen_campaign(_ input: Operations.campaigns_sol_delete_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_delete_hyphen_campaign.Output { + public func campaignsDeleteCampaign(_ input: Operations.CampaignsDeleteCampaign.Input) async throws -> Operations.CampaignsDeleteCampaign.Output { try await client.send( input: input, - forOperation: Operations.campaigns_sol_delete_hyphen_campaign.id, + forOperation: Operations.CampaignsDeleteCampaign.id, serializer: { input in let path = try converter.renderedPath( template: "/orgs/{}/campaigns/{}", parameters: [ input.path.org, - input.path.campaign_number + input.path.campaignNumber ] ) var request: HTTPTypes.HTTPRequest = .init( @@ -703,7 +703,7 @@ public struct Client: APIProtocol { return .noContent(.init()) case 404: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.not_found.Body + let body: Components.Responses.NotFound.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -713,7 +713,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Schemas.basic_hyphen_error.self, + Components.Schemas.BasicError.self, from: responseBody, transforming: { value in .json(value) @@ -725,7 +725,7 @@ public struct Client: APIProtocol { return .notFound(.init(body: body)) case 503: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Components.Responses.service_unavailable.Body + let body: Components.Responses.ServiceUnavailable.Body let chosenContentType = try converter.bestContentType( received: contentType, options: [ @@ -735,7 +735,7 @@ public struct Client: APIProtocol { switch chosenContentType { case "application/json": body = try await converter.getResponseBodyAsJSON( - Components.Responses.service_unavailable.Body.jsonPayload.self, + Components.Responses.ServiceUnavailable.Body.JsonPayload.self, from: responseBody, transforming: { value in .json(value) diff --git a/Sources/campaigns/Types.swift b/Sources/campaigns/Types.swift index 768df1d84e..b8c21295b9 100644 --- a/Sources/campaigns/Types.swift +++ b/Sources/campaigns/Types.swift @@ -21,7 +21,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)`. - func campaigns_sol_list_hyphen_org_hyphen_campaigns(_ input: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input) async throws -> Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output + func campaignsListOrgCampaigns(_ input: Operations.CampaignsListOrgCampaigns.Input) async throws -> Operations.CampaignsListOrgCampaigns.Output /// Create a campaign for an organization /// /// Create a campaign for an organization. @@ -35,7 +35,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `POST /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)`. - func campaigns_sol_create_hyphen_campaign(_ input: Operations.campaigns_sol_create_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_create_hyphen_campaign.Output + func campaignsCreateCampaign(_ input: Operations.CampaignsCreateCampaign.Input) async throws -> Operations.CampaignsCreateCampaign.Output /// Get a campaign for an organization /// /// Gets a campaign for an organization. @@ -46,7 +46,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)`. - func campaigns_sol_get_hyphen_campaign_hyphen_summary(_ input: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input) async throws -> Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output + func campaignsGetCampaignSummary(_ input: Operations.CampaignsGetCampaignSummary.Input) async throws -> Operations.CampaignsGetCampaignSummary.Output /// Update a campaign /// /// Updates a campaign in an organization. @@ -57,7 +57,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `PATCH /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)`. - func campaigns_sol_update_hyphen_campaign(_ input: Operations.campaigns_sol_update_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_update_hyphen_campaign.Output + func campaignsUpdateCampaign(_ input: Operations.CampaignsUpdateCampaign.Input) async throws -> Operations.CampaignsUpdateCampaign.Output /// Delete a campaign for an organization /// /// Deletes a campaign in an organization. @@ -68,7 +68,7 @@ public protocol APIProtocol: Sendable { /// /// - Remark: HTTP `DELETE /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)`. - func campaigns_sol_delete_hyphen_campaign(_ input: Operations.campaigns_sol_delete_hyphen_campaign.Input) async throws -> Operations.campaigns_sol_delete_hyphen_campaign.Output + func campaignsDeleteCampaign(_ input: Operations.CampaignsDeleteCampaign.Input) async throws -> Operations.CampaignsDeleteCampaign.Output } /// Convenience overloads for operation inputs. @@ -83,12 +83,12 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)`. - public func campaigns_sol_list_hyphen_org_hyphen_campaigns( - path: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Path, - query: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Query = .init(), - headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Headers = .init() - ) async throws -> Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output { - try await campaigns_sol_list_hyphen_org_hyphen_campaigns(Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input( + public func campaignsListOrgCampaigns( + path: Operations.CampaignsListOrgCampaigns.Input.Path, + query: Operations.CampaignsListOrgCampaigns.Input.Query = .init(), + headers: Operations.CampaignsListOrgCampaigns.Input.Headers = .init() + ) async throws -> Operations.CampaignsListOrgCampaigns.Output { + try await campaignsListOrgCampaigns(Operations.CampaignsListOrgCampaigns.Input( path: path, query: query, headers: headers @@ -107,12 +107,12 @@ extension APIProtocol { /// /// - Remark: HTTP `POST /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)`. - public func campaigns_sol_create_hyphen_campaign( - path: Operations.campaigns_sol_create_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_create_hyphen_campaign.Input.Headers = .init(), - body: Operations.campaigns_sol_create_hyphen_campaign.Input.Body - ) async throws -> Operations.campaigns_sol_create_hyphen_campaign.Output { - try await campaigns_sol_create_hyphen_campaign(Operations.campaigns_sol_create_hyphen_campaign.Input( + public func campaignsCreateCampaign( + path: Operations.CampaignsCreateCampaign.Input.Path, + headers: Operations.CampaignsCreateCampaign.Input.Headers = .init(), + body: Operations.CampaignsCreateCampaign.Input.Body + ) async throws -> Operations.CampaignsCreateCampaign.Output { + try await campaignsCreateCampaign(Operations.CampaignsCreateCampaign.Input( path: path, headers: headers, body: body @@ -128,11 +128,11 @@ extension APIProtocol { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)`. - public func campaigns_sol_get_hyphen_campaign_hyphen_summary( - path: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Path, - headers: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Headers = .init() - ) async throws -> Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output { - try await campaigns_sol_get_hyphen_campaign_hyphen_summary(Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input( + public func campaignsGetCampaignSummary( + path: Operations.CampaignsGetCampaignSummary.Input.Path, + headers: Operations.CampaignsGetCampaignSummary.Input.Headers = .init() + ) async throws -> Operations.CampaignsGetCampaignSummary.Output { + try await campaignsGetCampaignSummary(Operations.CampaignsGetCampaignSummary.Input( path: path, headers: headers )) @@ -147,12 +147,12 @@ extension APIProtocol { /// /// - Remark: HTTP `PATCH /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)`. - public func campaigns_sol_update_hyphen_campaign( - path: Operations.campaigns_sol_update_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_update_hyphen_campaign.Input.Headers = .init(), - body: Operations.campaigns_sol_update_hyphen_campaign.Input.Body - ) async throws -> Operations.campaigns_sol_update_hyphen_campaign.Output { - try await campaigns_sol_update_hyphen_campaign(Operations.campaigns_sol_update_hyphen_campaign.Input( + public func campaignsUpdateCampaign( + path: Operations.CampaignsUpdateCampaign.Input.Path, + headers: Operations.CampaignsUpdateCampaign.Input.Headers = .init(), + body: Operations.CampaignsUpdateCampaign.Input.Body + ) async throws -> Operations.CampaignsUpdateCampaign.Output { + try await campaignsUpdateCampaign(Operations.CampaignsUpdateCampaign.Input( path: path, headers: headers, body: body @@ -168,11 +168,11 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)`. - public func campaigns_sol_delete_hyphen_campaign( - path: Operations.campaigns_sol_delete_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_delete_hyphen_campaign.Input.Headers = .init() - ) async throws -> Operations.campaigns_sol_delete_hyphen_campaign.Output { - try await campaigns_sol_delete_hyphen_campaign(Operations.campaigns_sol_delete_hyphen_campaign.Input( + public func campaignsDeleteCampaign( + path: Operations.CampaignsDeleteCampaign.Input.Path, + headers: Operations.CampaignsDeleteCampaign.Input.Headers = .init() + ) async throws -> Operations.CampaignsDeleteCampaign.Output { + try await campaignsDeleteCampaign(Operations.CampaignsDeleteCampaign.Input( path: path, headers: headers )) @@ -181,6 +181,15 @@ extension APIProtocol { /// Server URLs defined in the OpenAPI document. public enum Servers { + public enum Server1 { + public static func url() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } + } + @available(*, deprecated, renamed: "Servers.Server1.url") public static func server1() throws -> Foundation.URL { try Foundation.URL( validatingOpenAPIServerURL: "https://api.github.com", @@ -196,7 +205,7 @@ public enum Components { /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. - public struct simple_hyphen_user: Codable, Hashable, Sendable { + public struct SimpleUser: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/simple-user/name`. public var name: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/email`. @@ -206,171 +215,171 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/simple-user/id`. public var id: Swift.Int64 /// - Remark: Generated from `#/components/schemas/simple-user/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/avatar_url`. - public var avatar_url: Swift.String + public var avatarUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gravatar_id`. - public var gravatar_id: Swift.String? + public var gravatarId: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/followers_url`. - public var followers_url: Swift.String + public var followersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/following_url`. - public var following_url: Swift.String + public var followingUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/gists_url`. - public var gists_url: Swift.String + public var gistsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/starred_url`. - public var starred_url: Swift.String + public var starredUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/subscriptions_url`. - public var subscriptions_url: Swift.String + public var subscriptionsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/organizations_url`. - public var organizations_url: Swift.String + public var organizationsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/repos_url`. - public var repos_url: Swift.String + public var reposUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/events_url`. - public var events_url: Swift.String + public var eventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/received_events_url`. - public var received_events_url: Swift.String + public var receivedEventsUrl: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/type`. public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/simple-user/site_admin`. - public var site_admin: Swift.Bool + public var siteAdmin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. - public var starred_at: Swift.String? + public var starredAt: Swift.String? /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. - public var user_view_type: Swift.String? - /// Creates a new `simple_hyphen_user`. + public var userViewType: Swift.String? + /// Creates a new `SimpleUser`. /// /// - Parameters: /// - name: /// - email: /// - login: /// - id: - /// - node_id: - /// - avatar_url: - /// - gravatar_id: + /// - nodeId: + /// - avatarUrl: + /// - gravatarId: /// - url: - /// - html_url: - /// - followers_url: - /// - following_url: - /// - gists_url: - /// - starred_url: - /// - subscriptions_url: - /// - organizations_url: - /// - repos_url: - /// - events_url: - /// - received_events_url: + /// - htmlUrl: + /// - followersUrl: + /// - followingUrl: + /// - gistsUrl: + /// - starredUrl: + /// - subscriptionsUrl: + /// - organizationsUrl: + /// - reposUrl: + /// - eventsUrl: + /// - receivedEventsUrl: /// - _type: - /// - site_admin: - /// - starred_at: - /// - user_view_type: + /// - siteAdmin: + /// - starredAt: + /// - userViewType: public init( name: Swift.String? = nil, email: Swift.String? = nil, login: Swift.String, id: Swift.Int64, - node_id: Swift.String, - avatar_url: Swift.String, - gravatar_id: Swift.String? = nil, + nodeId: Swift.String, + avatarUrl: Swift.String, + gravatarId: Swift.String? = nil, url: Swift.String, - html_url: Swift.String, - followers_url: Swift.String, - following_url: Swift.String, - gists_url: Swift.String, - starred_url: Swift.String, - subscriptions_url: Swift.String, - organizations_url: Swift.String, - repos_url: Swift.String, - events_url: Swift.String, - received_events_url: Swift.String, + htmlUrl: Swift.String, + followersUrl: Swift.String, + followingUrl: Swift.String, + gistsUrl: Swift.String, + starredUrl: Swift.String, + subscriptionsUrl: Swift.String, + organizationsUrl: Swift.String, + reposUrl: Swift.String, + eventsUrl: Swift.String, + receivedEventsUrl: Swift.String, _type: Swift.String, - site_admin: Swift.Bool, - starred_at: Swift.String? = nil, - user_view_type: Swift.String? = nil + siteAdmin: Swift.Bool, + starredAt: Swift.String? = nil, + userViewType: Swift.String? = nil ) { self.name = name self.email = email self.login = login self.id = id - self.node_id = node_id - self.avatar_url = avatar_url - self.gravatar_id = gravatar_id + self.nodeId = nodeId + self.avatarUrl = avatarUrl + self.gravatarId = gravatarId self.url = url - self.html_url = html_url - self.followers_url = followers_url - self.following_url = following_url - self.gists_url = gists_url - self.starred_url = starred_url - self.subscriptions_url = subscriptions_url - self.organizations_url = organizations_url - self.repos_url = repos_url - self.events_url = events_url - self.received_events_url = received_events_url + self.htmlUrl = htmlUrl + self.followersUrl = followersUrl + self.followingUrl = followingUrl + self.gistsUrl = gistsUrl + self.starredUrl = starredUrl + self.subscriptionsUrl = subscriptionsUrl + self.organizationsUrl = organizationsUrl + self.reposUrl = reposUrl + self.eventsUrl = eventsUrl + self.receivedEventsUrl = receivedEventsUrl self._type = _type - self.site_admin = site_admin - self.starred_at = starred_at - self.user_view_type = user_view_type + self.siteAdmin = siteAdmin + self.starredAt = starredAt + self.userViewType = userViewType } public enum CodingKeys: String, CodingKey { case name case email case login case id - case node_id - case avatar_url - case gravatar_id + case nodeId = "node_id" + case avatarUrl = "avatar_url" + case gravatarId = "gravatar_id" case url - case html_url - case followers_url - case following_url - case gists_url - case starred_url - case subscriptions_url - case organizations_url - case repos_url - case events_url - case received_events_url + case htmlUrl = "html_url" + case followersUrl = "followers_url" + case followingUrl = "following_url" + case gistsUrl = "gists_url" + case starredUrl = "starred_url" + case subscriptionsUrl = "subscriptions_url" + case organizationsUrl = "organizations_url" + case reposUrl = "repos_url" + case eventsUrl = "events_url" + case receivedEventsUrl = "received_events_url" case _type = "type" - case site_admin - case starred_at - case user_view_type + case siteAdmin = "site_admin" + case starredAt = "starred_at" + case userViewType = "user_view_type" } } /// Basic Error /// /// - Remark: Generated from `#/components/schemas/basic-error`. - public struct basic_hyphen_error: Codable, Hashable, Sendable { + public struct BasicError: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/basic-error/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/documentation_url`. - public var documentation_url: Swift.String? + public var documentationUrl: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/url`. public var url: Swift.String? /// - Remark: Generated from `#/components/schemas/basic-error/status`. public var status: Swift.String? - /// Creates a new `basic_hyphen_error`. + /// Creates a new `BasicError`. /// /// - Parameters: /// - message: - /// - documentation_url: + /// - documentationUrl: /// - url: /// - status: public init( message: Swift.String? = nil, - documentation_url: Swift.String? = nil, + documentationUrl: Swift.String? = nil, url: Swift.String? = nil, status: Swift.String? = nil ) { self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl self.url = url self.status = status } public enum CodingKeys: String, CodingKey { case message - case documentation_url + case documentationUrl = "documentation_url" case url case status } @@ -378,26 +387,26 @@ public enum Components { /// Indicates whether a campaign is open or closed /// /// - Remark: Generated from `#/components/schemas/campaign-state`. - @frozen public enum campaign_hyphen_state: String, Codable, Hashable, Sendable { + @frozen public enum CampaignState: String, Codable, Hashable, Sendable, CaseIterable { case open = "open" case closed = "closed" } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple`. - public struct nullable_hyphen_team_hyphen_simple: Codable, Hashable, Sendable { + public struct NullableTeamSimple: Codable, Hashable, Sendable { /// Unique identifier of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/nullable-team-simple/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// URL for the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// Name of the team /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/name`. @@ -417,86 +426,86 @@ public enum Components { /// The notification setting the team has set /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/nullable-team-simple/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/nullable-team-simple/slug`. public var slug: Swift.String /// Distinguished Name (DN) that team maps to within LDAP environment /// /// - Remark: Generated from `#/components/schemas/nullable-team-simple/ldap_dn`. - public var ldap_dn: Swift.String? - /// Creates a new `nullable_hyphen_team_hyphen_simple`. + public var ldapDn: Swift.String? + /// Creates a new `NullableTeamSimple`. /// /// - Parameters: /// - id: Unique identifier of the team - /// - node_id: + /// - nodeId: /// - url: URL for the team - /// - members_url: + /// - membersUrl: /// - name: Name of the team /// - description: Description of the team /// - permission: Permission that the team will have for its repositories /// - privacy: The level of privacy this team should have - /// - notification_setting: The notification setting the team has set - /// - html_url: - /// - repositories_url: + /// - notificationSetting: The notification setting the team has set + /// - htmlUrl: + /// - repositoriesUrl: /// - slug: - /// - ldap_dn: Distinguished Name (DN) that team maps to within LDAP environment + /// - ldapDn: Distinguished Name (DN) that team maps to within LDAP environment public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, url: Swift.String, - members_url: Swift.String, + membersUrl: Swift.String, name: Swift.String, description: Swift.String? = nil, permission: Swift.String, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, - html_url: Swift.String, - repositories_url: Swift.String, + notificationSetting: Swift.String? = nil, + htmlUrl: Swift.String, + repositoriesUrl: Swift.String, slug: Swift.String, - ldap_dn: Swift.String? = nil + ldapDn: Swift.String? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.url = url - self.members_url = members_url + self.membersUrl = membersUrl self.name = name self.description = description self.permission = permission self.privacy = privacy - self.notification_setting = notification_setting - self.html_url = html_url - self.repositories_url = repositories_url + self.notificationSetting = notificationSetting + self.htmlUrl = htmlUrl + self.repositoriesUrl = repositoriesUrl self.slug = slug - self.ldap_dn = ldap_dn + self.ldapDn = ldapDn } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case url - case members_url + case membersUrl = "members_url" case name case description case permission case privacy - case notification_setting - case html_url - case repositories_url + case notificationSetting = "notification_setting" + case htmlUrl = "html_url" + case repositoriesUrl = "repositories_url" case slug - case ldap_dn + case ldapDn = "ldap_dn" } } /// Groups of organization members that gives permissions on specified repositories. /// /// - Remark: Generated from `#/components/schemas/team`. - public struct team: Codable, Hashable, Sendable { + public struct Team: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/id`. public var id: Swift.Int /// - Remark: Generated from `#/components/schemas/team/node_id`. - public var node_id: Swift.String + public var nodeId: Swift.String /// - Remark: Generated from `#/components/schemas/team/name`. public var name: Swift.String /// - Remark: Generated from `#/components/schemas/team/slug`. @@ -506,11 +515,11 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/team/privacy`. public var privacy: Swift.String? /// - Remark: Generated from `#/components/schemas/team/notification_setting`. - public var notification_setting: Swift.String? + public var notificationSetting: Swift.String? /// - Remark: Generated from `#/components/schemas/team/permission`. public var permission: Swift.String /// - Remark: Generated from `#/components/schemas/team/permissions`. - public struct permissionsPayload: Codable, Hashable, Sendable { + public struct PermissionsPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/team/permissions/pull`. public var pull: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/triage`. @@ -521,7 +530,7 @@ public enum Components { public var maintain: Swift.Bool /// - Remark: Generated from `#/components/schemas/team/permissions/admin`. public var admin: Swift.Bool - /// Creates a new `permissionsPayload`. + /// Creates a new `PermissionsPayload`. /// /// - Parameters: /// - pull: @@ -551,86 +560,86 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/team/permissions`. - public var permissions: Components.Schemas.team.permissionsPayload? + public var permissions: Components.Schemas.Team.PermissionsPayload? /// - Remark: Generated from `#/components/schemas/team/url`. public var url: Swift.String /// - Remark: Generated from `#/components/schemas/team/html_url`. - public var html_url: Swift.String + public var htmlUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/members_url`. - public var members_url: Swift.String + public var membersUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/repositories_url`. - public var repositories_url: Swift.String + public var repositoriesUrl: Swift.String /// - Remark: Generated from `#/components/schemas/team/parent`. - public var parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? - /// Creates a new `team`. + public var parent: Components.Schemas.NullableTeamSimple? + /// Creates a new `Team`. /// /// - Parameters: /// - id: - /// - node_id: + /// - nodeId: /// - name: /// - slug: /// - description: /// - privacy: - /// - notification_setting: + /// - notificationSetting: /// - permission: /// - permissions: /// - url: - /// - html_url: - /// - members_url: - /// - repositories_url: + /// - htmlUrl: + /// - membersUrl: + /// - repositoriesUrl: /// - parent: public init( id: Swift.Int, - node_id: Swift.String, + nodeId: Swift.String, name: Swift.String, slug: Swift.String, description: Swift.String? = nil, privacy: Swift.String? = nil, - notification_setting: Swift.String? = nil, + notificationSetting: Swift.String? = nil, permission: Swift.String, - permissions: Components.Schemas.team.permissionsPayload? = nil, + permissions: Components.Schemas.Team.PermissionsPayload? = nil, url: Swift.String, - html_url: Swift.String, - members_url: Swift.String, - repositories_url: Swift.String, - parent: Components.Schemas.nullable_hyphen_team_hyphen_simple? = nil + htmlUrl: Swift.String, + membersUrl: Swift.String, + repositoriesUrl: Swift.String, + parent: Components.Schemas.NullableTeamSimple? = nil ) { self.id = id - self.node_id = node_id + self.nodeId = nodeId self.name = name self.slug = slug self.description = description self.privacy = privacy - self.notification_setting = notification_setting + self.notificationSetting = notificationSetting self.permission = permission self.permissions = permissions self.url = url - self.html_url = html_url - self.members_url = members_url - self.repositories_url = repositories_url + self.htmlUrl = htmlUrl + self.membersUrl = membersUrl + self.repositoriesUrl = repositoriesUrl self.parent = parent } public enum CodingKeys: String, CodingKey { case id - case node_id + case nodeId = "node_id" case name case slug case description case privacy - case notification_setting + case notificationSetting = "notification_setting" case permission case permissions case url - case html_url - case members_url - case repositories_url + case htmlUrl = "html_url" + case membersUrl = "members_url" + case repositoriesUrl = "repositories_url" case parent } } /// The campaign metadata and alert stats. /// /// - Remark: Generated from `#/components/schemas/campaign-summary`. - public struct campaign_hyphen_summary: Codable, Hashable, Sendable { + public struct CampaignSummary: Codable, Hashable, Sendable { /// The number of the newly created campaign /// /// - Remark: Generated from `#/components/schemas/campaign-summary/number`. @@ -638,11 +647,11 @@ public enum Components { /// The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/created_at`. - public var created_at: Foundation.Date + public var createdAt: Foundation.Date /// The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/updated_at`. - public var updated_at: Foundation.Date + public var updatedAt: Foundation.Date /// The campaign name /// /// - Remark: Generated from `#/components/schemas/campaign-summary/name`. @@ -654,76 +663,76 @@ public enum Components { /// The campaign managers /// /// - Remark: Generated from `#/components/schemas/campaign-summary/managers`. - public var managers: [Components.Schemas.simple_hyphen_user] + public var managers: [Components.Schemas.SimpleUser] /// The campaign team managers /// /// - Remark: Generated from `#/components/schemas/campaign-summary/team_managers`. - public var team_managers: [Components.Schemas.team]? + public var teamManagers: [Components.Schemas.Team]? /// The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/published_at`. - public var published_at: Foundation.Date? + public var publishedAt: Foundation.Date? /// The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/ends_at`. - public var ends_at: Foundation.Date + public var endsAt: Foundation.Date /// The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/closed_at`. - public var closed_at: Foundation.Date? + public var closedAt: Foundation.Date? /// - Remark: Generated from `#/components/schemas/campaign-summary/state`. - public var state: Components.Schemas.campaign_hyphen_state + public var state: Components.Schemas.CampaignState /// The contact link of the campaign. /// /// - Remark: Generated from `#/components/schemas/campaign-summary/contact_link`. - public var contact_link: Swift.String? + public var contactLink: Swift.String? /// - Remark: Generated from `#/components/schemas/campaign-summary/alert_stats`. - public struct alert_statsPayload: Codable, Hashable, Sendable { + public struct AlertStatsPayload: Codable, Hashable, Sendable { /// The number of open alerts /// /// - Remark: Generated from `#/components/schemas/campaign-summary/alert_stats/open_count`. - public var open_count: Swift.Int + public var openCount: Swift.Int /// The number of closed alerts /// /// - Remark: Generated from `#/components/schemas/campaign-summary/alert_stats/closed_count`. - public var closed_count: Swift.Int + public var closedCount: Swift.Int /// The number of in-progress alerts /// /// - Remark: Generated from `#/components/schemas/campaign-summary/alert_stats/in_progress_count`. - public var in_progress_count: Swift.Int - /// Creates a new `alert_statsPayload`. + public var inProgressCount: Swift.Int + /// Creates a new `AlertStatsPayload`. /// /// - Parameters: - /// - open_count: The number of open alerts - /// - closed_count: The number of closed alerts - /// - in_progress_count: The number of in-progress alerts + /// - openCount: The number of open alerts + /// - closedCount: The number of closed alerts + /// - inProgressCount: The number of in-progress alerts public init( - open_count: Swift.Int, - closed_count: Swift.Int, - in_progress_count: Swift.Int + openCount: Swift.Int, + closedCount: Swift.Int, + inProgressCount: Swift.Int ) { - self.open_count = open_count - self.closed_count = closed_count - self.in_progress_count = in_progress_count + self.openCount = openCount + self.closedCount = closedCount + self.inProgressCount = inProgressCount } public enum CodingKeys: String, CodingKey { - case open_count - case closed_count - case in_progress_count + case openCount = "open_count" + case closedCount = "closed_count" + case inProgressCount = "in_progress_count" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - open_count = try container.decode( + self.openCount = try container.decode( Swift.Int.self, - forKey: .open_count + forKey: .openCount ) - closed_count = try container.decode( + self.closedCount = try container.decode( Swift.Int.self, - forKey: .closed_count + forKey: .closedCount ) - in_progress_count = try container.decode( + self.inProgressCount = try container.decode( Swift.Int.self, - forKey: .in_progress_count + forKey: .inProgressCount ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "open_count", @@ -733,66 +742,66 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/campaign-summary/alert_stats`. - public var alert_stats: Components.Schemas.campaign_hyphen_summary.alert_statsPayload? - /// Creates a new `campaign_hyphen_summary`. + public var alertStats: Components.Schemas.CampaignSummary.AlertStatsPayload? + /// Creates a new `CampaignSummary`. /// /// - Parameters: /// - number: The number of the newly created campaign - /// - created_at: The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - updated_at: The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - createdAt: The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - updatedAt: The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// - name: The campaign name /// - description: The campaign description /// - managers: The campaign managers - /// - team_managers: The campaign team managers - /// - published_at: The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - ends_at: The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - closed_at: The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open. + /// - teamManagers: The campaign team managers + /// - publishedAt: The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - endsAt: The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - closedAt: The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open. /// - state: - /// - contact_link: The contact link of the campaign. - /// - alert_stats: + /// - contactLink: The contact link of the campaign. + /// - alertStats: public init( number: Swift.Int, - created_at: Foundation.Date, - updated_at: Foundation.Date, + createdAt: Foundation.Date, + updatedAt: Foundation.Date, name: Swift.String? = nil, description: Swift.String, - managers: [Components.Schemas.simple_hyphen_user], - team_managers: [Components.Schemas.team]? = nil, - published_at: Foundation.Date? = nil, - ends_at: Foundation.Date, - closed_at: Foundation.Date? = nil, - state: Components.Schemas.campaign_hyphen_state, - contact_link: Swift.String? = nil, - alert_stats: Components.Schemas.campaign_hyphen_summary.alert_statsPayload? = nil + managers: [Components.Schemas.SimpleUser], + teamManagers: [Components.Schemas.Team]? = nil, + publishedAt: Foundation.Date? = nil, + endsAt: Foundation.Date, + closedAt: Foundation.Date? = nil, + state: Components.Schemas.CampaignState, + contactLink: Swift.String? = nil, + alertStats: Components.Schemas.CampaignSummary.AlertStatsPayload? = nil ) { self.number = number - self.created_at = created_at - self.updated_at = updated_at + self.createdAt = createdAt + self.updatedAt = updatedAt self.name = name self.description = description self.managers = managers - self.team_managers = team_managers - self.published_at = published_at - self.ends_at = ends_at - self.closed_at = closed_at + self.teamManagers = teamManagers + self.publishedAt = publishedAt + self.endsAt = endsAt + self.closedAt = closedAt self.state = state - self.contact_link = contact_link - self.alert_stats = alert_stats + self.contactLink = contactLink + self.alertStats = alertStats } public enum CodingKeys: String, CodingKey { case number - case created_at - case updated_at + case createdAt = "created_at" + case updatedAt = "updated_at" case name case description case managers - case team_managers - case published_at - case ends_at - case closed_at + case teamManagers = "team_managers" + case publishedAt = "published_at" + case endsAt = "ends_at" + case closedAt = "closed_at" case state - case contact_link - case alert_stats + case contactLink = "contact_link" + case alertStats = "alert_stats" } } } @@ -801,37 +810,37 @@ public enum Components { /// The direction to sort the results by. /// /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// 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)." /// /// - Remark: Generated from `#/components/parameters/per-page`. - public typealias per_hyphen_page = Swift.Int + public typealias PerPage = Swift.Int /// 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)." /// /// - Remark: Generated from `#/components/parameters/page`. - public typealias page = Swift.Int + public typealias Page = Swift.Int /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/org`. - public typealias org = Swift.String + public typealias Org = Swift.String } /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. public enum RequestBodies {} /// Types generated from the `#/components/responses` section of the OpenAPI document. public enum Responses { - public struct not_found: Sendable, Hashable { + public struct NotFound: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/not_found/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -841,54 +850,54 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.not_found.Body - /// Creates a new `not_found`. + public var body: Components.Responses.NotFound.Body + /// Creates a new `NotFound`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.not_found.Body) { + public init(body: Components.Responses.NotFound.Body) { self.body = body } } - public struct service_unavailable: Sendable, Hashable { + public struct ServiceUnavailable: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/code`. public var code: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/message`. public var message: Swift.String? /// - Remark: Generated from `#/components/responses/service_unavailable/content/json/documentation_url`. - public var documentation_url: Swift.String? - /// Creates a new `jsonPayload`. + public var documentationUrl: Swift.String? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - code: /// - message: - /// - documentation_url: + /// - documentationUrl: public init( code: Swift.String? = nil, message: Swift.String? = nil, - documentation_url: Swift.String? = nil + documentationUrl: Swift.String? = nil ) { self.code = code self.message = message - self.documentation_url = documentation_url + self.documentationUrl = documentationUrl } public enum CodingKeys: String, CodingKey { case code case message - case documentation_url + case documentationUrl = "documentation_url" } } /// - Remark: Generated from `#/components/responses/service_unavailable/content/application\/json`. - case json(Components.Responses.service_unavailable.Body.jsonPayload) + case json(Components.Responses.ServiceUnavailable.Body.JsonPayload) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Responses.service_unavailable.Body.jsonPayload { + public var json: Components.Responses.ServiceUnavailable.Body.JsonPayload { get throws { switch self { case let .json(body): @@ -898,12 +907,12 @@ public enum Components { } } /// Received HTTP response body - public var body: Components.Responses.service_unavailable.Body - /// Creates a new `service_unavailable`. + public var body: Components.Responses.ServiceUnavailable.Body + /// Creates a new `ServiceUnavailable`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Components.Responses.service_unavailable.Body) { + public init(body: Components.Responses.ServiceUnavailable.Body) { self.body = body } } @@ -911,7 +920,7 @@ public enum Components { /// Types generated from the `#/components/headers` section of the OpenAPI document. public enum Headers { /// - Remark: Generated from `#/components/headers/link`. - public typealias link = Swift.String + public typealias Link = Swift.String } } @@ -927,7 +936,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)`. - public enum campaigns_sol_list_hyphen_org_hyphen_campaigns { + public enum CampaignsListOrgCampaigns { public static let id: Swift.String = "campaigns/list-org-campaigns" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/path`. @@ -935,85 +944,85 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Path + public var path: Operations.CampaignsListOrgCampaigns.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query`. public struct Query: Sendable, Hashable { /// 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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/page`. - public var page: Components.Parameters.page? + public var page: Components.Parameters.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)." /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/per_page`. - public var per_page: Components.Parameters.per_hyphen_page? + public var perPage: Components.Parameters.PerPage? /// - Remark: Generated from `#/components/parameters/direction`. - @frozen public enum direction: String, Codable, Hashable, Sendable { + @frozen public enum Direction: String, Codable, Hashable, Sendable, CaseIterable { case asc = "asc" case desc = "desc" } /// The direction to sort the results by. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/direction`. - public var direction: Components.Parameters.direction? + public var direction: Components.Parameters.Direction? /// If specified, only campaigns with this state will be returned. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/state`. - public var state: Components.Schemas.campaign_hyphen_state? + public var state: Components.Schemas.CampaignState? /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/sort`. - @frozen public enum sortPayload: String, Codable, Hashable, Sendable { + @frozen public enum SortPayload: String, Codable, Hashable, Sendable, CaseIterable { case created = "created" case updated = "updated" - case ends_at = "ends_at" + case endsAt = "ends_at" case published = "published" } /// The property by which to sort the results. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/query/sort`. - public var sort: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Query.sortPayload? + public var sort: Operations.CampaignsListOrgCampaigns.Input.Query.SortPayload? /// Creates a new `Query`. /// /// - Parameters: /// - 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)." - /// - 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)." + /// - perPage: 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)." /// - direction: The direction to sort the results by. /// - state: If specified, only campaigns with this state will be returned. /// - sort: The property by which to sort the results. public init( - page: Components.Parameters.page? = nil, - per_page: Components.Parameters.per_hyphen_page? = nil, - direction: Components.Parameters.direction? = nil, - state: Components.Schemas.campaign_hyphen_state? = nil, - sort: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Query.sortPayload? = nil + page: Components.Parameters.Page? = nil, + perPage: Components.Parameters.PerPage? = nil, + direction: Components.Parameters.Direction? = nil, + state: Components.Schemas.CampaignState? = nil, + sort: Operations.CampaignsListOrgCampaigns.Input.Query.SortPayload? = nil ) { self.page = page - self.per_page = per_page + self.perPage = perPage self.direction = direction self.state = state self.sort = sort } } - public var query: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Query + public var query: Operations.CampaignsListOrgCampaigns.Input.Query /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Headers + public var headers: Operations.CampaignsListOrgCampaigns.Input.Headers /// Creates a new `Input`. /// /// - Parameters: @@ -1021,9 +1030,9 @@ public enum Operations { /// - query: /// - headers: public init( - path: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Path, - query: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Query = .init(), - headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Input.Headers = .init() + path: Operations.CampaignsListOrgCampaigns.Input.Path, + query: Operations.CampaignsListOrgCampaigns.Input.Query = .init(), + headers: Operations.CampaignsListOrgCampaigns.Input.Headers = .init() ) { self.path = path self.query = query @@ -1035,26 +1044,26 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/responses/200/headers`. public struct Headers: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/responses/200/headers/Link`. - public var Link: Components.Headers.link? + public var link: Components.Headers.Link? /// Creates a new `Headers`. /// /// - Parameters: - /// - Link: - public init(Link: Components.Headers.link? = nil) { - self.Link = Link + /// - link: + public init(link: Components.Headers.Link? = nil) { + self.link = link } } /// Received HTTP response headers - public var headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Headers + public var headers: Operations.CampaignsListOrgCampaigns.Output.Ok.Headers /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/GET/responses/200/content/application\/json`. - case json([Components.Schemas.campaign_hyphen_summary]) + case json([Components.Schemas.CampaignSummary]) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: [Components.Schemas.campaign_hyphen_summary] { + public var json: [Components.Schemas.CampaignSummary] { get throws { switch self { case let .json(body): @@ -1064,15 +1073,15 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Body + public var body: Operations.CampaignsListOrgCampaigns.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - headers: Received HTTP response headers /// - body: Received HTTP response body public init( - headers: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Headers = .init(), - body: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok.Body + headers: Operations.CampaignsListOrgCampaigns.Output.Ok.Headers = .init(), + body: Operations.CampaignsListOrgCampaigns.Output.Ok.Body ) { self.headers = headers self.body = body @@ -1083,12 +1092,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok) + case ok(Operations.CampaignsListOrgCampaigns.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.campaigns_sol_list_hyphen_org_hyphen_campaigns.Output.Ok { + public var ok: Operations.CampaignsListOrgCampaigns.Output.Ok { get throws { switch self { case let .ok(response): @@ -1106,12 +1115,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1129,12 +1138,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/get(campaigns/list-org-campaigns)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -1191,7 +1200,7 @@ public enum Operations { /// /// - Remark: HTTP `POST /orgs/{org}/campaigns`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)`. - public enum campaigns_sol_create_hyphen_campaign { + public enum CampaignsCreateCampaign { public static let id: Swift.String = "campaigns/create-campaign" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/path`. @@ -1199,32 +1208,32 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - public init(org: Components.Parameters.org) { + public init(org: Components.Parameters.Org) { self.org = org } } - public var path: Operations.campaigns_sol_create_hyphen_campaign.Input.Path + public var path: Operations.CampaignsCreateCampaign.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.campaigns_sol_create_hyphen_campaign.Input.Headers + public var headers: Operations.CampaignsCreateCampaign.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the campaign /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/name`. @@ -1240,50 +1249,50 @@ public enum Operations { /// The slugs of the teams to set as the campaign managers. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/team_managers`. - public var team_managers: [Swift.String]? + public var teamManagers: [Swift.String]? /// The end date and time of the campaign. The date must be in the future. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/ends_at`. - public var ends_at: Foundation.Date + public var endsAt: Foundation.Date /// The contact link of the campaign. Must be a URI. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/contact_link`. - public var contact_link: Swift.String? - /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/code_scanning_alertsPayload`. - public struct code_scanning_alertsPayloadPayload: Codable, Hashable, Sendable { + public var contactLink: Swift.String? + /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/CodeScanningAlertsPayload`. + public struct CodeScanningAlertsPayloadPayload: Codable, Hashable, Sendable { /// The repository id /// - /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/code_scanning_alertsPayload/repository_id`. - public var repository_id: Swift.Int + /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/CodeScanningAlertsPayload/repository_id`. + public var repositoryId: Swift.Int /// The alert numbers /// - /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/code_scanning_alertsPayload/alert_numbers`. - public var alert_numbers: [Swift.Int] - /// Creates a new `code_scanning_alertsPayloadPayload`. + /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/CodeScanningAlertsPayload/alert_numbers`. + public var alertNumbers: [Swift.Int] + /// Creates a new `CodeScanningAlertsPayloadPayload`. /// /// - Parameters: - /// - repository_id: The repository id - /// - alert_numbers: The alert numbers + /// - repositoryId: The repository id + /// - alertNumbers: The alert numbers public init( - repository_id: Swift.Int, - alert_numbers: [Swift.Int] + repositoryId: Swift.Int, + alertNumbers: [Swift.Int] ) { - self.repository_id = repository_id - self.alert_numbers = alert_numbers + self.repositoryId = repositoryId + self.alertNumbers = alertNumbers } public enum CodingKeys: String, CodingKey { - case repository_id - case alert_numbers + case repositoryId = "repository_id" + case alertNumbers = "alert_numbers" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - repository_id = try container.decode( + self.repositoryId = try container.decode( Swift.Int.self, - forKey: .repository_id + forKey: .repositoryId ) - alert_numbers = try container.decode( + self.alertNumbers = try container.decode( [Swift.Int].self, - forKey: .alert_numbers + forKey: .alertNumbers ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "repository_id", @@ -1294,88 +1303,88 @@ public enum Operations { /// The code scanning alerts to include in this campaign /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/code_scanning_alerts`. - public typealias code_scanning_alertsPayload = [Operations.campaigns_sol_create_hyphen_campaign.Input.Body.jsonPayload.code_scanning_alertsPayloadPayload] + public typealias CodeScanningAlertsPayload = [Operations.CampaignsCreateCampaign.Input.Body.JsonPayload.CodeScanningAlertsPayloadPayload] /// The code scanning alerts to include in this campaign /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/code_scanning_alerts`. - public var code_scanning_alerts: Operations.campaigns_sol_create_hyphen_campaign.Input.Body.jsonPayload.code_scanning_alertsPayload + public var codeScanningAlerts: Operations.CampaignsCreateCampaign.Input.Body.JsonPayload.CodeScanningAlertsPayload /// If true, will automatically generate issues for the campaign. The default is false. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/json/generate_issues`. - public var generate_issues: Swift.Bool? - /// Creates a new `jsonPayload`. + public var generateIssues: Swift.Bool? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the campaign /// - description: A description for the campaign /// - managers: The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied. - /// - team_managers: The slugs of the teams to set as the campaign managers. - /// - ends_at: The end date and time of the campaign. The date must be in the future. - /// - contact_link: The contact link of the campaign. Must be a URI. - /// - code_scanning_alerts: The code scanning alerts to include in this campaign - /// - generate_issues: If true, will automatically generate issues for the campaign. The default is false. + /// - teamManagers: The slugs of the teams to set as the campaign managers. + /// - endsAt: The end date and time of the campaign. The date must be in the future. + /// - contactLink: The contact link of the campaign. Must be a URI. + /// - codeScanningAlerts: The code scanning alerts to include in this campaign + /// - generateIssues: If true, will automatically generate issues for the campaign. The default is false. public init( name: Swift.String, description: Swift.String, managers: [Swift.String]? = nil, - team_managers: [Swift.String]? = nil, - ends_at: Foundation.Date, - contact_link: Swift.String? = nil, - code_scanning_alerts: Operations.campaigns_sol_create_hyphen_campaign.Input.Body.jsonPayload.code_scanning_alertsPayload, - generate_issues: Swift.Bool? = nil + teamManagers: [Swift.String]? = nil, + endsAt: Foundation.Date, + contactLink: Swift.String? = nil, + codeScanningAlerts: Operations.CampaignsCreateCampaign.Input.Body.JsonPayload.CodeScanningAlertsPayload, + generateIssues: Swift.Bool? = nil ) { self.name = name self.description = description self.managers = managers - self.team_managers = team_managers - self.ends_at = ends_at - self.contact_link = contact_link - self.code_scanning_alerts = code_scanning_alerts - self.generate_issues = generate_issues + self.teamManagers = teamManagers + self.endsAt = endsAt + self.contactLink = contactLink + self.codeScanningAlerts = codeScanningAlerts + self.generateIssues = generateIssues } public enum CodingKeys: String, CodingKey { case name case description case managers - case team_managers - case ends_at - case contact_link - case code_scanning_alerts - case generate_issues + case teamManagers = "team_managers" + case endsAt = "ends_at" + case contactLink = "contact_link" + case codeScanningAlerts = "code_scanning_alerts" + case generateIssues = "generate_issues" } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decode( + self.name = try container.decode( Swift.String.self, forKey: .name ) - description = try container.decode( + self.description = try container.decode( Swift.String.self, forKey: .description ) - managers = try container.decodeIfPresent( + self.managers = try container.decodeIfPresent( [Swift.String].self, forKey: .managers ) - team_managers = try container.decodeIfPresent( + self.teamManagers = try container.decodeIfPresent( [Swift.String].self, - forKey: .team_managers + forKey: .teamManagers ) - ends_at = try container.decode( + self.endsAt = try container.decode( Foundation.Date.self, - forKey: .ends_at + forKey: .endsAt ) - contact_link = try container.decodeIfPresent( + self.contactLink = try container.decodeIfPresent( Swift.String.self, - forKey: .contact_link + forKey: .contactLink ) - code_scanning_alerts = try container.decode( - Operations.campaigns_sol_create_hyphen_campaign.Input.Body.jsonPayload.code_scanning_alertsPayload.self, - forKey: .code_scanning_alerts + self.codeScanningAlerts = try container.decode( + Operations.CampaignsCreateCampaign.Input.Body.JsonPayload.CodeScanningAlertsPayload.self, + forKey: .codeScanningAlerts ) - generate_issues = try container.decodeIfPresent( + self.generateIssues = try container.decodeIfPresent( Swift.Bool.self, - forKey: .generate_issues + forKey: .generateIssues ) try decoder.ensureNoAdditionalProperties(knownKeys: [ "name", @@ -1390,9 +1399,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/requestBody/content/application\/json`. - case json(Operations.campaigns_sol_create_hyphen_campaign.Input.Body.jsonPayload) + case json(Operations.CampaignsCreateCampaign.Input.Body.JsonPayload) } - public var body: Operations.campaigns_sol_create_hyphen_campaign.Input.Body + public var body: Operations.CampaignsCreateCampaign.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -1400,9 +1409,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.campaigns_sol_create_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_create_hyphen_campaign.Input.Headers = .init(), - body: Operations.campaigns_sol_create_hyphen_campaign.Input.Body + path: Operations.CampaignsCreateCampaign.Input.Path, + headers: Operations.CampaignsCreateCampaign.Input.Headers = .init(), + body: Operations.CampaignsCreateCampaign.Input.Body ) { self.path = path self.headers = headers @@ -1414,12 +1423,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/200/content/application\/json`. - case json(Components.Schemas.campaign_hyphen_summary) + case json(Components.Schemas.CampaignSummary) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.campaign_hyphen_summary { + public var json: Components.Schemas.CampaignSummary { get throws { switch self { case let .json(body): @@ -1429,12 +1438,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_create_hyphen_campaign.Output.Ok.Body + public var body: Operations.CampaignsCreateCampaign.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_create_hyphen_campaign.Output.Ok.Body) { + public init(body: Operations.CampaignsCreateCampaign.Output.Ok.Body) { self.body = body } } @@ -1443,12 +1452,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.campaigns_sol_create_hyphen_campaign.Output.Ok) + case ok(Operations.CampaignsCreateCampaign.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.campaigns_sol_create_hyphen_campaign.Output.Ok { + public var ok: Operations.CampaignsCreateCampaign.Output.Ok { get throws { switch self { case let .ok(response): @@ -1465,12 +1474,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/400/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1480,12 +1489,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_create_hyphen_campaign.Output.BadRequest.Body + public var body: Operations.CampaignsCreateCampaign.Output.BadRequest.Body /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_create_hyphen_campaign.Output.BadRequest.Body) { + public init(body: Operations.CampaignsCreateCampaign.Output.BadRequest.Body) { self.body = body } } @@ -1494,12 +1503,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.campaigns_sol_create_hyphen_campaign.Output.BadRequest) + case badRequest(Operations.CampaignsCreateCampaign.Output.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.campaigns_sol_create_hyphen_campaign.Output.BadRequest { + public var badRequest: Operations.CampaignsCreateCampaign.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -1517,12 +1526,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1539,12 +1548,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/POST/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1554,12 +1563,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_create_hyphen_campaign.Output.UnprocessableContent.Body + public var body: Operations.CampaignsCreateCampaign.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_create_hyphen_campaign.Output.UnprocessableContent.Body) { + public init(body: Operations.CampaignsCreateCampaign.Output.UnprocessableContent.Body) { self.body = body } } @@ -1568,12 +1577,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.campaigns_sol_create_hyphen_campaign.Output.UnprocessableContent) + case unprocessableContent(Operations.CampaignsCreateCampaign.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.campaigns_sol_create_hyphen_campaign.Output.UnprocessableContent { + public var unprocessableContent: Operations.CampaignsCreateCampaign.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -1595,12 +1604,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/429`. /// /// HTTP response code: `429 tooManyRequests`. - case tooManyRequests(Operations.campaigns_sol_create_hyphen_campaign.Output.TooManyRequests) + case tooManyRequests(Operations.CampaignsCreateCampaign.Output.TooManyRequests) + /// Too Many Requests + /// + /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/429`. + /// + /// HTTP response code: `429 tooManyRequests`. + public static var tooManyRequests: Self { + .tooManyRequests(.init()) + } /// The associated value of the enum case if `self` is `.tooManyRequests`. /// /// - Throws: An error if `self` is not `.tooManyRequests`. /// - SeeAlso: `.tooManyRequests`. - public var tooManyRequests: Operations.campaigns_sol_create_hyphen_campaign.Output.TooManyRequests { + public var tooManyRequests: Operations.CampaignsCreateCampaign.Output.TooManyRequests { get throws { switch self { case let .tooManyRequests(response): @@ -1618,12 +1635,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/post(campaigns/create-campaign)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -1677,7 +1694,7 @@ public enum Operations { /// /// - Remark: HTTP `GET /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)`. - public enum campaigns_sol_get_hyphen_campaign_hyphen_summary { + public enum CampaignsGetCampaignSummary { public static let id: Swift.String = "campaigns/get-campaign-summary" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/path`. @@ -1685,45 +1702,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The campaign number. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/path/campaign_number`. - public var campaign_number: Swift.Int + public var campaignNumber: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - campaign_number: The campaign number. + /// - campaignNumber: The campaign number. public init( - org: Components.Parameters.org, - campaign_number: Swift.Int + org: Components.Parameters.Org, + campaignNumber: Swift.Int ) { self.org = org - self.campaign_number = campaign_number + self.campaignNumber = campaignNumber } } - public var path: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Path + public var path: Operations.CampaignsGetCampaignSummary.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Headers + public var headers: Operations.CampaignsGetCampaignSummary.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Path, - headers: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Input.Headers = .init() + path: Operations.CampaignsGetCampaignSummary.Input.Path, + headers: Operations.CampaignsGetCampaignSummary.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -1734,12 +1751,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.campaign_hyphen_summary) + case json(Components.Schemas.CampaignSummary) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.campaign_hyphen_summary { + public var json: Components.Schemas.CampaignSummary { get throws { switch self { case let .json(body): @@ -1749,12 +1766,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.Ok.Body + public var body: Operations.CampaignsGetCampaignSummary.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.Ok.Body) { + public init(body: Operations.CampaignsGetCampaignSummary.Output.Ok.Body) { self.body = body } } @@ -1763,12 +1780,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.Ok) + case ok(Operations.CampaignsGetCampaignSummary.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.Ok { + public var ok: Operations.CampaignsGetCampaignSummary.Output.Ok { get throws { switch self { case let .ok(response): @@ -1786,12 +1803,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -1808,12 +1825,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/GET/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -1823,12 +1840,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.UnprocessableContent.Body + public var body: Operations.CampaignsGetCampaignSummary.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.UnprocessableContent.Body) { + public init(body: Operations.CampaignsGetCampaignSummary.Output.UnprocessableContent.Body) { self.body = body } } @@ -1837,12 +1854,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.UnprocessableContent) + case unprocessableContent(Operations.CampaignsGetCampaignSummary.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.campaigns_sol_get_hyphen_campaign_hyphen_summary.Output.UnprocessableContent { + public var unprocessableContent: Operations.CampaignsGetCampaignSummary.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -1860,12 +1877,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/get(campaigns/get-campaign-summary)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -1919,7 +1936,7 @@ public enum Operations { /// /// - Remark: HTTP `PATCH /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)`. - public enum campaigns_sol_update_hyphen_campaign { + public enum CampaignsUpdateCampaign { public static let id: Swift.String = "campaigns/update-campaign" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/path`. @@ -1927,41 +1944,41 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The campaign number. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/path/campaign_number`. - public var campaign_number: Swift.Int + public var campaignNumber: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - campaign_number: The campaign number. + /// - campaignNumber: The campaign number. public init( - org: Components.Parameters.org, - campaign_number: Swift.Int + org: Components.Parameters.Org, + campaignNumber: Swift.Int ) { self.org = org - self.campaign_number = campaign_number + self.campaignNumber = campaignNumber } } - public var path: Operations.campaigns_sol_update_hyphen_campaign.Input.Path + public var path: Operations.CampaignsUpdateCampaign.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.campaigns_sol_update_hyphen_campaign.Input.Headers + public var headers: Operations.CampaignsUpdateCampaign.Input.Headers /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json`. - public struct jsonPayload: Codable, Hashable, Sendable { + public struct JsonPayload: Codable, Hashable, Sendable { /// The name of the campaign /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json/name`. @@ -1977,81 +1994,81 @@ public enum Operations { /// The slugs of the teams to set as the campaign managers. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json/team_managers`. - public var team_managers: [Swift.String]? + public var teamManagers: [Swift.String]? /// The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json/ends_at`. - public var ends_at: Foundation.Date? + public var endsAt: Foundation.Date? /// The contact link of the campaign. Must be a URI. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json/contact_link`. - public var contact_link: Swift.String? + public var contactLink: Swift.String? /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/json/state`. - public var state: Components.Schemas.campaign_hyphen_state? - /// Creates a new `jsonPayload`. + public var state: Components.Schemas.CampaignState? + /// Creates a new `JsonPayload`. /// /// - Parameters: /// - name: The name of the campaign /// - description: A description for the campaign /// - managers: The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied. - /// - team_managers: The slugs of the teams to set as the campaign managers. - /// - ends_at: The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. - /// - contact_link: The contact link of the campaign. Must be a URI. + /// - teamManagers: The slugs of the teams to set as the campaign managers. + /// - endsAt: The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. + /// - contactLink: The contact link of the campaign. Must be a URI. /// - state: public init( name: Swift.String? = nil, description: Swift.String? = nil, managers: [Swift.String]? = nil, - team_managers: [Swift.String]? = nil, - ends_at: Foundation.Date? = nil, - contact_link: Swift.String? = nil, - state: Components.Schemas.campaign_hyphen_state? = nil + teamManagers: [Swift.String]? = nil, + endsAt: Foundation.Date? = nil, + contactLink: Swift.String? = nil, + state: Components.Schemas.CampaignState? = nil ) { self.name = name self.description = description self.managers = managers - self.team_managers = team_managers - self.ends_at = ends_at - self.contact_link = contact_link + self.teamManagers = teamManagers + self.endsAt = endsAt + self.contactLink = contactLink self.state = state } public enum CodingKeys: String, CodingKey { case name case description case managers - case team_managers - case ends_at - case contact_link + case teamManagers = "team_managers" + case endsAt = "ends_at" + case contactLink = "contact_link" case state } public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - name = try container.decodeIfPresent( + self.name = try container.decodeIfPresent( Swift.String.self, forKey: .name ) - description = try container.decodeIfPresent( + self.description = try container.decodeIfPresent( Swift.String.self, forKey: .description ) - managers = try container.decodeIfPresent( + self.managers = try container.decodeIfPresent( [Swift.String].self, forKey: .managers ) - team_managers = try container.decodeIfPresent( + self.teamManagers = try container.decodeIfPresent( [Swift.String].self, - forKey: .team_managers + forKey: .teamManagers ) - ends_at = try container.decodeIfPresent( + self.endsAt = try container.decodeIfPresent( Foundation.Date.self, - forKey: .ends_at + forKey: .endsAt ) - contact_link = try container.decodeIfPresent( + self.contactLink = try container.decodeIfPresent( Swift.String.self, - forKey: .contact_link + forKey: .contactLink ) - state = try container.decodeIfPresent( - Components.Schemas.campaign_hyphen_state.self, + self.state = try container.decodeIfPresent( + Components.Schemas.CampaignState.self, forKey: .state ) try decoder.ensureNoAdditionalProperties(knownKeys: [ @@ -2066,9 +2083,9 @@ public enum Operations { } } /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/requestBody/content/application\/json`. - case json(Operations.campaigns_sol_update_hyphen_campaign.Input.Body.jsonPayload) + case json(Operations.CampaignsUpdateCampaign.Input.Body.JsonPayload) } - public var body: Operations.campaigns_sol_update_hyphen_campaign.Input.Body + public var body: Operations.CampaignsUpdateCampaign.Input.Body /// Creates a new `Input`. /// /// - Parameters: @@ -2076,9 +2093,9 @@ public enum Operations { /// - headers: /// - body: public init( - path: Operations.campaigns_sol_update_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_update_hyphen_campaign.Input.Headers = .init(), - body: Operations.campaigns_sol_update_hyphen_campaign.Input.Body + path: Operations.CampaignsUpdateCampaign.Input.Path, + headers: Operations.CampaignsUpdateCampaign.Input.Headers = .init(), + body: Operations.CampaignsUpdateCampaign.Input.Body ) { self.path = path self.headers = headers @@ -2090,12 +2107,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/200/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.campaign_hyphen_summary) + case json(Components.Schemas.CampaignSummary) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.campaign_hyphen_summary { + public var json: Components.Schemas.CampaignSummary { get throws { switch self { case let .json(body): @@ -2105,12 +2122,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_update_hyphen_campaign.Output.Ok.Body + public var body: Operations.CampaignsUpdateCampaign.Output.Ok.Body /// Creates a new `Ok`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_update_hyphen_campaign.Output.Ok.Body) { + public init(body: Operations.CampaignsUpdateCampaign.Output.Ok.Body) { self.body = body } } @@ -2119,12 +2136,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)/responses/200`. /// /// HTTP response code: `200 ok`. - case ok(Operations.campaigns_sol_update_hyphen_campaign.Output.Ok) + case ok(Operations.CampaignsUpdateCampaign.Output.Ok) /// The associated value of the enum case if `self` is `.ok`. /// /// - Throws: An error if `self` is not `.ok`. /// - SeeAlso: `.ok`. - public var ok: Operations.campaigns_sol_update_hyphen_campaign.Output.Ok { + public var ok: Operations.CampaignsUpdateCampaign.Output.Ok { get throws { switch self { case let .ok(response): @@ -2141,12 +2158,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/400/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/400/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2156,12 +2173,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_update_hyphen_campaign.Output.BadRequest.Body + public var body: Operations.CampaignsUpdateCampaign.Output.BadRequest.Body /// Creates a new `BadRequest`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_update_hyphen_campaign.Output.BadRequest.Body) { + public init(body: Operations.CampaignsUpdateCampaign.Output.BadRequest.Body) { self.body = body } } @@ -2170,12 +2187,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)/responses/400`. /// /// HTTP response code: `400 badRequest`. - case badRequest(Operations.campaigns_sol_update_hyphen_campaign.Output.BadRequest) + case badRequest(Operations.CampaignsUpdateCampaign.Output.BadRequest) /// The associated value of the enum case if `self` is `.badRequest`. /// /// - Throws: An error if `self` is not `.badRequest`. /// - SeeAlso: `.badRequest`. - public var badRequest: Operations.campaigns_sol_update_hyphen_campaign.Output.BadRequest { + public var badRequest: Operations.CampaignsUpdateCampaign.Output.BadRequest { get throws { switch self { case let .badRequest(response): @@ -2193,12 +2210,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2215,12 +2232,12 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/422/content`. @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/PATCH/responses/422/content/application\/json`. - case json(Components.Schemas.basic_hyphen_error) + case json(Components.Schemas.BasicError) /// The associated value of the enum case if `self` is `.json`. /// /// - Throws: An error if `self` is not `.json`. /// - SeeAlso: `.json`. - public var json: Components.Schemas.basic_hyphen_error { + public var json: Components.Schemas.BasicError { get throws { switch self { case let .json(body): @@ -2230,12 +2247,12 @@ public enum Operations { } } /// Received HTTP response body - public var body: Operations.campaigns_sol_update_hyphen_campaign.Output.UnprocessableContent.Body + public var body: Operations.CampaignsUpdateCampaign.Output.UnprocessableContent.Body /// Creates a new `UnprocessableContent`. /// /// - Parameters: /// - body: Received HTTP response body - public init(body: Operations.campaigns_sol_update_hyphen_campaign.Output.UnprocessableContent.Body) { + public init(body: Operations.CampaignsUpdateCampaign.Output.UnprocessableContent.Body) { self.body = body } } @@ -2244,12 +2261,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)/responses/422`. /// /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.campaigns_sol_update_hyphen_campaign.Output.UnprocessableContent) + case unprocessableContent(Operations.CampaignsUpdateCampaign.Output.UnprocessableContent) /// The associated value of the enum case if `self` is `.unprocessableContent`. /// /// - Throws: An error if `self` is not `.unprocessableContent`. /// - SeeAlso: `.unprocessableContent`. - public var unprocessableContent: Operations.campaigns_sol_update_hyphen_campaign.Output.UnprocessableContent { + public var unprocessableContent: Operations.CampaignsUpdateCampaign.Output.UnprocessableContent { get throws { switch self { case let .unprocessableContent(response): @@ -2267,12 +2284,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/patch(campaigns/update-campaign)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): @@ -2326,7 +2343,7 @@ public enum Operations { /// /// - Remark: HTTP `DELETE /orgs/{org}/campaigns/{campaign_number}`. /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)`. - public enum campaigns_sol_delete_hyphen_campaign { + public enum CampaignsDeleteCampaign { public static let id: Swift.String = "campaigns/delete-campaign" public struct Input: Sendable, Hashable { /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/DELETE/path`. @@ -2334,45 +2351,45 @@ public enum Operations { /// The organization name. The name is not case sensitive. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/DELETE/path/org`. - public var org: Components.Parameters.org + public var org: Components.Parameters.Org /// The campaign number. /// /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/DELETE/path/campaign_number`. - public var campaign_number: Swift.Int + public var campaignNumber: Swift.Int /// Creates a new `Path`. /// /// - Parameters: /// - org: The organization name. The name is not case sensitive. - /// - campaign_number: The campaign number. + /// - campaignNumber: The campaign number. public init( - org: Components.Parameters.org, - campaign_number: Swift.Int + org: Components.Parameters.Org, + campaignNumber: Swift.Int ) { self.org = org - self.campaign_number = campaign_number + self.campaignNumber = campaignNumber } } - public var path: Operations.campaigns_sol_delete_hyphen_campaign.Input.Path + public var path: Operations.CampaignsDeleteCampaign.Input.Path /// - Remark: Generated from `#/paths/orgs/{org}/campaigns/{campaign_number}/DELETE/header`. public struct Headers: Sendable, Hashable { - public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] /// Creates a new `Headers`. /// /// - Parameters: /// - accept: - public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { self.accept = accept } } - public var headers: Operations.campaigns_sol_delete_hyphen_campaign.Input.Headers + public var headers: Operations.CampaignsDeleteCampaign.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: /// - headers: public init( - path: Operations.campaigns_sol_delete_hyphen_campaign.Input.Path, - headers: Operations.campaigns_sol_delete_hyphen_campaign.Input.Headers = .init() + path: Operations.CampaignsDeleteCampaign.Input.Path, + headers: Operations.CampaignsDeleteCampaign.Input.Headers = .init() ) { self.path = path self.headers = headers @@ -2388,12 +2405,20 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)/responses/204`. /// /// HTTP response code: `204 noContent`. - case noContent(Operations.campaigns_sol_delete_hyphen_campaign.Output.NoContent) + case noContent(Operations.CampaignsDeleteCampaign.Output.NoContent) + /// Deletion successful + /// + /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } /// The associated value of the enum case if `self` is `.noContent`. /// /// - Throws: An error if `self` is not `.noContent`. /// - SeeAlso: `.noContent`. - public var noContent: Operations.campaigns_sol_delete_hyphen_campaign.Output.NoContent { + public var noContent: Operations.CampaignsDeleteCampaign.Output.NoContent { get throws { switch self { case let .noContent(response): @@ -2411,12 +2436,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)/responses/404`. /// /// HTTP response code: `404 notFound`. - case notFound(Components.Responses.not_found) + case notFound(Components.Responses.NotFound) /// The associated value of the enum case if `self` is `.notFound`. /// /// - Throws: An error if `self` is not `.notFound`. /// - SeeAlso: `.notFound`. - public var notFound: Components.Responses.not_found { + public var notFound: Components.Responses.NotFound { get throws { switch self { case let .notFound(response): @@ -2434,12 +2459,12 @@ public enum Operations { /// - Remark: Generated from `#/paths//orgs/{org}/campaigns/{campaign_number}/delete(campaigns/delete-campaign)/responses/503`. /// /// HTTP response code: `503 serviceUnavailable`. - case serviceUnavailable(Components.Responses.service_unavailable) + case serviceUnavailable(Components.Responses.ServiceUnavailable) /// The associated value of the enum case if `self` is `.serviceUnavailable`. /// /// - Throws: An error if `self` is not `.serviceUnavailable`. /// - SeeAlso: `.serviceUnavailable`. - public var serviceUnavailable: Components.Responses.service_unavailable { + public var serviceUnavailable: Components.Responses.ServiceUnavailable { get throws { switch self { case let .serviceUnavailable(response): From 40d3e0a76449726b256f75a5647fb030bd66b28a Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 10:50:05 -0700 Subject: [PATCH 45/46] Update README --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cc61b033e9..601f7d72da 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ import OpenAPIRuntime import OpenAPIURLSession let client = Client(serverURL: try Servers.server1(), transport: URLSessionTransport()) -let users = try await client.users_sol_list().ok.body.json +let users = try await client.usersList().ok.body.json ```
@@ -96,18 +96,18 @@ struct GitHubRestAPIIssuesExtension { middlewares: [AuthenticationMiddleware(token: nil)] ) - let comments = try await client.issues_sol_list_hyphen_comments( - path: .init(owner: owner, repo: repo, issue_number: number) + let comments = try await client.issuesListComments( + path: .init(owner: owner, repo: repo, issueNumber: number) ).ok.body.json if let comment = comments.first(where: { $0.body?.contains(hidingContent) == true }) { - _ = try await client.issues_sol_update_hyphen_comment( - path: .init(owner: owner, repo: repo, comment_id: Components.Parameters.comment_hyphen_id(comment.id)), + _ = try await client.issuesUpdateComment( + path: .init(owner: owner, repo: repo, commentId: comment.id), body: .json(.init(body: newBody)) ) } else { - _ = try await client.issues_sol_create_hyphen_comment( - path: .init(owner: owner, repo: repo, issue_number: number), + _ = try await client.issuesCreateComment( + path: .init(owner: owner, repo: repo, issueNumber: number), body: .json(.init(body: newBody)) ) } From 0f65313dd084b006b976955fabbf10e9e879fe6a Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Thu, 1 May 2025 14:37:51 -0700 Subject: [PATCH 46/46] Migrate deprecated Servers.server1() calls to the new Servers.Server1.url() API --- README.md | 6 +++--- Tests/UsersTests/UsersTests.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 601f7d72da..dafe391822 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ import GitHubRestAPIUsers import OpenAPIRuntime import OpenAPIURLSession -let client = Client(serverURL: try Servers.server1(), transport: URLSessionTransport()) +let client = Client(serverURL: try Servers.Server1.url(), transport: URLSessionTransport()) let users = try await client.usersList().ok.body.json ``` @@ -91,7 +91,7 @@ struct GitHubRestAPIIssuesExtension { let newBody = "\(body)\n\n\(hidingContent)" let client = Client( - serverURL: try Servers.server1(), + serverURL: try Servers.Server1.url(), transport: URLSessionTransport(), middlewares: [AuthenticationMiddleware(token: nil)] ) @@ -130,7 +130,7 @@ import HTTPTypes let token: String = "***" let client = Client( - serverURL: try Servers.server1(), + serverURL: try Servers.Server1.url(), transport: URLSessionTransport(), middlewares: [AuthenticationMiddleware(token: token)] ) diff --git a/Tests/UsersTests/UsersTests.swift b/Tests/UsersTests/UsersTests.swift index 086044ac9b..b4b9da3a12 100644 --- a/Tests/UsersTests/UsersTests.swift +++ b/Tests/UsersTests/UsersTests.swift @@ -7,7 +7,7 @@ final class UsersTests: XCTestCase { func testUsersCountGreaterThanZero() async throws { let client = Client( - serverURL: try Servers.server1(), + serverURL: try Servers.Server1.url(), transport: URLSessionTransport() ) let list = try await client.usersList()